diff --git a/.circleci/config.yml b/.circleci/config.yml index 455722491f9..756ef1fedd7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,6 +1,19 @@ version: 2 jobs: + check-code-formatting: + docker: + - image: circleci/python:3.7-stretch-node-browsers + + steps: + - checkout + - run: + name: Install black + command: 'sudo pip install black' + - run: + name: Check formatting with black + command: 'black --check .' + # Core python-2.7-core: docker: @@ -297,7 +310,7 @@ jobs: - checkout - run: name: Install tox - command: 'sudo pip install tox requests yapf pytz decorator retrying inflect' + command: 'sudo pip install tox requests black pytz decorator retrying inflect' - run: name: Update jupyterlab-plotly version command: 'cd packages/python/plotly; python setup.py updateplotlywidgetversion' @@ -341,6 +354,9 @@ jobs: workflows: version: 2 + code_formatting: + jobs: + - check-code-formatting dev_build: jobs: - plotlyjs_dev_build diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml new file mode 100644 index 00000000000..30d58678039 --- /dev/null +++ b/.pre-commit-config.yaml @@ -0,0 +1,6 @@ +repos: +- repo: https://github.com/ambv/black + rev: stable + hooks: + - id: black + language_version: python \ No newline at end of file diff --git a/contributing.md b/contributing.md index 95d77341ead..5634be34187 100644 --- a/contributing.md +++ b/contributing.md @@ -64,6 +64,32 @@ Here's what you need to know: changes to any files inside the following director - `packages/python/chart-studio/chart_studio/plotly/chunked_requests` - `packages/python/plotly/plotly/matplotlylib/mplexporter` +### Configure black code formatting +This repo uses the [Black](https://black.readthedocs.io/en/stable/) code formatter, +and the [pre-commit](https://pre-commit.com/) library to manage a git commit hook to +run Black prior to each commit. Both pre-commit and black are included in the +`packages/python/plotly/optional-requirements.txt` file, so you should have them +installed already if you've been following along. + +To enable the Black formatting git hook, run the following from within your virtual +environment. + +```bash +(plotly_dev) $ pre-commit install +``` + +Now, whenever you perform a commit, the Black formatter will run. If the formatter +makes no changes, then the commit will proceed. But if the formatter does make changes, +then the commit will abort. To proceed, stage the files that the formatter +modified and commit again. + +If you don't want to use `pre-commit`, then you can run black manually prior to making +a PR as follows. + +```bash +(plotly_dev) $ black . +``` + ### Making a Development Branch Third, *don't* work in the `master` branch. As soon as you get your master branch ready, run: diff --git a/packages/python/chart-studio/chart_studio/__init__.py b/packages/python/chart-studio/chart_studio/__init__.py index 494797371e0..f613e4f4b40 100644 --- a/packages/python/chart-studio/chart_studio/__init__.py +++ b/packages/python/chart-studio/chart_studio/__init__.py @@ -1,8 +1,2 @@ from __future__ import absolute_import -from chart_studio import ( - plotly, - dashboard_objs, - grid_objs, - session, - tools, -) +from chart_studio import plotly, dashboard_objs, grid_objs, session, tools diff --git a/packages/python/chart-studio/chart_studio/api/utils.py b/packages/python/chart-studio/chart_studio/api/utils.py index d9d1d21f504..eff4595cda5 100644 --- a/packages/python/chart-studio/chart_studio/api/utils.py +++ b/packages/python/chart-studio/chart_studio/api/utils.py @@ -12,11 +12,11 @@ def _to_native_string(string, encoding): def to_native_utf8_string(string): - return _to_native_string(string, 'utf-8') + return _to_native_string(string, "utf-8") def to_native_ascii_string(string): - return _to_native_string(string, 'ascii') + return _to_native_string(string, "ascii") def basic_auth(username, password): @@ -31,11 +31,11 @@ def basic_auth(username, password): """ if isinstance(username, str): - username = username.encode('latin1') + username = username.encode("latin1") if isinstance(password, str): - password = password.encode('latin1') + password = password.encode("latin1") - return 'Basic ' + to_native_ascii_string( - b64encode(b':'.join((username, password))).strip() + return "Basic " + to_native_ascii_string( + b64encode(b":".join((username, password))).strip() ) diff --git a/packages/python/chart-studio/chart_studio/api/v2/__init__.py b/packages/python/chart-studio/chart_studio/api/v2/__init__.py index c248f72543d..9013e3197df 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/__init__.py +++ b/packages/python/chart-studio/chart_studio/api/v2/__init__.py @@ -1,5 +1,14 @@ from __future__ import absolute_import -from chart_studio.api.v2 import (dash_apps, dashboards, files, folders, grids, - images, plot_schema, plots, - spectacle_presentations, users) +from chart_studio.api.v2 import ( + dash_apps, + dashboards, + files, + folders, + grids, + images, + plot_schema, + plots, + spectacle_presentations, + users, +) diff --git a/packages/python/chart-studio/chart_studio/api/v2/dash_apps.py b/packages/python/chart-studio/chart_studio/api/v2/dash_apps.py index c46ec3ff69e..5d55e9bc062 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/dash_apps.py +++ b/packages/python/chart-studio/chart_studio/api/v2/dash_apps.py @@ -5,22 +5,22 @@ from chart_studio.api.v2.utils import build_url, request -RESOURCE = 'dash-apps' +RESOURCE = "dash-apps" def create(body): """Create a dash app item.""" url = build_url(RESOURCE) - return request('post', url, json=body) + return request("post", url, json=body) def retrieve(fid): """Retrieve a dash app from Plotly.""" url = build_url(RESOURCE, id=fid) - return request('get', url) + return request("get", url) def update(fid, content): """Completely update the writable.""" url = build_url(RESOURCE, id=fid) - return request('put', url, json=content) + return request("put", url, json=content) diff --git a/packages/python/chart-studio/chart_studio/api/v2/dashboards.py b/packages/python/chart-studio/chart_studio/api/v2/dashboards.py index 60c4e0dd898..1855f1f9287 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/dashboards.py +++ b/packages/python/chart-studio/chart_studio/api/v2/dashboards.py @@ -8,34 +8,34 @@ from chart_studio.api.v2.utils import build_url, request -RESOURCE = 'dashboards' +RESOURCE = "dashboards" def create(body): """Create a dashboard.""" url = build_url(RESOURCE) - return request('post', url, json=body) + return request("post", url, json=body) def list(): """Returns the list of all users' dashboards.""" url = build_url(RESOURCE) - return request('get', url) + return request("get", url) def retrieve(fid): """Retrieve a dashboard from Plotly.""" url = build_url(RESOURCE, id=fid) - return request('get', url) + return request("get", url) def update(fid, content): """Completely update the writable.""" url = build_url(RESOURCE, id=fid) - return request('put', url, json=content) + return request("put", url, json=content) def schema(): """Retrieve the dashboard schema.""" - url = build_url(RESOURCE, route='schema') - return request('get', url) + url = build_url(RESOURCE, route="schema") + return request("get", url) diff --git a/packages/python/chart-studio/chart_studio/api/v2/files.py b/packages/python/chart-studio/chart_studio/api/v2/files.py index 1e250158f66..9ed248a23df 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/files.py +++ b/packages/python/chart-studio/chart_studio/api/v2/files.py @@ -3,7 +3,7 @@ from chart_studio.api.v2.utils import build_url, make_params, request -RESOURCE = 'files' +RESOURCE = "files" def retrieve(fid, share_key=None): @@ -17,7 +17,7 @@ def retrieve(fid, share_key=None): """ url = build_url(RESOURCE, id=fid) params = make_params(share_key=share_key) - return request('get', url, params=params) + return request("get", url, params=params) def update(fid, body): @@ -30,7 +30,7 @@ def update(fid, body): """ url = build_url(RESOURCE, id=fid) - return request('put', url, json=body) + return request("put", url, json=body) def trash(fid): @@ -41,8 +41,8 @@ def trash(fid): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='trash') - return request('post', url) + url = build_url(RESOURCE, id=fid, route="trash") + return request("post", url) def restore(fid): @@ -53,8 +53,8 @@ def restore(fid): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='restore') - return request('post', url) + url = build_url(RESOURCE, id=fid, route="restore") + return request("post", url) def permanent_delete(fid): @@ -65,8 +65,8 @@ def permanent_delete(fid): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='permanent_delete') - return request('delete', url) + url = build_url(RESOURCE, id=fid, route="permanent_delete") + return request("delete", url) def lookup(path, parent=None, user=None, exists=None): @@ -80,6 +80,6 @@ def lookup(path, parent=None, user=None, exists=None): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, route='lookup') + url = build_url(RESOURCE, route="lookup") params = make_params(path=path, parent=parent, user=user, exists=exists) - return request('get', url, params=params) + return request("get", url, params=params) diff --git a/packages/python/chart-studio/chart_studio/api/v2/folders.py b/packages/python/chart-studio/chart_studio/api/v2/folders.py index 81d72466ca1..4ba239b9909 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/folders.py +++ b/packages/python/chart-studio/chart_studio/api/v2/folders.py @@ -3,7 +3,7 @@ from chart_studio.api.v2.utils import build_url, make_params, request -RESOURCE = 'folders' +RESOURCE = "folders" def create(body): @@ -15,7 +15,7 @@ def create(body): """ url = build_url(RESOURCE) - return request('post', url, json=body) + return request("post", url, json=body) def retrieve(fid, share_key=None): @@ -29,7 +29,7 @@ def retrieve(fid, share_key=None): """ url = build_url(RESOURCE, id=fid) params = make_params(share_key=share_key) - return request('get', url, params=params) + return request("get", url, params=params) def update(fid, body): @@ -42,7 +42,7 @@ def update(fid, body): """ url = build_url(RESOURCE, id=fid) - return request('put', url, json=body) + return request("put", url, json=body) def trash(fid): @@ -55,8 +55,8 @@ def trash(fid): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='trash') - return request('post', url) + url = build_url(RESOURCE, id=fid, route="trash") + return request("post", url) def restore(fid): @@ -69,8 +69,8 @@ def restore(fid): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='restore') - return request('post', url) + url = build_url(RESOURCE, id=fid, route="restore") + return request("post", url) def permanent_delete(fid): @@ -83,8 +83,8 @@ def permanent_delete(fid): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='permanent_delete') - return request('delete', url) + url = build_url(RESOURCE, id=fid, route="permanent_delete") + return request("delete", url) def lookup(path, parent=None, user=None, exists=None): @@ -98,6 +98,6 @@ def lookup(path, parent=None, user=None, exists=None): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, route='lookup') + url = build_url(RESOURCE, route="lookup") params = make_params(path=path, parent=parent, user=user, exists=exists) - return request('get', url, params=params) + return request("get", url, params=params) diff --git a/packages/python/chart-studio/chart_studio/api/v2/grids.py b/packages/python/chart-studio/chart_studio/api/v2/grids.py index 726419a9b3d..b91bb2e052d 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/grids.py +++ b/packages/python/chart-studio/chart_studio/api/v2/grids.py @@ -3,7 +3,7 @@ from chart_studio.api.v2.utils import build_url, make_params, request -RESOURCE = 'grids' +RESOURCE = "grids" def create(body): @@ -15,7 +15,7 @@ def create(body): """ url = build_url(RESOURCE) - return request('post', url, json=body) + return request("post", url, json=body) def retrieve(fid, share_key=None): @@ -29,7 +29,7 @@ def retrieve(fid, share_key=None): """ url = build_url(RESOURCE, id=fid) params = make_params(share_key=share_key) - return request('get', url, params=params) + return request("get", url, params=params) def content(fid, share_key=None): @@ -41,9 +41,9 @@ def content(fid, share_key=None): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='content') + url = build_url(RESOURCE, id=fid, route="content") params = make_params(share_key=share_key) - return request('get', url, params=params) + return request("get", url, params=params) def update(fid, body): @@ -56,7 +56,7 @@ def update(fid, body): """ url = build_url(RESOURCE, id=fid) - return request('put', url, json=body) + return request("put", url, json=body) def trash(fid): @@ -67,8 +67,8 @@ def trash(fid): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='trash') - return request('post', url) + url = build_url(RESOURCE, id=fid, route="trash") + return request("post", url) def restore(fid): @@ -79,8 +79,8 @@ def restore(fid): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='restore') - return request('post', url) + url = build_url(RESOURCE, id=fid, route="restore") + return request("post", url) def permanent_delete(fid): @@ -91,8 +91,8 @@ def permanent_delete(fid): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='permanent_delete') - return request('delete', url) + url = build_url(RESOURCE, id=fid, route="permanent_delete") + return request("delete", url) def lookup(path, parent=None, user=None, exists=None): @@ -106,9 +106,9 @@ def lookup(path, parent=None, user=None, exists=None): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, route='lookup') + url = build_url(RESOURCE, route="lookup") params = make_params(path=path, parent=parent, user=user, exists=exists) - return request('get', url, params=params) + return request("get", url, params=params) def col_create(fid, body): @@ -120,8 +120,8 @@ def col_create(fid, body): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='col') - return request('post', url, json=body) + url = build_url(RESOURCE, id=fid, route="col") + return request("post", url, json=body) def col_retrieve(fid, uid): @@ -133,9 +133,9 @@ def col_retrieve(fid, uid): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='col') + url = build_url(RESOURCE, id=fid, route="col") params = make_params(uid=uid) - return request('get', url, params=params) + return request("get", url, params=params) def col_update(fid, uid, body): @@ -148,9 +148,9 @@ def col_update(fid, uid, body): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='col') + url = build_url(RESOURCE, id=fid, route="col") params = make_params(uid=uid) - return request('put', url, json=body, params=params) + return request("put", url, json=body, params=params) def col_delete(fid, uid): @@ -162,9 +162,9 @@ def col_delete(fid, uid): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='col') + url = build_url(RESOURCE, id=fid, route="col") params = make_params(uid=uid) - return request('delete', url, params=params) + return request("delete", url, params=params) def row(fid, body): @@ -176,5 +176,5 @@ def row(fid, body): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='row') - return request('post', url, json=body) + url = build_url(RESOURCE, id=fid, route="row") + return request("post", url, json=body) diff --git a/packages/python/chart-studio/chart_studio/api/v2/images.py b/packages/python/chart-studio/chart_studio/api/v2/images.py index c6f7ea1a781..5cca9bc4ba5 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/images.py +++ b/packages/python/chart-studio/chart_studio/api/v2/images.py @@ -3,7 +3,7 @@ from chart_studio.api.v2.utils import build_url, request -RESOURCE = 'images' +RESOURCE = "images" def create(body): @@ -15,4 +15,4 @@ def create(body): """ url = build_url(RESOURCE) - return request('post', url, json=body) + return request("post", url, json=body) diff --git a/packages/python/chart-studio/chart_studio/api/v2/plot_schema.py b/packages/python/chart-studio/chart_studio/api/v2/plot_schema.py index 9b9a7ea7edf..e8a0e92f72e 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/plot_schema.py +++ b/packages/python/chart-studio/chart_studio/api/v2/plot_schema.py @@ -3,7 +3,7 @@ from chart_studio.api.v2.utils import build_url, make_params, request -RESOURCE = 'plot-schema' +RESOURCE = "plot-schema" def retrieve(sha1, **kwargs): @@ -16,4 +16,4 @@ def retrieve(sha1, **kwargs): """ url = build_url(RESOURCE) params = make_params(sha1=sha1) - return request('get', url, params=params, **kwargs) + return request("get", url, params=params, **kwargs) diff --git a/packages/python/chart-studio/chart_studio/api/v2/plots.py b/packages/python/chart-studio/chart_studio/api/v2/plots.py index d33c01b7068..07e906affd4 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/plots.py +++ b/packages/python/chart-studio/chart_studio/api/v2/plots.py @@ -3,7 +3,7 @@ from chart_studio.api.v2.utils import build_url, make_params, request -RESOURCE = 'plots' +RESOURCE = "plots" def create(body): @@ -15,7 +15,7 @@ def create(body): """ url = build_url(RESOURCE) - return request('post', url, json=body) + return request("post", url, json=body) def retrieve(fid, share_key=None): @@ -29,7 +29,7 @@ def retrieve(fid, share_key=None): """ url = build_url(RESOURCE, id=fid) params = make_params(share_key=share_key) - return request('get', url, params=params) + return request("get", url, params=params) def content(fid, share_key=None, inline_data=None, map_data=None): @@ -48,10 +48,11 @@ def content(fid, share_key=None, inline_data=None, map_data=None): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='content') - params = make_params(share_key=share_key, inline_data=inline_data, - map_data=map_data) - return request('get', url, params=params) + url = build_url(RESOURCE, id=fid, route="content") + params = make_params( + share_key=share_key, inline_data=inline_data, map_data=map_data + ) + return request("get", url, params=params) def update(fid, body): @@ -64,7 +65,7 @@ def update(fid, body): """ url = build_url(RESOURCE, id=fid) - return request('put', url, json=body) + return request("put", url, json=body) def trash(fid): @@ -75,8 +76,8 @@ def trash(fid): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='trash') - return request('post', url) + url = build_url(RESOURCE, id=fid, route="trash") + return request("post", url) def restore(fid): @@ -87,8 +88,8 @@ def restore(fid): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='restore') - return request('post', url) + url = build_url(RESOURCE, id=fid, route="restore") + return request("post", url) def permanent_delete(fid, params=None): @@ -99,8 +100,8 @@ def permanent_delete(fid, params=None): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, id=fid, route='permanent_delete') - return request('delete', url, params=params) + url = build_url(RESOURCE, id=fid, route="permanent_delete") + return request("delete", url, params=params) def lookup(path, parent=None, user=None, exists=None): @@ -114,6 +115,6 @@ def lookup(path, parent=None, user=None, exists=None): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, route='lookup') + url = build_url(RESOURCE, route="lookup") params = make_params(path=path, parent=parent, user=user, exists=exists) - return request('get', url, params=params) + return request("get", url, params=params) diff --git a/packages/python/chart-studio/chart_studio/api/v2/spectacle_presentations.py b/packages/python/chart-studio/chart_studio/api/v2/spectacle_presentations.py index 343809d4586..eb5df977356 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/spectacle_presentations.py +++ b/packages/python/chart-studio/chart_studio/api/v2/spectacle_presentations.py @@ -5,28 +5,28 @@ from chart_studio.api.v2.utils import build_url, request -RESOURCE = 'spectacle-presentations' +RESOURCE = "spectacle-presentations" def create(body): """Create a presentation.""" url = build_url(RESOURCE) - return request('post', url, json=body) + return request("post", url, json=body) def list(): """Returns the list of all users' presentations.""" url = build_url(RESOURCE) - return request('get', url) + return request("get", url) def retrieve(fid): """Retrieve a presentation from Plotly.""" url = build_url(RESOURCE, id=fid) - return request('get', url) + return request("get", url) def update(fid, content): """Completely update the writable.""" url = build_url(RESOURCE, id=fid) - return request('put', url, json=content) + return request("put", url, json=content) diff --git a/packages/python/chart-studio/chart_studio/api/v2/users.py b/packages/python/chart-studio/chart_studio/api/v2/users.py index b9300c2107e..ec5601fd13c 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/users.py +++ b/packages/python/chart-studio/chart_studio/api/v2/users.py @@ -3,7 +3,7 @@ from chart_studio.api.v2.utils import build_url, request -RESOURCE = 'users' +RESOURCE = "users" def current(): @@ -13,5 +13,5 @@ def current(): :returns: (requests.Response) Returns response directly from requests. """ - url = build_url(RESOURCE, route='current') - return request('get', url) + url = build_url(RESOURCE, route="current") + return request("get", url) diff --git a/packages/python/chart-studio/chart_studio/api/v2/utils.py b/packages/python/chart-studio/chart_studio/api/v2/utils.py index 8d7a14dfa36..4c022957293 100644 --- a/packages/python/chart-studio/chart_studio/api/v2/utils.py +++ b/packages/python/chart-studio/chart_studio/api/v2/utils.py @@ -21,7 +21,7 @@ def make_params(**kwargs): return {k: v for k, v in kwargs.items() if v is not None} -def build_url(resource, id='', route=''): +def build_url(resource, id="", route=""): """ Create a url for a request on a V2 resource. @@ -31,22 +31,22 @@ def build_url(resource, id='', route=''): :return: (str) The url. """ - base = config.get_config()['plotly_api_domain'] - formatter = {'base': base, 'resource': resource, 'id': id, 'route': route} + base = config.get_config()["plotly_api_domain"] + formatter = {"base": base, "resource": resource, "id": id, "route": route} # Add path to base url depending on the input params. Note that `route` # can refer to a 'list' or a 'detail' route. Since it cannot refer to # both at the same time, it's overloaded in this function. if id: if route: - url = '{base}/v2/{resource}/{id}/{route}'.format(**formatter) + url = "{base}/v2/{resource}/{id}/{route}".format(**formatter) else: - url = '{base}/v2/{resource}/{id}'.format(**formatter) + url = "{base}/v2/{resource}/{id}".format(**formatter) else: if route: - url = '{base}/v2/{resource}/{route}'.format(**formatter) + url = "{base}/v2/{resource}/{route}".format(**formatter) else: - url = '{base}/v2/{resource}'.format(**formatter) + url = "{base}/v2/{resource}".format(**formatter) return url @@ -68,16 +68,16 @@ def validate_response(response): try: parsed_content = response.json() except ValueError: - message = content if content else 'No Content' + message = content if content else "No Content" raise exceptions.PlotlyRequestError(message, status_code, content) - message = '' + message = "" if isinstance(parsed_content, dict): - errors = parsed_content.get('errors', []) - messages = [error.get('message') for error in errors] - message = '\n'.join([msg for msg in messages if msg]) + errors = parsed_content.get("errors", []) + messages = [error.get("message") for error in errors] + message = "\n".join([msg for msg in messages if msg]) if not message: - message = content if content else 'No Content' + message = content if content else "No Content" raise exceptions.PlotlyRequestError(message, status_code, content) @@ -94,41 +94,47 @@ def get_headers(): """ from plotly import version + creds = config.get_credentials() headers = { - 'plotly-client-platform': 'python {}'.format(version.stable_semver()), - 'content-type': 'application/json' + "plotly-client-platform": "python {}".format(version.stable_semver()), + "content-type": "application/json", } - plotly_auth = basic_auth(creds['username'], creds['api_key']) - proxy_auth = basic_auth(creds['proxy_username'], creds['proxy_password']) + plotly_auth = basic_auth(creds["username"], creds["api_key"]) + proxy_auth = basic_auth(creds["proxy_username"], creds["proxy_password"]) - if config.get_config()['plotly_proxy_authorization']: - headers['authorization'] = proxy_auth - if creds['username'] and creds['api_key']: - headers['plotly-authorization'] = plotly_auth + if config.get_config()["plotly_proxy_authorization"]: + headers["authorization"] = proxy_auth + if creds["username"] and creds["api_key"]: + headers["plotly-authorization"] = plotly_auth else: - if creds['username'] and creds['api_key']: - headers['authorization'] = plotly_auth + if creds["username"] and creds["api_key"]: + headers["authorization"] = plotly_auth return headers def should_retry(exception): if isinstance(exception, exceptions.PlotlyRequestError): - if (isinstance(exception.status_code, int) and - (500 <= exception.status_code < 600 or exception.status_code == 429)): + if isinstance(exception.status_code, int) and ( + 500 <= exception.status_code < 600 or exception.status_code == 429 + ): # Retry on 5XX and 429 (image export throttling) errors. return True - elif 'Uh oh, an error occurred' in exception.message: + elif "Uh oh, an error occurred" in exception.message: return True return False -@retry(wait_exponential_multiplier=1000, wait_exponential_max=16000, - stop_max_delay=180000, retry_on_exception=should_retry) +@retry( + wait_exponential_multiplier=1000, + wait_exponential_max=16000, + stop_max_delay=180000, + retry_on_exception=should_retry, +) def request(method, url, **kwargs): """ Central place to make any api v2 api request. @@ -139,35 +145,37 @@ def request(method, url, **kwargs): :return: (requests.Response) The response directly from requests. """ - kwargs['headers'] = dict(kwargs.get('headers', {}), **get_headers()) + kwargs["headers"] = dict(kwargs.get("headers", {}), **get_headers()) # Change boolean params to lowercase strings. E.g., `True` --> `'true'`. # Just change the value so that requests handles query string creation. - if isinstance(kwargs.get('params'), dict): - kwargs['params'] = kwargs['params'].copy() - for key in kwargs['params']: - if isinstance(kwargs['params'][key], bool): - kwargs['params'][key] = _json.dumps(kwargs['params'][key]) + if isinstance(kwargs.get("params"), dict): + kwargs["params"] = kwargs["params"].copy() + for key in kwargs["params"]: + if isinstance(kwargs["params"][key], bool): + kwargs["params"][key] = _json.dumps(kwargs["params"][key]) # We have a special json encoding class for non-native objects. - if kwargs.get('json') is not None: - if kwargs.get('data'): + if kwargs.get("json") is not None: + if kwargs.get("data"): raise _plotly_utils.exceptions.PlotlyError( - 'Cannot supply data and json kwargs.') - kwargs['data'] = _json.dumps(kwargs.pop('json'), sort_keys=True, - cls=PlotlyJSONEncoder) + "Cannot supply data and json kwargs." + ) + kwargs["data"] = _json.dumps( + kwargs.pop("json"), sort_keys=True, cls=PlotlyJSONEncoder + ) # The config file determines whether reuqests should *verify*. - kwargs['verify'] = config.get_config()['plotly_ssl_verification'] + kwargs["verify"] = config.get_config()["plotly_ssl_verification"] try: response = requests.request(method, url, **kwargs) except RequestException as e: # The message can be an exception. E.g., MaxRetryError. - message = str(getattr(e, 'message', 'No message')) - response = getattr(e, 'response', None) + message = str(getattr(e, "message", "No message")) + response = getattr(e, "response", None) status_code = response.status_code if response else None - content = response.content if response else 'No content' + content = response.content if response else "No content" raise exceptions.PlotlyRequestError(message, status_code, content) validate_response(response) return response diff --git a/packages/python/chart-studio/chart_studio/dashboard_objs/__init__.py b/packages/python/chart-studio/chart_studio/dashboard_objs/__init__.py index 360bfd79044..8fa4a4d3249 100644 --- a/packages/python/chart-studio/chart_studio/dashboard_objs/__init__.py +++ b/packages/python/chart-studio/chart_studio/dashboard_objs/__init__.py @@ -69,4 +69,4 @@ # my_dboard.get_preview() ``` """ -from . dashboard_objs import Dashboard +from .dashboard_objs import Dashboard diff --git a/packages/python/chart-studio/chart_studio/dashboard_objs/dashboard_objs.py b/packages/python/chart-studio/chart_studio/dashboard_objs/dashboard_objs.py index 13ef7032e00..ca2d2ea059d 100644 --- a/packages/python/chart-studio/chart_studio/dashboard_objs/dashboard_objs.py +++ b/packages/python/chart-studio/chart_studio/dashboard_objs/dashboard_objs.py @@ -14,7 +14,7 @@ from _plotly_utils import optional_imports from chart_studio import exceptions -IPython = optional_imports.get_module('IPython') +IPython = optional_imports.get_module("IPython") # default parameters for HTML preview MASTER_WIDTH = 500 @@ -29,43 +29,40 @@ def _empty_box(): - empty_box = { - 'type': 'box', - 'boxType': 'empty' - } + empty_box = {"type": "box", "boxType": "empty"} return empty_box -def _box(fileId='', shareKey=None, title=''): +def _box(fileId="", shareKey=None, title=""): box = { - 'type': 'box', - 'boxType': 'plot', - 'fileId': fileId, - 'shareKey': shareKey, - 'title': title + "type": "box", + "boxType": "plot", + "fileId": fileId, + "shareKey": shareKey, + "title": title, } return box -def _container(box_1=None, box_2=None, - size=50, sizeUnit='%', - direction='vertical'): + +def _container(box_1=None, box_2=None, size=50, sizeUnit="%", direction="vertical"): if box_1 is None: box_1 = _empty_box() if box_2 is None: box_2 = _empty_box() container = { - 'type': 'split', - 'size': size, - 'sizeUnit': sizeUnit, - 'direction': direction, - 'first': box_1, - 'second': box_2 + "type": "split", + "size": size, + "sizeUnit": sizeUnit, + "direction": direction, + "first": box_1, + "second": box_2, } return container -dashboard_html = (""" + +dashboard_html = """ @@ -90,19 +87,29 @@ def _container(box_1=None, box_2=None, -""".format(width=MASTER_WIDTH, height=MASTER_HEIGHT)) +""".format( + width=MASTER_WIDTH, height=MASTER_HEIGHT +) -def _draw_line_through_box(dashboard_html, top_left_x, top_left_y, box_w, - box_h, is_horizontal, direction, fill_percent=50): +def _draw_line_through_box( + dashboard_html, + top_left_x, + top_left_y, + box_w, + box_h, + is_horizontal, + direction, + fill_percent=50, +): if is_horizontal: - new_top_left_x = top_left_x + box_w * (fill_percent / 100.) + new_top_left_x = top_left_x + box_w * (fill_percent / 100.0) new_top_left_y = top_left_y new_box_w = 1 new_box_h = box_h else: new_top_left_x = top_left_x - new_top_left_y = top_left_y + box_h * (fill_percent / 100.) + new_top_left_y = top_left_y + box_h * (fill_percent / 100.0) new_box_w = box_w new_box_h = 1 @@ -112,26 +119,37 @@ def _draw_line_through_box(dashboard_html, top_left_x, top_left_y, box_w, context.lineWidth = 1; context.strokeStyle = 'black'; context.stroke(); - """.format(top_left_x=new_top_left_x, top_left_y=new_top_left_y, - box_w=new_box_w, box_h=new_box_h) - - index_for_new_box = dashboard_html.find('') - 1 - dashboard_html = (dashboard_html[:index_for_new_box] + html_box + - dashboard_html[index_for_new_box:]) + """.format( + top_left_x=new_top_left_x, + top_left_y=new_top_left_y, + box_w=new_box_w, + box_h=new_box_h, + ) + + index_for_new_box = dashboard_html.find("") - 1 + dashboard_html = ( + dashboard_html[:index_for_new_box] + + html_box + + dashboard_html[index_for_new_box:] + ) return dashboard_html -def _add_html_text(dashboard_html, text, top_left_x, top_left_y, box_w, - box_h): +def _add_html_text(dashboard_html, text, top_left_x, top_left_y, box_w, box_h): html_text = """ context.font = '{}pt Times New Roman'; context.textAlign = 'center'; context.fillText({}, {} + 0.5*{}, {} + 0.5*{}); - """.format(FONT_SIZE, text, top_left_x, box_w, top_left_y, box_h) - - index_to_add_text = dashboard_html.find('') - 1 - dashboard_html = (dashboard_html[:index_to_add_text] + html_text + - dashboard_html[index_to_add_text:]) + """.format( + FONT_SIZE, text, top_left_x, box_w, top_left_y, box_h + ) + + index_to_add_text = dashboard_html.find("") - 1 + dashboard_html = ( + dashboard_html[:index_to_add_text] + + html_text + + dashboard_html[index_to_add_text:] + ) return dashboard_html @@ -219,28 +237,32 @@ class Dashboard(dict): # my_dboard.get_preview() ``` """ + def __init__(self, content=None): if content is None: content = {} if not content: - self['layout'] = None - self['version'] = 2 - self['settings'] = {} + self["layout"] = None + self["version"] = 2 + self["settings"] = {} else: - self['layout'] = content['layout'] - self['version'] = content['version'] - self['settings'] = content['settings'] + self["layout"] = content["layout"] + self["version"] = content["version"] + self["settings"] = content["settings"] def _compute_box_ids(self): from plotly.utils import node_generator box_ids_to_path = {} - all_nodes = list(node_generator(self['layout'])) + all_nodes = list(node_generator(self["layout"])) all_nodes.sort(key=lambda x: x[1]) for node in all_nodes: - if (node[1] != () and node[0]['type'] == 'box' - and node[0]['boxType'] != 'empty'): + if ( + node[1] != () + and node[0]["type"] == "box" + and node[0]["boxType"] != "empty" + ): try: max_id = max(box_ids_to_path.keys()) except ValueError: @@ -250,15 +272,14 @@ def _compute_box_ids(self): return box_ids_to_path def _insert(self, box_or_container, path): - if any(first_second not in ['first', 'second'] - for first_second in path): + if any(first_second not in ["first", "second"] for first_second in path): raise _plotly_utils.exceptions.PlotlyError( "Invalid path. Your 'path' list must only contain " "the strings 'first' and 'second'." ) - if 'first' in self['layout']: - loc_in_dashboard = self['layout'] + if "first" in self["layout"]: + loc_in_dashboard = self["layout"] for index, first_second in enumerate(path): if index != len(path) - 1: loc_in_dashboard = loc_in_dashboard[first_second] @@ -266,25 +287,25 @@ def _insert(self, box_or_container, path): loc_in_dashboard[first_second] = box_or_container else: - self['layout'] = box_or_container + self["layout"] = box_or_container def _make_all_nodes_and_paths(self): from plotly.utils import node_generator - all_nodes = list(node_generator(self['layout'])) + all_nodes = list(node_generator(self["layout"])) all_nodes.sort(key=lambda x: x[1]) # remove path 'second' as it's always an empty box all_paths = [] for node in all_nodes: all_paths.append(node[1]) - path_second = ('second',) + path_second = ("second",) if path_second in all_paths: all_paths.remove(path_second) return all_nodes, all_paths def _path_to_box(self, path): - loc_in_dashboard = self['layout'] + loc_in_dashboard = self["layout"] for first_second in path: loc_in_dashboard = loc_in_dashboard[first_second] return loc_in_dashboard @@ -295,19 +316,19 @@ def _set_dashboard_size(self): if num_of_boxes == 0: pass elif num_of_boxes == 1: - self['layout']['size'] = 800 - self['layout']['sizeUnit'] = 'px' + self["layout"]["size"] = 800 + self["layout"]["sizeUnit"] = "px" elif num_of_boxes == 2: - self['layout']['size'] = 1500 - self['layout']['sizeUnit'] = 'px' + self["layout"]["size"] = 1500 + self["layout"]["sizeUnit"] = "px" else: - self['layout']['size'] = 1500 + 350 * (num_of_boxes - 2) - self['layout']['sizeUnit'] = 'px' + self["layout"]["size"] = 1500 + 350 * (num_of_boxes - 2) + self["layout"]["sizeUnit"] = "px" def get_box(self, box_id): """Returns box from box_id number.""" box_ids_to_path = self._compute_box_ids() - loc_in_dashboard = self['layout'] + loc_in_dashboard = self["layout"] if box_id not in box_ids_to_path.keys(): raise _plotly_utils.exceptions.PlotlyError(ID_NOT_VALID_MESSAGE) @@ -342,7 +363,7 @@ def get_preview(self): pprint.pprint(self) return - elif self['layout'] is None: + elif self["layout"] is None: return IPython.display.HTML(dashboard_html) top_left_x = 0 @@ -354,13 +375,13 @@ def get_preview(self): # used to store info about box dimensions path_to_box_specs = {} first_box_specs = { - 'top_left_x': top_left_x, - 'top_left_y': top_left_y, - 'box_w': box_w, - 'box_h': box_h + "top_left_x": top_left_x, + "top_left_y": top_left_y, + "box_w": box_w, + "box_h": box_h, } # uses tuples to store paths as for hashable keys - path_to_box_specs[('first',)] = first_box_specs + path_to_box_specs[("first",)] = first_box_specs # generate all paths all_nodes, all_paths = self._make_all_nodes_and_paths() @@ -370,77 +391,82 @@ def get_preview(self): for path in [path for path in all_paths if len(path) == path_len]: current_box_specs = path_to_box_specs[path] - if self._path_to_box(path)['type'] == 'split': - fill_percent = self._path_to_box(path)['size'] - direction = self._path_to_box(path)['direction'] - is_horizontal = (direction == 'horizontal') + if self._path_to_box(path)["type"] == "split": + fill_percent = self._path_to_box(path)["size"] + direction = self._path_to_box(path)["direction"] + is_horizontal = direction == "horizontal" - top_left_x = current_box_specs['top_left_x'] - top_left_y = current_box_specs['top_left_y'] - box_w = current_box_specs['box_w'] - box_h = current_box_specs['box_h'] + top_left_x = current_box_specs["top_left_x"] + top_left_y = current_box_specs["top_left_y"] + box_w = current_box_specs["box_w"] + box_h = current_box_specs["box_h"] html_figure = _draw_line_through_box( - html_figure, top_left_x, top_left_y, box_w, box_h, - is_horizontal=is_horizontal, direction=direction, - fill_percent=fill_percent + html_figure, + top_left_x, + top_left_y, + box_w, + box_h, + is_horizontal=is_horizontal, + direction=direction, + fill_percent=fill_percent, ) # determine the specs for resulting two box split if is_horizontal: new_top_left_x = top_left_x new_top_left_y = top_left_y - new_box_w = box_w * (fill_percent / 100.) + new_box_w = box_w * (fill_percent / 100.0) new_box_h = box_h new_top_left_x_2 = top_left_x + new_box_w new_top_left_y_2 = top_left_y - new_box_w_2 = box_w * ((100 - fill_percent) / 100.) + new_box_w_2 = box_w * ((100 - fill_percent) / 100.0) new_box_h_2 = box_h else: new_top_left_x = top_left_x new_top_left_y = top_left_y new_box_w = box_w - new_box_h = box_h * (fill_percent / 100.) + new_box_h = box_h * (fill_percent / 100.0) new_top_left_x_2 = top_left_x - new_top_left_y_2 = (top_left_y + - box_h * (fill_percent / 100.)) + new_top_left_y_2 = top_left_y + box_h * (fill_percent / 100.0) new_box_w_2 = box_w - new_box_h_2 = box_h * ((100 - fill_percent) / 100.) + new_box_h_2 = box_h * ((100 - fill_percent) / 100.0) first_box_specs = { - 'top_left_x': top_left_x, - 'top_left_y': top_left_y, - 'box_w': new_box_w, - 'box_h': new_box_h + "top_left_x": top_left_x, + "top_left_y": top_left_y, + "box_w": new_box_w, + "box_h": new_box_h, } second_box_specs = { - 'top_left_x': new_top_left_x_2, - 'top_left_y': new_top_left_y_2, - 'box_w': new_box_w_2, - 'box_h': new_box_h_2 + "top_left_x": new_top_left_x_2, + "top_left_y": new_top_left_y_2, + "box_w": new_box_w_2, + "box_h": new_box_h_2, } - path_to_box_specs[path + ('first',)] = first_box_specs - path_to_box_specs[path + ('second',)] = second_box_specs + path_to_box_specs[path + ("first",)] = first_box_specs + path_to_box_specs[path + ("second",)] = second_box_specs - elif self._path_to_box(path)['type'] == 'box': + elif self._path_to_box(path)["type"] == "box": for box_id in box_ids_to_path: if box_ids_to_path[box_id] == path: number = box_id html_figure = _add_html_text( - html_figure, number, - path_to_box_specs[path]['top_left_x'], - path_to_box_specs[path]['top_left_y'], - path_to_box_specs[path]['box_w'], - path_to_box_specs[path]['box_h'], + html_figure, + number, + path_to_box_specs[path]["top_left_x"], + path_to_box_specs[path]["top_left_y"], + path_to_box_specs[path]["box_w"], + path_to_box_specs[path]["box_h"], ) # display HTML representation return IPython.display.HTML(html_figure) - def insert(self, box, side='above', box_id=None, fill_percent=50): + def insert(self, box, side="above", box_id=None, fill_percent=50): """ Insert a box into your dashboard layout. @@ -484,9 +510,9 @@ def insert(self, box, side='above', box_id=None, fill_percent=50): box_ids_to_path = self._compute_box_ids() # doesn't need box_id or side specified for first box - if self['layout'] is None: - self['layout'] = _container( - box, _empty_box(), size=MASTER_HEIGHT, sizeUnit='px' + if self["layout"] is None: + self["layout"] = _container( + box, _empty_box(), size=MASTER_HEIGHT, sizeUnit="px" ) else: if box_id is None: @@ -499,36 +525,35 @@ def insert(self, box, side='above', box_id=None, fill_percent=50): if fill_percent < 0 or fill_percent > 100: raise _plotly_utils.exceptions.PlotlyError( - 'fill_percent must be a number between 0 and 100 ' - 'inclusive' + "fill_percent must be a number between 0 and 100 " "inclusive" ) - if side == 'above': + if side == "above": old_box = self.get_box(box_id) self._insert( - _container(box, old_box, direction='vertical', - size=fill_percent), - box_ids_to_path[box_id] + _container(box, old_box, direction="vertical", size=fill_percent), + box_ids_to_path[box_id], ) - elif side == 'below': + elif side == "below": old_box = self.get_box(box_id) self._insert( - _container(old_box, box, direction='vertical', - size=100 - fill_percent), - box_ids_to_path[box_id] + _container( + old_box, box, direction="vertical", size=100 - fill_percent + ), + box_ids_to_path[box_id], ) - elif side == 'left': + elif side == "left": old_box = self.get_box(box_id) self._insert( - _container(box, old_box, direction='horizontal', - size=fill_percent), - box_ids_to_path[box_id] + _container(box, old_box, direction="horizontal", size=fill_percent), + box_ids_to_path[box_id], ) - elif side == 'right': + elif side == "right": old_box = self.get_box(box_id) self._insert( - _container(old_box, box, direction='horizontal', - size =100 - fill_percent), - box_ids_to_path[box_id] + _container( + old_box, box, direction="horizontal", size=100 - fill_percent + ), + box_ids_to_path[box_id], ) else: raise _plotly_utils.exceptions.PlotlyError( @@ -565,17 +590,17 @@ def remove(self, box_id): raise _plotly_utils.exceptions.PlotlyError(ID_NOT_VALID_MESSAGE) path = box_ids_to_path[box_id] - if path != ('first',): + if path != ("first",): container_for_box_id = self._path_to_box(path[:-1]) - if path[-1] == 'first': - adjacent_path = 'second' - elif path[-1] == 'second': - adjacent_path = 'first' + if path[-1] == "first": + adjacent_path = "second" + elif path[-1] == "second": + adjacent_path = "first" adjacent_box = container_for_box_id[adjacent_path] self._insert(adjacent_box, path[:-1]) else: - self['layout'] = None + self["layout"] = None self._set_dashboard_size() @@ -623,7 +648,7 @@ def swap(self, box_id_1, box_id_2): box_b_path = box_ids_to_path[box_id_2] for pairs in [(box_a_path, box_b), (box_b_path, box_a)]: - loc_in_dashboard = self['layout'] + loc_in_dashboard = self["layout"] for first_second in pairs[0][:-1]: loc_in_dashboard = loc_in_dashboard[first_second] loc_in_dashboard[pairs[0][-1]] = pairs[1] diff --git a/packages/python/chart-studio/chart_studio/exceptions.py b/packages/python/chart-studio/chart_studio/exceptions.py index fa5054b86b3..b63a7057258 100644 --- a/packages/python/chart-studio/chart_studio/exceptions.py +++ b/packages/python/chart-studio/chart_studio/exceptions.py @@ -43,7 +43,7 @@ def __str__(self): NON_UNIQUE_COLUMN_MESSAGE = ( "Yikes, plotly grids currently " "can't have duplicate column names. Rename " - "the column \"{0}\" and try again." + 'the column "{0}" and try again.' ) # Local Config Errors diff --git a/packages/python/chart-studio/chart_studio/files.py b/packages/python/chart-studio/chart_studio/files.py index 19fe98ea5cf..ca04978d080 100644 --- a/packages/python/chart-studio/chart_studio/files.py +++ b/packages/python/chart-studio/chart_studio/files.py @@ -9,16 +9,22 @@ CONFIG_FILE = os.path.join(PLOTLY_DIR, ".config") # this sets both the DEFAULTS and the TYPES for these files -FILE_CONTENT = {CREDENTIALS_FILE: {'username': '', - 'api_key': '', - 'proxy_username': '', - 'proxy_password': '', - 'stream_ids': []}, - CONFIG_FILE: {'plotly_domain': 'https://plot.ly', - 'plotly_streaming_domain': 'stream.plot.ly', - 'plotly_api_domain': 'https://api.plot.ly', - 'plotly_ssl_verification': True, - 'plotly_proxy_authorization': False, - 'world_readable': True, - 'sharing': 'public', - 'auto_open': True}} +FILE_CONTENT = { + CREDENTIALS_FILE: { + "username": "", + "api_key": "", + "proxy_username": "", + "proxy_password": "", + "stream_ids": [], + }, + CONFIG_FILE: { + "plotly_domain": "https://plot.ly", + "plotly_streaming_domain": "stream.plot.ly", + "plotly_api_domain": "https://api.plot.ly", + "plotly_ssl_verification": True, + "plotly_proxy_authorization": False, + "world_readable": True, + "sharing": "public", + "auto_open": True, + }, +} diff --git a/packages/python/chart-studio/chart_studio/grid_objs/grid_objs.py b/packages/python/chart-studio/chart_studio/grid_objs/grid_objs.py index 92363da3852..39f1f1b6a9d 100644 --- a/packages/python/chart-studio/chart_studio/grid_objs/grid_objs.py +++ b/packages/python/chart-studio/chart_studio/grid_objs/grid_objs.py @@ -56,6 +56,7 @@ class Column(object): py.plot([trace], filename='graph from grid') ``` """ + def __init__(self, data, name): """ Initialize a Plotly column with `data` and `name`. @@ -69,7 +70,7 @@ def __init__(self, data, name): # TODO: name type checking self.name = name - self.id = '' + self.id = "" def __str__(self): max_chars = 10 @@ -85,7 +86,7 @@ def __repr__(self): return 'Column("{0}", {1})'.format(self.data, self.name) def to_plotly_json(self): - return {'name': self.name, 'data': self.data} + return {"name": self.name, "data": self.data} class Grid(MutableSequence): @@ -125,6 +126,7 @@ class Grid(MutableSequence): py.plot([trace], filename='graph from grid') ``` """ + def __init__(self, columns_or_json, fid=None): """ Initialize a grid with an iterable of `plotly.grid_objs.Column` @@ -154,7 +156,7 @@ def __init__(self, columns_or_json, fid=None): ``` """ # TODO: verify that columns are actually columns - pd = get_module('pandas') + pd = get_module("pandas") if pd and isinstance(columns_or_json, pd.DataFrame): duplicate_name = utils.get_first_duplicate(columns_or_json.columns) if duplicate_name: @@ -166,7 +168,7 @@ def __init__(self, columns_or_json, fid=None): for name in columns_or_json.columns: all_columns.append(Column(columns_or_json[name].tolist(), name)) self._columns = all_columns - self.id = '' + self.id = "" elif isinstance(columns_or_json, dict): # check that fid is entered @@ -180,17 +182,17 @@ def __init__(self, columns_or_json, fid=None): self.id = fid # check if 'cols' is a root key - if 'cols' not in columns_or_json: + if "cols" not in columns_or_json: raise _plotly_utils.exceptions.PlotlyError( "'cols' must be a root key in your json grid." ) # check if 'data', 'order' and 'uid' are not in columns - grid_col_keys = ['data', 'order', 'uid'] + grid_col_keys = ["data", "order", "uid"] - for column_name in columns_or_json['cols']: + for column_name in columns_or_json["cols"]: for key in grid_col_keys: - if key not in columns_or_json['cols'][column_name]: + if key not in columns_or_json["cols"][column_name]: raise _plotly_utils.exceptions.PlotlyError( "Each column name of your dictionary must have " "'data', 'order' and 'uid' as keys." @@ -198,26 +200,25 @@ def __init__(self, columns_or_json, fid=None): # collect and sort all orders in case orders do not start # at zero or there are jump discontinuities between them all_orders = [] - for column_name in columns_or_json['cols'].keys(): - all_orders.append(columns_or_json['cols'][column_name]['order']) + for column_name in columns_or_json["cols"].keys(): + all_orders.append(columns_or_json["cols"][column_name]["order"]) all_orders.sort() # put columns in order in a list ordered_columns = [] for order in all_orders: - for column_name in columns_or_json['cols'].keys(): - if columns_or_json['cols'][column_name]['order'] == order: + for column_name in columns_or_json["cols"].keys(): + if columns_or_json["cols"][column_name]["order"] == order: break - ordered_columns.append(Column( - columns_or_json['cols'][column_name]['data'], - column_name) + ordered_columns.append( + Column(columns_or_json["cols"][column_name]["data"], column_name) ) self._columns = ordered_columns # fill in column_ids for column in self: - column.id = self.id + ':' + columns_or_json['cols'][column.name]['uid'] + column.id = self.id + ":" + columns_or_json["cols"][column.name]["uid"] else: column_names = [column.name for column in columns_or_json] @@ -227,7 +228,7 @@ def __init__(self, columns_or_json, fid=None): raise exceptions.InputError(err) self._columns = list(columns_or_json) - self.id = '' + self.id = "" def __repr__(self): return self._columns.__repr__() @@ -259,11 +260,11 @@ def _validate_insertion(self, column): raise exceptions.InputError(err) def _to_plotly_grid_json(self): - grid_json = {'cols': {}} + grid_json = {"cols": {}} for column_index, column in enumerate(self): - grid_json['cols'][column.name] = { - 'data': column.data, - 'order': column_index + grid_json["cols"][column.name] = { + "data": column.data, + "order": column_index, } return grid_json diff --git a/packages/python/chart-studio/chart_studio/plotly/__init__.py b/packages/python/chart-studio/chart_studio/plotly/__init__.py index 2415356cfc8..6758807a156 100644 --- a/packages/python/chart-studio/chart_studio/plotly/__init__.py +++ b/packages/python/chart-studio/chart_studio/plotly/__init__.py @@ -7,7 +7,7 @@ verifiable account (username/api-key pair) and a network connection. """ -from . plotly import ( +from .plotly import ( sign_in, update_plot_options, get_credentials, @@ -27,5 +27,5 @@ presentation_ops, create_animations, icreate_animations, - parse_grid_id_args + parse_grid_id_args, ) diff --git a/packages/python/chart-studio/chart_studio/plotly/plotly.py b/packages/python/chart-studio/chart_studio/plotly/plotly.py index 1316c8f0775..95e16c982bf 100644 --- a/packages/python/chart-studio/chart_studio/plotly/plotly.py +++ b/packages/python/chart-studio/chart_studio/plotly/plotly.py @@ -45,16 +45,15 @@ __all__ = None DEFAULT_PLOT_OPTIONS = { - 'filename': "plot from API", - 'world_readable': files.FILE_CONTENT[files.CONFIG_FILE]['world_readable'], - 'auto_open': files.FILE_CONTENT[files.CONFIG_FILE]['auto_open'], - 'validate': True, - 'sharing': files.FILE_CONTENT[files.CONFIG_FILE]['sharing'] + "filename": "plot from API", + "world_readable": files.FILE_CONTENT[files.CONFIG_FILE]["world_readable"], + "auto_open": files.FILE_CONTENT[files.CONFIG_FILE]["auto_open"], + "validate": True, + "sharing": files.FILE_CONTENT[files.CONFIG_FILE]["sharing"], } SHARING_ERROR_MSG = ( - "Whoops, sharing can only be set to either 'public', 'private', or " - "'secret'." + "Whoops, sharing can only be set to either 'public', 'private', or " "'secret'." ) @@ -66,7 +65,8 @@ def sign_in(username, api_key, **kwargs): # with the given, username, api_key, and plotly_api_domain. v2.users.current() except exceptions.PlotlyRequestError: - raise _plotly_utils.exceptions.PlotlyError('Sign in failed.') + raise _plotly_utils.exceptions.PlotlyError("Sign in failed.") + update_plot_options = session.update_session_plot_options @@ -87,8 +87,7 @@ def _plot_option_logic(plot_options_from_args): plot_options_from_args = copy.deepcopy(plot_options_from_args) # Validate options and fill in defaults w world_readable and sharing - for option_set in [plot_options_from_args, - session_options, file_options]: + for option_set in [plot_options_from_args, session_options, file_options]: utils.validate_world_readable_and_sharing_settings(option_set) utils.set_sharing_and_world_readable(option_set) @@ -97,8 +96,9 @@ def _plot_option_logic(plot_options_from_args): user_plot_options.update(file_options) user_plot_options.update(session_options) user_plot_options.update(plot_options_from_args) - user_plot_options = {k: v for k, v in user_plot_options.items() - if k in default_plot_options} + user_plot_options = { + k: v for k, v in user_plot_options.items() if k in default_plot_options + } return user_plot_options @@ -128,12 +128,13 @@ def iplot(figure_or_data, **plot_options): Make this figure private/public """ from plotly.basedatatypes import BaseFigure, BaseLayoutType - if 'auto_open' not in plot_options: - plot_options['auto_open'] = False + + if "auto_open" not in plot_options: + plot_options["auto_open"] = False url = plot(figure_or_data, **plot_options) if isinstance(figure_or_data, dict): - layout = figure_or_data.get('layout', {}) + layout = figure_or_data.get("layout", {}) if isinstance(layout, BaseLayoutType): layout = layout.to_plotly_json() elif isinstance(figure_or_data, BaseFigure): @@ -142,21 +143,21 @@ def iplot(figure_or_data, **plot_options): layout = {} embed_options = dict() - embed_options['width'] = layout.get('width', '100%') - embed_options['height'] = layout.get('height', 525) + embed_options["width"] = layout.get("width", "100%") + embed_options["height"] = layout.get("height", 525) try: - float(embed_options['width']) + float(embed_options["width"]) except (ValueError, TypeError): pass else: - embed_options['width'] = str(embed_options['width']) + 'px' + embed_options["width"] = str(embed_options["width"]) + "px" try: - float(embed_options['height']) + float(embed_options["height"]) except (ValueError, TypeError): pass else: - embed_options['height'] = str(embed_options['height']) + 'px' + embed_options["height"] = str(embed_options["height"]) + "px" return tools.embed(url, **embed_options) @@ -191,29 +192,32 @@ def plot(figure_or_data, validate=True, **plot_options): """ import plotly.tools + figure = plotly.tools.return_figure_from_figure_or_data(figure_or_data, validate) - for entry in figure['data']: - if ('type' in entry) and (entry['type'] == 'scattergl'): + for entry in figure["data"]: + if ("type" in entry) and (entry["type"] == "scattergl"): continue for key, val in list(entry.items()): try: if len(val) > 40000: - msg = ("Woah there! Look at all those points! Due to " - "browser limitations, the Plotly SVG drawing " - "functions have a hard time " - "graphing more than 500k data points for line " - "charts, or 40k points for other types of charts. " - "Here are some suggestions:\n" - "(1) Use the `plotly.graph_objs.Scattergl` " - "trace object to generate a WebGl graph.\n" - "(2) Trying using the image API to return an image " - "instead of a graph URL\n" - "(3) Use matplotlib\n" - "(4) See if you can create your visualization with " - "fewer data points\n\n" - "If the visualization you're using aggregates " - "points (e.g., box plot, histogram, etc.) you can " - "disregard this warning.") + msg = ( + "Woah there! Look at all those points! Due to " + "browser limitations, the Plotly SVG drawing " + "functions have a hard time " + "graphing more than 500k data points for line " + "charts, or 40k points for other types of charts. " + "Here are some suggestions:\n" + "(1) Use the `plotly.graph_objs.Scattergl` " + "trace object to generate a WebGl graph.\n" + "(2) Trying using the image API to return an image " + "instead of a graph URL\n" + "(3) Use matplotlib\n" + "(4) See if you can create your visualization with " + "fewer data points\n\n" + "If the visualization you're using aggregates " + "points (e.g., box plot, histogram, etc.) you can " + "disregard this warning." + ) warnings.warn(msg) except TypeError: pass @@ -221,45 +225,40 @@ def plot(figure_or_data, validate=True, **plot_options): plot_options = _plot_option_logic(plot_options) # Initialize API payload - payload = { - 'figure': figure, - 'world_readable': True - } + payload = {"figure": figure, "world_readable": True} # Process filename - filename = plot_options.get('filename', None) + filename = plot_options.get("filename", None) if filename: # Strip trailing slash - if filename[-1] == '/': + if filename[-1] == "/": filename = filename[0:-1] # split off any parent directory - paths = filename.split('/') - parent_path = '/'.join(paths[0:-1]) + paths = filename.split("/") + parent_path = "/".join(paths[0:-1]) filename = paths[-1] # Create parent directory - if parent_path != '': + if parent_path != "": file_ops.ensure_dirs(parent_path) - payload['parent_path'] = parent_path + payload["parent_path"] = parent_path - payload['filename'] = filename + payload["filename"] = filename else: - parent_path = '' + parent_path = "" # Process sharing - sharing = plot_options.get('sharing', None) - if sharing == 'public': - payload['world_readable'] = True - elif sharing == 'private': - payload['world_readable'] = False - elif sharing == 'secret': - payload['world_readable'] = False - payload['share_key_enabled'] = True + sharing = plot_options.get("sharing", None) + if sharing == "public": + payload["world_readable"] = True + elif sharing == "private": + payload["world_readable"] = False + elif sharing == "secret": + payload["world_readable"] = False + payload["share_key_enabled"] = True else: - raise _plotly_utils.exceptions.PlotlyError( - SHARING_ERROR_MSG - ) + raise _plotly_utils.exceptions.PlotlyError(SHARING_ERROR_MSG) # Extract grid figure, grid = _extract_grid_from_fig_like(figure) @@ -269,29 +268,30 @@ def plot(figure_or_data, validate=True, **plot_options): if not filename: grid_filename = None elif parent_path: - grid_filename = parent_path + '/' + filename + '_grid' + grid_filename = parent_path + "/" + filename + "_grid" else: - grid_filename = filename + '_grid' + grid_filename = filename + "_grid" - grid_ops.upload(grid=grid, - filename=grid_filename, - world_readable=payload['world_readable'], - auto_open=False) + grid_ops.upload( + grid=grid, + filename=grid_filename, + world_readable=payload["world_readable"], + auto_open=False, + ) _set_grid_column_references(figure, grid) - payload['figure'] = figure + payload["figure"] = figure - file_info = _create_or_overwrite(payload, 'plot') + file_info = _create_or_overwrite(payload, "plot") # Compute viewing URL - if sharing == 'secret': - web_url = (file_info['web_url'][:-1] + - '?share_key=' + file_info['share_key']) + if sharing == "secret": + web_url = file_info["web_url"][:-1] + "?share_key=" + file_info["share_key"] else: - web_url = file_info['web_url'] + web_url = file_info["web_url"] # Handle auto_open - auto_open = plot_options.get('auto_open', None) + auto_open = plot_options.get("auto_open", None) if auto_open: _open_url(web_url) @@ -299,8 +299,7 @@ def plot(figure_or_data, validate=True, **plot_options): return web_url -def iplot_mpl(fig, resize=True, strip_style=False, update=None, - **plot_options): +def iplot_mpl(fig, resize=True, strip_style=False, update=None, **plot_options): """Replot a matplotlib figure with plotly in IPython. This function: @@ -322,6 +321,7 @@ def iplot_mpl(fig, resize=True, strip_style=False, update=None, """ import plotly.tools + fig = plotly.tools.mpl_to_plotly(fig, resize=resize, strip_style=strip_style) if update and isinstance(update, dict): fig.update(update) @@ -355,6 +355,7 @@ def plot_mpl(fig, resize=True, strip_style=False, update=None, **plot_options): """ import plotly.tools + fig = plotly.tools.mpl_to_plotly(fig, resize=resize, strip_style=strip_style) if update and isinstance(update, dict): fig.update(update) @@ -385,34 +386,36 @@ def _swap_keys(obj, key1, key2): def _swap_xy_data(data_obj): """Swap x and y data and references""" - swaps = [('x', 'y'), - ('x0', 'y0'), - ('dx', 'dy'), - ('xbins', 'ybins'), - ('nbinsx', 'nbinsy'), - ('autobinx', 'autobiny'), - ('error_x', 'error_y')] + swaps = [ + ("x", "y"), + ("x0", "y0"), + ("dx", "dy"), + ("xbins", "ybins"), + ("nbinsx", "nbinsy"), + ("autobinx", "autobiny"), + ("error_x", "error_y"), + ] for swap in swaps: _swap_keys(data_obj, swap[0], swap[1]) try: - rows = len(data_obj['z']) - cols = len(data_obj['z'][0]) - for row in data_obj['z']: + rows = len(data_obj["z"]) + cols = len(data_obj["z"][0]) + for row in data_obj["z"]: if len(row) != cols: raise TypeError # if we can't do transpose, we hit an exception before here - z = data_obj.pop('z') - data_obj['z'] = [[0 for rrr in range(rows)] for ccc in range(cols)] + z = data_obj.pop("z") + data_obj["z"] = [[0 for rrr in range(rows)] for ccc in range(cols)] for iii in range(rows): for jjj in range(cols): - data_obj['z'][jjj][iii] = z[iii][jjj] + data_obj["z"][jjj][iii] = z[iii][jjj] except (KeyError, TypeError, IndexError) as err: warn = False try: - if data_obj['z'] is not None: + if data_obj["z"] is not None: warn = True - if len(data_obj['z']) == 0: + if len(data_obj["z"]) == 0: warn = False except (KeyError, TypeError): pass @@ -427,12 +430,11 @@ def _swap_xy_data(data_obj): def byteify(input): """Convert unicode strings in JSON object to byte strings""" if isinstance(input, dict): - return {byteify(key): byteify(value) - for key, value in input.iteritems()} + return {byteify(key): byteify(value) for key, value in input.iteritems()} elif isinstance(input, list): return [byteify(element) for element in input] elif isinstance(input, unicode): - return input.encode('utf-8') + return input.encode("utf-8") else: return input @@ -475,20 +477,22 @@ def get_figure(file_owner_or_url, file_id=None, raw=False): """ import plotly.tools - plotly_rest_url = get_config()['plotly_domain'] + + plotly_rest_url = get_config()["plotly_domain"] if file_id is None: # assume we're using a url url = file_owner_or_url - if url[:len(plotly_rest_url)] != plotly_rest_url: + if url[: len(plotly_rest_url)] != plotly_rest_url: raise _plotly_utils.exceptions.PlotlyError( "Because you didn't supply a 'file_id' in the call, " "we're assuming you're trying to snag a figure from a url. " "You supplied the url, '{0}', we expected it to start with " "'{1}'." "\nRun help on this function for more information." - "".format(url, plotly_rest_url)) + "".format(url, plotly_rest_url) + ) head = plotly_rest_url + "/~" - file_owner = url.replace(head, "").split('/')[0] - file_id = url.replace(head, "").split('/')[1] + file_owner = url.replace(head, "").split("/")[0] + file_id = url.replace(head, "").split("/")[1] else: file_owner = file_owner_or_url try: @@ -505,50 +509,51 @@ def get_figure(file_owner_or_url, file_id=None, raw=False): "The 'file_id' argument must be a non-negative number." ) - fid = '{}:{}'.format(file_owner, file_id) + fid = "{}:{}".format(file_owner, file_id) response = v2.plots.content(fid, inline_data=True) figure = response.json() if six.PY2: figure = byteify(figure) # Fix 'histogramx', 'histogramy', and 'bardir' stuff - for index, entry in enumerate(figure['data']): + for index, entry in enumerate(figure["data"]): try: # Use xbins to bin data in x, and ybins to bin data in y - if all((entry['type'] == 'histogramy', 'xbins' in entry, - 'ybins' not in entry)): - entry['ybins'] = entry.pop('xbins') + if all( + (entry["type"] == "histogramy", "xbins" in entry, "ybins" not in entry) + ): + entry["ybins"] = entry.pop("xbins") # Convert bardir to orientation, and put the data into the axes # it's eventually going to be used with - if entry['type'] in ['histogramx', 'histogramy']: - entry['type'] = 'histogram' - if 'bardir' in entry: - entry['orientation'] = entry.pop('bardir') - if entry['type'] == 'bar': - if entry['orientation'] == 'h': + if entry["type"] in ["histogramx", "histogramy"]: + entry["type"] = "histogram" + if "bardir" in entry: + entry["orientation"] = entry.pop("bardir") + if entry["type"] == "bar": + if entry["orientation"] == "h": _swap_xy_data(entry) - if entry['type'] == 'histogram': - if ('x' in entry) and ('y' not in entry): - if entry['orientation'] == 'h': + if entry["type"] == "histogram": + if ("x" in entry) and ("y" not in entry): + if entry["orientation"] == "h": _swap_xy_data(entry) - del entry['orientation'] - if ('y' in entry) and ('x' not in entry): - if entry['orientation'] == 'v': + del entry["orientation"] + if ("y" in entry) and ("x" not in entry): + if entry["orientation"] == "v": _swap_xy_data(entry) - del entry['orientation'] - figure['data'][index] = entry + del entry["orientation"] + figure["data"][index] = entry except KeyError: pass # Remove stream dictionary if found in a data trace # (it has private tokens in there we need to hide!) - for index, entry in enumerate(figure['data']): - if 'stream' in entry: - del figure['data'][index]['stream'] + for index, entry in enumerate(figure["data"]): + if "stream" in entry: + del figure["data"][index]["stream"] if raw: return figure - return plotly.tools.get_graph_obj(figure, obj_type='Figure') + return plotly.tools.get_graph_obj(figure, obj_type="Figure") @_plotly_utils.utils.template_doc(**tools.get_config_file()) @@ -607,28 +612,27 @@ def get_streaming_specs(self): Returns the streaming server, port, ssl_enabled flag, and headers. """ - streaming_url = get_config()['plotly_streaming_domain'] - ssl_verification_enabled = get_config()['plotly_ssl_verification'] - ssl_enabled = 'https' in streaming_url + streaming_url = get_config()["plotly_streaming_domain"] + ssl_verification_enabled = get_config()["plotly_ssl_verification"] + ssl_enabled = "https" in streaming_url port = self.HTTPS_PORT if ssl_enabled else self.HTTP_PORT # If no scheme (https/https) is included in the streaming_url, the # host will be None. Use streaming_url in this case. - host = (six.moves.urllib.parse.urlparse(streaming_url).hostname or - streaming_url) + host = six.moves.urllib.parse.urlparse(streaming_url).hostname or streaming_url - headers = {'Host': host, 'plotly-streamtoken': self.stream_id} + headers = {"Host": host, "plotly-streamtoken": self.stream_id} streaming_specs = { - 'server': host, - 'port': port, - 'ssl_enabled': ssl_enabled, - 'ssl_verification_enabled': ssl_verification_enabled, - 'headers': headers + "server": host, + "port": port, + "ssl_enabled": ssl_enabled, + "ssl_verification_enabled": ssl_verification_enabled, + "headers": headers, } return streaming_specs - def heartbeat(self, reconnect_on=(200, '', 408, 502)): + def heartbeat(self, reconnect_on=(200, "", 408, 502)): """ Keep stream alive. Streams will close after ~1 min of inactivity. @@ -638,7 +642,7 @@ def heartbeat(self, reconnect_on=(200, '', 408, 502)): """ try: - self._stream.write('\n', reconnect_on=reconnect_on) + self._stream.write("\n", reconnect_on=reconnect_on) except AttributeError: raise _plotly_utils.exceptions.PlotlyError( "Stream has not been opened yet, " @@ -665,8 +669,7 @@ def open(self): streaming_specs = self.get_streaming_specs() self._stream = chunked_requests.Stream(**streaming_specs) - def write(self, trace, layout=None, - reconnect_on=(200, '', 408, 502)): + def write(self, trace, layout=None, reconnect_on=(200, "", 408, 502)): """ Write to an open stream. @@ -711,13 +714,14 @@ def write(self, trace, layout=None, # Convert trace objects to dictionaries from plotly.basedatatypes import BaseTraceType + if isinstance(trace, BaseTraceType): stream_object = trace.to_plotly_json() else: stream_object = copy.deepcopy(trace) # Remove 'type' if present since this trace type cannot be changed - stream_object.pop('type', None) + stream_object.pop("type", None) if layout is not None: stream_object.update(dict(layout=layout)) @@ -732,7 +736,8 @@ def write(self, trace, layout=None, raise _plotly_utils.exceptions.PlotlyError( "Stream has not been opened yet, " "cannot write to a closed connection. " - "Call `open()` on the stream to open the stream.") + "Call `open()` on the stream to open the stream." + ) def close(self): """ @@ -746,7 +751,9 @@ def close(self): try: self._stream.close() except AttributeError: - raise _plotly_utils.exceptions.PlotlyError("Stream has not been opened yet.") + raise _plotly_utils.exceptions.PlotlyError( + "Stream has not been opened yet." + ) class image: @@ -754,8 +761,9 @@ class image: Helper functions wrapped around plotly's static image generation api. """ + @staticmethod - def get(figure_or_data, format='png', width=None, height=None, scale=None): + def get(figure_or_data, format="png", width=None, height=None, scale=None): """Return a static image of the plot described by `figure_or_data`. positional arguments: @@ -780,9 +788,10 @@ def get(figure_or_data, format='png', width=None, height=None, scale=None): """ # TODO: format is a built-in name... we shouldn't really use it import plotly.tools + figure = plotly.tools.return_figure_from_figure_or_data(figure_or_data, True) - if format not in ['png', 'svg', 'jpeg', 'pdf', 'emf']: + if format not in ["png", "svg", "jpeg", "pdf", "emf"]: raise _plotly_utils.exceptions.PlotlyError( "Invalid format. This version of your Plotly-Python " "package currently only supports png, svg, jpeg, and pdf. " @@ -798,30 +807,30 @@ def get(figure_or_data, format='png', width=None, height=None, scale=None): "Invalid scale parameter. Scale must be a number." ) - payload = {'figure': figure, 'format': format} + payload = {"figure": figure, "format": format} if width is not None: - payload['width'] = width + payload["width"] = width if height is not None: - payload['height'] = height + payload["height"] = height if scale is not None: - payload['scale'] = scale + payload["scale"] = scale response = v2.images.create(payload) headers = response.headers - if ('content-type' in headers and - headers['content-type'] in ['image/png', 'image/jpeg', - 'application/pdf', - 'image/svg+xml', - 'image/emf']): + if "content-type" in headers and headers["content-type"] in [ + "image/png", + "image/jpeg", + "application/pdf", + "image/svg+xml", + "image/emf", + ]: return response.content - elif ('content-type' in headers and - 'json' in headers['content-type']): - return response.json()['image'] + elif "content-type" in headers and "json" in headers["content-type"]: + return response.json()["image"] @classmethod - def ishow(cls, figure_or_data, format='png', width=None, height=None, - scale=None): + def ishow(cls, figure_or_data, format="png", width=None, height=None, scale=None): """Display a static image of the plot described by `figure_or_data` in an IPython Notebook. @@ -842,23 +851,26 @@ def ishow(cls, figure_or_data, format='png', width=None, height=None, fig = {'data': [{'x': [1, 2, 3], 'y': [3, 1, 5], 'type': 'bar'}]} py.image.ishow(fig, 'png', scale=3) """ - if format == 'pdf': + if format == "pdf": raise _plotly_utils.exceptions.PlotlyError( "Aw, snap! " "It's not currently possible to embed a pdf into " "an IPython notebook. You can save the pdf " "with the `image.save_as` or you can " - "embed an png, jpeg, or svg.") + "embed an png, jpeg, or svg." + ) img = cls.get(figure_or_data, format, width, height, scale) from IPython.display import display, Image, SVG - if format == 'svg': + + if format == "svg": display(SVG(img)) else: display(Image(img)) @classmethod - def save_as(cls, figure_or_data, filename, format=None, width=None, - height=None, scale=None): + def save_as( + cls, figure_or_data, filename, format=None, width=None, height=None, scale=None + ): """Save a image of the plot described by `figure_or_data` locally as `filename`. @@ -888,15 +900,15 @@ def save_as(cls, figure_or_data, filename, format=None, width=None, # todo: format shadows built-in name (base, ext) = os.path.splitext(filename) if not ext and not format: - filename += '.png' + filename += ".png" elif ext and not format: format = ext[1:] elif not ext and format: - filename += '.' + format + filename += "." + format img = cls.get(figure_or_data, format, width, height, scale) - f = open(filename, 'wb') + f = open(filename, "wb") f.write(img) f.close() @@ -931,7 +943,7 @@ def mkdirs(cls, folder_path): >> mkdirs('new/folder/path') """ - response = v2.folders.create({'path': folder_path}) + response = v2.folders.create({"path": folder_path}) return response.status_code @classmethod @@ -943,7 +955,7 @@ def ensure_dirs(cls, folder_path): try: cls.mkdirs(folder_path) except exceptions.PlotlyRequestError as e: - if 'already exists' in e.message: + if "already exists" in e.message: pass else: raise e @@ -967,13 +979,13 @@ class grid_ops: To delete one of your grid objects, see `grid_ops.delete`. """ + @classmethod - def _fill_in_response_column_ids(cls, request_columns, - response_columns, grid_id): + def _fill_in_response_column_ids(cls, request_columns, response_columns, grid_id): for req_col in request_columns: for resp_col in response_columns: - if resp_col['name'] == req_col.name: - req_col.id = '{0}:{1}'.format(grid_id, resp_col['uid']) + if resp_col["name"] == req_col.name: + req_col.id = "{0}:{1}".format(grid_id, resp_col["uid"]) response_columns.remove(resp_col) @staticmethod @@ -981,13 +993,14 @@ def ensure_uploaded(fid): if fid: return raise _plotly_utils.exceptions.PlotlyError( - 'This operation requires that the grid has already been uploaded ' - 'to Plotly. Try `uploading` first.' + "This operation requires that the grid has already been uploaded " + "to Plotly. Try `uploading` first." ) @classmethod - def upload(cls, grid, filename=None, - world_readable=True, auto_open=True, meta=None): + def upload( + cls, grid, filename=None, world_readable=True, auto_open=True, meta=None + ): """ Upload a grid to your Plotly account with the specified filename. @@ -1050,42 +1063,42 @@ def upload(cls, grid, filename=None, # transmorgify grid object into plotly's format grid_json = grid._to_plotly_grid_json() if meta is not None: - grid_json['metadata'] = meta + grid_json["metadata"] = meta # Make a folder path if filename: - if filename[-1] == '/': + if filename[-1] == "/": filename = filename[0:-1] - paths = filename.split('/') - parent_path = '/'.join(paths[0:-1]) + paths = filename.split("/") + parent_path = "/".join(paths[0:-1]) filename = paths[-1] - if parent_path != '': + if parent_path != "": file_ops.ensure_dirs(parent_path) else: # Create anonymous grid name hash_val = hash(json.dumps(grid_json, sort_keys=True)) - id = base64.urlsafe_b64encode(str(hash_val).encode('utf8')) - id_str = id.decode(encoding='utf8').replace('=', '') - filename = 'grid_' + id_str + id = base64.urlsafe_b64encode(str(hash_val).encode("utf8")) + id_str = id.decode(encoding="utf8").replace("=", "") + filename = "grid_" + id_str # filename = 'grid_' + str(hash_val) - parent_path = '' + parent_path = "" payload = { - 'filename': filename, - 'data': grid_json, - 'world_readable': world_readable + "filename": filename, + "data": grid_json, + "world_readable": world_readable, } - if parent_path != '': - payload['parent_path'] = parent_path + if parent_path != "": + payload["parent_path"] = parent_path - file_info = _create_or_overwrite(payload, 'grid') + file_info = _create_or_overwrite(payload, "grid") - cols = file_info['cols'] - fid = file_info['fid'] - web_url = file_info['web_url'] + cols = file_info["cols"] + fid = file_info["fid"] + web_url = file_info["web_url"] # mutate the grid columns with the id's returned from the server cls._fill_in_response_column_ids(grid, cols, fid) @@ -1153,14 +1166,12 @@ def append_columns(cls, columns, grid=None, grid_url=None): raise exceptions.InputError(err) # This is sorta gross, we need to double-encode this. - body = { - 'cols': _json.dumps(columns, cls=PlotlyJSONEncoder) - } + body = {"cols": _json.dumps(columns, cls=PlotlyJSONEncoder)} fid = grid_id response = v2.grids.col_create(fid, body) parsed_content = response.json() - cls._fill_in_response_column_ids(columns, parsed_content['cols'], fid) + cls._fill_in_response_column_ids(columns, parsed_content["cols"], fid) if grid: grid.extend(columns) @@ -1222,21 +1233,24 @@ def append_rows(cls, rows, grid=None, grid_url=None): "The number of entries in " "each row needs to equal the number of columns in " "the grid. Row {0} has {1} {2} but your " - "grid has {3} {4}. " - .format(row_i, len(row), - 'entry' if len(row) == 1 else 'entries', - n_columns, - 'column' if n_columns == 1 else 'columns')) + "grid has {3} {4}. ".format( + row_i, + len(row), + "entry" if len(row) == 1 else "entries", + n_columns, + "column" if n_columns == 1 else "columns", + ) + ) fid = grid_id - v2.grids.row(fid, {'rows': rows}) + v2.grids.row(fid, {"rows": rows}) if grid: longest_column_length = max([len(col.data) for col in grid]) for column in grid: n_empty_rows = longest_column_length - len(column.data) - empty_string_rows = ['' for _ in range(n_empty_rows)] + empty_string_rows = ["" for _ in range(n_empty_rows)] column.data.extend(empty_string_rows) column_extensions = zip(*rows) @@ -1339,7 +1353,7 @@ def upload(cls, meta, grid=None, grid_url=None): """ fid = parse_grid_id_args(grid, grid_url) - return v2.grids.update(fid, {'metadata': meta}).json() + return v2.grids.update(fid, {"metadata": meta}).json() def parse_grid_id_args(grid, grid_url): @@ -1354,10 +1368,11 @@ def parse_grid_id_args(grid, grid_url): else: id_from_grid = None args = [id_from_grid, grid_url] - arg_names = ('grid', 'grid_url') + arg_names = ("grid", "grid_url") - supplied_arg_names = [arg_name for arg_name, arg - in zip(arg_names, args) if arg is not None] + supplied_arg_names = [ + arg_name for arg_name, arg in zip(arg_names, args) if arg is not None + ] if not supplied_arg_names: raise exceptions.InputError( @@ -1370,15 +1385,14 @@ def parse_grid_id_args(grid, grid_url): ) elif len(supplied_arg_names) > 1: raise exceptions.InputError( - "Only one of `grid` or `grid_url` is required. \n" - "You supplied both. \n" + "Only one of `grid` or `grid_url` is required. \n" "You supplied both. \n" ) else: supplied_arg_name = supplied_arg_names.pop() - if supplied_arg_name == 'grid_url': + if supplied_arg_name == "grid_url": path = six.moves.urllib.parse.urlparse(grid_url).path - file_owner, file_id = path.replace("/~", "").split('/')[0:2] - return '{0}:{1}'.format(file_owner, file_id) + file_owner, file_id = path.replace("/~", "").split("/")[0:2] + return "{0}:{1}".format(file_owner, file_id) else: return grid.id @@ -1389,10 +1403,10 @@ def add_share_key_to_url(plot_url, attempt=0): """ urlsplit = six.moves.urllib.parse.urlparse(plot_url) - username = urlsplit.path.split('/')[1].split('~')[1] - idlocal = urlsplit.path.split('/')[2] - fid = '{}:{}'.format(username, idlocal) - body = {'share_key_enabled': True, 'world_readable': False} + username = urlsplit.path.split("/")[1].split("~")[1] + idlocal = urlsplit.path.split("/")[2] + fid = "{}:{}".format(username, idlocal) + body = {"share_key_enabled": True, "world_readable": False} response = v2.files.update(fid, body) # Sometimes a share key is added, but access is still denied. @@ -1400,7 +1414,7 @@ def add_share_key_to_url(plot_url, attempt=0): # retry if this is not the case # https://github.com/plotly/streambed/issues/4089 time.sleep(4) - share_key_enabled = v2.files.retrieve(fid).json()['share_key_enabled'] + share_key_enabled = v2.files.retrieve(fid).json()["share_key_enabled"] if not share_key_enabled: attempt += 1 if attempt == 50: @@ -1410,7 +1424,7 @@ def add_share_key_to_url(plot_url, attempt=0): ) add_share_key_to_url(plot_url, attempt) - url_share_key = plot_url + '?share_key=' + response.json()['share_key'] + url_share_key = plot_url + "?share_key=" + response.json()["share_key"] return url_share_key @@ -1448,25 +1462,25 @@ def _create_or_overwrite(data, filetype): dict File info from API response """ - api_module = getattr(v2, filetype + 's') + api_module = getattr(v2, filetype + "s") # lookup if pre-existing filename already exists - if 'parent_path' in data: - filename = data['parent_path'] + '/' + data['filename'] + if "parent_path" in data: + filename = data["parent_path"] + "/" + data["filename"] else: - filename = data.get('filename', None) + filename = data.get("filename", None) if filename: try: lookup_res = v2.files.lookup(filename) if isinstance(lookup_res.content, bytes): - content = lookup_res.content.decode('utf-8') + content = lookup_res.content.decode("utf-8") else: content = lookup_res.content matching_file = json.loads(content) - fid = matching_file['fid'] + fid = matching_file["fid"] # Delete fid # This requires sending file to trash and then deleting it @@ -1486,7 +1500,7 @@ def _create_or_overwrite(data, filetype): # Get resulting file content file_info = res.json() - file_info = file_info.get('file', file_info) + file_info = file_info.get("file", file_info) return file_info @@ -1539,8 +1553,9 @@ class dashboard_ops: first_dboard.get_preview() ``` """ + @classmethod - def upload(cls, dashboard, filename, sharing='public', auto_open=True): + def upload(cls, dashboard, filename, sharing="public", auto_open=True): """ BETA function for uploading/overwriting dashboards to Plotly. @@ -1558,28 +1573,28 @@ def upload(cls, dashboard, filename, sharing='public', auto_open=True): :param (bool) auto_open: automatically opens the dashboard in the browser. """ - if sharing == 'public': + if sharing == "public": world_readable = True - elif sharing == 'private': + elif sharing == "private": world_readable = False - elif sharing == 'secret': + elif sharing == "secret": world_readable = False data = { - 'content': json.dumps(dashboard), - 'filename': filename, - 'world_readable': world_readable + "content": json.dumps(dashboard), + "filename": filename, + "world_readable": world_readable, } - file_info = _create_or_overwrite(data, 'dashboard') + file_info = _create_or_overwrite(data, "dashboard") - url = file_info['web_url'] + url = file_info["web_url"] - if sharing == 'secret': + if sharing == "secret": url = add_share_key_to_url(url) if auto_open: - webbrowser.open_new(file_info['web_url']) + webbrowser.open_new(file_info["web_url"]) return url @@ -1588,14 +1603,14 @@ def _get_all_dashboards(cls): dashboards = [] res = v2.dashboards.list().json() - for dashboard in res['results']: - if not dashboard['deleted']: + for dashboard in res["results"]: + if not dashboard["deleted"]: dashboards.append(dashboard) - while res['next']: - res = v2.utils.request('get', res['next']).json() + while res["next"]: + res = v2.utils.request("get", res["next"]).json() - for dashboard in res['results']: - if not dashboard['deleted']: + for dashboard in res["results"]: + if not dashboard["deleted"]: dashboards.append(dashboard) return dashboards @@ -1603,14 +1618,14 @@ def _get_all_dashboards(cls): def _get_dashboard_json(cls, dashboard_name, only_content=True): dashboards = cls._get_all_dashboards() for index, dboard in enumerate(dashboards): - if dboard['filename'] == dashboard_name: + if dboard["filename"] == dashboard_name: break dashboard = v2.utils.request( - 'get', dashboards[index]['api_urls']['dashboards'] + "get", dashboards[index]["api_urls"]["dashboards"] ).json() if only_content: - dashboard_json = json.loads(dashboard['content']) + dashboard_json = json.loads(dashboard["content"]) return dashboard_json else: return dashboard @@ -1625,15 +1640,16 @@ def get_dashboard(cls, dashboard_name): def get_dashboard_names(cls): """Return list of all active dashboard names from users' account.""" dashboards = cls._get_all_dashboards() - return [str(dboard['filename']) for dboard in dashboards] + return [str(dboard["filename"]) for dboard in dashboards] class presentation_ops: """ Interface to Plotly's Spectacle-Presentations API. """ + @classmethod - def upload(cls, presentation, filename, sharing='public', auto_open=True): + def upload(cls, presentation, filename, sharing="public", auto_open=True): """ Function for uploading presentations to Plotly. @@ -1655,29 +1671,27 @@ def upload(cls, presentation, filename, sharing='public', auto_open=True): See the documentation online for examples. """ - if sharing == 'public': + if sharing == "public": world_readable = True - elif sharing in ['private', 'secret']: + elif sharing in ["private", "secret"]: world_readable = False else: - raise _plotly_utils.exceptions.PlotlyError( - SHARING_ERROR_MSG - ) + raise _plotly_utils.exceptions.PlotlyError(SHARING_ERROR_MSG) data = { - 'content': json.dumps(presentation), - 'filename': filename, - 'world_readable': world_readable + "content": json.dumps(presentation), + "filename": filename, + "world_readable": world_readable, } - file_info = _create_or_overwrite(data, 'spectacle_presentation') + file_info = _create_or_overwrite(data, "spectacle_presentation") - url = file_info['web_url'] + url = file_info["web_url"] - if sharing == 'secret': + if sharing == "secret": url = add_share_key_to_url(url) if auto_open: - webbrowser.open_new(file_info['web_url']) + webbrowser.open_new(file_info["web_url"]) return url @@ -1707,13 +1721,13 @@ def _extract_grid_graph_obj(obj_dict, reference_obj, grid, path): from chart_studio.grid_objs import Column for prop in list(obj_dict.keys()): - propsrc = '{}src'.format(prop) + propsrc = "{}src".format(prop) if propsrc in reference_obj: val = obj_dict[prop] if is_array(val): column = Column(val, path + prop) grid.append(column) - obj_dict[propsrc] = 'TBD' + obj_dict[propsrc] = "TBD" del obj_dict[prop] elif prop in reference_obj: @@ -1724,7 +1738,8 @@ def _extract_grid_graph_obj(obj_dict, reference_obj, grid, path): obj_dict[prop], reference_obj[prop], grid, - '{path}{prop}.'.format(path=path, prop=prop)) + "{path}{prop}.".format(path=path, prop=prop), + ) # Chart studio doesn't handle links to columns inside object # arrays, so we don't extract them for now. Logic below works @@ -1742,7 +1757,7 @@ def _extract_grid_graph_obj(obj_dict, reference_obj, grid, path): # ) -def _extract_grid_from_fig_like(fig, grid=None, path=''): +def _extract_grid_from_fig_like(fig, grid=None, path=""): """ Extract inline data arrays from a figure and place them in a grid @@ -1779,26 +1794,27 @@ def _extract_grid_from_fig_like(fig, grid=None, path=''): elif isinstance(fig, dict): fig_dict = copy.deepcopy(fig) if copy_fig else fig else: - raise ValueError('Invalid figure type {}'.format(type(fig))) + raise ValueError("Invalid figure type {}".format(type(fig))) # Process traces reference_fig = Figure() reference_traces = {} - for i, trace_dict in enumerate(fig_dict.get('data', [])): - trace_type = trace_dict.get('type', 'scatter') + for i, trace_dict in enumerate(fig_dict.get("data", [])): + trace_type = trace_dict.get("type", "scatter") if trace_type not in reference_traces: reference_traces[trace_type] = reference_fig.add_trace( - {'type': trace_type}).data[-1] + {"type": trace_type} + ).data[-1] reference_trace = reference_traces[trace_type] _extract_grid_graph_obj( - trace_dict, reference_trace, grid, path + 'data.{}.'.format(i)) + trace_dict, reference_trace, grid, path + "data.{}.".format(i) + ) # Process frames - if 'frames' in fig_dict: - for i, frame_dict in enumerate(fig_dict['frames']): - _extract_grid_from_fig_like( - frame_dict, grid, 'frames.{}.'.format(i)) + if "frames" in fig_dict: + for i, frame_dict in enumerate(fig_dict["frames"]): + _extract_grid_from_fig_like(frame_dict, grid, "frames.{}.".format(i)) return fig_dict, grid @@ -1821,16 +1837,17 @@ def _set_grid_column_references(figure, grid): Function modifies figure in-place """ from plotly.basedatatypes import BaseFigure + for col in grid: prop_path = BaseFigure._str_to_dict_path(col.name) prop_parent = figure for prop in prop_path[:-1]: prop_parent = prop_parent[prop] - prop_parent[prop_path[-1] + 'src'] = col.id + prop_parent[prop_path[-1] + "src"] = col.id -def create_animations(figure, filename=None, sharing='public', auto_open=True): +def create_animations(figure, filename=None, sharing="public", auto_open=True): """ BETA function that creates plots with animations via `frames`. @@ -1998,15 +2015,10 @@ def create_animations(figure, filename=None, sharing='public', auto_open=True): """ # This function is no longer needed since plot now supports figures with # frames. Delegate to this implementation for compatibility - return plot( - figure, - filename=filename, - sharing=sharing, - auto_open=auto_open, - ) + return plot(figure, filename=filename, sharing=sharing, auto_open=auto_open) -def icreate_animations(figure, filename=None, sharing='public', auto_open=False): +def icreate_animations(figure, filename=None, sharing="public", auto_open=False): """ Create a unique url for this animated plot in Plotly and open in IPython. @@ -2014,10 +2026,11 @@ def icreate_animations(figure, filename=None, sharing='public', auto_open=False) create_animations` Doc String for param descriptions. """ from plotly.basedatatypes import BaseFigure, BaseLayoutType + url = create_animations(figure, filename, sharing, auto_open) if isinstance(figure, dict): - layout = figure.get('layout', {}) + layout = figure.get("layout", {}) if isinstance(layout, BaseLayoutType): layout = layout.to_plotly_json() elif isinstance(figure, BaseFigure): @@ -2026,21 +2039,21 @@ def icreate_animations(figure, filename=None, sharing='public', auto_open=False) layout = {} embed_options = dict() - embed_options['width'] = layout.get('width', '100%') - embed_options['height'] = layout.get('height', 525) + embed_options["width"] = layout.get("width", "100%") + embed_options["height"] = layout.get("height", 525) try: - float(embed_options['width']) + float(embed_options["width"]) except (ValueError, TypeError): pass else: - embed_options['width'] = str(embed_options['width']) + 'px' + embed_options["width"] = str(embed_options["width"]) + "px" try: - float(embed_options['height']) + float(embed_options["height"]) except (ValueError, TypeError): pass else: - embed_options['height'] = str(embed_options['height']) + 'px' + embed_options["height"] = str(embed_options["height"]) + "px" return tools.embed(url, **embed_options) @@ -2048,6 +2061,7 @@ def icreate_animations(figure, filename=None, sharing='public', auto_open=False) def _open_url(url): try: from webbrowser import open as wbopen + wbopen(url) except: # TODO: what should we except here? this is dangerous pass diff --git a/packages/python/chart-studio/chart_studio/presentation_objs/__init__.py b/packages/python/chart-studio/chart_studio/presentation_objs/__init__.py index a75135763d3..2782f2af936 100644 --- a/packages/python/chart-studio/chart_studio/presentation_objs/__init__.py +++ b/packages/python/chart-studio/chart_studio/presentation_objs/__init__.py @@ -5,4 +5,4 @@ =========== """ -from . presentation_objs import Presentation +from .presentation_objs import Presentation diff --git a/packages/python/chart-studio/chart_studio/presentation_objs/presentation_objs.py b/packages/python/chart-studio/chart_studio/presentation_objs/presentation_objs.py index 699f6996121..eee6616e088 100644 --- a/packages/python/chart-studio/chart_studio/presentation_objs/presentation_objs.py +++ b/packages/python/chart-studio/chart_studio/presentation_objs/presentation_objs.py @@ -18,38 +18,59 @@ HEIGHT = 700.0 WIDTH = 1000.0 -CODEPANE_THEMES = ['tomorrow', 'tomorrowNight'] - -VALID_LANGUAGES = ['cpp', 'cs', 'css', 'fsharp', 'go', 'haskell', 'java', - 'javascript', 'jsx', 'julia', 'xml', 'matlab', 'php', - 'python', 'r', 'ruby', 'scala', 'sql', 'yaml'] +CODEPANE_THEMES = ["tomorrow", "tomorrowNight"] + +VALID_LANGUAGES = [ + "cpp", + "cs", + "css", + "fsharp", + "go", + "haskell", + "java", + "javascript", + "jsx", + "julia", + "xml", + "matlab", + "php", + "python", + "r", + "ruby", + "scala", + "sql", + "yaml", +] -VALID_TRANSITIONS = ['slide', 'zoom', 'fade', 'spin'] +VALID_TRANSITIONS = ["slide", "zoom", "fade", "spin"] -PRES_THEMES = ['moods', 'martik'] +PRES_THEMES = ["moods", "martik"] VALID_GROUPTYPES = [ - 'leftgroup_v', 'rightgroup_v', 'middle', 'checkerboard_topleft', - 'checkerboard_topright' + "leftgroup_v", + "rightgroup_v", + "middle", + "checkerboard_topleft", + "checkerboard_topright", ] fontWeight_dict = { - 'Thin': {'fontWeight': 100}, - 'Thin Italic': {'fontWeight': 100, 'fontStyle': 'italic'}, - 'Light': {'fontWeight': 300}, - 'Light Italic': {'fontWeight': 300, 'fontStyle': 'italic'}, - 'Regular': {'fontWeight': 400}, - 'Regular Italic': {'fontWeight': 400, 'fontStyle': 'italic'}, - 'Medium': {'fontWeight': 500}, - 'Medium Italic': {'fontWeight': 500, 'fontStyle': 'italic'}, - 'Bold': {'fontWeight': 700}, - 'Bold Italic': {'fontWeight': 700, 'fontStyle': 'italic'}, - 'Black': {'fontWeight': 900}, - 'Black Italic': {'fontWeight': 900, 'fontStyle': 'italic'}, + "Thin": {"fontWeight": 100}, + "Thin Italic": {"fontWeight": 100, "fontStyle": "italic"}, + "Light": {"fontWeight": 300}, + "Light Italic": {"fontWeight": 300, "fontStyle": "italic"}, + "Regular": {"fontWeight": 400}, + "Regular Italic": {"fontWeight": 400, "fontStyle": "italic"}, + "Medium": {"fontWeight": 500}, + "Medium Italic": {"fontWeight": 500, "fontStyle": "italic"}, + "Bold": {"fontWeight": 700}, + "Bold Italic": {"fontWeight": 700, "fontStyle": "italic"}, + "Black": {"fontWeight": 900}, + "Black Italic": {"fontWeight": 900, "fontStyle": "italic"}, } -def list_of_options(iterable, conj='and', period=True): +def list_of_options(iterable, conj="and", period=True): """ Returns an English listing of objects seperated by commas ',' @@ -58,15 +79,15 @@ def list_of_options(iterable, conj='and', period=True): """ if len(iterable) < 2: raise _plotly_utils.exceptions.PlotlyError( - 'Your list or tuple must contain at least 2 items.' + "Your list or tuple must contain at least 2 items." ) - template = (len(iterable) - 2)*'{}, ' + '{} ' + conj + ' {}' + period*'.' + template = (len(iterable) - 2) * "{}, " + "{} " + conj + " {}" + period * "." return template.format(*iterable) # Error Messages STYLE_ERROR = "Your presentation style must be {}".format( - list_of_options(PRES_THEMES, conj='or', period=True) + list_of_options(PRES_THEMES, conj="or", period=True) ) CODE_ENV_ERROR = ( @@ -84,9 +105,7 @@ def list_of_options(iterable, conj='and', period=True): "The language of your code block should be " "clearly indicated after the first ``` that " "begins the code block. The valid languages to " - "choose from are" + list_of_options( - VALID_LANGUAGES - ) + "choose from are" + list_of_options(VALID_LANGUAGES) ) @@ -95,7 +114,7 @@ def _generate_id(size): for num in range(10): letters_and_numbers += str(num) letters_and_numbers += str(num) - id_str = '' + id_str = "" for _ in range(size): id_str += random.choice(list(letters_and_numbers)) @@ -103,208 +122,222 @@ def _generate_id(size): paragraph_styles = { - 'Body': { - 'color': '#3d3d3d', - 'fontFamily': 'Open Sans', - 'fontSize': 11, - 'fontStyle': 'normal', - 'fontWeight': 400, - 'lineHeight': 'normal', - 'minWidth': 20, - 'opacity': 1, - 'textAlign': 'center', - 'textDecoration': 'none', - 'wordBreak': 'break-word' + "Body": { + "color": "#3d3d3d", + "fontFamily": "Open Sans", + "fontSize": 11, + "fontStyle": "normal", + "fontWeight": 400, + "lineHeight": "normal", + "minWidth": 20, + "opacity": 1, + "textAlign": "center", + "textDecoration": "none", + "wordBreak": "break-word", }, - 'Body Small': { - 'color': '#3d3d3d', - 'fontFamily': 'Open Sans', - 'fontSize': 10, - 'fontStyle': 'normal', - 'fontWeight': 400, - 'lineHeight': 'normal', - 'minWidth': 20, - 'opacity': 1, - 'textAlign': 'center', - 'textDecoration': 'none' + "Body Small": { + "color": "#3d3d3d", + "fontFamily": "Open Sans", + "fontSize": 10, + "fontStyle": "normal", + "fontWeight": 400, + "lineHeight": "normal", + "minWidth": 20, + "opacity": 1, + "textAlign": "center", + "textDecoration": "none", }, - 'Caption': { - 'color': '#3d3d3d', - 'fontFamily': 'Open Sans', - 'fontSize': 11, - 'fontStyle': 'italic', - 'fontWeight': 400, - 'lineHeight': 'normal', - 'minWidth': 20, - 'opacity': 1, - 'textAlign': 'center', - 'textDecoration': 'none' + "Caption": { + "color": "#3d3d3d", + "fontFamily": "Open Sans", + "fontSize": 11, + "fontStyle": "italic", + "fontWeight": 400, + "lineHeight": "normal", + "minWidth": 20, + "opacity": 1, + "textAlign": "center", + "textDecoration": "none", }, - 'Heading 1': { - 'color': '#3d3d3d', - 'fontFamily': 'Open Sans', - 'fontSize': 26, - 'fontStyle': 'normal', - 'fontWeight': 400, - 'lineHeight': 'normal', - 'minWidth': 20, - 'opacity': 1, - 'textAlign': 'center', - 'textDecoration': 'none', + "Heading 1": { + "color": "#3d3d3d", + "fontFamily": "Open Sans", + "fontSize": 26, + "fontStyle": "normal", + "fontWeight": 400, + "lineHeight": "normal", + "minWidth": 20, + "opacity": 1, + "textAlign": "center", + "textDecoration": "none", }, - 'Heading 2': { - 'color': '#3d3d3d', - 'fontFamily': 'Open Sans', - 'fontSize': 20, - 'fontStyle': 'normal', - 'fontWeight': 400, - 'lineHeight': 'normal', - 'minWidth': 20, - 'opacity': 1, - 'textAlign': 'center', - 'textDecoration': 'none' + "Heading 2": { + "color": "#3d3d3d", + "fontFamily": "Open Sans", + "fontSize": 20, + "fontStyle": "normal", + "fontWeight": 400, + "lineHeight": "normal", + "minWidth": 20, + "opacity": 1, + "textAlign": "center", + "textDecoration": "none", + }, + "Heading 3": { + "color": "#3d3d3d", + "fontFamily": "Open Sans", + "fontSize": 11, + "fontStyle": "normal", + "fontWeight": 700, + "lineHeight": "normal", + "minWidth": 20, + "opacity": 1, + "textAlign": "center", + "textDecoration": "none", }, - 'Heading 3': { - 'color': '#3d3d3d', - 'fontFamily': 'Open Sans', - 'fontSize': 11, - 'fontStyle': 'normal', - 'fontWeight': 700, - 'lineHeight': 'normal', - 'minWidth': 20, - 'opacity': 1, - 'textAlign': 'center', - 'textDecoration': 'none' - } } def _empty_slide(transition, id): - empty_slide = {'children': [], - 'id': id, - 'props': {'style': {}, 'transition': transition}} + empty_slide = { + "children": [], + "id": id, + "props": {"style": {}, "transition": transition}, + } return empty_slide -def _box(boxtype, text_or_url, left, top, height, width, id, props_attr, - style_attr, paragraphStyle): +def _box( + boxtype, + text_or_url, + left, + top, + height, + width, + id, + props_attr, + style_attr, + paragraphStyle, +): children_list = [] fontFamily = "Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace" - if boxtype == 'Text': - children_list = text_or_url.split('\n') + if boxtype == "Text": + children_list = text_or_url.split("\n") props = { - 'isQuote': False, - 'listType': None, - 'paragraphStyle': paragraphStyle, - 'size': 4, - 'style': copy.deepcopy(paragraph_styles[paragraphStyle]) + "isQuote": False, + "listType": None, + "paragraphStyle": paragraphStyle, + "size": 4, + "style": copy.deepcopy(paragraph_styles[paragraphStyle]), } - props['style'].update( - {'height': height, - 'left': left, - 'top': top, - 'width': width, - 'position': 'absolute'} + props["style"].update( + { + "height": height, + "left": left, + "top": top, + "width": width, + "position": "absolute", + } ) - elif boxtype == 'Image': + elif boxtype == "Image": # height, width are set to default 512 # as set by the Presentation Editor props = { - 'height': 512, - 'imageName': None, - 'src': text_or_url, - 'style': {'height': height, - 'left': left, - 'opacity': 1, - 'position': 'absolute', - 'top': top, - 'width': width}, - 'width': 512 + "height": 512, + "imageName": None, + "src": text_or_url, + "style": { + "height": height, + "left": left, + "opacity": 1, + "position": "absolute", + "top": top, + "width": width, + }, + "width": 512, } - elif boxtype == 'Plotly': - if '?share_key' in text_or_url: + elif boxtype == "Plotly": + if "?share_key" in text_or_url: src = text_or_url else: - src = text_or_url + '.embed?link=false' + src = text_or_url + ".embed?link=false" props = { - 'frameBorder': 0, - 'scrolling': 'no', - 'src': src, - 'style': {'height': height, - 'left': left, - 'position': 'absolute', - 'top': top, - 'width': width} + "frameBorder": 0, + "scrolling": "no", + "src": src, + "style": { + "height": height, + "left": left, + "position": "absolute", + "top": top, + "width": width, + }, } - elif boxtype == 'CodePane': + elif boxtype == "CodePane": props = { - 'language': 'python', - 'source': text_or_url, - 'style': {'fontFamily': fontFamily, - 'fontSize': 13, - 'height': height, - 'left': left, - 'margin': 0, - 'position': 'absolute', - 'textAlign': 'left', - 'top': top, - 'width': width}, - 'theme': 'tomorrowNight' + "language": "python", + "source": text_or_url, + "style": { + "fontFamily": fontFamily, + "fontSize": 13, + "height": height, + "left": left, + "margin": 0, + "position": "absolute", + "textAlign": "left", + "top": top, + "width": width, + }, + "theme": "tomorrowNight", } # update props and style attributes for item in props_attr.items(): props[item[0]] = item[1] for item in style_attr.items(): - props['style'][item[0]] = item[1] + props["style"][item[0]] = item[1] - child = { - 'children': children_list, - 'id': id, - 'props': props, - 'type': boxtype - } + child = {"children": children_list, "id": id, "props": props, "type": boxtype} - if boxtype == 'Text': - child['defaultHeight'] = 36 - child['defaultWidth'] = 52 - child['resizeVertical'] = False - if boxtype == 'CodePane': - child['defaultText'] = 'Code' + if boxtype == "Text": + child["defaultHeight"] = 36 + child["defaultWidth"] = 52 + child["resizeVertical"] = False + if boxtype == "CodePane": + child["defaultText"] = "Code" return child def _percentage_to_pixel(value, side): - if side == 'left': + if side == "left": return WIDTH * (0.01 * value) - elif side == 'top': + elif side == "top": return HEIGHT * (0.01 * value) - elif side == 'height': + elif side == "height": return HEIGHT * (0.01 * value) - elif side == 'width': + elif side == "width": return WIDTH * (0.01 * value) def _return_box_position(left, top, height, width): - values_dict = { - 'left': left, - 'top': top, - 'height': height, - 'width': width, - } + values_dict = {"left": left, "top": top, "height": height, "width": width} for key in iter(values_dict): if isinstance(values_dict[key], str): - var = float(values_dict[key][: -2]) + var = float(values_dict[key][:-2]) else: var = _percentage_to_pixel(values_dict[key], key) values_dict[key] = var - return (values_dict['left'], values_dict['top'], - values_dict['height'], values_dict['width']) + return ( + values_dict["left"], + values_dict["top"], + values_dict["height"], + values_dict["width"], + ) def _remove_extra_whitespace_from_line(line): @@ -314,28 +347,29 @@ def _remove_extra_whitespace_from_line(line): def _list_of_slides(markdown_string): - if not markdown_string.endswith('\n---\n'): - markdown_string += '\n---\n' + if not markdown_string.endswith("\n---\n"): + markdown_string += "\n---\n" - text_blocks = re.split('\n-{2,}\n', markdown_string) + text_blocks = re.split("\n-{2,}\n", markdown_string) list_of_slides = [] for text in text_blocks: - if not all(char in ['\n', '-', ' '] for char in text): + if not all(char in ["\n", "-", " "] for char in text): list_of_slides.append(text) - if '\n-\n' in markdown_string: - msg = ("You have at least one '-' by itself on its own line in your " - "markdown string. If you are trying to denote a new slide, " - "make sure that the line has 3 '-'s like this: \n\n---\n\n" - "A new slide will NOT be created here.") + if "\n-\n" in markdown_string: + msg = ( + "You have at least one '-' by itself on its own line in your " + "markdown string. If you are trying to denote a new slide, " + "make sure that the line has 3 '-'s like this: \n\n---\n\n" + "A new slide will NOT be created here." + ) warnings.warn(msg) return list_of_slides -def _top_spec_for_text_at_bottom(text_block, width_per, per_from_bottom=0, - min_top=30): +def _top_spec_for_text_at_bottom(text_block, width_per, per_from_bottom=0, min_top=30): # This function ensures that if there is a large block of # text in your slide it will not overflow off the bottom # of the slide. @@ -354,7 +388,7 @@ def _top_spec_for_text_at_bottom(text_block, width_per, per_from_bottom=0, num_of_lines = 0 char_group = 0 for char in text_block: - if char == '\n': + if char == "\n": num_of_lines += 1 char_group = 0 else: @@ -372,14 +406,21 @@ def _top_spec_for_text_at_bottom(text_block, width_per, per_from_bottom=0, return max(top, min_top) -def _box_specs_gen(num_of_boxes, grouptype='leftgroup_v', width_range=50, - height_range=50, margin=2, betw_boxes=4, middle_center=50): +def _box_specs_gen( + num_of_boxes, + grouptype="leftgroup_v", + width_range=50, + height_range=50, + margin=2, + betw_boxes=4, + middle_center=50, +): # the (left, top, width, height) specs # are added to specs_for_boxes specs_for_boxes = [] - if num_of_boxes == 1 and grouptype in ['leftgroup_v', 'rightgroup_v']: - if grouptype == 'rightgroup_v': - left_shift = (100 - width_range) + if num_of_boxes == 1 and grouptype in ["leftgroup_v", "rightgroup_v"]: + if grouptype == "rightgroup_v": + left_shift = 100 - width_range else: left_shift = 0 @@ -387,19 +428,19 @@ def _box_specs_gen(num_of_boxes, grouptype='leftgroup_v', width_range=50, left_shift + (margin / WIDTH) * 100, (margin / HEIGHT) * 100, 100 - (2 * margin / HEIGHT * 100), - width_range - (2 * margin / WIDTH) * 100 + width_range - (2 * margin / WIDTH) * 100, ) specs_for_boxes.append(box_spec) - elif num_of_boxes > 1 and grouptype in ['leftgroup_v', 'rightgroup_v']: - if grouptype == 'rightgroup_v': - left_shift = (100 - width_range) + elif num_of_boxes > 1 and grouptype in ["leftgroup_v", "rightgroup_v"]: + if grouptype == "rightgroup_v": + left_shift = 100 - width_range else: left_shift = 0 if num_of_boxes % 2 == 0: box_width_px = 0.5 * ( - (float(width_range)/100) * WIDTH - 2 * margin - betw_boxes + (float(width_range) / 100) * WIDTH - 2 * margin - betw_boxes ) box_width = (box_width_px / WIDTH) * 100 @@ -408,20 +449,13 @@ def _box_specs_gen(num_of_boxes, grouptype='leftgroup_v', width_range=50, ) left1 = left_shift + (margin / WIDTH) * 100 - left2 = left_shift + ( - ((margin + betw_boxes) / WIDTH) * 100 + box_width - ) + left2 = left_shift + (((margin + betw_boxes) / WIDTH) * 100 + box_width) for left in [left1, left2]: for j in range(int(num_of_boxes / 2)): top = (margin * 100 / HEIGHT) + j * ( height + (betw_boxes * 100 / HEIGHT) ) - specs = ( - left, - top, - height, - box_width - ) + specs = (left, top, height, box_width) specs_for_boxes.append(specs) if num_of_boxes % 2 == 1: @@ -434,19 +468,14 @@ def _box_specs_gen(num_of_boxes, grouptype='leftgroup_v', width_range=50, top = (margin / HEIGHT) * 100 + j * ( height + (betw_boxes / HEIGHT) * 100 ) - specs = ( - left, - top, - height, - width - ) + specs = (left, top, height, width) specs_for_boxes.append(specs) - elif grouptype == 'middle': + elif grouptype == "middle": top = float(middle_center - (height_range / 2)) height = height_range width = (1 / float(num_of_boxes)) * ( - width_range - (num_of_boxes - 1) * (100*betw_boxes/WIDTH) + width_range - (num_of_boxes - 1) * (100 * betw_boxes / WIDTH) ) for j in range(num_of_boxes): left = ((100 - float(width_range)) / 2) + j * ( @@ -455,19 +484,14 @@ def _box_specs_gen(num_of_boxes, grouptype='leftgroup_v', width_range=50, specs = (left, top, height, width) specs_for_boxes.append(specs) - elif 'checkerboard' in grouptype and num_of_boxes == 2: - if grouptype == 'checkerboard_topleft': + elif "checkerboard" in grouptype and num_of_boxes == 2: + if grouptype == "checkerboard_topleft": for j in range(2): left = j * 50 top = j * 50 height = 50 width = 50 - specs = ( - left, - top, - height, - width - ) + specs = (left, top, height, width) specs_for_boxes.append(specs) else: for j in range(2): @@ -475,122 +499,127 @@ def _box_specs_gen(num_of_boxes, grouptype='leftgroup_v', width_range=50, top = j * 50 height = 50 width = 50 - specs = ( - left, - top, - height, - width - ) + specs = (left, top, height, width) specs_for_boxes.append(specs) return specs_for_boxes -def _return_layout_specs(num_of_boxes, url_lines, title_lines, text_block, - code_blocks, slide_num, style): +def _return_layout_specs( + num_of_boxes, url_lines, title_lines, text_block, code_blocks, slide_num, style +): # returns specs of the form (left, top, height, width) - code_theme = 'tomorrowNight' - if style == 'martik': + code_theme = "tomorrowNight" + if style == "martik": specs_for_boxes = [] margin = 18 # in pxs # set Headings styles - paragraph_styles['Heading 1'].update( - {'color': '#0D0A1E', - 'fontFamily': 'Raleway', - 'fontSize': 55, - 'fontWeight': fontWeight_dict['Bold']['fontWeight']} + paragraph_styles["Heading 1"].update( + { + "color": "#0D0A1E", + "fontFamily": "Raleway", + "fontSize": 55, + "fontWeight": fontWeight_dict["Bold"]["fontWeight"], + } ) - paragraph_styles['Heading 2'] = copy.deepcopy( - paragraph_styles['Heading 1'] - ) - paragraph_styles['Heading 2'].update({'fontSize': 36}) - paragraph_styles['Heading 3'] = copy.deepcopy( - paragraph_styles['Heading 1'] - ) - paragraph_styles['Heading 3'].update({'fontSize': 30}) + paragraph_styles["Heading 2"] = copy.deepcopy(paragraph_styles["Heading 1"]) + paragraph_styles["Heading 2"].update({"fontSize": 36}) + paragraph_styles["Heading 3"] = copy.deepcopy(paragraph_styles["Heading 1"]) + paragraph_styles["Heading 3"].update({"fontSize": 30}) # set Body style - paragraph_styles['Body'].update( - {'color': '#96969C', - 'fontFamily': 'Roboto', - 'fontSize': 16, - 'fontWeight': fontWeight_dict['Regular']['fontWeight']} + paragraph_styles["Body"].update( + { + "color": "#96969C", + "fontFamily": "Roboto", + "fontSize": 16, + "fontWeight": fontWeight_dict["Regular"]["fontWeight"], + } ) - bkgd_color = '#F4FAFB' - title_font_color = '#0D0A1E' - text_font_color = '#96969C' + bkgd_color = "#F4FAFB" + title_font_color = "#0D0A1E" + text_font_color = "#96969C" if num_of_boxes == 0 and slide_num == 0: - text_textAlign = 'center' + text_textAlign = "center" else: - text_textAlign = 'left' + text_textAlign = "left" if num_of_boxes == 0: specs_for_title = (0, 50, 20, 100) specs_for_text = (15, 60, 50, 70) - bkgd_color = '#0D0A1E' - title_font_color = '#F4FAFB' - text_font_color = '#F4FAFB' + bkgd_color = "#0D0A1E" + title_font_color = "#F4FAFB" + text_font_color = "#F4FAFB" elif num_of_boxes == 1: - if code_blocks != [] or (url_lines != [] and - get_config()['plotly_domain'] in - url_lines[0]): + if code_blocks != [] or ( + url_lines != [] and get_config()["plotly_domain"] in url_lines[0] + ): if code_blocks != []: w_range = 40 else: w_range = 60 text_top = _top_spec_for_text_at_bottom( - text_block, 80, - per_from_bottom=(margin / HEIGHT) * 100 + text_block, 80, per_from_bottom=(margin / HEIGHT) * 100 ) specs_for_title = (0, 3, 20, 100) specs_for_text = (10, text_top, 30, 80) specs_for_boxes = _box_specs_gen( - num_of_boxes, grouptype='middle', width_range=w_range, - height_range=60, margin=margin, betw_boxes=4 + num_of_boxes, + grouptype="middle", + width_range=w_range, + height_range=60, + margin=margin, + betw_boxes=4, ) - bkgd_color = '#0D0A1E' - title_font_color = '#F4FAFB' - text_font_color = '#F4FAFB' - code_theme = 'tomorrow' - elif title_lines == [] and text_block == '': + bkgd_color = "#0D0A1E" + title_font_color = "#F4FAFB" + text_font_color = "#F4FAFB" + code_theme = "tomorrow" + elif title_lines == [] and text_block == "": specs_for_title = (0, 50, 20, 100) specs_for_text = (15, 60, 50, 70) specs_for_boxes = _box_specs_gen( - num_of_boxes, grouptype='middle', width_range=50, - height_range=80, margin=0, betw_boxes=0 + num_of_boxes, + grouptype="middle", + width_range=50, + height_range=80, + margin=0, + betw_boxes=0, ) else: title_text_width = 40 - (margin / WIDTH) * 100 text_top = _top_spec_for_text_at_bottom( - text_block, title_text_width, - per_from_bottom=(margin / HEIGHT) * 100 + text_block, + title_text_width, + per_from_bottom=(margin / HEIGHT) * 100, ) specs_for_title = (60, 3, 20, 40) specs_for_text = (60, text_top, 1, title_text_width) specs_for_boxes = _box_specs_gen( - num_of_boxes, grouptype='leftgroup_v', width_range=60, - margin=margin, betw_boxes=4 + num_of_boxes, + grouptype="leftgroup_v", + width_range=60, + margin=margin, + betw_boxes=4, ) - bkgd_color = '#0D0A1E' - title_font_color = '#F4FAFB' - text_font_color = '#F4FAFB' + bkgd_color = "#0D0A1E" + title_font_color = "#F4FAFB" + text_font_color = "#F4FAFB" elif num_of_boxes == 2 and url_lines != []: text_top = _top_spec_for_text_at_bottom( - text_block, 46, per_from_bottom=(margin / HEIGHT) * 100, - min_top=50 + text_block, 46, per_from_bottom=(margin / HEIGHT) * 100, min_top=50 ) specs_for_title = (0, 3, 20, 50) specs_for_text = (52, text_top, 40, 46) specs_for_boxes = _box_specs_gen( - num_of_boxes, grouptype='checkerboard_topright' + num_of_boxes, grouptype="checkerboard_topright" ) elif num_of_boxes >= 2 and url_lines == []: text_top = _top_spec_for_text_at_bottom( - text_block, 92, per_from_bottom=(margin / HEIGHT) * 100, - min_top=15 + text_block, 92, per_from_bottom=(margin / HEIGHT) * 100, min_top=15 ) if num_of_boxes == 2: betw_boxes = 90 @@ -599,73 +628,84 @@ def _return_layout_specs(num_of_boxes, url_lines, title_lines, text_block, specs_for_title = (0, 3, 20, 100) specs_for_text = (4, text_top, 1, 92) specs_for_boxes = _box_specs_gen( - num_of_boxes, grouptype='middle', width_range=92, - height_range=60, margin=margin, betw_boxes=betw_boxes + num_of_boxes, + grouptype="middle", + width_range=92, + height_range=60, + margin=margin, + betw_boxes=betw_boxes, ) - code_theme = 'tomorrow' + code_theme = "tomorrow" else: text_top = _top_spec_for_text_at_bottom( - text_block, 40 - (margin / WIDTH) * 100, - per_from_bottom=(margin / HEIGHT) * 100 + text_block, + 40 - (margin / WIDTH) * 100, + per_from_bottom=(margin / HEIGHT) * 100, ) specs_for_title = (0, 3, 20, 40 - (margin / WIDTH) * 100) specs_for_text = ( - (margin / WIDTH) * 100, text_top, 50, - 40 - (margin / WIDTH) * 100 + (margin / WIDTH) * 100, + text_top, + 50, + 40 - (margin / WIDTH) * 100, ) specs_for_boxes = _box_specs_gen( - num_of_boxes, grouptype='rightgroup_v', width_range=60, - margin=margin, betw_boxes=4 + num_of_boxes, + grouptype="rightgroup_v", + width_range=60, + margin=margin, + betw_boxes=4, ) - elif style == 'moods': + elif style == "moods": specs_for_boxes = [] margin = 18 - code_theme = 'tomorrowNight' + code_theme = "tomorrowNight" # set Headings styles - paragraph_styles['Heading 1'].update( - {'color': '#000016', - 'fontFamily': 'Roboto', - 'fontSize': 55, - 'fontWeight': fontWeight_dict['Black']['fontWeight']} + paragraph_styles["Heading 1"].update( + { + "color": "#000016", + "fontFamily": "Roboto", + "fontSize": 55, + "fontWeight": fontWeight_dict["Black"]["fontWeight"], + } ) - paragraph_styles['Heading 2'] = copy.deepcopy( - paragraph_styles['Heading 1'] - ) - paragraph_styles['Heading 2'].update({'fontSize': 36}) - paragraph_styles['Heading 3'] = copy.deepcopy( - paragraph_styles['Heading 1'] - ) - paragraph_styles['Heading 3'].update({'fontSize': 30}) + paragraph_styles["Heading 2"] = copy.deepcopy(paragraph_styles["Heading 1"]) + paragraph_styles["Heading 2"].update({"fontSize": 36}) + paragraph_styles["Heading 3"] = copy.deepcopy(paragraph_styles["Heading 1"]) + paragraph_styles["Heading 3"].update({"fontSize": 30}) # set Body style - paragraph_styles['Body'].update( - {'color': '#000016', - 'fontFamily': 'Roboto', - 'fontSize': 16, - 'fontWeight': fontWeight_dict['Thin']['fontWeight']} + paragraph_styles["Body"].update( + { + "color": "#000016", + "fontFamily": "Roboto", + "fontSize": 16, + "fontWeight": fontWeight_dict["Thin"]["fontWeight"], + } ) - bkgd_color = '#FFFFFF' + bkgd_color = "#FFFFFF" title_font_color = None text_font_color = None if num_of_boxes == 0 and slide_num == 0: - text_textAlign = 'center' + text_textAlign = "center" else: - text_textAlign = 'left' + text_textAlign = "left" if num_of_boxes == 0: - if slide_num == 0 or text_block == '': - bkgd_color = '#F7F7F7' + if slide_num == 0 or text_block == "": + bkgd_color = "#F7F7F7" specs_for_title = (0, 50, 20, 100) specs_for_text = (15, 60, 50, 70) else: - bkgd_color = '#F7F7F7' + bkgd_color = "#F7F7F7" text_top = _top_spec_for_text_at_bottom( - text_block, width_per=90, + text_block, + width_per=90, per_from_bottom=(margin / HEIGHT) * 100, - min_top=20 + min_top=20, ) specs_for_title = (0, 2, 20, 100) specs_for_text = (5, text_top, 50, 90) @@ -673,7 +713,7 @@ def _return_layout_specs(num_of_boxes, url_lines, title_lines, text_block, elif num_of_boxes == 1: if code_blocks != []: # code - if text_block == '': + if text_block == "": margin = 5 specs_for_title = (0, 3, 20, 100) specs_for_text = (0, 0, 0, 0) @@ -687,165 +727,171 @@ def _return_layout_specs(num_of_boxes, url_lines, title_lines, text_block, width_per = 90 height_range = 60 text_top = _top_spec_for_text_at_bottom( - text_block, width_per=width_per, + text_block, + width_per=width_per, per_from_bottom=(margin / HEIGHT) * 100, - min_top=100 - height_range / 2. + min_top=100 - height_range / 2.0, ) specs_for_boxes = _box_specs_gen( - num_of_boxes, grouptype='middle', - width_range=50, height_range=60, margin=margin, + num_of_boxes, + grouptype="middle", + width_range=50, + height_range=60, + margin=margin, ) specs_for_title = (0, 3, 20, 100) - specs_for_text = ( - 5, text_top, 2, width_per - ) + specs_for_text = (5, text_top, 2, width_per) else: # right width_per = 50 text_top = _top_spec_for_text_at_bottom( - text_block, width_per=width_per, + text_block, + width_per=width_per, per_from_bottom=(margin / HEIGHT) * 100, - min_top=30 + min_top=30, ) specs_for_boxes = _box_specs_gen( - num_of_boxes, grouptype='rightgroup_v', - width_range=50, margin=40, + num_of_boxes, + grouptype="rightgroup_v", + width_range=50, + margin=40, ) specs_for_title = (0, 3, 20, 50) - specs_for_text = ( - 2, text_top, 2, width_per - 2 - ) - elif (url_lines != [] and - get_config()['plotly_domain'] in url_lines[0]): + specs_for_text = (2, text_top, 2, width_per - 2) + elif url_lines != [] and get_config()["plotly_domain"] in url_lines[0]: # url if slide_num % 2 == 0: # top half width_per = 95 text_top = _top_spec_for_text_at_bottom( - text_block, width_per=width_per, + text_block, + width_per=width_per, per_from_bottom=(margin / HEIGHT) * 100, - min_top=60 + min_top=60, ) specs_for_boxes = _box_specs_gen( - num_of_boxes, grouptype='middle', - width_range=100, height_range=60, - middle_center=30 + num_of_boxes, + grouptype="middle", + width_range=100, + height_range=60, + middle_center=30, ) specs_for_title = (0, 60, 20, 100) - specs_for_text = ( - 2.5, text_top, 2, width_per - ) + specs_for_text = (2.5, text_top, 2, width_per) else: # middle across width_per = 95 text_top = _top_spec_for_text_at_bottom( - text_block, width_per=width_per, + text_block, + width_per=width_per, per_from_bottom=(margin / HEIGHT) * 100, - min_top=60 + min_top=60, ) specs_for_boxes = _box_specs_gen( - num_of_boxes, grouptype='middle', - width_range=100, height_range=60 + num_of_boxes, + grouptype="middle", + width_range=100, + height_range=60, ) specs_for_title = (0, 3, 20, 100) - specs_for_text = ( - 2.5, text_top, 2, width_per - ) + specs_for_text = (2.5, text_top, 2, width_per) else: # image if slide_num % 2 == 0: # right width_per = 50 text_top = _top_spec_for_text_at_bottom( - text_block, width_per=width_per, + text_block, + width_per=width_per, per_from_bottom=(margin / HEIGHT) * 100, - min_top=30 + min_top=30, ) specs_for_boxes = _box_specs_gen( - num_of_boxes, grouptype='rightgroup_v', - width_range=50, margin=0, + num_of_boxes, grouptype="rightgroup_v", width_range=50, margin=0 ) specs_for_title = (0, 3, 20, 50) - specs_for_text = ( - 2, text_top, 2, width_per - 2 - ) + specs_for_text = (2, text_top, 2, width_per - 2) else: # left width_per = 50 text_top = _top_spec_for_text_at_bottom( - text_block, width_per=width_per, + text_block, + width_per=width_per, per_from_bottom=(margin / HEIGHT) * 100, - min_top=30 + min_top=30, ) specs_for_boxes = _box_specs_gen( - num_of_boxes, grouptype='leftgroup_v', - width_range=50, margin=0, + num_of_boxes, grouptype="leftgroup_v", width_range=50, margin=0 ) specs_for_title = (50, 3, 20, 50) - specs_for_text = ( - 52, text_top, 2, width_per - 2 - ) + specs_for_text = (52, text_top, 2, width_per - 2) elif num_of_boxes == 2: # right stack width_per = 50 text_top = _top_spec_for_text_at_bottom( - text_block, width_per=width_per, + text_block, + width_per=width_per, per_from_bottom=(margin / HEIGHT) * 100, - min_top=30 + min_top=30, ) specs_for_boxes = [(50, 0, 50, 50), (50, 50, 50, 50)] specs_for_title = (0, 3, 20, 50) - specs_for_text = ( - 2, text_top, 2, width_per - 2 - ) + specs_for_text = (2, text_top, 2, width_per - 2) elif num_of_boxes == 3: # middle top width_per = 95 text_top = _top_spec_for_text_at_bottom( - text_block, width_per=width_per, + text_block, + width_per=width_per, per_from_bottom=(margin / HEIGHT) * 100, - min_top=40 + min_top=40, ) specs_for_boxes = _box_specs_gen( - num_of_boxes, grouptype='middle', - width_range=100, height_range=40, middle_center=30 + num_of_boxes, + grouptype="middle", + width_range=100, + height_range=40, + middle_center=30, ) specs_for_title = (0, 0, 20, 100) - specs_for_text = ( - 2.5, text_top, 2, width_per - ) + specs_for_text = (2.5, text_top, 2, width_per) else: # right stack width_per = 40 text_top = _top_spec_for_text_at_bottom( - text_block, width_per=width_per, + text_block, + width_per=width_per, per_from_bottom=(margin / HEIGHT) * 100, - min_top=30 + min_top=30, ) specs_for_boxes = _box_specs_gen( - num_of_boxes, grouptype='rightgroup_v', - width_range=60, margin=0, + num_of_boxes, grouptype="rightgroup_v", width_range=60, margin=0 ) specs_for_title = (0, 3, 20, 40) - specs_for_text = ( - 2, text_top, 2, width_per - 2 - ) + specs_for_text = (2, text_top, 2, width_per - 2) # set text style attributes title_style_attr = {} - text_style_attr = {'textAlign': text_textAlign} + text_style_attr = {"textAlign": text_textAlign} if text_font_color: - text_style_attr['color'] = text_font_color + text_style_attr["color"] = text_font_color if title_font_color: - title_style_attr['color'] = title_font_color - - return (specs_for_boxes, specs_for_title, specs_for_text, bkgd_color, - title_style_attr, text_style_attr, code_theme) + title_style_attr["color"] = title_font_color + + return ( + specs_for_boxes, + specs_for_title, + specs_for_text, + bkgd_color, + title_style_attr, + text_style_attr, + code_theme, + ) def _url_parens_contained(url_name, line): - return line.startswith(url_name + '(') and line.endswith(')') + return line.startswith(url_name + "(") and line.endswith(")") class Presentation(dict): @@ -895,19 +941,20 @@ class Presentation(dict): For examples see the documentation:\n https://plot.ly/python/presentations-api/ """ - def __init__(self, markdown_string=None, style='moods', imgStretch=True): - self['presentation'] = { - 'slides': [], - 'slidePreviews': [None for _ in range(496)], - 'version': '0.1.3', - 'paragraphStyles': paragraph_styles + + def __init__(self, markdown_string=None, style="moods", imgStretch=True): + self["presentation"] = { + "slides": [], + "slidePreviews": [None for _ in range(496)], + "version": "0.1.3", + "paragraphStyles": paragraph_styles, } if markdown_string: if style not in PRES_THEMES: raise _plotly_utils.exceptions.PlotlyError( "Your presentation style must be {}".format( - list_of_options(PRES_THEMES, conj='or', period=True) + list_of_options(PRES_THEMES, conj="or", period=True) ) ) self._markdown_to_presentation(markdown_string, style, imgStretch) @@ -918,45 +965,41 @@ def _markdown_to_presentation(self, markdown_string, style, imgStretch): list_of_slides = _list_of_slides(markdown_string) for slide_num, slide in enumerate(list_of_slides): - lines_in_slide = slide.split('\n') + lines_in_slide = slide.split("\n") title_lines = [] # validate blocks of code - if slide.count('```') % 2 != 0: + if slide.count("```") % 2 != 0: raise _plotly_utils.exceptions.PlotlyError(CODE_ENV_ERROR) # find code blocks code_indices = [] code_blocks = [] - wdw_size = len('```') + wdw_size = len("```") for j in range(len(slide)): - if slide[j:j+wdw_size] == '```': + if slide[j : j + wdw_size] == "```": code_indices.append(j) for k in range(int(len(code_indices) / 2)): code_blocks.append( - slide[code_indices[2 * k]:code_indices[(2 * k) + 1]] + slide[code_indices[2 * k] : code_indices[(2 * k) + 1]] ) lang_and_code_tuples = [] for code_block in code_blocks: # validate code blocks - code_by_lines = code_block.split('\n') + code_by_lines = code_block.split("\n") language = _remove_extra_whitespace_from_line( code_by_lines[0][3:] ).lower() - if language == '' or language not in VALID_LANGUAGES: + if language == "" or language not in VALID_LANGUAGES: raise _plotly_utils.exceptions.PlotlyError( "The language of your code block should be " "clearly indicated after the first ``` that " "begins the code block. The valid languages to " - "choose from are" + list_of_options( - VALID_LANGUAGES - ) + "choose from are" + list_of_options(VALID_LANGUAGES) ) - lang_and_code_tuples.append( - (language, '\n'.join(code_by_lines[1:])) - ) + lang_and_code_tuples.append((language, "\n".join(code_by_lines[1:]))) # collect text, code and urls title_lines = [] @@ -966,31 +1009,34 @@ def _markdown_to_presentation(self, markdown_string, style, imgStretch): for line in lines_in_slide: # inCode handling - if line[:3] == '```' and len(line) > 3: + if line[:3] == "```" and len(line) > 3: inCode = True - if line == '```': + if line == "```": inCode = False - if not inCode and line != '```': - if len(line) > 0 and line[0] == '#': + if not inCode and line != "```": + if len(line) > 0 and line[0] == "#": title_lines.append(line) - elif (_url_parens_contained('Plotly', line) or - _url_parens_contained('Image', line)): - if (line.startswith('Plotly(') and - get_config()['plotly_domain'] not in line): + elif _url_parens_contained("Plotly", line) or _url_parens_contained( + "Image", line + ): + if ( + line.startswith("Plotly(") + and get_config()["plotly_domain"] not in line + ): raise _plotly_utils.exceptions.PlotlyError( "You are attempting to insert a Plotly Chart " "in your slide but your url does not have " "your plotly domain '{}' in it.".format( - get_config()['plotly_domain'] + get_config()["plotly_domain"] ) ) url_lines.append(line) else: # find and set transition properties - trans = 'transition:' + trans = "transition:" if line.startswith(trans) and title_lines == []: - slide_trans = line[len(trans):] + slide_trans = line[len(trans) :] slide_trans = _remove_extra_whitespace_from_line( slide_trans ) @@ -1000,10 +1046,8 @@ def _markdown_to_presentation(self, markdown_string, style, imgStretch): slide_transition_list.append(key) if slide_transition_list == []: - slide_transition_list.append('slide') - self._set_transition( - slide_transition_list, slide_num - ) + slide_transition_list.append("slide") + self._set_transition(slide_transition_list, slide_num) else: text_lines.append(line) @@ -1011,19 +1055,30 @@ def _markdown_to_presentation(self, markdown_string, style, imgStretch): # make text block for i in range(2): try: - while text_lines[-i] == '': + while text_lines[-i] == "": text_lines.pop(-i) except IndexError: pass - text_block = '\n'.join(text_lines) + text_block = "\n".join(text_lines) num_of_boxes = len(url_lines) + len(lang_and_code_tuples) - (specs_for_boxes, specs_for_title, specs_for_text, bkgd_color, - title_style_attr, text_style_attr, - code_theme) = _return_layout_specs( - num_of_boxes, url_lines, title_lines, text_block, code_blocks, - slide_num, style + ( + specs_for_boxes, + specs_for_title, + specs_for_text, + bkgd_color, + title_style_attr, + text_style_attr, + code_theme, + ) = _return_layout_specs( + num_of_boxes, + url_lines, + title_lines, + text_block, + code_blocks, + slide_num, + style, ) # background color @@ -1034,29 +1089,35 @@ def _markdown_to_presentation(self, markdown_string, style, imgStretch): # clean titles title = title_lines[0] num_hashes = 0 - while title[0] == '#': + while title[0] == "#": title = title[1:] num_hashes += 1 title = _remove_extra_whitespace_from_line(title) self._insert( - box='Text', text_or_url=title, - left=specs_for_title[0], top=specs_for_title[1], - height=specs_for_title[2], width=specs_for_title[3], - slide=slide_num, style_attr=title_style_attr, - paragraphStyle='Heading 1'.format( - min(num_hashes, 3) - ) + box="Text", + text_or_url=title, + left=specs_for_title[0], + top=specs_for_title[1], + height=specs_for_title[2], + width=specs_for_title[3], + slide=slide_num, + style_attr=title_style_attr, + paragraphStyle="Heading 1".format(min(num_hashes, 3)), ) # text if len(text_lines) > 0: self._insert( - box='Text', text_or_url=text_block, - left=specs_for_text[0], top=specs_for_text[1], - height=specs_for_text[2], width=specs_for_text[3], - slide=slide_num, style_attr=text_style_attr, - paragraphStyle='Body' + box="Text", + text_or_url=text_block, + left=specs_for_text[0], + top=specs_for_text[1], + height=specs_for_text[2], + width=specs_for_text[3], + slide=slide_num, + style_attr=text_style_attr, + paragraphStyle="Body", ) url_and_code_blocks = list(url_lines + lang_and_code_tuples) @@ -1066,112 +1127,141 @@ def _markdown_to_presentation(self, markdown_string, style, imgStretch): # code language = url_or_code[0] code = url_or_code[1] - box_name = 'CodePane' + box_name = "CodePane" # code style props_attr = {} - props_attr['language'] = language - props_attr['theme'] = code_theme - - self._insert(box=box_name, text_or_url=code, - left=specs[0], top=specs[1], - height=specs[2], width=specs[3], - slide=slide_num, props_attr=props_attr) + props_attr["language"] = language + props_attr["theme"] = code_theme + + self._insert( + box=box_name, + text_or_url=code, + left=specs[0], + top=specs[1], + height=specs[2], + width=specs[3], + slide=slide_num, + props_attr=props_attr, + ) else: # url - if get_config()['plotly_domain'] in url_or_code: - box_name = 'Plotly' + if get_config()["plotly_domain"] in url_or_code: + box_name = "Plotly" else: - box_name = 'Image' - url = url_or_code[len(box_name) + 1: -1] - - self._insert(box=box_name, text_or_url=url, - left=specs[0], top=specs[1], - height=specs[2], width=specs[3], - slide=slide_num) + box_name = "Image" + url = url_or_code[len(box_name) + 1 : -1] + + self._insert( + box=box_name, + text_or_url=url, + left=specs[0], + top=specs[1], + height=specs[2], + width=specs[3], + slide=slide_num, + ) if not imgStretch: - for s, slide in enumerate(self['presentation']['slides']): - for c, child in enumerate(slide['children']): - if child['type'] in ['Image', 'Plotly']: - deep_child = child['props']['style'] - width = deep_child['width'] - height = deep_child['height'] + for s, slide in enumerate(self["presentation"]["slides"]): + for c, child in enumerate(slide["children"]): + if child["type"] in ["Image", "Plotly"]: + deep_child = child["props"]["style"] + width = deep_child["width"] + height = deep_child["height"] if width >= height: - deep_child['max-width'] = deep_child.pop('width') + deep_child["max-width"] = deep_child.pop("width") else: - deep_child['max-height'] = deep_child.pop('height') + deep_child["max-height"] = deep_child.pop("height") def _add_empty_slide(self): - self['presentation']['slides'].append( - _empty_slide(['slide'], _generate_id(9)) - ) + self["presentation"]["slides"].append(_empty_slide(["slide"], _generate_id(9))) def _add_missing_slides(self, slide): # add slides if desired slide number isn't in the presentation try: - self['presentation']['slides'][slide]['children'] + self["presentation"]["slides"][slide]["children"] except IndexError: - num_of_slides = len(self['presentation']['slides']) + num_of_slides = len(self["presentation"]["slides"]) for _ in range(slide - num_of_slides + 1): self._add_empty_slide() - def _insert(self, box, text_or_url, left, top, height, width, slide=0, - props_attr={}, style_attr={}, paragraphStyle=None): + def _insert( + self, + box, + text_or_url, + left, + top, + height, + width, + slide=0, + props_attr={}, + style_attr={}, + paragraphStyle=None, + ): self._add_missing_slides(slide) - left, top, height, width = _return_box_position(left, top, height, - width) + left, top, height, width = _return_box_position(left, top, height, width) new_id = _generate_id(9) - child = _box(box, text_or_url, left, top, height, width, new_id, - props_attr, style_attr, paragraphStyle) + child = _box( + box, + text_or_url, + left, + top, + height, + width, + new_id, + props_attr, + style_attr, + paragraphStyle, + ) - self['presentation']['slides'][slide]['children'].append(child) + self["presentation"]["slides"][slide]["children"].append(child) def _color_background(self, color, slide): self._add_missing_slides(slide) - loc = self['presentation']['slides'][slide] - loc['props']['style']['backgroundColor'] = color + loc = self["presentation"]["slides"][slide] + loc["props"]["style"]["backgroundColor"] = color def _background_image(self, url, slide, bkrd_image_dict): self._add_missing_slides(slide) - loc = self['presentation']['slides'][slide]['props'] + loc = self["presentation"]["slides"][slide]["props"] # default settings - size = 'stretch' - repeat = 'no-repeat' - - if 'background-size:' in bkrd_image_dict: - size = bkrd_image_dict['background-size:'] - if 'background-repeat:' in bkrd_image_dict: - repeat = bkrd_image_dict['background-repeat:'] - - if size == 'stretch': - backgroundSize = '100% 100%' - elif size == 'original': - backgroundSize = 'auto' - elif size == 'contain': - backgroundSize = 'contain' - elif size == 'cover': - backgroundSize = 'cover' + size = "stretch" + repeat = "no-repeat" + + if "background-size:" in bkrd_image_dict: + size = bkrd_image_dict["background-size:"] + if "background-repeat:" in bkrd_image_dict: + repeat = bkrd_image_dict["background-repeat:"] + + if size == "stretch": + backgroundSize = "100% 100%" + elif size == "original": + backgroundSize = "auto" + elif size == "contain": + backgroundSize = "contain" + elif size == "cover": + backgroundSize = "cover" style = { - 'backgroundImage': 'url({})'.format(url), - 'backgroundPosition': 'center center', - 'backgroundRepeat': repeat, - 'backgroundSize': backgroundSize + "backgroundImage": "url({})".format(url), + "backgroundPosition": "center center", + "backgroundRepeat": repeat, + "backgroundSize": backgroundSize, } for item in style.items(): - loc['style'].setdefault(item[0], item[1]) + loc["style"].setdefault(item[0], item[1]) - loc['backgroundImageSrc'] = url - loc['backgroundImageName'] = None + loc["backgroundImageSrc"] = url + loc["backgroundImageName"] = None def _set_transition(self, transition, slide): self._add_missing_slides(slide) - loc = self['presentation']['slides'][slide]['props'] - loc['transition'] = transition + loc = self["presentation"]["slides"][slide]["props"] + loc["transition"] = transition diff --git a/packages/python/chart-studio/chart_studio/session.py b/packages/python/chart-studio/chart_studio/session.py index 2397bbcac8a..9687369e3af 100644 --- a/packages/python/chart-studio/chart_studio/session.py +++ b/packages/python/chart-studio/chart_studio/session.py @@ -14,41 +14,37 @@ import _plotly_utils.exceptions -_session = { - 'credentials': {}, - 'config': {}, - 'plot_options': {} -} +_session = {"credentials": {}, "config": {}, "plot_options": {}} CREDENTIALS_KEYS = { - 'username': six.string_types, - 'api_key': six.string_types, - 'proxy_username': six.string_types, - 'proxy_password': six.string_types, - 'stream_ids': list + "username": six.string_types, + "api_key": six.string_types, + "proxy_username": six.string_types, + "proxy_password": six.string_types, + "stream_ids": list, } CONFIG_KEYS = { - 'plotly_domain': six.string_types, - 'plotly_streaming_domain': six.string_types, - 'plotly_api_domain': six.string_types, - 'plotly_ssl_verification': bool, - 'plotly_proxy_authorization': bool, - 'world_readable': bool, - 'auto_open': bool, - 'sharing': six.string_types + "plotly_domain": six.string_types, + "plotly_streaming_domain": six.string_types, + "plotly_api_domain": six.string_types, + "plotly_ssl_verification": bool, + "plotly_proxy_authorization": bool, + "world_readable": bool, + "auto_open": bool, + "sharing": six.string_types, } PLOT_OPTIONS = { - 'filename': six.string_types, - 'fileopt': six.string_types, - 'validate': bool, - 'world_readable': bool, - 'auto_open': bool, - 'sharing': six.string_types + "filename": six.string_types, + "fileopt": six.string_types, + "validate": bool, + "world_readable": bool, + "auto_open": bool, + "sharing": six.string_types, } -SHARING_OPTIONS = ['public', 'private', 'secret'] +SHARING_OPTIONS = ["public", "private", "secret"] def sign_in(username, api_key, **kwargs): @@ -88,26 +84,27 @@ def sign_in(username, api_key, **kwargs): if key in kwargs: if not isinstance(kwargs[key], CREDENTIALS_KEYS[key]): raise _plotly_utils.exceptions.PlotlyError( - "{} must be of type '{}'" - .format(key, CREDENTIALS_KEYS[key]) + "{} must be of type '{}'".format(key, CREDENTIALS_KEYS[key]) ) - _session['credentials'][key] = kwargs[key] + _session["credentials"][key] = kwargs[key] # add config, raise error if type is wrong. for key in CONFIG_KEYS: if key in kwargs: if not isinstance(kwargs[key], CONFIG_KEYS[key]): - raise _plotly_utils.exceptions.PlotlyError("{} must be of type '{}'" - .format(key, CONFIG_KEYS[key])) - _session['config'][key] = kwargs.get(key) + raise _plotly_utils.exceptions.PlotlyError( + "{} must be of type '{}'".format(key, CONFIG_KEYS[key]) + ) + _session["config"][key] = kwargs.get(key) # add plot options, raise error if type is wrong. for key in PLOT_OPTIONS: if key in kwargs: if not isinstance(kwargs[key], CONFIG_KEYS[key]): - raise _plotly_utils.exceptions.PlotlyError("{} must be of type '{}'" - .format(key, CONFIG_KEYS[key])) - _session['plot_options'][key] = kwargs.get(key) + raise _plotly_utils.exceptions.PlotlyError( + "{} must be of type '{}'".format(key, CONFIG_KEYS[key]) + ) + _session["plot_options"][key] = kwargs.get(key) def update_session_plot_options(**kwargs): @@ -129,31 +126,33 @@ def update_session_plot_options(**kwargs): "{} is not a valid config or plot option key".format(key) ) if not isinstance(kwargs[key], PLOT_OPTIONS[key]): - raise _plotly_utils.exceptions.PlotlyError("{} must be of type '{}'" - .format(key, PLOT_OPTIONS[key])) + raise _plotly_utils.exceptions.PlotlyError( + "{} must be of type '{}'".format(key, PLOT_OPTIONS[key]) + ) # raise exception if sharing is invalid - if (key == 'sharing' and not (kwargs[key] in SHARING_OPTIONS)): - raise _plotly_utils.exceptions.PlotlyError("'{0}' must be of either '{1}', '{2}'" - " or '{3}'" - .format(key, *SHARING_OPTIONS)) + if key == "sharing" and not (kwargs[key] in SHARING_OPTIONS): + raise _plotly_utils.exceptions.PlotlyError( + "'{0}' must be of either '{1}', '{2}'" + " or '{3}'".format(key, *SHARING_OPTIONS) + ) # update local _session dict with new plot options - _session['plot_options'].update(kwargs) + _session["plot_options"].update(kwargs) def get_session_plot_options(): """ Returns a copy of the user supplied plot options. Use `update_plot_options()` to change. """ - return copy.deepcopy(_session['plot_options']) + return copy.deepcopy(_session["plot_options"]) def get_session_config(): """Returns either module config or file config.""" - return copy.deepcopy(_session['config']) + return copy.deepcopy(_session["config"]) def get_session_credentials(): """Returns the credentials that will be sent to plotly.""" - return copy.deepcopy(_session['credentials']) + return copy.deepcopy(_session["credentials"]) diff --git a/packages/python/chart-studio/chart_studio/tests/__init__.py b/packages/python/chart-studio/chart_studio/tests/__init__.py index 950eaad7d6f..ad01b4a2866 100644 --- a/packages/python/chart-studio/chart_studio/tests/__init__.py +++ b/packages/python/chart-studio/chart_studio/tests/__init__.py @@ -1,6 +1,7 @@ try: # Set matplotlib backend once here import matplotlib - matplotlib.use('Agg') + + matplotlib.use("Agg") except: pass diff --git a/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_configuration.py b/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_configuration.py index 9215b008e47..34e53cc4c66 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_configuration.py +++ b/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_configuration.py @@ -7,7 +7,6 @@ class TestGetConfigDefaults(TestCase): - def test_config_dict_is_equivalent_copy(self): original = FILE_CONTENT[CONFIG_FILE] diff --git a/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_file_tools.py b/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_file_tools.py index 3f5549625ca..81b66f6e9b8 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_file_tools.py +++ b/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_file_tools.py @@ -5,31 +5,30 @@ class FileToolsTest(PlotlyTestCase): - def test_set_config_file_all_entries(self): # Check set_config and get_config return the same values - domain, streaming_domain, api, sharing = ('this', 'thing', - 'that', 'private') - ssl_verify, proxy_auth, world_readable, auto_open = (True, True, - False, False) - tools.set_config_file(plotly_domain=domain, - plotly_streaming_domain=streaming_domain, - plotly_api_domain=api, - plotly_ssl_verification=ssl_verify, - plotly_proxy_authorization=proxy_auth, - world_readable=world_readable, - auto_open=auto_open) + domain, streaming_domain, api, sharing = ("this", "thing", "that", "private") + ssl_verify, proxy_auth, world_readable, auto_open = (True, True, False, False) + tools.set_config_file( + plotly_domain=domain, + plotly_streaming_domain=streaming_domain, + plotly_api_domain=api, + plotly_ssl_verification=ssl_verify, + plotly_proxy_authorization=proxy_auth, + world_readable=world_readable, + auto_open=auto_open, + ) config = tools.get_config_file() - self.assertEqual(config['plotly_domain'], domain) - self.assertEqual(config['plotly_streaming_domain'], streaming_domain) - self.assertEqual(config['plotly_api_domain'], api) - self.assertEqual(config['plotly_ssl_verification'], ssl_verify) - self.assertEqual(config['plotly_proxy_authorization'], proxy_auth) - self.assertEqual(config['world_readable'], world_readable) - self.assertEqual(config['sharing'], sharing) - self.assertEqual(config['auto_open'], auto_open) + self.assertEqual(config["plotly_domain"], domain) + self.assertEqual(config["plotly_streaming_domain"], streaming_domain) + self.assertEqual(config["plotly_api_domain"], api) + self.assertEqual(config["plotly_ssl_verification"], ssl_verify) + self.assertEqual(config["plotly_proxy_authorization"], proxy_auth) + self.assertEqual(config["world_readable"], world_readable) + self.assertEqual(config["sharing"], sharing) + self.assertEqual(config["auto_open"], auto_open) tools.reset_config_file() def test_set_config_file_two_entries(self): @@ -37,19 +36,20 @@ def test_set_config_file_two_entries(self): # Check set_config and get_config given only two entries return the # same values - domain, streaming_domain = 'this', 'thing' - tools.set_config_file(plotly_domain=domain, - plotly_streaming_domain=streaming_domain) + domain, streaming_domain = "this", "thing" + tools.set_config_file( + plotly_domain=domain, plotly_streaming_domain=streaming_domain + ) config = tools.get_config_file() - self.assertEqual(config['plotly_domain'], domain) - self.assertEqual(config['plotly_streaming_domain'], streaming_domain) + self.assertEqual(config["plotly_domain"], domain) + self.assertEqual(config["plotly_streaming_domain"], streaming_domain) tools.reset_config_file() def test_set_config_file_world_readable(self): # Return TypeError when world_readable type is not a bool - kwargs = {'world_readable': 'True'} + kwargs = {"world_readable": "True"} self.assertRaises(TypeError, tools.set_config_file, **kwargs) def test_set_config_expected_warning_msg(self): @@ -58,40 +58,43 @@ def test_set_config_expected_warning_msg(self): with warnings.catch_warnings(record=True) as w: warnings.simplefilter("always") - kwargs = {'plotly_domain': 'http://www.foo-bar.com'} + kwargs = {"plotly_domain": "http://www.foo-bar.com"} tools.set_config_file(**kwargs) assert len(w) == 1 assert issubclass(w[-1].category, UserWarning) assert "plotly_domain" in str(w[-1].message) - def test_set_config_no_warning_msg_if_plotly_domain_is_https(self): # Check that no UserWarning is being called with https plotly_domain with warnings.catch_warnings(record=True) as w: warnings.simplefilter("always") - kwargs = {'plotly_domain': 'https://www.foo-bar.com'} + kwargs = {"plotly_domain": "https://www.foo-bar.com"} tools.set_config_file(**kwargs) assert len(w) == 0 - def test_reset_config_file(self): # Check reset_config and get_config return the same values tools.reset_config_file() config = tools.get_config_file() - self.assertEqual(config['plotly_domain'], 'https://plot.ly') - self.assertEqual(config['plotly_streaming_domain'], 'stream.plot.ly') + self.assertEqual(config["plotly_domain"], "https://plot.ly") + self.assertEqual(config["plotly_streaming_domain"], "stream.plot.ly") def test_get_credentials_file(self): # Check get_credentials returns all the keys original_creds = tools.get_credentials_file() - expected = ['username', 'stream_ids', 'api_key', 'proxy_username', - 'proxy_password'] + expected = [ + "username", + "stream_ids", + "api_key", + "proxy_username", + "proxy_password", + ] self.assertTrue(all(x in original_creds for x in expected)) def test_reset_credentials_file(self): @@ -100,6 +103,11 @@ def test_reset_credentials_file(self): tools.reset_credentials_file() reset_creds = tools.get_credentials_file() - expected = ['username', 'stream_ids', 'api_key', 'proxy_username', - 'proxy_password'] + expected = [ + "username", + "stream_ids", + "api_key", + "proxy_username", + "proxy_password", + ] self.assertTrue(all(x in reset_creds for x in expected)) diff --git a/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_get_embed.py b/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_get_embed.py index 7b49365e54f..bbb6499fcae 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_get_embed.py +++ b/packages/python/chart-studio/chart_studio/tests/test_core/test_tools/test_get_embed.py @@ -9,37 +9,39 @@ def test_get_valid_embed(): - url = 'https://plot.ly/~PlotBot/82/' + url = "https://plot.ly/~PlotBot/82/" tls.get_embed(url) @raises(PlotlyError) def test_get_invalid_embed(): - url = 'https://plot.ly/~PlotBot/a/' + url = "https://plot.ly/~PlotBot/a/" tls.get_embed(url) class TestGetEmbed(TestCase): - def test_get_embed_url_with_share_key(self): # Check the embed url for url with share_key included - get_embed_return = tls.get_embed('https://plot.ly/~neda/6572' + - '?share_key=AH4MyPlyDyDWYA2cM2kj2m') - expected_get_embed = ("").format(plotly_rest_url="https://" + - "plot.ly", - file_owner="neda", - file_id="6572", - share_key="AH4MyPlyDyDWYA2" + - "cM2kj2m", - iframe_height=525, - iframe_width="100%") + get_embed_return = tls.get_embed( + "https://plot.ly/~neda/6572" + "?share_key=AH4MyPlyDyDWYA2cM2kj2m" + ) + expected_get_embed = ( + '" + ).format( + plotly_rest_url="https://" + "plot.ly", + file_owner="neda", + file_id="6572", + share_key="AH4MyPlyDyDWYA2" + "cM2kj2m", + iframe_height=525, + iframe_width="100%", + ) self.assertEqual(get_embed_return, expected_get_embed) diff --git a/packages/python/chart-studio/chart_studio/tests/test_optional/test_grid/test_grid.py b/packages/python/chart-studio/chart_studio/tests/test_optional/test_grid/test_grid.py index aaf48967843..fdc3f002b92 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_optional/test_grid/test_grid.py +++ b/packages/python/chart-studio/chart_studio/tests/test_optional/test_grid/test_grid.py @@ -19,13 +19,12 @@ class TestDataframeToGrid(TestCase): # Test duplicate columns def test_duplicate_columns(self): - df = pd.DataFrame([[1, 'a'], [2, 'b']], - columns=['col_1', 'col_1']) + df = pd.DataFrame([[1, "a"], [2, "b"]], columns=["col_1", "col_1"]) expected_message = ( "Yikes, plotly grids currently " "can't have duplicate column names. Rename " - "the column \"{}\" and try again.".format('col_1') + 'the column "{}" and try again.'.format("col_1") ) with self.assertRaisesRegexp(InputError, expected_message): diff --git a/packages/python/chart-studio/chart_studio/tests/test_optional/test_matplotlylib/test_plot_mpl.py b/packages/python/chart-studio/chart_studio/tests/test_optional/test_matplotlylib/test_plot_mpl.py index 83732461ba9..ac352928465 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_optional/test_matplotlylib/test_plot_mpl.py +++ b/packages/python/chart-studio/chart_studio/tests/test_optional/test_matplotlylib/test_plot_mpl.py @@ -15,17 +15,16 @@ from chart_studio.plotly import plotly as py from unittest import TestCase -matplotlylib = optional_imports.get_module('plotly.matplotlylib') +matplotlylib = optional_imports.get_module("plotly.matplotlylib") if matplotlylib: import matplotlib.pyplot as plt -@attr('matplotlib') +@attr("matplotlib") class PlotMPLTest(TestCase): def setUp(self): - py.sign_in('PlotlyImageTest', '786r5mecv0', - plotly_domain='https://plot.ly') + py.sign_in("PlotlyImageTest", "786r5mecv0", plotly_domain="https://plot.ly") @raises(_plotly_utils.exceptions.PlotlyGraphObjectError) def test_update_type_error(self): @@ -38,18 +37,17 @@ def test_update_type_error(self): def test_update_validation_error(self): fig, ax = plt.subplots() ax.plot([1, 2, 3]) - update = {'invalid': 'anything'} + update = {"invalid": "anything"} py.plot_mpl(fig, update=update, filename="nosetests", auto_open=False) - @attr('slow') + @attr("slow") def test_update(self): fig, ax = plt.subplots() ax.plot([1, 2, 3]) - title = 'new title' - update = {'layout': {'title': title}} - url = py.plot_mpl(fig, update=update, filename="nosetests", - auto_open=False) - un = url.replace("https://plot.ly/~", "").split('/')[0] - fid = url.replace("https://plot.ly/~", "").split('/')[1] + title = "new title" + update = {"layout": {"title": title}} + url = py.plot_mpl(fig, update=update, filename="nosetests", auto_open=False) + un = url.replace("https://plot.ly/~", "").split("/")[0] + fid = url.replace("https://plot.ly/~", "").split("/")[1] pfig = py.get_figure(un, fid) - assert pfig['layout']['title']['text'] == title + assert pfig["layout"]["title"]["text"] == title diff --git a/packages/python/chart-studio/chart_studio/tests/test_optional/test_utils/test_utils.py b/packages/python/chart-studio/chart_studio/tests/test_optional/test_utils/test_utils.py index 3d4b5616e65..6ead2b2bdca 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_optional/test_utils/test_utils.py +++ b/packages/python/chart-studio/chart_studio/tests/test_optional/test_utils/test_utils.py @@ -8,25 +8,32 @@ np_list = np.array([1, 2, 3, np.NaN, np.NAN, np.Inf, dt(2014, 1, 5)]) numeric_list = [1, 2, 3] -mixed_list = [1, 'A', dt(2014, 1, 5), dt(2014, 1, 5, 1, 1, 1), - dt(2014, 1, 5, 1, 1, 1, 1)] +mixed_list = [ + 1, + "A", + dt(2014, 1, 5), + dt(2014, 1, 5, 1, 1, 1), + dt(2014, 1, 5, 1, 1, 1, 1), +] class TestJSONEncoder(TestCase): def test_column_json_encoding(self): columns = [ - Column(numeric_list, 'col 1'), - Column(mixed_list, 'col 2'), - Column(np_list, 'col 3') + Column(numeric_list, "col 1"), + Column(mixed_list, "col 2"), + Column(np_list, "col 3"), ] json_columns = _json.dumps( columns, cls=_plotly_utils.utils.PlotlyJSONEncoder, sort_keys=True ) - print(json_columns) - assert('[{"data": [1, 2, 3], "name": "col 1"}, ' - '{"data": [1, "A", "2014-01-05T00:00:00", ' - '"2014-01-05T01:01:01", ' - '"2014-01-05T01:01:01.000001"], ' - '"name": "col 2"}, ' - '{"data": [1, 2, 3, null, null, null, ' - '"2014-01-05T00:00:00"], "name": "col 3"}]' == json_columns) + print (json_columns) + assert ( + '[{"data": [1, 2, 3], "name": "col 1"}, ' + '{"data": [1, "A", "2014-01-05T00:00:00", ' + '"2014-01-05T01:01:01", ' + '"2014-01-05T01:01:01.000001"], ' + '"name": "col 2"}, ' + '{"data": [1, 2, 3, null, null, null, ' + '"2014-01-05T00:00:00"], "name": "col 3"}]' == json_columns + ) diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/__init__.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/__init__.py index 5a2ce755612..8307806d5c9 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/__init__.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/__init__.py @@ -15,7 +15,6 @@ class PlotlyApiTestCase(PlotlyTestCase): - def mock(self, path_string): patcher = patch(path_string) new_mock = patcher.start() @@ -26,17 +25,17 @@ def setUp(self): super(PlotlyApiTestCase, self).setUp() - self.username = 'foo' - self.api_key = 'bar' + self.username = "foo" + self.api_key = "bar" - self.proxy_username = 'cnet' - self.proxy_password = 'hoopla' - self.stream_ids = ['heyThere'] + self.proxy_username = "cnet" + self.proxy_password = "hoopla" + self.stream_ids = ["heyThere"] - self.plotly_api_domain = 'https://api.do.not.exist' - self.plotly_domain = 'https://who.am.i' + self.plotly_api_domain = "https://api.do.not.exist" + self.plotly_domain = "https://who.am.i" self.plotly_proxy_authorization = False - self.plotly_streaming_domain = 'stream.does.not.exist' + self.plotly_streaming_domain = "stream.does.not.exist" self.plotly_ssl_verification = True sign_in( @@ -49,18 +48,18 @@ def setUp(self): plotly_api_domain=self.plotly_api_domain, plotly_streaming_domain=self.plotly_streaming_domain, plotly_proxy_authorization=self.plotly_proxy_authorization, - plotly_ssl_verification=self.plotly_ssl_verification + plotly_ssl_verification=self.plotly_ssl_verification, ) def to_bytes(self, string): try: - return string.encode('utf-8') + return string.encode("utf-8") except AttributeError: return string - def get_response(self, content=b'', status_code=200): + def get_response(self, content=b"", status_code=200): response = Response() response.status_code = status_code response._content = content - response.encoding = 'utf-8' + response.encoding = "utf-8" return response diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_files.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_files.py index e911af4cbc9..db18b190317 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_files.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_files.py @@ -5,100 +5,92 @@ class FilesTest(PlotlyApiTestCase): - def setUp(self): super(FilesTest, self).setUp() # Mock the actual api call, we don't want to do network tests here. - self.request_mock = self.mock('chart_studio.api.v2.utils.requests.request') + self.request_mock = self.mock("chart_studio.api.v2.utils.requests.request") self.request_mock.return_value = self.get_response() # Mock the validation function since we can test that elsewhere. - self.mock('chart_studio.api.v2.utils.validate_response') + self.mock("chart_studio.api.v2.utils.validate_response") def test_retrieve(self): - files.retrieve('hodor:88') + files.retrieve("hodor:88") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'get') - self.assertEqual( - url, '{}/v2/files/hodor:88'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['params'], {}) + self.assertEqual(method, "get") + self.assertEqual(url, "{}/v2/files/hodor:88".format(self.plotly_api_domain)) + self.assertEqual(kwargs["params"], {}) def test_retrieve_share_key(self): - files.retrieve('hodor:88', share_key='foobar') + files.retrieve("hodor:88", share_key="foobar") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'get') - self.assertEqual( - url, '{}/v2/files/hodor:88'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['params'], {'share_key': 'foobar'}) + self.assertEqual(method, "get") + self.assertEqual(url, "{}/v2/files/hodor:88".format(self.plotly_api_domain)) + self.assertEqual(kwargs["params"], {"share_key": "foobar"}) def test_update(self): - new_filename = '..zzZ ..zzZ' - files.update('hodor:88', body={'filename': new_filename}) + new_filename = "..zzZ ..zzZ" + files.update("hodor:88", body={"filename": new_filename}) assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'put') - self.assertEqual( - url, '{}/v2/files/hodor:88'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['data'], - '{{"filename": "{}"}}'.format(new_filename)) + self.assertEqual(method, "put") + self.assertEqual(url, "{}/v2/files/hodor:88".format(self.plotly_api_domain)) + self.assertEqual(kwargs["data"], '{{"filename": "{}"}}'.format(new_filename)) def test_trash(self): - files.trash('hodor:88') + files.trash("hodor:88") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'post') + self.assertEqual(method, "post") self.assertEqual( - url, '{}/v2/files/hodor:88/trash'.format(self.plotly_api_domain) + url, "{}/v2/files/hodor:88/trash".format(self.plotly_api_domain) ) def test_restore(self): - files.restore('hodor:88') + files.restore("hodor:88") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'post') + self.assertEqual(method, "post") self.assertEqual( - url, '{}/v2/files/hodor:88/restore'.format(self.plotly_api_domain) + url, "{}/v2/files/hodor:88/restore".format(self.plotly_api_domain) ) def test_permanent_delete(self): - files.permanent_delete('hodor:88') + files.permanent_delete("hodor:88") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'delete') + self.assertEqual(method, "delete") self.assertEqual( - url, - '{}/v2/files/hodor:88/permanent_delete' - .format(self.plotly_api_domain) + url, "{}/v2/files/hodor:88/permanent_delete".format(self.plotly_api_domain) ) def test_lookup(self): # requests does urlencode, so don't worry about the `' '` character! - path = '/mah plot' + path = "/mah plot" parent = 43 - user = 'someone' + user = "someone" exists = True files.lookup(path=path, parent=parent, user=user, exists=exists) assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - expected_params = {'path': path, 'parent': parent, 'exists': 'true', - 'user': user} - self.assertEqual(method, 'get') - self.assertEqual( - url, '{}/v2/files/lookup'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['params'], expected_params) + expected_params = { + "path": path, + "parent": parent, + "exists": "true", + "user": user, + } + self.assertEqual(method, "get") + self.assertEqual(url, "{}/v2/files/lookup".format(self.plotly_api_domain)) + self.assertEqual(kwargs["params"], expected_params) diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_folders.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_folders.py index 0d0780f2b22..22ce20b3974 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_folders.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_folders.py @@ -5,110 +5,103 @@ class FoldersTest(PlotlyApiTestCase): - def setUp(self): super(FoldersTest, self).setUp() # Mock the actual api call, we don't want to do network tests here. - self.request_mock = self.mock('chart_studio.api.v2.utils.requests.request') + self.request_mock = self.mock("chart_studio.api.v2.utils.requests.request") self.request_mock.return_value = self.get_response() # Mock the validation function since we can test that elsewhere. - self.mock('chart_studio.api.v2.utils.validate_response') + self.mock("chart_studio.api.v2.utils.validate_response") def test_create(self): - path = '/foo/man/bar/' - folders.create({'path': path}) + path = "/foo/man/bar/" + folders.create({"path": path}) assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'post') - self.assertEqual(url, '{}/v2/folders'.format(self.plotly_api_domain)) - self.assertEqual(kwargs['data'], '{{"path": "{}"}}'.format(path)) + self.assertEqual(method, "post") + self.assertEqual(url, "{}/v2/folders".format(self.plotly_api_domain)) + self.assertEqual(kwargs["data"], '{{"path": "{}"}}'.format(path)) def test_retrieve(self): - folders.retrieve('hodor:88') + folders.retrieve("hodor:88") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'get') - self.assertEqual( - url, '{}/v2/folders/hodor:88'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['params'], {}) + self.assertEqual(method, "get") + self.assertEqual(url, "{}/v2/folders/hodor:88".format(self.plotly_api_domain)) + self.assertEqual(kwargs["params"], {}) def test_retrieve_share_key(self): - folders.retrieve('hodor:88', share_key='foobar') + folders.retrieve("hodor:88", share_key="foobar") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'get') - self.assertEqual( - url, '{}/v2/folders/hodor:88'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['params'], {'share_key': 'foobar'}) + self.assertEqual(method, "get") + self.assertEqual(url, "{}/v2/folders/hodor:88".format(self.plotly_api_domain)) + self.assertEqual(kwargs["params"], {"share_key": "foobar"}) def test_update(self): - new_filename = '..zzZ ..zzZ' - folders.update('hodor:88', body={'filename': new_filename}) + new_filename = "..zzZ ..zzZ" + folders.update("hodor:88", body={"filename": new_filename}) assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'put') - self.assertEqual( - url, '{}/v2/folders/hodor:88'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['data'], - '{{"filename": "{}"}}'.format(new_filename)) + self.assertEqual(method, "put") + self.assertEqual(url, "{}/v2/folders/hodor:88".format(self.plotly_api_domain)) + self.assertEqual(kwargs["data"], '{{"filename": "{}"}}'.format(new_filename)) def test_trash(self): - folders.trash('hodor:88') + folders.trash("hodor:88") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'post') + self.assertEqual(method, "post") self.assertEqual( - url, '{}/v2/folders/hodor:88/trash'.format(self.plotly_api_domain) + url, "{}/v2/folders/hodor:88/trash".format(self.plotly_api_domain) ) def test_restore(self): - folders.restore('hodor:88') + folders.restore("hodor:88") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'post') + self.assertEqual(method, "post") self.assertEqual( - url, '{}/v2/folders/hodor:88/restore'.format(self.plotly_api_domain) + url, "{}/v2/folders/hodor:88/restore".format(self.plotly_api_domain) ) def test_permanent_delete(self): - folders.permanent_delete('hodor:88') + folders.permanent_delete("hodor:88") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'delete') + self.assertEqual(method, "delete") self.assertEqual( url, - '{}/v2/folders/hodor:88/permanent_delete' - .format(self.plotly_api_domain) + "{}/v2/folders/hodor:88/permanent_delete".format(self.plotly_api_domain), ) def test_lookup(self): # requests does urlencode, so don't worry about the `' '` character! - path = '/mah folder' + path = "/mah folder" parent = 43 - user = 'someone' + user = "someone" exists = True folders.lookup(path=path, parent=parent, user=user, exists=exists) assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - expected_params = {'path': path, 'parent': parent, 'exists': 'true', - 'user': user} - self.assertEqual(method, 'get') - self.assertEqual( - url, '{}/v2/folders/lookup'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['params'], expected_params) + expected_params = { + "path": path, + "parent": parent, + "exists": "true", + "user": user, + } + self.assertEqual(method, "get") + self.assertEqual(url, "{}/v2/folders/lookup".format(self.plotly_api_domain)) + self.assertEqual(kwargs["params"], expected_params) diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_grids.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_grids.py index aa3d06bd6c1..3fdd588c5d4 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_grids.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_grids.py @@ -7,179 +7,159 @@ class GridsTest(PlotlyApiTestCase): - def setUp(self): super(GridsTest, self).setUp() # Mock the actual api call, we don't want to do network tests here. - self.request_mock = self.mock('chart_studio.api.v2.utils.requests.request') + self.request_mock = self.mock("chart_studio.api.v2.utils.requests.request") self.request_mock.return_value = self.get_response() # Mock the validation function since we can test that elsewhere. - self.mock('chart_studio.api.v2.utils.validate_response') + self.mock("chart_studio.api.v2.utils.validate_response") def test_create(self): - filename = 'a grid' - grids.create({'filename': filename}) + filename = "a grid" + grids.create({"filename": filename}) assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'post') - self.assertEqual(url, '{}/v2/grids'.format(self.plotly_api_domain)) - self.assertEqual( - kwargs['data'], '{{"filename": "{}"}}'.format(filename) - ) + self.assertEqual(method, "post") + self.assertEqual(url, "{}/v2/grids".format(self.plotly_api_domain)) + self.assertEqual(kwargs["data"], '{{"filename": "{}"}}'.format(filename)) def test_retrieve(self): - grids.retrieve('hodor:88') + grids.retrieve("hodor:88") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'get') - self.assertEqual( - url, '{}/v2/grids/hodor:88'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['params'], {}) + self.assertEqual(method, "get") + self.assertEqual(url, "{}/v2/grids/hodor:88".format(self.plotly_api_domain)) + self.assertEqual(kwargs["params"], {}) def test_retrieve_share_key(self): - grids.retrieve('hodor:88', share_key='foobar') + grids.retrieve("hodor:88", share_key="foobar") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'get') - self.assertEqual( - url, '{}/v2/grids/hodor:88'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['params'], {'share_key': 'foobar'}) + self.assertEqual(method, "get") + self.assertEqual(url, "{}/v2/grids/hodor:88".format(self.plotly_api_domain)) + self.assertEqual(kwargs["params"], {"share_key": "foobar"}) def test_update(self): - new_filename = '..zzZ ..zzZ' - grids.update('hodor:88', body={'filename': new_filename}) + new_filename = "..zzZ ..zzZ" + grids.update("hodor:88", body={"filename": new_filename}) assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'put') - self.assertEqual( - url, '{}/v2/grids/hodor:88'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['data'], - '{{"filename": "{}"}}'.format(new_filename)) + self.assertEqual(method, "put") + self.assertEqual(url, "{}/v2/grids/hodor:88".format(self.plotly_api_domain)) + self.assertEqual(kwargs["data"], '{{"filename": "{}"}}'.format(new_filename)) def test_trash(self): - grids.trash('hodor:88') + grids.trash("hodor:88") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'post') + self.assertEqual(method, "post") self.assertEqual( - url, '{}/v2/grids/hodor:88/trash'.format(self.plotly_api_domain) + url, "{}/v2/grids/hodor:88/trash".format(self.plotly_api_domain) ) def test_restore(self): - grids.restore('hodor:88') + grids.restore("hodor:88") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'post') + self.assertEqual(method, "post") self.assertEqual( - url, '{}/v2/grids/hodor:88/restore'.format(self.plotly_api_domain) + url, "{}/v2/grids/hodor:88/restore".format(self.plotly_api_domain) ) def test_permanent_delete(self): - grids.permanent_delete('hodor:88') + grids.permanent_delete("hodor:88") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'delete') + self.assertEqual(method, "delete") self.assertEqual( - url, - '{}/v2/grids/hodor:88/permanent_delete' - .format(self.plotly_api_domain) + url, "{}/v2/grids/hodor:88/permanent_delete".format(self.plotly_api_domain) ) def test_lookup(self): # requests does urlencode, so don't worry about the `' '` character! - path = '/mah grid' + path = "/mah grid" parent = 43 - user = 'someone' + user = "someone" exists = True grids.lookup(path=path, parent=parent, user=user, exists=exists) assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - expected_params = {'path': path, 'parent': parent, 'exists': 'true', - 'user': user} - self.assertEqual(method, 'get') - self.assertEqual( - url, '{}/v2/grids/lookup'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['params'], expected_params) + expected_params = { + "path": path, + "parent": parent, + "exists": "true", + "user": user, + } + self.assertEqual(method, "get") + self.assertEqual(url, "{}/v2/grids/lookup".format(self.plotly_api_domain)) + self.assertEqual(kwargs["params"], expected_params) def test_col_create(self): cols = [ - {'name': 'foo', 'data': [1, 2, 3]}, - {'name': 'bar', 'data': ['b', 'a', 'r']}, + {"name": "foo", "data": [1, 2, 3]}, + {"name": "bar", "data": ["b", "a", "r"]}, ] - body = {'cols': _json.dumps(cols, sort_keys=True)} - grids.col_create('hodor:88', body) + body = {"cols": _json.dumps(cols, sort_keys=True)} + grids.col_create("hodor:88", body) assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'post') - self.assertEqual( - url, '{}/v2/grids/hodor:88/col'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['data'], _json.dumps(body, sort_keys=True)) + self.assertEqual(method, "post") + self.assertEqual(url, "{}/v2/grids/hodor:88/col".format(self.plotly_api_domain)) + self.assertEqual(kwargs["data"], _json.dumps(body, sort_keys=True)) def test_col_retrieve(self): - grids.col_retrieve('hodor:88', 'aaaaaa,bbbbbb') + grids.col_retrieve("hodor:88", "aaaaaa,bbbbbb") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'get') - self.assertEqual( - url, '{}/v2/grids/hodor:88/col'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['params'], {'uid': 'aaaaaa,bbbbbb'}) + self.assertEqual(method, "get") + self.assertEqual(url, "{}/v2/grids/hodor:88/col".format(self.plotly_api_domain)) + self.assertEqual(kwargs["params"], {"uid": "aaaaaa,bbbbbb"}) def test_col_update(self): cols = [ - {'name': 'foo', 'data': [1, 2, 3]}, - {'name': 'bar', 'data': ['b', 'a', 'r']}, + {"name": "foo", "data": [1, 2, 3]}, + {"name": "bar", "data": ["b", "a", "r"]}, ] - body = {'cols': _json.dumps(cols, sort_keys=True)} - grids.col_update('hodor:88', 'aaaaaa,bbbbbb', body) + body = {"cols": _json.dumps(cols, sort_keys=True)} + grids.col_update("hodor:88", "aaaaaa,bbbbbb", body) assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'put') - self.assertEqual( - url, '{}/v2/grids/hodor:88/col'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['params'], {'uid': 'aaaaaa,bbbbbb'}) - self.assertEqual(kwargs['data'], _json.dumps(body, sort_keys=True)) + self.assertEqual(method, "put") + self.assertEqual(url, "{}/v2/grids/hodor:88/col".format(self.plotly_api_domain)) + self.assertEqual(kwargs["params"], {"uid": "aaaaaa,bbbbbb"}) + self.assertEqual(kwargs["data"], _json.dumps(body, sort_keys=True)) def test_col_delete(self): - grids.col_delete('hodor:88', 'aaaaaa,bbbbbb') + grids.col_delete("hodor:88", "aaaaaa,bbbbbb") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'delete') - self.assertEqual( - url, '{}/v2/grids/hodor:88/col'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['params'], {'uid': 'aaaaaa,bbbbbb'}) + self.assertEqual(method, "delete") + self.assertEqual(url, "{}/v2/grids/hodor:88/col".format(self.plotly_api_domain)) + self.assertEqual(kwargs["params"], {"uid": "aaaaaa,bbbbbb"}) def test_row(self): - body = {'rows': [[1, 'A'], [2, 'B']]} - grids.row('hodor:88', body) + body = {"rows": [[1, "A"], [2, "B"]]} + grids.row("hodor:88", body) assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'post') - self.assertEqual( - url, '{}/v2/grids/hodor:88/row'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['data'], _json.dumps(body, sort_keys=True)) + self.assertEqual(method, "post") + self.assertEqual(url, "{}/v2/grids/hodor:88/row".format(self.plotly_api_domain)) + self.assertEqual(kwargs["data"], _json.dumps(body, sort_keys=True)) diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_images.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_images.py index 11f4f90c9e1..e0dff23efb5 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_images.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_images.py @@ -7,35 +7,31 @@ class ImagesTest(PlotlyApiTestCase): - def setUp(self): super(ImagesTest, self).setUp() # Mock the actual api call, we don't want to do network tests here. - self.request_mock = self.mock('chart_studio.api.v2.utils.requests.request') + self.request_mock = self.mock("chart_studio.api.v2.utils.requests.request") self.request_mock.return_value = self.get_response() # Mock the validation function since we can test that elsewhere. - self.mock('chart_studio.api.v2.utils.validate_response') + self.mock("chart_studio.api.v2.utils.validate_response") def test_create(self): body = { - "figure": { - "data": [{"y": [10, 10, 2, 20]}], - "layout": {"width": 700} - }, + "figure": {"data": [{"y": [10, 10, 2, 20]}], "layout": {"width": 700}}, "width": 1000, "height": 500, "format": "png", "scale": 4, - "encoded": False + "encoded": False, } images.create(body) assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'post') - self.assertEqual(url, '{}/v2/images'.format(self.plotly_api_domain)) - self.assertEqual(kwargs['data'], _json.dumps(body, sort_keys=True)) + self.assertEqual(method, "post") + self.assertEqual(url, "{}/v2/images".format(self.plotly_api_domain)) + self.assertEqual(kwargs["data"], _json.dumps(body, sort_keys=True)) diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_plot_schema.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_plot_schema.py index e79798c504c..b52c4ece657 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_plot_schema.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_plot_schema.py @@ -5,26 +5,23 @@ class PlotSchemaTest(PlotlyApiTestCase): - def setUp(self): super(PlotSchemaTest, self).setUp() # Mock the actual api call, we don't want to do network tests here. - self.request_mock = self.mock('chart_studio.api.v2.utils.requests.request') + self.request_mock = self.mock("chart_studio.api.v2.utils.requests.request") self.request_mock.return_value = self.get_response() # Mock the validation function since we can test that elsewhere. - self.mock('chart_studio.api.v2.utils.validate_response') + self.mock("chart_studio.api.v2.utils.validate_response") def test_retrieve(self): - plot_schema.retrieve('some-hash', timeout=400) + plot_schema.retrieve("some-hash", timeout=400) assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'get') - self.assertEqual( - url, '{}/v2/plot-schema'.format(self.plotly_api_domain) - ) - self.assertTrue(kwargs['timeout']) - self.assertEqual(kwargs['params'], {'sha1': 'some-hash'}) + self.assertEqual(method, "get") + self.assertEqual(url, "{}/v2/plot-schema".format(self.plotly_api_domain)) + self.assertTrue(kwargs["timeout"]) + self.assertEqual(kwargs["params"], {"sha1": "some-hash"}) diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_plots.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_plots.py index ed4157226f1..7ed5f72fd7d 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_plots.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_plots.py @@ -5,112 +5,102 @@ class PlotsTest(PlotlyApiTestCase): - def setUp(self): super(PlotsTest, self).setUp() # Mock the actual api call, we don't want to do network tests here. - self.request_mock = self.mock('chart_studio.api.v2.utils.requests.request') + self.request_mock = self.mock("chart_studio.api.v2.utils.requests.request") self.request_mock.return_value = self.get_response() # Mock the validation function since we can test that elsewhere. - self.mock('chart_studio.api.v2.utils.validate_response') + self.mock("chart_studio.api.v2.utils.validate_response") def test_create(self): - filename = 'a plot' - plots.create({'filename': filename}) + filename = "a plot" + plots.create({"filename": filename}) assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'post') - self.assertEqual(url, '{}/v2/plots'.format(self.plotly_api_domain)) - self.assertEqual( - kwargs['data'], '{{"filename": "{}"}}'.format(filename) - ) + self.assertEqual(method, "post") + self.assertEqual(url, "{}/v2/plots".format(self.plotly_api_domain)) + self.assertEqual(kwargs["data"], '{{"filename": "{}"}}'.format(filename)) def test_retrieve(self): - plots.retrieve('hodor:88') + plots.retrieve("hodor:88") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'get') - self.assertEqual( - url, '{}/v2/plots/hodor:88'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['params'], {}) + self.assertEqual(method, "get") + self.assertEqual(url, "{}/v2/plots/hodor:88".format(self.plotly_api_domain)) + self.assertEqual(kwargs["params"], {}) def test_retrieve_share_key(self): - plots.retrieve('hodor:88', share_key='foobar') + plots.retrieve("hodor:88", share_key="foobar") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'get') - self.assertEqual( - url, '{}/v2/plots/hodor:88'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['params'], {'share_key': 'foobar'}) + self.assertEqual(method, "get") + self.assertEqual(url, "{}/v2/plots/hodor:88".format(self.plotly_api_domain)) + self.assertEqual(kwargs["params"], {"share_key": "foobar"}) def test_update(self): - new_filename = '..zzZ ..zzZ' - plots.update('hodor:88', body={'filename': new_filename}) + new_filename = "..zzZ ..zzZ" + plots.update("hodor:88", body={"filename": new_filename}) assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'put') - self.assertEqual( - url, '{}/v2/plots/hodor:88'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['data'], - '{{"filename": "{}"}}'.format(new_filename)) + self.assertEqual(method, "put") + self.assertEqual(url, "{}/v2/plots/hodor:88".format(self.plotly_api_domain)) + self.assertEqual(kwargs["data"], '{{"filename": "{}"}}'.format(new_filename)) def test_trash(self): - plots.trash('hodor:88') + plots.trash("hodor:88") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'post') + self.assertEqual(method, "post") self.assertEqual( - url, '{}/v2/plots/hodor:88/trash'.format(self.plotly_api_domain) + url, "{}/v2/plots/hodor:88/trash".format(self.plotly_api_domain) ) def test_restore(self): - plots.restore('hodor:88') + plots.restore("hodor:88") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'post') + self.assertEqual(method, "post") self.assertEqual( - url, '{}/v2/plots/hodor:88/restore'.format(self.plotly_api_domain) + url, "{}/v2/plots/hodor:88/restore".format(self.plotly_api_domain) ) def test_permanent_delete(self): - plots.permanent_delete('hodor:88') + plots.permanent_delete("hodor:88") assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'delete') + self.assertEqual(method, "delete") self.assertEqual( - url, - '{}/v2/plots/hodor:88/permanent_delete' - .format(self.plotly_api_domain) + url, "{}/v2/plots/hodor:88/permanent_delete".format(self.plotly_api_domain) ) def test_lookup(self): # requests does urlencode, so don't worry about the `' '` character! - path = '/mah plot' + path = "/mah plot" parent = 43 - user = 'someone' + user = "someone" exists = True plots.lookup(path=path, parent=parent, user=user, exists=exists) assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - expected_params = {'path': path, 'parent': parent, 'exists': 'true', - 'user': user} - self.assertEqual(method, 'get') - self.assertEqual( - url, '{}/v2/plots/lookup'.format(self.plotly_api_domain) - ) - self.assertEqual(kwargs['params'], expected_params) + expected_params = { + "path": path, + "parent": parent, + "exists": "true", + "user": user, + } + self.assertEqual(method, "get") + self.assertEqual(url, "{}/v2/plots/lookup".format(self.plotly_api_domain)) + self.assertEqual(kwargs["params"], expected_params) diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_users.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_users.py index 5e787424437..2514221f8ea 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_users.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_users.py @@ -5,24 +5,21 @@ class UsersTest(PlotlyApiTestCase): - def setUp(self): super(UsersTest, self).setUp() # Mock the actual api call, we don't want to do network tests here. - self.request_mock = self.mock('chart_studio.api.v2.utils.requests.request') + self.request_mock = self.mock("chart_studio.api.v2.utils.requests.request") self.request_mock.return_value = self.get_response() # Mock the validation function since we can test that elsewhere. - self.mock('chart_studio.api.v2.utils.validate_response') + self.mock("chart_studio.api.v2.utils.validate_response") def test_current(self): users.current() assert self.request_mock.call_count == 1 args, kwargs = self.request_mock.call_args method, url = args - self.assertEqual(method, 'get') - self.assertEqual( - url, '{}/v2/users/current'.format(self.plotly_api_domain) - ) - self.assertNotIn('params', kwargs) + self.assertEqual(method, "get") + self.assertEqual(url, "{}/v2/users/current".format(self.plotly_api_domain)) + self.assertNotIn("params", kwargs) diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_utils.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_utils.py index f8bb29ec345..bed79b06114 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_utils.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_api/test_v2/test_utils.py @@ -12,10 +12,9 @@ class MakeParamsTest(PlotlyApiTestCase): - def test_make_params(self): - params = utils.make_params(foo='FOO', bar=None) - self.assertEqual(params, {'foo': 'FOO'}) + params = utils.make_params(foo="FOO", bar=None) + self.assertEqual(params, {"foo": "FOO"}) def test_make_params_empty(self): params = utils.make_params(foo=None, bar=None) @@ -23,69 +22,62 @@ def test_make_params_empty(self): class BuildUrlTest(PlotlyApiTestCase): - def test_build_url(self): - url = utils.build_url('cats') - self.assertEqual(url, '{}/v2/cats'.format(self.plotly_api_domain)) + url = utils.build_url("cats") + self.assertEqual(url, "{}/v2/cats".format(self.plotly_api_domain)) def test_build_url_id(self): - url = utils.build_url('cats', id='MsKitty') - self.assertEqual( - url, '{}/v2/cats/MsKitty'.format(self.plotly_api_domain) - ) + url = utils.build_url("cats", id="MsKitty") + self.assertEqual(url, "{}/v2/cats/MsKitty".format(self.plotly_api_domain)) def test_build_url_route(self): - url = utils.build_url('cats', route='about') - self.assertEqual( - url, '{}/v2/cats/about'.format(self.plotly_api_domain) - ) + url = utils.build_url("cats", route="about") + self.assertEqual(url, "{}/v2/cats/about".format(self.plotly_api_domain)) def test_build_url_id_route(self): - url = utils.build_url('cats', id='MsKitty', route='de-claw') + url = utils.build_url("cats", id="MsKitty", route="de-claw") self.assertEqual( - url, '{}/v2/cats/MsKitty/de-claw'.format(self.plotly_api_domain) + url, "{}/v2/cats/MsKitty/de-claw".format(self.plotly_api_domain) ) class ValidateResponseTest(PlotlyApiTestCase): - def test_validate_ok(self): try: utils.validate_response(self.get_response()) except PlotlyRequestError: - self.fail('Expected this to pass!') + self.fail("Expected this to pass!") def test_validate_not_ok(self): bad_status_codes = (400, 404, 500) for bad_status_code in bad_status_codes: response = self.get_response(status_code=bad_status_code) - self.assertRaises(PlotlyRequestError, utils.validate_response, - response) + self.assertRaises(PlotlyRequestError, utils.validate_response, response) def test_validate_no_content(self): # We shouldn't flake if the response has no content. - response = self.get_response(content=b'', status_code=400) + response = self.get_response(content=b"", status_code=400) try: utils.validate_response(response) except PlotlyRequestError as e: - self.assertEqual(e.message, u'No Content') + self.assertEqual(e.message, "No Content") self.assertEqual(e.status_code, 400) - self.assertEqual(e.content.decode('utf-8'), u'') + self.assertEqual(e.content.decode("utf-8"), "") else: - self.fail('Expected this to raise!') + self.fail("Expected this to raise!") def test_validate_non_json_content(self): - response = self.get_response(content=b'foobar', status_code=400) + response = self.get_response(content=b"foobar", status_code=400) try: utils.validate_response(response) except PlotlyRequestError as e: - self.assertEqual(e.message, 'foobar') + self.assertEqual(e.message, "foobar") self.assertEqual(e.status_code, 400) - self.assertEqual(e.content, b'foobar') + self.assertEqual(e.content, b"foobar") else: - self.fail('Expected this to raise!') + self.fail("Expected this to raise!") def test_validate_json_content_array(self): content = self.to_bytes(_json.dumps([1, 2, 3])) @@ -97,10 +89,10 @@ def test_validate_json_content_array(self): self.assertEqual(e.status_code, 400) self.assertEqual(e.content, content) else: - self.fail('Expected this to raise!') + self.fail("Expected this to raise!") def test_validate_json_content_dict_no_errors(self): - content = self.to_bytes(_json.dumps({'foo': 'bar'})) + content = self.to_bytes(_json.dumps({"foo": "bar"})) response = self.get_response(content=content, status_code=400) try: utils.validate_response(response) @@ -109,10 +101,10 @@ def test_validate_json_content_dict_no_errors(self): self.assertEqual(e.status_code, 400) self.assertEqual(e.content, content) else: - self.fail('Expected this to raise!') + self.fail("Expected this to raise!") def test_validate_json_content_dict_one_error_bad(self): - content = self.to_bytes(_json.dumps({'errors': [{}]})) + content = self.to_bytes(_json.dumps({"errors": [{}]})) response = self.get_response(content=content, status_code=400) try: utils.validate_response(response) @@ -121,9 +113,9 @@ def test_validate_json_content_dict_one_error_bad(self): self.assertEqual(e.status_code, 400) self.assertEqual(e.content, content) else: - self.fail('Expected this to raise!') + self.fail("Expected this to raise!") - content = self.to_bytes(_json.dumps({'errors': [{'message': ''}]})) + content = self.to_bytes(_json.dumps({"errors": [{"message": ""}]})) response = self.get_response(content=content, status_code=400) try: utils.validate_response(response) @@ -132,44 +124,42 @@ def test_validate_json_content_dict_one_error_bad(self): self.assertEqual(e.status_code, 400) self.assertEqual(e.content, content) else: - self.fail('Expected this to raise!') + self.fail("Expected this to raise!") def test_validate_json_content_dict_one_error_ok(self): - content = self.to_bytes(_json.dumps( - {'errors': [{'message': 'not ok!'}]})) + content = self.to_bytes(_json.dumps({"errors": [{"message": "not ok!"}]})) response = self.get_response(content=content, status_code=400) try: utils.validate_response(response) except PlotlyRequestError as e: - self.assertEqual(e.message, 'not ok!') + self.assertEqual(e.message, "not ok!") self.assertEqual(e.status_code, 400) self.assertEqual(e.content, content) else: - self.fail('Expected this to raise!') + self.fail("Expected this to raise!") def test_validate_json_content_dict_multiple_errors(self): - content = self.to_bytes(_json.dumps({'errors': [ - {'message': 'not ok!'}, {'message': 'bad job...'} - ]})) + content = self.to_bytes( + _json.dumps({"errors": [{"message": "not ok!"}, {"message": "bad job..."}]}) + ) response = self.get_response(content=content, status_code=400) try: utils.validate_response(response) except PlotlyRequestError as e: - self.assertEqual(e.message, 'not ok!\nbad job...') + self.assertEqual(e.message, "not ok!\nbad job...") self.assertEqual(e.status_code, 400) self.assertEqual(e.content, content) else: - self.fail('Expected this to raise!') + self.fail("Expected this to raise!") class GetHeadersTest(PlotlyApiTestCase): - def test_normal_auth(self): headers = utils.get_headers() expected_headers = { - 'plotly-client-platform': 'python {}'.format(version.stable_semver()), - 'authorization': 'Basic Zm9vOmJhcg==', - 'content-type': 'application/json' + "plotly-client-platform": "python {}".format(version.stable_semver()), + "authorization": "Basic Zm9vOmJhcg==", + "content-type": "application/json", } self.assertEqual(headers, expected_headers) @@ -177,44 +167,43 @@ def test_proxy_auth(self): sign_in(self.username, self.api_key, plotly_proxy_authorization=True) headers = utils.get_headers() expected_headers = { - 'plotly-client-platform': 'python {}'.format(version.stable_semver()), - 'authorization': 'Basic Y25ldDpob29wbGE=', - 'plotly-authorization': 'Basic Zm9vOmJhcg==', - 'content-type': 'application/json' + "plotly-client-platform": "python {}".format(version.stable_semver()), + "authorization": "Basic Y25ldDpob29wbGE=", + "plotly-authorization": "Basic Zm9vOmJhcg==", + "content-type": "application/json", } self.assertEqual(headers, expected_headers) class RequestTest(PlotlyApiTestCase): - def setUp(self): super(RequestTest, self).setUp() # Mock the actual api call, we don't want to do network tests here. - self.request_mock = self.mock('chart_studio.api.v2.utils.requests.request') + self.request_mock = self.mock("chart_studio.api.v2.utils.requests.request") self.request_mock.return_value = self.get_response() # Mock the validation function since we can test that elsewhere. self.validate_response_mock = self.mock( - 'chart_studio.api.v2.utils.validate_response') + "chart_studio.api.v2.utils.validate_response" + ) - self.method = 'get' - self.url = 'https://foo.bar.does.not.exist.anywhere' + self.method = "get" + self.url = "https://foo.bar.does.not.exist.anywhere" def test_request_with_params(self): # urlencode transforms `True` --> `'True'`, which isn't super helpful, # Our backend accepts the JS `true`, so we want `True` --> `'true'`. - params = {'foo': True, 'bar': 'True', 'baz': False, 'zap': 0} + params = {"foo": True, "bar": "True", "baz": False, "zap": 0} utils.request(self.method, self.url, params=params) args, kwargs = self.request_mock.call_args method, url = args - expected_params = {'foo': 'true', 'bar': 'True', 'baz': 'false', - 'zap': 0} + expected_params = {"foo": "true", "bar": "True", "baz": "false", "zap": 0} self.assertEqual(method, self.method) self.assertEqual(url, self.url) - self.assertEqual(kwargs['params'], expected_params) + self.assertEqual(kwargs["params"], expected_params) def test_request_with_non_native_objects(self): @@ -224,16 +213,16 @@ def test_request_with_non_native_objects(self): class Duck(object): def to_plotly_json(self): - return 'what else floats?' + return "what else floats?" - utils.request(self.method, self.url, json={'foo': [Duck(), Duck()]}) + utils.request(self.method, self.url, json={"foo": [Duck(), Duck()]}) args, kwargs = self.request_mock.call_args method, url = args expected_data = '{"foo": ["what else floats?", "what else floats?"]}' self.assertEqual(method, self.method) self.assertEqual(url, self.url) - self.assertEqual(kwargs['data'], expected_data) - self.assertNotIn('json', kwargs) + self.assertEqual(kwargs["data"], expected_data) + self.assertNotIn("json", kwargs) def test_request_with_ConnectionError(self): @@ -241,8 +230,7 @@ def test_request_with_ConnectionError(self): # make sure we remain consistent with our errors. self.request_mock.side_effect = ConnectionError() - self.assertRaises(PlotlyRequestError, utils.request, self.method, - self.url) + self.assertRaises(PlotlyRequestError, utils.request, self.method, self.url) def test_request_validate_response(self): diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_dashboard/test_dashboard.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_dashboard/test_dashboard.py index 184f788b1fe..623420941a2 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_dashboard/test_dashboard.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_dashboard/test_dashboard.py @@ -13,15 +13,14 @@ class TestDashboard(TestCase): - def test_invalid_path(self): my_box = { - 'type': 'box', - 'boxType': 'plot', - 'fileId': 'AdamKulidjian:327', - 'shareKey': None, - 'title': 'box 1' + "type": "box", + "boxType": "plot", + "fileId": "AdamKulidjian:327", + "shareKey": None, + "title": "box 1", } dash = dashboard.Dashboard() @@ -30,37 +29,37 @@ def test_invalid_path(self): "the strings 'first' and 'second'." ) - self.assertRaisesRegexp(PlotlyError, message, - dash._insert, my_box, 'third') + self.assertRaisesRegexp(PlotlyError, message, dash._insert, my_box, "third") def test_box_id_none(self): my_box = { - 'type': 'box', - 'boxType': 'plot', - 'fileId': 'AdamKulidjian:327', - 'shareKey': None, - 'title': 'box 1' + "type": "box", + "boxType": "plot", + "fileId": "AdamKulidjian:327", + "shareKey": None, + "title": "box 1", } dash = dashboard.Dashboard() - dash.insert(my_box, 'above', None) + dash.insert(my_box, "above", None) message = ( "Make sure the box_id is specfied if there is at least " "one box in your dashboard." ) - self.assertRaisesRegexp(PlotlyError, message, dash.insert, - my_box, 'above', None) + self.assertRaisesRegexp( + PlotlyError, message, dash.insert, my_box, "above", None + ) def test_id_not_valid(self): my_box = { - 'type': 'box', - 'boxType': 'plot', - 'fileId': 'AdamKulidjian:327', - 'shareKey': None, - 'title': 'box 1' + "type": "box", + "boxType": "plot", + "fileId": "AdamKulidjian:327", + "shareKey": None, + "title": "box 1", } message = ( @@ -69,11 +68,10 @@ def test_id_not_valid(self): ) dash = dashboard.Dashboard() - dash.insert(my_box, 'above', 1) + dash.insert(my_box, "above", 1) # insert box - self.assertRaisesRegexp(PlotlyError, message, dash.insert, my_box, - 'above', 0) + self.assertRaisesRegexp(PlotlyError, message, dash.insert, my_box, "above", 0) # get box by id self.assertRaisesRegexp(PlotlyError, message, dash.get_box, 0) @@ -82,11 +80,11 @@ def test_id_not_valid(self): def test_invalid_side(self): my_box = { - 'type': 'box', - 'boxType': 'plot', - 'fileId': 'AdamKulidjian:327', - 'shareKey': None, - 'title': 'box 1' + "type": "box", + "boxType": "plot", + "fileId": "AdamKulidjian:327", + "shareKey": None, + "title": "box 1", } message = ( @@ -96,46 +94,55 @@ def test_invalid_side(self): ) dash = dashboard.Dashboard() - dash.insert(my_box, 'above', 0) + dash.insert(my_box, "above", 0) - self.assertRaisesRegexp(PlotlyError, message, dash.insert, - my_box, 'somewhere', 1) + self.assertRaisesRegexp( + PlotlyError, message, dash.insert, my_box, "somewhere", 1 + ) def test_dashboard_dict(self): my_box = { - 'type': 'box', - 'boxType': 'plot', - 'fileId': 'AdamKulidjian:327', - 'shareKey': None, - 'title': 'box 1' + "type": "box", + "boxType": "plot", + "fileId": "AdamKulidjian:327", + "shareKey": None, + "title": "box 1", } dash = dashboard.Dashboard() dash.insert(my_box) - dash.insert(my_box, 'above', 1) + dash.insert(my_box, "above", 1) expected_dashboard = { - 'layout': {'direction': 'vertical', - 'first': {'direction': 'vertical', - 'first': {'boxType': 'plot', - 'fileId': 'AdamKulidjian:327', - 'shareKey': None, - 'title': 'box 1', - 'type': 'box'}, - 'second': {'boxType': 'plot', - 'fileId': 'AdamKulidjian:327', - 'shareKey': None, - 'title': 'box 1', - 'type': 'box'}, - 'size': 50, - 'sizeUnit': '%', - 'type': 'split'}, - 'second': {'boxType': 'empty', 'type': 'box'}, - 'size': 1500, - 'sizeUnit': 'px', - 'type': 'split'}, - 'settings': {}, - 'version': 2 + "layout": { + "direction": "vertical", + "first": { + "direction": "vertical", + "first": { + "boxType": "plot", + "fileId": "AdamKulidjian:327", + "shareKey": None, + "title": "box 1", + "type": "box", + }, + "second": { + "boxType": "plot", + "fileId": "AdamKulidjian:327", + "shareKey": None, + "title": "box 1", + "type": "box", + }, + "size": 50, + "sizeUnit": "%", + "type": "split", + }, + "second": {"boxType": "empty", "type": "box"}, + "size": 1500, + "sizeUnit": "px", + "type": "split", + }, + "settings": {}, + "version": 2, } - self.assertEqual(dash['layout'], expected_dashboard['layout']) + self.assertEqual(dash["layout"], expected_dashboard["layout"]) diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_file/test_file.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_file/test_file.py index c46383d0119..3b3746414aa 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_file/test_file.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_file/test_file.py @@ -15,34 +15,31 @@ from chart_studio.tests.utils import PlotlyTestCase -@attr('slow') +@attr("slow") class FolderAPITestCase(PlotlyTestCase): - def setUp(self): super(FolderAPITestCase, self).setUp() - py.sign_in('PythonTest', 'xnyU0DEwvAQQCwHVseIL') + py.sign_in("PythonTest", "xnyU0DEwvAQQCwHVseIL") def _random_filename(self): choice_chars = string.ascii_letters + string.digits random_chars = [random.choice(choice_chars) for _ in range(10)] - unique_filename = 'Valid Folder ' + ''.join(random_chars) + unique_filename = "Valid Folder " + "".join(random_chars) return unique_filename def test_create_folder(self): try: py.file_ops.mkdirs(self._random_filename()) except PlotlyRequestError as e: - self.fail('Expected this *not* to fail! Status: {}' - .format(e.status_code)) + self.fail("Expected this *not* to fail! Status: {}".format(e.status_code)) def test_create_nested_folders(self): first_folder = self._random_filename() - nested_folder = '{0}/{1}'.format(first_folder, self._random_filename()) + nested_folder = "{0}/{1}".format(first_folder, self._random_filename()) try: py.file_ops.mkdirs(nested_folder) except PlotlyRequestError as e: - self.fail('Expected this *not* to fail! Status: {}' - .format(e.status_code)) + self.fail("Expected this *not* to fail! Status: {}".format(e.status_code)) def test_duplicate_folders(self): first_folder = self._random_filename() @@ -52,4 +49,4 @@ def test_duplicate_folders(self): except PlotlyRequestError as e: pass else: - self.fail('Expected this to fail!') + self.fail("Expected this to fail!") diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_get_figure/__init__.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_get_figure/__init__.py index 1118eb01e82..e1565c83f71 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_get_figure/__init__.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_get_figure/__init__.py @@ -2,4 +2,4 @@ def setup_package(): - warnings.filterwarnings('ignore') + warnings.filterwarnings("ignore") diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_get_figure/test_get_figure.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_get_figure/test_get_figure.py index b23288b8b4d..a2ae4ae1d6a 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_get_figure/test_get_figure.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_get_figure/test_get_figure.py @@ -38,35 +38,34 @@ def is_trivial(obj): class GetFigureTest(PlotlyTestCase): - - @attr('slow') + @attr("slow") def test_get_figure(self): - un = 'PlotlyImageTest' - ak = '786r5mecv0' + un = "PlotlyImageTest" + ak = "786r5mecv0" file_id = 13183 py.sign_in(un, ak) - py.get_figure('PlotlyImageTest', str(file_id)) + py.get_figure("PlotlyImageTest", str(file_id)) - @attr('slow') + @attr("slow") def test_get_figure_with_url(self): - un = 'PlotlyImageTest' - ak = '786r5mecv0' + un = "PlotlyImageTest" + ak = "786r5mecv0" url = "https://plot.ly/~PlotlyImageTest/13183/" py.sign_in(un, ak) py.get_figure(url) def test_get_figure_invalid_1(self): - un = 'PlotlyImageTest' - ak = '786r5mecv0' + un = "PlotlyImageTest" + ak = "786r5mecv0" url = "https://plot.ly/~PlotlyImageTest/a/" py.sign_in(un, ak) with self.assertRaises(exceptions.PlotlyError): py.get_figure(url) - @attr('slow') + @attr("slow") def test_get_figure_invalid_2(self): - un = 'PlotlyImageTest' - ak = '786r5mecv0' + un = "PlotlyImageTest" + ak = "786r5mecv0" url = "https://plot.ly/~PlotlyImageTest/-1/" py.sign_in(un, ak) with self.assertRaises(exceptions.PlotlyError): @@ -74,37 +73,36 @@ def test_get_figure_invalid_2(self): # demonstrates error if fig has invalid parts def test_get_figure_invalid_3(self): - un = 'PlotlyImageTest' - ak = '786r5mecv0' + un = "PlotlyImageTest" + ak = "786r5mecv0" url = "https://plot.ly/~PlotlyImageTest/2/" py.sign_in(un, ak) with self.assertRaises(ValueError): py.get_figure(url) - @attr('slow') + @attr("slow") def test_get_figure_does_not_exist(self): - un = 'PlotlyImageTest' - ak = '786r5mecv0' + un = "PlotlyImageTest" + ak = "786r5mecv0" url = "https://plot.ly/~PlotlyImageTest/1000000000/" py.sign_in(un, ak) with self.assertRaises(_plotly_utils.exceptions.PlotlyError): py.get_figure(url) - @attr('slow') + @attr("slow") def test_get_figure_raw(self): - un = 'PlotlyImageTest' - ak = '786r5mecv0' + un = "PlotlyImageTest" + ak = "786r5mecv0" file_id = 2 py.sign_in(un, ak) - py.get_figure('PlotlyImageTest', str(file_id), raw=True) + py.get_figure("PlotlyImageTest", str(file_id), raw=True) class TestBytesVStrings(PlotlyTestCase): - - @skipIf(not six.PY3, 'Decoding and missing escapes only seen in PY3') + @skipIf(not six.PY3, "Decoding and missing escapes only seen in PY3") def test_proper_escaping(self): - un = 'PlotlyImageTest' - ak = '786r5mecv0' + un = "PlotlyImageTest" + ak = "786r5mecv0" url = "https://plot.ly/~PlotlyImageTest/13185/" py.sign_in(un, ak) py.get_figure(url) diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_get_requests/test_get_requests.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_get_requests/test_get_requests.py index 863afc90a58..7aac9ccd2c9 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_get_requests/test_get_requests.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_get_requests/test_get_requests.py @@ -14,66 +14,69 @@ from chart_studio.tests.utils import PlotlyTestCase -default_headers = {'plotly-username': '', - 'plotly-apikey': '', - 'plotly-version': '2.0', - 'plotly-platform': 'pythonz'} +default_headers = { + "plotly-username": "", + "plotly-apikey": "", + "plotly-version": "2.0", + "plotly-platform": "pythonz", +} server = "https://plot.ly" class GetRequestsTest(PlotlyTestCase): - - @attr('slow') + @attr("slow") def test_user_does_not_exist(self): - username = 'user_does_not_exist' - api_key = 'invalid-apikey' - file_owner = 'get_test_user' + username = "user_does_not_exist" + api_key = "invalid-apikey" + file_owner = "get_test_user" file_id = 0 hd = copy.copy(default_headers) - hd['plotly-username'] = username - hd['plotly-apikey'] = api_key + hd["plotly-username"] = username + hd["plotly-apikey"] = api_key resource = "/apigetfile/{0}/{1}/".format(file_owner, file_id) response = requests.get(server + resource, headers=hd) if six.PY3: - content = _json.loads(response.content.decode('unicode_escape')) + content = _json.loads(response.content.decode("unicode_escape")) else: content = _json.loads(response.content) - error_message = ("Aw, snap! We don't have an account for {0}. Want to " - "try again? Sign in is not case sensitive." - .format(username)) + error_message = ( + "Aw, snap! We don't have an account for {0}. Want to " + "try again? Sign in is not case sensitive.".format(username) + ) self.assertEqual(response.status_code, 404) - self.assertEqual(content['error'], error_message) + self.assertEqual(content["error"], error_message) - @attr('slow') + @attr("slow") def test_file_does_not_exist(self): - username = 'PlotlyImageTest' - api_key = '786r5mecv0' - file_owner = 'get_test_user' + username = "PlotlyImageTest" + api_key = "786r5mecv0" + file_owner = "get_test_user" file_id = 1000 hd = copy.copy(default_headers) - hd['plotly-username'] = username - hd['plotly-apikey'] = api_key + hd["plotly-username"] = username + hd["plotly-apikey"] = api_key resource = "/apigetfile/{0}/{1}/".format(file_owner, file_id) response = requests.get(server + resource, headers=hd) if six.PY3: - content = _json.loads(response.content.decode('unicode_escape')) + content = _json.loads(response.content.decode("unicode_escape")) else: content = _json.loads(response.content) - error_message = ("Aw, snap! It looks like this file does " - "not exist. Want to try again?") + error_message = ( + "Aw, snap! It looks like this file does " "not exist. Want to try again?" + ) self.assertEqual(response.status_code, 404) - self.assertEqual(content['error'], error_message) + self.assertEqual(content["error"], error_message) - @attr('slow') + @attr("slow") def test_wrong_api_key(self): # TODO: does this test the right thing? - username = 'PlotlyImageTest' - api_key = 'invalid-apikey' - file_owner = 'get_test_user' + username = "PlotlyImageTest" + api_key = "invalid-apikey" + file_owner = "get_test_user" file_id = 0 hd = copy.copy(default_headers) - hd['plotly-username'] = username - hd['plotly-apikey'] = api_key + hd["plotly-username"] = username + hd["plotly-apikey"] = api_key resource = "/apigetfile/{0}/{1}/".format(file_owner, file_id) response = requests.get(server + resource, headers=hd) self.assertEqual(response.status_code, 401) @@ -82,19 +85,19 @@ def test_wrong_api_key(self): # TODO: does this test the right thing? # Locked File # TODO - @attr('slow') + @attr("slow") def test_private_permission_defined(self): - username = 'PlotlyImageTest' - api_key = '786r5mecv0' - file_owner = 'get_test_user' + username = "PlotlyImageTest" + api_key = "786r5mecv0" + file_owner = "get_test_user" file_id = 1 # 1 is a private file hd = copy.copy(default_headers) - hd['plotly-username'] = username - hd['plotly-apikey'] = api_key + hd["plotly-username"] = username + hd["plotly-apikey"] = api_key resource = "/apigetfile/{0}/{1}/".format(file_owner, file_id) response = requests.get(server + resource, headers=hd) if six.PY3: - content = _json.loads(response.content.decode('unicode_escape')) + content = _json.loads(response.content.decode("unicode_escape")) else: content = _json.loads(response.content) self.assertEqual(response.status_code, 403) @@ -102,9 +105,9 @@ def test_private_permission_defined(self): # Private File that is shared # TODO - @attr('slow') + @attr("slow") def test_missing_headers(self): - file_owner = 'get_test_user' + file_owner = "get_test_user" file_id = 0 resource = "/apigetfile/{0}/{1}/".format(file_owner, file_id) headers = list(default_headers.keys()) @@ -113,24 +116,24 @@ def test_missing_headers(self): del hd[header] response = requests.get(server + resource, headers=hd) if six.PY3: - content = _json.loads(response.content.decode('unicode_escape')) + content = _json.loads(response.content.decode("unicode_escape")) else: content = _json.loads(response.content) self.assertEqual(response.status_code, 422) - @attr('slow') + @attr("slow") def test_valid_request(self): - username = 'PlotlyImageTest' - api_key = '786r5mecv0' - file_owner = 'get_test_user' + username = "PlotlyImageTest" + api_key = "786r5mecv0" + file_owner = "get_test_user" file_id = 0 hd = copy.copy(default_headers) - hd['plotly-username'] = username - hd['plotly-apikey'] = api_key + hd["plotly-username"] = username + hd["plotly-apikey"] = api_key resource = "/apigetfile/{0}/{1}/".format(file_owner, file_id) response = requests.get(server + resource, headers=hd) if six.PY3: - content = _json.loads(response.content.decode('unicode_escape')) + content = _json.loads(response.content.decode("unicode_escape")) else: content = _json.loads(response.content) self.assertEqual(response.status_code, 200) diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_grid/test_grid.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_grid/test_grid.py index 601c02ed2e2..669dd46f551 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_grid/test_grid.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_grid/test_grid.py @@ -25,25 +25,25 @@ def random_filename(): choice_chars = string.ascii_letters + string.digits random_chars = [random.choice(choice_chars) for _ in range(10)] - unique_filename = 'Valid Grid ' + ''.join(random_chars) + unique_filename = "Valid Grid " + "".join(random_chars) return unique_filename class GridTest(PlotlyTestCase): # Test grid args - _grid_id = 'chris:3043' + _grid_id = "chris:3043" _grid = Grid([]) _grid.id = _grid_id - _grid_url = 'https://plot.ly/~chris/3043/my-grid' + _grid_url = "https://plot.ly/~chris/3043/my-grid" def setUp(self): super(GridTest, self).setUp() - py.sign_in('PythonTest', 'xnyU0DEwvAQQCwHVseIL') + py.sign_in("PythonTest", "xnyU0DEwvAQQCwHVseIL") def get_grid(self): - c1 = Column([1, 2, 3, 4], 'first column') - c2 = Column(['a', 'b', 'c', 'd'], 'second column') + c1 = Column([1, 2, 3, 4], "first column") + c2 = Column(["a", "b", "c", "d"], "second column") g = Grid([c1, c2]) return g @@ -54,62 +54,63 @@ def upload_and_return_grid(self): return g # Nominal usage - @attr('slow') + @attr("slow") def test_grid_upload(self): self.upload_and_return_grid() - @attr('slow') + @attr("slow") def test_grid_upload_in_new_folder(self): g = self.get_grid() - path = ( - 'new folder: {0}/grid in folder {1}' - .format(random_filename(), random_filename()) + path = "new folder: {0}/grid in folder {1}".format( + random_filename(), random_filename() ) py.grid_ops.upload(g, path, auto_open=False) - @attr('slow') + @attr("slow") def test_grid_upload_in_existing_folder(self): g = self.get_grid() folder = random_filename() filename = random_filename() py.file_ops.mkdirs(folder) - path = ( - 'existing folder: {0}/grid in folder {1}' - .format(folder, filename) - ) + path = "existing folder: {0}/grid in folder {1}".format(folder, filename) py.grid_ops.upload(g, path, auto_open=False) - @attr('slow') + @attr("slow") def test_column_append(self): g = self.upload_and_return_grid() - new_col = Column([1, 5, 3], 'new col') + new_col = Column([1, 5, 3], "new col") py.grid_ops.append_columns([new_col], grid=g) - @attr('slow') + @attr("slow") def test_row_append(self): g = self.upload_and_return_grid() new_rows = [[1, 2], [10, 20]] py.grid_ops.append_rows(new_rows, grid=g) - @attr('slow') + @attr("slow") def test_plot_from_grid(self): g = self.upload_and_return_grid() - url = py.plot([Scatter(xsrc=g[0].id, ysrc=g[1].id)], - auto_open=False, filename='plot from grid') + url = py.plot( + [Scatter(xsrc=g[0].id, ysrc=g[1].id)], + auto_open=False, + filename="plot from grid", + ) return url, g - @attr('slow') + @attr("slow") def test_get_figure_from_references(self): url, g = self.test_plot_from_grid() fig = py.get_figure(url) - data = fig['data'] + data = fig["data"] trace = data[0] - assert(tuple(g[0].data) == tuple(trace['x'])) - assert(tuple(g[1].data) == tuple(trace['y'])) + assert tuple(g[0].data) == tuple(trace["x"]) + assert tuple(g[1].data) == tuple(trace["y"]) def test_grid_id_args(self): - self.assertEqual(parse_grid_id_args(self._grid, None), - parse_grid_id_args(None, self._grid_url)) + self.assertEqual( + parse_grid_id_args(self._grid, None), + parse_grid_id_args(None, self._grid_url), + ) def test_no_grid_id_args(self): with self.assertRaises(InputError): @@ -128,36 +129,36 @@ def test_overspecified_grid_args(self): # Scatter(xsrc=g[0], ysrc=g[1]) def test_column_append_of_non_uploaded_grid(self): - c1 = Column([1, 2, 3, 4], 'first column') - c2 = Column(['a', 'b', 'c', 'd'], 'second column') + c1 = Column([1, 2, 3, 4], "first column") + c2 = Column(["a", "b", "c", "d"], "second column") g = Grid([c1]) with self.assertRaises(PlotlyError): py.grid_ops.append_columns([c2], grid=g) def test_row_append_of_non_uploaded_grid(self): - c1 = Column([1, 2, 3, 4], 'first column') + c1 = Column([1, 2, 3, 4], "first column") rows = [[1], [2]] g = Grid([c1]) with self.assertRaises(PlotlyError): py.grid_ops.append_rows(rows, grid=g) # Input Errors - @attr('slow') + @attr("slow") def test_unequal_length_rows(self): g = self.upload_and_return_grid() - rows = [[1, 2], ['to', 'many', 'cells']] + rows = [[1, 2], ["to", "many", "cells"]] with self.assertRaises(InputError): py.grid_ops.append_rows(rows, grid=g) # Test duplicate columns def test_duplicate_columns(self): - c1 = Column([1, 2, 3, 4], 'first column') - c2 = Column(['a', 'b', 'c', 'd'], 'first column') + c1 = Column([1, 2, 3, 4], "first column") + c2 = Column(["a", "b", "c", "d"], "first column") with self.assertRaises(InputError): Grid([c1, c2]) # Test delete - @attr('slow') + @attr("slow") def test_delete_grid(self): g = self.get_grid() fn = random_filename() @@ -166,19 +167,20 @@ def test_delete_grid(self): py.grid_ops.upload(g, fn, auto_open=False) # Plotly failures - @skip('adding this for now so test_file_tools pass, more info' + - 'https://github.com/plotly/python-api/issues/262') + @skip( + "adding this for now so test_file_tools pass, more info" + + "https://github.com/plotly/python-api/issues/262" + ) def test_duplicate_filenames(self): - c1 = Column([1, 2, 3, 4], 'first column') + c1 = Column([1, 2, 3, 4], "first column") g = Grid([c1]) - random_chars = [random.choice(string.ascii_uppercase) - for _ in range(5)] - unique_filename = 'Valid Grid ' + ''.join(random_chars) + random_chars = [random.choice(string.ascii_uppercase) for _ in range(5)] + unique_filename = "Valid Grid " + "".join(random_chars) py.grid_ops.upload(g, unique_filename, auto_open=False) try: py.grid_ops.upload(g, unique_filename, auto_open=False) except PlotlyRequestError as e: pass else: - self.fail('Expected this to fail!') + self.fail("Expected this to fail!") diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_image/test_image.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_image/test_image.py index 4c74bc753a3..d9c5253c820 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_image/test_image.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_image/test_image.py @@ -13,28 +13,25 @@ from chart_studio.tests.utils import PlotlyTestCase -@attr('slow') +@attr("slow") class TestImage(PlotlyTestCase): - def setUp(self): super(TestImage, self).setUp() - py.sign_in('PlotlyImageTest', '786r5mecv0') - self.data = [{'x': [1, 2, 3], 'y': [3, 1, 6]}] + py.sign_in("PlotlyImageTest", "786r5mecv0") + self.data = [{"x": [1, 2, 3], "y": [3, 1, 6]}] -def _generate_image_get_returns_valid_image_test(image_format, - width, height, scale): +def _generate_image_get_returns_valid_image_test(image_format, width, height, scale): def test(self): # TODO: better understand why this intermittently fails. See #649 num_attempts = 5 for i in range(num_attempts): if i > 0: - warnings.warn('image test intermittently failed, retrying...') + warnings.warn("image test intermittently failed, retrying...") try: - image = py.image.get(self.data, image_format, width, height, - scale) - if image_format in ['png', 'jpeg']: - assert imghdr.what('', image) == image_format + image = py.image.get(self.data, image_format, width, height, scale) + if image_format in ["png", "jpeg"]: + assert imghdr.what("", image) == image_format return except (KeyError, _plotly_utils.exceptions.PlotlyError): if i == num_attempts - 1: @@ -43,13 +40,18 @@ def test(self): return test -def _generate_image_save_as_saves_valid_image(image_format, - width, height, scale): +def _generate_image_save_as_saves_valid_image(image_format, width, height, scale): def _test(self): - f, filename = tempfile.mkstemp('.{}'.format(image_format)) - py.image.save_as(self.data, filename, format=image_format, - width=width, height=height, scale=scale) - if image_format in ['png', 'jpeg']: + f, filename = tempfile.mkstemp(".{}".format(image_format)) + py.image.save_as( + self.data, + filename, + format=image_format, + width=width, + height=height, + scale=scale, + ) + if image_format in ["png", "jpeg"]: assert imghdr.what(filename) == image_format else: assert os.path.getsize(filename) > 0 @@ -58,20 +60,24 @@ def _test(self): return _test + kwargs = { - 'format': ['png', 'jpeg', 'pdf', 'svg', 'emf'], - 'width': [None, 300], - 'height': [None, 300], - 'scale': [None, 5] + "format": ["png", "jpeg", "pdf", "svg", "emf"], + "width": [None, 300], + "height": [None, 300], + "scale": [None, 5], } -for args in itertools.product(kwargs['format'], kwargs['width'], - kwargs['height'], kwargs['scale']): - for test_generator in [_generate_image_get_returns_valid_image_test, - _generate_image_save_as_saves_valid_image]: +for args in itertools.product( + kwargs["format"], kwargs["width"], kwargs["height"], kwargs["scale"] +): + for test_generator in [ + _generate_image_get_returns_valid_image_test, + _generate_image_save_as_saves_valid_image, + ]: _test = test_generator(*args) - arg_string = ', '.join([str(a) for a in args]) - test_name = test_generator.__name__.replace('_generate', 'test') - test_name += '({})'.format(arg_string) + arg_string = ", ".join([str(a) for a in args]) + test_name = test_generator.__name__.replace("_generate", "test") + test_name += "({})".format(arg_string) setattr(TestImage, test_name, _test) diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_meta/test_meta.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_meta/test_meta.py index 3c8010dded2..d26fb8c6010 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_meta/test_meta.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_meta/test_meta.py @@ -21,43 +21,42 @@ class MetaTest(PlotlyTestCase): - _grid = grid = Grid([Column([1, 2, 3, 4], 'first column')]) + _grid = grid = Grid([Column([1, 2, 3, 4], "first column")]) _meta = {"settings": {"scope1": {"model": "Unicorn Finder", "voltage": 4}}} def setUp(self): super(MetaTest, self).setUp() - py.sign_in('PythonTest', 'xnyU0DEwvAQQCwHVseIL') + py.sign_in("PythonTest", "xnyU0DEwvAQQCwHVseIL") def random_filename(self): random_chars = [random.choice(string.ascii_uppercase) for _ in range(5)] - unique_filename = 'Valid Grid with Meta '+''.join(random_chars) + unique_filename = "Valid Grid with Meta " + "".join(random_chars) return unique_filename - @attr('slow') + @attr("slow") def test_upload_meta(self): unique_filename = self.random_filename() - grid_url = py.grid_ops.upload(self._grid, unique_filename, - auto_open=False) + grid_url = py.grid_ops.upload(self._grid, unique_filename, auto_open=False) # Add some Metadata to that grid py.meta_ops.upload(self._meta, grid_url=grid_url) - @attr('slow') + @attr("slow") def test_upload_meta_with_grid(self): - c1 = Column([1, 2, 3, 4], 'first column') + c1 = Column([1, 2, 3, 4], "first column") Grid([c1]) unique_filename = self.random_filename() py.grid_ops.upload( - self._grid, - unique_filename, - meta=self._meta, - auto_open=False) + self._grid, unique_filename, meta=self._meta, auto_open=False + ) - @skip('adding this for now so test_file_tools pass, more info' + - 'https://github.com/plotly/python-api/issues/263') + @skip( + "adding this for now so test_file_tools pass, more info" + + "https://github.com/plotly/python-api/issues/263" + ) def test_metadata_to_nonexistent_grid(self): - non_exist_meta_url = 'https://local.plot.ly/~GridTest/999999999' + non_exist_meta_url = "https://local.plot.ly/~GridTest/999999999" with self.assertRaises(PlotlyRequestError): py.meta_ops.upload(self._meta, grid_url=non_exist_meta_url) diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/__init__.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/__init__.py index 1118eb01e82..e1565c83f71 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/__init__.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/__init__.py @@ -2,4 +2,4 @@ def setup_package(): - warnings.filterwarnings('ignore') + warnings.filterwarnings("ignore") diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/test_credentials.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/test_credentials.py index 628b047d373..9175f5f03e7 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/test_credentials.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/test_credentials.py @@ -16,78 +16,69 @@ class TestSignIn(PlotlyTestCase): - def setUp(self): super(TestSignIn, self).setUp() - patcher = patch('chart_studio.api.v2.users.current') + patcher = patch("chart_studio.api.v2.users.current") self.users_current_mock = patcher.start() self.addCleanup(patcher.stop) def test_get_credentials(self): session_credentials = session.get_session_credentials() - if 'username' in session_credentials: - del session._session['credentials']['username'] - if 'api_key' in session_credentials: - del session._session['credentials']['api_key'] + if "username" in session_credentials: + del session._session["credentials"]["username"] + if "api_key" in session_credentials: + del session._session["credentials"]["api_key"] creds = py.get_credentials() file_creds = tls.get_credentials_file() self.assertEqual(creds, file_creds) def test_sign_in(self): - un = 'anyone' - ak = 'something' + un = "anyone" + ak = "something" # TODO, add this! # si = ['this', 'and-this'] py.sign_in(un, ak) creds = py.get_credentials() - self.assertEqual(creds['username'], un) - self.assertEqual(creds['api_key'], ak) + self.assertEqual(creds["username"], un) + self.assertEqual(creds["api_key"], ak) # TODO, and check it! # assert creds['stream_ids'] == si def test_get_config(self): - plotly_domain = 'test domain' - plotly_streaming_domain = 'test streaming domain' + plotly_domain = "test domain" + plotly_streaming_domain = "test streaming domain" config1 = py.get_config() - session._session['config']['plotly_domain'] = plotly_domain + session._session["config"]["plotly_domain"] = plotly_domain config2 = py.get_config() - session._session['config']['plotly_streaming_domain'] = ( - plotly_streaming_domain - ) + session._session["config"]["plotly_streaming_domain"] = plotly_streaming_domain config3 = py.get_config() - self.assertEqual(config2['plotly_domain'], plotly_domain) - self.assertNotEqual( - config2['plotly_streaming_domain'], plotly_streaming_domain - ) - self.assertEqual( - config3['plotly_streaming_domain'], plotly_streaming_domain - ) + self.assertEqual(config2["plotly_domain"], plotly_domain) + self.assertNotEqual(config2["plotly_streaming_domain"], plotly_streaming_domain) + self.assertEqual(config3["plotly_streaming_domain"], plotly_streaming_domain) def test_sign_in_with_config(self): - username = 'place holder' - api_key = 'place holder' - plotly_domain = 'test domain' - plotly_streaming_domain = 'test streaming domain' + username = "place holder" + api_key = "place holder" + plotly_domain = "test domain" + plotly_streaming_domain = "test streaming domain" plotly_ssl_verification = False py.sign_in( username, api_key, plotly_domain=plotly_domain, plotly_streaming_domain=plotly_streaming_domain, - plotly_ssl_verification=plotly_ssl_verification + plotly_ssl_verification=plotly_ssl_verification, ) config = py.get_config() - self.assertEqual(config['plotly_domain'], plotly_domain) - self.assertEqual( - config['plotly_streaming_domain'], plotly_streaming_domain - ) - self.assertEqual( - config['plotly_ssl_verification'], plotly_ssl_verification - ) + self.assertEqual(config["plotly_domain"], plotly_domain) + self.assertEqual(config["plotly_streaming_domain"], plotly_streaming_domain) + self.assertEqual(config["plotly_ssl_verification"], plotly_ssl_verification) def test_sign_in_cannot_validate(self): self.users_current_mock.side_effect = exceptions.PlotlyRequestError( - 'msg', 400, 'foobar' + "msg", 400, "foobar" ) - with self.assertRaisesRegexp(_plotly_utils.exceptions.PlotlyError, 'Sign in failed'): - py.sign_in('foo', 'bar') + with self.assertRaisesRegexp( + _plotly_utils.exceptions.PlotlyError, "Sign in failed" + ): + py.sign_in("foo", "bar") diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/test_plot.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/test_plot.py index dd8fa3cb980..9d4f73b1d99 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/test_plot.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_plotly/test_plot.py @@ -32,94 +32,81 @@ class TestPlot(PlotlyTestCase): - def setUp(self): super(TestPlot, self).setUp() - py.sign_in('PlotlyImageTest', '786r5mecv0') - self.simple_figure = {'data': [{'x': [1, 2, 3], 'y': [2, 1, 2]}]} + py.sign_in("PlotlyImageTest", "786r5mecv0") + self.simple_figure = {"data": [{"x": [1, 2, 3], "y": [2, 1, 2]}]} - @attr('slow') + @attr("slow") def test_plot_valid(self): fig = { - 'data': [ - { - 'x': (1, 2, 3), - 'y': (2, 1, 2) - } - ], - 'layout': {'title': {'text': 'simple'}} + "data": [{"x": (1, 2, 3), "y": (2, 1, 2)}], + "layout": {"title": {"text": "simple"}}, } - url = py.plot(fig, auto_open=False, filename='plot_valid') + url = py.plot(fig, auto_open=False, filename="plot_valid") saved_fig = py.get_figure(url) - self.assertEqual(saved_fig['data'][0]['x'], fig['data'][0]['x']) - self.assertEqual(saved_fig['data'][0]['y'], fig['data'][0]['y']) - self.assertEqual(saved_fig['layout']['title']['text'], - fig['layout']['title']['text']) + self.assertEqual(saved_fig["data"][0]["x"], fig["data"][0]["x"]) + self.assertEqual(saved_fig["data"][0]["y"], fig["data"][0]["y"]) + self.assertEqual( + saved_fig["layout"]["title"]["text"], fig["layout"]["title"]["text"] + ) def test_plot_invalid(self): - fig = { - 'data': [ - { - 'x': [1, 2, 3], - 'y': [2, 1, 2], - 'z': [3, 4, 1] - } - ] - } + fig = {"data": [{"x": [1, 2, 3], "y": [2, 1, 2], "z": [3, 4, 1]}]} with self.assertRaises(ValueError): - py.plot(fig, auto_open=False, filename='plot_invalid') + py.plot(fig, auto_open=False, filename="plot_invalid") def test_plot_invalid_args_1(self): with self.assertRaises(TypeError): - py.plot(x=[1, 2, 3], y=[2, 1, 2], auto_open=False, - filename='plot_invalid') + py.plot(x=[1, 2, 3], y=[2, 1, 2], auto_open=False, filename="plot_invalid") def test_plot_invalid_args_2(self): with self.assertRaises(ValueError): - py.plot([1, 2, 3], [2, 1, 2], auto_open=False, - filename='plot_invalid') + py.plot([1, 2, 3], [2, 1, 2], auto_open=False, filename="plot_invalid") def test_plot_empty_data(self): - self.assertRaises(PlotlyEmptyDataError, py.plot, [], - filename='plot_invalid') + self.assertRaises(PlotlyEmptyDataError, py.plot, [], filename="plot_invalid") def test_plot_sharing_invalid_argument(self): # Raise an error if sharing argument is incorrect # correct arguments {'public, 'private', 'secret'} - kwargs = {'filename': 'invalid-sharing-argument', - 'sharing': 'privste'} + kwargs = {"filename": "invalid-sharing-argument", "sharing": "privste"} with self.assertRaisesRegexp( - PlotlyError, - "The 'sharing' argument only accepts"): + PlotlyError, "The 'sharing' argument only accepts" + ): py.plot(self.simple_figure, **kwargs) def test_plot_world_readable_sharing_conflict_1(self): # Raise an error if world_readable=False but sharing='public' - kwargs = {'filename': 'invalid-privacy-setting', - 'world_readable': False, - 'sharing': 'public'} + kwargs = { + "filename": "invalid-privacy-setting", + "world_readable": False, + "sharing": "public", + } with self.assertRaisesRegexp( - PlotlyError, - 'setting your plot privacy to both public and private.'): + PlotlyError, "setting your plot privacy to both public and private." + ): py.plot(self.simple_figure, **kwargs) def test_plot_world_readable_sharing_conflict_2(self): # Raise an error if world_readable=True but sharing='secret' - kwargs = {'filename': 'invalid-privacy-setting', - 'world_readable': True, - 'sharing': 'secret'} + kwargs = { + "filename": "invalid-privacy-setting", + "world_readable": True, + "sharing": "secret", + } with self.assertRaisesRegexp( - PlotlyError, - 'setting your plot privacy to both public and private.'): + PlotlyError, "setting your plot privacy to both public and private." + ): py.plot(self.simple_figure, **kwargs) def test_plot_option_logic_only_world_readable_given(self): @@ -127,18 +114,22 @@ def test_plot_option_logic_only_world_readable_given(self): # If sharing is not given and world_readable=False, # sharing should be set to private - kwargs = {'filename': 'test', - 'auto_open': True, - 'validate': True, - 'world_readable': False} + kwargs = { + "filename": "test", + "auto_open": True, + "validate": True, + "world_readable": False, + } plot_option_logic = py._plot_option_logic(kwargs) - expected_plot_option_logic = {'filename': 'test', - 'auto_open': True, - 'validate': True, - 'world_readable': False, - 'sharing': 'private'} + expected_plot_option_logic = { + "filename": "test", + "auto_open": True, + "validate": True, + "world_readable": False, + "sharing": "private", + } self.assertEqual(plot_option_logic, expected_plot_option_logic) def test_plot_option_logic_only_sharing_given(self): @@ -146,69 +137,79 @@ def test_plot_option_logic_only_sharing_given(self): # If world_readable is not given and sharing ='private', # world_readable should be set to False - kwargs = {'filename': 'test', - 'auto_open': True, - 'validate': True, - 'sharing': 'private'} + kwargs = { + "filename": "test", + "auto_open": True, + "validate": True, + "sharing": "private", + } plot_option_logic = py._plot_option_logic(kwargs) - expected_plot_option_logic = {'filename': 'test', - 'auto_open': True, - 'validate': True, - 'world_readable': False, - 'sharing': 'private'} + expected_plot_option_logic = { + "filename": "test", + "auto_open": True, + "validate": True, + "world_readable": False, + "sharing": "private", + } self.assertEqual(plot_option_logic, expected_plot_option_logic) - @attr('slow') + @attr("slow") def test_plot_url_given_sharing_key(self): # Give share_key is requested, the retun url should contain # the share_key validate = True - fig = plotly.tools.return_figure_from_figure_or_data(self.simple_figure, - validate) - kwargs = {'filename': 'is_share_key_included', - 'world_readable': False, - 'auto_open': False, - 'sharing': 'secret'} + fig = plotly.tools.return_figure_from_figure_or_data( + self.simple_figure, validate + ) + kwargs = { + "filename": "is_share_key_included", + "world_readable": False, + "auto_open": False, + "sharing": "secret", + } plot_url = py.plot(fig, **kwargs) - self.assertTrue('share_key=' in plot_url) + self.assertTrue("share_key=" in plot_url) - @attr('slow') + @attr("slow") def test_plot_url_response_given_sharing_key(self): # Given share_key is requested, get request of the url should # be 200 - kwargs = {'filename': 'is_share_key_included', - 'auto_open': False, - 'world_readable': False, - 'sharing': 'secret'} + kwargs = { + "filename": "is_share_key_included", + "auto_open": False, + "world_readable": False, + "sharing": "secret", + } plot_url = py.plot(self.simple_figure, **kwargs) # shareplot basically always gives a 200 if even if permission denied # embedplot returns an actual 404 - embed_url = plot_url.split('?')[0] + '.embed?' + plot_url.split('?')[1] + embed_url = plot_url.split("?")[0] + ".embed?" + plot_url.split("?")[1] response = requests.get(embed_url) self.assertEqual(response.status_code, 200) - @attr('slow') + @attr("slow") def test_private_plot_response_with_and_without_share_key(self): # The json file of the private plot should be 404 and once # share_key is added it should be 200 - kwargs = {'filename': 'is_share_key_included', - 'world_readable': False, - 'auto_open': False, - 'sharing': 'private'} + kwargs = { + "filename": "is_share_key_included", + "world_readable": False, + "auto_open": False, + "sharing": "private", + } - private_plot_url = py.plot(self.simple_figure, - **kwargs) + private_plot_url = py.plot(self.simple_figure, **kwargs) private_plot_response = requests.get(private_plot_url + ".json") # The json file of the private plot should be 404 @@ -217,7 +218,8 @@ def test_private_plot_response_with_and_without_share_key(self): secret_plot_url = py.add_share_key_to_url(private_plot_url) urlsplit = six.moves.urllib.parse.urlparse(secret_plot_url) secret_plot_json_file = six.moves.urllib.parse.urljoin( - urlsplit.geturl(), "?.json" + urlsplit.query) + urlsplit.geturl(), "?.json" + urlsplit.query + ) secret_plot_response = requests.get(secret_plot_json_file) # The json file of the secret plot should be 200 @@ -226,16 +228,16 @@ def test_private_plot_response_with_and_without_share_key(self): class TestPlotOptionLogic(PlotlyTestCase): conflicting_option_set = ( - {'world_readable': True, 'sharing': 'secret'}, - {'world_readable': True, 'sharing': 'private'}, - {'world_readable': False, 'sharing': 'public'} + {"world_readable": True, "sharing": "secret"}, + {"world_readable": True, "sharing": "private"}, + {"world_readable": False, "sharing": "public"}, ) def setUp(self): super(TestPlotOptionLogic, self).setUp() # Make sure we don't hit sign-in validation failures. - patcher = patch('chart_studio.api.v2.users.current') + patcher = patch("chart_studio.api.v2.users.current") self.users_current_mock = patcher.start() self.addCleanup(patcher.stop) @@ -243,7 +245,7 @@ def setUp(self): # plot option logic. In order not to re-write that, we simply clear the # *session* information since it would take precedent. The _session is # set when you `sign_in`. - session._session['plot_options'].clear() + session._session["plot_options"].clear() def test_default_options(self): options = py._plot_option_logic({}) @@ -254,16 +256,16 @@ def test_default_options(self): def test_conflicting_plot_options_in_plot_option_logic(self): for plot_options in self.conflicting_option_set: - self.assertRaises(PlotlyError, py._plot_option_logic, - plot_options) + self.assertRaises(PlotlyError, py._plot_option_logic, plot_options) def test_set_config_updates_plot_options(self): original_config = tls.get_config_file() new_options = { - 'world_readable': not original_config['world_readable'], - 'auto_open': not original_config['auto_open'], - 'sharing': ('public' if original_config['world_readable'] is False - else 'secret') + "world_readable": not original_config["world_readable"], + "auto_open": not original_config["auto_open"], + "sharing": ( + "public" if original_config["world_readable"] is False else "secret" + ), } tls.set_config_file(**new_options) options = py._plot_option_logic({}) @@ -276,16 +278,22 @@ def generate_conflicting_plot_options_in_signin(): conflicting options aren't raised until plot or iplot is called, through _plot_option_logic """ + def gen_test(plot_options): def test(self): - py.sign_in('username', 'key', **plot_options) + py.sign_in("username", "key", **plot_options) self.assertRaises(PlotlyError, py._plot_option_logic, {}) + return test for i, plot_options in enumerate(TestPlotOptionLogic.conflicting_option_set): - setattr(TestPlotOptionLogic, - 'test_conflicting_plot_options_in_signin_{}'.format(i), - gen_test(plot_options)) + setattr( + TestPlotOptionLogic, + "test_conflicting_plot_options_in_signin_{}".format(i), + gen_test(plot_options), + ) + + generate_conflicting_plot_options_in_signin() @@ -297,17 +305,21 @@ def generate_conflicting_plot_options_in_tools_dot_set_config(): want to raise an error if they specified only one of these options and didn't know that a default option was being saved for them. """ + def gen_test(plot_options): def test(self): - self.assertRaises(PlotlyError, tls.set_config_file, - **plot_options) + self.assertRaises(PlotlyError, tls.set_config_file, **plot_options) + return test for i, plot_options in enumerate(TestPlotOptionLogic.conflicting_option_set): - setattr(TestPlotOptionLogic, - 'test_conflicting_plot_options_in_' - 'tools_dot_set_config{}'.format(i), - gen_test(plot_options)) + setattr( + TestPlotOptionLogic, + "test_conflicting_plot_options_in_" "tools_dot_set_config{}".format(i), + gen_test(plot_options), + ) + + generate_conflicting_plot_options_in_tools_dot_set_config() @@ -316,20 +328,25 @@ def generate_conflicting_plot_options_with_json_writes_of_config(): then we'll raise the error when the call plot or iplot through _plot_option_logic """ + def gen_test(plot_options): def test(self): config = _json.load(open(CONFIG_FILE)) - with open(CONFIG_FILE, 'w') as f: + with open(CONFIG_FILE, "w") as f: config.update(plot_options) f.write(_json.dumps(config)) self.assertRaises(PlotlyError, py._plot_option_logic, {}) + return test for i, plot_options in enumerate(TestPlotOptionLogic.conflicting_option_set): - setattr(TestPlotOptionLogic, - 'test_conflicting_plot_options_with_' - 'json_writes_of_config{}'.format(i), - gen_test(plot_options)) + setattr( + TestPlotOptionLogic, + "test_conflicting_plot_options_with_" "json_writes_of_config{}".format(i), + gen_test(plot_options), + ) + + generate_conflicting_plot_options_with_json_writes_of_config() @@ -340,52 +357,64 @@ def generate_private_sharing_and_public_world_readable_precedence(): """ plot_option_sets = ( { - 'parent': {'world_readable': True, 'auto_open': False}, - 'child': {'sharing': 'secret', 'auto_open': True}, - 'expected_output': {'world_readable': False, - 'sharing': 'secret', - 'auto_open': True} + "parent": {"world_readable": True, "auto_open": False}, + "child": {"sharing": "secret", "auto_open": True}, + "expected_output": { + "world_readable": False, + "sharing": "secret", + "auto_open": True, + }, }, { - 'parent': {'world_readable': True, 'auto_open': True}, - 'child': {'sharing': 'private', 'auto_open': False}, - 'expected_output': {'world_readable': False, - 'sharing': 'private', - 'auto_open': False} + "parent": {"world_readable": True, "auto_open": True}, + "child": {"sharing": "private", "auto_open": False}, + "expected_output": { + "world_readable": False, + "sharing": "private", + "auto_open": False, + }, }, { - 'parent': {'world_readable': False, 'auto_open': False}, - 'child': {'sharing': 'public', 'auto_open': True}, - 'expected_output': {'world_readable': True, - 'sharing': 'public', - 'auto_open': True} - } + "parent": {"world_readable": False, "auto_open": False}, + "child": {"sharing": "public", "auto_open": True}, + "expected_output": { + "world_readable": True, + "sharing": "public", + "auto_open": True, + }, + }, ) def gen_test_signin(plot_options): def test(self): - py.sign_in('username', 'key', **plot_options['parent']) - options = py._plot_option_logic(plot_options['child']) - for option, value in plot_options['expected_output'].items(): + py.sign_in("username", "key", **plot_options["parent"]) + options = py._plot_option_logic(plot_options["child"]) + for option, value in plot_options["expected_output"].items(): self.assertEqual(options[option], value) + return test def gen_test_config(plot_options): def test(self): - tls.set_config(**plot_options['parent']) - options = py._plot_option_logic(plot_options['child']) - for option, value in plot_options['expected_output'].items(): + tls.set_config(**plot_options["parent"]) + options = py._plot_option_logic(plot_options["child"]) + for option, value in plot_options["expected_output"].items(): self.assertEqual(options[option], value) for i, plot_options in enumerate(plot_option_sets): - setattr(TestPlotOptionLogic, - 'test_private_sharing_and_public_' - 'world_readable_precedence_signin{}'.format(i), - gen_test_signin(plot_options)) - - setattr(TestPlotOptionLogic, - 'test_private_sharing_and_public_' - 'world_readable_precedence_config{}'.format(i), - gen_test_config(plot_options)) + setattr( + TestPlotOptionLogic, + "test_private_sharing_and_public_" + "world_readable_precedence_signin{}".format(i), + gen_test_signin(plot_options), + ) + + setattr( + TestPlotOptionLogic, + "test_private_sharing_and_public_" + "world_readable_precedence_config{}".format(i), + gen_test_config(plot_options), + ) + generate_private_sharing_and_public_world_readable_precedence() diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_session/test_session.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_session/test_session.py index ae1c6a67c57..081342f6034 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_session/test_session.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_session/test_session.py @@ -8,17 +8,16 @@ class TestSession(PlotlyTestCase): - def setUp(self): super(TestSession, self).setUp() - session._session['plot_options'].clear() + session._session["plot_options"].clear() def test_update_session_plot_options_invalid_sharing_argument(self): # Return PlotlyError when sharing arguement is not # 'public', 'private' or 'secret' - kwargs = {'sharing': 'priva'} + kwargs = {"sharing": "priva"} self.assertRaises(PlotlyError, update_session_plot_options, **kwargs) def test_update_session_plot_options_valid_sharing_argument(self): @@ -27,8 +26,9 @@ def test_update_session_plot_options_valid_sharing_argument(self): # update_session_plot_options is called by correct arguments # 'public, 'private' or 'secret' from chart_studio.session import _session + for key in SHARING_OPTIONS: - kwargs = {'sharing': key} + kwargs = {"sharing": key} update_session_plot_options(**kwargs) - self.assertEqual(_session['plot_options'], kwargs) + self.assertEqual(_session["plot_options"], kwargs) diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_spectacle_presentation/test_spectacle_presentation.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_spectacle_presentation/test_spectacle_presentation.py index b1f9431783c..087e7c81662 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_spectacle_presentation/test_spectacle_presentation.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_spectacle_presentation/test_spectacle_presentation.py @@ -14,15 +14,17 @@ class TestPresentation(TestCase): - def test_invalid_style(self): markdown_string = """ # one slide """ self.assertRaisesRegexp( - PlotlyError, chart_studio.presentation_objs.presentation_objs.STYLE_ERROR, - pres.Presentation, markdown_string, style='foo' + PlotlyError, + chart_studio.presentation_objs.presentation_objs.STYLE_ERROR, + pres.Presentation, + markdown_string, + style="foo", ) def test_open_code_block(self): @@ -35,8 +37,11 @@ def test_open_code_block(self): """ self.assertRaisesRegexp( - PlotlyError, chart_studio.presentation_objs.presentation_objs.CODE_ENV_ERROR, - pres.Presentation, markdown_string, style='moods' + PlotlyError, + chart_studio.presentation_objs.presentation_objs.CODE_ENV_ERROR, + pres.Presentation, + markdown_string, + style="moods", ) def test_invalid_code_language(self): @@ -48,316 +53,443 @@ def test_invalid_code_language(self): """ self.assertRaisesRegexp( - PlotlyError, chart_studio.presentation_objs.presentation_objs.LANG_ERROR, pres.Presentation, - markdown_string, style='moods' + PlotlyError, + chart_studio.presentation_objs.presentation_objs.LANG_ERROR, + pres.Presentation, + markdown_string, + style="moods", ) def test_expected_pres(self): markdown_string = "# title\n---\ntransition: zoom, fade, fade\n# Colors\nColors are everywhere around us.\nPlotly(https://plot.ly/~AdamKulidjian/3564/)\nImage(https://raw.githubusercontent.com/jackparmer/gradient-backgrounds/master/moods1.png)\n```python\nx=1\n```\n---\nPlotly(https://plot.ly/~AdamKulidjian/3564/)\nPlotly(https://plot.ly/~AdamKulidjian/3564/)\nPlotly(https://plot.ly/~AdamKulidjian/3564/)\nPlotly(https://plot.ly/~AdamKulidjian/3564/)\nPlotly(https://plot.ly/~AdamKulidjian/3564/)\nPlotly(https://plot.ly/~AdamKulidjian/3564/)\nPlotly(https://plot.ly/~AdamKulidjian/3564/)\n---\n" - my_pres = pres.Presentation( - markdown_string, style='moods', imgStretch=True - ) + my_pres = pres.Presentation(markdown_string, style="moods", imgStretch=True) - exp_pres = {'presentation': {'paragraphStyles': {'Body': {'color': '#000016', - 'fontFamily': 'Roboto', - 'fontSize': 16, - 'fontStyle': 'normal', - 'fontWeight': 100, - 'lineHeight': 'normal', - 'minWidth': 20, - 'opacity': 1, - 'textAlign': 'center', - 'textDecoration': 'none', - 'wordBreak': 'break-word'}, - 'Body Small': {'color': '#3d3d3d', - 'fontFamily': 'Open Sans', - 'fontSize': 10, - 'fontStyle': 'normal', - 'fontWeight': 400, - 'lineHeight': 'normal', - 'minWidth': 20, - 'opacity': 1, - 'textAlign': 'center', - 'textDecoration': 'none'}, - 'Caption': {'color': '#3d3d3d', - 'fontFamily': 'Open Sans', - 'fontSize': 11, - 'fontStyle': 'italic', - 'fontWeight': 400, - 'lineHeight': 'normal', - 'minWidth': 20, - 'opacity': 1, - 'textAlign': 'center', - 'textDecoration': 'none'}, - 'Heading 1': {'color': '#000016', - 'fontFamily': 'Roboto', - 'fontSize': 55, - 'fontStyle': 'normal', - 'fontWeight': 900, - 'lineHeight': 'normal', - 'minWidth': 20, - 'opacity': 1, - 'textAlign': 'center', - 'textDecoration': 'none'}, - 'Heading 2': {'color': '#000016', - 'fontFamily': 'Roboto', - 'fontSize': 36, - 'fontStyle': 'normal', - 'fontWeight': 900, - 'lineHeight': 'normal', - 'minWidth': 20, - 'opacity': 1, - 'textAlign': 'center', - 'textDecoration': 'none'}, - 'Heading 3': {'color': '#000016', - 'fontFamily': 'Roboto', - 'fontSize': 30, - 'fontStyle': 'normal', - 'fontWeight': 900, - 'lineHeight': 'normal', - 'minWidth': 20, - 'opacity': 1, - 'textAlign': 'center', - 'textDecoration': 'none'}}, - 'slidePreviews': [None for _ in range(496)], - 'slides': [{'children': [{'children': ['title'], - 'defaultHeight': 36, - 'defaultWidth': 52, - 'id': 'CfaAzcSZE', - 'props': {'isQuote': False, - 'listType': None, - 'paragraphStyle': 'Heading 1', - 'size': 4, - 'style': {'color': '#000016', - 'fontFamily': 'Roboto', - 'fontSize': 55, - 'fontStyle': 'normal', - 'fontWeight': 900, - 'height': 140.0, - 'left': 0.0, - 'lineHeight': 'normal', - 'minWidth': 20, - 'opacity': 1, - 'position': 'absolute', - 'textAlign': 'center', - 'textDecoration': 'none', - 'top': 350.0, - 'width': 1000.0}}, - 'resizeVertical': False, - 'type': 'Text'}], - 'id': 'ibvfOQeNy', - 'props': {'style': {'backgroundColor': '#F7F7F7'}, - 'transition': ['slide']}}, - {'children': [{'children': ['Colors'], - 'defaultHeight': 36, - 'defaultWidth': 52, - 'id': 'YcGQJ21AY', - 'props': {'isQuote': False, - 'listType': None, - 'paragraphStyle': 'Heading 1', - 'size': 4, - 'style': {'color': '#000016', - 'fontFamily': 'Roboto', - 'fontSize': 55, - 'fontStyle': 'normal', - 'fontWeight': 900, - 'height': 140.0, - 'left': 0.0, - 'lineHeight': 'normal', - 'minWidth': 20, - 'opacity': 1, - 'position': 'absolute', - 'textAlign': 'center', - 'textDecoration': 'none', - 'top': 0.0, - 'width': 1000.0}}, - 'resizeVertical': False, - 'type': 'Text'}, - {'children': ['Colors are everywhere around us.'], - 'defaultHeight': 36, - 'defaultWidth': 52, - 'id': 'G0tcGP89U', - 'props': {'isQuote': False, - 'listType': None, - 'paragraphStyle': 'Body', - 'size': 4, - 'style': {'color': '#000016', - 'fontFamily': 'Roboto', - 'fontSize': 16, - 'fontStyle': 'normal', - 'fontWeight': 100, - 'height': 14.0, - 'left': 25.0, - 'lineHeight': 'normal', - 'minWidth': 20, - 'opacity': 1, - 'position': 'absolute', - 'textAlign': 'left', - 'textDecoration': 'none', - 'top': 663.0810810810812, - 'width': 950.0000000000001, - 'wordBreak': 'break-word'}}, - 'resizeVertical': False, - 'type': 'Text'}, - {'children': [], - 'id': 'c4scRvuIe', - 'props': {'frameBorder': 0, - 'scrolling': 'no', - 'src': 'https://plot.ly/~AdamKulidjian/3564/.embed?link=false', - 'style': {'height': 280.0, - 'left': 0.0, - 'position': 'absolute', - 'top': 70.0, - 'width': 330.66666666666663}}, - 'type': 'Plotly'}, - {'children': [], - 'id': 'yScDKejKG', - 'props': {'height': 512, - 'imageName': None, - 'src': 'https://raw.githubusercontent.com/jackparmer/gradient-backgrounds/master/moods1.png', - 'style': {'height': 280.0, - 'left': 334.66666666666663, - 'opacity': 1, - 'position': 'absolute', - 'top': 70.0, - 'width': 330.66666666666663}, - 'width': 512}, - 'type': 'Image'}, - {'children': [], - 'defaultText': 'Code', - 'id': 'fuUrIyVrv', - 'props': {'language': 'python', - 'source': 'x=1\n', - 'style': {'fontFamily': "Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace", - 'fontSize': 13, - 'height': 280.0, - 'left': 669.3333333333333, - 'margin': 0, - 'position': 'absolute', - 'textAlign': 'left', - 'top': 70.0, - 'width': 330.66666666666663}, - 'theme': 'tomorrowNight'}, - 'type': 'CodePane'}], - 'id': '7eG6TvKqU', - 'props': {'style': {'backgroundColor': '#FFFFFF'}, - 'transition': ['zoom', 'fade']}}, - {'children': [{'children': [], - 'id': '83EtFjFKM', - 'props': {'frameBorder': 0, - 'scrolling': 'no', - 'src': 'https://plot.ly/~AdamKulidjian/3564/.embed?link=false', - 'style': {'height': 96.57142857142857, - 'left': 400.0, - 'position': 'absolute', - 'top': 0.0, - 'width': 600.0}}, - 'type': 'Plotly'}, - {'children': [], - 'id': 'V9vJYk8bF', - 'props': {'frameBorder': 0, - 'scrolling': 'no', - 'src': 'https://plot.ly/~AdamKulidjian/3564/.embed?link=false', - 'style': {'height': 96.57142857142857, - 'left': 400.0, - 'position': 'absolute', - 'top': 100.57142857142856, - 'width': 600.0}}, - 'type': 'Plotly'}, - {'children': [], - 'id': 'DzCfXMyhv', - 'props': {'frameBorder': 0, - 'scrolling': 'no', - 'src': 'https://plot.ly/~AdamKulidjian/3564/.embed?link=false', - 'style': {'height': 96.57142857142857, - 'left': 400.0, - 'position': 'absolute', - 'top': 201.1428571428571, - 'width': 600.0}}, - 'type': 'Plotly'}, - {'children': [], - 'id': 'YFf7M2BON', - 'props': {'frameBorder': 0, - 'scrolling': 'no', - 'src': 'https://plot.ly/~AdamKulidjian/3564/.embed?link=false', - 'style': {'height': 96.57142857142857, - 'left': 400.0, - 'position': 'absolute', - 'top': 301.71428571428567, - 'width': 600.0}}, - 'type': 'Plotly'}, - {'children': [], - 'id': 'CARvApdzw', - 'props': {'frameBorder': 0, - 'scrolling': 'no', - 'src': 'https://plot.ly/~AdamKulidjian/3564/.embed?link=false', - 'style': {'height': 96.57142857142857, - 'left': 400.0, - 'position': 'absolute', - 'top': 402.2857142857142, - 'width': 600.0}}, - 'type': 'Plotly'}, - {'children': [], - 'id': '194ZxaSko', - 'props': {'frameBorder': 0, - 'scrolling': 'no', - 'src': 'https://plot.ly/~AdamKulidjian/3564/.embed?link=false', - 'style': {'height': 96.57142857142857, - 'left': 400.0, - 'position': 'absolute', - 'top': 502.85714285714283, - 'width': 600.0}}, - 'type': 'Plotly'}, - {'children': [], - 'id': 'SOwRH1rLV', - 'props': {'frameBorder': 0, - 'scrolling': 'no', - 'src': 'https://plot.ly/~AdamKulidjian/3564/.embed?link=false', - 'style': {'height': 96.57142857142857, - 'left': 400.0, - 'position': 'absolute', - 'top': 603.4285714285713, - 'width': 600.0}}, - 'type': 'Plotly'}], - 'id': 'S6VmZlI5Q', - 'props': {'style': {'backgroundColor': '#FFFFFF'}, - 'transition': ['slide']}}], - 'version': '0.1.3'}} + exp_pres = { + "presentation": { + "paragraphStyles": { + "Body": { + "color": "#000016", + "fontFamily": "Roboto", + "fontSize": 16, + "fontStyle": "normal", + "fontWeight": 100, + "lineHeight": "normal", + "minWidth": 20, + "opacity": 1, + "textAlign": "center", + "textDecoration": "none", + "wordBreak": "break-word", + }, + "Body Small": { + "color": "#3d3d3d", + "fontFamily": "Open Sans", + "fontSize": 10, + "fontStyle": "normal", + "fontWeight": 400, + "lineHeight": "normal", + "minWidth": 20, + "opacity": 1, + "textAlign": "center", + "textDecoration": "none", + }, + "Caption": { + "color": "#3d3d3d", + "fontFamily": "Open Sans", + "fontSize": 11, + "fontStyle": "italic", + "fontWeight": 400, + "lineHeight": "normal", + "minWidth": 20, + "opacity": 1, + "textAlign": "center", + "textDecoration": "none", + }, + "Heading 1": { + "color": "#000016", + "fontFamily": "Roboto", + "fontSize": 55, + "fontStyle": "normal", + "fontWeight": 900, + "lineHeight": "normal", + "minWidth": 20, + "opacity": 1, + "textAlign": "center", + "textDecoration": "none", + }, + "Heading 2": { + "color": "#000016", + "fontFamily": "Roboto", + "fontSize": 36, + "fontStyle": "normal", + "fontWeight": 900, + "lineHeight": "normal", + "minWidth": 20, + "opacity": 1, + "textAlign": "center", + "textDecoration": "none", + }, + "Heading 3": { + "color": "#000016", + "fontFamily": "Roboto", + "fontSize": 30, + "fontStyle": "normal", + "fontWeight": 900, + "lineHeight": "normal", + "minWidth": 20, + "opacity": 1, + "textAlign": "center", + "textDecoration": "none", + }, + }, + "slidePreviews": [None for _ in range(496)], + "slides": [ + { + "children": [ + { + "children": ["title"], + "defaultHeight": 36, + "defaultWidth": 52, + "id": "CfaAzcSZE", + "props": { + "isQuote": False, + "listType": None, + "paragraphStyle": "Heading 1", + "size": 4, + "style": { + "color": "#000016", + "fontFamily": "Roboto", + "fontSize": 55, + "fontStyle": "normal", + "fontWeight": 900, + "height": 140.0, + "left": 0.0, + "lineHeight": "normal", + "minWidth": 20, + "opacity": 1, + "position": "absolute", + "textAlign": "center", + "textDecoration": "none", + "top": 350.0, + "width": 1000.0, + }, + }, + "resizeVertical": False, + "type": "Text", + } + ], + "id": "ibvfOQeNy", + "props": { + "style": {"backgroundColor": "#F7F7F7"}, + "transition": ["slide"], + }, + }, + { + "children": [ + { + "children": ["Colors"], + "defaultHeight": 36, + "defaultWidth": 52, + "id": "YcGQJ21AY", + "props": { + "isQuote": False, + "listType": None, + "paragraphStyle": "Heading 1", + "size": 4, + "style": { + "color": "#000016", + "fontFamily": "Roboto", + "fontSize": 55, + "fontStyle": "normal", + "fontWeight": 900, + "height": 140.0, + "left": 0.0, + "lineHeight": "normal", + "minWidth": 20, + "opacity": 1, + "position": "absolute", + "textAlign": "center", + "textDecoration": "none", + "top": 0.0, + "width": 1000.0, + }, + }, + "resizeVertical": False, + "type": "Text", + }, + { + "children": ["Colors are everywhere around us."], + "defaultHeight": 36, + "defaultWidth": 52, + "id": "G0tcGP89U", + "props": { + "isQuote": False, + "listType": None, + "paragraphStyle": "Body", + "size": 4, + "style": { + "color": "#000016", + "fontFamily": "Roboto", + "fontSize": 16, + "fontStyle": "normal", + "fontWeight": 100, + "height": 14.0, + "left": 25.0, + "lineHeight": "normal", + "minWidth": 20, + "opacity": 1, + "position": "absolute", + "textAlign": "left", + "textDecoration": "none", + "top": 663.0810810810812, + "width": 950.0000000000001, + "wordBreak": "break-word", + }, + }, + "resizeVertical": False, + "type": "Text", + }, + { + "children": [], + "id": "c4scRvuIe", + "props": { + "frameBorder": 0, + "scrolling": "no", + "src": "https://plot.ly/~AdamKulidjian/3564/.embed?link=false", + "style": { + "height": 280.0, + "left": 0.0, + "position": "absolute", + "top": 70.0, + "width": 330.66666666666663, + }, + }, + "type": "Plotly", + }, + { + "children": [], + "id": "yScDKejKG", + "props": { + "height": 512, + "imageName": None, + "src": "https://raw.githubusercontent.com/jackparmer/gradient-backgrounds/master/moods1.png", + "style": { + "height": 280.0, + "left": 334.66666666666663, + "opacity": 1, + "position": "absolute", + "top": 70.0, + "width": 330.66666666666663, + }, + "width": 512, + }, + "type": "Image", + }, + { + "children": [], + "defaultText": "Code", + "id": "fuUrIyVrv", + "props": { + "language": "python", + "source": "x=1\n", + "style": { + "fontFamily": "Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace", + "fontSize": 13, + "height": 280.0, + "left": 669.3333333333333, + "margin": 0, + "position": "absolute", + "textAlign": "left", + "top": 70.0, + "width": 330.66666666666663, + }, + "theme": "tomorrowNight", + }, + "type": "CodePane", + }, + ], + "id": "7eG6TvKqU", + "props": { + "style": {"backgroundColor": "#FFFFFF"}, + "transition": ["zoom", "fade"], + }, + }, + { + "children": [ + { + "children": [], + "id": "83EtFjFKM", + "props": { + "frameBorder": 0, + "scrolling": "no", + "src": "https://plot.ly/~AdamKulidjian/3564/.embed?link=false", + "style": { + "height": 96.57142857142857, + "left": 400.0, + "position": "absolute", + "top": 0.0, + "width": 600.0, + }, + }, + "type": "Plotly", + }, + { + "children": [], + "id": "V9vJYk8bF", + "props": { + "frameBorder": 0, + "scrolling": "no", + "src": "https://plot.ly/~AdamKulidjian/3564/.embed?link=false", + "style": { + "height": 96.57142857142857, + "left": 400.0, + "position": "absolute", + "top": 100.57142857142856, + "width": 600.0, + }, + }, + "type": "Plotly", + }, + { + "children": [], + "id": "DzCfXMyhv", + "props": { + "frameBorder": 0, + "scrolling": "no", + "src": "https://plot.ly/~AdamKulidjian/3564/.embed?link=false", + "style": { + "height": 96.57142857142857, + "left": 400.0, + "position": "absolute", + "top": 201.1428571428571, + "width": 600.0, + }, + }, + "type": "Plotly", + }, + { + "children": [], + "id": "YFf7M2BON", + "props": { + "frameBorder": 0, + "scrolling": "no", + "src": "https://plot.ly/~AdamKulidjian/3564/.embed?link=false", + "style": { + "height": 96.57142857142857, + "left": 400.0, + "position": "absolute", + "top": 301.71428571428567, + "width": 600.0, + }, + }, + "type": "Plotly", + }, + { + "children": [], + "id": "CARvApdzw", + "props": { + "frameBorder": 0, + "scrolling": "no", + "src": "https://plot.ly/~AdamKulidjian/3564/.embed?link=false", + "style": { + "height": 96.57142857142857, + "left": 400.0, + "position": "absolute", + "top": 402.2857142857142, + "width": 600.0, + }, + }, + "type": "Plotly", + }, + { + "children": [], + "id": "194ZxaSko", + "props": { + "frameBorder": 0, + "scrolling": "no", + "src": "https://plot.ly/~AdamKulidjian/3564/.embed?link=false", + "style": { + "height": 96.57142857142857, + "left": 400.0, + "position": "absolute", + "top": 502.85714285714283, + "width": 600.0, + }, + }, + "type": "Plotly", + }, + { + "children": [], + "id": "SOwRH1rLV", + "props": { + "frameBorder": 0, + "scrolling": "no", + "src": "https://plot.ly/~AdamKulidjian/3564/.embed?link=false", + "style": { + "height": 96.57142857142857, + "left": 400.0, + "position": "absolute", + "top": 603.4285714285713, + "width": 600.0, + }, + }, + "type": "Plotly", + }, + ], + "id": "S6VmZlI5Q", + "props": { + "style": {"backgroundColor": "#FFFFFF"}, + "transition": ["slide"], + }, + }, + ], + "version": "0.1.3", + } + } - for k in ['version', 'paragraphStyles', 'slidePreviews']: - self.assertEqual( - my_pres['presentation'][k], - exp_pres['presentation'][k] - ) + for k in ["version", "paragraphStyles", "slidePreviews"]: + self.assertEqual(my_pres["presentation"][k], exp_pres["presentation"][k]) self.assertEqual( - len(my_pres['presentation']['slides']), - len(exp_pres['presentation']['slides']) + len(my_pres["presentation"]["slides"]), + len(exp_pres["presentation"]["slides"]), ) - for slide_idx in range(len(my_pres['presentation']['slides'])): - childs = my_pres['presentation']['slides'][slide_idx]['children'] + for slide_idx in range(len(my_pres["presentation"]["slides"])): + childs = my_pres["presentation"]["slides"][slide_idx]["children"] # transitions and background color self.assertEqual( - my_pres['presentation']['slides'][slide_idx]['props'], - exp_pres['presentation']['slides'][slide_idx]['props'] + my_pres["presentation"]["slides"][slide_idx]["props"], + exp_pres["presentation"]["slides"][slide_idx]["props"], ) for child_idx in range(len(childs)): # check urls - if (my_pres['presentation']['slides'][slide_idx]['children'] - [child_idx]['type'] in ['Image', 'Plotly']): + if my_pres["presentation"]["slides"][slide_idx]["children"][child_idx][ + "type" + ] in ["Image", "Plotly"]: self.assertEqual( - (my_pres['presentation']['slides'][slide_idx] - ['children'][child_idx]['props']), - (exp_pres['presentation']['slides'][slide_idx] - ['children'][child_idx]['props']) + ( + my_pres["presentation"]["slides"][slide_idx]["children"][ + child_idx + ]["props"] + ), + ( + exp_pres["presentation"]["slides"][slide_idx]["children"][ + child_idx + ]["props"] + ), ) # styles in children self.assertEqual( - (my_pres['presentation']['slides'][slide_idx] - ['children'][child_idx]['props']), - (exp_pres['presentation']['slides'][slide_idx] - ['children'][child_idx]['props']) + ( + my_pres["presentation"]["slides"][slide_idx]["children"][ + child_idx + ]["props"] + ), + ( + exp_pres["presentation"]["slides"][slide_idx]["children"][ + child_idx + ]["props"] + ), ) diff --git a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_stream/test_stream.py b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_stream/test_stream.py index 2260fdd04d7..48f5b38c3e1 100644 --- a/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_stream/test_stream.py +++ b/packages/python/chart-studio/chart_studio/tests/test_plot_ly/test_stream/test_stream.py @@ -9,86 +9,95 @@ from nose.plugins.attrib import attr from chart_studio import plotly as py -from plotly.graph_objs import (Layout, Scatter, Stream) +from plotly.graph_objs import Layout, Scatter, Stream from chart_studio.tests.utils import PlotlyTestCase -un = 'PythonAPI' -ak = 'ubpiol2cve' -tk = 'vaia8trjjb' -config = {'plotly_domain': 'https://plot.ly', - 'plotly_streaming_domain': 'stream.plot.ly', - 'plotly_api_domain': 'https://api.plot.ly', - 'plotly_ssl_verification': False} +un = "PythonAPI" +ak = "ubpiol2cve" +tk = "vaia8trjjb" +config = { + "plotly_domain": "https://plot.ly", + "plotly_streaming_domain": "stream.plot.ly", + "plotly_api_domain": "https://api.plot.ly", + "plotly_ssl_verification": False, +} class TestStreaming(PlotlyTestCase): - def setUp(self): super(TestStreaming, self).setUp() py.sign_in(un, ak, **config) - #@attr('slow') + # @attr('slow') def test_initialize_stream_plot(self): py.sign_in(un, ak) stream = Stream(token=tk, maxpoints=50) - url = py.plot([Scatter(x=[], y=[], mode='markers', stream=stream)], - auto_open=False, - world_readable=True, - filename='stream-test') - self.assertTrue(url.startswith('https://plot.ly/~PythonAPI/')) - time.sleep(.5) - - @attr('slow') + url = py.plot( + [Scatter(x=[], y=[], mode="markers", stream=stream)], + auto_open=False, + world_readable=True, + filename="stream-test", + ) + self.assertTrue(url.startswith("https://plot.ly/~PythonAPI/")) + time.sleep(0.5) + + @attr("slow") def test_stream_single_points(self): py.sign_in(un, ak) stream = Stream(token=tk, maxpoints=50) - res = py.plot([Scatter(x=[], y=[], mode='markers', stream=stream)], - auto_open=False, - world_readable=True, - filename='stream-test') - time.sleep(.5) + res = py.plot( + [Scatter(x=[], y=[], mode="markers", stream=stream)], + auto_open=False, + world_readable=True, + filename="stream-test", + ) + time.sleep(0.5) my_stream = py.Stream(tk) my_stream.open() my_stream.write(Scatter(x=[1], y=[10])) - time.sleep(.5) + time.sleep(0.5) my_stream.close() - @attr('slow') + @attr("slow") def test_stream_multiple_points(self): py.sign_in(un, ak) stream = Stream(token=tk, maxpoints=50) - url = py.plot([Scatter(x=[], y=[], mode='markers', stream=stream)], - auto_open=False, - world_readable=True, - filename='stream-test') - time.sleep(.5) + url = py.plot( + [Scatter(x=[], y=[], mode="markers", stream=stream)], + auto_open=False, + world_readable=True, + filename="stream-test", + ) + time.sleep(0.5) my_stream = py.Stream(tk) my_stream.open() my_stream.write(Scatter(x=[1, 2, 3, 4], y=[2, 1, 2, 5])) - time.sleep(.5) + time.sleep(0.5) my_stream.close() - @attr('slow') + @attr("slow") def test_stream_layout(self): py.sign_in(un, ak) stream = Stream(token=tk, maxpoints=50) - url = py.plot([Scatter(x=[], y=[], mode='markers', stream=stream)], - auto_open=False, - world_readable=True, - filename='stream-test') - time.sleep(.5) + url = py.plot( + [Scatter(x=[], y=[], mode="markers", stream=stream)], + auto_open=False, + world_readable=True, + filename="stream-test", + ) + time.sleep(0.5) title_0 = "some title i picked first" title_1 = "this other title i picked second" my_stream = py.Stream(tk) my_stream.open() my_stream.write(Scatter(x=[1], y=[10]), layout=Layout(title=title_0)) - time.sleep(.5) + time.sleep(0.5) my_stream.close() my_stream.open() my_stream.write(Scatter(x=[1], y=[10]), layout=Layout(title=title_1)) my_stream.close() - @attr('slow') + @attr("slow") def test_stream_unstreamable(self): # even though `name` isn't streamable, we don't validate it --> pass @@ -96,7 +105,7 @@ def test_stream_unstreamable(self): py.sign_in(un, ak) my_stream = py.Stream(tk) my_stream.open() - my_stream.write(Scatter(x=[1], y=[10], name='nope')) + my_stream.write(Scatter(x=[1], y=[10], name="nope")) my_stream.close() def test_stream_no_scheme(self): @@ -104,17 +113,14 @@ def test_stream_no_scheme(self): # If no scheme is used in the plotly_streaming_domain, port 80 # should be used for streaming and ssl_enabled should be False - py.sign_in(un, ak, **{'plotly_streaming_domain': 'stream.plot.ly'}) + py.sign_in(un, ak, **{"plotly_streaming_domain": "stream.plot.ly"}) my_stream = py.Stream(tk) expected_streaming_specs = { - 'server': 'stream.plot.ly', - 'port': 80, - 'ssl_enabled': False, - 'ssl_verification_enabled': False, - 'headers': { - 'Host': 'stream.plot.ly', - 'plotly-streamtoken': tk - } + "server": "stream.plot.ly", + "port": 80, + "ssl_enabled": False, + "ssl_verification_enabled": False, + "headers": {"Host": "stream.plot.ly", "plotly-streamtoken": tk}, } actual_streaming_specs = my_stream.get_streaming_specs() self.assertEqual(expected_streaming_specs, actual_streaming_specs) @@ -124,18 +130,14 @@ def test_stream_http(self): # If the http scheme is used in the plotly_streaming_domain, port 80 # should be used for streaming and ssl_enabled should be False - py.sign_in(un, ak, - **{'plotly_streaming_domain': 'http://stream.plot.ly'}) + py.sign_in(un, ak, **{"plotly_streaming_domain": "http://stream.plot.ly"}) my_stream = py.Stream(tk) expected_streaming_specs = { - 'server': 'stream.plot.ly', - 'port': 80, - 'ssl_enabled': False, - 'ssl_verification_enabled': False, - 'headers': { - 'Host': 'stream.plot.ly', - 'plotly-streamtoken': tk - } + "server": "stream.plot.ly", + "port": 80, + "ssl_enabled": False, + "ssl_verification_enabled": False, + "headers": {"Host": "stream.plot.ly", "plotly-streamtoken": tk}, } actual_streaming_specs = my_stream.get_streaming_specs() self.assertEqual(expected_streaming_specs, actual_streaming_specs) @@ -147,20 +149,17 @@ def test_stream_https(self): # and ssl_verification_enabled should equal plotly_ssl_verification ssl_stream_config = { - 'plotly_streaming_domain': 'https://stream.plot.ly', - 'plotly_ssl_verification': True + "plotly_streaming_domain": "https://stream.plot.ly", + "plotly_ssl_verification": True, } py.sign_in(un, ak, **ssl_stream_config) my_stream = py.Stream(tk) expected_streaming_specs = { - 'server': 'stream.plot.ly', - 'port': 443, - 'ssl_enabled': True, - 'ssl_verification_enabled': True, - 'headers': { - 'Host': 'stream.plot.ly', - 'plotly-streamtoken': tk - } + "server": "stream.plot.ly", + "port": 443, + "ssl_enabled": True, + "ssl_verification_enabled": True, + "headers": {"Host": "stream.plot.ly", "plotly-streamtoken": tk}, } actual_streaming_specs = my_stream.get_streaming_specs() self.assertEqual(expected_streaming_specs, actual_streaming_specs) diff --git a/packages/python/chart-studio/chart_studio/tests/utils.py b/packages/python/chart-studio/chart_studio/tests/utils.py index 4ad485f6258..68712755f28 100644 --- a/packages/python/chart-studio/chart_studio/tests/utils.py +++ b/packages/python/chart-studio/chart_studio/tests/utils.py @@ -4,6 +4,7 @@ from chart_studio import session, files, utils from plotly.files import ensure_writable_plotly_dir + class PlotlyTestCase(TestCase): # parent test case to assist with clean up of local credentials/config @@ -17,17 +18,15 @@ def __init__(self, *args, **kwargs): @classmethod def setUpClass(cls): - session._session = { - 'credentials': {}, - 'config': {}, - 'plot_options': {} - } + session._session = {"credentials": {}, "config": {}, "plot_options": {}} def setUp(self): self.stash_session() self.stash_files() - defaults = dict(files.FILE_CONTENT[files.CREDENTIALS_FILE], - **files.FILE_CONTENT[files.CONFIG_FILE]) + defaults = dict( + files.FILE_CONTENT[files.CREDENTIALS_FILE], + **files.FILE_CONTENT[files.CONFIG_FILE] + ) session.sign_in(**defaults) def tearDown(self): diff --git a/packages/python/chart-studio/chart_studio/tools.py b/packages/python/chart-studio/chart_studio/tools.py index bdcd66e9432..87b23546b33 100644 --- a/packages/python/chart-studio/chart_studio/tools.py +++ b/packages/python/chart-studio/chart_studio/tools.py @@ -21,10 +21,10 @@ from chart_studio import session, utils from chart_studio.files import CONFIG_FILE, CREDENTIALS_FILE, FILE_CONTENT -ipython_core_display = optional_imports.get_module('IPython.core.display') -ipython_display = optional_imports.get_module('IPython.display') +ipython_core_display = optional_imports.get_module("IPython.core.display") +ipython_display = optional_imports.get_module("IPython.display") -sage_salvus = optional_imports.get_module('sage_salvus') +sage_salvus = optional_imports.get_module("sage_salvus") def get_config_defaults(): @@ -66,22 +66,27 @@ def ensure_local_plotly_files(): utils.save_json_dict(fn, contents) else: - warnings.warn("Looks like you don't have 'read-write' permission to " - "your 'home' ('~') directory or to our '~/.plotly' " - "directory. That means plotly's python api can't setup " - "local configuration files. No problem though! You'll " - "just have to sign-in using 'plotly.plotly.sign_in()'. " - "For help with that: 'help(plotly.plotly.sign_in)'." - "\nQuestions? Visit https://support.plot.ly") + warnings.warn( + "Looks like you don't have 'read-write' permission to " + "your 'home' ('~') directory or to our '~/.plotly' " + "directory. That means plotly's python api can't setup " + "local configuration files. No problem though! You'll " + "just have to sign-in using 'plotly.plotly.sign_in()'. " + "For help with that: 'help(plotly.plotly.sign_in)'." + "\nQuestions? Visit https://support.plot.ly" + ) ### credentials tools ### -def set_credentials_file(username=None, - api_key=None, - stream_ids=None, - proxy_username=None, - proxy_password=None): + +def set_credentials_file( + username=None, + api_key=None, + stream_ids=None, + proxy_username=None, + proxy_password=None, +): """Set the keyword-value pairs in `~/.plotly_credentials`. :param (str) username: The username you'd use to sign in to Plotly @@ -92,20 +97,21 @@ def set_credentials_file(username=None, """ if not ensure_writable_plotly_dir(): - raise _plotly_utils.exceptions.PlotlyError("You don't have proper file permissions " - "to run this function.") + raise _plotly_utils.exceptions.PlotlyError( + "You don't have proper file permissions " "to run this function." + ) ensure_local_plotly_files() # make sure what's there is OK credentials = get_credentials_file() if isinstance(username, six.string_types): - credentials['username'] = username + credentials["username"] = username if isinstance(api_key, six.string_types): - credentials['api_key'] = api_key + credentials["api_key"] = api_key if isinstance(proxy_username, six.string_types): - credentials['proxy_username'] = proxy_username + credentials["proxy_username"] = proxy_username if isinstance(proxy_password, six.string_types): - credentials['proxy_password'] = proxy_password + credentials["proxy_password"] = proxy_password if isinstance(stream_ids, (list, tuple)): - credentials['stream_ids'] = stream_ids + credentials["stream_ids"] = stream_ids utils.save_json_dict(CREDENTIALS_FILE, credentials) ensure_local_plotly_files() # make sure what we just put there is OK @@ -136,14 +142,17 @@ def reset_credentials_file(): ### config tools ### -def set_config_file(plotly_domain=None, - plotly_streaming_domain=None, - plotly_api_domain=None, - plotly_ssl_verification=None, - plotly_proxy_authorization=None, - world_readable=None, - sharing=None, - auto_open=None): + +def set_config_file( + plotly_domain=None, + plotly_streaming_domain=None, + plotly_api_domain=None, + plotly_ssl_verification=None, + plotly_proxy_authorization=None, + world_readable=None, + sharing=None, + auto_open=None, +): """Set the keyword-value pairs in `~/.plotly/.config`. :param (str) plotly_domain: ex - https://plot.ly @@ -155,52 +164,54 @@ def set_config_file(plotly_domain=None, """ if not ensure_writable_plotly_dir(): - raise _plotly_utils.exceptions.PlotlyError("You don't have proper file permissions " - "to run this function.") + raise _plotly_utils.exceptions.PlotlyError( + "You don't have proper file permissions " "to run this function." + ) ensure_local_plotly_files() # make sure what's there is OK - utils.validate_world_readable_and_sharing_settings({ - 'sharing': sharing, 'world_readable': world_readable}) + utils.validate_world_readable_and_sharing_settings( + {"sharing": sharing, "world_readable": world_readable} + ) settings = get_config_file() if isinstance(plotly_domain, six.string_types): - settings['plotly_domain'] = plotly_domain + settings["plotly_domain"] = plotly_domain elif plotly_domain is not None: - raise TypeError('plotly_domain should be a string') + raise TypeError("plotly_domain should be a string") if isinstance(plotly_streaming_domain, six.string_types): - settings['plotly_streaming_domain'] = plotly_streaming_domain + settings["plotly_streaming_domain"] = plotly_streaming_domain elif plotly_streaming_domain is not None: - raise TypeError('plotly_streaming_domain should be a string') + raise TypeError("plotly_streaming_domain should be a string") if isinstance(plotly_api_domain, six.string_types): - settings['plotly_api_domain'] = plotly_api_domain + settings["plotly_api_domain"] = plotly_api_domain elif plotly_api_domain is not None: - raise TypeError('plotly_api_domain should be a string') + raise TypeError("plotly_api_domain should be a string") if isinstance(plotly_ssl_verification, (six.string_types, bool)): - settings['plotly_ssl_verification'] = plotly_ssl_verification + settings["plotly_ssl_verification"] = plotly_ssl_verification elif plotly_ssl_verification is not None: - raise TypeError('plotly_ssl_verification should be a boolean') + raise TypeError("plotly_ssl_verification should be a boolean") if isinstance(plotly_proxy_authorization, (six.string_types, bool)): - settings['plotly_proxy_authorization'] = plotly_proxy_authorization + settings["plotly_proxy_authorization"] = plotly_proxy_authorization elif plotly_proxy_authorization is not None: - raise TypeError('plotly_proxy_authorization should be a boolean') + raise TypeError("plotly_proxy_authorization should be a boolean") if isinstance(auto_open, bool): - settings['auto_open'] = auto_open + settings["auto_open"] = auto_open elif auto_open is not None: - raise TypeError('auto_open should be a boolean') + raise TypeError("auto_open should be a boolean") # validate plotly_domain and plotly_api_domain utils.validate_plotly_domains( - {'plotly_domain': plotly_domain, 'plotly_api_domain': plotly_api_domain} + {"plotly_domain": plotly_domain, "plotly_api_domain": plotly_api_domain} ) if isinstance(world_readable, bool): - settings['world_readable'] = world_readable - settings.pop('sharing') + settings["world_readable"] = world_readable + settings.pop("sharing") elif world_readable is not None: - raise TypeError('Input should be a boolean') + raise TypeError("Input should be a boolean") if isinstance(sharing, six.string_types): - settings['sharing'] = sharing + settings["sharing"] = sharing elif sharing is not None: - raise TypeError('sharing should be a string') + raise TypeError("sharing should be a string") utils.set_sharing_and_world_readable(settings) utils.save_json_dict(CONFIG_FILE, settings) @@ -227,38 +238,41 @@ def get_config_file(*args): def reset_config_file(): ensure_local_plotly_files() # make sure what's there is OK - f = open(CONFIG_FILE, 'w') + f = open(CONFIG_FILE, "w") f.close() ensure_local_plotly_files() # put the defaults back ### embed tools ### def _get_embed_url(file_owner_or_url, file_id=None): - plotly_rest_url = (session.get_session_config().get('plotly_domain') or - get_config_file()['plotly_domain']) + plotly_rest_url = ( + session.get_session_config().get("plotly_domain") + or get_config_file()["plotly_domain"] + ) if file_id is None: # assume we're using a url url = file_owner_or_url - if url[:len(plotly_rest_url)] != plotly_rest_url: + if url[: len(plotly_rest_url)] != plotly_rest_url: raise _plotly_utils.exceptions.PlotlyError( "Because you didn't supply a 'file_id' in the call, " "we're assuming you're trying to snag a figure from a url. " "You supplied the url, '{0}', we expected it to start with " "'{1}'." "\nRun help on this function for more information." - "".format(url, plotly_rest_url)) + "".format(url, plotly_rest_url) + ) urlsplit = six.moves.urllib.parse.urlparse(url) - file_owner = urlsplit.path.split('/')[1].split('~')[1] - file_id = urlsplit.path.split('/')[2] + file_owner = urlsplit.path.split("/")[1].split("~")[1] + file_id = urlsplit.path.split("/")[2] # to check for share_key we check urlsplit.query query_dict = six.moves.urllib.parse.parse_qs(urlsplit.query) if query_dict: - share_key = query_dict['share_key'][-1] + share_key = query_dict["share_key"][-1] else: - share_key = '' + share_key = "" else: file_owner = file_owner_or_url - share_key = '' + share_key = "" try: test_if_int = int(file_id) except ValueError: @@ -273,15 +287,14 @@ def _get_embed_url(file_owner_or_url, file_id=None): "The 'file_id' argument must be a non-negative number." ) - if share_key is '': + if share_key is "": return "{plotly_rest_url}/~{file_owner}/{file_id}.embed".format( - plotly_rest_url=plotly_rest_url, - file_owner=file_owner, - file_id=file_id, + plotly_rest_url=plotly_rest_url, file_owner=file_owner, file_id=file_id ) else: - return ("{plotly_rest_url}/~{file_owner}/" - "{file_id}.embed?share_key={share_key}").format( + return ( + "{plotly_rest_url}/~{file_owner}/" "{file_id}.embed?share_key={share_key}" + ).format( plotly_rest_url=plotly_rest_url, file_owner=file_owner, file_id=file_id, @@ -314,13 +327,13 @@ def get_embed(file_owner_or_url, file_id=None, width="100%", height=525): """ embed_url = _get_embed_url(file_owner_or_url, file_id) - return ("").format(embed_url=embed_url, - iframe_height=height, - iframe_width=width) + return ( + '" + ).format(embed_url=embed_url, iframe_height=height, iframe_width=width) def embed(file_owner_or_url, file_id=None, width="100%", height=525): @@ -347,8 +360,7 @@ def embed(file_owner_or_url, file_id=None, width="100%", height=525): """ try: - s = get_embed(file_owner_or_url, file_id=file_id, width=width, - height=height) + s = get_embed(file_owner_or_url, file_id=file_id, width=width, height=height) # see if we are in the SageMath Cloud if sage_salvus: @@ -358,29 +370,31 @@ def embed(file_owner_or_url, file_id=None, width="100%", height=525): if ipython_core_display: if file_id: plotly_domain = ( - session.get_session_config().get('plotly_domain') or - get_config_file()['plotly_domain'] + session.get_session_config().get("plotly_domain") + or get_config_file()["plotly_domain"] ) url = "{plotly_domain}/~{un}/{fid}".format( - plotly_domain=plotly_domain, - un=file_owner_or_url, - fid=file_id) + plotly_domain=plotly_domain, un=file_owner_or_url, fid=file_id + ) else: url = file_owner_or_url embed_url = _get_embed_url(url, file_id) return ipython_display.IFrame(embed_url, width, height) else: - if (get_config_defaults()['plotly_domain'] - != session.get_session_config()['plotly_domain']): - feedback_contact = 'Visit support.plot.ly' + if ( + get_config_defaults()["plotly_domain"] + != session.get_session_config()["plotly_domain"] + ): + feedback_contact = "Visit support.plot.ly" else: # different domain likely means enterprise - feedback_contact = 'Contact your On-Premise account executive' + feedback_contact = "Contact your On-Premise account executive" warnings.warn( "Looks like you're not using IPython or Sage to embed this " "plot. If you just want the *embed code*,\ntry using " "`get_embed()` instead." - '\nQuestions? {}'.format(feedback_contact)) + "\nQuestions? {}".format(feedback_contact) + ) diff --git a/packages/python/chart-studio/chart_studio/utils.py b/packages/python/chart-studio/chart_studio/utils.py index 5a42ed2ac61..f2fc92c1c15 100644 --- a/packages/python/chart-studio/chart_studio/utils.py +++ b/packages/python/chart-studio/chart_studio/utils.py @@ -18,16 +18,15 @@ from _plotly_utils.optional_imports import get_module # Optional imports, may be None for users that only use our core functionality. -numpy = get_module('numpy') -pandas = get_module('pandas') -sage_all = get_module('sage.all') +numpy = get_module("numpy") +pandas = get_module("pandas") +sage_all = get_module("sage.all") ### incase people are using threading, we lock file reads lock = threading.Lock() - http_msg = ( "The plotly_domain and plotly_api_domain of your config file must start " "with 'https', not 'http'. If you are not using On-Premise then run the " @@ -54,6 +53,7 @@ ### general file setup tools ### + def load_json_dict(filename, *args): """Checks if file exists. Returns {} if something fails.""" data = {} @@ -90,7 +90,7 @@ def ensure_file_exists(filename): if not os.path.exists(filename): head, tail = os.path.split(filename) ensure_dir_exists(head) - with open(filename, 'w') as f: + with open(filename, "w") as f: pass # just create the file @@ -113,7 +113,7 @@ def get_first_duplicate(items): ### source key def is_source_key(key): - src_regex = re.compile(r'.+src$') + src_regex = re.compile(r".+src$") if src_regex.match(key) is not None: return True else: @@ -122,25 +122,35 @@ def is_source_key(key): ### validation def validate_world_readable_and_sharing_settings(option_set): - if ('world_readable' in option_set and - option_set['world_readable'] is True and - 'sharing' in option_set and - option_set['sharing'] is not None and - option_set['sharing'] != 'public'): + if ( + "world_readable" in option_set + and option_set["world_readable"] is True + and "sharing" in option_set + and option_set["sharing"] is not None + and option_set["sharing"] != "public" + ): raise PlotlyError( "Looks like you are setting your plot privacy to both " "public and private.\n If you set world_readable as True, " - "sharing can only be set to 'public'") - elif ('world_readable' in option_set and - option_set['world_readable'] is False and - 'sharing' in option_set and - option_set['sharing'] == 'public'): + "sharing can only be set to 'public'" + ) + elif ( + "world_readable" in option_set + and option_set["world_readable"] is False + and "sharing" in option_set + and option_set["sharing"] == "public" + ): raise PlotlyError( "Looks like you are setting your plot privacy to both " "public and private.\n If you set world_readable as " - "False, sharing can only be set to 'private' or 'secret'") - elif ('sharing' in option_set and - option_set['sharing'] not in ['public', 'private', 'secret', None]): + "False, sharing can only be set to 'private' or 'secret'" + ) + elif "sharing" in option_set and option_set["sharing"] not in [ + "public", + "private", + "secret", + None, + ]: raise PlotlyError( "The 'sharing' argument only accepts one of the following " "strings:\n'public' -- for public plots\n" @@ -152,21 +162,20 @@ def validate_world_readable_and_sharing_settings(option_set): def validate_plotly_domains(option_set): domains_not_none = [] - for d in ['plotly_domain', 'plotly_api_domain']: + for d in ["plotly_domain", "plotly_api_domain"]: if d in option_set and option_set[d]: domains_not_none.append(option_set[d]) - if not all(d.lower().startswith('https') for d in domains_not_none): + if not all(d.lower().startswith("https") for d in domains_not_none): warnings.warn(http_msg, category=UserWarning) def set_sharing_and_world_readable(option_set): - if 'world_readable' in option_set and 'sharing' not in option_set: - option_set['sharing'] = ( - 'public' if option_set['world_readable'] else 'private') + if "world_readable" in option_set and "sharing" not in option_set: + option_set["sharing"] = "public" if option_set["world_readable"] else "private" - elif 'sharing' in option_set and 'world_readable' not in option_set: - if option_set['sharing'] == 'public': - option_set['world_readable'] = True + elif "sharing" in option_set and "world_readable" not in option_set: + if option_set["sharing"] == "public": + option_set["world_readable"] = True else: - option_set['world_readable'] = False + option_set["world_readable"] = False diff --git a/packages/python/chart-studio/setup.py b/packages/python/chart-studio/setup.py index 3d20e911609..29d75fb5c2c 100644 --- a/packages/python/chart-studio/setup.py +++ b/packages/python/chart-studio/setup.py @@ -4,7 +4,7 @@ def readme(): parent_dir = os.path.dirname(os.path.realpath(__file__)) - with open(os.path.join(parent_dir, 'README.md')) as f: + with open(os.path.join(parent_dir, "README.md")) as f: return f.read() diff --git a/packages/python/plotly-geo/_plotly_geo/__init__.py b/packages/python/plotly-geo/_plotly_geo/__init__.py index 18ba49094ea..bd6fe4ca347 100644 --- a/packages/python/plotly-geo/_plotly_geo/__init__.py +++ b/packages/python/plotly-geo/_plotly_geo/__init__.py @@ -1,3 +1,3 @@ # https://packaging.python.org/guides/packaging-namespace-packages/ # pkgutil-style-namespace-packages -__path__ = __import__('pkgutil').extend_path(__path__, __name__) +__path__ = __import__("pkgutil").extend_path(__path__, __name__) diff --git a/packages/python/plotly-geo/setup.py b/packages/python/plotly-geo/setup.py index 9f82934f7ec..7c77bfe5831 100644 --- a/packages/python/plotly-geo/setup.py +++ b/packages/python/plotly-geo/setup.py @@ -4,7 +4,7 @@ def readme(): parent_dir = os.path.dirname(os.path.realpath(__file__)) - with open(os.path.join(parent_dir, 'README.md')) as f: + with open(os.path.join(parent_dir, "README.md")) as f: return f.read() @@ -31,8 +31,6 @@ def readme(): "Topic :: Scientific/Engineering :: Visualization", ], license="MIT", - packages=[ - "_plotly_geo", - ], - package_data={'_plotly_geo': ['package_data/*']}, + packages=["_plotly_geo"], + package_data={"_plotly_geo": ["package_data/*"]}, ) diff --git a/packages/python/plotly/_plotly_future_/__init__.py b/packages/python/plotly/_plotly_future_/__init__.py index 26b52ef271b..3fb7f72b1ca 100644 --- a/packages/python/plotly/_plotly_future_/__init__.py +++ b/packages/python/plotly/_plotly_future_/__init__.py @@ -4,71 +4,75 @@ # Initialize _future_flags with all future flags that are now always in # effect. _future_flags = { - 'renderer_defaults', - 'template_defaults', - 'extract_chart_studio', - 'remove_deprecations', - 'v4_subplots', - 'orca_defaults', - 'timezones', - 'trace_uids', + "renderer_defaults", + "template_defaults", + "extract_chart_studio", + "remove_deprecations", + "v4_subplots", + "orca_defaults", + "timezones", + "trace_uids", } def _assert_plotly_not_imported(): import sys - if 'plotly' in sys.modules: - raise ImportError("""\ -The _plotly_future_ module must be imported before the plotly module""") + + if "plotly" in sys.modules: + raise ImportError( + """\ +The _plotly_future_ module must be imported before the plotly module""" + ) warnings.filterwarnings( - 'default', - '.*?is deprecated, please use chart_studio*', - DeprecationWarning + "default", ".*?is deprecated, please use chart_studio*", DeprecationWarning ) def _chart_studio_warning(submodule): warnings.warn( - 'The plotly.{submodule} module is deprecated, ' - 'please use chart_studio.{submodule} instead' - .format(submodule=submodule), + "The plotly.{submodule} module is deprecated, " + "please use chart_studio.{submodule} instead".format(submodule=submodule), DeprecationWarning, - stacklevel=2) + stacklevel=2, + ) def _chart_studio_error(submodule): - raise ImportError(""" + raise ImportError( + """ The plotly.{submodule} module is deprecated, please install the chart-studio package and use the chart_studio.{submodule} module instead. -""".format(submodule=submodule)) +""".format( + submodule=submodule + ) + ) def _chart_studio_deprecation(fn): fn_name = fn.__name__ fn_module = fn.__module__ - plotly_name = '.'.join( - ['plotly'] + fn_module.split('.')[1:] + [fn_name]) - chart_studio_name = '.'.join( - ['chart_studio'] + fn_module.split('.')[1:] + [fn_name]) + plotly_name = ".".join(["plotly"] + fn_module.split(".")[1:] + [fn_name]) + chart_studio_name = ".".join( + ["chart_studio"] + fn_module.split(".")[1:] + [fn_name] + ) msg = """\ {plotly_name} is deprecated, please use {chart_studio_name}\ -""".format(plotly_name=plotly_name, chart_studio_name=chart_studio_name) +""".format( + plotly_name=plotly_name, chart_studio_name=chart_studio_name + ) @functools.wraps(fn) def wrapper(*args, **kwargs): - warnings.warn( - msg, - DeprecationWarning, - stacklevel=2) + warnings.warn(msg, DeprecationWarning, stacklevel=2) return fn(*args, **kwargs) return wrapper -__all__ = ['_future_flags', '_chart_studio_error'] +__all__ = ["_future_flags", "_chart_studio_error"] diff --git a/packages/python/plotly/_plotly_utils/basevalidators.py b/packages/python/plotly/_plotly_utils/basevalidators.py index 7e4bdc7bed0..993ba92e57c 100644 --- a/packages/python/plotly/_plotly_utils/basevalidators.py +++ b/packages/python/plotly/_plotly_utils/basevalidators.py @@ -18,7 +18,7 @@ # back-port of fullmatch from Py3.4+ def fullmatch(regex, string, flags=0): """Emulate python-3.4 re.fullmatch().""" - if 'pattern' in dir(regex): + if "pattern" in dir(regex): regex_string = regex.pattern else: regex_string = regex @@ -35,9 +35,9 @@ def to_scalar_or_list(v): # Python native scalar type ('float' in the example above). # We explicitly check if is has the 'item' method, which conventionally # converts these types to native scalars. - np = get_module('numpy') - pd = get_module('pandas') - if np and np.isscalar(v) and hasattr(v, 'item'): + np = get_module("numpy") + pd = get_module("pandas") + if np and np.isscalar(v) and hasattr(v, "item"): return v.item() if isinstance(v, (list, tuple)): return [to_scalar_or_list(e) for e in v] @@ -73,8 +73,8 @@ def copy_to_readonly_numpy_array(v, kind=None, force_numeric=False): np.ndarray Numpy array with the 'WRITEABLE' flag set to False """ - np = get_module('numpy') - pd = get_module('pandas') + np = get_module("numpy") + pd = get_module("pandas") assert np is not None # ### Process kind ### @@ -86,16 +86,15 @@ def copy_to_readonly_numpy_array(v, kind=None, force_numeric=False): first_kind = kind[0] if kind else None # u: unsigned int, i: signed int, f: float - numeric_kinds = {'u', 'i', 'f'} - kind_default_dtypes = { - 'u': 'uint32', 'i': 'int32', 'f': 'float64', 'O': 'object'} + numeric_kinds = {"u", "i", "f"} + kind_default_dtypes = {"u": "uint32", "i": "int32", "f": "float64", "O": "object"} # Handle pandas Series and Index objects if pd and isinstance(v, (pd.Series, pd.Index)): if v.dtype.kind in numeric_kinds: # Get the numeric numpy array so we use fast path below v = v.values - elif v.dtype.kind == 'M': + elif v.dtype.kind == "M": # Convert datetime Series/Index to numpy array of datetimes if isinstance(v, pd.Series): v = v.dt.to_pydatetime() @@ -105,7 +104,9 @@ def copy_to_readonly_numpy_array(v, kind=None, force_numeric=False): if not isinstance(v, np.ndarray): # v has its own logic on how to convert itself into a numpy array if is_numpy_convertable(v): - return copy_to_readonly_numpy_array(np.array(v), kind=kind, force_numeric=force_numeric) + return copy_to_readonly_numpy_array( + np.array(v), kind=kind, force_numeric=force_numeric + ) else: # v is not homogenous array v_list = [to_scalar_or_list(e) for e in v] @@ -114,7 +115,7 @@ def copy_to_readonly_numpy_array(v, kind=None, force_numeric=False): dtype = kind_default_dtypes.get(first_kind, None) # construct new array from list - new_v = np.array(v_list, order='C', dtype=dtype) + new_v = np.array(v_list, order="C", dtype=dtype) elif v.dtype.kind in numeric_kinds: # v is a homogenous numeric array if kind and v.dtype.kind not in kind: @@ -132,22 +133,23 @@ def copy_to_readonly_numpy_array(v, kind=None, force_numeric=False): # Handle force numeric param # -------------------------- if force_numeric and new_v.dtype.kind not in numeric_kinds: - raise ValueError('Input value is not numeric and' - 'force_numeric parameter set to True') + raise ValueError( + "Input value is not numeric and" "force_numeric parameter set to True" + ) - if 'U' not in kind: + if "U" not in kind: # Force non-numeric arrays to have object type # -------------------------------------------- # Here we make sure that non-numeric arrays have the object # datatype. This works around cases like np.array([1, 2, '3']) where # numpy converts the integers to strings and returns array of dtype # ' 0: invalid_els = [ - e for e in v - if (not is_array(e) or - len(e) != 2 or - not isinstance(e[0], numbers.Number) or - not (0 <= e[0] <= 1) or - not isinstance(e[1], string_types) or - ColorValidator.perform_validate_coerce(e[1]) is None)] + e + for e in v + if ( + not is_array(e) + or len(e) != 2 + or not isinstance(e[0], numbers.Number) + or not (0 <= e[0] <= 1) + or not isinstance(e[1], string_types) + or ColorValidator.perform_validate_coerce(e[1]) is None + ) + ] if len(invalid_els) == 0: v_valid = True # Convert to list of lists - v = [[e[0], - ColorValidator.perform_validate_coerce(e[1])] - for e in v] + v = [[e[0], ColorValidator.perform_validate_coerce(e[1])] for e in v] if not v_valid: self.raise_invalid_val(v) @@ -1397,7 +1612,8 @@ class AngleValidator(BaseValidator): def __init__(self, plotly_name, parent_name, **kwargs): super(AngleValidator, self).__init__( - plotly_name=plotly_name, parent_name=parent_name, **kwargs) + plotly_name=plotly_name, parent_name=parent_name, **kwargs + ) def description(self): desc = """\ @@ -1405,7 +1621,9 @@ def description(self): specified as a number between -180 and 180. Numeric values outside this range are converted to the equivalent value (e.g. 270 is converted to -90). - """.format(plotly_name=self.plotly_name) + """.format( + plotly_name=self.plotly_name + ) return desc @@ -1438,25 +1656,20 @@ class SubplotidValidator(BaseValidator): } """ - def __init__(self, plotly_name, - parent_name, - dflt=None, - regex=None, - **kwargs): + def __init__(self, plotly_name, parent_name, dflt=None, regex=None, **kwargs): if dflt is None and regex is None: - raise ValueError( - 'One or both of regex and deflt must be specified' - ) + raise ValueError("One or both of regex and deflt must be specified") super(SubplotidValidator, self).__init__( - plotly_name=plotly_name, parent_name=parent_name, **kwargs) + plotly_name=plotly_name, parent_name=parent_name, **kwargs + ) if dflt is not None: self.base = dflt else: # e.g. regex == '/^y([2-9]|[1-9][0-9]+)?$/' - self.base = re.match(r'/\^(\w+)', regex).group(1) + self.base = re.match(r"/\^(\w+)", regex).group(1) self.regex = self.base + r"(\d*)" @@ -1468,7 +1681,8 @@ def description(self): optionally followed by an integer >= 1 (e.g. '{base}', '{base}1', '{base}2', '{base}3', etc.) """.format( - plotly_name=self.plotly_name, base=self.base) + plotly_name=self.plotly_name, base=self.base + ) return desc def validate_coerce(self, v): @@ -1516,15 +1730,12 @@ class FlaglistValidator(BaseValidator): }, """ - def __init__(self, - plotly_name, - parent_name, - flags, - extras=None, - array_ok=False, - **kwargs): + def __init__( + self, plotly_name, parent_name, flags, extras=None, array_ok=False, **kwargs + ): super(FlaglistValidator, self).__init__( - plotly_name=plotly_name, parent_name=parent_name, **kwargs) + plotly_name=plotly_name, parent_name=parent_name, **kwargs + ) self.flags = flags self.extras = extras if extras is not None else [] self.array_ok = array_ok @@ -1533,25 +1744,38 @@ def __init__(self, def description(self): - desc = ("""\ + desc = ( + """\ The '{plotly_name}' property is a flaglist and may be specified - as a string containing:""").format(plotly_name=self.plotly_name) + as a string containing:""" + ).format(plotly_name=self.plotly_name) # Flags - desc = desc + (""" + desc = ( + desc + + ( + """ - Any combination of {flags} joined with '+' characters - (e.g. '{eg_flag}')""").format( - flags=self.flags, eg_flag='+'.join(self.flags[:2])) + (e.g. '{eg_flag}')""" + ).format(flags=self.flags, eg_flag="+".join(self.flags[:2])) + ) # Extras if self.extras: - desc = desc + (""" - OR exactly one of {extras} (e.g. '{eg_extra}')""").format( - extras=self.extras, eg_extra=self.extras[-1]) + desc = ( + desc + + ( + """ + OR exactly one of {extras} (e.g. '{eg_extra}')""" + ).format(extras=self.extras, eg_extra=self.extras[-1]) + ) if self.array_ok: - desc = desc + """ + desc = ( + desc + + """ - A list or array of the above""" + ) return desc @@ -1561,7 +1785,7 @@ def vc_scalar(self, v): # To be generous we accept flags separated on plus ('+'), # or comma (',') - split_vals = [e.strip() for e in re.split('[,+]', v)] + split_vals = [e.strip() for e in re.split("[,+]", v)] # Are all flags valid names? all_flags_valid = all([f in self.all_flags for f in split_vals]) @@ -1572,10 +1796,9 @@ def vc_scalar(self, v): # For flaglist to be valid all flags must be valid, and if we have # any extras present, there must be only one flag (the single extras # flag) - is_valid = (all_flags_valid and - (not has_extras or len(split_vals) == 1)) + is_valid = all_flags_valid and (not has_extras or len(split_vals) == 1) if is_valid: - return '+'.join(split_vals) + return "+".join(split_vals) else: return None @@ -1589,14 +1812,13 @@ def validate_coerce(self, v): validated_v = [self.vc_scalar(e) for e in v] invalid_els = [ - el for el, validated_el in zip(v, validated_v) - if validated_el is None + el for el, validated_el in zip(v, validated_v) if validated_el is None ] if invalid_els: self.raise_invalid_elements(invalid_els) if is_homogeneous_array(v): - v = copy_to_readonly_numpy_array(validated_v, kind='U') + v = copy_to_readonly_numpy_array(validated_v, kind="U") else: v = to_scalar_or_list(v) else: @@ -1623,14 +1845,10 @@ class AnyValidator(BaseValidator): }, """ - def __init__(self, - plotly_name, - parent_name, - values=None, - array_ok=False, - **kwargs): + def __init__(self, plotly_name, parent_name, values=None, array_ok=False, **kwargs): super(AnyValidator, self).__init__( - plotly_name=plotly_name, parent_name=parent_name, **kwargs) + plotly_name=plotly_name, parent_name=parent_name, **kwargs + ) self.values = values self.array_ok = array_ok @@ -1638,7 +1856,9 @@ def description(self): desc = """\ The '{plotly_name}' property accepts values of any type - """.format(plotly_name=self.plotly_name) + """.format( + plotly_name=self.plotly_name + ) return desc def validate_coerce(self, v): @@ -1646,7 +1866,7 @@ def validate_coerce(self, v): # Pass None through pass elif self.array_ok and is_homogeneous_array(v): - v = copy_to_readonly_numpy_array(v, kind='O') + v = copy_to_readonly_numpy_array(v, kind="O") elif self.array_ok and is_simple_array(v): v = to_scalar_or_list(v) return v @@ -1667,15 +1887,18 @@ class InfoArrayValidator(BaseValidator): } """ - def __init__(self, - plotly_name, - parent_name, - items, - free_length=None, - dimensions=None, - **kwargs): + def __init__( + self, + plotly_name, + parent_name, + items, + free_length=None, + dimensions=None, + **kwargs + ): super(InfoArrayValidator, self).__init__( - plotly_name=plotly_name, parent_name=parent_name, **kwargs) + plotly_name=plotly_name, parent_name=parent_name, **kwargs + ) self.items = items self.dimensions = dimensions if dimensions else 1 @@ -1683,13 +1906,13 @@ def __init__(self, # Instantiate validators for each info array element self.item_validators = [] - info_array_items = (self.items - if isinstance(self.items, list) else [self.items]) + info_array_items = self.items if isinstance(self.items, list) else [self.items] for i, item in enumerate(info_array_items): - element_name = '{name}[{i}]'.format(name=plotly_name, i=i) + element_name = "{name}[{i}]".format(name=plotly_name, i=i) item_validator = InfoArrayValidator.build_validator( - item, element_name, parent_name) + item, element_name, parent_name + ) self.item_validators.append(item_validator) def description(self): @@ -1708,27 +1931,33 @@ def description(self): # desc = """\ The '{plotly_name}' property is an info array that may be specified as:\ -""".format(plotly_name=self.plotly_name) +""".format( + plotly_name=self.plotly_name + ) if isinstance(self.items, list): # ### Case 1 ### - if self.dimensions in (1, '1-2'): - upto = (' up to' - if self.free_length and self.dimensions == 1 - else '') + if self.dimensions in (1, "1-2"): + upto = " up to" if self.free_length and self.dimensions == 1 else "" desc += """ * a list or tuple of{upto} {N} elements where:\ -""".format(upto=upto, - N=len(self.item_validators)) +""".format( + upto=upto, N=len(self.item_validators) + ) for i, item_validator in enumerate(self.item_validators): el_desc = item_validator.description().strip() - desc = desc + """ -({i}) {el_desc}""".format(i=i, el_desc=el_desc) + desc = ( + desc + + """ +({i}) {el_desc}""".format( + i=i, el_desc=el_desc + ) + ) # ### Case 2 ### - if self.dimensions in ('1-2', 2): + if self.dimensions in ("1-2", 2): assert self.free_length desc += """ @@ -1738,11 +1967,17 @@ def description(self): # Update name for 2d orig_name = item_validator.plotly_name item_validator.plotly_name = "{name}[i][{i}]".format( - name=self.plotly_name, i=i) + name=self.plotly_name, i=i + ) el_desc = item_validator.description().strip() - desc = desc + """ -({i}) {el_desc}""".format(i=i, el_desc=el_desc) + desc = ( + desc + + """ +({i}) {el_desc}""".format( + i=i, el_desc=el_desc + ) + ) item_validator.plotly_name = orig_name else: # ### Case 3 ### @@ -1750,26 +1985,30 @@ def description(self): item_validator = self.item_validators[0] orig_name = item_validator.plotly_name - if self.dimensions in (1, '1-2'): - item_validator.plotly_name = "{name}[i]".format( - name=self.plotly_name) + if self.dimensions in (1, "1-2"): + item_validator.plotly_name = "{name}[i]".format(name=self.plotly_name) el_desc = item_validator.description().strip() desc += """ * a list of elements where: {el_desc} -""".format(el_desc=el_desc) +""".format( + el_desc=el_desc + ) - if self.dimensions in ('1-2', 2): + if self.dimensions in ("1-2", 2): item_validator.plotly_name = "{name}[i][j]".format( - name=self.plotly_name) + name=self.plotly_name + ) el_desc = item_validator.description().strip() desc += """ * a 2D list where: {el_desc} -""".format(el_desc=el_desc) +""".format( + el_desc=el_desc + ) item_validator.plotly_name = orig_name @@ -1777,18 +2016,19 @@ def description(self): @staticmethod def build_validator(validator_info, plotly_name, parent_name): - datatype = validator_info['valType'] # type: str - validator_classname = datatype.title().replace('_', '') + 'Validator' + datatype = validator_info["valType"] # type: str + validator_classname = datatype.title().replace("_", "") + "Validator" validator_class = eval(validator_classname) kwargs = { k: validator_info[k] for k in validator_info - if k not in ['valType', 'description', 'role'] + if k not in ["valType", "description", "role"] } return validator_class( - plotly_name=plotly_name, parent_name=parent_name, **kwargs) + plotly_name=plotly_name, parent_name=parent_name, **kwargs + ) def validate_element_with_indexed_name(self, val, validator, inds): """ @@ -1821,7 +2061,7 @@ def validate_element_with_indexed_name(self, val, validator, inds): orig_name = validator.plotly_name new_name = self.plotly_name for i in inds: - new_name += '[' + str(i) + ']' + new_name += "[" + str(i) + "]" validator.plotly_name = new_name try: val = validator.validate_coerce(val) @@ -1846,7 +2086,7 @@ def validate_coerce(self, v): is_v_2d = v and is_array(v[0]) - if is_v_2d and self.dimensions in ('1-2', 2): + if is_v_2d and self.dimensions in ("1-2", 2): if is_array(self.items): # e.g. 2D list as parcoords.dimensions.constraintrange # check that all items are there for each nested element @@ -1857,7 +2097,8 @@ def validate_coerce(self, v): for j, validator in enumerate(self.item_validators): row[j] = self.validate_element_with_indexed_name( - v[i][j], validator, [i, j]) + v[i][j], validator, [i, j] + ) else: # e.g. 2D list as layout.grid.subplots # check that all elements match individual validator @@ -1868,7 +2109,8 @@ def validate_coerce(self, v): for j, el in enumerate(row): row[j] = self.validate_element_with_indexed_name( - el, validator, [i, j]) + el, validator, [i, j] + ) elif v and self.dimensions == 2: # e.g. 1D list passed as layout.grid.subplots self.raise_invalid_val(orig_v[0], [0]) @@ -1876,8 +2118,7 @@ def validate_coerce(self, v): # e.g. 1D list passed as layout.grid.xaxes validator = self.item_validators[0] for i, el in enumerate(v): - v[i] = self.validate_element_with_indexed_name( - el, validator, [i]) + v[i] = self.validate_element_with_indexed_name(el, validator, [i]) elif not self.free_length and len(v) != len(self.item_validators): # e.g. 3 element list as layout.xaxis.range @@ -1897,14 +2138,17 @@ def present(self, v): if v is None: return None else: - if (self.dimensions == 2 or - self.dimensions == '1-2' and v and is_array(v[0])): + if ( + self.dimensions == 2 + or self.dimensions == "1-2" + and v + and is_array(v[0]) + ): # 2D case v = copy.deepcopy(v) for row in v: - for i, (el, validator) in enumerate( - zip(row, self.item_validators)): + for i, (el, validator) in enumerate(zip(row, self.item_validators)): row[i] = validator.present(el) return tuple(tuple(row) for row in v) @@ -1912,8 +2156,7 @@ def present(self, v): # 1D case v = copy.copy(v) # Call present on each of the item validators - for i, (el, validator) in enumerate( - zip(v, self.item_validators)): + for i, (el, validator) in enumerate(zip(v, self.item_validators)): # Validate coerce elements v[i] = validator.present(el) @@ -1925,19 +2168,21 @@ class LiteralValidator(BaseValidator): """ Validator for readonly literal values """ + def __init__(self, plotly_name, parent_name, val, **kwargs): super(LiteralValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - **kwargs) + plotly_name=plotly_name, parent_name=parent_name, **kwargs + ) self.val = val def validate_coerce(self, v): if v != self.val: - raise ValueError("""\ + raise ValueError( + """\ The '{plotly_name}' property of {parent_name} is read-only""".format( - plotly_name=self.plotly_name, parent_name=self.parent_name - )) + plotly_name=self.plotly_name, parent_name=self.parent_name + ) + ) else: return v @@ -1966,69 +2211,76 @@ class DashValidator(EnumeratedValidator): *longdashdot*) or a dash length list in px (eg *5px,10px,2px,2px*)." }, """ - def __init__(self, - plotly_name, - parent_name, - values, - **kwargs): + + def __init__(self, plotly_name, parent_name, values, **kwargs): # Add regex to handle dash length lists - dash_list_regex = \ - r"/^\d+(\.\d+)?(px|%)?((,|\s)\s*\d+(\.\d+)?(px|%)?)*$/" + dash_list_regex = r"/^\d+(\.\d+)?(px|%)?((,|\s)\s*\d+(\.\d+)?(px|%)?)*$/" values = values + [dash_list_regex] # Call EnumeratedValidator superclass super(DashValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - values=values, **kwargs) + plotly_name=plotly_name, parent_name=parent_name, values=values, **kwargs + ) def description(self): - # Separate regular values from regular expressions - enum_vals = [] - enum_regexs = [] - for v, regex in zip(self.values, self.val_regexs): - if regex is not None: - enum_regexs.append(regex.pattern) - else: - enum_vals.append(v) - desc = ("""\ - The '{name}' property is an enumeration that may be specified as:""" - .format(name=self.plotly_name)) - - if enum_vals: - enum_vals_str = '\n'.join( - textwrap.wrap( - repr(enum_vals), - initial_indent=' ' * 12, - subsequent_indent=' ' * 12, - break_on_hyphens=False, - width=80)) - - desc = desc + """ + # Separate regular values from regular expressions + enum_vals = [] + enum_regexs = [] + for v, regex in zip(self.values, self.val_regexs): + if regex is not None: + enum_regexs.append(regex.pattern) + else: + enum_vals.append(v) + desc = """\ + The '{name}' property is an enumeration that may be specified as:""".format( + name=self.plotly_name + ) + + if enum_vals: + enum_vals_str = "\n".join( + textwrap.wrap( + repr(enum_vals), + initial_indent=" " * 12, + subsequent_indent=" " * 12, + break_on_hyphens=False, + width=80, + ) + ) + + desc = ( + desc + + """ - One of the following dash styles: -{enum_vals_str}""".format(enum_vals_str=enum_vals_str) +{enum_vals_str}""".format( + enum_vals_str=enum_vals_str + ) + ) - desc = desc + """ + desc = ( + desc + + """ - A string containing a dash length list in pixels or percentages (e.g. '5px 10px 2px 2px', '5, 10, 2, 2', '10% 20% 40%', etc.) """ - return desc + ) + return desc class ImageUriValidator(BaseValidator): _PIL = None try: - _PIL = import_module('PIL') + _PIL = import_module("PIL") except ImportError: pass def __init__(self, plotly_name, parent_name, **kwargs): super(ImageUriValidator, self).__init__( - plotly_name=plotly_name, parent_name=parent_name, **kwargs) + plotly_name=plotly_name, parent_name=parent_name, **kwargs + ) def description(self): @@ -2041,7 +2293,9 @@ def description(self): - A PIL.Image.Image object which will be immediately converted to a data URI image string See http://pillow.readthedocs.io/en/latest/reference/Image.html - """.format(plotly_name=self.plotly_name) + """.format( + plotly_name=self.plotly_name + ) return desc def validate_coerce(self, v): @@ -2059,10 +2313,10 @@ def validate_coerce(self, v): in_mem_file.seek(0) img_bytes = in_mem_file.read() base64_encoded_result_bytes = base64.b64encode(img_bytes) - base64_encoded_result_str = ( - base64_encoded_result_bytes.decode('ascii')) - v = 'data:image/png;base64,{base64_encoded_result_str}'.format( - base64_encoded_result_str=base64_encoded_result_str) + base64_encoded_result_str = base64_encoded_result_bytes.decode("ascii") + v = "data:image/png;base64,{base64_encoded_result_str}".format( + base64_encoded_result_str=base64_encoded_result_str + ) else: self.raise_invalid_val(v) @@ -2070,32 +2324,32 @@ def validate_coerce(self, v): class CompoundValidator(BaseValidator): - - def __init__(self, plotly_name, parent_name, data_class_str, data_docs, - **kwargs): + def __init__(self, plotly_name, parent_name, data_class_str, data_docs, **kwargs): super(CompoundValidator, self).__init__( - plotly_name=plotly_name, parent_name=parent_name, **kwargs) + plotly_name=plotly_name, parent_name=parent_name, **kwargs + ) # Save element class string self.data_class_str = data_class_str self._data_class = None self.data_docs = data_docs self.module_str = CompoundValidator.compute_graph_obj_module_str( - self.data_class_str, parent_name) + self.data_class_str, parent_name + ) @staticmethod def compute_graph_obj_module_str(data_class_str, parent_name): - if parent_name == 'frame' and data_class_str in ['Data', 'Layout']: + if parent_name == "frame" and data_class_str in ["Data", "Layout"]: # Special case. There are no graph_objs.frame.Data or # graph_objs.frame.Layout classes. These are remapped to # graph_objs.Data and graph_objs.Layout - parent_parts = parent_name.split('.') - module_str = '.'.join(['plotly.graph_objs'] + parent_parts[1:]) + parent_parts = parent_name.split(".") + module_str = ".".join(["plotly.graph_objs"] + parent_parts[1:]) elif parent_name: - module_str = 'plotly.graph_objs.' + parent_name + module_str = "plotly.graph_objs." + parent_name else: - module_str = 'plotly.graph_objs' + module_str = "plotly.graph_objs" return module_str @@ -2109,7 +2363,8 @@ def data_class(self): def description(self): - desc = ("""\ + desc = ( + """\ The '{plotly_name}' property is an instance of {class_str} that may be specified as: - An instance of {module_str}.{class_str} @@ -2117,11 +2372,13 @@ def description(self): to the {class_str} constructor Supported dict properties: - {constructor_params_str}""").format( + {constructor_params_str}""" + ).format( plotly_name=self.plotly_name, class_str=self.data_class_str, module_str=self.module_str, - constructor_params_str=self.data_docs) + constructor_params_str=self.data_docs, + ) return desc @@ -2152,22 +2409,21 @@ class TitleValidator(CompoundValidator): or numbers. These strings are mapped to the 'text' property of the compound validator. """ + def __init__(self, *args, **kwargs): super(TitleValidator, self).__init__(*args, **kwargs) def validate_coerce(self, v, skip_invalid=False): if isinstance(v, string_types + (int, float)): - v = {'text': v} - return super(TitleValidator, self).validate_coerce( - v, skip_invalid=skip_invalid) + v = {"text": v} + return super(TitleValidator, self).validate_coerce(v, skip_invalid=skip_invalid) class CompoundArrayValidator(BaseValidator): - - def __init__(self, plotly_name, parent_name, data_class_str, data_docs, - **kwargs): + def __init__(self, plotly_name, parent_name, data_class_str, data_docs, **kwargs): super(CompoundArrayValidator, self).__init__( - plotly_name=plotly_name, parent_name=parent_name, **kwargs) + plotly_name=plotly_name, parent_name=parent_name, **kwargs + ) # Save element class string self.data_class_str = data_class_str @@ -2175,11 +2431,13 @@ def __init__(self, plotly_name, parent_name, data_class_str, data_docs, self.data_docs = data_docs self.module_str = CompoundValidator.compute_graph_obj_module_str( - self.data_class_str, parent_name) + self.data_class_str, parent_name + ) def description(self): - desc = ("""\ + desc = ( + """\ The '{plotly_name}' property is a tuple of instances of {class_str} that may be specified as: - A list or tuple of instances of {module_str}.{class_str} @@ -2187,11 +2445,13 @@ def description(self): will be passed to the {class_str} constructor Supported dict properties: - {constructor_params_str}""").format( + {constructor_params_str}""" + ).format( plotly_name=self.plotly_name, class_str=self.data_class_str, module_str=self.module_str, - constructor_params_str=self.data_docs) + constructor_params_str=self.data_docs, + ) return desc @@ -2215,8 +2475,7 @@ def validate_coerce(self, v, skip_invalid=False): if isinstance(v_el, self.data_class): res.append(self.data_class(v_el)) elif isinstance(v_el, dict): - res.append(self.data_class(v_el, - skip_invalid=skip_invalid)) + res.append(self.data_class(v_el, skip_invalid=skip_invalid)) else: if skip_invalid: res.append(self.data_class()) @@ -2238,15 +2497,12 @@ def validate_coerce(self, v, skip_invalid=False): class BaseDataValidator(BaseValidator): - - def __init__(self, - class_strs_map, - plotly_name, - parent_name, - set_uid=False, - **kwargs): + def __init__( + self, class_strs_map, plotly_name, parent_name, set_uid=False, **kwargs + ): super(BaseDataValidator, self).__init__( - plotly_name=plotly_name, parent_name=parent_name, **kwargs) + plotly_name=plotly_name, parent_name=parent_name, **kwargs + ) self.class_strs_map = class_strs_map self._class_map = None @@ -2256,14 +2512,17 @@ def description(self): trace_types = str(list(self.class_strs_map.keys())) - trace_types_wrapped = '\n'.join( + trace_types_wrapped = "\n".join( textwrap.wrap( trace_types, - initial_indent=' One of: ', - subsequent_indent=' ' * 21, - width=79 - 12)) + initial_indent=" One of: ", + subsequent_indent=" " * 21, + width=79 - 12, + ) + ) - desc = ("""\ + desc = ( + """\ The '{plotly_name}' property is a tuple of trace instances that may be specified as: - A list or tuple of trace instances @@ -2277,8 +2536,8 @@ def description(self): - All remaining properties are passed to the constructor of the specified trace type - (e.g. [{{'type': 'scatter', ...}}, {{'type': 'bar, ...}}])""").format( - plotly_name=self.plotly_name, trace_types=trace_types_wrapped) + (e.g. [{{'type': 'scatter', ...}}, {{'type': 'bar, ...}}])""" + ).format(plotly_name=self.plotly_name, trace_types=trace_types_wrapped) return desc @@ -2290,7 +2549,7 @@ def class_map(self): self._class_map = {} # Import trace classes - trace_module = import_module('plotly.graph_objs') + trace_module = import_module("plotly.graph_objs") for k, class_str in self.class_strs_map.items(): self._class_map[k] = getattr(trace_module, class_str) @@ -2321,30 +2580,32 @@ def validate_coerce(self, v, skip_invalid=False): if isinstance(v_el, dict): v_copy = deepcopy(v_el) - if 'type' in v_copy: - trace_type = v_copy.pop('type') + if "type" in v_copy: + trace_type = v_copy.pop("type") elif isinstance(v_el, Histogram2dcontour): - trace_type = 'histogram2dcontour' + trace_type = "histogram2dcontour" else: - trace_type = 'scatter' + trace_type = "scatter" if trace_type not in self.class_map: if skip_invalid: # Treat as scatter trace - trace = self.class_map['scatter']( - skip_invalid=skip_invalid, **v_copy) + trace = self.class_map["scatter"]( + skip_invalid=skip_invalid, **v_copy + ) res.append(trace) else: res.append(None) invalid_els.append(v_el) else: trace = self.class_map[trace_type]( - skip_invalid=skip_invalid, **v_copy) + skip_invalid=skip_invalid, **v_copy + ) res.append(trace) else: if skip_invalid: # Add empty scatter trace - trace = self.class_map['scatter']() + trace = self.class_map["scatter"]() res.append(trace) else: res.append(None) @@ -2364,13 +2625,7 @@ def validate_coerce(self, v, skip_invalid=False): class BaseTemplateValidator(CompoundValidator): - - def __init__(self, - plotly_name, - parent_name, - data_class_str, - data_docs, - **kwargs): + def __init__(self, plotly_name, parent_name, data_class_str, data_docs, **kwargs): super(BaseTemplateValidator, self).__init__( plotly_name=plotly_name, @@ -2406,7 +2661,7 @@ def validate_coerce(self, v, skip_invalid=False): # Otherwise, if v is a string, check to see if it consists of # multiple template names joined on '+' characters elif isinstance(v, string_types): - template_names = v.split('+') + template_names = v.split("+") if all([name in pio.templates for name in template_names]): return pio.templates.merge_templates(*template_names) @@ -2415,4 +2670,5 @@ def validate_coerce(self, v, skip_invalid=False): pass return super(BaseTemplateValidator, self).validate_coerce( - v, skip_invalid=skip_invalid) + v, skip_invalid=skip_invalid + ) diff --git a/packages/python/plotly/_plotly_utils/exceptions.py b/packages/python/plotly/_plotly_utils/exceptions.py index 11a19a5c7c6..c1a2d6b368e 100644 --- a/packages/python/plotly/_plotly_utils/exceptions.py +++ b/packages/python/plotly/_plotly_utils/exceptions.py @@ -7,7 +7,7 @@ class PlotlyEmptyDataError(PlotlyError): class PlotlyGraphObjectError(PlotlyError): - def __init__(self, message='', path=(), notes=()): + def __init__(self, message="", path=(), notes=()): """ General graph object error for validation failures. @@ -25,20 +25,20 @@ def __init__(self, message='', path=(), notes=()): def __str__(self): """This is called by Python to present the error message.""" format_dict = { - 'message': self.message, - 'path': '[' + ']['.join(repr(k) for k in self.path) + ']', - 'notes': '\n'.join(self.notes) + "message": self.message, + "path": "[" + "][".join(repr(k) for k in self.path) + "]", + "notes": "\n".join(self.notes), } - return ('{message}\n\nPath To Error: {path}\n\n{notes}' - .format(**format_dict)) + return "{message}\n\nPath To Error: {path}\n\n{notes}".format(**format_dict) class PlotlyDictKeyError(PlotlyGraphObjectError): def __init__(self, obj, path, notes=()): """See PlotlyGraphObjectError.__init__ for param docs.""" - format_dict = {'attribute': path[-1], 'object_name': obj._name} - message = ("'{attribute}' is not allowed in '{object_name}'" - .format(**format_dict)) + format_dict = {"attribute": path[-1], "object_name": obj._name} + message = "'{attribute}' is not allowed in '{object_name}'".format( + **format_dict + ) notes = [obj.help(return_help=True)] + list(notes) super(PlotlyDictKeyError, self).__init__( message=message, path=path, notes=notes @@ -48,9 +48,10 @@ def __init__(self, obj, path, notes=()): class PlotlyDictValueError(PlotlyGraphObjectError): def __init__(self, obj, path, notes=()): """See PlotlyGraphObjectError.__init__ for param docs.""" - format_dict = {'attribute': path[-1], 'object_name': obj._name} - message = ("'{attribute}' has invalid value inside '{object_name}'" - .format(**format_dict)) + format_dict = {"attribute": path[-1], "object_name": obj._name} + message = "'{attribute}' has invalid value inside '{object_name}'".format( + **format_dict + ) notes = [obj.help(path[-1], return_help=True)] + list(notes) super(PlotlyDictValueError, self).__init__( message=message, notes=notes, path=path @@ -60,9 +61,10 @@ def __init__(self, obj, path, notes=()): class PlotlyListEntryError(PlotlyGraphObjectError): def __init__(self, obj, path, notes=()): """See PlotlyGraphObjectError.__init__ for param docs.""" - format_dict = {'index': path[-1], 'object_name': obj._name} - message = ("Invalid entry found in '{object_name}' at index, '{index}'" - .format(**format_dict)) + format_dict = {"index": path[-1], "object_name": obj._name} + message = "Invalid entry found in '{object_name}' at index, '{index}'".format( + **format_dict + ) notes = [obj.help(return_help=True)] + list(notes) super(PlotlyListEntryError, self).__init__( message=message, path=path, notes=notes @@ -72,11 +74,12 @@ def __init__(self, obj, path, notes=()): class PlotlyDataTypeError(PlotlyGraphObjectError): def __init__(self, obj, path, notes=()): """See PlotlyGraphObjectError.__init__ for param docs.""" - format_dict = {'index': path[-1], 'object_name': obj._name} - message = ("Invalid entry found in '{object_name}' at index, '{index}'" - .format(**format_dict)) + format_dict = {"index": path[-1], "object_name": obj._name} + message = "Invalid entry found in '{object_name}' at index, '{index}'".format( + **format_dict + ) note = "It's invalid because it doesn't contain a valid 'type' value." notes = [note] + list(notes) super(PlotlyDataTypeError, self).__init__( message=message, path=path, notes=notes - ) \ No newline at end of file + ) diff --git a/packages/python/plotly/_plotly_utils/files.py b/packages/python/plotly/_plotly_utils/files.py index f77f277adaf..68d11bd4a69 100644 --- a/packages/python/plotly/_plotly_utils/files.py +++ b/packages/python/plotly/_plotly_utils/files.py @@ -1,7 +1,8 @@ import os -PLOTLY_DIR = os.environ.get("PLOTLY_DIR", - os.path.join(os.path.expanduser("~"), ".plotly")) +PLOTLY_DIR = os.environ.get( + "PLOTLY_DIR", os.path.join(os.path.expanduser("~"), ".plotly") +) TEST_FILE = os.path.join(PLOTLY_DIR, ".permission_test") @@ -14,14 +15,14 @@ def _permissions(): # in case of race if not os.path.isdir(PLOTLY_DIR): raise - with open(TEST_FILE, 'w') as f: - f.write('testing\n') + with open(TEST_FILE, "w") as f: + f.write("testing\n") try: os.remove(TEST_FILE) except Exception: pass return True - except Exception: # Do not trap KeyboardInterrupt. + except Exception: # Do not trap KeyboardInterrupt. return False diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_angle_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_angle_validator.py index e6b42fb0400..1790e569d6a 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_angle_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_angle_validator.py @@ -1,5 +1,6 @@ import pytest -#from ..basevalidators import AngleValidator + +# from ..basevalidators import AngleValidator from _plotly_utils.basevalidators import AngleValidator import numpy as np @@ -8,34 +9,30 @@ # -------- @pytest.fixture() def validator(): - return AngleValidator('prop', 'parent') + return AngleValidator("prop", "parent") # Tests # ----- # ### Test acceptance ### -@pytest.mark.parametrize('val', [0] + list(np.linspace(-180, 179.99))) +@pytest.mark.parametrize("val", [0] + list(np.linspace(-180, 179.99))) def test_acceptance(val, validator): assert validator.validate_coerce(val) == val # ### Test coercion above 180 ### -@pytest.mark.parametrize('val,expected', [ - (180, -180), - (181, -179), - (-180.25, 179.75), - (540, -180), - (-541, 179) -]) +@pytest.mark.parametrize( + "val,expected", + [(180, -180), (181, -179), (-180.25, 179.75), (540, -180), (-541, 179)], +) def test_coercion(val, expected, validator): assert validator.validate_coerce(val) == expected # ### Test rejection ### -@pytest.mark.parametrize('val', - ['hello', (), [], [1, 2, 3], set(), '34']) +@pytest.mark.parametrize("val", ["hello", (), [], [1, 2, 3], set(), "34"]) def test_rejection(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_any_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_any_validator.py index 67a3b0b88a5..0d1083c7eea 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_any_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_any_validator.py @@ -7,40 +7,41 @@ # -------- @pytest.fixture() def validator(): - return AnyValidator('prop', 'parent') + return AnyValidator("prop", "parent") @pytest.fixture() def validator_aok(): - return AnyValidator('prop', 'parent', array_ok=True) + return AnyValidator("prop", "parent", array_ok=True) # Tests # ----- # ### Acceptance ### -@pytest.mark.parametrize('val', [ - set(), 'Hello', 123, np.inf, np.nan, {} -]) +@pytest.mark.parametrize("val", [set(), "Hello", 123, np.inf, np.nan, {}]) def test_acceptance(val, validator): assert validator.validate_coerce(val) is val # ### Acceptance of arrays ### -@pytest.mark.parametrize('val', [ - 23, - 'Hello!', - [], - (), - np.array([]), - ('Hello', 'World'), - ['Hello', 'World'], - [np.pi, np.e, {}] -]) +@pytest.mark.parametrize( + "val", + [ + 23, + "Hello!", + [], + (), + np.array([]), + ("Hello", "World"), + ["Hello", "World"], + [np.pi, np.e, {}], + ], +) def test_acceptance_array(val, validator_aok): coerce_val = validator_aok.validate_coerce(val) if isinstance(val, np.ndarray): assert isinstance(coerce_val, np.ndarray) - assert coerce_val.dtype == 'object' + assert coerce_val.dtype == "object" assert np.array_equal(coerce_val, val) elif isinstance(val, (list, tuple)): assert coerce_val == list(val) @@ -48,4 +49,3 @@ def test_acceptance_array(val, validator_aok): else: assert coerce_val == val assert validator_aok.present(coerce_val) == val - diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_basetraces_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_basetraces_validator.py index 04cef14cb6e..f8d50b28da4 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_basetraces_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_basetraces_validator.py @@ -7,27 +7,28 @@ # -------- @pytest.fixture() def validator(): - return BaseDataValidator(class_strs_map={'scatter': 'Scatter', - 'bar': 'Bar', - 'box': 'Box'}, - plotly_name='prop', - parent_name='parent', - set_uid=True) + return BaseDataValidator( + class_strs_map={"scatter": "Scatter", "bar": "Bar", "box": "Box"}, + plotly_name="prop", + parent_name="parent", + set_uid=True, + ) + @pytest.fixture() def validator_nouid(): - return BaseDataValidator(class_strs_map={'scatter': 'Scatter', - 'bar': 'Bar', - 'box': 'Box'}, - plotly_name='prop', - parent_name='parent', - set_uid=False) + return BaseDataValidator( + class_strs_map={"scatter": "Scatter", "bar": "Bar", "box": "Box"}, + plotly_name="prop", + parent_name="parent", + set_uid=False, + ) # Tests # ----- def test_acceptance(validator): - val = [Scatter(mode='lines'), Box(fillcolor='yellow')] + val = [Scatter(mode="lines"), Box(fillcolor="yellow")] res = validator.validate_coerce(val) res_present = validator.present(res) @@ -35,47 +36,46 @@ def test_acceptance(validator): assert isinstance(res_present, tuple) assert isinstance(res_present[0], Scatter) - assert res_present[0].type == 'scatter' - assert res_present[0].mode == 'lines' + assert res_present[0].type == "scatter" + assert res_present[0].mode == "lines" assert isinstance(res_present[1], Box) - assert res_present[1].type == 'box' - assert res_present[1].fillcolor == 'yellow' + assert res_present[1].type == "box" + assert res_present[1].fillcolor == "yellow" # Make sure UIDs are actually unique assert res_present[0].uid != res_present[1].uid def test_acceptance_dict(validator): - val = (dict(type='scatter', mode='lines'), - dict(type='box', fillcolor='yellow')) + val = (dict(type="scatter", mode="lines"), dict(type="box", fillcolor="yellow")) res = validator.validate_coerce(val) res_present = validator.present(res) assert isinstance(res, list) assert isinstance(res_present, tuple) assert isinstance(res_present[0], Scatter) - assert res_present[0].type == 'scatter' - assert res_present[0].mode == 'lines' + assert res_present[0].type == "scatter" + assert res_present[0].mode == "lines" assert isinstance(res_present[1], Box) - assert res_present[1].type == 'box' - assert res_present[1].fillcolor == 'yellow' + assert res_present[1].type == "box" + assert res_present[1].fillcolor == "yellow" # Make sure UIDs are actually unique assert res_present[0].uid != res_present[1].uid def test_default_is_scatter(validator): - val = [dict(mode='lines')] + val = [dict(mode="lines")] res = validator.validate_coerce(val) res_present = validator.present(res) assert isinstance(res, list) assert isinstance(res_present, tuple) assert isinstance(res_present[0], Scatter) - assert res_present[0].type == 'scatter' - assert res_present[0].mode == 'lines' + assert res_present[0].type == "scatter" + assert res_present[0].mode == "lines" def test_rejection_type(validator): @@ -97,18 +97,20 @@ def test_rejection_element_type(validator): def test_rejection_element_attr(validator): - val = [dict(type='scatter', bogus=99)] + val = [dict(type="scatter", bogus=99)] with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert ("Invalid property specified for object of type " + - "plotly.graph_objs.Scatter: 'bogus'" in - str(validation_failure.value)) + assert ( + "Invalid property specified for object of type " + + "plotly.graph_objs.Scatter: 'bogus'" + in str(validation_failure.value) + ) def test_rejection_element_tracetype(validator): - val = [dict(type='bogus', a=4)] + val = [dict(type="bogus", a=4)] with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) @@ -117,26 +119,22 @@ def test_rejection_element_tracetype(validator): def test_skip_invalid(validator_nouid): - val = (dict(type='scatter', - mode='lines', - marker={'color': 'green', - 'bogus': 23}, - line='bad_value'), - dict(type='box', - fillcolor='yellow', - bogus=111), - dict(type='bogus', - mode='lines+markers', - x=[2, 1, 3])) - - expected = [dict(type='scatter', - mode='lines', - marker={'color': 'green'}), - dict(type='box', - fillcolor='yellow'), - dict(type='scatter', - mode='lines+markers', - x=[2, 1, 3])] + val = ( + dict( + type="scatter", + mode="lines", + marker={"color": "green", "bogus": 23}, + line="bad_value", + ), + dict(type="box", fillcolor="yellow", bogus=111), + dict(type="bogus", mode="lines+markers", x=[2, 1, 3]), + ) + + expected = [ + dict(type="scatter", mode="lines", marker={"color": "green"}), + dict(type="box", fillcolor="yellow"), + dict(type="scatter", mode="lines+markers", x=[2, 1, 3]), + ] res = validator_nouid.validate_coerce(val, skip_invalid=True) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_boolean_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_boolean_validator.py index 12ebe089202..ec4b7c3197a 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_boolean_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_boolean_validator.py @@ -8,20 +8,19 @@ # ### Fixtures ### @pytest.fixture(params=[True, False]) def validator(request): - return BooleanValidator('prop', 'parent', dflt=request.param) + return BooleanValidator("prop", "parent", dflt=request.param) # ### Acceptance ### -@pytest.mark.parametrize('val', [True, False]) +@pytest.mark.parametrize("val", [True, False]) def test_acceptance(val, validator): assert val == validator.validate_coerce(val) # ### Rejection ### -@pytest.mark.parametrize('val', - [1.0, 0.0, 'True', 'False', [], 0, np.nan]) +@pytest.mark.parametrize("val", [1.0, 0.0, "True", "False", [], 0, np.nan]) def test_rejection(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_color_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_color_validator.py index 480bd0ef625..28b2076a971 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_color_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_color_validator.py @@ -7,93 +7,119 @@ # -------- @pytest.fixture() def validator(): - return ColorValidator('prop', 'parent') + return ColorValidator("prop", "parent") @pytest.fixture() def validator_colorscale(): - return ColorValidator('prop', 'parent', colorscale_path='parent.colorscale') + return ColorValidator("prop", "parent", colorscale_path="parent.colorscale") @pytest.fixture() def validator_aok(): - return ColorValidator('prop', 'parent', array_ok=True) + return ColorValidator("prop", "parent", array_ok=True) @pytest.fixture() def validator_aok_colorscale(): - return ColorValidator('prop', 'parent', array_ok=True, colorscale_path='parent.colorscale') + return ColorValidator( + "prop", "parent", array_ok=True, colorscale_path="parent.colorscale" + ) # Array not ok, numbers not ok # ---------------------------- -@pytest.mark.parametrize('val', - ['red', 'BLUE', 'rgb(255, 0, 0)', 'var(--accent)', 'hsl(0, 100%, 50%)', 'hsla(0, 100%, 50%, 100%)', - 'hsv(0, 100%, 100%)', 'hsva(0, 100%, 100%, 50%)']) +@pytest.mark.parametrize( + "val", + [ + "red", + "BLUE", + "rgb(255, 0, 0)", + "var(--accent)", + "hsl(0, 100%, 50%)", + "hsla(0, 100%, 50%, 100%)", + "hsv(0, 100%, 100%)", + "hsva(0, 100%, 100%, 50%)", + ], +) def test_acceptance(val, validator): assert validator.validate_coerce(val) == val # ### Rejection by type ### -@pytest.mark.parametrize('val', - [set(), 23, 0.5, {}, ['red'], [12]]) +@pytest.mark.parametrize("val", [set(), 23, 0.5, {}, ["red"], [12]]) def test_rejection(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### Rejection by value ### -@pytest.mark.parametrize('val', - ['redd', 'rgbbb(255, 0, 0)', 'hsl(0, 1%0000%, 50%)']) +@pytest.mark.parametrize("val", ["redd", "rgbbb(255, 0, 0)", "hsl(0, 1%0000%, 50%)"]) def test_rejection(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # Array not ok, numbers ok # ------------------------ # ### Acceptance ### -@pytest.mark.parametrize('val', - ['red', 'BLUE', 23, 15, 'rgb(255, 0, 0)', 'var(--accent)', 'hsl(0, 100%, 50%)', 'hsla(0, 100%, 50%, 100%)', - 'hsv(0, 100%, 100%)', 'hsva(0, 100%, 100%, 50%)']) +@pytest.mark.parametrize( + "val", + [ + "red", + "BLUE", + 23, + 15, + "rgb(255, 0, 0)", + "var(--accent)", + "hsl(0, 100%, 50%)", + "hsla(0, 100%, 50%, 100%)", + "hsv(0, 100%, 100%)", + "hsva(0, 100%, 100%, 50%)", + ], +) def test_acceptance_colorscale(val, validator_colorscale): assert validator_colorscale.validate_coerce(val) == val # ### Rejection by type ### -@pytest.mark.parametrize('val', - [set(), {}, ['red'], [12]]) +@pytest.mark.parametrize("val", [set(), {}, ["red"], [12]]) def test_rejection_colorscale(val, validator_colorscale): with pytest.raises(ValueError) as validation_failure: validator_colorscale.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### Rejection by value ### -@pytest.mark.parametrize('val', - ['redd', 'rgbbb(255, 0, 0)', 'hsl(0, 1%0000%, 50%)']) +@pytest.mark.parametrize("val", ["redd", "rgbbb(255, 0, 0)", "hsl(0, 1%0000%, 50%)"]) def test_rejection_colorscale(val, validator_colorscale): with pytest.raises(ValueError) as validation_failure: validator_colorscale.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # Array ok, numbers not ok # ------------------------ # ### Acceptance ### -@pytest.mark.parametrize('val', - ['blue', - ['red', 'rgb(255, 0, 0)'], - np.array(['red', 'rgb(255, 0, 0)']), - ['hsl(0, 100%, 50%)', 'hsla(0, 100%, 50%, 100%)', 'hsv(0, 100%, 100%)'], - np.array(['hsl(0, 100%, 50%)', 'hsla(0, 100%, 50%, 100%)', 'hsv(0, 100%, 100%)']), - ['hsva(0, 100%, 100%, 50%)']]) +@pytest.mark.parametrize( + "val", + [ + "blue", + ["red", "rgb(255, 0, 0)"], + np.array(["red", "rgb(255, 0, 0)"]), + ["hsl(0, 100%, 50%)", "hsla(0, 100%, 50%, 100%)", "hsv(0, 100%, 100%)"], + np.array( + ["hsl(0, 100%, 50%)", "hsla(0, 100%, 50%, 100%)", "hsv(0, 100%, 100%)"] + ), + ["hsva(0, 100%, 100%, 50%)"], + ], +) def test_acceptance_aok(val, validator_aok): coerce_val = validator_aok.validate_coerce(val) @@ -105,12 +131,20 @@ def test_acceptance_aok(val, validator_aok): assert coerce_val == val -@pytest.mark.parametrize('val', [ - 'green', - [['blue']], - [['red', 'rgb(255, 0, 0)'], ['hsl(0, 100%, 50%)', 'hsla(0, 100%, 50%, 100%)']], - np.array([['red', 'rgb(255, 0, 0)'], ['hsl(0, 100%, 50%)', 'hsla(0, 100%, 50%, 100%)']]) -]) +@pytest.mark.parametrize( + "val", + [ + "green", + [["blue"]], + [["red", "rgb(255, 0, 0)"], ["hsl(0, 100%, 50%)", "hsla(0, 100%, 50%, 100%)"]], + np.array( + [ + ["red", "rgb(255, 0, 0)"], + ["hsl(0, 100%, 50%)", "hsla(0, 100%, 50%, 100%)"], + ] + ), + ], +) def test_acceptance_aok_2D(val, validator_aok): coerce_val = validator_aok.validate_coerce(val) @@ -123,40 +157,59 @@ def test_acceptance_aok_2D(val, validator_aok): # ### Rejection ### -@pytest.mark.parametrize('val', - [[23], [0, 1, 2], - ['redd', 'rgb(255, 0, 0)'], - ['hsl(0, 100%, 50_00%)', 'hsla(0, 100%, 50%, 100%)', 'hsv(0, 100%, 100%)'], - ['hsva(0, 1%00%, 100%, 50%)']]) +@pytest.mark.parametrize( + "val", + [ + [23], + [0, 1, 2], + ["redd", "rgb(255, 0, 0)"], + ["hsl(0, 100%, 50_00%)", "hsla(0, 100%, 50%, 100%)", "hsv(0, 100%, 100%)"], + ["hsva(0, 1%00%, 100%, 50%)"], + ], +) def test_rejection_aok(val, validator_aok): with pytest.raises(ValueError) as validation_failure: validator_aok.validate_coerce(val) - assert 'Invalid element(s)' in str(validation_failure.value) - - -@pytest.mark.parametrize('val', - [[['redd', 'rgb(255, 0, 0)']], - [['hsl(0, 100%, 50_00%)', 'hsla(0, 100%, 50%, 100%)'], - ['hsv(0, 100%, 100%)', 'purple']], - [np.array(['hsl(0, 100%, 50_00%)', 'hsla(0, 100%, 50%, 100%)']), - np.array(['hsv(0, 100%, 100%)', 'purple'])], - [['blue'], [2]]]) + assert "Invalid element(s)" in str(validation_failure.value) + + +@pytest.mark.parametrize( + "val", + [ + [["redd", "rgb(255, 0, 0)"]], + [ + ["hsl(0, 100%, 50_00%)", "hsla(0, 100%, 50%, 100%)"], + ["hsv(0, 100%, 100%)", "purple"], + ], + [ + np.array(["hsl(0, 100%, 50_00%)", "hsla(0, 100%, 50%, 100%)"]), + np.array(["hsv(0, 100%, 100%)", "purple"]), + ], + [["blue"], [2]], + ], +) def test_rejection_aok_2D(val, validator_aok): with pytest.raises(ValueError) as validation_failure: validator_aok.validate_coerce(val) - assert 'Invalid element(s)' in str(validation_failure.value) + assert "Invalid element(s)" in str(validation_failure.value) # Array ok, numbers ok # -------------------- # ### Acceptance ### -@pytest.mark.parametrize('val', - ['blue', 23, [0, 1, 2], - ['red', 0.5, 'rgb(255, 0, 0)'], - ['hsl(0, 100%, 50%)', 'hsla(0, 100%, 50%, 100%)', 'hsv(0, 100%, 100%)'], - ['hsva(0, 100%, 100%, 50%)']]) +@pytest.mark.parametrize( + "val", + [ + "blue", + 23, + [0, 1, 2], + ["red", 0.5, "rgb(255, 0, 0)"], + ["hsl(0, 100%, 50%)", "hsla(0, 100%, 50%, 100%)", "hsv(0, 100%, 100%)"], + ["hsva(0, 100%, 100%, 50%)"], + ], +) def test_acceptance_aok_colorscale(val, validator_aok_colorscale): coerce_val = validator_aok_colorscale.validate_coerce(val) if isinstance(val, (list, np.ndarray)): @@ -166,15 +219,19 @@ def test_acceptance_aok_colorscale(val, validator_aok_colorscale): # ### Rejection ### -@pytest.mark.parametrize('val', - [['redd', 0.5, 'rgb(255, 0, 0)'], - ['hsl(0, 100%, 50_00%)', 'hsla(0, 100%, 50%, 100%)', 'hsv(0, 100%, 100%)'], - ['hsva(0, 1%00%, 100%, 50%)']]) +@pytest.mark.parametrize( + "val", + [ + ["redd", 0.5, "rgb(255, 0, 0)"], + ["hsl(0, 100%, 50_00%)", "hsla(0, 100%, 50%, 100%)", "hsv(0, 100%, 100%)"], + ["hsva(0, 1%00%, 100%, 50%)"], + ], +) def test_rejection_aok_colorscale(val, validator_aok_colorscale): with pytest.raises(ValueError) as validation_failure: validator_aok_colorscale.validate_coerce(val) - assert 'Invalid element(s)' in str(validation_failure.value) + assert "Invalid element(s)" in str(validation_failure.value) # Description @@ -182,17 +239,17 @@ def test_rejection_aok_colorscale(val, validator_aok_colorscale): # Test dynamic description logic def test_description(validator): desc = validator.description() - assert 'A number that will be interpreted as a color' not in desc - assert 'A list or array of any of the above' not in desc + assert "A number that will be interpreted as a color" not in desc + assert "A list or array of any of the above" not in desc def test_description_aok(validator_aok): desc = validator_aok.description() - assert 'A number that will be interpreted as a color' not in desc - assert 'A list or array of any of the above' in desc + assert "A number that will be interpreted as a color" not in desc + assert "A list or array of any of the above" in desc def test_description_aok_colorscale(validator_aok_colorscale): desc = validator_aok_colorscale.description() - assert 'A number that will be interpreted as a color' in desc - assert 'A list or array of any of the above' in desc + assert "A number that will be interpreted as a color" in desc + assert "A list or array of any of the above" in desc diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_colorlist_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_colorlist_validator.py index 5254f3fdfdb..b140573364a 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_colorlist_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_colorlist_validator.py @@ -8,39 +8,42 @@ # -------- @pytest.fixture() def validator(): - return ColorlistValidator('prop', 'parent') + return ColorlistValidator("prop", "parent") # Rejection # --------- -@pytest.mark.parametrize('val', - [set(), 23, 0.5, {}, 'redd']) +@pytest.mark.parametrize("val", [set(), 23, 0.5, {}, "redd"]) def test_rejection_value(validator, val): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) -@pytest.mark.parametrize('val', - [[set()], [23, 0.5], [{}, 'red'], - ['blue', 'redd']]) +@pytest.mark.parametrize("val", [[set()], [23, 0.5], [{}, "red"], ["blue", "redd"]]) def test_rejection_element(validator, val): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid element(s)' in str(validation_failure.value) + assert "Invalid element(s)" in str(validation_failure.value) # Acceptance # ---------- -@pytest.mark.parametrize('val', - [['blue'], - ['red', 'rgb(255, 0, 0)'], - np.array(['red', 'rgb(255, 0, 0)']), - ['hsl(0, 100%, 50%)', 'hsla(0, 100%, 50%, 100%)', 'hsv(0, 100%, 100%)'], - np.array(['hsl(0, 100%, 50%)', 'hsla(0, 100%, 50%, 100%)', 'hsv(0, 100%, 100%)']), - ['hsva(0, 100%, 100%, 50%)']]) +@pytest.mark.parametrize( + "val", + [ + ["blue"], + ["red", "rgb(255, 0, 0)"], + np.array(["red", "rgb(255, 0, 0)"]), + ["hsl(0, 100%, 50%)", "hsla(0, 100%, 50%, 100%)", "hsv(0, 100%, 100%)"], + np.array( + ["hsl(0, 100%, 50%)", "hsla(0, 100%, 50%, 100%)", "hsv(0, 100%, 100%)"] + ), + ["hsva(0, 100%, 100%, 50%)"], + ], +) def test_acceptance_aok(val, validator): coerce_val = validator.validate_coerce(val) assert isinstance(coerce_val, list) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_colorscale_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_colorscale_validator.py index f1b8f149a25..52116c95b5d 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_colorscale_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_colorscale_validator.py @@ -7,12 +7,31 @@ # -------- @pytest.fixture() def validator(): - return ColorscaleValidator('prop', 'parent') - - -@pytest.fixture(params=['Greys', 'YlGnBu', 'Greens', 'YlOrRd', 'Bluered', 'RdBu', 'Reds', 'Blues', - 'Picnic', 'Rainbow', 'Portland', 'Jet', 'Hot', 'Blackbody', 'Earth', 'Electric', - 'Viridis', 'Cividis']) + return ColorscaleValidator("prop", "parent") + + +@pytest.fixture( + params=[ + "Greys", + "YlGnBu", + "Greens", + "YlOrRd", + "Bluered", + "RdBu", + "Reds", + "Blues", + "Picnic", + "Rainbow", + "Portland", + "Jet", + "Hot", + "Blackbody", + "Earth", + "Electric", + "Viridis", + "Cividis", + ] +) def named_colorscale(request): return request.param @@ -25,26 +44,39 @@ def test_acceptance_named(named_colorscale, validator): assert validator.validate_coerce(named_colorscale) == named_colorscale # Uppercase - assert (validator.validate_coerce(named_colorscale.upper()) == - named_colorscale.upper()) - + assert ( + validator.validate_coerce(named_colorscale.upper()) == named_colorscale.upper() + ) + assert validator.present(named_colorscale) == named_colorscale + # ### Acceptance as array ### -@pytest.mark.parametrize('val', [ - ((0, 'red'),), - ((0.1, 'rgb(255,0,0)'), (0.3, 'green')), - ((0, 'purple'), (0.2, 'yellow'), (1.0, 'rgba(255,0,0,100)')), -]) +@pytest.mark.parametrize( + "val", + [ + ((0, "red"),), + ((0.1, "rgb(255,0,0)"), (0.3, "green")), + ((0, "purple"), (0.2, "yellow"), (1.0, "rgba(255,0,0,100)")), + ], +) def test_acceptance_array(val, validator): assert validator.validate_coerce(val) == val + # ### Coercion as array ### -@pytest.mark.parametrize('val', [ - ([0, 'red'],), - [(0.1, 'rgb(255, 0, 0)'), (0.3, 'GREEN')], - (np.array([0, 'Purple'], dtype='object'), (0.2, 'yellow'), (1.0, 'RGBA(255,0,0,100)')), -]) +@pytest.mark.parametrize( + "val", + [ + ([0, "red"],), + [(0.1, "rgb(255, 0, 0)"), (0.3, "GREEN")], + ( + np.array([0, "Purple"], dtype="object"), + (0.2, "yellow"), + (1.0, "RGBA(255,0,0,100)"), + ), + ], +) def test_acceptance_array(val, validator): # Compute expected (tuple of tuples where color is # lowercase with no spaces) @@ -57,38 +89,37 @@ def test_acceptance_array(val, validator): # ### Rejection by type ### -@pytest.mark.parametrize('val', [ - 23, set(), {}, np.pi -]) +@pytest.mark.parametrize("val", [23, set(), {}, np.pi]) def test_rejection_type(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### Rejection by string value ### -@pytest.mark.parametrize('val', [ - 'Invalid', '' -]) +@pytest.mark.parametrize("val", ["Invalid", ""]) def test_rejection_str_value(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### Rejection by array ### -@pytest.mark.parametrize('val', [ - [0, 'red'], # Elements must be tuples - [[0.1, 'rgb(255,0,0)', None], (0.3, 'green')], # length 3 element - ([1.1, 'purple'], [0.2, 'yellow']), # Number > 1 - ([0.1, 'purple'], [-0.2, 'yellow']), # Number < 0 - ([0.1, 'purple'], [0.2, 123]), # Color not a string - ([0.1, 'purple'], [0.2, 'yellowww']), # Invalid color string -]) +@pytest.mark.parametrize( + "val", + [ + [0, "red"], # Elements must be tuples + [[0.1, "rgb(255,0,0)", None], (0.3, "green")], # length 3 element + ([1.1, "purple"], [0.2, "yellow"]), # Number > 1 + ([0.1, "purple"], [-0.2, "yellow"]), # Number < 0 + ([0.1, "purple"], [0.2, 123]), # Color not a string + ([0.1, "purple"], [0.2, "yellowww"]), # Invalid color string + ], +) def test_rejection_array(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_compound_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_compound_validator.py index 8e2e0ef6f9e..dedbff83c8b 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_compound_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_compound_validator.py @@ -7,19 +7,17 @@ # -------- @pytest.fixture() def validator(): - return CompoundValidator('prop', 'scatter', - data_class_str='Marker', - data_docs='') + return CompoundValidator("prop", "scatter", data_class_str="Marker", data_docs="") # Tests # ----- def test_acceptance(validator): - val = Marker(color='green', size=10) + val = Marker(color="green", size=10) res = validator.validate_coerce(val) assert isinstance(res, Marker) - assert res.color == 'green' + assert res.color == "green" assert res.size == 10 @@ -33,11 +31,11 @@ def test_acceptance_none(validator): def test_acceptance_dict(validator): - val = dict(color='green', size=10) + val = dict(color="green", size=10) res = validator.validate_coerce(val) assert isinstance(res, Marker) - assert res.color == 'green' + assert res.color == "green" assert res.size == 10 @@ -51,31 +49,27 @@ def test_rejection_type(validator): def test_rejection_value(validator): - val = dict(color='green', size=10, bogus=99) + val = dict(color="green", size=10, bogus=99) with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert ("Invalid property specified for object of type " - "plotly.graph_objs.scatter.Marker: 'bogus'" in - str(validation_failure.value)) + assert ( + "Invalid property specified for object of type " + "plotly.graph_objs.scatter.Marker: 'bogus'" in str(validation_failure.value) + ) def test_skip_invalid(validator): val = dict( - color='green', + color="green", size=10, bogus=99, # Bad property name - colorbar={'bgcolor': 'blue', - 'bogus_inner': 23 # Bad nested property name - }, - opacity='bogus value' # Bad value for valid property + colorbar={"bgcolor": "blue", "bogus_inner": 23}, # Bad nested property name + opacity="bogus value", # Bad value for valid property ) - expected = dict( - color='green', - size=10, - colorbar={'bgcolor': 'blue'}) + expected = dict(color="green", size=10, colorbar={"bgcolor": "blue"}) res = validator.validate_coerce(val, skip_invalid=True) assert res.to_plotly_json() == expected @@ -83,19 +77,17 @@ def test_skip_invalid(validator): def test_skip_invalid_empty_object(validator): val = dict( - color='green', + color="green", size=10, - colorbar={'bgcolor': 'bad_color', # Bad value for valid property - 'bogus_inner': 23 # Bad nested property name - }, - opacity=0.5 # Bad value for valid property + colorbar={ + "bgcolor": "bad_color", # Bad value for valid property + "bogus_inner": 23, # Bad nested property name + }, + opacity=0.5, # Bad value for valid property ) # The colorbar property should be absent, not None or {} - expected = dict( - color='green', - size=10, - opacity=0.5) + expected = dict(color="green", size=10, opacity=0.5) res = validator.validate_coerce(val, skip_invalid=True) assert res.to_plotly_json() == expected diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_compoundarray_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_compoundarray_validator.py index 1dedda95146..d78084c3397 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_compoundarray_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_compoundarray_validator.py @@ -7,9 +7,9 @@ # -------- @pytest.fixture() def validator(): - return CompoundArrayValidator('prop', 'layout', - data_class_str='Image', - data_docs='') + return CompoundArrayValidator( + "prop", "layout", data_class_str="Image", data_docs="" + ) # Tests @@ -72,7 +72,7 @@ def test_rejection_type(validator): def test_rejection_element(validator): - val = ['a', 37] + val = ["a", 37] with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) @@ -86,23 +86,19 @@ def test_rejection_value(validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert ("Invalid property specified for object of type " - "plotly.graph_objs.layout.Image" in - str(validation_failure.value)) + assert ( + "Invalid property specified for object of type " + "plotly.graph_objs.layout.Image" in str(validation_failure.value) + ) def test_skip_invalid(validator): - val = [dict(opacity='bad_opacity', - x=23, - sizex=120), - dict(x=99, - bogus={'a': 23}, - sizey=300)] - - expected = [dict(x=23, - sizex=120), - dict(x=99, - sizey=300)] + val = [ + dict(opacity="bad_opacity", x=23, sizex=120), + dict(x=99, bogus={"a": 23}, sizey=300), + ] + + expected = [dict(x=23, sizex=120), dict(x=99, sizey=300)] res = validator.validate_coerce(val, skip_invalid=True) assert [el.to_plotly_json() for el in res] == expected diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_dash_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_dash_validator.py index 70ad62058e0..245fa081711 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_dash_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_dash_validator.py @@ -4,30 +4,39 @@ # Constants # --------- -dash_types = ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] +dash_types = ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] # Fixtures # -------- @pytest.fixture() def validator(): - return DashValidator('prop', 'parent', dash_types) + return DashValidator("prop", "parent", dash_types) # Acceptance # ---------- -@pytest.mark.parametrize('val', - dash_types) +@pytest.mark.parametrize("val", dash_types) def test_acceptance_dash_types(val, validator): # Values should be accepted and returned unchanged assert validator.validate_coerce(val) == val -@pytest.mark.parametrize('val', - ['2', '2.2', '2.002', '1 2 002', - '1,2,3', '1, 2, 3', - '1px 2px 3px', '1.5px, 2px, 3.9px', - '23% 18% 13px', '200% 3px']) +@pytest.mark.parametrize( + "val", + [ + "2", + "2.2", + "2.002", + "1 2 002", + "1,2,3", + "1, 2, 3", + "1px 2px 3px", + "1.5px, 2px, 3.9px", + "23% 18% 13px", + "200% 3px", + ], +) def test_acceptance_dash_lists(val, validator): # Values should be accepted and returned unchanged assert validator.validate_coerce(val) == val @@ -36,18 +45,17 @@ def test_acceptance_dash_lists(val, validator): # Rejection # --------- # ### Value Rejection ### -@pytest.mark.parametrize('val', ['bogus', 'not-a-dash']) +@pytest.mark.parametrize("val", ["bogus", "not-a-dash"]) def test_rejection_by_bad_dash_type(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) -@pytest.mark.parametrize('val', - ['', '1,,3,4', '2 3 C', '2pxx 3 4']) +@pytest.mark.parametrize("val", ["", "1,,3,4", "2 3 C", "2pxx 3 4"]) def test_rejection_by_bad_dash_list(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_dataarray_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_dataarray_validator.py index c366e229ea5..fb85863a11d 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_dataarray_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_dataarray_validator.py @@ -7,24 +7,34 @@ # -------- @pytest.fixture() def validator(): - return DataArrayValidator('prop', 'parent') + return DataArrayValidator("prop", "parent") # Tests # ----- # ### Acceptance ### -@pytest.mark.parametrize('val', [ - [], [1], [''], (), ('Hello, ', 'world!'), ['A', 1, 'B', 0, 'C'], [np.array(1), np.array(2)] -]) +@pytest.mark.parametrize( + "val", + [ + [], + [1], + [""], + (), + ("Hello, ", "world!"), + ["A", 1, "B", 0, "C"], + [np.array(1), np.array(2)], + ], +) def test_validator_acceptance_simple(val, validator): coerce_val = validator.validate_coerce(val) assert isinstance(coerce_val, list) assert validator.present(coerce_val) == tuple(val) -@pytest.mark.parametrize('val', [ - np.array([2, 3, 4]), pd.Series(['a', 'b', 'c']), np.array([[1, 2, 3], [4, 5, 6]]) -]) +@pytest.mark.parametrize( + "val", + [np.array([2, 3, 4]), pd.Series(["a", "b", "c"]), np.array([[1, 2, 3], [4, 5, 6]])], +) def test_validator_acceptance_homogeneous(val, validator): coerce_val = validator.validate_coerce(val) assert isinstance(coerce_val, np.ndarray) @@ -32,11 +42,9 @@ def test_validator_acceptance_homogeneous(val, validator): # ### Rejection ### -@pytest.mark.parametrize('val', [ - 'Hello', 23, set(), {} -]) +@pytest.mark.parametrize("val", ["Hello", 23, set(), {}]) def test_rejection(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_enumerated_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_enumerated_validator.py index 46a98941236..d4daf407018 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_enumerated_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_enumerated_validator.py @@ -8,75 +8,83 @@ # -------- @pytest.fixture() def validator(): - values = ['first', 'second', 'third', 4] - return EnumeratedValidator('prop', 'parent', values, array_ok=False) + values = ["first", "second", "third", 4] + return EnumeratedValidator("prop", "parent", values, array_ok=False) @pytest.fixture() def validator_re(): - values = ['foo', '/bar(\d)+/', 'baz'] - return EnumeratedValidator('prop', 'parent', values, array_ok=False) + values = ["foo", "/bar(\d)+/", "baz"] + return EnumeratedValidator("prop", "parent", values, array_ok=False) @pytest.fixture() def validator_aok(): - values = ['first', 'second', 'third', 4] - return EnumeratedValidator('prop', 'parent', values, array_ok=True) + values = ["first", "second", "third", 4] + return EnumeratedValidator("prop", "parent", values, array_ok=True) @pytest.fixture() def validator_aok_re(): - values = ['foo', '/bar(\d)+/', 'baz'] - return EnumeratedValidator('prop', 'parent', values, array_ok=True) + values = ["foo", "/bar(\d)+/", "baz"] + return EnumeratedValidator("prop", "parent", values, array_ok=True) # Array not ok # ------------ # ### Acceptance ### -@pytest.mark.parametrize('val', - ['first', 'second', 'third', 4]) +@pytest.mark.parametrize("val", ["first", "second", "third", 4]) def test_acceptance(val, validator): # Values should be accepted and returned unchanged assert validator.validate_coerce(val) == val # ### Value Rejection ### -@pytest.mark.parametrize('val', - [True, 0, 1, 23, np.inf, set(), - ['first', 'second'], [True], ['third', 4], [4]]) +@pytest.mark.parametrize( + "val", + [True, 0, 1, 23, np.inf, set(), ["first", "second"], [True], ["third", 4], [4]], +) def test_rejection_by_value(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # Array not ok, regular expression # -------------------------------- -@pytest.mark.parametrize('val', - ['foo', 'bar0', 'bar1', 'bar234']) +@pytest.mark.parametrize("val", ["foo", "bar0", "bar1", "bar234"]) def test_acceptance(val, validator_re): # Values should be accepted and returned unchanged assert validator_re.validate_coerce(val) == val # ### Value Rejection ### -@pytest.mark.parametrize('val', - [12, set(), 'bar', 'BAR0', 'FOO']) +@pytest.mark.parametrize("val", [12, set(), "bar", "BAR0", "FOO"]) def test_rejection_by_value(val, validator_re): with pytest.raises(ValueError) as validation_failure: validator_re.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # Array ok # -------- # ### Acceptance ### -@pytest.mark.parametrize('val', - ['first', 'second', 'third', 4, - [], ['first', 4], [4], ['third', 'first'], - ['first', 'second', 'third', 4]]) +@pytest.mark.parametrize( + "val", + [ + "first", + "second", + "third", + 4, + [], + ["first", 4], + [4], + ["third", "first"], + ["first", "second", "third", 4], + ], +) def test_acceptance_aok(val, validator_aok): # Values should be accepted and returned unchanged coerce_val = validator_aok.validate_coerce(val) @@ -87,35 +95,42 @@ def test_acceptance_aok(val, validator_aok): # ### Rejection by value ### -@pytest.mark.parametrize('val', - [True, 0, 1, 23, np.inf, set()]) +@pytest.mark.parametrize("val", [True, 0, 1, 23, np.inf, set()]) def test_rejection_by_value_aok(val, validator_aok): with pytest.raises(ValueError) as validation_failure: validator_aok.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### Reject by elements ### -@pytest.mark.parametrize('val', - [[True], [0], [1, 23], [np.inf, set()], - ['ffirstt', 'second', 'third']]) +@pytest.mark.parametrize( + "val", [[True], [0], [1, 23], [np.inf, set()], ["ffirstt", "second", "third"]] +) def test_rejection_by_element_aok(val, validator_aok): with pytest.raises(ValueError) as validation_failure: validator_aok.validate_coerce(val) - assert 'Invalid element(s)' in str(validation_failure.value) + assert "Invalid element(s)" in str(validation_failure.value) # Array ok, regular expression # ---------------------------- # ### Acceptance ### -@pytest.mark.parametrize('val', - ['foo', 'bar12', 'bar21', - [], ['bar12'], ('foo', 'bar012', 'baz'), - np.array([]), - np.array(['bar12']), - np.array(['foo', 'bar012', 'baz'])]) +@pytest.mark.parametrize( + "val", + [ + "foo", + "bar12", + "bar21", + [], + ["bar12"], + ("foo", "bar012", "baz"), + np.array([]), + np.array(["bar12"]), + np.array(["foo", "bar012", "baz"]), + ], +) def test_acceptance_aok(val, validator_aok_re): # Values should be accepted and returned unchanged coerce_val = validator_aok_re.validate_coerce(val) @@ -128,10 +143,9 @@ def test_acceptance_aok(val, validator_aok_re): # ### Reject by elements ### -@pytest.mark.parametrize('val', - [['bar', 'bar0'], ['foo', 123]]) +@pytest.mark.parametrize("val", [["bar", "bar0"], ["foo", 123]]) def test_rejection_by_element_aok(val, validator_aok_re): with pytest.raises(ValueError) as validation_failure: validator_aok_re.validate_coerce(val) - assert 'Invalid element(s)' in str(validation_failure.value) + assert "Invalid element(s)" in str(validation_failure.value) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_flaglist_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_flaglist_validator.py index ac2a1ea1068..157b98d9754 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_flaglist_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_flaglist_validator.py @@ -6,36 +6,44 @@ # Fixtures # -------- -@pytest.fixture(params=[None, ['none', 'all']]) +@pytest.fixture(params=[None, ["none", "all"]]) def validator(request): # Validator with or without extras - return FlaglistValidator('prop', 'parent', flags=['lines', 'markers', 'text'], extras=request.param) + return FlaglistValidator( + "prop", "parent", flags=["lines", "markers", "text"], extras=request.param + ) @pytest.fixture() def validator_extra(): - return FlaglistValidator('prop', 'parent', - flags=['lines', 'markers', 'text'], - extras=['none', 'all']) + return FlaglistValidator( + "prop", "parent", flags=["lines", "markers", "text"], extras=["none", "all"] + ) @pytest.fixture() def validator_extra_aok(): - return FlaglistValidator('prop', 'parent', - flags=['lines', 'markers', 'text'], - extras=['none', 'all'], - array_ok=True) - - -@pytest.fixture(params= - ["+".join(p) - for i in range(1, 4) - for p in itertools.permutations(['lines', 'markers', 'text'], i)]) + return FlaglistValidator( + "prop", + "parent", + flags=["lines", "markers", "text"], + extras=["none", "all"], + array_ok=True, + ) + + +@pytest.fixture( + params=[ + "+".join(p) + for i in range(1, 4) + for p in itertools.permutations(["lines", "markers", "text"], i) + ] +) def flaglist(request): return request.param -@pytest.fixture(params=['none', 'all']) +@pytest.fixture(params=["none", "all"]) def extra(request): return request.param @@ -48,33 +56,36 @@ def test_acceptance(flaglist, validator): # ### Coercion ### -@pytest.mark.parametrize('in_val,coerce_val', - [(' lines ', 'lines'), # Strip outer whitespace - (' lines + markers ', 'lines+markers'), # Remove inner whitespace around '+' - ('lines ,markers', 'lines+markers'), # Accept comma separated - ]) +@pytest.mark.parametrize( + "in_val,coerce_val", + [ + (" lines ", "lines"), # Strip outer whitespace + (" lines + markers ", "lines+markers"), # Remove inner whitespace around '+' + ("lines ,markers", "lines+markers"), # Accept comma separated + ], +) def test_coercion(in_val, coerce_val, validator): assert validator.validate_coerce(in_val) == coerce_val # ### Rejection by type ### -@pytest.mark.parametrize('val', - [21, (), ['lines'], set(), {}]) +@pytest.mark.parametrize("val", [21, (), ["lines"], set(), {}]) def test_rejection_type(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### Rejection by value ### -@pytest.mark.parametrize('val', - ['', 'line', 'markers+line', 'lin es', 'lin es+markers']) +@pytest.mark.parametrize( + "val", ["", "line", "markers+line", "lin es", "lin es+markers"] +) def test_rejection_val(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # Array not ok (with extras) @@ -86,26 +97,27 @@ def test_acceptance_extra(extra, validator_extra): # ### Coercion ### -@pytest.mark.parametrize('in_val,coerce_val', - [(' none ', 'none'), - ('all ', 'all'), - ]) +@pytest.mark.parametrize("in_val,coerce_val", [(" none ", "none"), ("all ", "all")]) def test_coercion(in_val, coerce_val, validator_extra): assert validator_extra.validate_coerce(in_val) == coerce_val # ### Rejection by value ### # Note: Rejection by type already handled above -@pytest.mark.parametrize('val', - ['al l', # Don't remove inner whitespace - 'lines+all', # Extras cannot be combined with flags - 'none+markers', - 'markers+lines+text+none']) +@pytest.mark.parametrize( + "val", + [ + "al l", # Don't remove inner whitespace + "lines+all", # Extras cannot be combined with flags + "none+markers", + "markers+lines+text+none", + ], +) def test_rejection_val(val, validator_extra): with pytest.raises(ValueError) as validation_failure: validator_extra.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # Array OK (with extras) @@ -121,27 +133,37 @@ def test_acceptance_aok_scalar_extra(extra, validator_extra_aok): # ### Acceptance (lists) ### def test_acceptance_aok_scalarlist_flaglist(flaglist, validator_extra_aok): - assert np.array_equal(validator_extra_aok.validate_coerce([flaglist]), - np.array([flaglist], dtype='unicode')) - - -@pytest.mark.parametrize('val', [ - ['all', 'markers', 'text+markers'], - ['lines', 'lines+markers', 'markers+lines+text'], - ['all', 'all', 'lines+text', 'none'] -]) + assert np.array_equal( + validator_extra_aok.validate_coerce([flaglist]), + np.array([flaglist], dtype="unicode"), + ) + + +@pytest.mark.parametrize( + "val", + [ + ["all", "markers", "text+markers"], + ["lines", "lines+markers", "markers+lines+text"], + ["all", "all", "lines+text", "none"], + ], +) def test_acceptance_aok_list_flaglist(val, validator_extra_aok): - assert np.array_equal(validator_extra_aok.validate_coerce(val), - np.array(val, dtype='unicode')) + assert np.array_equal( + validator_extra_aok.validate_coerce(val), np.array(val, dtype="unicode") + ) # ### Coercion ### -@pytest.mark.parametrize('in_val,expected', - [([' lines ', ' lines + markers ', 'lines ,markers'], - ['lines', 'lines+markers', 'lines+markers']), - (np.array(['text +lines']), - np.array(['text+lines'], dtype='unicode')) - ]) +@pytest.mark.parametrize( + "in_val,expected", + [ + ( + [" lines ", " lines + markers ", "lines ,markers"], + ["lines", "lines+markers", "lines+markers"], + ), + (np.array(["text +lines"]), np.array(["text+lines"], dtype="unicode")), + ], +) def test_coercion_aok(in_val, expected, validator_extra_aok): coerce_val = validator_extra_aok.validate_coerce(in_val) if isinstance(in_val, (list, tuple)): @@ -149,42 +171,41 @@ def test_coercion_aok(in_val, expected, validator_extra_aok): validator_extra_aok.present(coerce_val) == tuple(expected) else: assert np.array_equal(coerce_val, coerce_val) - assert np.array_equal( - validator_extra_aok.present(coerce_val), - coerce_val) + assert np.array_equal(validator_extra_aok.present(coerce_val), coerce_val) # ### Rejection by type ### -@pytest.mark.parametrize('val', - [21, set(), {}]) +@pytest.mark.parametrize("val", [21, set(), {}]) def test_rejection_aok_type(val, validator_extra_aok): with pytest.raises(ValueError) as validation_failure: validator_extra_aok.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### Rejection by element type ### -@pytest.mark.parametrize('val', - [[21, 'markers'], - ['lines', ()], - ['none', set()], - ['lines+text', {}, 'markers']]) +@pytest.mark.parametrize( + "val", + [[21, "markers"], ["lines", ()], ["none", set()], ["lines+text", {}, "markers"]], +) def test_rejection_aok_element_type(val, validator_extra_aok): with pytest.raises(ValueError) as validation_failure: validator_extra_aok.validate_coerce(val) - assert 'Invalid element(s)' in str(validation_failure.value) + assert "Invalid element(s)" in str(validation_failure.value) # ### Rejection by element values ### -@pytest.mark.parametrize('val', [ - ['all+markers', 'text+markers'], # extra plus flag - ['line', 'lines+markers', 'markers+lines+text'], # Invalid flag - ['all', '', 'lines+text', 'none'] # Empty string -]) +@pytest.mark.parametrize( + "val", + [ + ["all+markers", "text+markers"], # extra plus flag + ["line", "lines+markers", "markers+lines+text"], # Invalid flag + ["all", "", "lines+text", "none"], # Empty string + ], +) def test_rejection_aok_element_val(val, validator_extra_aok): with pytest.raises(ValueError) as validation_failure: validator_extra_aok.validate_coerce(val) - assert 'Invalid element(s)' in str(validation_failure.value) + assert "Invalid element(s)" in str(validation_failure.value) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_imageuri_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_imageuri_validator.py index 7264cf69d23..ef81b275a8f 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_imageuri_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_imageuri_validator.py @@ -10,16 +10,19 @@ # -------- @pytest.fixture() def validator(): - return ImageUriValidator('prop', 'parent') + return ImageUriValidator("prop", "parent") # Tests # ----- # ### Acceptance ### -@pytest.mark.parametrize('val', [ - 'http://somewhere.com/images/image12.png', - 'data:image/png;base64,iVBORw0KGgoAAAANSU', -]) +@pytest.mark.parametrize( + "val", + [ + "http://somewhere.com/images/image12.png", + "data:image/png;base64,iVBORw0KGgoAAAANSU", + ], +) def test_validator_acceptance(val, validator): assert validator.validate_coerce(val) == val @@ -29,11 +32,11 @@ def test_validator_coercion_PIL(validator): # Single pixel black png (http://png-pixel.com/) tests_dir = os.path.dirname(os.path.dirname(__file__)) - img_path = os.path.join(tests_dir, 'resources', '1x1-black.png') + img_path = os.path.join(tests_dir, "resources", "1x1-black.png") - with open(img_path, 'rb') as f: - hex_bytes = base64.b64encode(f.read()).decode('ascii') - expected_uri = 'data:image/png;base64,' + hex_bytes + with open(img_path, "rb") as f: + hex_bytes = base64.b64encode(f.read()).decode("ascii") + expected_uri = "data:image/png;base64," + hex_bytes img = Image.open(img_path) coerce_val = validator.validate_coerce(img) @@ -41,11 +44,9 @@ def test_validator_coercion_PIL(validator): # ### Rejection ### -@pytest.mark.parametrize('val', [ - 23, set(), [] -]) +@pytest.mark.parametrize("val", [23, set(), []]) def test_rejection_by_type(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_infoarray_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_infoarray_validator.py index 5da739fd2f2..0a261dabf16 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_infoarray_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_infoarray_validator.py @@ -7,75 +7,102 @@ # -------- @pytest.fixture() def validator_any2(): - return InfoArrayValidator('prop', 'parent', items=[{'valType': 'any'}, {'valType': 'any'}]) + return InfoArrayValidator( + "prop", "parent", items=[{"valType": "any"}, {"valType": "any"}] + ) @pytest.fixture() def validator_number3(): - return InfoArrayValidator('prop', 'parent', items=[ - {'valType': 'number', 'min': 0, 'max': 1}, - {'valType': 'number', 'min': 0, 'max': 1}, - {'valType': 'number', 'min': 0, 'max': 1}]) + return InfoArrayValidator( + "prop", + "parent", + items=[ + {"valType": "number", "min": 0, "max": 1}, + {"valType": "number", "min": 0, "max": 1}, + {"valType": "number", "min": 0, "max": 1}, + ], + ) @pytest.fixture() def validator_number3_free(): - return InfoArrayValidator('prop', 'parent', items=[ - {'valType': 'number', 'min': 0, 'max': 1}, - {'valType': 'number', 'min': 0, 'max': 1}, - {'valType': 'number', 'min': 0, 'max': 1}], free_length=True) + return InfoArrayValidator( + "prop", + "parent", + items=[ + {"valType": "number", "min": 0, "max": 1}, + {"valType": "number", "min": 0, "max": 1}, + {"valType": "number", "min": 0, "max": 1}, + ], + free_length=True, + ) @pytest.fixture() def validator_any3_free(): - return InfoArrayValidator('prop', 'parent', items=[ - {'valType': 'any'}, - {'valType': 'any'}, - {'valType': 'any'}], free_length=True) + return InfoArrayValidator( + "prop", + "parent", + items=[{"valType": "any"}, {"valType": "any"}, {"valType": "any"}], + free_length=True, + ) @pytest.fixture() def validator_number2_2d(): - return InfoArrayValidator('prop', 'parent', items=[ - {'valType': 'number', 'min': 0, 'max': 1}, - {'valType': 'number', 'min': 0, 'max': 1}], - free_length=True, - dimensions=2) + return InfoArrayValidator( + "prop", + "parent", + items=[ + {"valType": "number", "min": 0, "max": 1}, + {"valType": "number", "min": 0, "max": 1}, + ], + free_length=True, + dimensions=2, + ) @pytest.fixture() def validator_number2_12d(): - return InfoArrayValidator('prop', 'parent', items=[ - {'valType': 'number', 'min': 0, 'max': 1}, - {'valType': 'number', 'min': 0, 'max': 1}], - free_length=True, - dimensions='1-2') + return InfoArrayValidator( + "prop", + "parent", + items=[ + {"valType": "number", "min": 0, "max": 1}, + {"valType": "number", "min": 0, "max": 1}, + ], + free_length=True, + dimensions="1-2", + ) @pytest.fixture() def validator_number_free_1d(): - return InfoArrayValidator('prop', 'parent', - items={'valType': 'number', - 'min': 0, 'max': 1}, - free_length=True, - dimensions=1) + return InfoArrayValidator( + "prop", + "parent", + items={"valType": "number", "min": 0, "max": 1}, + free_length=True, + dimensions=1, + ) @pytest.fixture() def validator_number_free_2d(): - return InfoArrayValidator('prop', 'parent', - items={'valType': 'number', - 'min': 0, 'max': 1}, - free_length=True, - dimensions=2) + return InfoArrayValidator( + "prop", + "parent", + items={"valType": "number", "min": 0, "max": 1}, + free_length=True, + dimensions=2, + ) # Any2 Tests # ---------- # ### Acceptance ### -@pytest.mark.parametrize('val', [ - [1, 'A'], ('hello', 'world!'), [1, set()], [-1, 1] -]) +@pytest.mark.parametrize("val", [[1, "A"], ("hello", "world!"), [1, set()], [-1, 1]]) def test_validator_acceptance_any2(val, validator_any2): coerce_val = validator_any2.validate_coerce(val) assert coerce_val == list(val) @@ -89,33 +116,29 @@ def test_validator_acceptance_any2_none(validator_any2): # ### Rejection by type ### -@pytest.mark.parametrize('val', [ - 'Not a list', 123, set(), {} -]) +@pytest.mark.parametrize("val", ["Not a list", 123, set(), {}]) def test_validator_rejection_any2_type(val, validator_any2): with pytest.raises(ValueError) as validation_failure: validator_any2.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### Rejection by length ### -@pytest.mark.parametrize('val', [ - [0, 1, 'A'], ('hello', 'world', '!'), [None, {}, []], [-1, 1, 9] -]) +@pytest.mark.parametrize( + "val", [[0, 1, "A"], ("hello", "world", "!"), [None, {}, []], [-1, 1, 9]] +) def test_validator_rejection_any2_length(val, validator_any2): with pytest.raises(ValueError) as validation_failure: validator_any2.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # Number3 Tests # ------------- # ### Acceptance ### -@pytest.mark.parametrize('val', [ - [1, 0, 0.5], (0.1, 0.4, 0.99), [1, 1, 0] -]) +@pytest.mark.parametrize("val", [[1, 0, 0.5], (0.1, 0.4, 0.99), [1, 1, 0]]) def test_validator_acceptance_number3(val, validator_number3): coerce_val = validator_number3.validate_coerce(val) assert coerce_val == list(val) @@ -123,52 +146,48 @@ def test_validator_acceptance_number3(val, validator_number3): # ### Rejection by length ### -@pytest.mark.parametrize('val', [ - [1, 0], (0.1, 0.4, 0.99, 0.4), [1] -]) +@pytest.mark.parametrize("val", [[1, 0], (0.1, 0.4, 0.99, 0.4), [1]]) def test_validator_rejection_number3_length(val, validator_number3): with pytest.raises(ValueError) as validation_failure: validator_number3.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### Rejection by element type ### -@pytest.mark.parametrize('val,first_invalid_ind', [ - ([1, 0, '0.5'], 2), - ((0.1, set(), 0.99), 1), - ([[], '2', {}], 0) -]) -def test_validator_rejection_number3_element_type(val, first_invalid_ind, validator_number3): +@pytest.mark.parametrize( + "val,first_invalid_ind", + [([1, 0, "0.5"], 2), ((0.1, set(), 0.99), 1), ([[], "2", {}], 0)], +) +def test_validator_rejection_number3_element_type( + val, first_invalid_ind, validator_number3 +): with pytest.raises(ValueError) as validation_failure: validator_number3.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### Rejection by element value ### # Elements must be in [0, 1] -@pytest.mark.parametrize('val,first_invalid_ind', [ - ([1, 0, 1.5], 2), - ((0.1, -0.4, 0.99), 1), - ([-1, 1, 0], 0) -]) -def test_validator_rejection_number3_element_value(val, first_invalid_ind, validator_number3): +@pytest.mark.parametrize( + "val,first_invalid_ind", [([1, 0, 1.5], 2), ((0.1, -0.4, 0.99), 1), ([-1, 1, 0], 0)] +) +def test_validator_rejection_number3_element_value( + val, first_invalid_ind, validator_number3 +): with pytest.raises(ValueError) as validation_failure: validator_number3.validate_coerce(val) - assert ('in the interval [0, 1]' in str(validation_failure.value)) + assert "in the interval [0, 1]" in str(validation_failure.value) # Number3 Tests (free_length=True) # -------------------------------- # ### Acceptance ### -@pytest.mark.parametrize('val', [ - [1, 0, 0.5], - (0.1, 0.99), - np.array([0.1, 0.99]), - [0], [] -]) +@pytest.mark.parametrize( + "val", [[1, 0, 0.5], (0.1, 0.99), np.array([0.1, 0.99]), [0], []] +) def test_validator_acceptance_number3_free(val, validator_number3_free): coerce_val = validator_number3_free.validate_coerce(val) assert coerce_val == list(val) @@ -176,69 +195,73 @@ def test_validator_acceptance_number3_free(val, validator_number3_free): # ### Rejection by type ### -@pytest.mark.parametrize('val', [ - 'Not a list', 123, set(), {} -]) +@pytest.mark.parametrize("val", ["Not a list", 123, set(), {}]) def test_validator_rejection_number3_free_type(val, validator_number3_free): with pytest.raises(ValueError) as validation_failure: validator_number3_free.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### Rejection by length ### -@pytest.mark.parametrize('val', [ - (0.1, 0.4, 0.99, 0.4), [1, 0, 0, 0, 0, 0, 0] -]) +@pytest.mark.parametrize("val", [(0.1, 0.4, 0.99, 0.4), [1, 0, 0, 0, 0, 0, 0]]) def test_validator_rejection_number3_free_length(val, validator_number3_free): with pytest.raises(ValueError) as validation_failure: validator_number3_free.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### Rejection by element type ### -@pytest.mark.parametrize('val,first_invalid_ind', [ - ([1, 0, '0.5'], 2), - ((0.1, set()), 1), - ([{}], 0) -]) -def test_validator_rejection_number3_free_element_type(val, first_invalid_ind, validator_number3_free): +@pytest.mark.parametrize( + "val,first_invalid_ind", [([1, 0, "0.5"], 2), ((0.1, set()), 1), ([{}], 0)] +) +def test_validator_rejection_number3_free_element_type( + val, first_invalid_ind, validator_number3_free +): with pytest.raises(ValueError) as validation_failure: validator_number3_free.validate_coerce(val) - assert ("Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent" - .format(typ=type_str(val[first_invalid_ind]), - first_invalid_ind=first_invalid_ind)) in str(validation_failure.value) + assert ( + "Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent".format( + typ=type_str(val[first_invalid_ind]), first_invalid_ind=first_invalid_ind + ) + ) in str(validation_failure.value) # ### Rejection by element value ### -@pytest.mark.parametrize('val,first_invalid_ind', [ - ([1, 0, -0.5], 2), - ((0.1, 2), 1), - ([99], 0) -]) -def test_validator_rejection_number3_free_element_value(val, first_invalid_ind, validator_number3_free): +@pytest.mark.parametrize( + "val,first_invalid_ind", [([1, 0, -0.5], 2), ((0.1, 2), 1), ([99], 0)] +) +def test_validator_rejection_number3_free_element_value( + val, first_invalid_ind, validator_number3_free +): with pytest.raises(ValueError) as validation_failure: validator_number3_free.validate_coerce(val) - assert ("Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent" - .format(typ=type_str(val[first_invalid_ind]), - first_invalid_ind=first_invalid_ind)) in str(validation_failure.value) + assert ( + "Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent".format( + typ=type_str(val[first_invalid_ind]), first_invalid_ind=first_invalid_ind + ) + ) in str(validation_failure.value) # Any3 Tests (free_length=True) # -------------------------------- # ### Acceptance ### -@pytest.mark.parametrize('val', [ - [1, 0, 'Hello'], - (False, 0.99), - np.array([0.1, 0.99]), - [0], [], - [['a', 'list']], - [['a', 'list'], 0], - [0, ['a', 'list'], 1], -]) +@pytest.mark.parametrize( + "val", + [ + [1, 0, "Hello"], + (False, 0.99), + np.array([0.1, 0.99]), + [0], + [], + [["a", "list"]], + [["a", "list"], 0], + [0, ["a", "list"], 1], + ], +) def test_validator_acceptance_any3_free(val, validator_any3_free): coerce_val = validator_any3_free.validate_coerce(val) assert coerce_val == list(val) @@ -251,13 +274,16 @@ def test_validator_acceptance_any3_free(val, validator_any3_free): # Number2 2D # ---------- # ### Acceptance ### -@pytest.mark.parametrize('val', [ - [], - [[1, 0]], - [(0.1, 0.99)], - np.array([[0.1, 0.99]]), - [np.array([0.1, 0.4]), [0.2, 0], (0.9, 0.5)] -]) +@pytest.mark.parametrize( + "val", + [ + [], + [[1, 0]], + [(0.1, 0.99)], + np.array([[0.1, 0.99]]), + [np.array([0.1, 0.4]), [0.2, 0], (0.9, 0.5)], + ], +) def test_validator_acceptance_number2_2d(val, validator_number2_2d): coerce_val = validator_number2_2d.validate_coerce(val) assert coerce_val == list((list(row) for row in val)) @@ -266,72 +292,78 @@ def test_validator_acceptance_number2_2d(val, validator_number2_2d): # ### Rejection by type ### -@pytest.mark.parametrize('val', [ - 'Not a list', 123, set(), {}, -]) +@pytest.mark.parametrize("val", ["Not a list", 123, set(), {}]) def test_validator_rejection_number2_2d_type(val, validator_number2_2d): with pytest.raises(ValueError) as validation_failure: validator_number2_2d.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### Rejection by element type ### -@pytest.mark.parametrize('val,first_invalid_ind', [ - ([[1, 0], [0.2, 0.4], 'string'], 2), - ([[0.1, 0.7], set()], 1), - (['bogus'], 0) -]) -def test_validator_rejection_number2_2d_element_type(val, first_invalid_ind, validator_number2_2d): +@pytest.mark.parametrize( + "val,first_invalid_ind", + [([[1, 0], [0.2, 0.4], "string"], 2), ([[0.1, 0.7], set()], 1), (["bogus"], 0)], +) +def test_validator_rejection_number2_2d_element_type( + val, first_invalid_ind, validator_number2_2d +): with pytest.raises(ValueError) as validation_failure: validator_number2_2d.validate_coerce(val) - assert ("Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent" - .format(typ=type_str(val[first_invalid_ind]), - first_invalid_ind=first_invalid_ind)) in str(validation_failure.value) + assert ( + "Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent".format( + typ=type_str(val[first_invalid_ind]), first_invalid_ind=first_invalid_ind + ) + ) in str(validation_failure.value) # ### Rejection by element length ### -@pytest.mark.parametrize('val,first_invalid_ind', [ - ([[1, 0], [0.2, 0.4], [0.2]], 2), - ([[0.1, 0.7], [0, .1, .4]], 1), - ([[]], 0) -]) -def test_validator_rejection_number2_2d_element_length(val, first_invalid_ind, validator_number2_2d): +@pytest.mark.parametrize( + "val,first_invalid_ind", + [([[1, 0], [0.2, 0.4], [0.2]], 2), ([[0.1, 0.7], [0, 0.1, 0.4]], 1), ([[]], 0)], +) +def test_validator_rejection_number2_2d_element_length( + val, first_invalid_ind, validator_number2_2d +): with pytest.raises(ValueError) as validation_failure: validator_number2_2d.validate_coerce(val) - assert ("Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent" - .format(typ=type_str(val[first_invalid_ind]), - first_invalid_ind=first_invalid_ind)) in str(validation_failure.value) + assert ( + "Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent".format( + typ=type_str(val[first_invalid_ind]), first_invalid_ind=first_invalid_ind + ) + ) in str(validation_failure.value) # ### Rejection by element value ### -@pytest.mark.parametrize('val,invalid_inds', [ - ([[1, 0], [0.2, 0.4], [0.2, 1.2]], [2, 1]), - ([[0.1, 0.7], [-2, .1]], [1, 0]), - ([[99, 0.3]], [0, 0]) -]) -def test_validator_rejection_number2_2d_element_value(val, invalid_inds, validator_number2_2d): +@pytest.mark.parametrize( + "val,invalid_inds", + [ + ([[1, 0], [0.2, 0.4], [0.2, 1.2]], [2, 1]), + ([[0.1, 0.7], [-2, 0.1]], [1, 0]), + ([[99, 0.3]], [0, 0]), + ], +) +def test_validator_rejection_number2_2d_element_value( + val, invalid_inds, validator_number2_2d +): with pytest.raises(ValueError) as validation_failure: validator_number2_2d.validate_coerce(val) invalid_val = val[invalid_inds[0]][invalid_inds[1]] - invalid_name = 'prop[{}][{}]'.format(*invalid_inds) - assert ("Invalid value of type {typ} received for the '{invalid_name}' property of parent" - .format(typ=type_str(invalid_val), - invalid_name=invalid_name)) in str(validation_failure.value) + invalid_name = "prop[{}][{}]".format(*invalid_inds) + assert ( + "Invalid value of type {typ} received for the '{invalid_name}' property of parent".format( + typ=type_str(invalid_val), invalid_name=invalid_name + ) + ) in str(validation_failure.value) # Number2 '1-2' # ------------- # ### Acceptance ### -@pytest.mark.parametrize('val', [ - [], - [1, 0], - (0.1, 0.99), - np.array([0.1, 0.99]) -]) +@pytest.mark.parametrize("val", [[], [1, 0], (0.1, 0.99), np.array([0.1, 0.99])]) def test_validator_acceptance_number2_12d_1d(val, validator_number2_12d): coerce_val = validator_number2_12d.validate_coerce(val) assert coerce_val == list(val) @@ -339,13 +371,16 @@ def test_validator_acceptance_number2_12d_1d(val, validator_number2_12d): assert validator_number2_12d.present(coerce_val) == expected -@pytest.mark.parametrize('val', [ - [], - [[1, 0]], - [(0.1, 0.99)], - np.array([[0.1, 0.99]]), - [np.array([0.1, 0.4]), [0.2, 0], (0.9, 0.5)] -]) +@pytest.mark.parametrize( + "val", + [ + [], + [[1, 0]], + [(0.1, 0.99)], + np.array([[0.1, 0.99]]), + [np.array([0.1, 0.4]), [0.2, 0], (0.9, 0.5)], + ], +) def test_validator_acceptance_number2_12d_2d(val, validator_number2_12d): coerce_val = validator_number2_12d.validate_coerce(val) assert coerce_val == list((list(row) for row in val)) @@ -354,78 +389,86 @@ def test_validator_acceptance_number2_12d_2d(val, validator_number2_12d): # ### Rejection by type / length### -@pytest.mark.parametrize('val', [ - 'Not a list', 123, set(), {}, [0.1, 0.3, 0.2] -]) +@pytest.mark.parametrize("val", ["Not a list", 123, set(), {}, [0.1, 0.3, 0.2]]) def test_validator_rejection_number2_12d_type(val, validator_number2_12d): with pytest.raises(ValueError) as validation_failure: validator_number2_12d.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### Rejection by element type 2D ### -@pytest.mark.parametrize('val,first_invalid_ind', [ - ([[1, 0], [0.2, 0.4], 'string'], 2), - ([[0.1, 0.7], set()], 1), - (['bogus'], 0) -]) -def test_validator_rejection_number2_12d_element_type(val, first_invalid_ind, validator_number2_12d): +@pytest.mark.parametrize( + "val,first_invalid_ind", + [([[1, 0], [0.2, 0.4], "string"], 2), ([[0.1, 0.7], set()], 1), (["bogus"], 0)], +) +def test_validator_rejection_number2_12d_element_type( + val, first_invalid_ind, validator_number2_12d +): with pytest.raises(ValueError) as validation_failure: validator_number2_12d.validate_coerce(val) - assert ("Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent" - .format(typ=type_str(val[first_invalid_ind]), - first_invalid_ind=first_invalid_ind)) in str(validation_failure.value) + assert ( + "Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent".format( + typ=type_str(val[first_invalid_ind]), first_invalid_ind=first_invalid_ind + ) + ) in str(validation_failure.value) # ### Rejection by element length ### -@pytest.mark.parametrize('val,first_invalid_ind', [ - ([[1, 0], [0.2, 0.4], [0.2]], 2), - ([[0.1, 0.7], [0, .1, .4]], 1), - ([[]], 0) -]) -def test_validator_rejection_number2_12d_element_length(val, first_invalid_ind, validator_number2_12d): +@pytest.mark.parametrize( + "val,first_invalid_ind", + [([[1, 0], [0.2, 0.4], [0.2]], 2), ([[0.1, 0.7], [0, 0.1, 0.4]], 1), ([[]], 0)], +) +def test_validator_rejection_number2_12d_element_length( + val, first_invalid_ind, validator_number2_12d +): with pytest.raises(ValueError) as validation_failure: validator_number2_12d.validate_coerce(val) - assert ("Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent" - .format(typ=type_str(val[first_invalid_ind]), - first_invalid_ind=first_invalid_ind)) in str(validation_failure.value) + assert ( + "Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent".format( + typ=type_str(val[first_invalid_ind]), first_invalid_ind=first_invalid_ind + ) + ) in str(validation_failure.value) # ### Rejection by element value ### -@pytest.mark.parametrize('val,invalid_inds', [ - ([[1, 0], [0.2, 0.4], [0.2, 1.2]], [2, 1]), - ([[0.1, 0.7], [-2, .1]], [1, 0]), - ([[99, 0.3]], [0, 0]), - ([0.1, 1.2], [1]), - ([-0.1, 0.99], [0]), -]) -def test_validator_rejection_number2_12d_element_value(val, invalid_inds, validator_number2_12d): +@pytest.mark.parametrize( + "val,invalid_inds", + [ + ([[1, 0], [0.2, 0.4], [0.2, 1.2]], [2, 1]), + ([[0.1, 0.7], [-2, 0.1]], [1, 0]), + ([[99, 0.3]], [0, 0]), + ([0.1, 1.2], [1]), + ([-0.1, 0.99], [0]), + ], +) +def test_validator_rejection_number2_12d_element_value( + val, invalid_inds, validator_number2_12d +): with pytest.raises(ValueError) as validation_failure: validator_number2_12d.validate_coerce(val) if len(invalid_inds) > 1: invalid_val = val[invalid_inds[0]][invalid_inds[1]] - invalid_name = 'prop[{}][{}]'.format(*invalid_inds) + invalid_name = "prop[{}][{}]".format(*invalid_inds) else: invalid_val = val[invalid_inds[0]] - invalid_name = 'prop[{}]'.format(*invalid_inds) + invalid_name = "prop[{}]".format(*invalid_inds) - assert ("Invalid value of type {typ} received for the '{invalid_name}' property of parent" - .format(typ=type_str(invalid_val), - invalid_name=invalid_name)) in str(validation_failure.value) + assert ( + "Invalid value of type {typ} received for the '{invalid_name}' property of parent".format( + typ=type_str(invalid_val), invalid_name=invalid_name + ) + ) in str(validation_failure.value) # Number free 1D # -------------- -@pytest.mark.parametrize('val', [ - [], - [1, 0], - (0.1, 0.99, 0.4), - np.array([0.1, 0.4, 0.5, 0.1, 0.6, 0.99]) -]) +@pytest.mark.parametrize( + "val", [[], [1, 0], (0.1, 0.99, 0.4), np.array([0.1, 0.4, 0.5, 0.1, 0.6, 0.99])] +) def test_validator_acceptance_number_free_1d(val, validator_number_free_1d): coerce_val = validator_number_free_1d.validate_coerce(val) assert coerce_val == list(val) @@ -434,55 +477,62 @@ def test_validator_acceptance_number_free_1d(val, validator_number_free_1d): # ### Rejection by type ### -@pytest.mark.parametrize('val', [ - 'Not a list', 123, set(), {}, -]) +@pytest.mark.parametrize("val", ["Not a list", 123, set(), {}]) def test_validator_rejection_number_free_1d_type(val, validator_number_free_1d): with pytest.raises(ValueError) as validation_failure: validator_number_free_1d.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### Rejection by element type ### -@pytest.mark.parametrize('val,first_invalid_ind', [ - ([1, 0, 0.3, 0.5, '0.5', 0.2], 4), - ((0.1, set()), 1), - ([{}], 0) -]) -def test_validator_rejection_number_free_1d_element_type(val, first_invalid_ind, validator_number_free_1d): +@pytest.mark.parametrize( + "val,first_invalid_ind", + [([1, 0, 0.3, 0.5, "0.5", 0.2], 4), ((0.1, set()), 1), ([{}], 0)], +) +def test_validator_rejection_number_free_1d_element_type( + val, first_invalid_ind, validator_number_free_1d +): with pytest.raises(ValueError) as validation_failure: validator_number_free_1d.validate_coerce(val) - assert ("Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent" - .format(typ=type_str(val[first_invalid_ind]), - first_invalid_ind=first_invalid_ind)) in str(validation_failure.value) + assert ( + "Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent".format( + typ=type_str(val[first_invalid_ind]), first_invalid_ind=first_invalid_ind + ) + ) in str(validation_failure.value) # ### Rejection by element value ### -@pytest.mark.parametrize('val,first_invalid_ind', [ - ([1, 0, 0.3, 0.999, -0.5], 4), - ((0.1, 2, 0.8), 1), - ([99, 0.3], 0) -]) -def test_validator_rejection_number_free_1d_element_value(val, first_invalid_ind, validator_number_free_1d): +@pytest.mark.parametrize( + "val,first_invalid_ind", + [([1, 0, 0.3, 0.999, -0.5], 4), ((0.1, 2, 0.8), 1), ([99, 0.3], 0)], +) +def test_validator_rejection_number_free_1d_element_value( + val, first_invalid_ind, validator_number_free_1d +): with pytest.raises(ValueError) as validation_failure: validator_number_free_1d.validate_coerce(val) - assert ("Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent" - .format(typ=type_str(val[first_invalid_ind]), - first_invalid_ind=first_invalid_ind)) in str(validation_failure.value) + assert ( + "Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent".format( + typ=type_str(val[first_invalid_ind]), first_invalid_ind=first_invalid_ind + ) + ) in str(validation_failure.value) # Number free 2D # -------------- -@pytest.mark.parametrize('val', [ - [], - [[1, 0]], - [(0.1, 0.99)], - np.array([[0.1, 0.99]]), - [np.array([0.1, 0.4]), [0.2, 0], (0.9, 0.5)] -]) +@pytest.mark.parametrize( + "val", + [ + [], + [[1, 0]], + [(0.1, 0.99)], + np.array([[0.1, 0.99]]), + [np.array([0.1, 0.4]), [0.2, 0], (0.9, 0.5)], + ], +) def test_validator_acceptance_number_free_2d(val, validator_number_free_2d): coerce_val = validator_number_free_2d.validate_coerce(val) assert coerce_val == list((list(row) for row in val)) @@ -491,43 +541,51 @@ def test_validator_acceptance_number_free_2d(val, validator_number_free_2d): # ### Rejection by type ### -@pytest.mark.parametrize('val', [ - 'Not a list', 123, set(), {}, -]) +@pytest.mark.parametrize("val", ["Not a list", 123, set(), {}]) def test_validator_rejection_number_free_2d_type(val, validator_number_free_2d): with pytest.raises(ValueError) as validation_failure: validator_number_free_2d.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### Rejection by element type ### -@pytest.mark.parametrize('val,first_invalid_ind', [ - ([[1, 0], [0.2, 0.4], 'string'], 2), - ([[0.1, 0.7], set()], 1), - (['bogus'], 0) -]) -def test_validator_rejection_number_free_2d_element_type(val, first_invalid_ind, validator_number_free_2d): +@pytest.mark.parametrize( + "val,first_invalid_ind", + [([[1, 0], [0.2, 0.4], "string"], 2), ([[0.1, 0.7], set()], 1), (["bogus"], 0)], +) +def test_validator_rejection_number_free_2d_element_type( + val, first_invalid_ind, validator_number_free_2d +): with pytest.raises(ValueError) as validation_failure: validator_number_free_2d.validate_coerce(val) - assert ("Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent" - .format(typ=type_str(val[first_invalid_ind]), - first_invalid_ind=first_invalid_ind)) in str(validation_failure.value) + assert ( + "Invalid value of type {typ} received for the 'prop[{first_invalid_ind}]' property of parent".format( + typ=type_str(val[first_invalid_ind]), first_invalid_ind=first_invalid_ind + ) + ) in str(validation_failure.value) # ### Rejection by element value ### -@pytest.mark.parametrize('val,invalid_inds', [ - ([[1, 0], [0.2, 0.4], [0.2, 1.2]], [2, 1]), - ([[0.1, 0.7], [-2, .1]], [1, 0]), - ([[99, 0.3]], [0, 0]) -]) -def test_validator_rejection_number_free_2d_element_value(val, invalid_inds, validator_number_free_2d): +@pytest.mark.parametrize( + "val,invalid_inds", + [ + ([[1, 0], [0.2, 0.4], [0.2, 1.2]], [2, 1]), + ([[0.1, 0.7], [-2, 0.1]], [1, 0]), + ([[99, 0.3]], [0, 0]), + ], +) +def test_validator_rejection_number_free_2d_element_value( + val, invalid_inds, validator_number_free_2d +): with pytest.raises(ValueError) as validation_failure: validator_number_free_2d.validate_coerce(val) invalid_val = val[invalid_inds[0]][invalid_inds[1]] - invalid_name = 'prop[{}][{}]'.format(*invalid_inds) - assert ("Invalid value of type {typ} received for the '{invalid_name}' property of parent" - .format(typ=type_str(invalid_val), - invalid_name=invalid_name)) in str(validation_failure.value) + invalid_name = "prop[{}][{}]".format(*invalid_inds) + assert ( + "Invalid value of type {typ} received for the '{invalid_name}' property of parent".format( + typ=type_str(invalid_val), invalid_name=invalid_name + ) + ) in str(validation_failure.value) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_integer_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_integer_validator.py index 603a7c9f89a..f6d3983c123 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_integer_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_integer_validator.py @@ -10,127 +10,127 @@ # ### Fixtures ### @pytest.fixture() def validator(): - return IntegerValidator('prop', 'parent') + return IntegerValidator("prop", "parent") @pytest.fixture def validator_min_max(): - return IntegerValidator('prop', 'parent', min=-1, max=2) + return IntegerValidator("prop", "parent", min=-1, max=2) @pytest.fixture def validator_min(): - return IntegerValidator('prop', 'parent', min=-1) + return IntegerValidator("prop", "parent", min=-1) @pytest.fixture def validator_max(): - return IntegerValidator('prop', 'parent', max=2) + return IntegerValidator("prop", "parent", max=2) @pytest.fixture def validator_aok(request): - return IntegerValidator('prop', 'parent', min=-2, max=10, array_ok=True) + return IntegerValidator("prop", "parent", min=-2, max=10, array_ok=True) # ### Acceptance ### -@pytest.mark.parametrize('val', - [1, -19, 0, -1234]) +@pytest.mark.parametrize("val", [1, -19, 0, -1234]) def test_acceptance(val, validator): assert validator.validate_coerce(val) == val + # ### Rejection by value ### -@pytest.mark.parametrize('val', - ['hello', (), [], [1, 2, 3], set(), '34', np.nan, np.inf, -np.inf]) +@pytest.mark.parametrize( + "val", ["hello", (), [], [1, 2, 3], set(), "34", np.nan, np.inf, -np.inf] +) def test_rejection_by_value(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### With min/max ### # min == -1 and max == 2 -@pytest.mark.parametrize('val', - [0, 1, -1, 2]) +@pytest.mark.parametrize("val", [0, 1, -1, 2]) def test_acceptance_min_max(val, validator_min_max): assert validator_min_max.validate_coerce(val) == approx(val) -@pytest.mark.parametrize('val', - [-1.01, -10, 2.1, 3, np.iinfo(np.int).max, np.iinfo(np.int).min]) +@pytest.mark.parametrize( + "val", [-1.01, -10, 2.1, 3, np.iinfo(np.int).max, np.iinfo(np.int).min] +) def test_rejection_min_max(val, validator_min_max): with pytest.raises(ValueError) as validation_failure: validator_min_max.validate_coerce(val) - assert 'in the interval [-1, 2]' in str(validation_failure.value) + assert "in the interval [-1, 2]" in str(validation_failure.value) # ### With min only ### # min == -1 -@pytest.mark.parametrize('val', - [-1, 0, 1, 23, 99999]) +@pytest.mark.parametrize("val", [-1, 0, 1, 23, 99999]) def test_acceptance_min(val, validator_min): assert validator_min.validate_coerce(val) == approx(val) -@pytest.mark.parametrize('val', - [-2, -123, np.iinfo(np.int).min]) +@pytest.mark.parametrize("val", [-2, -123, np.iinfo(np.int).min]) def test_rejection_min(val, validator_min): with pytest.raises(ValueError) as validation_failure: validator_min.validate_coerce(val) - assert 'in the interval [-1, 9223372036854775807]' in str(validation_failure.value) + assert "in the interval [-1, 9223372036854775807]" in str(validation_failure.value) # ### With max only ### # max == 2 -@pytest.mark.parametrize('val', - [1, 2, -10, -999999, np.iinfo(np.int32).min]) +@pytest.mark.parametrize("val", [1, 2, -10, -999999, np.iinfo(np.int32).min]) def test_acceptance_max(val, validator_max): assert validator_max.validate_coerce(val) == approx(val) -@pytest.mark.parametrize('val', - [3, 10, np.iinfo(np.int32).max]) +@pytest.mark.parametrize("val", [3, 10, np.iinfo(np.int32).max]) def test_rejection_max(val, validator_max): with pytest.raises(ValueError) as validation_failure: validator_max.validate_coerce(val) - assert 'in the interval [-9223372036854775808, 2]' in str(validation_failure.value) + assert "in the interval [-9223372036854775808, 2]" in str(validation_failure.value) # Array ok # -------- # min=-2 and max=10 # ### Acceptance ### -@pytest.mark.parametrize('val', - [-2, 1, 0, 1, 10]) +@pytest.mark.parametrize("val", [-2, 1, 0, 1, 10]) def test_acceptance_aok_scalars(val, validator_aok): assert validator_aok.validate_coerce(val) == val -@pytest.mark.parametrize('val', - [[1, 0], [1], [-2, 1, 8], np.array([3, 2, -1, 5])]) +@pytest.mark.parametrize("val", [[1, 0], [1], [-2, 1, 8], np.array([3, 2, -1, 5])]) def test_acceptance_aok_list(val, validator_aok): assert np.array_equal(validator_aok.validate_coerce(val), val) # ### Coerce ### # Coerced to general consistent numeric type -@pytest.mark.parametrize('val,expected', - [([1, 0], (1, 0)), - ((1, -1), (1, -1)), - (np.array([-1, 0, 5.0], dtype='int16'), [-1, 0, 5]), - (np.array([1, 0], dtype=np.int64), [1, 0]), - (pd.Series([1, 0], dtype=np.int64), [1, 0]), - (pd.Index([1, 0], dtype=np.int64), [1, 0])]) +@pytest.mark.parametrize( + "val,expected", + [ + ([1, 0], (1, 0)), + ((1, -1), (1, -1)), + (np.array([-1, 0, 5.0], dtype="int16"), [-1, 0, 5]), + (np.array([1, 0], dtype=np.int64), [1, 0]), + (pd.Series([1, 0], dtype=np.int64), [1, 0]), + (pd.Index([1, 0], dtype=np.int64), [1, 0]), + ], +) def test_coercion_aok_list(val, expected, validator_aok): v = validator_aok.validate_coerce(val) if isinstance(val, (np.ndarray, pd.Series, pd.Index)): assert v.dtype == val.dtype - assert np.array_equal(validator_aok.present(v), - np.array(expected, dtype=np.int32)) + assert np.array_equal( + validator_aok.present(v), np.array(expected, dtype=np.int32) + ) else: assert isinstance(v, list) assert validator_aok.present(v) == expected @@ -138,20 +138,21 @@ def test_coercion_aok_list(val, expected, validator_aok): # ### Rejection ### # -@pytest.mark.parametrize('val', - [['a', 4], [[], 3, 4]]) +@pytest.mark.parametrize("val", [["a", 4], [[], 3, 4]]) def test_integer_validator_rejection_aok(val, validator_aok): with pytest.raises(ValueError) as validation_failure: validator_aok.validate_coerce(val) - assert 'Invalid element(s)' in str(validation_failure.value) + assert "Invalid element(s)" in str(validation_failure.value) # ### Rejection by element ### -@pytest.mark.parametrize('val', - [[-1, 11], [1.5, -3], [0, np.iinfo(np.int32).max], [0, np.iinfo(np.int32).min]]) +@pytest.mark.parametrize( + "val", + [[-1, 11], [1.5, -3], [0, np.iinfo(np.int32).max], [0, np.iinfo(np.int32).min]], +) def test_rejection_aok_min_max(val, validator_aok): with pytest.raises(ValueError) as validation_failure: validator_aok.validate_coerce(val) - assert 'in the interval [-2, 10]' in str(validation_failure.value) + assert "in the interval [-2, 10]" in str(validation_failure.value) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_literal_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_literal_validator.py index e624569298a..cb7a439eb28 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_literal_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_literal_validator.py @@ -7,22 +7,21 @@ # -------- @pytest.fixture() def validator(): - return LiteralValidator('prop', 'parent', 'scatter') + return LiteralValidator("prop", "parent", "scatter") # Tests # ----- # ### Acceptance ### -@pytest.mark.parametrize('val', ['scatter']) +@pytest.mark.parametrize("val", ["scatter"]) def test_acceptance(val, validator): assert validator.validate_coerce(val) is val # ### Test rejection ### -@pytest.mark.parametrize('val', - ['hello', (), [], [1, 2, 3], set(), '34']) +@pytest.mark.parametrize("val", ["hello", (), [], [1, 2, 3], set(), "34"]) def test_rejection(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'read-only' in str(validation_failure.value) + assert "read-only" in str(validation_failure.value) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_number_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_number_validator.py index 92412bf7ba3..7fd9e6657c8 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_number_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_number_validator.py @@ -9,119 +9,117 @@ # -------- @pytest.fixture def validator(request): - return NumberValidator('prop', 'parent') + return NumberValidator("prop", "parent") @pytest.fixture def validator_min_max(request): - return NumberValidator('prop', 'parent', min=-1.0, max=2.0) + return NumberValidator("prop", "parent", min=-1.0, max=2.0) @pytest.fixture def validator_min(request): - return NumberValidator('prop', 'parent', min=-1.0) + return NumberValidator("prop", "parent", min=-1.0) @pytest.fixture def validator_max(request): - return NumberValidator('prop', 'parent', max=2.0) + return NumberValidator("prop", "parent", max=2.0) @pytest.fixture def validator_aok(): - return NumberValidator('prop', 'parent', min=-1, max=1.5, array_ok=True) + return NumberValidator("prop", "parent", min=-1, max=1.5, array_ok=True) # Array not ok # ------------ # ### Acceptance ### -@pytest.mark.parametrize('val', - [1.0, 0.0, 1, -1234.5678, 54321, np.pi, np.nan, np.inf, -np.inf]) +@pytest.mark.parametrize( + "val", [1.0, 0.0, 1, -1234.5678, 54321, np.pi, np.nan, np.inf, -np.inf] +) def test_acceptance(val, validator): assert validator.validate_coerce(val) == approx(val, nan_ok=True) # ### Rejection by value ### -@pytest.mark.parametrize('val', - ['hello', (), [], [1, 2, 3], set(), '34']) +@pytest.mark.parametrize("val", ["hello", (), [], [1, 2, 3], set(), "34"]) def test_rejection_by_value(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### With min/max ### -@pytest.mark.parametrize('val', - [0, 0.0, -0.5, 1, 1.0, 2, 2.0, np.pi/2.0]) +@pytest.mark.parametrize("val", [0, 0.0, -0.5, 1, 1.0, 2, 2.0, np.pi / 2.0]) def test_acceptance_min_max(val, validator_min_max): assert validator_min_max.validate_coerce(val) == approx(val) -@pytest.mark.parametrize('val', - [-1.01, -10, 2.1, 234, -np.inf, np.nan, np.inf]) +@pytest.mark.parametrize("val", [-1.01, -10, 2.1, 234, -np.inf, np.nan, np.inf]) def test_rejection_min_max(val, validator_min_max): with pytest.raises(ValueError) as validation_failure: validator_min_max.validate_coerce(val) - assert 'in the interval [-1.0, 2.0]' in str(validation_failure.value) + assert "in the interval [-1.0, 2.0]" in str(validation_failure.value) # ### With min only ### -@pytest.mark.parametrize('val', - [0, 0.0, -0.5, 99999, np.inf]) +@pytest.mark.parametrize("val", [0, 0.0, -0.5, 99999, np.inf]) def test_acceptance_min(val, validator_min): assert validator_min.validate_coerce(val) == approx(val) -@pytest.mark.parametrize('val', - [-1.01, -np.inf, np.nan]) +@pytest.mark.parametrize("val", [-1.01, -np.inf, np.nan]) def test_rejection_min(val, validator_min): with pytest.raises(ValueError) as validation_failure: validator_min.validate_coerce(val) - assert 'in the interval [-1.0, inf]' in str(validation_failure.value) + assert "in the interval [-1.0, inf]" in str(validation_failure.value) # ### With max only ### -@pytest.mark.parametrize('val', - [0, 0.0, -np.inf, -123456, np.pi/2]) +@pytest.mark.parametrize("val", [0, 0.0, -np.inf, -123456, np.pi / 2]) def test_acceptance_max(val, validator_max): assert validator_max.validate_coerce(val) == approx(val) -@pytest.mark.parametrize('val', - [2.01, np.inf, np.nan]) +@pytest.mark.parametrize("val", [2.01, np.inf, np.nan]) def test_rejection_max(val, validator_max): with pytest.raises(ValueError) as validation_failure: validator_max.validate_coerce(val) - assert 'in the interval [-inf, 2.0]' in str(validation_failure.value) + assert "in the interval [-inf, 2.0]" in str(validation_failure.value) # Array ok # -------- # ### Acceptance ### -@pytest.mark.parametrize('val', - [1.0, 0.0, 1, 0.4]) +@pytest.mark.parametrize("val", [1.0, 0.0, 1, 0.4]) def test_acceptance_aok_scalars(val, validator_aok): assert validator_aok.validate_coerce(val) == val -@pytest.mark.parametrize('val', - [[1.0, 0.0], [1], [-0.1234, .41, -1.0]]) +@pytest.mark.parametrize("val", [[1.0, 0.0], [1], [-0.1234, 0.41, -1.0]]) def test_acceptance_aok_list(val, validator_aok): - assert np.array_equal(validator_aok.validate_coerce(val), np.array(val, dtype='float')) + assert np.array_equal( + validator_aok.validate_coerce(val), np.array(val, dtype="float") + ) # ### Coerce ### # Coerced to general consistent numeric type -@pytest.mark.parametrize('val,expected', - [([1.0, 0], (1.0, 0)), - (np.array([1, -1]), np.array([1, -1])), - (pd.Series([1, -1]), np.array([1, -1])), - (pd.Index([1, -1]), np.array([1, -1])), - ((-0.1234, 0, -1), (-0.1234, 0.0, -1.0))]) +@pytest.mark.parametrize( + "val,expected", + [ + ([1.0, 0], (1.0, 0)), + (np.array([1, -1]), np.array([1, -1])), + (pd.Series([1, -1]), np.array([1, -1])), + (pd.Index([1, -1]), np.array([1, -1])), + ((-0.1234, 0, -1), (-0.1234, 0.0, -1.0)), + ], +) def test_coercion_aok_list(val, expected, validator_aok): v = validator_aok.validate_coerce(val) if isinstance(val, (np.ndarray, pd.Series, pd.Index)): @@ -133,22 +131,22 @@ def test_coercion_aok_list(val, expected, validator_aok): # ### Rejection ### # -@pytest.mark.parametrize('val', - [['a', 4]]) +@pytest.mark.parametrize("val", [["a", 4]]) def test_rejection_aok(val, validator_aok): with pytest.raises(ValueError) as validation_failure: validator_aok.validate_coerce(val) - assert 'Invalid element(s)' in str(validation_failure.value) + assert "Invalid element(s)" in str(validation_failure.value) # ### Rejection by element ### -@pytest.mark.parametrize('val', - [[-1.6, 0.0], [1, 1.5, 2], [-0.1234, .41, np.nan], - [0, np.inf], [0, -np.inf]]) +@pytest.mark.parametrize( + "val", + [[-1.6, 0.0], [1, 1.5, 2], [-0.1234, 0.41, np.nan], [0, np.inf], [0, -np.inf]], +) def test_rejection_aok_min_max(val, validator_aok): with pytest.raises(ValueError) as validation_failure: validator_aok.validate_coerce(val) - assert 'Invalid element(s)' in str(validation_failure.value) - assert 'in the interval [-1, 1.5]' in str(validation_failure.value) + assert "Invalid element(s)" in str(validation_failure.value) + assert "in the interval [-1, 1.5]" in str(validation_failure.value) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_pandas_series_input.py b/packages/python/plotly/_plotly_utils/tests/validators/test_pandas_series_input.py index b0c4e91dec0..3783c4c1b79 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_pandas_series_input.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_pandas_series_input.py @@ -2,42 +2,54 @@ import numpy as np import pandas as pd from datetime import datetime -from _plotly_utils.basevalidators import (NumberValidator, - IntegerValidator, - DataArrayValidator, - ColorValidator) +from _plotly_utils.basevalidators import ( + NumberValidator, + IntegerValidator, + DataArrayValidator, + ColorValidator, +) @pytest.fixture def data_array_validator(request): - return DataArrayValidator('prop', 'parent') + return DataArrayValidator("prop", "parent") @pytest.fixture def integer_validator(request): - return IntegerValidator('prop', 'parent', array_ok=True) + return IntegerValidator("prop", "parent", array_ok=True) @pytest.fixture def number_validator(request): - return NumberValidator('prop', 'parent', array_ok=True) + return NumberValidator("prop", "parent", array_ok=True) @pytest.fixture def color_validator(request): - return ColorValidator('prop', 'parent', array_ok=True, colorscale_path='') + return ColorValidator("prop", "parent", array_ok=True, colorscale_path="") @pytest.fixture( - params=['int8', 'int16', 'int32', 'int64', - 'uint8', 'uint16', 'uint32', 'uint64', - 'float16', 'float32', 'float64']) + params=[ + "int8", + "int16", + "int32", + "int64", + "uint8", + "uint16", + "uint32", + "uint64", + "float16", + "float32", + "float64", + ] +) def numeric_dtype(request): return request.param -@pytest.fixture( - params=[pd.Series, pd.Index]) +@pytest.fixture(params=[pd.Series, pd.Index]) def pandas_type(request): return request.param @@ -49,23 +61,25 @@ def numeric_pandas(request, pandas_type, numeric_dtype): @pytest.fixture def color_object_pandas(request, pandas_type): - return pandas_type(['blue', 'green', 'red']*3, dtype='object') + return pandas_type(["blue", "green", "red"] * 3, dtype="object") @pytest.fixture def color_categorical_pandas(request, pandas_type): - return pandas_type(pd.Categorical(['blue', 'green', 'red']*3)) + return pandas_type(pd.Categorical(["blue", "green", "red"] * 3)) @pytest.fixture def dates_array(request): - return np.array([ - datetime(year=2013, month=10, day=10), - datetime(year=2013, month=11, day=10), - datetime(year=2013, month=12, day=10), - datetime(year=2014, month=1, day=10), - datetime(year=2014, month=2, day=10) - ]) + return np.array( + [ + datetime(year=2013, month=10, day=10), + datetime(year=2013, month=11, day=10), + datetime(year=2013, month=12, day=10), + datetime(year=2014, month=1, day=10), + datetime(year=2014, month=2, day=10), + ] + ) @pytest.fixture @@ -93,19 +107,18 @@ def test_integer_validator_numeric_pandas(integer_validator, numeric_pandas): assert isinstance(res, np.ndarray) # Check dtype - if numeric_pandas.dtype.kind in ('u', 'i'): + if numeric_pandas.dtype.kind in ("u", "i"): # Integer and unsigned integer dtype unchanged assert res.dtype == numeric_pandas.dtype else: # Float datatypes converted to default integer type of int32 - assert res.dtype == 'int32' + assert res.dtype == "int32" # Check values np.testing.assert_array_equal(res, numeric_pandas) -def test_data_array_validator(data_array_validator, - numeric_pandas): +def test_data_array_validator(data_array_validator, numeric_pandas): res = data_array_validator.validate_coerce(numeric_pandas) # Check type @@ -118,8 +131,7 @@ def test_data_array_validator(data_array_validator, np.testing.assert_array_equal(res, numeric_pandas) -def test_color_validator_numeric(color_validator, - numeric_pandas): +def test_color_validator_numeric(color_validator, numeric_pandas): res = color_validator.validate_coerce(numeric_pandas) # Check type @@ -132,8 +144,7 @@ def test_color_validator_numeric(color_validator, np.testing.assert_array_equal(res, numeric_pandas) -def test_color_validator_object(color_validator, - color_object_pandas): +def test_color_validator_object(color_validator, color_object_pandas): res = color_validator.validate_coerce(color_object_pandas) @@ -141,31 +152,28 @@ def test_color_validator_object(color_validator, assert isinstance(res, np.ndarray) # Check dtype - assert res.dtype == 'object' + assert res.dtype == "object" # Check values np.testing.assert_array_equal(res, color_object_pandas) -def test_color_validator_categorical(color_validator, - color_categorical_pandas): +def test_color_validator_categorical(color_validator, color_categorical_pandas): res = color_validator.validate_coerce(color_categorical_pandas) # Check type - assert color_categorical_pandas.dtype == 'category' + assert color_categorical_pandas.dtype == "category" assert isinstance(res, np.ndarray) # Check dtype - assert res.dtype == 'object' + assert res.dtype == "object" # Check values np.testing.assert_array_equal(res, np.array(color_categorical_pandas)) -def test_data_array_validator_dates(data_array_validator, - datetime_pandas, - dates_array): +def test_data_array_validator_dates(data_array_validator, datetime_pandas, dates_array): res = data_array_validator.validate_coerce(datetime_pandas) @@ -173,7 +181,7 @@ def test_data_array_validator_dates(data_array_validator, assert isinstance(res, np.ndarray) # Check dtype - assert res.dtype == 'object' + assert res.dtype == "object" # Check values np.testing.assert_array_equal(res, dates_array) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_string_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_string_validator.py index 5a9ae008526..957b84c4361 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_string_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_string_validator.py @@ -9,139 +9,137 @@ # -------- @pytest.fixture() def validator(): - return StringValidator('prop', 'parent') + return StringValidator("prop", "parent") @pytest.fixture() def validator_values(): - return StringValidator('prop', 'parent', values=['foo', 'BAR', '']) + return StringValidator("prop", "parent", values=["foo", "BAR", ""]) @pytest.fixture() def validator_no_blanks(): - return StringValidator('prop', 'parent', no_blank=True) + return StringValidator("prop", "parent", no_blank=True) @pytest.fixture() def validator_strict(): - return StringValidator('prop', 'parent', strict=True) + return StringValidator("prop", "parent", strict=True) @pytest.fixture def validator_aok(): - return StringValidator('prop', 'parent', array_ok=True, strict=False) + return StringValidator("prop", "parent", array_ok=True, strict=False) @pytest.fixture def validator_aok_strict(): - return StringValidator('prop', 'parent', array_ok=True, strict=True) + return StringValidator("prop", "parent", array_ok=True, strict=True) + @pytest.fixture def validator_aok_values(): - return StringValidator('prop', 'parent', values=['foo', 'BAR', '', 'baz'], array_ok=True) + return StringValidator( + "prop", "parent", values=["foo", "BAR", "", "baz"], array_ok=True + ) @pytest.fixture() def validator_no_blanks_aok(): - return StringValidator('prop', 'parent', no_blank=True, array_ok=True) + return StringValidator("prop", "parent", no_blank=True, array_ok=True) # Array not ok # ------------ # Not strict # ### Acceptance ### -@pytest.mark.parametrize('val', - ['bar', 234, np.nan, - 'HELLO!!!', 'world!@#$%^&*()', '', u'\u03BC']) +@pytest.mark.parametrize( + "val", ["bar", 234, np.nan, "HELLO!!!", "world!@#$%^&*()", "", "\u03BC"] +) def test_acceptance(val, validator): expected = str(val) if not isinstance(val, string_types) else val assert validator.validate_coerce(val) == expected # ### Rejection by value ### -@pytest.mark.parametrize('val', - [(), [], [1, 2, 3], set()]) +@pytest.mark.parametrize("val", [(), [], [1, 2, 3], set()]) def test_rejection(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # Valid values # ------------ -@pytest.mark.parametrize('val', - ['foo', 'BAR', '']) +@pytest.mark.parametrize("val", ["foo", "BAR", ""]) def test_acceptance_values(val, validator_values): assert validator_values.validate_coerce(val) == val -@pytest.mark.parametrize('val', - ['FOO', 'bar', 'other', '1234']) +@pytest.mark.parametrize("val", ["FOO", "bar", "other", "1234"]) def test_rejection_values(val, validator_values): with pytest.raises(ValueError) as validation_failure: validator_values.validate_coerce(val) - assert 'Invalid value'.format(val=val) in str(validation_failure.value) + assert "Invalid value".format(val=val) in str(validation_failure.value) assert "['foo', 'BAR', '']" in str(validation_failure.value) # ### No blanks ### -@pytest.mark.parametrize('val', - ['bar', 'HELLO!!!', 'world!@#$%^&*()', u'\u03BC']) +@pytest.mark.parametrize("val", ["bar", "HELLO!!!", "world!@#$%^&*()", "\u03BC"]) def test_acceptance_no_blanks(val, validator_no_blanks): assert validator_no_blanks.validate_coerce(val) == val -@pytest.mark.parametrize('val', - ['']) +@pytest.mark.parametrize("val", [""]) def test_rejection_no_blanks(val, validator_no_blanks): with pytest.raises(ValueError) as validation_failure: validator_no_blanks.validate_coerce(val) - assert 'A non-empty string' in str(validation_failure.value) + assert "A non-empty string" in str(validation_failure.value) # Strict # ------ # ### Acceptance ### -@pytest.mark.parametrize('val', - ['bar', 'HELLO!!!', 'world!@#$%^&*()', '', u'\u03BC']) +@pytest.mark.parametrize("val", ["bar", "HELLO!!!", "world!@#$%^&*()", "", "\u03BC"]) def test_acceptance_strict(val, validator_strict): assert validator_strict.validate_coerce(val) == val # ### Rejection by value ### -@pytest.mark.parametrize('val', - [(), [], [1, 2, 3], set(), np.nan, np.pi, 23]) +@pytest.mark.parametrize("val", [(), [], [1, 2, 3], set(), np.nan, np.pi, 23]) def test_rejection_strict(val, validator_strict): with pytest.raises(ValueError) as validation_failure: validator_strict.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # Array ok # -------- # ### Acceptance ### -@pytest.mark.parametrize('val', - ['foo', 'BAR', '', 'baz', u'\u03BC']) +@pytest.mark.parametrize("val", ["foo", "BAR", "", "baz", "\u03BC"]) def test_acceptance_aok_scalars(val, validator_aok): assert validator_aok.validate_coerce(val) == val -@pytest.mark.parametrize('val', - ['foo', - ['foo'], - np.array(['BAR', '', u'\u03BC'], dtype='object'), - ['baz', 'baz', 'baz'], - ['foo', None, 'bar', u'\u03BC']]) +@pytest.mark.parametrize( + "val", + [ + "foo", + ["foo"], + np.array(["BAR", "", "\u03BC"], dtype="object"), + ["baz", "baz", "baz"], + ["foo", None, "bar", "\u03BC"], + ], +) def test_acceptance_aok_list(val, validator_aok): coerce_val = validator_aok.validate_coerce(val) if isinstance(val, np.ndarray): assert isinstance(coerce_val, np.ndarray) - assert np.array_equal(coerce_val, - np.array(val, dtype=coerce_val.dtype)) + assert np.array_equal(coerce_val, np.array(val, dtype=coerce_val.dtype)) elif isinstance(val, list): assert validator_aok.present(val) == tuple(val) else: @@ -149,55 +147,57 @@ def test_acceptance_aok_list(val, validator_aok): # ### Rejection by type ### -@pytest.mark.parametrize('val', - [['foo', ()], ['foo', 3, 4], [3, 2, 1]]) +@pytest.mark.parametrize("val", [["foo", ()], ["foo", 3, 4], [3, 2, 1]]) def test_rejection_aok(val, validator_aok_strict): with pytest.raises(ValueError) as validation_failure: validator_aok_strict.validate_coerce(val) - assert 'Invalid element(s)' in str(validation_failure.value) + assert "Invalid element(s)" in str(validation_failure.value) # ### Rejection by value ### -@pytest.mark.parametrize('val', - [['foo', 'bar'], - ['3', '4'], - ['BAR', 'BAR', 'hello!'], - ['foo', None]]) +@pytest.mark.parametrize( + "val", [["foo", "bar"], ["3", "4"], ["BAR", "BAR", "hello!"], ["foo", None]] +) def test_rejection_aok_values(val, validator_aok_values): with pytest.raises(ValueError) as validation_failure: validator_aok_values.validate_coerce(val) - assert 'Invalid element(s)' in str(validation_failure.value) + assert "Invalid element(s)" in str(validation_failure.value) # ### No blanks ### -@pytest.mark.parametrize('val', - ['123', - ['bar', 'HELLO!!!'], - np.array(['bar', 'HELLO!!!'], dtype='object'), - ['world!@#$%^&*()', u'\u03BC']]) +@pytest.mark.parametrize( + "val", + [ + "123", + ["bar", "HELLO!!!"], + np.array(["bar", "HELLO!!!"], dtype="object"), + ["world!@#$%^&*()", "\u03BC"], + ], +) def test_acceptance_no_blanks_aok(val, validator_no_blanks_aok): coerce_val = validator_no_blanks_aok.validate_coerce(val) if isinstance(val, np.ndarray): - assert np.array_equal(coerce_val, - np.array(val, dtype=coerce_val.dtype)) + assert np.array_equal(coerce_val, np.array(val, dtype=coerce_val.dtype)) elif isinstance(val, list): assert validator_no_blanks_aok.present(coerce_val) == tuple(val) else: assert coerce_val == val -@pytest.mark.parametrize('val', - ['', - ['foo', 'bar', ''], - np.array(['foo', 'bar', ''], dtype='object'), - [''], - np.array([''], dtype='object')]) -def test_rejection_no_blanks_aok(val, - validator_no_blanks_aok): +@pytest.mark.parametrize( + "val", + [ + "", + ["foo", "bar", ""], + np.array(["foo", "bar", ""], dtype="object"), + [""], + np.array([""], dtype="object"), + ], +) +def test_rejection_no_blanks_aok(val, validator_no_blanks_aok): with pytest.raises(ValueError) as validation_failure: validator_no_blanks_aok.validate_coerce(val) - assert 'A non-empty string' in str(validation_failure.value) - + assert "A non-empty string" in str(validation_failure.value) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_subplotid_validator.py b/packages/python/plotly/_plotly_utils/tests/validators/test_subplotid_validator.py index 0dcb1fd3f34..d4f7a849744 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_subplotid_validator.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_subplotid_validator.py @@ -7,34 +7,35 @@ # -------- @pytest.fixture() def validator(): - return SubplotidValidator('prop', 'parent', dflt='geo') + return SubplotidValidator("prop", "parent", dflt="geo") # Tests # ----- # ### Acceptance ### -@pytest.mark.parametrize('val', ['geo'] + ['geo%d' % i for i in range(2, 10)]) +@pytest.mark.parametrize("val", ["geo"] + ["geo%d" % i for i in range(2, 10)]) def test_acceptance(val, validator): assert validator.validate_coerce(val) == val # ### Rejection by type ### -@pytest.mark.parametrize('val', [ - 23, [], {}, set(), np.inf, np.nan -]) +@pytest.mark.parametrize("val", [23, [], {}, set(), np.inf, np.nan]) def test_rejection_type(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) - assert 'Invalid value' in str(validation_failure.value) + assert "Invalid value" in str(validation_failure.value) # ### Rejection by value ### -@pytest.mark.parametrize('val', [ - '', # Cannot be empty - 'bogus', # Must begin with 'geo' - 'geo0', # If followed by a number the number must be > 1 -]) +@pytest.mark.parametrize( + "val", + [ + "", # Cannot be empty + "bogus", # Must begin with 'geo' + "geo0", # If followed by a number the number must be > 1 + ], +) def test_rejection_value(val, validator): with pytest.raises(ValueError) as validation_failure: validator.validate_coerce(val) diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_validators_common.py b/packages/python/plotly/_plotly_utils/tests/validators/test_validators_common.py index 27394e31f00..282a075d6e8 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_validators_common.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_validators_common.py @@ -1,4 +1,3 @@ - # # ### Accept None ### # def test_accept_none(validator: NumberValidator): # assert validator.validate_coerce(None) is None diff --git a/packages/python/plotly/_plotly_utils/tests/validators/test_xarray_input.py b/packages/python/plotly/_plotly_utils/tests/validators/test_xarray_input.py index 18ddea9c375..b5a885a9238 100644 --- a/packages/python/plotly/_plotly_utils/tests/validators/test_xarray_input.py +++ b/packages/python/plotly/_plotly_utils/tests/validators/test_xarray_input.py @@ -2,42 +2,54 @@ import numpy as np import xarray import datetime -from _plotly_utils.basevalidators import (NumberValidator, - IntegerValidator, - DataArrayValidator, - ColorValidator) +from _plotly_utils.basevalidators import ( + NumberValidator, + IntegerValidator, + DataArrayValidator, + ColorValidator, +) @pytest.fixture def data_array_validator(request): - return DataArrayValidator('prop', 'parent') + return DataArrayValidator("prop", "parent") @pytest.fixture def integer_validator(request): - return IntegerValidator('prop', 'parent', array_ok=True) + return IntegerValidator("prop", "parent", array_ok=True) @pytest.fixture def number_validator(request): - return NumberValidator('prop', 'parent', array_ok=True) + return NumberValidator("prop", "parent", array_ok=True) @pytest.fixture def color_validator(request): - return ColorValidator('prop', 'parent', array_ok=True, colorscale_path='') + return ColorValidator("prop", "parent", array_ok=True, colorscale_path="") @pytest.fixture( - params=['int8', 'int16', 'int32', 'int64', - 'uint8', 'uint16', 'uint32', 'uint64', - 'float16', 'float32', 'float64']) + params=[ + "int8", + "int16", + "int32", + "int64", + "uint8", + "uint16", + "uint32", + "uint64", + "float16", + "float32", + "float64", + ] +) def numeric_dtype(request): return request.param -@pytest.fixture( - params=[xarray.DataArray]) +@pytest.fixture(params=[xarray.DataArray]) def xarray_type(request): return request.param @@ -49,7 +61,7 @@ def numeric_xarray(request, xarray_type, numeric_dtype): @pytest.fixture def color_object_xarray(request, xarray_type): - return xarray_type(['blue', 'green', 'red']*3) + return xarray_type(["blue", "green", "red"] * 3) def test_numeric_validator_numeric_xarray(number_validator, numeric_xarray): @@ -72,19 +84,18 @@ def test_integer_validator_numeric_xarray(integer_validator, numeric_xarray): assert isinstance(res, np.ndarray) # Check dtype - if numeric_xarray.dtype.kind in ('u', 'i'): + if numeric_xarray.dtype.kind in ("u", "i"): # Integer and unsigned integer dtype unchanged assert res.dtype == numeric_xarray.dtype else: # Float datatypes converted to default integer type of int32 - assert res.dtype == 'int32' + assert res.dtype == "int32" # Check values np.testing.assert_array_equal(res, numeric_xarray) -def test_data_array_validator(data_array_validator, - numeric_xarray): +def test_data_array_validator(data_array_validator, numeric_xarray): res = data_array_validator.validate_coerce(numeric_xarray) # Check type @@ -97,8 +108,7 @@ def test_data_array_validator(data_array_validator, np.testing.assert_array_equal(res, numeric_xarray) -def test_color_validator_numeric(color_validator, - numeric_xarray): +def test_color_validator_numeric(color_validator, numeric_xarray): res = color_validator.validate_coerce(numeric_xarray) # Check type @@ -111,8 +121,7 @@ def test_color_validator_numeric(color_validator, np.testing.assert_array_equal(res, numeric_xarray) -def test_color_validator_object(color_validator, - color_object_xarray): +def test_color_validator_object(color_validator, color_object_xarray): res = color_validator.validate_coerce(color_object_xarray) @@ -120,7 +129,7 @@ def test_color_validator_object(color_validator, assert isinstance(res, np.ndarray) # Check dtype - assert res.dtype == 'object' + assert res.dtype == "object" # Check values np.testing.assert_array_equal(res, color_object_xarray) diff --git a/packages/python/plotly/_plotly_utils/utils.py b/packages/python/plotly/_plotly_utils/utils.py index eda9df70cf2..07e6447cdde 100644 --- a/packages/python/plotly/_plotly_utils/utils.py +++ b/packages/python/plotly/_plotly_utils/utils.py @@ -8,9 +8,7 @@ from _plotly_utils.optional_imports import get_module -PY36_OR_LATER = ( - sys.version_info.major == 3 and sys.version_info.minor >= 6 -) +PY36_OR_LATER = sys.version_info.major == 3 and sys.version_info.minor >= 6 class PlotlyJSONEncoder(_json.JSONEncoder): @@ -31,7 +29,7 @@ def coerce_to_strict(self, const): """ # before python 2.7, 'true', 'false', 'null', were include here. - if const in ('Infinity', '-Infinity', 'NaN'): + if const in ("Infinity", "-Infinity", "NaN"): return None else: return const @@ -51,8 +49,7 @@ def encode(self, o): # 1. `loads` to switch Infinity, -Infinity, NaN to None # 2. `dumps` again so you get 'null' instead of extended JSON try: - new_o = _json.loads(encoded_o, - parse_constant=self.coerce_to_strict) + new_o = _json.loads(encoded_o, parse_constant=self.coerce_to_strict) except ValueError: # invalid separators will fail here. raise a helpful exception @@ -61,10 +58,12 @@ def encode(self, o): "valid JSON separators?" ) else: - return _json.dumps(new_o, sort_keys=self.sort_keys, - indent=self.indent, - separators=(self.item_separator, - self.key_separator)) + return _json.dumps( + new_o, + sort_keys=self.sort_keys, + indent=self.indent, + separators=(self.item_separator, self.key_separator), + ) def default(self, obj): """ @@ -106,7 +105,7 @@ def default(self, obj): self.encode_as_datetime_v4, self.encode_as_date, self.encode_as_list, # because some values have `tolist` do last. - self.encode_as_decimal + self.encode_as_decimal, ) for encoding_method in encoding_methods: try: @@ -126,7 +125,7 @@ def encode_as_plotly(obj): @staticmethod def encode_as_list(obj): """Attempt to use `tolist` method to convert to normal Python list.""" - if hasattr(obj, 'tolist'): + if hasattr(obj, "tolist"): return obj.tolist() else: raise NotEncodable @@ -134,7 +133,7 @@ def encode_as_list(obj): @staticmethod def encode_as_sage(obj): """Attempt to convert sage.all.RR to floats and sage.all.ZZ to ints""" - sage_all = get_module('sage.all') + sage_all = get_module("sage.all") if not sage_all: raise NotEncodable @@ -148,7 +147,7 @@ def encode_as_sage(obj): @staticmethod def encode_as_pandas(obj): """Attempt to convert pandas.NaT""" - pandas = get_module('pandas') + pandas = get_module("pandas") if not pandas: raise NotEncodable @@ -160,12 +159,12 @@ def encode_as_pandas(obj): @staticmethod def encode_as_numpy(obj): """Attempt to convert numpy.ma.core.masked""" - numpy = get_module('numpy') + numpy = get_module("numpy") if not numpy: raise NotEncodable if obj is numpy.ma.core.masked: - return float('nan') + return float("nan") else: raise NotEncodable @@ -182,8 +181,10 @@ def encode_as_datetime(obj): """Attempt to convert to utc-iso time string using datetime methods.""" # Since PY36, isoformat() converts UTC # datetime.datetime objs to UTC T04:00:00 - if not (PY36_OR_LATER and (isinstance(obj, datetime.datetime) and - obj.tzinfo is None)): + if not ( + PY36_OR_LATER + and (isinstance(obj, datetime.datetime) and obj.tzinfo is None) + ): try: obj = obj.astimezone(pytz.utc) except ValueError: @@ -230,32 +231,33 @@ class NotEncodable(Exception): def iso_to_plotly_time_string(iso_string): """Remove timezone info and replace 'T' delimeter with ' ' (ws).""" # make sure we don't send timezone info to plotly - if (iso_string.split('-')[:3] is '00:00') or\ - (iso_string.split('+')[0] is '00:00'): - raise Exception("Plotly won't accept timestrings with timezone info.\n" - "All timestrings are assumed to be in UTC.") + if (iso_string.split("-")[:3] is "00:00") or (iso_string.split("+")[0] is "00:00"): + raise Exception( + "Plotly won't accept timestrings with timezone info.\n" + "All timestrings are assumed to be in UTC." + ) - iso_string = iso_string.replace('-00:00', '').replace('+00:00', '') + iso_string = iso_string.replace("-00:00", "").replace("+00:00", "") - if iso_string.endswith('T00:00:00'): - return iso_string.replace('T00:00:00', '') + if iso_string.endswith("T00:00:00"): + return iso_string.replace("T00:00:00", "") else: - return iso_string.replace('T', ' ') + return iso_string.replace("T", " ") def template_doc(**names): def _decorator(func): - if sys.version[:3] != '3.2': + if sys.version[:3] != "3.2": if func.__doc__ is not None: func.__doc__ = func.__doc__.format(**names) return func + return _decorator def _natural_sort_strings(vals, reverse=False): - def key(v): - v_parts = re.split(r'(\d+)', v) + v_parts = re.split(r"(\d+)", v) for i in range(len(v_parts)): try: v_parts[i] = int(v_parts[i]) diff --git a/packages/python/plotly/codegen/__init__.py b/packages/python/plotly/codegen/__init__.py index 9f71fbc871c..d33b785bf8f 100644 --- a/packages/python/plotly/codegen/__init__.py +++ b/packages/python/plotly/codegen/__init__.py @@ -1,17 +1,28 @@ import json import os.path as opath import shutil - -from codegen.datatypes import (build_datatype_py, write_datatype_py) -from codegen.compatibility import (write_deprecated_datatypes, - write_graph_objs_graph_objs, - DEPRECATED_DATATYPES) +import subprocess + +from codegen.datatypes import build_datatype_py, write_datatype_py +from codegen.compatibility import ( + write_deprecated_datatypes, + write_graph_objs_graph_objs, + DEPRECATED_DATATYPES, +) from codegen.figure import write_figure_classes -from codegen.utils import (TraceNode, PlotlyNode, LayoutNode, FrameNode, - write_init_py, ElementDefaultsNode) -from codegen.validators import (write_validator_py, - write_data_validator_py, - get_data_validator_instance) +from codegen.utils import ( + TraceNode, + PlotlyNode, + LayoutNode, + FrameNode, + write_init_py, + ElementDefaultsNode, +) +from codegen.validators import ( + write_validator_py, + write_data_validator_py, + get_data_validator_instance, +) # Import notes @@ -31,22 +42,15 @@ def preprocess_schema(plotly_schema): # Update template # --------------- - layout = plotly_schema['layout']['layoutAttributes'] + layout = plotly_schema["layout"]["layoutAttributes"] # Create codegen-friendly template scheme template = { "data": { - trace + 's': { - 'items': { - trace: { - }, - }, - "role": "object" - } - for trace in plotly_schema['traces'] - }, - "layout": { + trace + "s": {"items": {trace: {}}, "role": "object"} + for trace in plotly_schema["traces"] }, + "layout": {}, "description": """\ Default attributes to be applied to the plot. This should be a dict with format: `{'layout': layoutTemplate, 'data': @@ -65,17 +69,18 @@ def preprocess_schema(plotly_schema): invisible. Any named template item not referenced is appended to the end of the array, so this can be used to add a watermark annotation or a logo image, for example. To omit one of these items on the plot, make -an item with matching `templateitemname` and `visible: false`.""" +an item with matching `templateitemname` and `visible: false`.""", } - layout['template'] = template + layout["template"] = template # Rename concentrationscales to colorscale to match conventions - items = plotly_schema['traces']['sankey']['attributes']\ - ['link']['colorscales']['items'] + items = plotly_schema["traces"]["sankey"]["attributes"]["link"]["colorscales"][ + "items" + ] - if 'concentrationscales' in items: - items['colorscale'] = items.pop('concentrationscales') + if "concentrationscales" in items: + items["colorscale"] = items.pop("concentrationscales") def perform_codegen(): @@ -84,36 +89,32 @@ def perform_codegen(): # (relative to project root) abs_file_path = opath.realpath(__file__) packages_py = opath.dirname(opath.dirname(opath.dirname(abs_file_path))) - outdir = opath.join(packages_py, 'plotly', 'plotly') + outdir = opath.join(packages_py, "plotly", "plotly") # Delete prior codegen output # --------------------------- - validators_pkgdir = opath.join(outdir, 'validators') + validators_pkgdir = opath.join(outdir, "validators") if opath.exists(validators_pkgdir): shutil.rmtree(validators_pkgdir) - graph_objs_pkgdir = opath.join(outdir, 'graph_objs') + graph_objs_pkgdir = opath.join(outdir, "graph_objs") if opath.exists(graph_objs_pkgdir): shutil.rmtree(graph_objs_pkgdir) # plotly/datatypes is not used anymore, but was at one point so we'll # still delete it if we find it in case a developer is upgrading from an # older version - datatypes_pkgdir = opath.join(outdir, 'datatypes') + datatypes_pkgdir = opath.join(outdir, "datatypes") if opath.exists(datatypes_pkgdir): shutil.rmtree(datatypes_pkgdir) # Load plotly schema # ------------------ plot_schema_path = opath.join( - packages_py, - 'plotly', - 'codegen', - 'resources', - 'plot-schema.json', + packages_py, "plotly", "codegen", "resources", "plot-schema.json" ) - with open(plot_schema_path, 'r') as f: + with open(plot_schema_path, "r") as f: plotly_schema = json.load(f) # Preprocess Schema @@ -125,35 +126,38 @@ def perform_codegen(): # ### TraceNode ### base_traces_node = TraceNode(plotly_schema) compound_trace_nodes = PlotlyNode.get_all_compound_datatype_nodes( - plotly_schema, TraceNode) - all_trace_nodes = PlotlyNode.get_all_datatype_nodes( - plotly_schema, TraceNode) + plotly_schema, TraceNode + ) + all_trace_nodes = PlotlyNode.get_all_datatype_nodes(plotly_schema, TraceNode) # ### LayoutNode ### compound_layout_nodes = PlotlyNode.get_all_compound_datatype_nodes( - plotly_schema, LayoutNode) + plotly_schema, LayoutNode + ) layout_node = compound_layout_nodes[0] - all_layout_nodes = PlotlyNode.get_all_datatype_nodes( - plotly_schema, LayoutNode) + all_layout_nodes = PlotlyNode.get_all_datatype_nodes(plotly_schema, LayoutNode) - subplot_nodes = [node for node in layout_node.child_compound_datatypes - if node.node_data.get('_isSubplotObj', False)] + subplot_nodes = [ + node + for node in layout_node.child_compound_datatypes + if node.node_data.get("_isSubplotObj", False) + ] # ### FrameNode ### compound_frame_nodes = PlotlyNode.get_all_compound_datatype_nodes( - plotly_schema, FrameNode) + plotly_schema, FrameNode + ) frame_node = compound_frame_nodes[0] - all_frame_nodes = PlotlyNode.get_all_datatype_nodes( - plotly_schema, FrameNode) + all_frame_nodes = PlotlyNode.get_all_datatype_nodes(plotly_schema, FrameNode) # ### All nodes ### - all_datatype_nodes = (all_trace_nodes + - all_layout_nodes + - all_frame_nodes) + all_datatype_nodes = all_trace_nodes + all_layout_nodes + all_frame_nodes - all_compound_nodes = [node for node in all_datatype_nodes - if node.is_compound and - not isinstance(node, ElementDefaultsNode)] + all_compound_nodes = [ + node + for node in all_datatype_nodes + if node.is_compound and not isinstance(node, ElementDefaultsNode) + ] # Write out validators # -------------------- @@ -196,12 +200,14 @@ def perform_codegen(): layout_validator = layout_node.get_validator_instance() frame_validator = frame_node.get_validator_instance() - write_figure_classes(outdir, - base_traces_node, - data_validator, - layout_validator, - frame_validator, - subplot_nodes) + write_figure_classes( + outdir, + base_traces_node, + data_validator, + layout_validator, + frame_validator, + subplot_nodes, + ) # Write datatype __init__.py files # -------------------------------- @@ -214,8 +220,7 @@ def perform_codegen(): if node.child_compound_datatypes: path_to_datatype_import_info.setdefault(key, []).append( - (f"plotly.graph_objs{node.parent_dotpath_str}", - node.name_undercase) + (f"plotly.graph_objs{node.parent_dotpath_str}", node.name_undercase) ) # ### Write plotly/graph_objs/graph_objs.py ### @@ -225,7 +230,7 @@ def perform_codegen(): # ### Add Figure and FigureWidget ### root_datatype_imports = path_to_datatype_import_info[()] - root_datatype_imports.append(('._figure', 'Figure')) + root_datatype_imports.append(("._figure", "Figure")) optional_figure_widget_import = """ try: @@ -241,13 +246,17 @@ def perform_codegen(): root_datatype_imports.append(optional_figure_widget_import) # ### Add deprecations ### - root_datatype_imports.append(('._deprecations', DEPRECATED_DATATYPES.keys())) + root_datatype_imports.append(("._deprecations", DEPRECATED_DATATYPES.keys())) # ### Output datatype __init__.py files ### - graph_objs_pkg = opath.join(outdir, 'graph_objs') + graph_objs_pkg = opath.join(outdir, "graph_objs") for path_parts, import_pairs in path_to_datatype_import_info.items(): write_init_py(graph_objs_pkg, path_parts, import_pairs) + # ### Run black code formatter on output directories ### + subprocess.call(["black", "--target-version=py27", validators_pkgdir]) + subprocess.call(["black", "--target-version=py27", graph_objs_pkgdir]) + -if __name__ == '__main__': +if __name__ == "__main__": perform_codegen() diff --git a/packages/python/plotly/codegen/compatibility.py b/packages/python/plotly/codegen/compatibility.py index 09f60900bca..7dd7fc89d6a 100644 --- a/packages/python/plotly/codegen/compatibility.py +++ b/packages/python/plotly/codegen/compatibility.py @@ -1,88 +1,43 @@ from io import StringIO from os import path as opath -from codegen.utils import format_and_write_source_py +from codegen.utils import write_source_py # Build dict with info about deprecated datatypes DEPRECATED_DATATYPES = { # List types - 'Data': - {'base_type': list, - 'new': ['Scatter', 'Bar', 'Area', 'Histogram', 'etc.']}, - 'Annotations': - {'base_type': list, - 'new': ['layout.Annotation', 'layout.scene.Annotation']}, - 'Frames': - {'base_type': list, - 'new': ['Frame']}, - + "Data": {"base_type": list, "new": ["Scatter", "Bar", "Area", "Histogram", "etc."]}, + "Annotations": { + "base_type": list, + "new": ["layout.Annotation", "layout.scene.Annotation"], + }, + "Frames": {"base_type": list, "new": ["Frame"]}, # Dict types - 'AngularAxis': - {'base_type': dict, - 'new': ['layout', 'layout.polar']}, - 'Annotation': - {'base_type': dict, - 'new': ['layout', 'layout.scene']}, - 'ColorBar': - {'base_type': dict, - 'new': ['scatter.marker', 'surface', 'etc.']}, - 'Contours': - {'base_type': dict, - 'new': ['contour', 'surface', 'etc.']}, - 'ErrorX': - {'base_type': dict, - 'new': ['scatter', 'histogram', 'etc.']}, - 'ErrorY': - {'base_type': dict, - 'new': ['scatter', 'histogram', 'etc.']}, - 'ErrorZ': - {'base_type': dict, - 'new': ['scatter3d']}, - 'Font': - {'base_type': dict, - 'new': ['layout', 'layout.hoverlabel', 'etc.']}, - 'Legend': - {'base_type': dict, - 'new': ['layout']}, - 'Line': - {'base_type': dict, - 'new': ['scatter', 'layout.shape', 'etc.']}, - 'Margin': - {'base_type': dict, - 'new': ['layout']}, - 'Marker': - {'base_type': dict, - 'new': ['scatter', 'histogram.selected', 'etc.']}, - 'RadialAxis': - {'base_type': dict, - 'new': ['layout', 'layout.polar']}, - 'Scene': - {'base_type': dict, - 'new': ['Scene']}, - 'Stream': - {'base_type': dict, - 'new': ['scatter', 'area']}, - 'XAxis': - {'base_type': dict, - 'new': ['layout', 'layout.scene']}, - 'YAxis': - {'base_type': dict, - 'new': ['layout', 'layout.scene']}, - 'ZAxis': - {'base_type': dict, - 'new': ['layout.scene']}, - 'XBins': - {'base_type': dict, - 'new': ['histogram', 'histogram2d']}, - 'YBins': - {'base_type': dict, - 'new': ['histogram', 'histogram2d']}, - 'Trace': - {'base_type': dict, - 'new': ['Scatter', 'Bar', 'Area', 'Histogram', 'etc.']}, - 'Histogram2dcontour': - {'base_type': dict, - 'new': ['Histogram2dContour']}, + "AngularAxis": {"base_type": dict, "new": ["layout", "layout.polar"]}, + "Annotation": {"base_type": dict, "new": ["layout", "layout.scene"]}, + "ColorBar": {"base_type": dict, "new": ["scatter.marker", "surface", "etc."]}, + "Contours": {"base_type": dict, "new": ["contour", "surface", "etc."]}, + "ErrorX": {"base_type": dict, "new": ["scatter", "histogram", "etc."]}, + "ErrorY": {"base_type": dict, "new": ["scatter", "histogram", "etc."]}, + "ErrorZ": {"base_type": dict, "new": ["scatter3d"]}, + "Font": {"base_type": dict, "new": ["layout", "layout.hoverlabel", "etc."]}, + "Legend": {"base_type": dict, "new": ["layout"]}, + "Line": {"base_type": dict, "new": ["scatter", "layout.shape", "etc."]}, + "Margin": {"base_type": dict, "new": ["layout"]}, + "Marker": {"base_type": dict, "new": ["scatter", "histogram.selected", "etc."]}, + "RadialAxis": {"base_type": dict, "new": ["layout", "layout.polar"]}, + "Scene": {"base_type": dict, "new": ["Scene"]}, + "Stream": {"base_type": dict, "new": ["scatter", "area"]}, + "XAxis": {"base_type": dict, "new": ["layout", "layout.scene"]}, + "YAxis": {"base_type": dict, "new": ["layout", "layout.scene"]}, + "ZAxis": {"base_type": dict, "new": ["layout.scene"]}, + "XBins": {"base_type": dict, "new": ["histogram", "histogram2d"]}, + "YBins": {"base_type": dict, "new": ["histogram", "histogram2d"]}, + "Trace": { + "base_type": dict, + "new": ["Scatter", "Bar", "Area", "Histogram", "etc."], + }, + "Histogram2dcontour": {"base_type": dict, "new": ["Histogram2dContour"]}, } @@ -102,26 +57,29 @@ def build_deprecated_datatypes_py(): # Write warnings import # --------------------- - buffer.write('import warnings\n') + buffer.write("import warnings\n") # Write warnings filter # --------------------- # Use filter to enable DeprecationWarnings on our deprecated classes - buffer.write(r""" + buffer.write( + r""" warnings.filterwarnings('default', r'plotly\.graph_objs\.\w+ is deprecated', DeprecationWarning) -""") +""" + ) # Write deprecated class definitions # ---------------------------------- for class_name, opts in DEPRECATED_DATATYPES.items(): - base_class_name = opts['base_type'].__name__ + base_class_name = opts["base_type"].__name__ depr_msg = build_deprecation_message(class_name, **opts) - buffer.write(f"""\ + buffer.write( + f"""\ class {class_name}({base_class_name}): \"\"\" {depr_msg} @@ -131,7 +89,8 @@ def __init__(self, *args, **kwargs): {depr_msg} \"\"\" warnings.warn(\"\"\"{depr_msg}\"\"\", DeprecationWarning) - super({class_name}, self).__init__(*args, **kwargs)\n\n\n""") + super({class_name}, self).__init__(*args, **kwargs)\n\n\n""" + ) # Return source string # -------------------- @@ -171,10 +130,10 @@ def build_deprecation_message(class_name, base_type, new): replacements = [] for repl in new: - if repl == 'etc.': + if repl == "etc.": replacements.append(repl) else: - repl_parts = repl.split('.') + repl_parts = repl.split(".") # Add class_name if class not provided repl_is_class = repl_parts[-1][0].isupper() @@ -182,10 +141,10 @@ def build_deprecation_message(class_name, base_type, new): repl_parts.append(class_name) # Add plotly.graph_objs prefix - full_class_str = '.'.join(['plotly', 'graph_objs'] + repl_parts) + full_class_str = ".".join(["plotly", "graph_objs"] + repl_parts) replacements.append(full_class_str) - replacemens_str = '\n - '.join(replacements) + replacemens_str = "\n - ".join(replacements) if base_type == list: return f"""\ @@ -218,11 +177,11 @@ def write_deprecated_datatypes(outdir): # Generate source code # -------------------- datatype_source = build_deprecated_datatypes_py() - filepath = opath.join(outdir, 'graph_objs', '_deprecations.py') + filepath = opath.join(outdir, "graph_objs", "_deprecations.py") # Write file # ---------- - format_and_write_source_py(datatype_source, filepath) + write_source_py(datatype_source, filepath) def write_graph_objs_graph_objs(outdir): @@ -243,8 +202,10 @@ def write_graph_objs_graph_objs(outdir): ------- None """ - filepath = opath.join(outdir, 'graph_objs', 'graph_objs.py') - with open(filepath, 'wt') as f: - f.write("""\ + filepath = opath.join(outdir, "graph_objs", "graph_objs.py") + with open(filepath, "wt") as f: + f.write( + """\ from plotly.graph_objs import * -""") +""" + ) diff --git a/packages/python/plotly/codegen/datatypes.py b/packages/python/plotly/codegen/datatypes.py index a4bd64d0752..c74f665e16c 100644 --- a/packages/python/plotly/codegen/datatypes.py +++ b/packages/python/plotly/codegen/datatypes.py @@ -2,8 +2,7 @@ import textwrap from io import StringIO -from codegen.utils import (PlotlyNode, - format_and_write_source_py) +from codegen.utils import PlotlyNode, write_source_py def get_typing_type(plotly_type, array_ok=False): @@ -21,27 +20,27 @@ def get_typing_type(plotly_type, array_ok=False): str Python type string """ - if plotly_type == 'data_array': - pytype = 'numpy.ndarray' - elif plotly_type == 'info_array': - pytype = 'list' - elif plotly_type == 'colorlist': - pytype = 'list' - elif plotly_type in ('string', 'color', 'colorscale', 'subplotid'): - pytype = 'str' - elif plotly_type in ('enumerated', 'flaglist', 'any'): - pytype = 'Any' - elif plotly_type in ('number', 'angle'): - pytype = 'int|float' - elif plotly_type == 'integer': - pytype = 'int' - elif plotly_type == 'boolean': - pytype = 'bool' + if plotly_type == "data_array": + pytype = "numpy.ndarray" + elif plotly_type == "info_array": + pytype = "list" + elif plotly_type == "colorlist": + pytype = "list" + elif plotly_type in ("string", "color", "colorscale", "subplotid"): + pytype = "str" + elif plotly_type in ("enumerated", "flaglist", "any"): + pytype = "Any" + elif plotly_type in ("number", "angle"): + pytype = "int|float" + elif plotly_type == "integer": + pytype = "int" + elif plotly_type == "boolean": + pytype = "bool" else: - raise ValueError('Unknown plotly type: %s' % plotly_type) + raise ValueError("Unknown plotly type: %s" % plotly_type) if array_ok: - return f'{pytype}|numpy.ndarray' + return f"{pytype}|numpy.ndarray" else: return pytype @@ -73,17 +72,16 @@ def build_datatype_py(node): # corresponding trace/layout class (e.g. plotly.graph_objs.Scatter). # So rather than generate a class definition, we just import the # corresponding trace/layout class - if node.parent_path_str == 'layout.template.data': + if node.parent_path_str == "layout.template.data": return f"from plotly.graph_objs import {node.name_datatype_class}" - elif node.path_str == 'layout.template.layout': + elif node.path_str == "layout.template.layout": return "from plotly.graph_objs import Layout" # Extract node properties # ----------------------- undercase = node.name_undercase datatype_class = node.name_datatype_class - literal_nodes = [n for n in node.child_literals if - n.plotly_name in ['type']] + literal_nodes = [n for n in node.child_literals if n.plotly_name in ["type"]] # Initialze source code buffer # ---------------------------- @@ -92,42 +90,51 @@ def build_datatype_py(node): # Imports # ------- buffer.write( - f'from plotly.basedatatypes ' - f'import {node.name_base_datatype} as _{node.name_base_datatype}\n') - buffer.write( - f'import copy as _copy\n') + f"from plotly.basedatatypes " + f"import {node.name_base_datatype} as _{node.name_base_datatype}\n" + ) + buffer.write(f"import copy as _copy\n") # Write class definition # ---------------------- - buffer.write(f""" + buffer.write( + f""" -class {datatype_class}(_{node.name_base_datatype}):\n""") +class {datatype_class}(_{node.name_base_datatype}):\n""" + ) # ### Layout subplot properties ### - if datatype_class == 'Layout': - subplot_nodes = [node for node in node.child_compound_datatypes - if node.node_data.get('_isSubplotObj', False)] + if datatype_class == "Layout": + subplot_nodes = [ + node + for node in node.child_compound_datatypes + if node.node_data.get("_isSubplotObj", False) + ] subplot_names = [n.name_property for n in subplot_nodes] - buffer.write(f""" + buffer.write( + f""" _subplotid_prop_names = {repr(subplot_names)} import re _subplotid_prop_re = re.compile( '^(' + '|'.join(_subplotid_prop_names) + ')(\d+)$') -""") +""" + ) - subplot_validator_names = [n.name_validator_class - for n in subplot_nodes] + subplot_validator_names = [n.name_validator_class for n in subplot_nodes] - validator_csv = ', '.join(subplot_validator_names) + validator_csv = ", ".join(subplot_validator_names) subplot_dict_str = ( - '{' + - ', '.join(f"'{subname}': {valname}" for subname, valname in - zip(subplot_names, subplot_validator_names)) + - '}' + "{" + + ", ".join( + f"'{subname}': {valname}" + for subname, valname in zip(subplot_names, subplot_validator_names) + ) + + "}" ) - buffer.write(f""" + buffer.write( + f""" @property def _subplotid_validators(self): \"\"\" @@ -143,7 +150,8 @@ def _subplotid_validators(self): def _subplot_re_match(self, prop): return self._subplotid_prop_re.match(prop) -""") +""" + ) # ### Property definitions ### child_datatype_nodes = node.child_datatypes @@ -151,31 +159,36 @@ def _subplot_re_match(self, prop): subtype_nodes = child_datatype_nodes for subtype_node in subtype_nodes: if subtype_node.is_array_element: - prop_type = (f"tuple[plotly.graph_objs{node.dotpath_str}." + - f"{subtype_node.name_datatype_class}]") + prop_type = ( + f"tuple[plotly.graph_objs{node.dotpath_str}." + + f"{subtype_node.name_datatype_class}]" + ) elif subtype_node.is_compound: - prop_type = (f"plotly.graph_objs{node.dotpath_str}." + - f"{subtype_node.name_datatype_class}") + prop_type = ( + f"plotly.graph_objs{node.dotpath_str}." + + f"{subtype_node.name_datatype_class}" + ) elif subtype_node.is_mapped: - prop_type = '' + prop_type = "" else: - prop_type = get_typing_type( - subtype_node.datatype, subtype_node.is_array_ok) + prop_type = get_typing_type(subtype_node.datatype, subtype_node.is_array_ok) # #### Get property description #### raw_description = subtype_node.description - property_description = '\n'.join( - textwrap.wrap(raw_description, - initial_indent=' ' * 8, - subsequent_indent=' ' * 8, - width=79 - 8)) + property_description = "\n".join( + textwrap.wrap( + raw_description, + initial_indent=" " * 8, + subsequent_indent=" " * 8, + width=79 - 8, + ) + ) # # #### Get validator description #### validator = subtype_node.get_validator_instance() if validator: - validator_description = reindent_validator_description( - validator, 4) + validator_description = reindent_validator_description(validator, 4) # #### Combine to form property docstring #### if property_description.strip(): @@ -188,7 +201,8 @@ def _subplot_re_match(self, prop): property_docstring = property_description # #### Write get property #### - buffer.write(f"""\ + buffer.write( + f"""\ # {subtype_node.name_property} # {'-' * len(subtype_node.name_property)} @@ -201,27 +215,33 @@ def {subtype_node.name_property}(self): ------- {prop_type} \"\"\" - return self['{subtype_node.name_property}']""") + return self['{subtype_node.name_property}']""" + ) # #### Write set property #### - buffer.write(f""" + buffer.write( + f""" @{subtype_node.name_property}.setter def {subtype_node.name_property}(self, val): - self['{subtype_node.name_property}'] = val\n""") + self['{subtype_node.name_property}'] = val\n""" + ) # ### Literals ### for literal_node in literal_nodes: - buffer.write(f"""\ + buffer.write( + f"""\ # {literal_node.name_property} # {'-' * len(literal_node.name_property)} @property def {literal_node.name_property}(self): - return self._props['{literal_node.name_property}']\n""") + return self._props['{literal_node.name_property}']\n""" + ) # ### Private properties descriptions ### - buffer.write(f""" + buffer.write( + f""" # property parent name # -------------------- @@ -233,37 +253,46 @@ def _parent_path_str(self): # --------------------------- @property def _prop_descriptions(self): - return \"\"\"\\""") + return \"\"\"\\""" + ) buffer.write(node.get_constructor_params_docstring(indent=8)) - buffer.write(f""" - \"\"\"""") + buffer.write( + f""" + \"\"\"""" + ) mapped_nodes = [n for n in subtype_nodes if n.is_mapped] mapped_properties = {n.plotly_name: n.relative_path for n in mapped_nodes} if mapped_properties: - buffer.write(f""" + buffer.write( + f""" - _mapped_properties = {repr(mapped_properties)}""") + _mapped_properties = {repr(mapped_properties)}""" + ) # ### Constructor ### - buffer.write(f""" - def __init__(self""") + buffer.write( + f""" + def __init__(self""" + ) - add_constructor_params(buffer, - subtype_nodes, - prepend_extras=['arg']) + add_constructor_params(buffer, subtype_nodes, prepend_extras=["arg"]) # ### Constructor Docstring ### - header = f'Construct a new {datatype_class} object' - class_name = (f'plotly.graph_objs' - f'{node.parent_dotpath_str}.' - f'{node.name_datatype_class}') + header = f"Construct a new {datatype_class} object" + class_name = ( + f"plotly.graph_objs" f"{node.parent_dotpath_str}." f"{node.name_datatype_class}" + ) - extras = [(f'arg', - f'dict of properties compatible with this constructor ' - f'or an instance of {class_name}')] + extras = [ + ( + f"arg", + f"dict of properties compatible with this constructor " + f"or an instance of {class_name}", + ) + ] add_docstring( buffer, @@ -273,7 +302,8 @@ def __init__(self""") return_type=node.name_datatype_class, ) - buffer.write(f""" + buffer.write( + f""" super({datatype_class}, self).__init__('{node.name_property}') # Validate arg @@ -300,57 +330,71 @@ def __init__(self""") {undercase} as v_{undercase}) # Initialize validators - # ---------------------""") + # ---------------------""" + ) for subtype_node in subtype_nodes: if not subtype_node.is_mapped: sub_name = subtype_node.name_property sub_validator = subtype_node.name_validator_class - buffer.write(f""" - self._validators['{sub_name}'] = v_{undercase}.{sub_validator}()""") + buffer.write( + f""" + self._validators['{sub_name}'] = v_{undercase}.{sub_validator}()""" + ) - buffer.write(f""" + buffer.write( + f""" # Populate data dict with properties - # ----------------------------------""") + # ----------------------------------""" + ) for subtype_node in subtype_nodes: name_prop = subtype_node.name_property - if name_prop == 'template' or subtype_node.is_mapped: + if name_prop == "template" or subtype_node.is_mapped: # Special handling for layout.template to avoid infinite # recursion. Only initialize layout.template object if non-None # value specified. # # Same special handling for mapped nodes (e.g. layout.titlefont) # to keep them for overriding mapped property with None - buffer.write(f""" + buffer.write( + f""" _v = arg.pop('{name_prop}', None) _v = {name_prop} if {name_prop} is not None else _v if _v is not None: - self['{name_prop}'] = _v""") + self['{name_prop}'] = _v""" + ) else: - buffer.write(f""" + buffer.write( + f""" _v = arg.pop('{name_prop}', None) self['{name_prop}'] = {name_prop} \ -if {name_prop} is not None else _v""") +if {name_prop} is not None else _v""" + ) # ### Literals ### if literal_nodes: - buffer.write(f""" + buffer.write( + f""" # Read-only literals # ------------------ - from _plotly_utils.basevalidators import LiteralValidator""") + from _plotly_utils.basevalidators import LiteralValidator""" + ) for literal_node in literal_nodes: lit_name = literal_node.name_property lit_parent = literal_node.parent_path_str lit_val = repr(literal_node.node_data) - buffer.write(f""" + buffer.write( + f""" self._props['{lit_name}'] = {lit_val} self._validators['{lit_name}'] =\ LiteralValidator(plotly_name='{lit_name}',\ parent_name='{lit_parent}', val={lit_val}) - arg.pop('{lit_name}', None)""") + arg.pop('{lit_name}', None)""" + ) - buffer.write(f""" + buffer.write( + f""" # Process unknown kwargs # ---------------------- @@ -359,7 +403,8 @@ def __init__(self""") # Reset skip_invalid # ------------------ self._skip_invalid = False -""") +""" + ) # Return source string # -------------------- @@ -387,14 +432,10 @@ def reindent_validator_description(validator, extra_indent): Validator description string """ # Remove leading indent and add extra spaces to subsequent indent - return ('\n' + ' ' * extra_indent).join( - validator.description().strip().split('\n')) + return ("\n" + " " * extra_indent).join(validator.description().strip().split("\n")) -def add_constructor_params(buffer, - subtype_nodes, - prepend_extras=(), - append_extras=()): +def add_constructor_params(buffer, subtype_nodes, prepend_extras=(), append_extras=()): """ Write datatype constructor params to a buffer @@ -413,30 +454,35 @@ def add_constructor_params(buffer, None """ for extra in prepend_extras: - buffer.write(f""", - {extra}=None""") + buffer.write( + f""", + {extra}=None""" + ) for i, subtype_node in enumerate(subtype_nodes): - buffer.write(f""", - {subtype_node.name_property}=None""") + buffer.write( + f""", + {subtype_node.name_property}=None""" + ) for extra in append_extras: - buffer.write(f""", - {extra}=None""") + buffer.write( + f""", + {extra}=None""" + ) - buffer.write(""", - **kwargs""") - buffer.write(f""" - ):""") + buffer.write( + """, + **kwargs""" + ) + buffer.write( + f""" + ):""" + ) def add_docstring( - buffer, - node, - header, - prepend_extras=(), - append_extras=(), - return_type=None, + buffer, node, header, prepend_extras=(), append_extras=(), return_type=None ): """ Write docstring for a compound datatype node @@ -472,62 +518,73 @@ def add_docstring( if node_description: description_lines = textwrap.wrap( node_description, - width=79-8, - initial_indent=' ' * 8, - subsequent_indent=' ' * 8) + width=79 - 8, + initial_indent=" " * 8, + subsequent_indent=" " * 8, + ) - node_description = '\n'.join(description_lines) + '\n\n' + node_description = "\n".join(description_lines) + "\n\n" # Write header and description # ---------------------------- - buffer.write(f""" + buffer.write( + f""" \"\"\" {header} {node_description} Parameters - ----------""") + ----------""" + ) # Write parameter descriptions # ---------------------------- # Write any prepend extras for p, v in prepend_extras: - v_wrapped = '\n'.join(textwrap.wrap( - v, - width=79 - 12, - initial_indent=' ' * 12, - subsequent_indent=' ' * 12)) - buffer.write(f""" + v_wrapped = "\n".join( + textwrap.wrap( + v, width=79 - 12, initial_indent=" " * 12, subsequent_indent=" " * 12 + ) + ) + buffer.write( + f""" {p} -{v_wrapped}""") +{v_wrapped}""" + ) # Write core docstring - buffer.write(node.get_constructor_params_docstring( - indent=8)) + buffer.write(node.get_constructor_params_docstring(indent=8)) # Write any append extras for p, v in append_extras: - if '\n' in v: + if "\n" in v: # If v contains newlines then assume it's already wrapped as # desired v_wrapped = v else: - v_wrapped = '\n'.join(textwrap.wrap( - v, - width=79-12, - initial_indent=' ' * 12, - subsequent_indent=' ' * 12)) - buffer.write(f""" + v_wrapped = "\n".join( + textwrap.wrap( + v, + width=79 - 12, + initial_indent=" " * 12, + subsequent_indent=" " * 12, + ) + ) + buffer.write( + f""" {p} -{v_wrapped}""") +{v_wrapped}""" + ) # Write return block and close docstring # -------------------------------------- - buffer.write(f""" + buffer.write( + f""" Returns ------- {return_type} - \"\"\"""") + \"\"\"""" + ) def write_datatype_py(outdir, node): @@ -549,9 +606,7 @@ def write_datatype_py(outdir, node): # Build file path # --------------- - filepath = opath.join(outdir, 'graph_objs', - *node.parent_path_parts, - '__init__.py') + filepath = opath.join(outdir, "graph_objs", *node.parent_path_parts, "__init__.py") # Generate source code # -------------------- @@ -560,4 +615,4 @@ def write_datatype_py(outdir, node): # Write file # ---------- - format_and_write_source_py(datatype_source, filepath, leading_newlines=2) + write_source_py(datatype_source, filepath, leading_newlines=2) diff --git a/packages/python/plotly/codegen/figure.py b/packages/python/plotly/codegen/figure.py index aed4804053d..ab1e1c9b748 100644 --- a/packages/python/plotly/codegen/figure.py +++ b/packages/python/plotly/codegen/figure.py @@ -1,19 +1,31 @@ from io import StringIO from os import path as opath -from _plotly_utils.basevalidators import (BaseDataValidator, - CompoundValidator, - CompoundArrayValidator) -from codegen.datatypes import (reindent_validator_description, - add_constructor_params, add_docstring) -from codegen.utils import PlotlyNode, format_and_write_source_py +from _plotly_utils.basevalidators import ( + BaseDataValidator, + CompoundValidator, + CompoundArrayValidator, +) +from codegen.datatypes import ( + reindent_validator_description, + add_constructor_params, + add_docstring, +) +from codegen.utils import PlotlyNode, write_source_py import inflect -def build_figure_py(trace_node, base_package, base_classname, fig_classname, - data_validator, layout_validator, frame_validator, - subplot_nodes): +def build_figure_py( + trace_node, + base_package, + base_classname, + fig_classname, + data_validator, + layout_validator, + frame_validator, + subplot_nodes, +): """ Parameters @@ -52,17 +64,19 @@ def build_figure_py(trace_node, base_package, base_classname, fig_classname, # Write imports # ------------- # ### Import base class ### - buffer.write(f'from plotly.{base_package} import {base_classname}\n') + buffer.write(f"from plotly.{base_package} import {base_classname}\n") # ### Import trace graph_obj classes ### - trace_types_csv = ', '.join([n.name_datatype_class for n in trace_nodes]) - buffer.write(f'from plotly.graph_objs import ({trace_types_csv})\n') + trace_types_csv = ", ".join([n.name_datatype_class for n in trace_nodes]) + buffer.write(f"from plotly.graph_objs import ({trace_types_csv})\n") # Write class definition # ---------------------- - buffer.write(f""" + buffer.write( + f""" -class {fig_classname}({base_classname}):\n""") +class {fig_classname}({base_classname}):\n""" + ) # ### Constructor ### # Build constructor description strings @@ -70,7 +84,8 @@ class {fig_classname}({base_classname}):\n""") layout_description = reindent_validator_description(layout_validator, 8) frames_description = reindent_validator_description(frame_validator, 8) - buffer.write(f""" + buffer.write( + f""" def __init__(self, data=None, layout=None, frames=None, skip_invalid=False, **kwargs): \"\"\" @@ -101,44 +116,53 @@ def __init__(self, data=None, layout=None, super({fig_classname} ,self).__init__(data, layout, frames, skip_invalid, **kwargs) - """) + """ + ) # ### add_trace methods for each trace type ### for trace_node in trace_nodes: - include_secondary_y = bool([ - d for d in trace_node.child_datatypes - if d.name_property == 'yaxis' - ]) + include_secondary_y = bool( + [d for d in trace_node.child_datatypes if d.name_property == "yaxis"] + ) # #### Function signature #### - buffer.write(f""" - def add_{trace_node.plotly_name}(self""") + buffer.write( + f""" + def add_{trace_node.plotly_name}(self""" + ) # #### Function params#### - param_extras = ['row', 'col'] + param_extras = ["row", "col"] if include_secondary_y: - param_extras.append('secondary_y') - add_constructor_params(buffer, - trace_node.child_datatypes, - append_extras=param_extras) + param_extras.append("secondary_y") + add_constructor_params( + buffer, trace_node.child_datatypes, append_extras=param_extras + ) # #### Docstring #### header = f"Add a new {trace_node.name_datatype_class} trace" - doc_extras = [( - 'row : int or None (default)', - 'Subplot row index (starting from 1) for the trace to be ' - 'added. Only valid if figure was created using ' - '`plotly.tools.make_subplots`'), - ('col : int or None (default)', - 'Subplot col index (starting from 1) for the trace to be ' - 'added. Only valid if figure was created using ' - '`plotly.tools.make_subplots`')] + doc_extras = [ + ( + "row : int or None (default)", + "Subplot row index (starting from 1) for the trace to be " + "added. Only valid if figure was created using " + "`plotly.tools.make_subplots`", + ), + ( + "col : int or None (default)", + "Subplot col index (starting from 1) for the trace to be " + "added. Only valid if figure was created using " + "`plotly.tools.make_subplots`", + ), + ] if include_secondary_y: doc_extras.append( - ('secondary_y: boolean or None (default None)', """\ + ( + "secondary_y: boolean or None (default None)", + """\ If True, associate this trace with the secondary y-axis of the subplot at the specified row and col. Only valid if all of the following conditions are satisfied: @@ -148,7 +172,8 @@ def add_{trace_node.plotly_name}(self""") (which is the default) and secondary_y True. These properties are specified in the specs argument to make_subplots. See the make_subplots docstring for more info.\ -""") +""", + ) ) add_docstring( @@ -160,26 +185,34 @@ def add_{trace_node.plotly_name}(self""") ) # #### Function body #### - buffer.write(f""" + buffer.write( + f""" new_trace = {trace_node.name_datatype_class}( - """) + """ + ) for i, subtype_node in enumerate(trace_node.child_datatypes): subtype_prop_name = subtype_node.name_property - buffer.write(f""" - {subtype_prop_name}={subtype_prop_name},""") + buffer.write( + f""" + {subtype_prop_name}={subtype_prop_name},""" + ) - buffer.write(f""" - **kwargs)""") + buffer.write( + f""" + **kwargs)""" + ) if include_secondary_y: - secondary_y_kwarg = ', secondary_y=secondary_y' + secondary_y_kwarg = ", secondary_y=secondary_y" else: - secondary_y_kwarg = '' + secondary_y_kwarg = "" - buffer.write(f""" + buffer.write( + f""" return self.add_trace( - new_trace, row=row, col=col{secondary_y_kwarg})""") + new_trace, row=row, col=col{secondary_y_kwarg})""" + ) # update layout subplots # ---------------------- @@ -188,9 +221,9 @@ def add_{trace_node.plotly_name}(self""") singular_name = subplot_node.name_property plural_name = inflect_eng.plural_noun(singular_name) - if singular_name == 'yaxis': - secondary_y_1 = ', secondary_y=None' - secondary_y_2 = ', secondary_y=secondary_y' + if singular_name == "yaxis": + secondary_y_1 = ", secondary_y=None" + secondary_y_2 = ", secondary_y=secondary_y" secondary_y_docstring = f""" secondary_y: boolean or None (default None) * If True, only select yaxis objects associated with the secondary @@ -205,11 +238,12 @@ def add_{trace_node.plotly_name}(self""") the docstring for the specs argument to make_subplots for more info on creating subplots with secondary y-axes.""" else: - secondary_y_1 = '' - secondary_y_2 = '' - secondary_y_docstring = '' + secondary_y_1 = "" + secondary_y_2 = "" + secondary_y_docstring = "" - buffer.write(f""" + buffer.write( + f""" def select_{plural_name}( self, selector=None, row=None, col=None{secondary_y_1}): @@ -316,19 +350,18 @@ def update_{plural_name}( selector=selector, row=row, col=col{secondary_y_2}): obj.update(patch, **kwargs) - return self""") + return self""" + ) # Return source string # -------------------- - buffer.write('\n') + buffer.write("\n") return buffer.getvalue() -def write_figure_classes(outdir, trace_node, - data_validator, - layout_validator, - frame_validator, - subplot_nodes): +def write_figure_classes( + outdir, trace_node, data_validator, layout_validator, frame_validator, subplot_nodes +): """ Construct source code for the Figure and FigureWidget classes and write to graph_objs/_figure.py and graph_objs/_figurewidget.py @@ -358,27 +391,32 @@ def write_figure_classes(outdir, trace_node, # Validate inputs # --------------- if trace_node.node_path: - raise ValueError(f'Expected root trace node.\n' - f'Received node with path "{trace_node.path_str}"') + raise ValueError( + f"Expected root trace node.\n" + f'Received node with path "{trace_node.path_str}"' + ) # Loop over figure types # ---------------------- - base_figures = [('basewidget', 'BaseFigureWidget', 'FigureWidget'), - ('basedatatypes', 'BaseFigure', 'Figure')] + base_figures = [ + ("basewidget", "BaseFigureWidget", "FigureWidget"), + ("basedatatypes", "BaseFigure", "Figure"), + ] for base_package, base_classname, fig_classname in base_figures: # ### Build figure source code string ### - figure_source = build_figure_py(trace_node, - base_package, - base_classname, - fig_classname, - data_validator, - layout_validator, - frame_validator, - subplot_nodes) + figure_source = build_figure_py( + trace_node, + base_package, + base_classname, + fig_classname, + data_validator, + layout_validator, + frame_validator, + subplot_nodes, + ) # ### Format and write to file### - filepath = opath.join(outdir, 'graph_objs', - f'_{fig_classname.lower()}.py') - format_and_write_source_py(figure_source, filepath) + filepath = opath.join(outdir, "graph_objs", f"_{fig_classname.lower()}.py") + write_source_py(figure_source, filepath) diff --git a/packages/python/plotly/codegen/utils.py b/packages/python/plotly/codegen/utils.py index 9bd241239c2..06c7ff9bc74 100644 --- a/packages/python/plotly/codegen/utils.py +++ b/packages/python/plotly/codegen/utils.py @@ -7,32 +7,10 @@ from typing import List import re -from yapf.yapflib.yapf_api import FormatCode - # Source code utilities # ===================== -def format_source(input_source): - """ - Use yapf to format a string containing Python source code - - Parameters - ---------- - input_source : str - String containing Python source code - - Returns - ------- - String containing yapf-formatted python source code - """ - style_config = {'based_on_style': 'google', - 'DEDENT_CLOSING_BRACKETS': True, - 'COLUMN_LIMIT': 79} - formatted_source, _ = FormatCode(input_source, style_config=style_config) - return formatted_source - - -def format_and_write_source_py(py_source, filepath, leading_newlines=0): +def write_source_py(py_source, filepath, leading_newlines=0): """ Format Python source code and write to a file, creating parent directories as needed. @@ -49,12 +27,6 @@ def format_and_write_source_py(py_source, filepath, leading_newlines=0): None """ if py_source: - try: - formatted_source = format_source(py_source) - except Exception as e: - print(py_source) - raise e - # Make dir if needed # ------------------ filedir = opath.dirname(filepath) @@ -62,9 +34,9 @@ def format_and_write_source_py(py_source, filepath, leading_newlines=0): # Write file # ---------- - formatted_source = '\n' * leading_newlines + formatted_source - with open(filepath, 'at') as f: - f.write(formatted_source) + py_source = "\n" * leading_newlines + py_source + with open(filepath, "at") as f: + f.write(py_source) def build_from_imports_py(imports_info): @@ -93,10 +65,12 @@ def build_from_imports_py(imports_info): if isinstance(class_name, str): class_name_str = class_name else: - class_name_str = '(' + ', '.join(class_name) + ')' + class_name_str = "(" + ", ".join(class_name) + ")" - buffer.write(f"""\ -from {from_pkg} import {class_name_str}\n""") + buffer.write( + f"""\ +from {from_pkg} import {class_name_str}\n""" + ) elif isinstance(import_info, str): buffer.write(import_info) @@ -130,28 +104,37 @@ def write_init_py(pkg_root, path_parts, import_pairs): # Write file # ---------- - filepath = opath.join(pkg_root, *path_parts, '__init__.py') - format_and_write_source_py( - init_source, filepath, leading_newlines=2) + filepath = opath.join(pkg_root, *path_parts, "__init__.py") + write_source_py(init_source, filepath, leading_newlines=2) def format_description(desc): # Remove surrounding *s from numbers - desc = re.sub('(^|[\s(,.:])\*([\d.]+)\*([\s),.:]|$)', r'\1\2\3', desc) + desc = re.sub("(^|[\s(,.:])\*([\d.]+)\*([\s),.:]|$)", r"\1\2\3", desc) # replace *true* with True desc = desc.replace("*true*", "True") desc = desc.replace("*false*", "False") # Replace *word* with "word" - desc = re.sub('(^|[\s(,.:])\*(\S+)\*([\s),.:]|$)', r'\1"\2"\3', desc) + desc = re.sub("(^|[\s(,.:])\*(\S+)\*([\s),.:]|$)", r'\1"\2"\3', desc) # Special case strings that don't satisfy regex above - other_strings = ['', 'Courier New', 'Droid Sans', 'Droid Serif', - 'Droid Sans Mono', 'Gravitas One', 'Old Standard TT', - 'Open Sans', 'PT Sans Narrow', 'Times New Roman', - 'bottom plot', 'top plot'] + other_strings = [ + "", + "Courier New", + "Droid Sans", + "Droid Serif", + "Droid Sans Mono", + "Gravitas One", + "Old Standard TT", + "Open Sans", + "PT Sans Narrow", + "Times New Roman", + "bottom plot", + "top plot", + ] for s in other_strings: desc = desc.replace("*%s*" % s, '"%s"' % s) @@ -176,47 +159,51 @@ def format_description(desc): # ========= # Mapping from full property paths to custom validator classes CUSTOM_VALIDATOR_DATATYPES = { - 'layout.image.source': '_plotly_utils.basevalidators.ImageUriValidator', - 'layout.template': '_plotly_utils.basevalidators.BaseTemplateValidator', - 'frame.data': 'plotly.validators.DataValidator', - 'frame.layout': 'plotly.validators.LayoutValidator' + "layout.image.source": "_plotly_utils.basevalidators.ImageUriValidator", + "layout.template": "_plotly_utils.basevalidators.BaseTemplateValidator", + "frame.data": "plotly.validators.DataValidator", + "frame.layout": "plotly.validators.LayoutValidator", } # Add custom dash validators CUSTOM_VALIDATOR_DATATYPES.update( - {prop: '_plotly_utils.basevalidators.DashValidator' - for prop in [ - 'scatter.line.dash', - 'histogram2dcontour.line.dash', - 'scattergeo.line.dash', - 'scatterpolar.line.dash', - 'ohlc.line.dash', - 'ohlc.decreasing.line.dash', - 'ohlc.increasing.line.dash', - 'contourcarpet.line.dash', - 'contour.line.dash', - 'scatterternary.line.dash', - 'scattercarpet.line.dash']}) + { + prop: "_plotly_utils.basevalidators.DashValidator" + for prop in [ + "scatter.line.dash", + "histogram2dcontour.line.dash", + "scattergeo.line.dash", + "scatterpolar.line.dash", + "ohlc.line.dash", + "ohlc.decreasing.line.dash", + "ohlc.increasing.line.dash", + "contourcarpet.line.dash", + "contour.line.dash", + "scatterternary.line.dash", + "scattercarpet.line.dash", + ] + } +) # Mapping from property string (as found in plot-schema.json) to a custom # class name. If not included here, names are converted to TitleCase and # underscores are removed. OBJECT_NAME_TO_CLASS_NAME = { - 'angularaxis': 'AngularAxis', - 'colorbar': 'ColorBar', - 'error_x': 'ErrorX', - 'error_y': 'ErrorY', - 'error_z': 'ErrorZ', - 'histogram2d': 'Histogram2d', - 'histogram2dcontour': 'Histogram2dContour', - 'mesh3d': 'Mesh3d', - 'radialaxis': 'RadialAxis', - 'scatter3d': 'Scatter3d', - 'xaxis': 'XAxis', - 'xbins': 'XBins', - 'yaxis': 'YAxis', - 'ybins': 'YBins', - 'zaxis': 'ZAxis' + "angularaxis": "AngularAxis", + "colorbar": "ColorBar", + "error_x": "ErrorX", + "error_y": "ErrorY", + "error_z": "ErrorZ", + "histogram2d": "Histogram2d", + "histogram2dcontour": "Histogram2dContour", + "mesh3d": "Mesh3d", + "radialaxis": "RadialAxis", + "scatter3d": "Scatter3d", + "xaxis": "XAxis", + "xbins": "XBins", + "yaxis": "YAxis", + "ybins": "YBins", + "zaxis": "ZAxis", } # Tuple of types to be considered dicts by PlotlyNode logic @@ -262,18 +249,21 @@ def __init__(self, plotly_schema, node_path=(), parent=None): # subclass based on plotly_schema and node_path if isinstance(self.node_data, dict_like): childs_parent = ( - parent - if self.node_path and self.node_path[-1] == 'items' - else self) - - self._children = [self.__class__(self.plotly_schema, - node_path=self.node_path + (c,), - parent=childs_parent) - for c in self.node_data if c and c[0] != '_'] + parent if self.node_path and self.node_path[-1] == "items" else self + ) + + self._children = [ + self.__class__( + self.plotly_schema, + node_path=self.node_path + (c,), + parent=childs_parent, + ) + for c in self.node_data + if c and c[0] != "_" + ] # Sort by plotly name - self._children = sorted(self._children, - key=lambda node: node.plotly_name) + self._children = sorted(self._children, key=lambda node: node.plotly_name) else: self._children = [] @@ -332,7 +322,7 @@ def root_name(self): raise NotImplementedError() @property - def plotly_name(self) : + def plotly_name(self): """ Name of the node. Either the base_name or the name directly out of the plotly_schema @@ -358,7 +348,7 @@ def name_datatype_class(self): if self.plotly_name in OBJECT_NAME_TO_CLASS_NAME: return OBJECT_NAME_TO_CLASS_NAME[self.plotly_name] else: - return self.plotly_name.title().replace('_', '') + return self.plotly_name.title().replace("_", "") @property def name_undercase(self): @@ -380,8 +370,7 @@ def name_undercase(self): # Replace capital chars by underscore-lower # ----------------------------------------- - name2 = ''.join([('' if not c.isupper() else '_') + c.lower() - for c in name1]) + name2 = "".join([("" if not c.isupper() else "_") + c.lower() for c in name1]) return name2 @@ -398,13 +387,17 @@ def name_property(self): """ return self.plotly_name + ( - 's' if self.is_array_element and - # Don't add 's' to layout.template.data.scatter etc. - not (self.parent and - self.parent.parent and - self.parent.parent.parent and - self.parent.parent.parent.name_property == 'template') - else '') + "s" + if self.is_array_element and + # Don't add 's' to layout.template.data.scatter etc. + not ( + self.parent + and self.parent.parent + and self.parent.parent.parent + and self.parent.parent.parent.name_property == "template" + ) + else "" + ) @property def name_validator_class(self) -> str: @@ -415,9 +408,11 @@ def name_validator_class(self) -> str: ------- str """ - return (self.name_datatype_class + - ('s' if self.is_array_element else '') + - 'Validator') + return ( + self.name_datatype_class + + ("s" if self.is_array_element else "") + + "Validator" + ) @property def name_base_validator(self) -> str: @@ -430,15 +425,15 @@ def name_base_validator(self) -> str: """ if self.path_str in CUSTOM_VALIDATOR_DATATYPES: validator_base = f"{CUSTOM_VALIDATOR_DATATYPES[self.path_str]}" - elif self.plotly_name.endswith('src') and self.datatype == 'string': - validator_base = (f"_plotly_utils.basevalidators." - f"SrcValidator") - elif self.plotly_name == 'title' and self.datatype == 'compound': + elif self.plotly_name.endswith("src") and self.datatype == "string": + validator_base = f"_plotly_utils.basevalidators." f"SrcValidator" + elif self.plotly_name == "title" and self.datatype == "compound": validator_base = "_plotly_utils.basevalidators.TitleValidator" else: - datatype_title_case = self.datatype.title().replace('_', '') - validator_base = (f"_plotly_utils.basevalidators." - f"{datatype_title_case}Validator") + datatype_title_case = self.datatype.title().replace("_", "") + validator_base = ( + f"_plotly_utils.basevalidators." f"{datatype_title_case}Validator" + ) return validator_base @@ -460,43 +455,47 @@ def get_validator_params(self): the constructor directly. """ - params = {'plotly_name': repr(self.name_property), - 'parent_name': repr(self.parent_path_str)} + params = { + "plotly_name": repr(self.name_property), + "parent_name": repr(self.parent_path_str), + } if self.is_compound: - params['data_class_str'] = repr(self.name_datatype_class) - params['data_docs'] = ( - '\"\"\"' + - self.get_constructor_params_docstring() + - '\n\"\"\"') + params["data_class_str"] = repr(self.name_datatype_class) + params["data_docs"] = ( + '"""' + self.get_constructor_params_docstring() + '\n"""' + ) else: assert self.is_simple # Exclude general properties - excluded_props = ['valType', 'description', 'dflt'] - if self.datatype == 'subplotid': + excluded_props = ["valType", "description", "dflt"] + if self.datatype == "subplotid": # Default is required for subplotid validator - excluded_props.remove('dflt') + excluded_props.remove("dflt") - attr_nodes = [n for n in self.simple_attrs - if n.plotly_name not in excluded_props] + attr_nodes = [ + n for n in self.simple_attrs if n.plotly_name not in excluded_props + ] for node in attr_nodes: params[node.name_undercase] = repr(node.node_data) # Add extra properties - if self.datatype == 'color' and self.parent: + if self.datatype == "color" and self.parent: # Check for colorscale sibling. We use the presence of a # colorscale sibling to determine whether numeric color # values are permissible - colorscale_node_list = [node for node in - self.parent.child_datatypes - if node.datatype == 'colorscale'] + colorscale_node_list = [ + node + for node in self.parent.child_datatypes + if node.datatype == "colorscale" + ] if colorscale_node_list: colorscale_path = colorscale_node_list[0].path_str - params['colorscale_path'] = repr(colorscale_path) - elif self.datatype == 'literal': - params['val'] = self.node_data + params["colorscale_path"] = repr(colorscale_path) + elif self.datatype == "literal": + params["val"] = self.node_data return params @@ -511,18 +510,21 @@ def get_validator_instance(self): # Evaluate validator params to convert repr strings into values # e.g. '2' -> 2 - params = {prop: eval(repr_val) - for prop, repr_val in self.get_validator_params().items()} + params = { + prop: eval(repr_val) + for prop, repr_val in self.get_validator_params().items() + } - validator_parts = self.name_base_validator.split('.') - if validator_parts[0] != '_plotly_utils': + validator_parts = self.name_base_validator.split(".") + if validator_parts[0] != "_plotly_utils": return None else: validator_class_str = validator_parts[-1] - validator_module = '.'.join(validator_parts[:-1]) + validator_module = ".".join(validator_parts[:-1]) - validator_class = getattr(import_module(validator_module), - validator_class_str) + validator_class = getattr( + import_module(validator_module), validator_class_str + ) return validator_class(**params) @@ -539,13 +541,13 @@ def datatype(self) -> str: str """ if self.is_array_element: - return 'compound_array' + return "compound_array" elif self.is_compound: - return 'compound' + return "compound" elif self.is_simple: - return self.node_data.get('valType') + return self.node_data.get("valType") else: - return 'literal' + return "literal" @property def is_array_ok(self) -> bool: @@ -556,7 +558,7 @@ def is_array_ok(self) -> bool: ------- bool """ - return self.node_data.get('arrayOk', False) + return self.node_data.get("arrayOk", False) @property def is_compound(self) -> bool: @@ -568,9 +570,12 @@ def is_compound(self) -> bool: ------- bool """ - return (isinstance(self.node_data, dict_like) and - not self.is_simple and not self.is_mapped and - self.plotly_name not in ('items', 'impliedEdits', 'transforms')) + return ( + isinstance(self.node_data, dict_like) + and not self.is_simple + and not self.is_mapped + and self.plotly_name not in ("items", "impliedEdits", "transforms") + ) @property def is_literal(self) -> bool: @@ -592,9 +597,11 @@ def is_simple(self) -> bool: ------- bool """ - return (isinstance(self.node_data, dict_like) and - 'valType' in self.node_data and - self.plotly_name != 'items') + return ( + isinstance(self.node_data, dict_like) + and "valType" in self.node_data + and self.plotly_name != "items" + ) @property def is_array(self) -> bool: @@ -605,10 +612,12 @@ def is_array(self) -> bool: ------- bool """ - return (isinstance(self.node_data, dict_like) and - self.node_data.get('role', '') == 'object' and - 'items' in self.node_data and - self.name_property != 'transforms') + return ( + isinstance(self.node_data, dict_like) + and self.node_data.get("role", "") == "object" + and "items" in self.node_data + and self.name_property != "transforms" + ) @property def is_array_element(self): @@ -633,10 +642,7 @@ def is_datatype(self) -> bool: ------- bool """ - return (self.is_simple - or self.is_compound - or self.is_array - or self.is_mapped) + return self.is_simple or self.is_compound or self.is_array or self.is_mapped @property def is_mapped(self) -> bool: @@ -681,9 +687,9 @@ def path_parts(self): res = [self.root_name] if self.root_name else [] for i, p in enumerate(self.node_path): # Handle array datatypes - if (p == 'items' or - (i < len(self.node_path) - 1 and - self.node_path[i+1] == 'items')): + if p == "items" or ( + i < len(self.node_path) - 1 and self.node_path[i + 1] == "items" + ): # e.g. [parcoords, dimensions, items, dimension] -> # [parcoords, dimension] pass @@ -703,7 +709,7 @@ def path_str(self): ------- str """ - return '.'.join(self.path_parts) + return ".".join(self.path_parts) @property def dotpath_str(self): @@ -714,9 +720,9 @@ def dotpath_str(self): ------- str """ - path_str = '' + path_str = "" for p in self.path_parts: - path_str += '.' + p + path_str += "." + p return path_str @property @@ -739,7 +745,7 @@ def parent_path_str(self): ------- str """ - return '.'.join(self.path_parts[:-1]) + return ".".join(self.path_parts[:-1]) @property def parent_dotpath_str(self): @@ -751,9 +757,9 @@ def parent_dotpath_str(self): ------- str """ - path_str = '' + path_str = "" for p in self.parent_path_parts: - path_str += '.' + p + path_str += "." + p return path_str # Children @@ -792,9 +798,12 @@ def simple_attrs(self): """ if not self.is_simple: raise ValueError( - f"Cannot get simple attributes of the simple object '{self.path_str}'") + f"Cannot get simple attributes of the simple object '{self.path_str}'" + ) - return [n for n in self.children if n.plotly_name not in ['valType', 'description']] + return [ + n for n in self.children if n.plotly_name not in ["valType", "description"] + ] @property def child_datatypes(self): @@ -813,31 +822,36 @@ def child_datatypes(self): # Add elementdefaults node. Require parent_path_parts not # empty to avoid creating defaults classes for traces - if (n.parent_path_parts and - n.parent_path_parts != ('layout', 'template', 'data')): + if n.parent_path_parts and n.parent_path_parts != ( + "layout", + "template", + "data", + ): nodes.append(ElementDefaultsNode(n, self.plotly_schema)) - elif n.is_compound and n.plotly_name == 'title': + elif n.is_compound and n.plotly_name == "title": nodes.append(n) # Remap deprecated title properties - deprecated_data = n.parent.node_data.get('_deprecated', {}) + deprecated_data = n.parent.node_data.get("_deprecated", {}) deprecated_title_prop_names = [ - p for p in deprecated_data - if p.startswith('title') and p != 'title'] + p for p in deprecated_data if p.startswith("title") and p != "title" + ] for prop_name in deprecated_title_prop_names: - mapped_prop_name = prop_name.replace('title', '') + mapped_prop_name = prop_name.replace("title", "") mapped_prop_node = [ - title_prop for title_prop in n.child_datatypes - if title_prop.plotly_name == mapped_prop_name][0] + title_prop + for title_prop in n.child_datatypes + if title_prop.plotly_name == mapped_prop_name + ][0] prop_parent = n.parent legacy_node = MappedPropNode( - mapped_prop_node, prop_parent, - prop_name, self.plotly_schema) + mapped_prop_node, prop_parent, prop_name, self.plotly_schema + ) nodes.append(legacy_node) @@ -858,7 +872,7 @@ def child_compound_datatypes(self): return [n for n in self.child_datatypes if n.is_compound] @property - def child_simple_datatypes(self) -> List['PlotlyNode']: + def child_simple_datatypes(self) -> List["PlotlyNode"]: """ List of all simple datatype child nodes @@ -869,7 +883,7 @@ def child_simple_datatypes(self) -> List['PlotlyNode']: return [n for n in self.child_datatypes if n.is_simple] @property - def child_literals(self) -> List['PlotlyNode']: + def child_literals(self) -> List["PlotlyNode"]: """ List of all literal child nodes @@ -903,23 +917,29 @@ def get_constructor_params_docstring(self, indent=12): if raw_description: subtype_description = raw_description elif subtype_node.is_compound: - class_name = (f'plotly.graph_objs' - f'{subtype_node.parent_dotpath_str}.' - f'{subtype_node.name_datatype_class}') - - subtype_description = (f'{class_name} instance or ' - 'dict with compatible properties') + class_name = ( + f"plotly.graph_objs" + f"{subtype_node.parent_dotpath_str}." + f"{subtype_node.name_datatype_class}" + ) + + subtype_description = ( + f"{class_name} instance or " "dict with compatible properties" + ) else: - subtype_description = '' + subtype_description = "" - subtype_description = '\n'.join( - textwrap.wrap(subtype_description, - initial_indent=' ' * (indent + 4), - subsequent_indent=' ' * (indent + 4), - width=79 - (indent + 4))) + subtype_description = "\n".join( + textwrap.wrap( + subtype_description, + initial_indent=" " * (indent + 4), + subsequent_indent=" " * (indent + 4), + width=79 - (indent + 4), + ) + ) - buffer.write('\n' + ' ' * indent + subtype_node.name_property) - buffer.write('\n' + subtype_description) + buffer.write("\n" + " " * indent + subtype_node.name_property) + buffer.write("\n" + subtype_description) return buffer.getvalue() @@ -952,8 +972,10 @@ def get_all_compound_datatype_nodes(plotly_schema, node_class): nodes.append(node) non_defaults_compound_children = [ - node for node in node.child_compound_datatypes - if not isinstance(node, ElementDefaultsNode)] + node + for node in node.child_compound_datatypes + if not isinstance(node, ElementDefaultsNode) + ] nodes_to_process.extend(non_defaults_compound_children) @@ -1003,23 +1025,23 @@ def __init__(self, plotly_schema, node_path=(), parent=None): @property def name_base_datatype(self): if len(self.node_path) <= 1: - return 'BaseTraceType' + return "BaseTraceType" else: - return 'BaseTraceHierarchyType' + return "BaseTraceHierarchyType" @property def root_name(self): - return '' + return "" # Raw data # -------- @property def node_data(self) -> dict: if not self.node_path: - node_data = self.plotly_schema['traces'] + node_data = self.plotly_schema["traces"] else: trace_name = self.node_path[0] - node_data = self.plotly_schema['traces'][trace_name]['attributes'] + node_data = self.plotly_schema["traces"][trace_name]["attributes"] for prop_name in self.node_path[1:]: node_data = node_data[prop_name] @@ -1034,14 +1056,15 @@ def description(self) -> str: elif len(self.node_path) == 1: # Get trace descriptions trace_name = self.node_path[0] - desc = (self.plotly_schema['traces'][trace_name] - ['meta'].get('description', '')) + desc = self.plotly_schema["traces"][trace_name]["meta"].get( + "description", "" + ) else: # Get datatype description - desc = self.node_data.get('description', '') + desc = self.node_data.get("description", "") if isinstance(desc, list): - desc = ''.join(desc) + desc = "".join(desc) return format_description(desc) @@ -1055,16 +1078,19 @@ class LayoutNode(PlotlyNode): # ----------- def __init__(self, plotly_schema, node_path=(), parent=None): # Get main layout properties - layout = plotly_schema['layout']['layoutAttributes'] + layout = plotly_schema["layout"]["layoutAttributes"] # Get list of additional layout properties for each trace trace_layouts = [ - plotly_schema['traces'][trace].get('layoutAttributes', {}) - for trace in plotly_schema['traces'] if trace != 'barpolar'] + plotly_schema["traces"][trace].get("layoutAttributes", {}) + for trace in plotly_schema["traces"] + if trace != "barpolar" + ] - extra_polar_nodes = (plotly_schema['traces']['barpolar'] - .get('layoutAttributes', {})) - layout['polar'].update(extra_polar_nodes) + extra_polar_nodes = plotly_schema["traces"]["barpolar"].get( + "layoutAttributes", {} + ) + layout["polar"].update(extra_polar_nodes) # Chain together into layout_data self.layout_data = ChainMap(layout, *trace_layouts) @@ -1075,13 +1101,13 @@ def __init__(self, plotly_schema, node_path=(), parent=None): @property def name_base_datatype(self): if len(self.node_path) == 0: - return 'BaseLayoutType' + return "BaseLayoutType" else: - return 'BaseLayoutHierarchyType' + return "BaseLayoutHierarchyType" @property def root_name(self): - return 'layout' + return "layout" @property def plotly_name(self) -> str: @@ -1094,9 +1120,9 @@ def plotly_name(self) -> str: # ----------- @property def description(self) -> str: - desc = self.node_data.get('description', '') + desc = self.node_data.get("description", "") if isinstance(desc, list): - desc = ''.join(desc) + desc = "".join(desc) return format_description(desc) # Raw data @@ -1122,38 +1148,38 @@ def __init__(self, plotly_schema, node_path=(), parent=None): @property def name_base_datatype(self): - return 'BaseFrameHierarchyType' + return "BaseFrameHierarchyType" @property def root_name(self): - return '' + return "" @property def plotly_name(self) -> str: if len(self.node_path) < 2: return self.root_name elif len(self.node_path) == 2: - return 'frame' # override 'frames_entry' + return "frame" # override 'frames_entry' else: return self.node_path[-1] def tidy_path_part(self, p): - return 'frame' if p == 'frames_entry' else p + return "frame" if p == "frames_entry" else p # Description # ----------- @property def description(self) -> str: - desc = self.node_data.get('description', '') + desc = self.node_data.get("description", "") if isinstance(desc, list): - desc = ''.join(desc) + desc = "".join(desc) return format_description(desc) # Raw data # -------- @property def node_data(self) -> dict: - node_data = self.plotly_schema['frames'] + node_data = self.plotly_schema["frames"] for prop_name in self.node_path: node_data = node_data[prop_name] @@ -1161,7 +1187,6 @@ def node_data(self) -> dict: class ElementDefaultsNode(PlotlyNode): - def __init__(self, array_node, plotly_schema): """ Create node that represents element defaults properties @@ -1172,9 +1197,9 @@ def __init__(self, array_node, plotly_schema): ---------- array_node: PlotlyNode """ - super().__init__(plotly_schema, - node_path=array_node.node_path, - parent=array_node.parent) + super().__init__( + plotly_schema, node_path=array_node.node_path, parent=array_node.parent + ) assert array_node.is_array self.array_node = array_node @@ -1186,18 +1211,20 @@ def node_data(self): @property def description(self): - array_property_path = (self.parent_path_str + - '.' + self.array_node.name_property) + array_property_path = self.parent_path_str + "." + self.array_node.name_property if isinstance(self.array_node, TraceNode): - data_path = 'data.' + data_path = "data." else: - data_path = '' - - defaults_property_path = ('layout.template.' + - data_path + - self.parent_path_str + - '.' + self.plotly_name) + data_path = "" + + defaults_property_path = ( + "layout.template." + + data_path + + self.parent_path_str + + "." + + self.plotly_name + ) return f"""\ When used in a template (as {defaults_property_path}), @@ -1214,7 +1241,7 @@ def root_name(self): @property def plotly_name(self): - return self.element_node.plotly_name + 'defaults' + return self.element_node.plotly_name + "defaults" @property def name_datatype_class(self): @@ -1222,9 +1249,7 @@ def name_datatype_class(self): class MappedPropNode(PlotlyNode): - - def __init__(self, mapped_prop_node, parent, - prop_name, plotly_schema): + def __init__(self, mapped_prop_node, parent, prop_name, plotly_schema): """ Create node that represents a legacy title property. e.g. layout.titlefont. These properties are now subproperties under @@ -1238,9 +1263,7 @@ def __init__(self, mapped_prop_node, parent, e.g. 'font' to represent the layout.titlefont property. """ node_path = parent.node_path + (prop_name,) - super().__init__(plotly_schema, - node_path=node_path, - parent=parent) + super().__init__(plotly_schema, node_path=node_path, parent=parent) self.mapped_prop_node = mapped_prop_node self.prop_name = prop_name @@ -1251,9 +1274,12 @@ def node_data(self): @property def description(self): - res = f"""\ + res = ( + f"""\ Deprecated: Please use {self.mapped_prop_node.path_str} instead. -""" + self.mapped_prop_node.description +""" + + self.mapped_prop_node.description + ) return res @property @@ -1285,5 +1311,7 @@ def get_validator_instance(self): @property def relative_path(self): - return (self.mapped_prop_node.parent.plotly_name, - self.mapped_prop_node.plotly_name) + return ( + self.mapped_prop_node.parent.plotly_name, + self.mapped_prop_node.plotly_name, + ) diff --git a/packages/python/plotly/codegen/validators.py b/packages/python/plotly/codegen/validators.py index 47c8d10f972..88d79db6487 100644 --- a/packages/python/plotly/codegen/validators.py +++ b/packages/python/plotly/codegen/validators.py @@ -2,8 +2,7 @@ from io import StringIO import _plotly_utils.basevalidators -from codegen.utils import (PlotlyNode, TraceNode, - format_and_write_source_py) +from codegen.utils import PlotlyNode, TraceNode, write_source_py def build_validator_py(node: PlotlyNode): @@ -32,9 +31,8 @@ def build_validator_py(node: PlotlyNode): # Imports # ------- # ### Import package of the validator's superclass ### - import_str = '.'.join( - node.name_base_validator.split('.')[:-1]) - buffer.write(f'import {import_str }\n') + import_str = ".".join(node.name_base_validator.split(".")[:-1]) + buffer.write(f"import {import_str }\n") # Build Validator # --------------- @@ -44,38 +42,45 @@ def build_validator_py(node: PlotlyNode): # ### Write class definition ### class_name = node.name_validator_class superclass_name = node.name_base_validator - buffer.write(f""" + buffer.write( + f""" class {class_name}({superclass_name}): def __init__(self, plotly_name={params['plotly_name']}, parent_name={params['parent_name']}, - **kwargs):""") + **kwargs):""" + ) # ### Write constructor ### - buffer.write(f""" + buffer.write( + f""" super({class_name}, self).__init__(plotly_name=plotly_name, - parent_name=parent_name""") + parent_name=parent_name""" + ) # Write out remaining constructor parameters for attr_name, attr_val in params.items(): - if attr_name in ['plotly_name', 'parent_name']: + if attr_name in ["plotly_name", "parent_name"]: # plotly_name and parent_name are already handled continue - buffer.write(f""", - {attr_name}=kwargs.pop('{attr_name}', {attr_val})""") + buffer.write( + f""", + {attr_name}=kwargs.pop('{attr_name}', {attr_val})""" + ) - buffer.write(f""", - **kwargs""") + buffer.write( + f""", + **kwargs""" + ) - buffer.write(')') + buffer.write(")") # ### Return buffer's string ### return buffer.getvalue() -def write_validator_py(outdir, - node: PlotlyNode): +def write_validator_py(outdir, node: PlotlyNode): """ Build validator source code and write to a file @@ -102,11 +107,9 @@ def write_validator_py(outdir, # Write file # ---------- - filepath = opath.join(outdir, 'validators', - *node.parent_path_parts, - '__init__.py') + filepath = opath.join(outdir, "validators", *node.parent_path_parts, "__init__.py") - format_and_write_source_py(validator_source, filepath, leading_newlines=2) + write_source_py(validator_source, filepath, leading_newlines=2) def build_data_validator_params(base_trace_node: TraceNode): @@ -131,24 +134,30 @@ def build_data_validator_params(base_trace_node: TraceNode): # This is the repr-form of a dict from trace propert name string # to the name of the trace datatype class in the graph_objs package. buffer = StringIO() - buffer.write('{\n') + buffer.write("{\n") for i, tracetype_node in enumerate(tracetype_nodes): - sfx = ',' if i < len(tracetype_nodes) else '' + sfx = "," if i < len(tracetype_nodes) else "" trace_name = tracetype_node.name_property trace_datatype_class = tracetype_node.name_datatype_class - buffer.write(f""" - '{trace_name}': '{trace_datatype_class}'{sfx}""") + buffer.write( + f""" + '{trace_name}': '{trace_datatype_class}'{sfx}""" + ) - buffer.write(""" - }""") + buffer.write( + """ + }""" + ) class_map_repr = buffer.getvalue() # Build params dict # ----------------- - params = {'class_strs_map': class_map_repr, - 'plotly_name': repr('data'), - 'parent_name': repr('')} + params = { + "class_strs_map": class_map_repr, + "plotly_name": repr("data"), + "parent_name": repr(""), + } return params @@ -176,7 +185,8 @@ def build_data_validator_py(base_trace_node: TraceNode): # ----------------- buffer = StringIO() - buffer.write(f""" + buffer.write( + f""" import _plotly_utils.basevalidators class DataValidator(_plotly_utils.basevalidators.BaseDataValidator): @@ -188,7 +198,8 @@ def __init__(self, plotly_name={params['plotly_name']}, super(DataValidator, self).__init__(class_strs_map={params['class_strs_map']}, plotly_name=plotly_name, parent_name=parent_name, - **kwargs)""") + **kwargs)""" + ) return buffer.getvalue() @@ -237,9 +248,10 @@ def write_data_validator_py(outdir, base_trace_node: TraceNode): # Validate inputs # --------------- if base_trace_node.node_path: - raise ValueError('Expected root trace node.\n' - 'Received node with path "%s"' - % base_trace_node.path_str) + raise ValueError( + "Expected root trace node.\n" + 'Received node with path "%s"' % base_trace_node.path_str + ) # Build Source # ------------ @@ -247,5 +259,5 @@ def write_data_validator_py(outdir, base_trace_node: TraceNode): # Write file # ---------- - filepath = opath.join(outdir, 'validators', '__init__.py') - format_and_write_source_py(source, filepath, leading_newlines=2) + filepath = opath.join(outdir, "validators", "__init__.py") + write_source_py(source, filepath, leading_newlines=2) diff --git a/packages/python/plotly/optional-requirements.txt b/packages/python/plotly/optional-requirements.txt index 697b38934a2..d173261994d 100644 --- a/packages/python/plotly/optional-requirements.txt +++ b/packages/python/plotly/optional-requirements.txt @@ -18,11 +18,12 @@ nose==1.3.3 pytest==3.5.1 backports.tempfile==1.0 xarray -## orca ## psutil +## code formatting +pre-commit + ## codegen dependencies ## -yapf inflect ## template generation ## diff --git a/packages/python/plotly/plotly/__init__.py b/packages/python/plotly/plotly/__init__.py index c75cac14006..c6a82afe4f0 100644 --- a/packages/python/plotly/plotly/__init__.py +++ b/packages/python/plotly/plotly/__init__.py @@ -36,10 +36,10 @@ io, data, colors, - _docstring_gen + _docstring_gen, ) from plotly.version import __version__ # Set default template here to make sure import process is complete -io.templates._default = 'plotly' +io.templates._default = "plotly" diff --git a/packages/python/plotly/plotly/_docstring_gen.py b/packages/python/plotly/plotly/_docstring_gen.py index 807cd8b2e7d..b091d9973ea 100644 --- a/packages/python/plotly/plotly/_docstring_gen.py +++ b/packages/python/plotly/plotly/_docstring_gen.py @@ -10,8 +10,7 @@ def copy_doc_without_fig(from_fn, to_method): Copy docstring from a plotly.io function to a Figure method, removing the fig argument docstring in the process """ - docstr = _re.sub(r' {4}fig:(?:.*?\n)*? {4}(\w+)', r' \1', - from_fn.__doc__) + docstr = _re.sub(r" {4}fig:(?:.*?\n)*? {4}(\w+)", r" \1", from_fn.__doc__) if sys.version_info[0] < 3: to_method.__func__.__doc__ = docstr else: @@ -25,4 +24,3 @@ def copy_doc_without_fig(from_fn, to_method): copy_doc_without_fig(pio.write_html, BaseFigure.write_html) copy_doc_without_fig(pio.to_image, BaseFigure.to_image) copy_doc_without_fig(pio.write_image, BaseFigure.write_image) - diff --git a/packages/python/plotly/plotly/_version.py b/packages/python/plotly/plotly/_version.py index 496007410a5..e3f8c5bd629 100644 --- a/packages/python/plotly/plotly/_version.py +++ b/packages/python/plotly/plotly/_version.py @@ -1,4 +1,3 @@ - # This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build @@ -58,17 +57,18 @@ class NotThisMethod(Exception): def register_vcs_handler(vcs, method): # decorator """Decorator to mark a method as the handler for a particular VCS.""" + def decorate(f): """Store f in HANDLERS[vcs][method].""" if vcs not in HANDLERS: HANDLERS[vcs] = {} HANDLERS[vcs][method] = f return f + return decorate -def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, - env=None): +def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, env=None): """Call the given command(s).""" assert isinstance(commands, list) p = None @@ -76,30 +76,33 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, try: dispcmd = str([c] + args) # remember shell=False, so use git.cmd on windows, not just git - p = subprocess.Popen([c] + args, cwd=cwd, env=env, - stdout=subprocess.PIPE, - stderr=(subprocess.PIPE if hide_stderr - else None)) + p = subprocess.Popen( + [c] + args, + cwd=cwd, + env=env, + stdout=subprocess.PIPE, + stderr=(subprocess.PIPE if hide_stderr else None), + ) break except EnvironmentError: e = sys.exc_info()[1] if e.errno == errno.ENOENT: continue if verbose: - print("unable to run %s" % dispcmd) - print(e) + print ("unable to run %s" % dispcmd) + print (e) return None, None else: if verbose: - print("unable to find command, tried %s" % (commands,)) + print ("unable to find command, tried %s" % (commands,)) return None, None stdout = p.communicate()[0].strip() if sys.version_info[0] >= 3: stdout = stdout.decode() if p.returncode != 0: if verbose: - print("unable to run %s (error)" % dispcmd) - print("stdout was %s" % stdout) + print ("unable to run %s (error)" % dispcmd) + print ("stdout was %s" % stdout) return None, p.returncode return stdout, p.returncode @@ -116,16 +119,22 @@ def versions_from_parentdir(parentdir_prefix, root, verbose): for i in range(3): dirname = os.path.basename(root) if dirname.startswith(parentdir_prefix): - return {"version": dirname[len(parentdir_prefix):], - "full-revisionid": None, - "dirty": False, "error": None, "date": None} + return { + "version": dirname[len(parentdir_prefix) :], + "full-revisionid": None, + "dirty": False, + "error": None, + "date": None, + } else: rootdirs.append(root) root = os.path.dirname(root) # up a level if verbose: - print("Tried directories %s but none started with prefix %s" % - (str(rootdirs), parentdir_prefix)) + print ( + "Tried directories %s but none started with prefix %s" + % (str(rootdirs), parentdir_prefix) + ) raise NotThisMethod("rootdir doesn't start with parentdir_prefix") @@ -175,13 +184,13 @@ def git_versions_from_keywords(keywords, tag_prefix, verbose): refnames = keywords["refnames"].strip() if refnames.startswith("$Format"): if verbose: - print("keywords are unexpanded, not using") + print ("keywords are unexpanded, not using") raise NotThisMethod("unexpanded keywords, not a git-archive tarball") refs = set([r.strip() for r in refnames.strip("()").split(",")]) # starting in git-1.8.3, tags are listed as "tag: foo-1.0" instead of # just "foo-1.0". If we see a "tag: " prefix, prefer those. TAG = "tag: " - tags = set([r[len(TAG):] for r in refs if r.startswith(TAG)]) + tags = set([r[len(TAG) :] for r in refs if r.startswith(TAG)]) if not tags: # Either we're using git < 1.8.3, or there really are no tags. We use # a heuristic: assume all version tags have a digit. The old git %d @@ -190,27 +199,34 @@ def git_versions_from_keywords(keywords, tag_prefix, verbose): # between branches and tags. By ignoring refnames without digits, we # filter out many common branch names like "release" and # "stabilization", as well as "HEAD" and "master". - tags = set([r for r in refs if re.search(r'\d', r)]) + tags = set([r for r in refs if re.search(r"\d", r)]) if verbose: - print("discarding '%s', no digits" % ",".join(refs - tags)) + print ("discarding '%s', no digits" % ",".join(refs - tags)) if verbose: - print("likely tags: %s" % ",".join(sorted(tags))) + print ("likely tags: %s" % ",".join(sorted(tags))) for ref in sorted(tags): # sorting will prefer e.g. "2.0" over "2.0rc1" if ref.startswith(tag_prefix): - r = ref[len(tag_prefix):] + r = ref[len(tag_prefix) :] if verbose: - print("picking %s" % r) - return {"version": r, - "full-revisionid": keywords["full"].strip(), - "dirty": False, "error": None, - "date": date} + print ("picking %s" % r) + return { + "version": r, + "full-revisionid": keywords["full"].strip(), + "dirty": False, + "error": None, + "date": date, + } # no suitable tags, so version is "0+unknown", but full hex is still there if verbose: - print("no suitable tags, using unknown + full revision id") - return {"version": "0+unknown", - "full-revisionid": keywords["full"].strip(), - "dirty": False, "error": "no suitable tags", "date": None} + print ("no suitable tags, using unknown + full revision id") + return { + "version": "0+unknown", + "full-revisionid": keywords["full"].strip(), + "dirty": False, + "error": "no suitable tags", + "date": None, + } @register_vcs_handler("git", "pieces_from_vcs") @@ -225,19 +241,27 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): if sys.platform == "win32": GITS = ["git.cmd", "git.exe"] - out, rc = run_command(GITS, ["rev-parse", "--git-dir"], cwd=root, - hide_stderr=True) + out, rc = run_command(GITS, ["rev-parse", "--git-dir"], cwd=root, hide_stderr=True) if rc != 0: if verbose: - print("Directory %s not under git control" % root) + print ("Directory %s not under git control" % root) raise NotThisMethod("'git rev-parse --git-dir' returned error") # if there is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty] # if there isn't one, this yields HEX[-dirty] (no NUM) - describe_out, rc = run_command(GITS, ["describe", "--tags", "--dirty", - "--always", "--long", - "--match", "%s*" % tag_prefix], - cwd=root) + describe_out, rc = run_command( + GITS, + [ + "describe", + "--tags", + "--dirty", + "--always", + "--long", + "--match", + "%s*" % tag_prefix, + ], + cwd=root, + ) # --long was added in git-1.5.5 if describe_out is None: raise NotThisMethod("'git describe' failed") @@ -260,17 +284,16 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): dirty = git_describe.endswith("-dirty") pieces["dirty"] = dirty if dirty: - git_describe = git_describe[:git_describe.rindex("-dirty")] + git_describe = git_describe[: git_describe.rindex("-dirty")] # now we have TAG-NUM-gHEX or HEX if "-" in git_describe: # TAG-NUM-gHEX - mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe) + mo = re.search(r"^(.+)-(\d+)-g([0-9a-f]+)$", git_describe) if not mo: # unparseable. Maybe git-describe is misbehaving? - pieces["error"] = ("unable to parse git-describe output: '%s'" - % describe_out) + pieces["error"] = "unable to parse git-describe output: '%s'" % describe_out return pieces # tag @@ -278,11 +301,13 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): if not full_tag.startswith(tag_prefix): if verbose: fmt = "tag '%s' doesn't start with prefix '%s'" - print(fmt % (full_tag, tag_prefix)) - pieces["error"] = ("tag '%s' doesn't start with prefix '%s'" - % (full_tag, tag_prefix)) + print (fmt % (full_tag, tag_prefix)) + pieces["error"] = "tag '%s' doesn't start with prefix '%s'" % ( + full_tag, + tag_prefix, + ) return pieces - pieces["closest-tag"] = full_tag[len(tag_prefix):] + pieces["closest-tag"] = full_tag[len(tag_prefix) :] # distance: number of commits since tag pieces["distance"] = int(mo.group(2)) @@ -293,13 +318,13 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): else: # HEX: no tags pieces["closest-tag"] = None - count_out, rc = run_command(GITS, ["rev-list", "HEAD", "--count"], - cwd=root) + count_out, rc = run_command(GITS, ["rev-list", "HEAD", "--count"], cwd=root) pieces["distance"] = int(count_out) # total number of commits # commit date: see ISO-8601 comment in git_versions_from_keywords() - date = run_command(GITS, ["show", "-s", "--format=%ci", "HEAD"], - cwd=root)[0].strip() + date = run_command(GITS, ["show", "-s", "--format=%ci", "HEAD"], cwd=root)[ + 0 + ].strip() pieces["date"] = date.strip().replace(" ", "T", 1).replace(" ", "", 1) return pieces @@ -330,8 +355,7 @@ def render_pep440(pieces): rendered += ".dirty" else: # exception #1 - rendered = "0+untagged.%d.g%s" % (pieces["distance"], - pieces["short"]) + rendered = "0+untagged.%d.g%s" % (pieces["distance"], pieces["short"]) if pieces["dirty"]: rendered += ".dirty" return rendered @@ -445,11 +469,13 @@ def render_git_describe_long(pieces): def render(pieces, style): """Render the given version pieces into the requested style.""" if pieces["error"]: - return {"version": "unknown", - "full-revisionid": pieces.get("long"), - "dirty": None, - "error": pieces["error"], - "date": None} + return { + "version": "unknown", + "full-revisionid": pieces.get("long"), + "dirty": None, + "error": pieces["error"], + "date": None, + } if not style or style == "default": style = "pep440" # the default @@ -469,9 +495,13 @@ def render(pieces, style): else: raise ValueError("unknown style '%s'" % style) - return {"version": rendered, "full-revisionid": pieces["long"], - "dirty": pieces["dirty"], "error": None, - "date": pieces.get("date")} + return { + "version": rendered, + "full-revisionid": pieces["long"], + "dirty": pieces["dirty"], + "error": None, + "date": pieces.get("date"), + } def get_versions(): @@ -485,8 +515,7 @@ def get_versions(): verbose = cfg.verbose try: - return git_versions_from_keywords(get_keywords(), cfg.tag_prefix, - verbose) + return git_versions_from_keywords(get_keywords(), cfg.tag_prefix, verbose) except NotThisMethod: pass @@ -495,13 +524,16 @@ def get_versions(): # versionfile_source is the relative path from the top of the source # tree (where the .git directory might live) to this file. Invert # this to find the root from __file__. - for i in cfg.versionfile_source.split('/'): + for i in cfg.versionfile_source.split("/"): root = os.path.dirname(root) except NameError: - return {"version": "0+unknown", "full-revisionid": None, - "dirty": None, - "error": "unable to find root of source tree", - "date": None} + return { + "version": "0+unknown", + "full-revisionid": None, + "dirty": None, + "error": "unable to find root of source tree", + "date": None, + } try: pieces = git_pieces_from_vcs(cfg.tag_prefix, root, verbose) @@ -515,6 +547,10 @@ def get_versions(): except NotThisMethod: pass - return {"version": "0+unknown", "full-revisionid": None, - "dirty": None, - "error": "unable to compute version", "date": None} + return { + "version": "0+unknown", + "full-revisionid": None, + "dirty": None, + "error": "unable to compute version", + "date": None, + } diff --git a/packages/python/plotly/plotly/_widget_version.py b/packages/python/plotly/plotly/_widget_version.py index 7f759ec18c8..80ff967dddd 100644 --- a/packages/python/plotly/plotly/_widget_version.py +++ b/packages/python/plotly/plotly/_widget_version.py @@ -2,4 +2,4 @@ # for automated dev builds # # It is edited by hand prior to official releases -__frontend_version__ = '^1.0.0-alpha.1' +__frontend_version__ = "^1.0.0-alpha.1" diff --git a/packages/python/plotly/plotly/animation.py b/packages/python/plotly/plotly/animation.py index 4be5ee21699..1cf5e3a4d90 100644 --- a/packages/python/plotly/plotly/animation.py +++ b/packages/python/plotly/plotly/animation.py @@ -2,54 +2,53 @@ class EasingValidator(EnumeratedValidator): - - def __init__(self, plotly_name='easing', parent_name='batch_animate', **_): + def __init__(self, plotly_name="easing", parent_name="batch_animate", **_): super(EasingValidator, self).__init__( - plotly_name=plotly_name, - parent_name=parent_name, - values=[ - "linear", - "quad", - "cubic", - "sin", - "exp", - "circle", - "elastic", - "back", - "bounce", - "linear-in", - "quad-in", - "cubic-in", - "sin-in", - "exp-in", - "circle-in", - "elastic-in", - "back-in", - "bounce-in", - "linear-out", - "quad-out", - "cubic-out", - "sin-out", - "exp-out", - "circle-out", - "elastic-out", - "back-out", - "bounce-out", - "linear-in-out", - "quad-in-out", - "cubic-in-out", - "sin-in-out", - "exp-in-out", - "circle-in-out", - "elastic-in-out", - "back-in-out", - "bounce-in-out" - ]) + plotly_name=plotly_name, + parent_name=parent_name, + values=[ + "linear", + "quad", + "cubic", + "sin", + "exp", + "circle", + "elastic", + "back", + "bounce", + "linear-in", + "quad-in", + "cubic-in", + "sin-in", + "exp-in", + "circle-in", + "elastic-in", + "back-in", + "bounce-in", + "linear-out", + "quad-out", + "cubic-out", + "sin-out", + "exp-out", + "circle-out", + "elastic-out", + "back-out", + "bounce-out", + "linear-in-out", + "quad-in-out", + "cubic-in-out", + "sin-in-out", + "exp-in-out", + "circle-in-out", + "elastic-in-out", + "back-in-out", + "bounce-in-out", + ], + ) class DurationValidator(NumberValidator): - - def __init__(self, plotly_name='duration'): - super(DurationValidator, self).__init__(plotly_name=plotly_name, - parent_name='batch_animate', - min=0) + def __init__(self, plotly_name="duration"): + super(DurationValidator, self).__init__( + plotly_name=plotly_name, parent_name="batch_animate", min=0 + ) diff --git a/packages/python/plotly/plotly/api/utils.py b/packages/python/plotly/plotly/api/utils.py index d4ba3ad2d60..d8e26ec03ce 100644 --- a/packages/python/plotly/plotly/api/utils.py +++ b/packages/python/plotly/plotly/api/utils.py @@ -1,3 +1,4 @@ from __future__ import absolute_import from _plotly_future_ import _chart_studio_error -_chart_studio_error('api.utils') + +_chart_studio_error("api.utils") diff --git a/packages/python/plotly/plotly/api/v1.py b/packages/python/plotly/plotly/api/v1.py index 6c940530f07..a19b62e2bd1 100644 --- a/packages/python/plotly/plotly/api/v1.py +++ b/packages/python/plotly/plotly/api/v1.py @@ -1,3 +1,4 @@ from __future__ import absolute_import from _plotly_future_ import _chart_studio_error -_chart_studio_error('api.v1') + +_chart_studio_error("api.v1") diff --git a/packages/python/plotly/plotly/api/v2.py b/packages/python/plotly/plotly/api/v2.py index a14c603af76..251dc7a5ead 100644 --- a/packages/python/plotly/plotly/api/v2.py +++ b/packages/python/plotly/plotly/api/v2.py @@ -1,3 +1,4 @@ from __future__ import absolute_import from _plotly_future_ import _chart_studio_error -_chart_studio_error('api.v2') + +_chart_studio_error("api.v2") diff --git a/packages/python/plotly/plotly/basedatatypes.py b/packages/python/plotly/plotly/basedatatypes.py index 82f31c4b96f..40c5437d31f 100644 --- a/packages/python/plotly/plotly/basedatatypes.py +++ b/packages/python/plotly/plotly/basedatatypes.py @@ -13,17 +13,21 @@ from plotly.subplots import ( _set_trace_grid_reference, _get_grid_subplot, - _get_subplot_ref_for_trace) + _get_subplot_ref_for_trace, +) from .optional_imports import get_module from _plotly_utils.basevalidators import ( - CompoundValidator, CompoundArrayValidator, BaseDataValidator, - BaseValidator, LiteralValidator + CompoundValidator, + CompoundArrayValidator, + BaseDataValidator, + BaseValidator, + LiteralValidator, ) from . import animation -from .callbacks import (Points, InputDeviceState) +from .callbacks import Points, InputDeviceState from plotly.utils import ElidedPrettyPrinter -from .validators import (DataValidator, LayoutValidator, FramesValidator) +from .validators import DataValidator, LayoutValidator, FramesValidator # Create Undefined sentinel value # - Setting a property to None removes any existing value @@ -35,29 +39,27 @@ class BaseFigure(object): """ Base class for all figure types (both widget and non-widget) """ - _bracket_re = re.compile('^(.*)\[(\d+)\]$') + + _bracket_re = re.compile("^(.*)\[(\d+)\]$") _valid_underscore_properties = { - 'error_x': 'error-x', - 'error_y': 'error-y', - 'error_z': 'error-z', - 'copy_xstyle': 'copy-xstyle', - 'copy_ystyle': 'copy-ystyle', - 'copy_zstyle': 'copy-zstyle', - 'paper_bgcolor': 'paper-bgcolor', - 'plot_bgcolor': 'plot-bgcolor' + "error_x": "error-x", + "error_y": "error-y", + "error_z": "error-z", + "copy_xstyle": "copy-xstyle", + "copy_ystyle": "copy-ystyle", + "copy_zstyle": "copy-zstyle", + "paper_bgcolor": "paper-bgcolor", + "plot_bgcolor": "plot-bgcolor", } _set_trace_uid = False # Constructor # ----------- - def __init__(self, - data=None, - layout_plotly=None, - frames=None, - skip_invalid=False, - **kwargs): + def __init__( + self, data=None, layout_plotly=None, frames=None, skip_invalid=False, **kwargs + ): """ Construct a BaseFigure object @@ -129,17 +131,20 @@ class is a subclass of both BaseFigure and widgets.DOMWidget. # Extract data, layout, and frames data, layout, frames = data.data, data.layout, data.frames - elif (isinstance(data, dict) - and ('data' in data or 'layout' in data or 'frames' in data)): + elif isinstance(data, dict) and ( + "data" in data or "layout" in data or "frames" in data + ): # Bring over subplot fields - self._grid_str = data.get('_grid_str', None) - self._grid_ref = data.get('_grid_ref', None) + self._grid_str = data.get("_grid_str", None) + self._grid_ref = data.get("_grid_ref", None) # Extract data, layout, and frames - data, layout, frames = (data.get('data', None), - data.get('layout', None), - data.get('frames', None)) + data, layout, frames = ( + data.get("data", None), + data.get("layout", None), + data.get("frames", None), + ) # Handle data (traces) # -------------------- @@ -149,8 +154,7 @@ class is a subclass of both BaseFigure and widgets.DOMWidget. self._data_validator = DataValidator(set_uid=self._set_trace_uid) # ### Import traces ### - data = self._data_validator.validate_coerce(data, - skip_invalid=skip_invalid) + data = self._data_validator.validate_coerce(data, skip_invalid=skip_invalid) # ### Save tuple of trace objects ### self._data_objs = data @@ -192,7 +196,8 @@ class is a subclass of both BaseFigure and widgets.DOMWidget. # ### Import Layout ### self._layout_obj = self._layout_validator.validate_coerce( - layout, skip_invalid=skip_invalid) + layout, skip_invalid=skip_invalid + ) # ### Import clone of layout properties ### self._layout = deepcopy(self._layout_obj._props) @@ -213,6 +218,7 @@ class is a subclass of both BaseFigure and widgets.DOMWidget. # this will require a fair amount of testing to determine which # options are compatible with FigureWidget. from plotly.offline.offline import _get_jconfig + self._config = _get_jconfig(None) # Frames @@ -225,7 +231,8 @@ class is a subclass of both BaseFigure and widgets.DOMWidget. # ### Import frames ### self._frame_objs = self._frames_validator.validate_coerce( - frames, skip_invalid=skip_invalid) + frames, skip_invalid=skip_invalid + ) # Note: Because frames are not currently supported in the widget # context, we don't need to follow the pattern above and create @@ -271,7 +278,7 @@ class is a subclass of both BaseFigure and widgets.DOMWidget. if k in self: self[k] = v elif not skip_invalid: - raise TypeError('invalid Figure property: {}'.format(k)) + raise TypeError("invalid Figure property: {}".format(k)) # Magic Methods # ------------- @@ -281,10 +288,9 @@ def __reduce__(self): and pickling """ props = self.to_dict() - props['_grid_str'] = self._grid_str - props['_grid_ref'] = self._grid_ref - return (self.__class__, - (props,)) + props["_grid_str"] = self._grid_str + props["_grid_ref"] = self._grid_ref + return (self.__class__, (props,)) def __setitem__(self, prop, value): @@ -306,11 +312,11 @@ def __setitem__(self, prop, value): # ### Unwrap scalar tuple ### prop = prop[0] - if prop == 'data': + if prop == "data": self.data = value - elif prop == 'layout': + elif prop == "layout": self.layout = value - elif prop == 'frames': + elif prop == "frames": self.frames = value else: raise KeyError(prop) @@ -337,7 +343,7 @@ def __setattr__(self, prop, value): ------- None """ - if prop.startswith('_') or hasattr(self, prop): + if prop.startswith("_") or hasattr(self, prop): # Let known properties and private properties through super(BaseFigure, self).__setattr__(prop, value) else: @@ -359,11 +365,11 @@ def __getitem__(self, prop): # Unwrap scalar tuple prop = prop[0] - if prop == 'data': + if prop == "data": return self._data_validator.present(self._data_objs) - elif prop == 'layout': + elif prop == "layout": return self._layout_validator.present(self._layout_obj) - elif prop == 'frames': + elif prop == "frames": return self._frames_validator.present(self._frame_objs) else: raise KeyError(orig_prop) @@ -379,11 +385,11 @@ def __getitem__(self, prop): return res def __iter__(self): - return iter(('data', 'layout', 'frames')) + return iter(("data", "layout", "frames")) def __contains__(self, prop): prop = BaseFigure._str_to_dict_path(prop) - if prop[0] not in ('data', 'layout', 'frames'): + if prop[0] not in ("data", "layout", "frames"): return False elif len(prop) == 1: return True @@ -399,8 +405,9 @@ def __eq__(self, other): # Use _vals_equal instead of `==` to handle cases where # underlying dicts contain numpy arrays - return BasePlotlyType._vals_equal(self.to_plotly_json(), - other.to_plotly_json()) + return BasePlotlyType._vals_equal( + self.to_plotly_json(), other.to_plotly_json() + ) def __repr__(self): """ @@ -410,13 +417,13 @@ def __repr__(self): props = self.to_plotly_json() # Elide template - template_props = props.get('layout', {}).get('template', {}) + template_props = props.get("layout", {}).get("template", {}) if template_props: - props['layout']['template'] = '...' + props["layout"]["template"] = "..." repr_str = BasePlotlyType._build_repr_for_class( - props=props, - class_name=self.__class__.__name__) + props=props, class_name=self.__class__.__name__ + ) return repr_str @@ -425,6 +432,7 @@ def _repr_mimebundle_(self, include, exclude, **kwargs): repr_mimebundle should accept include, exclude and **kwargs """ import plotly.io as pio + if pio.renderers.render_on_display: data = pio.renderers._build_mime_bundle(self.to_dict()) @@ -485,14 +493,15 @@ def update(self, dict1=None, **kwargs): if update_target == (): # existing data or frames property is empty # In this case we accept the v as is. - if k == 'data': + if k == "data": self.add_traces(v) else: # Accept v self[k] = v - elif (isinstance(update_target, BasePlotlyType) or - (isinstance(update_target, tuple) and - isinstance(update_target[0], BasePlotlyType))): + elif isinstance(update_target, BasePlotlyType) or ( + isinstance(update_target, tuple) + and isinstance(update_target[0], BasePlotlyType) + ): BaseFigure._perform_update(self[k], v) else: self[k] = v @@ -540,16 +549,18 @@ def data(self): ------- tuple[BaseTraceType] """ - return self['data'] + return self["data"] @data.setter def data(self, new_data): # Validate new_data # ----------------- - err_header = ('The data property of a figure may only be assigned \n' - 'a list or tuple that contains a permutation of a ' - 'subset of itself.\n') + err_header = ( + "The data property of a figure may only be assigned \n" + "a list or tuple that contains a permutation of a " + "subset of itself.\n" + ) # ### Treat None as empty ### if new_data is None: @@ -557,16 +568,18 @@ def data(self, new_data): # ### Check valid input type ### if not isinstance(new_data, (list, tuple)): - err_msg = (err_header + ' Received value with type {typ}' - .format(typ=type(new_data))) + err_msg = err_header + " Received value with type {typ}".format( + typ=type(new_data) + ) raise ValueError(err_msg) # ### Check valid element types ### for trace in new_data: if not isinstance(trace, BaseTraceType): err_msg = ( - err_header + ' Received element value of type {typ}' - .format(typ=type(trace))) + err_header + + " Received element value of type {typ}".format(typ=type(trace)) + ) raise ValueError(err_msg) # ### Check trace objects ### @@ -582,12 +595,9 @@ def data(self, new_data): # ### Check for duplicates in assignment ### uid_counter = collections.Counter(new_uids) - duplicate_uids = [ - uid for uid, count in uid_counter.items() if count > 1 - ] + duplicate_uids = [uid for uid, count in uid_counter.items() if count > 1] if duplicate_uids: - err_msg = ( - err_header + ' Received duplicated traces') + err_msg = err_header + " Received duplicated traces" raise ValueError(err_msg) @@ -653,7 +663,8 @@ def data(self, new_data): # #### Sort new_inds and moving_traces_data by new_inds #### new_inds, moving_traces_data = zip( - *sorted(zip(new_inds, moving_traces_data))) + *sorted(zip(new_inds, moving_traces_data)) + ) # #### Insert by new_inds in forward order #### for ni, trace_data in zip(new_inds, moving_traces_data): @@ -663,8 +674,8 @@ def data(self, new_data): # There is to front-end syncronization to worry about so this # operations doesn't need to be in-place self._data_defaults = [ - _trace for i, _trace in sorted( - zip(new_inds, traces_prop_defaults_post_removal)) + _trace + for i, _trace in sorted(zip(new_inds, traces_prop_defaults_post_removal)) ] # Update trace objects tuple @@ -674,8 +685,7 @@ def data(self, new_data): for trace_ind, trace in enumerate(self._data_objs): trace._trace_ind = trace_ind - def select_traces( - self, selector=None, row=None, col=None, secondary_y=None): + def select_traces(self, selector=None, row=None, col=None, secondary_y=None): """ Select traces from a particular subplot cell and/or traces that satisfy custom selection criteria. @@ -720,21 +730,17 @@ def select_traces( if row is None and col is not None: # All rows for column - grid_subplot_ref_tuples = [ - ref_row[col-1] for ref_row in grid_ref - ] + grid_subplot_ref_tuples = [ref_row[col - 1] for ref_row in grid_ref] elif col is None and row is not None: # All columns for row - grid_subplot_ref_tuples = grid_ref[row-1] + grid_subplot_ref_tuples = grid_ref[row - 1] elif col is not None and row is not None: # Single grid cell - grid_subplot_ref_tuples = [grid_ref[row-1][col-1]] + grid_subplot_ref_tuples = [grid_ref[row - 1][col - 1]] else: # row and col are None, secondary_y not None grid_subplot_ref_tuples = [ - refs - for refs_row in grid_ref - for refs in refs_row + refs for refs_row in grid_ref for refs in refs_row ] # Collect list of subplot refs, taking secondary_y into account @@ -753,10 +759,10 @@ def select_traces( grid_subplot_refs = None return self._perform_select_traces( - filter_by_subplot, grid_subplot_refs, selector) + filter_by_subplot, grid_subplot_refs, selector + ) - def _perform_select_traces( - self, filter_by_subplot, grid_subplot_refs, selector): + def _perform_select_traces(self, filter_by_subplot, grid_subplot_refs, selector): for trace in self.data: # Filter by subplot @@ -794,8 +800,7 @@ def _selector_matches(obj, selector): return True - def for_each_trace( - self, fn, selector=None, row=None, col=None, secondary_y=None): + def for_each_trace(self, fn, selector=None, row=None, col=None, secondary_y=None): """ Apply a function to all traces that satisfy the specified selection criteria @@ -833,19 +838,14 @@ def for_each_trace( Returns the Figure object that the method was called on """ for trace in self.select_traces( - selector=selector, row=row, col=col, secondary_y=secondary_y): + selector=selector, row=row, col=col, secondary_y=secondary_y + ): fn(trace) return self def update_traces( - self, - patch=None, - selector=None, - row=None, - col=None, - secondary_y=None, - **kwargs + self, patch=None, selector=None, row=None, col=None, secondary_y=None, **kwargs ): """ Perform a property update operation on all traces that satisfy the @@ -890,7 +890,8 @@ def update_traces( Returns the Figure object that the method was called on """ for trace in self.select_traces( - selector=selector, row=row, col=col, secondary_y=secondary_y): + selector=selector, row=row, col=col, secondary_y=secondary_y + ): trace.update(patch, **kwargs) return self @@ -918,12 +919,7 @@ def update_layout(self, dict1=None, **kwargs): return self def _select_layout_subplots_by_prefix( - self, - prefix, - selector=None, - row=None, - col=None, - secondary_y=None + self, prefix, selector=None, row=None, col=None, secondary_y=None ): """ Helper called by code generated select_* methods @@ -945,7 +941,10 @@ def _select_layout_subplots_by_prefix( if layout_key.startswith(prefix): is_secondary_y = i == 1 container_to_row_col[layout_key] = ( - r + 1, c + 1, is_secondary_y) + r + 1, + c + 1, + is_secondary_y, + ) else: container_to_row_col = None @@ -956,19 +955,23 @@ def _select_layout_subplots_by_prefix( if k.startswith(prefix) and self.layout[k] is not None: # Filter by row/col - if (row is not None and - container_to_row_col.get( - k, (None, None, None))[0] != row): + if ( + row is not None + and container_to_row_col.get(k, (None, None, None))[0] != row + ): # row specified and this is not a match continue - elif (col is not None and - container_to_row_col.get( - k, (None, None, None))[1] != col): + elif ( + col is not None + and container_to_row_col.get(k, (None, None, None))[1] != col + ): # col specified and this is not a match continue - elif (secondary_y is not None and - container_to_row_col.get( - k, (None, None, None))[2] != secondary_y): + elif ( + secondary_y is not None + and container_to_row_col.get(k, (None, None, None))[2] + != secondary_y + ): continue # Filter by selector @@ -1027,27 +1030,24 @@ def plotly_restyle(self, restyle_data, trace_indexes=None, **kwargs): # (e.g. the user clicked on the legend to hide a trace). We pass # this UID along so that the frontend views can determine whether # they need to apply the restyle operation on themselves. - source_view_id = kwargs.get('source_view_id', None) + source_view_id = kwargs.get("source_view_id", None) # Perform restyle on trace dicts # ------------------------------ - restyle_changes = self._perform_plotly_restyle(restyle_data, - trace_indexes) + restyle_changes = self._perform_plotly_restyle(restyle_data, trace_indexes) if restyle_changes: # The restyle operation resulted in a change to some trace # properties, so we dispatch change callbacks and send the # restyle message to the frontend (if any) - msg_kwargs = ({'source_view_id': source_view_id} - if source_view_id is not None - else {}) + msg_kwargs = ( + {"source_view_id": source_view_id} if source_view_id is not None else {} + ) self._send_restyle_msg( - restyle_changes, - trace_indexes=trace_indexes, - **msg_kwargs) + restyle_changes, trace_indexes=trace_indexes, **msg_kwargs + ) - self._dispatch_trace_change_callbacks( - restyle_changes, trace_indexes) + self._dispatch_trace_change_callbacks(restyle_changes, trace_indexes) def _perform_plotly_restyle(self, restyle_data, trace_indexes): """ @@ -1082,8 +1082,10 @@ def _perform_plotly_restyle(self, restyle_data, trace_indexes): for i, trace_ind in enumerate(trace_indexes): if trace_ind >= len(self._data): raise ValueError( - 'Trace index {trace_ind} out of range'.format( - trace_ind=trace_ind)) + "Trace index {trace_ind} out of range".format( + trace_ind=trace_ind + ) + ) # Get new value for this particular trace trace_v = v[i % len(v)] if isinstance(v, list) else v @@ -1094,21 +1096,24 @@ def _perform_plotly_restyle(self, restyle_data, trace_indexes): trace_obj = self.data[trace_ind] # Validate key_path_str - if not BaseFigure._is_key_path_compatible( - key_path_str, trace_obj): + if not BaseFigure._is_key_path_compatible(key_path_str, trace_obj): trace_class = trace_obj.__class__.__name__ - raise ValueError(""" + raise ValueError( + """ Invalid property path '{key_path_str}' for trace class {trace_class} -""".format(key_path_str=key_path_str, trace_class=trace_class)) +""".format( + key_path_str=key_path_str, trace_class=trace_class + ) + ) # Apply set operation for this trace and thist value - val_changed = BaseFigure._set_in(self._data[trace_ind], - key_path_str, - trace_v) + val_changed = BaseFigure._set_in( + self._data[trace_ind], key_path_str, trace_v + ) # Update any_vals_changed status - any_vals_changed = (any_vals_changed or val_changed) + any_vals_changed = any_vals_changed or val_changed if any_vals_changed: restyle_changes[key_path_str] = v @@ -1193,10 +1198,12 @@ def _str_to_dict_path(key_path_str): ------- tuple[str | int] """ - if isinstance(key_path_str, string_types) and \ - '.' not in key_path_str and \ - '[' not in key_path_str and \ - '_' not in key_path_str: + if ( + isinstance(key_path_str, string_types) + and "." not in key_path_str + and "[" not in key_path_str + and "_" not in key_path_str + ): # Fast path for common case that avoids regular expressions return (key_path_str,) elif isinstance(key_path_str, tuple): @@ -1205,7 +1212,7 @@ def _str_to_dict_path(key_path_str): else: # Split string on periods. # e.g. 'foo.bar_baz[1]' -> ['foo', 'bar_baz[1]'] - key_path = key_path_str.split('.') + key_path = key_path_str.split(".") # Split out bracket indexes. # e.g. ['foo', 'bar_baz[1]'] -> ['foo', 'bar_baz', '1'] @@ -1222,7 +1229,7 @@ def _str_to_dict_path(key_path_str): key_path3 = [] underscore_props = BaseFigure._valid_underscore_properties for key in key_path2: - if '_' in key[1:]: + if "_" in key[1:]: # For valid properties that contain underscores (error_x) # replace the underscores with hyphens to protect them # from being split up @@ -1230,12 +1237,12 @@ def _str_to_dict_path(key_path_str): key = key.replace(under_prop, hyphen_prop) # Split key on underscores - key = key.split('_') + key = key.split("_") # Replace hyphens with underscores to restore properties # that include underscores for i in range(len(key)): - key[i] = key[i].replace('-', '_') + key[i] = key[i].replace("-", "_") key_path3.extend(key) else: @@ -1295,13 +1302,11 @@ def _set_in(d, key_path_str, v): for kp, key_path_el in enumerate(key_path[:-1]): # Extend val_parent list if needed - if (isinstance(val_parent, list) and - isinstance(key_path_el, int)): + if isinstance(val_parent, list) and isinstance(key_path_el, int): while len(val_parent) <= key_path_el: val_parent.append(None) - elif (isinstance(val_parent, dict) and - key_path_el not in val_parent): + elif isinstance(val_parent, dict) and key_path_el not in val_parent: if isinstance(key_path[kp + 1], int): val_parent[key_path_el] = [] else: @@ -1334,26 +1339,27 @@ def _set_in(d, key_path_str, v): val_parent.pop(last_key) val_changed = True elif isinstance(val_parent, list): - if (isinstance(last_key, int) and - 0 <= last_key < len(val_parent)): + if isinstance(last_key, int) and 0 <= last_key < len(val_parent): # Parent is a list and last_key is a valid index so we # can set the element value to None val_parent[last_key] = None val_changed = True else: # Unsupported parent type (numpy array for example) - raise ValueError(""" - Cannot remove element of type {typ} at location {raw_key}""" - .format(typ=type(val_parent), - raw_key=key_path_str)) + raise ValueError( + """ + Cannot remove element of type {typ} at location {raw_key}""".format( + typ=type(val_parent), raw_key=key_path_str + ) + ) # v is a valid value # ------------------ # Check whether parent should be updated else: if isinstance(val_parent, dict): - if (last_key not in val_parent - or not BasePlotlyType._vals_equal( - val_parent[last_key], v)): + if last_key not in val_parent or not BasePlotlyType._vals_equal( + val_parent[last_key], v + ): # Parent is a dict and does not already contain the # value v at key last_key val_parent[last_key] = v @@ -1365,18 +1371,19 @@ def _set_in(d, key_path_str, v): while len(val_parent) <= last_key: val_parent.append(None) - if not BasePlotlyType._vals_equal( - val_parent[last_key], v): + if not BasePlotlyType._vals_equal(val_parent[last_key], v): # Parent is a list and does not already contain the # value v at index last_key val_parent[last_key] = v val_changed = True else: # Unsupported parent type (numpy array for example) - raise ValueError(""" - Cannot set element of type {typ} at location {raw_key}""" - .format(typ=type(val_parent), - raw_key=key_path_str)) + raise ValueError( + """ + Cannot set element of type {typ} at location {raw_key}""".format( + typ=type(val_parent), raw_key=key_path_str + ) + ) return val_changed # Add traces @@ -1388,7 +1395,9 @@ def _raise_invalid_rows_cols(name, n, invalid): of length {n} (The number of traces being added) Received: {invalid} - """.format(name=name, n=n, invalid=invalid) + """.format( + name=name, n=n, invalid=invalid + ) raise ValueError(rows_err_msg) @@ -1398,12 +1407,10 @@ def _validate_rows_cols(name, n, vals): pass elif isinstance(vals, (list, tuple)): if len(vals) != n: - BaseFigure._raise_invalid_rows_cols( - name=name, n=n, invalid=vals) + BaseFigure._raise_invalid_rows_cols(name=name, n=n, invalid=vals) if [r for r in vals if not isinstance(r, int)]: - BaseFigure._raise_invalid_rows_cols( - name=name, n=n, invalid=vals) + BaseFigure._raise_invalid_rows_cols(name=name, n=n, invalid=vals) else: BaseFigure._raise_invalid_rows_cols(name=name, n=n, invalid=vals) @@ -1476,18 +1483,20 @@ def add_trace(self, trace, row=None, col=None, secondary_y=None): # Make sure we have both row and col or neither if row is not None and col is None: raise ValueError( - 'Received row parameter but not col.\n' - 'row and col must be specified together') + "Received row parameter but not col.\n" + "row and col must be specified together" + ) elif col is not None and row is None: raise ValueError( - 'Received col parameter but not row.\n' - 'row and col must be specified together') + "Received col parameter but not row.\n" + "row and col must be specified together" + ) return self.add_traces( data=[trace], rows=[row] if row is not None else None, cols=[col] if col is not None else None, - secondary_ys=[secondary_y] if secondary_y is not None else None + secondary_ys=[secondary_y] if secondary_y is not None else None, ) def add_traces(self, data, rows=None, cols=None, secondary_ys=None): @@ -1553,18 +1562,20 @@ def add_traces(self, data, rows=None, cols=None, secondary_ys=None): # Validate rows / cols n = len(data) - BaseFigure._validate_rows_cols('rows', n, rows) - BaseFigure._validate_rows_cols('cols', n, cols) + BaseFigure._validate_rows_cols("rows", n, rows) + BaseFigure._validate_rows_cols("cols", n, cols) # Make sure we have both rows and cols or neither if rows is not None and cols is None: raise ValueError( - 'Received rows parameter but not cols.\n' - 'rows and cols must be specified together') + "Received rows parameter but not cols.\n" + "rows and cols must be specified together" + ) elif cols is not None and rows is None: raise ValueError( - 'Received cols parameter but not rows.\n' - 'rows and cols must be specified together') + "Received cols parameter but not rows.\n" + "rows and cols must be specified together" + ) # Process secondary_ys defaults if secondary_ys is not None and rows is None: @@ -1579,8 +1590,7 @@ def add_traces(self, data, rows=None, cols=None, secondary_ys=None): # Apply rows / cols if rows is not None: - for trace, row, col, secondary_y in \ - zip(data, rows, cols, secondary_ys): + for trace, row, col, secondary_y in zip(data, rows, cols, secondary_ys): self._set_trace_grid_position(trace, row, col, secondary_y) # Make deep copy of trace data (Optimize later if needed) @@ -1611,9 +1621,10 @@ def print_grid(self): with plotly.tools.make_subplots. """ if self._grid_str is None: - raise Exception("Use plotly.tools.make_subplots " - "to create a subplot grid.") - print(self._grid_str) + raise Exception( + "Use plotly.tools.make_subplots " "to create a subplot grid." + ) + print (self._grid_str) def append_trace(self, trace, row, col): """ @@ -1646,29 +1657,34 @@ def append_trace(self, trace, row, col): >>> fig.append_trace(go.Scatter(x=[1,2,3], y=[2,1,2]), row=1, col=1) >>> fig.append_trace(go.Scatter(x=[1,2,3], y=[2,1,2]), row=2, col=1) """ - warnings.warn("""\ + warnings.warn( + """\ The append_trace method is deprecated and will be removed in a future version. Please use the add_trace method with the row and col parameters. -""", DeprecationWarning) +""", + DeprecationWarning, + ) self.add_trace(trace=trace, row=row, col=col) - def _set_trace_grid_position( - self, trace, row, col, secondary_y=False): + def _set_trace_grid_position(self, trace, row, col, secondary_y=False): grid_ref = self._validate_get_grid_ref() return _set_trace_grid_reference( - trace, self.layout, grid_ref, row, col, secondary_y) + trace, self.layout, grid_ref, row, col, secondary_y + ) def _validate_get_grid_ref(self): try: grid_ref = self._grid_ref if grid_ref is None: - raise AttributeError('_grid_ref') + raise AttributeError("_grid_ref") except AttributeError: - raise Exception("In order to reference traces by row and column, " - "you must first use " - "plotly.tools.make_subplots " - "to create the figure with a subplot grid.") + raise Exception( + "In order to reference traces by row and column, " + "you must first use " + "plotly.tools.make_subplots " + "to create the figure with a subplot grid." + ) return grid_ref def get_subplot(self, row, col, secondary_y=False): @@ -1741,7 +1757,7 @@ def _get_child_props(self, child): # Unknown child # ------------- else: - raise ValueError('Unrecognized child: %s' % child) + raise ValueError("Unrecognized child: %s" % child) def _get_child_prop_defaults(self, child): """ @@ -1772,7 +1788,7 @@ def _get_child_prop_defaults(self, child): # Unknown child # ------------- else: - raise ValueError('Unrecognized child: %s' % child) + raise ValueError("Unrecognized child: %s" % child) def _init_child_props(self, child): """ @@ -1797,6 +1813,7 @@ def _init_child_props(self, child): # ------ def _initialize_layout_template(self): import plotly.io as pio + if self._layout_obj.template is None: if pio.templates.default is not None: self._layout_obj.template = pio.templates.default @@ -1812,7 +1829,7 @@ def layout(self): ------- plotly.graph_objs.Layout """ - return self['layout'] + return self["layout"] @layout.setter def layout(self, new_layout): @@ -1871,8 +1888,8 @@ def plotly_relayout(self, relayout_data, **kwargs): # from zoom to pan). We pass this UID along so that the frontend # views can determine whether they need to apply the relayout # operation on themselves. - if 'source_view_id' in kwargs: - msg_kwargs = {'source_view_id': kwargs['source_view_id']} + if "source_view_id" in kwargs: + msg_kwargs = {"source_view_id": kwargs["source_view_id"]} else: msg_kwargs = {} @@ -1883,8 +1900,7 @@ def plotly_relayout(self, relayout_data, **kwargs): # The relayout operation resulted in a change to some layout # properties, so we dispatch change callbacks and send the # relayout message to the frontend (if any) - self._send_relayout_msg( - relayout_changes, **msg_kwargs) + self._send_relayout_msg(relayout_changes, **msg_kwargs) self._dispatch_layout_change_callbacks(relayout_changes) @@ -1913,12 +1929,15 @@ def _perform_plotly_relayout(self, relayout_data): # ---------------- for key_path_str, v in relayout_data.items(): - if not BaseFigure._is_key_path_compatible( - key_path_str, self.layout): + if not BaseFigure._is_key_path_compatible(key_path_str, self.layout): - raise ValueError(""" + raise ValueError( + """ Invalid property path '{key_path_str}' for layout -""".format(key_path_str=key_path_str)) +""".format( + key_path_str=key_path_str + ) + ) # Apply set operation on the layout dict val_changed = BaseFigure._set_in(self._layout, key_path_str, v) @@ -2043,10 +2062,10 @@ def _build_dispatch_plan(key_path_strs): if key_path_so_far not in dispatch_plan: dispatch_plan[key_path_so_far] = set() - to_add = [keys_left[:i+1] for i in range(len(keys_left))] + to_add = [keys_left[: i + 1] for i in range(len(keys_left))] dispatch_plan[key_path_so_far].update(to_add) - key_path_so_far = key_path_so_far + (next_key, ) + key_path_so_far = key_path_so_far + (next_key,) keys_left = keys_left[1:] return dispatch_plan @@ -2120,7 +2139,7 @@ def frames(self): ------- tuple[plotly.graph_objs.Frame] """ - return self['frames'] + return self["frames"] @frames.setter def frames(self, new_frames): @@ -2133,11 +2152,9 @@ def frames(self, new_frames): # Update # ------ - def plotly_update(self, - restyle_data=None, - relayout_data=None, - trace_indexes=None, - **kwargs): + def plotly_update( + self, restyle_data=None, relayout_data=None, trace_indexes=None, **kwargs + ): """ Perform a Plotly update operation on the figure. @@ -2169,8 +2186,8 @@ def plotly_update(self, # operation). We pass this UID along so that the frontend views can # determine whether they need to apply the update operation on # themselves. - if 'source_view_id' in kwargs: - msg_kwargs = {'source_view_id': kwargs['source_view_id']} + if "source_view_id" in kwargs: + msg_kwargs = {"source_view_id": kwargs["source_view_id"]} else: msg_kwargs = {} @@ -2178,12 +2195,15 @@ def plotly_update(self, # ------------------------ # This updates the _data and _layout dicts, and returns the changes # to the traces (restyle_changes) and layout (relayout_changes) - (restyle_changes, - relayout_changes, - trace_indexes) = self._perform_plotly_update( + ( + restyle_changes, + relayout_changes, + trace_indexes, + ) = self._perform_plotly_update( restyle_data=restyle_data, relayout_data=relayout_data, - trace_indexes=trace_indexes) + trace_indexes=trace_indexes, + ) # Send update message # ------------------- @@ -2193,21 +2213,22 @@ def plotly_update(self, restyle_data=restyle_changes, relayout_data=relayout_changes, trace_indexes=trace_indexes, - **msg_kwargs) + **msg_kwargs + ) # Dispatch changes # ---------------- # ### Dispatch restyle changes ### if restyle_changes: - self._dispatch_trace_change_callbacks( - restyle_changes, trace_indexes) + self._dispatch_trace_change_callbacks(restyle_changes, trace_indexes) # ### Dispatch relayout changes ### if relayout_changes: self._dispatch_layout_change_callbacks(relayout_changes) - def _perform_plotly_update(self, restyle_data=None, relayout_data=None, - trace_indexes=None): + def _perform_plotly_update( + self, restyle_data=None, relayout_data=None, trace_indexes=None + ): # Check for early exist # --------------------- @@ -2230,8 +2251,7 @@ def _perform_plotly_update(self, restyle_data=None, relayout_data=None, # Perform restyle # --------------- - restyle_changes = self._perform_plotly_restyle( - restyle_data, trace_indexes) + restyle_changes = self._perform_plotly_restyle(restyle_data, trace_indexes) # Return changes # -------------- @@ -2249,25 +2269,20 @@ def _send_moveTraces_msg(self, current_inds, new_inds): def _send_deleteTraces_msg(self, delete_inds): pass - def _send_restyle_msg(self, style, trace_indexes=None, - source_view_id=None): + def _send_restyle_msg(self, style, trace_indexes=None, source_view_id=None): pass def _send_relayout_msg(self, layout, source_view_id=None): pass - def _send_update_msg(self, - restyle_data, - relayout_data, - trace_indexes=None, - source_view_id=None): + def _send_update_msg( + self, restyle_data, relayout_data, trace_indexes=None, source_view_id=None + ): pass - def _send_animate_msg(self, - styles_data, - relayout_data, - trace_indexes, - animation_opts): + def _send_animate_msg( + self, styles_data, relayout_data, trace_indexes, animation_opts + ): pass # Context managers @@ -2323,15 +2338,18 @@ def batch_update(self): self._in_batch_mode = False # ### Build plotly_update params ### - (restyle_data, - relayout_data, - trace_indexes) = self._build_update_params_from_batch() + ( + restyle_data, + relayout_data, + trace_indexes, + ) = self._build_update_params_from_batch() # ### Call plotly_update ### self.plotly_update( restyle_data=restyle_data, relayout_data=relayout_data, - trace_indexes=trace_indexes) + trace_indexes=trace_indexes, + ) # ### Clear out saved batch edits ### self._batch_layout_edits.clear() @@ -2351,19 +2369,21 @@ def _build_update_params_from_batch(self): # Handle Style / Trace Indexes # ---------------------------- batch_style_commands = self._batch_trace_edits - trace_indexes = sorted( - set([trace_ind for trace_ind in batch_style_commands])) + trace_indexes = sorted(set([trace_ind for trace_ind in batch_style_commands])) all_props = sorted( - set([ - prop for trace_style in self._batch_trace_edits.values() - for prop in trace_style - ])) + set( + [ + prop + for trace_style in self._batch_trace_edits.values() + for prop in trace_style + ] + ) + ) # Initialize restyle_data dict with all values undefined restyle_data = { - prop: [Undefined for _ in range(len(trace_indexes))] - for prop in all_props + prop: [Undefined for _ in range(len(trace_indexes))] for prop in all_props } # Fill in values @@ -2469,15 +2489,12 @@ def batch_animate(self, duration=500, easing="cubic-in-out"): # Apply batch animate # ------------------- - self._perform_batch_animate({ - 'transition': { - 'duration': duration, - 'easing': easing - }, - 'frame': { - 'duration': duration + self._perform_batch_animate( + { + "transition": {"duration": duration, "easing": easing}, + "frame": {"duration": duration}, } - }) + ) def _perform_batch_animate(self, animation_opts): """ @@ -2497,22 +2514,27 @@ def _perform_batch_animate(self, animation_opts): """ # Apply commands to internal dictionaries as an update # ---------------------------------------------------- - (restyle_data, - relayout_data, - trace_indexes) = self._build_update_params_from_batch() - - (restyle_changes, - relayout_changes, - trace_indexes) = self._perform_plotly_update(restyle_data, - relayout_data, - trace_indexes) + ( + restyle_data, + relayout_data, + trace_indexes, + ) = self._build_update_params_from_batch() + + ( + restyle_changes, + relayout_changes, + trace_indexes, + ) = self._perform_plotly_update(restyle_data, relayout_data, trace_indexes) # Convert style / trace_indexes into animate form # ----------------------------------------------- if self._batch_trace_edits: animate_styles, animate_trace_indexes = zip( - *[(trace_style, trace_index) for trace_index, trace_style in - self._batch_trace_edits.items()]) + *[ + (trace_style, trace_index) + for trace_index, trace_style in self._batch_trace_edits.items() + ] + ) else: animate_styles, animate_trace_indexes = {}, [] @@ -2525,7 +2547,8 @@ def _perform_batch_animate(self, animation_opts): styles_data=list(animate_styles), relayout_data=animate_layout, trace_indexes=list(animate_trace_indexes), - animation_opts=animation_opts) + animation_opts=animation_opts, + ) # Clear batched commands # ---------------------- @@ -2536,8 +2559,7 @@ def _perform_batch_animate(self, animation_opts): # ------------------ # ### Dispatch restyle changes ### if restyle_changes: - self._dispatch_trace_change_callbacks(restyle_changes, - trace_indexes) + self._dispatch_trace_change_callbacks(restyle_changes, trace_indexes) # ### Dispatch relayout changes ### if relayout_changes: @@ -2567,10 +2589,10 @@ def to_dict(self): # Handle frames # ------------- # Frame key is only added if there are any frames - res = {'data': data, 'layout': layout} + res = {"data": data, "layout": layout} frames = deepcopy([frame._props for frame in self._frame_objs]) if frames: - res['frames'] = frames + res["frames"] = frames return res @@ -2594,16 +2616,14 @@ def _to_ordered_dict(d, skip_uid=False): # d is a dict result = collections.OrderedDict() for key in sorted(d.keys()): - if skip_uid and key == 'uid': + if skip_uid and key == "uid": continue else: - result[key] = BaseFigure._to_ordered_dict( - d[key], skip_uid=skip_uid) + result[key] = BaseFigure._to_ordered_dict(d[key], skip_uid=skip_uid) elif isinstance(d, list) and d and isinstance(d[0], dict): # d is a list of dicts - result = [BaseFigure._to_ordered_dict(el, skip_uid=skip_uid) - for el in d] + result = [BaseFigure._to_ordered_dict(el, skip_uid=skip_uid) for el in d] else: result = d @@ -2617,18 +2637,17 @@ def to_ordered_dict(self, skip_uid=True): # Handle data # ----------- - result['data'] = BaseFigure._to_ordered_dict(self._data, - skip_uid=skip_uid) + result["data"] = BaseFigure._to_ordered_dict(self._data, skip_uid=skip_uid) # Handle layout # ------------- - result['layout'] = BaseFigure._to_ordered_dict(self._layout) + result["layout"] = BaseFigure._to_ordered_dict(self._layout) # Handle frames # ------------- if self._frame_objs: frames_props = [frame._props for frame in self._frame_objs] - result['frames'] = BaseFigure._to_ordered_dict(frames_props) + result["frames"] = BaseFigure._to_ordered_dict(frames_props) return result @@ -2637,30 +2656,37 @@ def to_ordered_dict(self, skip_uid=True): # Note that docstrings are auto-generated in plotly/_docstring_gen.py def show(self, *args, **kwargs): import plotly.io as pio + return pio.show(self, *args, **kwargs) def to_json(self, *args, **kwargs): import plotly.io as pio + return pio.to_json(self, *args, **kwargs) def write_json(self, *args, **kwargs): import plotly.io as pio + return pio.write_json(self, *args, **kwargs) def to_html(self, *args, **kwargs): import plotly.io as pio + return pio.to_html(self, *args, **kwargs) def write_html(self, *args, **kwargs): import plotly.io as pio + return pio.write_html(self, *args, **kwargs) def to_image(self, *args, **kwargs): import plotly.io as pio + return pio.to_image(self, *args, **kwargs) def write_image(self, *args, **kwargs): import plotly.io as pio + return pio.write_image(self, *args, **kwargs) # Static helpers @@ -2710,9 +2736,7 @@ def _perform_update(plotly_obj, update_obj): # Handle invalid properties # ------------------------- - invalid_props = [ - k for k in update_obj if k not in plotly_obj - ] + invalid_props = [k for k in update_obj if k not in plotly_obj] plotly_obj._raise_on_invalid_property_error(*invalid_props) @@ -2727,19 +2751,16 @@ def _perform_update(plotly_obj, update_obj): val = update_obj[key] validator = plotly_obj._get_prop_validator(key) - if (isinstance(validator, CompoundValidator) and - isinstance(val, dict)): + if isinstance(validator, CompoundValidator) and isinstance(val, dict): # Update compound objects recursively # plotly_obj[key].update(val) - BaseFigure._perform_update( - plotly_obj[key], val) + BaseFigure._perform_update(plotly_obj[key], val) elif isinstance(validator, CompoundArrayValidator): if plotly_obj[key]: # plotly_obj has an existing non-empty array for key # In this case we merge val into the existing elements - BaseFigure._perform_update( - plotly_obj[key], val) + BaseFigure._perform_update(plotly_obj[key], val) else: # plotly_obj is an empty or uninitialized list for key # In this case we accept val as is @@ -2764,8 +2785,9 @@ def _perform_update(plotly_obj, update_obj): update_element = update_obj[i % len(update_obj)] BaseFigure._perform_update(plotly_element, update_element) else: - raise ValueError('Unexpected plotly object with type {typ}' - .format(typ=type(plotly_obj))) + raise ValueError( + "Unexpected plotly object with type {typ}".format(typ=type(plotly_obj)) + ) @staticmethod def _index_is(iterable, val): @@ -2774,11 +2796,9 @@ def _index_is(iterable, val): (not object equality as is the case for list.index) """ - index_list = [ - i for i, curr_val in enumerate(iterable) if curr_val is val - ] + index_list = [i for i, curr_val in enumerate(iterable) if curr_val is val] if not index_list: - raise ValueError('Invalid value') + raise ValueError("Invalid value") return index_list[0] @@ -2968,15 +2988,15 @@ def _get_child_props(self, child): assert child_ind is not None children_props = self._props.get(child.plotly_name, None) - return (children_props[child_ind] - if children_props is not None and - len(children_props) > child_ind - else None) + return ( + children_props[child_ind] + if children_props is not None and len(children_props) > child_ind + else None + ) # ### Invalid child ### else: - raise ValueError('Invalid child with name: %s' - % child.plotly_name) + raise ValueError("Invalid child with name: %s" % child.plotly_name) def _init_props(self): """ @@ -3035,8 +3055,7 @@ def _init_child_props(self, child): # Invalid child # ------------- else: - raise ValueError('Invalid child with name: %s' - % child.plotly_name) + raise ValueError("Invalid child with name: %s" % child.plotly_name) def _get_child_prop_defaults(self, child): """ @@ -3066,18 +3085,17 @@ def _get_child_prop_defaults(self, child): assert child_ind is not None - children_props = self._prop_defaults.get( - child.plotly_name, None) + children_props = self._prop_defaults.get(child.plotly_name, None) - return (children_props[child_ind] - if children_props is not None and - len(children_props) > child_ind - else None) + return ( + children_props[child_ind] + if children_props is not None and len(children_props) > child_ind + else None + ) # ### Invalid child ### else: - raise ValueError('Invalid child with name: %s' - % child.plotly_name) + raise ValueError("Invalid child with name: %s" % child.plotly_name) @property def _prop_defaults(self): @@ -3159,8 +3177,7 @@ def __reduce__(self): and pickling """ props = self.to_plotly_json() - return (self.__class__, - (props,)) + return (self.__class__, (props,)) def __getitem__(self, prop): """ @@ -3321,8 +3338,7 @@ def __setitem__(self, prop, value): self._set_compound_prop(prop, value) # ### Handle compound array property ### - elif isinstance(validator, - (CompoundArrayValidator, BaseDataValidator)): + elif isinstance(validator, (CompoundArrayValidator, BaseDataValidator)): self._set_array_prop(prop, value) # ### Handle simple property ### @@ -3351,9 +3367,7 @@ def __setattr__(self, prop, value): ------- None """ - if (prop.startswith('_') or - hasattr(self, prop) or - prop in self._validators): + if prop.startswith("_") or hasattr(self, prop) or prop in self._validators: # Let known properties and private properties through super(BasePlotlyType, self).__setattr__(prop, value) else: @@ -3395,7 +3409,8 @@ def __eq__(self, other): # underlying dicts contain numpy arrays return BasePlotlyType._vals_equal( self._props if self._props is not None else {}, - other._props if other._props is not None else {}) + other._props if other._props is not None else {}, + ) @staticmethod def _build_repr_for_class(props, class_name, parent_path_str=None): @@ -3417,19 +3432,19 @@ def _build_repr_for_class(props, class_name, parent_path_str=None): The representation string """ if parent_path_str: - class_name = parent_path_str + '.' + class_name + class_name = parent_path_str + "." + class_name if len(props) == 0: - repr_str = class_name + '()' + repr_str = class_name + "()" else: pprinter = ElidedPrettyPrinter(threshold=200, width=120) pprint_res = pprinter.pformat(props) # pprint_res is indented by 1 space. Add extra 3 spaces for PEP8 # complaint indent - body = ' ' + pprint_res[1:-1].replace('\n', '\n ') + body = " " + pprint_res[1:-1].replace("\n", "\n ") - repr_str = class_name + '({\n ' + body + '\n})' + repr_str = class_name + "({\n " + body + "\n})" return repr_str @@ -3443,19 +3458,23 @@ def __repr__(self): props = self._props if self._props is not None else {} # Remove literals (These can't be specified in the constructor) - props = {p: v for p, v in props.items() - if p in self._validators and - not isinstance(self._validators[p], LiteralValidator)} + props = { + p: v + for p, v in props.items() + if p in self._validators + and not isinstance(self._validators[p], LiteralValidator) + } # Elide template - if 'template' in props: - props['template'] = '...' + if "template" in props: + props["template"] = "..." # Build repr string repr_str = BasePlotlyType._build_repr_for_class( props=props, class_name=self.__class__.__name__, - parent_path_str=self._parent_path_str) + parent_path_str=self._parent_path_str, + ) return repr_str @@ -3478,27 +3497,31 @@ def _raise_on_invalid_property_error(self, *args): invalid_props = args if invalid_props: if len(invalid_props) == 1: - prop_str = 'property' + prop_str = "property" invalid_str = repr(invalid_props[0]) else: - prop_str = 'properties' + prop_str = "properties" invalid_str = repr(invalid_props) - module_root = 'plotly.graph_objs.' + module_root = "plotly.graph_objs." if self._parent_path_str: - full_obj_name = (module_root + self._parent_path_str + '.' + - self.__class__.__name__) + full_obj_name = ( + module_root + self._parent_path_str + "." + self.__class__.__name__ + ) else: full_obj_name = module_root + self.__class__.__name__ - raise ValueError("Invalid {prop_str} specified for object of type " - "{full_obj_name}: {invalid_str}\n\n" - " Valid properties:\n" - "{prop_descriptions}".format( - prop_str=prop_str, - full_obj_name=full_obj_name, - invalid_str=invalid_str, - prop_descriptions=self._prop_descriptions)) + raise ValueError( + "Invalid {prop_str} specified for object of type " + "{full_obj_name}: {invalid_str}\n\n" + " Valid properties:\n" + "{prop_descriptions}".format( + prop_str=prop_str, + full_obj_name=full_obj_name, + invalid_str=invalid_str, + prop_descriptions=self._prop_descriptions, + ) + ) def update(self, dict1=None, **kwargs): """ @@ -3624,8 +3647,9 @@ def _set_prop(self, prop, val): self._init_props() # Check whether the value is a change - if (prop not in self._props or - not BasePlotlyType._vals_equal(self._props[prop], val)): + if prop not in self._props or not BasePlotlyType._vals_equal( + self._props[prop], val + ): # Set property value if not in batch mode if not self._in_batch_mode: self._props[prop] = val @@ -3831,17 +3855,16 @@ def _prop_set_child(self, child, prop_path_str, val): child_prop_val = getattr(self, child.plotly_name) if isinstance(child_prop_val, (list, tuple)): child_ind = BaseFigure._index_is(child_prop_val, child) - obj_path = '{child_name}.{child_ind}.{prop}'.format( - child_name=child.plotly_name, - child_ind=child_ind, - prop=prop_path_str) + obj_path = "{child_name}.{child_ind}.{prop}".format( + child_name=child.plotly_name, child_ind=child_ind, prop=prop_path_str + ) # Child is compound property # -------------------------- else: - obj_path = '{child_name}.{prop}'.format( - child_name=child.plotly_name, - prop=prop_path_str) + obj_path = "{child_name}.{prop}".format( + child_name=child.plotly_name, prop=prop_path_str + ) # Propagate to parent # ------------------- @@ -3888,8 +3911,7 @@ def _dispatch_change_callbacks(self, changed_paths): if common_paths: # #### Invoke callback #### - callback_args = [self[cb_path] - for cb_path in prop_path_tuples] + callback_args = [self[cb_path] for cb_path in prop_path_tuples] for callback in callbacks: callback(self, *callback_args) @@ -3948,25 +3970,25 @@ def on_change(self, callback, *args, **kwargs): msg = """ {class_name} object is not a descendant of a Figure. on_change callbacks are not supported in this case. -""".format(class_name=class_name) +""".format( + class_name=class_name + ) raise ValueError(msg) # Validate args not empty # ----------------------- if len(args) == 0: - raise ValueError( - 'At least one change property must be specified') + raise ValueError("At least one change property must be specified") # Validate args # ------------- invalid_args = [arg for arg in args if arg not in self] if invalid_args: - raise ValueError( - 'Invalid property specification(s): %s' % invalid_args) + raise ValueError("Invalid property specification(s): %s" % invalid_args) # Process append option # --------------------- - append = kwargs.get('append', False) + append = kwargs.get("append", False) # Normalize args to path tuples # ----------------------------- @@ -4009,21 +4031,25 @@ def _vals_equal(v1, v2): bool True if v1 and v2 are equal, False otherwise """ - np = get_module('numpy') - if (np is not None and - (isinstance(v1, np.ndarray) or isinstance(v2, np.ndarray))): + np = get_module("numpy") + if np is not None and ( + isinstance(v1, np.ndarray) or isinstance(v2, np.ndarray) + ): return np.array_equal(v1, v2) elif isinstance(v1, (list, tuple)): # Handle recursive equality on lists and tuples - return (isinstance(v2, (list, tuple)) and - len(v1) == len(v2) and - all(BasePlotlyType._vals_equal(e1, e2) - for e1, e2 in zip(v1, v2))) + return ( + isinstance(v2, (list, tuple)) + and len(v1) == len(v2) + and all(BasePlotlyType._vals_equal(e1, e2) for e1, e2 in zip(v1, v2)) + ) elif isinstance(v1, dict): # Handle recursive equality on dicts - return (isinstance(v2, dict) and - set(v1.keys()) == set(v2.keys()) and - all(BasePlotlyType._vals_equal(v1[k], v2[k]) for k in v1)) + return ( + isinstance(v2, dict) + and set(v1.keys()) == set(v2.keys()) + and all(BasePlotlyType._vals_equal(v1[k], v2[k]) for k in v1) + ) else: return v1 == v2 @@ -4092,7 +4118,7 @@ def __init__(self, plotly_name, **kwargs): """ # Validate inputs # --------------- - assert plotly_name == 'layout' + assert plotly_name == "layout" # Call superclass constructor # --------------------------- @@ -4113,17 +4139,11 @@ def _process_kwargs(self, **kwargs): Process any extra kwargs that are not predefined as constructor params """ unknown_kwargs = { - k: v - for k, v in kwargs.items() - if not self._subplot_re_match(k) + k: v for k, v in kwargs.items() if not self._subplot_re_match(k) } super(BaseLayoutHierarchyType, self)._process_kwargs(**unknown_kwargs) - subplot_kwargs = { - k: v - for k, v in kwargs.items() - if self._subplot_re_match(k) - } + subplot_kwargs = {k: v for k, v in kwargs.items() if self._subplot_re_match(k)} for prop, value in subplot_kwargs.items(): self._set_subplotid_prop(prop, value) @@ -4149,9 +4169,11 @@ def _set_subplotid_prop(self, prop, value): # Validate suffix digit # --------------------- if suffix_digit == 0: - raise TypeError('Subplot properties may only be suffixed by an ' - 'integer >= 1\n' - 'Received {k}'.format(k=prop)) + raise TypeError( + "Subplot properties may only be suffixed by an " + "integer >= 1\n" + "Received {k}".format(k=prop) + ) # Handle suffix_digit == 1 # ------------------------ @@ -4193,8 +4215,7 @@ def _strip_subplot_suffix_of_1(self, prop): # ---------------------------------- # e.g. ('xaxis', 'range') or 'xaxis.range' prop_tuple = BaseFigure._str_to_dict_path(prop) - if (len(prop_tuple) != 1 or - not isinstance(prop_tuple[0], string_types)): + if len(prop_tuple) != 1 or not isinstance(prop_tuple[0], string_types): return prop else: # Unwrap to scalar string @@ -4225,7 +4246,7 @@ def __getattr__(self, prop): Custom __getattr__ that handles dynamic subplot properties """ prop = self._strip_subplot_suffix_of_1(prop) - if prop != '_subplotid_props' and prop in self._subplotid_props: + if prop != "_subplotid_props" and prop in self._subplotid_props: validator = self._validators[prop] return validator.present(self._compound_props[prop]) else: @@ -4252,8 +4273,7 @@ def __setitem__(self, prop, value): # Convert prop to prop tuple # -------------------------- prop_tuple = BaseFigure._str_to_dict_path(prop) - if len(prop_tuple) != 1 or not isinstance(prop_tuple[0], - string_types): + if len(prop_tuple) != 1 or not isinstance(prop_tuple[0], string_types): # Let parent handle non-scalar non-string cases super(BaseLayoutHierarchyType, self).__setitem__(prop, value) return @@ -4291,22 +4311,25 @@ def __dir__(self): """ # Include any active subplot values if six.PY3: - return list(super(BaseLayoutHierarchyType, self).__dir__()) + sorted(self._subplotid_props) + return list(super(BaseLayoutHierarchyType, self).__dir__()) + sorted( + self._subplotid_props + ) else: + def get_attrs(obj): import types - if not hasattr(obj, '__dict__'): + + if not hasattr(obj, "__dict__"): return [] if not isinstance(obj.__dict__, (dict, types.DictProxyType)): - raise TypeError("%s.__dict__ is not a dictionary" - "" % obj.__name__) + raise TypeError("%s.__dict__ is not a dictionary" "" % obj.__name__) return obj.__dict__.keys() def dir2(obj): attrs = set() - if not hasattr(obj, '__bases__'): + if not hasattr(obj, "__bases__"): # obj is an instance - if not hasattr(obj, '__class__'): + if not hasattr(obj, "__class__"): # slots return sorted(get_attrs(obj)) klass = obj.__class__ @@ -4382,9 +4405,7 @@ def uid(self, val): # Hover # ----- - def on_hover(self, - callback, - append=False): + def on_hover(self, callback, append=False): """ Register function to be called when the user hovers over one or more points in this trace @@ -4443,9 +4464,7 @@ def _dispatch_on_hover(self, points, state): # Unhover # ------- - def on_unhover(self, - callback, - append=False): + def on_unhover(self, callback, append=False): """ Register function to be called when the user unhovers away from one or more points in this trace. @@ -4504,9 +4523,7 @@ def _dispatch_on_unhover(self, points, state): # Click # ----- - def on_click(self, - callback, - append=False): + def on_click(self, callback, append=False): """ Register function to be called when the user clicks on one or more points in this trace. @@ -4564,10 +4581,7 @@ def _dispatch_on_click(self, points, state): # Select # ------ - def on_selection( - self, - callback, - append=False): + def on_selection(self, callback, append=False): """ Register function to be called when the user selects one or more points in this trace. @@ -4617,13 +4631,11 @@ def on_selection( if callback: self._select_callbacks.append(callback) - def _dispatch_on_selection(self, - points, - selector): + def _dispatch_on_selection(self, points, selector): """ Dispatch points and selector info to selection callbacks """ - if 'selectedpoints' in self: + if "selectedpoints" in self: # Update the selectedpoints property, which will notify all views # of the selection change. This is a special case because no # restyle event is emitted by plotly.js on selection events @@ -4635,10 +4647,7 @@ def _dispatch_on_selection(self, # deselect # -------- - def on_deselect( - self, - callback, - append=False): + def on_deselect(self, callback, append=False): """ Register function to be called when the user deselects points in this trace using doubleclick. @@ -4691,7 +4700,7 @@ def _dispatch_on_deselect(self, points): """ Dispatch points info to deselection callbacks """ - if 'selectedpoints' in self: + if "selectedpoints" in self: # Update the selectedpoints property, which will notify all views # of the selection change. This is a special case because no # restyle event is emitted by plotly.js on selection events @@ -4721,8 +4730,7 @@ def _restyle_child(self, child, key_path_str, val): pass def on_change(self, callback, *args): - raise NotImplementedError( - 'Change callbacks are not supported on Frames') + raise NotImplementedError("Change callbacks are not supported on Frames") def _get_child_props(self, child): """ @@ -4749,17 +4757,17 @@ def _get_child_props(self, child): # Child is a trace # ---------------- if trace_index is not None: - if 'data' in self._props: - return self._props['data'][trace_index] + if "data" in self._props: + return self._props["data"][trace_index] else: return None # Child is the layout # ------------------- elif child is self.layout: - return self._props.get('layout', None) + return self._props.get("layout", None) # Unknown child # ------------- else: - raise ValueError('Unrecognized child: %s' % child) + raise ValueError("Unrecognized child: %s" % child) diff --git a/packages/python/plotly/plotly/basewidget.py b/packages/python/plotly/plotly/basewidget.py index d022f05646f..398ffd2ed14 100644 --- a/packages/python/plotly/plotly/basewidget.py +++ b/packages/python/plotly/plotly/basewidget.py @@ -2,16 +2,16 @@ from importlib import import_module import os import numbers + try: from urllib import parse except ImportError: - from urlparse import urlparse as parse + from urlparse import urlparse as parse import ipywidgets as widgets from traitlets import List, Unicode, Dict, observe, Integer from .basedatatypes import BaseFigure, BasePlotlyType -from .callbacks import (BoxSelector, LassoSelector, - InputDeviceState, Points) +from .callbacks import BoxSelector, LassoSelector, InputDeviceState, Points from .serializers import custom_serializers from .version import __frontend_version__ @@ -27,12 +27,12 @@ class BaseFigureWidget(BaseFigure, widgets.DOMWidget): # ------------- # Widget traitlets are automatically synchronized with the FigureModel # JavaScript object - _view_name = Unicode('FigureView').tag(sync=True) - _view_module = Unicode('plotlywidget').tag(sync=True) + _view_name = Unicode("FigureView").tag(sync=True) + _view_module = Unicode("plotlywidget").tag(sync=True) _view_module_version = Unicode(__frontend_version__).tag(sync=True) - _model_name = Unicode('FigureModel').tag(sync=True) - _model_module = Unicode('plotlywidget').tag(sync=True) + _model_name = Unicode("FigureModel").tag(sync=True) + _model_module = Unicode("plotlywidget").tag(sync=True) _model_module_version = Unicode(__frontend_version__).tag(sync=True) # ### _data and _layout ### @@ -57,26 +57,19 @@ class BaseFigureWidget(BaseFigure, widgets.DOMWidget): # # See JSDoc comments in the FigureModel class in js/src/Figure.js for # detailed descriptions of the messages. - _py2js_addTraces = Dict(allow_none=True).tag(sync=True, - **custom_serializers) - _py2js_restyle = Dict(allow_none=True).tag(sync=True, - **custom_serializers) - _py2js_relayout = Dict(allow_none=True).tag(sync=True, - **custom_serializers) - _py2js_update = Dict(allow_none=True).tag(sync=True, - **custom_serializers) - _py2js_animate = Dict(allow_none=True).tag(sync=True, - **custom_serializers) - - _py2js_deleteTraces = Dict(allow_none=True).tag(sync=True, - **custom_serializers) - _py2js_moveTraces = Dict(allow_none=True).tag(sync=True, - **custom_serializers) - - _py2js_removeLayoutProps = Dict(allow_none=True).tag(sync=True, - **custom_serializers) - _py2js_removeTraceProps = Dict(allow_none=True).tag(sync=True, - **custom_serializers) + _py2js_addTraces = Dict(allow_none=True).tag(sync=True, **custom_serializers) + _py2js_restyle = Dict(allow_none=True).tag(sync=True, **custom_serializers) + _py2js_relayout = Dict(allow_none=True).tag(sync=True, **custom_serializers) + _py2js_update = Dict(allow_none=True).tag(sync=True, **custom_serializers) + _py2js_animate = Dict(allow_none=True).tag(sync=True, **custom_serializers) + + _py2js_deleteTraces = Dict(allow_none=True).tag(sync=True, **custom_serializers) + _py2js_moveTraces = Dict(allow_none=True).tag(sync=True, **custom_serializers) + + _py2js_removeLayoutProps = Dict(allow_none=True).tag( + sync=True, **custom_serializers + ) + _py2js_removeTraceProps = Dict(allow_none=True).tag(sync=True, **custom_serializers) # ### JS -> Python message properties ### # These properties are used to receive messages from the frontend. @@ -88,18 +81,12 @@ class BaseFigureWidget(BaseFigure, widgets.DOMWidget): # # See JSDoc comments in the FigureModel class in js/src/Figure.js for # detailed descriptions of the messages. - _js2py_traceDeltas = Dict(allow_none=True).tag(sync=True, - **custom_serializers) - _js2py_layoutDelta = Dict(allow_none=True).tag(sync=True, - **custom_serializers) - _js2py_restyle = Dict(allow_none=True).tag(sync=True, - **custom_serializers) - _js2py_relayout = Dict(allow_none=True).tag(sync=True, - **custom_serializers) - _js2py_update = Dict(allow_none=True).tag(sync=True, - **custom_serializers) - _js2py_pointsCallback = Dict(allow_none=True).tag(sync=True, - **custom_serializers) + _js2py_traceDeltas = Dict(allow_none=True).tag(sync=True, **custom_serializers) + _js2py_layoutDelta = Dict(allow_none=True).tag(sync=True, **custom_serializers) + _js2py_restyle = Dict(allow_none=True).tag(sync=True, **custom_serializers) + _js2py_relayout = Dict(allow_none=True).tag(sync=True, **custom_serializers) + _js2py_update = Dict(allow_none=True).tag(sync=True, **custom_serializers) + _js2py_pointsCallback = Dict(allow_none=True).tag(sync=True, **custom_serializers) # ### Message tracking properties ### # The _last_layout_edit_id and _last_trace_edit_id properties are used @@ -117,23 +104,22 @@ class BaseFigureWidget(BaseFigure, widgets.DOMWidget): # Constructor # ----------- - def __init__(self, - data=None, - layout=None, - frames=None, - skip_invalid=False, - **kwargs): + def __init__( + self, data=None, layout=None, frames=None, skip_invalid=False, **kwargs + ): # Call superclass constructors # ---------------------------- # Note: We rename layout to layout_plotly because to deconflict it # with the `layout` constructor parameter of the `widgets.DOMWidget` # ipywidgets class - super(BaseFigureWidget, self).__init__(data=data, - layout_plotly=layout, - frames=frames, - skip_invalid=skip_invalid, - **kwargs) + super(BaseFigureWidget, self).__init__( + data=data, + layout_plotly=layout, + frames=frames, + skip_invalid=skip_invalid, + **kwargs + ) # Validate Frames # --------------- @@ -197,9 +183,9 @@ def _send_relayout_msg(self, layout_data, source_view_id=None): # Build message # ------------- msg_data = { - 'relayout_data': layout_data, - 'layout_edit_id': layout_edit_id, - 'source_view_id': source_view_id + "relayout_data": layout_data, + "layout_edit_id": layout_edit_id, + "source_view_id": source_view_id, } # Send message @@ -207,8 +193,7 @@ def _send_relayout_msg(self, layout_data, source_view_id=None): self._py2js_relayout = msg_data self._py2js_relayout = None - def _send_restyle_msg(self, restyle_data, trace_indexes=None, - source_view_id=None): + def _send_restyle_msg(self, restyle_data, trace_indexes=None, source_view_id=None): """ Send Plotly.restyle message to the frontend @@ -242,11 +227,11 @@ def _send_restyle_msg(self, restyle_data, trace_indexes=None, # Build message # ------------- restyle_msg = { - 'restyle_data': restyle_data, - 'restyle_traces': trace_indexes, - 'trace_edit_id': trace_edit_id, - 'layout_edit_id': layout_edit_id, - 'source_view_id': source_view_id, + "restyle_data": restyle_data, + "restyle_traces": trace_indexes, + "trace_edit_id": trace_edit_id, + "layout_edit_id": layout_edit_id, + "source_view_id": source_view_id, } # Send message @@ -277,9 +262,9 @@ def _send_addTraces_msg(self, new_traces_data): # Build message # ------------- add_traces_msg = { - 'trace_data': new_traces_data, - 'trace_edit_id': trace_edit_id, - 'layout_edit_id': layout_edit_id + "trace_data": new_traces_data, + "trace_edit_id": trace_edit_id, + "layout_edit_id": layout_edit_id, } # Send message @@ -301,21 +286,16 @@ def _send_moveTraces_msg(self, current_inds, new_inds): # Build message # ------------- - move_msg = { - 'current_trace_inds': current_inds, - 'new_trace_inds': new_inds - } + move_msg = {"current_trace_inds": current_inds, "new_trace_inds": new_inds} # Send message # ------------ self._py2js_moveTraces = move_msg self._py2js_moveTraces = None - def _send_update_msg(self, - restyle_data, - relayout_data, - trace_indexes=None, - source_view_id=None): + def _send_update_msg( + self, restyle_data, relayout_data, trace_indexes=None, source_view_id=None + ): """ Send Plotly.update message to the frontend @@ -350,12 +330,12 @@ def _send_update_msg(self, # Build message # ------------- update_msg = { - 'style_data': restyle_data, - 'layout_data': relayout_data, - 'style_traces': trace_indexes, - 'trace_edit_id': trace_edit_id, - 'layout_edit_id': layout_edit_id, - 'source_view_id': source_view_id + "style_data": restyle_data, + "layout_data": relayout_data, + "style_traces": trace_indexes, + "trace_edit_id": trace_edit_id, + "layout_edit_id": layout_edit_id, + "source_view_id": source_view_id, } # Send message @@ -363,11 +343,9 @@ def _send_update_msg(self, self._py2js_update = update_msg self._py2js_update = None - def _send_animate_msg(self, - styles_data, - relayout_data, - trace_indexes, - animation_opts): + def _send_animate_msg( + self, styles_data, relayout_data, trace_indexes, animation_opts + ): """ Send Plotly.update message to the frontend @@ -401,13 +379,13 @@ def _send_animate_msg(self, # Build message # ------------- animate_msg = { - 'style_data': styles_data, - 'layout_data': relayout_data, - 'style_traces': trace_indexes, - 'animation_opts': animation_opts, - 'trace_edit_id': trace_edit_id, - 'layout_edit_id': layout_edit_id, - 'source_view_id': None + "style_data": styles_data, + "layout_data": relayout_data, + "style_traces": trace_indexes, + "animation_opts": animation_opts, + "trace_edit_id": trace_edit_id, + "layout_edit_id": layout_edit_id, + "source_view_id": None, } # Send message @@ -438,9 +416,9 @@ def _send_deleteTraces_msg(self, delete_inds): # Build message # ------------- delete_msg = { - 'delete_inds': delete_inds, - 'layout_edit_id': layout_edit_id, - 'trace_edit_id': trace_edit_id + "delete_inds": delete_inds, + "layout_edit_id": layout_edit_id, + "trace_edit_id": trace_edit_id, } # Send message @@ -450,7 +428,7 @@ def _send_deleteTraces_msg(self, delete_inds): # JavaScript -> Python Messages # ----------------------------- - @observe('_js2py_traceDeltas') + @observe("_js2py_traceDeltas") def _handler_js2py_traceDeltas(self, change): """ Process trace deltas message from the frontend @@ -458,13 +436,13 @@ def _handler_js2py_traceDeltas(self, change): # Receive message # --------------- - msg_data = change['new'] + msg_data = change["new"] if not msg_data: self._js2py_traceDeltas = None return - trace_deltas = msg_data['trace_deltas'] - trace_edit_id = msg_data['trace_edit_id'] + trace_deltas = msg_data["trace_deltas"] + trace_edit_id = msg_data["trace_edit_id"] # Apply deltas # ------------ @@ -476,33 +454,34 @@ def _handler_js2py_traceDeltas(self, change): for delta in trace_deltas: # #### Find existing trace for uid ### - trace_uid = delta['uid'] + trace_uid = delta["uid"] trace_uids = [trace.uid for trace in self.data] trace_index = trace_uids.index(trace_uid) uid_trace = self.data[trace_index] # #### Transform defaults to delta #### delta_transform = BaseFigureWidget._transform_data( - uid_trace._prop_defaults, delta) + uid_trace._prop_defaults, delta + ) # #### Remove overlapping properties #### # If a property is present in both _props and _prop_defaults # then we remove the copy from _props remove_props = self._remove_overlapping_props( - uid_trace._props, uid_trace._prop_defaults) + uid_trace._props, uid_trace._prop_defaults + ) # #### Notify frontend model of property removal #### if remove_props: remove_trace_props_msg = { - 'remove_trace': trace_index, - 'remove_props': remove_props + "remove_trace": trace_index, + "remove_props": remove_props, } self._py2js_removeTraceProps = remove_trace_props_msg self._py2js_removeTraceProps = None # #### Dispatch change callbacks #### - self._dispatch_trace_change_callbacks(delta_transform, - [trace_index]) + self._dispatch_trace_change_callbacks(delta_transform, [trace_index]) # ### Trace edits no longer in process ### self._trace_edit_in_process = False @@ -514,7 +493,7 @@ def _handler_js2py_traceDeltas(self, change): self._js2py_traceDeltas = None - @observe('_js2py_layoutDelta') + @observe("_js2py_layoutDelta") def _handler_js2py_layoutDelta(self, change): """ Process layout delta message from the frontend @@ -522,13 +501,13 @@ def _handler_js2py_layoutDelta(self, change): # Receive message # --------------- - msg_data = change['new'] + msg_data = change["new"] if not msg_data: self._js2py_layoutDelta = None return - layout_delta = msg_data['layout_delta'] - layout_edit_id = msg_data['layout_edit_id'] + layout_delta = msg_data["layout_delta"] + layout_edit_id = msg_data["layout_edit_id"] # Apply delta # ----------- @@ -538,19 +517,19 @@ def _handler_js2py_layoutDelta(self, change): # ### Transform defaults to delta ### delta_transform = BaseFigureWidget._transform_data( - self._layout_defaults, layout_delta) + self._layout_defaults, layout_delta + ) # ### Remove overlapping properties ### # If a property is present in both _layout and _layout_defaults # then we remove the copy from _layout removed_props = self._remove_overlapping_props( - self._layout, self._layout_defaults) + self._layout, self._layout_defaults + ) # ### Notify frontend model of property removal ### if removed_props: - remove_props_msg = { - 'remove_props': removed_props - } + remove_props_msg = {"remove_props": removed_props} self._py2js_removeLayoutProps = remove_props_msg self._py2js_removeLayoutProps = None @@ -578,7 +557,7 @@ def _handler_js2py_layoutDelta(self, change): self._js2py_layoutDelta = None - @observe('_js2py_restyle') + @observe("_js2py_restyle") def _handler_js2py_restyle(self, change): """ Process Plotly.restyle message from the frontend @@ -586,25 +565,27 @@ def _handler_js2py_restyle(self, change): # Receive message # --------------- - restyle_msg = change['new'] + restyle_msg = change["new"] if not restyle_msg: self._js2py_restyle = None return - style_data = restyle_msg['style_data'] - style_traces = restyle_msg['style_traces'] - source_view_id = restyle_msg['source_view_id'] + style_data = restyle_msg["style_data"] + style_traces = restyle_msg["style_traces"] + source_view_id = restyle_msg["source_view_id"] # Perform restyle # --------------- - self.plotly_restyle(restyle_data=style_data, - trace_indexes=style_traces, - source_view_id=source_view_id) + self.plotly_restyle( + restyle_data=style_data, + trace_indexes=style_traces, + source_view_id=source_view_id, + ) self._js2py_restyle = None - @observe('_js2py_update') + @observe("_js2py_update") def _handler_js2py_update(self, change): """ Process Plotly.update message from the frontend @@ -612,26 +593,29 @@ def _handler_js2py_update(self, change): # Receive message # --------------- - update_msg = change['new'] + update_msg = change["new"] if not update_msg: self._js2py_update = None return - style = update_msg['style_data'] - trace_indexes = update_msg['style_traces'] - layout = update_msg['layout_data'] - source_view_id = update_msg['source_view_id'] + style = update_msg["style_data"] + trace_indexes = update_msg["style_traces"] + layout = update_msg["layout_data"] + source_view_id = update_msg["source_view_id"] # Perform update # -------------- - self.plotly_update(restyle_data=style, relayout_data=layout, - trace_indexes=trace_indexes, - source_view_id=source_view_id) + self.plotly_update( + restyle_data=style, + relayout_data=layout, + trace_indexes=trace_indexes, + source_view_id=source_view_id, + ) self._js2py_update = None - @observe('_js2py_relayout') + @observe("_js2py_relayout") def _handler_js2py_relayout(self, change): """ Process Plotly.relayout message from the frontend @@ -639,29 +623,28 @@ def _handler_js2py_relayout(self, change): # Receive message # --------------- - relayout_msg = change['new'] + relayout_msg = change["new"] if not relayout_msg: self._js2py_relayout = None return - relayout_data = relayout_msg['relayout_data'] - source_view_id = relayout_msg['source_view_id'] + relayout_data = relayout_msg["relayout_data"] + source_view_id = relayout_msg["source_view_id"] - if 'lastInputTime' in relayout_data: + if "lastInputTime" in relayout_data: # Remove 'lastInputTime'. Seems to be an internal plotly # property that is introduced for some plot types, but it is not # actually a property in the schema - relayout_data.pop('lastInputTime') + relayout_data.pop("lastInputTime") # Perform relayout # ---------------- - self.plotly_relayout(relayout_data=relayout_data, - source_view_id=source_view_id) + self.plotly_relayout(relayout_data=relayout_data, source_view_id=source_view_id) self._js2py_relayout = None - @observe('_js2py_pointsCallback') + @observe("_js2py_pointsCallback") def _handler_js2py_pointsCallback(self, change): """ Process points callback message from the frontend @@ -669,7 +652,7 @@ def _handler_js2py_pointsCallback(self, change): # Receive message # --------------- - callback_data = change['new'] + callback_data = change["new"] if not callback_data: self._js2py_pointsCallback = None @@ -677,53 +660,56 @@ def _handler_js2py_pointsCallback(self, change): # Get event type # -------------- - event_type = callback_data['event_type'] + event_type = callback_data["event_type"] # Build Selector Object # --------------------- - if callback_data.get('selector', None): - selector_data = callback_data['selector'] - selector_type = selector_data['type'] - selector_state = selector_data['selector_state'] - if selector_type == 'box': + if callback_data.get("selector", None): + selector_data = callback_data["selector"] + selector_type = selector_data["type"] + selector_state = selector_data["selector_state"] + if selector_type == "box": selector = BoxSelector(**selector_state) - elif selector_type == 'lasso': + elif selector_type == "lasso": selector = LassoSelector(**selector_state) else: - raise ValueError('Unsupported selector type: %s' - % selector_type) + raise ValueError("Unsupported selector type: %s" % selector_type) else: selector = None # Build Input Device State Object # ------------------------------- - if callback_data.get('device_state', None): - device_state_data = callback_data['device_state'] + if callback_data.get("device_state", None): + device_state_data = callback_data["device_state"] state = InputDeviceState(**device_state_data) else: state = None # Build Trace Points Dictionary # ----------------------------- - points_data = callback_data['points'] + points_data = callback_data["points"] trace_points = { - trace_ind: - {'point_inds': [], - 'xs': [], - 'ys': [], - 'trace_name': self._data_objs[trace_ind].name, - 'trace_index': trace_ind} - for trace_ind in range(len(self._data_objs))} - - for x, y, point_ind, trace_ind in zip(points_data['xs'], - points_data['ys'], - points_data['point_indexes'], - points_data['trace_indexes']): + trace_ind: { + "point_inds": [], + "xs": [], + "ys": [], + "trace_name": self._data_objs[trace_ind].name, + "trace_index": trace_ind, + } + for trace_ind in range(len(self._data_objs)) + } + + for x, y, point_ind, trace_ind in zip( + points_data["xs"], + points_data["ys"], + points_data["point_indexes"], + points_data["trace_indexes"], + ): trace_dict = trace_points[trace_ind] - trace_dict['xs'].append(x) - trace_dict['ys'].append(y) - trace_dict['point_inds'].append(point_ind) + trace_dict["xs"].append(x) + trace_dict["ys"].append(y) + trace_dict["point_inds"].append(point_ind) # Dispatch callbacks # ------------------ @@ -731,15 +717,15 @@ def _handler_js2py_pointsCallback(self, change): points = Points(**trace_points_data) trace = self.data[trace_ind] - if event_type == 'plotly_click': + if event_type == "plotly_click": trace._dispatch_on_click(points, state) - elif event_type == 'plotly_hover': + elif event_type == "plotly_hover": trace._dispatch_on_hover(points, state) - elif event_type == 'plotly_unhover': + elif event_type == "plotly_unhover": trace._dispatch_on_unhover(points, state) - elif event_type == 'plotly_selected': + elif event_type == "plotly_selected": trace._dispatch_on_selection(points, selector) - elif event_type == 'plotly_deselect': + elif event_type == "plotly_deselect": trace._dispatch_on_deselect(points) self._js2py_pointsCallback = None @@ -829,15 +815,14 @@ def _remove_overlapping_props(input_data, delta_data, prop_path=()): assert isinstance(delta_data, dict) for p, delta_val in delta_data.items(): - if (isinstance(delta_val, dict) or - BaseFigure._is_dict_list(delta_val)): + if isinstance(delta_val, dict) or BaseFigure._is_dict_list(delta_val): if p in input_data: # ### Recurse ### input_val = input_data[p] recur_prop_path = prop_path + (p,) - recur_removed = ( - BaseFigureWidget._remove_overlapping_props( - input_val, delta_val, recur_prop_path)) + recur_removed = BaseFigureWidget._remove_overlapping_props( + input_val, delta_val, recur_prop_path + ) removed.extend(recur_removed) # Check whether the last property in input_val @@ -846,7 +831,7 @@ def _remove_overlapping_props(input_data, delta_data, prop_path=()): input_data.pop(p) removed.append(recur_prop_path) - elif p in input_data and p != 'uid': + elif p in input_data and p != "uid": # ### Remove property ### input_data.pop(p) removed.append(prop_path + (p,)) @@ -861,25 +846,24 @@ def _remove_overlapping_props(input_data, delta_data, prop_path=()): break input_val = input_data[i] - if (input_val is not None and - isinstance(delta_val, dict) or - BaseFigure._is_dict_list(delta_val)): + if ( + input_val is not None + and isinstance(delta_val, dict) + or BaseFigure._is_dict_list(delta_val) + ): # ### Recurse ### recur_prop_path = prop_path + (i,) - recur_removed = ( - BaseFigureWidget._remove_overlapping_props( - input_val, delta_val, recur_prop_path)) + recur_removed = BaseFigureWidget._remove_overlapping_props( + input_val, delta_val, recur_prop_path + ) removed.extend(recur_removed) return removed @staticmethod - def _transform_data(to_data, - from_data, - should_remove=True, - relayout_path=()): + def _transform_data(to_data, from_data, should_remove=True, relayout_path=()): """ Transform to_data into from_data and return relayout-style description of the transformation @@ -906,22 +890,21 @@ def _transform_data(to_data, # ### Validate from_data ### if not isinstance(from_data, dict): raise ValueError( - 'Mismatched data types: {to_dict} {from_data}'. - format(to_dict=to_data, from_data=from_data)) + "Mismatched data types: {to_dict} {from_data}".format( + to_dict=to_data, from_data=from_data + ) + ) # ### Add/modify properties ### # Loop over props/vals for from_prop, from_val in from_data.items(): # #### Handle compound vals recursively #### - if (isinstance(from_val, dict) or - BaseFigure._is_dict_list(from_val)): + if isinstance(from_val, dict) or BaseFigure._is_dict_list(from_val): # ##### Init property value if needed ##### if from_prop not in to_data: - to_data[from_prop] = ({} - if isinstance(from_val, dict) - else []) + to_data[from_prop] = {} if isinstance(from_val, dict) else [] # ##### Transform property val recursively ##### input_val = to_data[from_prop] @@ -930,13 +913,15 @@ def _transform_data(to_data, input_val, from_val, should_remove=should_remove, - relayout_path=relayout_path + (from_prop,))) + relayout_path=relayout_path + (from_prop,), + ) + ) # #### Handle simple vals directly #### else: - if (from_prop not in to_data or - not BasePlotlyType._vals_equal( - to_data[from_prop], from_val)): + if from_prop not in to_data or not BasePlotlyType._vals_equal( + to_data[from_prop], from_val + ): to_data[from_prop] = from_val relayout_path_prop = relayout_path + (from_prop,) @@ -945,7 +930,8 @@ def _transform_data(to_data, # ### Remove properties ### if should_remove: for remove_prop in set(to_data.keys()).difference( - set(from_data.keys())): + set(from_data.keys()) + ): to_data.pop(remove_prop) # Handle list @@ -955,8 +941,10 @@ def _transform_data(to_data, # ### Validate from_data ### if not isinstance(from_data, list): raise ValueError( - 'Mismatched data types: to_data: {to_data} {from_data}'. - format(to_data=to_data, from_data=from_data)) + "Mismatched data types: to_data: {to_data} {from_data}".format( + to_data=to_data, from_data=from_data + ) + ) # ### Add/modify properties ### # Loop over indexes / elements @@ -968,21 +956,23 @@ def _transform_data(to_data, input_val = to_data[i] # #### Handle compound element recursively #### - if (input_val is not None and - (isinstance(from_val, dict) or - BaseFigure._is_dict_list(from_val))): + if input_val is not None and ( + isinstance(from_val, dict) or BaseFigure._is_dict_list(from_val) + ): relayout_data.update( BaseFigureWidget._transform_data( input_val, from_val, should_remove=should_remove, - relayout_path=relayout_path + (i, ))) + relayout_path=relayout_path + (i,), + ) + ) # #### Handle simple elements directly #### else: if not BasePlotlyType._vals_equal(to_data[i], from_val): to_data[i] = from_val - relayout_data[relayout_path + (i, )] = from_val + relayout_data[relayout_path + (i,)] = from_val return relayout_data diff --git a/packages/python/plotly/plotly/callbacks.py b/packages/python/plotly/plotly/callbacks.py index 5f92938d2cf..47121735ba5 100644 --- a/packages/python/plotly/plotly/callbacks.py +++ b/packages/python/plotly/plotly/callbacks.py @@ -3,14 +3,9 @@ class InputDeviceState: - def __init__(self, - ctrl=None, - alt=None, - shift=None, - meta=None, - button=None, - buttons=None, - **_): + def __init__( + self, ctrl=None, alt=None, shift=None, meta=None, button=None, buttons=None, **_ + ): self._ctrl = ctrl self._alt = alt @@ -33,7 +28,8 @@ def __repr__(self): meta=repr(self.meta), shift=repr(self.shift), button=repr(self.button), - buttons=repr(self.buttons)) + buttons=repr(self.buttons), + ) @property def alt(self): @@ -126,13 +122,7 @@ def buttons(self): class Points: - - def __init__(self, - point_inds=[], - xs=[], - ys=[], - trace_name=None, - trace_index=None): + def __init__(self, point_inds=[], xs=[], ys=[], trace_name=None, trace_index=None): self._point_inds = point_inds self._xs = xs @@ -147,14 +137,14 @@ def __repr__(self): ys={ys}, trace_name={trace_name}, trace_index={trace_index})""".format( - point_inds=_list_repr_elided(self.point_inds, - indent=len('Points(point_inds=')), - xs=_list_repr_elided(self.xs, - indent=len(' xs=')), - ys=_list_repr_elided(self.ys, - indent=len(' ys=')), + point_inds=_list_repr_elided( + self.point_inds, indent=len("Points(point_inds=") + ), + xs=_list_repr_elided(self.xs, indent=len(" xs=")), + ys=_list_repr_elided(self.ys, indent=len(" ys=")), trace_name=repr(self.trace_name), - trace_index=repr(self.trace_index)) + trace_index=repr(self.trace_index), + ) @property def point_inds(self): @@ -214,7 +204,7 @@ def trace_index(self): class BoxSelector: def __init__(self, xrange=None, yrange=None, **_): - self._type = 'box' + self._type = "box" self._xrange = xrange self._yrange = yrange @@ -222,8 +212,8 @@ def __repr__(self): return """\ BoxSelector(xrange={xrange}, yrange={yrange})""".format( - xrange=self.xrange, - yrange=self.yrange) + xrange=self.xrange, yrange=self.yrange + ) @property def type(self): @@ -261,7 +251,7 @@ def yrange(self): class LassoSelector: def __init__(self, xs=None, ys=None, **_): - self._type = 'lasso' + self._type = "lasso" self._xs = xs self._ys = ys @@ -269,10 +259,9 @@ def __repr__(self): return """\ LassoSelector(xs={xs}, ys={ys})""".format( - xs=_list_repr_elided(self.xs, - indent=len('LassoSelector(xs=')), - ys=_list_repr_elided(self.ys, - indent=len(' ys='))) + xs=_list_repr_elided(self.xs, indent=len("LassoSelector(xs=")), + ys=_list_repr_elided(self.ys, indent=len(" ys=")), + ) @property def type(self): diff --git a/packages/python/plotly/plotly/colors/__init__.py b/packages/python/plotly/plotly/colors/__init__.py index 205771fd5ee..abf2749b39f 100644 --- a/packages/python/plotly/plotly/colors/__init__.py +++ b/packages/python/plotly/plotly/colors/__init__.py @@ -96,140 +96,188 @@ carto, ) -DEFAULT_PLOTLY_COLORS = ['rgb(31, 119, 180)', 'rgb(255, 127, 14)', - 'rgb(44, 160, 44)', 'rgb(214, 39, 40)', - 'rgb(148, 103, 189)', 'rgb(140, 86, 75)', - 'rgb(227, 119, 194)', 'rgb(127, 127, 127)', - 'rgb(188, 189, 34)', 'rgb(23, 190, 207)'] +DEFAULT_PLOTLY_COLORS = [ + "rgb(31, 119, 180)", + "rgb(255, 127, 14)", + "rgb(44, 160, 44)", + "rgb(214, 39, 40)", + "rgb(148, 103, 189)", + "rgb(140, 86, 75)", + "rgb(227, 119, 194)", + "rgb(127, 127, 127)", + "rgb(188, 189, 34)", + "rgb(23, 190, 207)", +] PLOTLY_SCALES = { - 'Greys': [ - [0, 'rgb(0,0,0)'], [1, 'rgb(255,255,255)'] - ], - - 'YlGnBu': [ - [0, 'rgb(8,29,88)'], [0.125, 'rgb(37,52,148)'], - [0.25, 'rgb(34,94,168)'], [0.375, 'rgb(29,145,192)'], - [0.5, 'rgb(65,182,196)'], [0.625, 'rgb(127,205,187)'], - [0.75, 'rgb(199,233,180)'], [0.875, 'rgb(237,248,217)'], - [1, 'rgb(255,255,217)'] + "Greys": [[0, "rgb(0,0,0)"], [1, "rgb(255,255,255)"]], + "YlGnBu": [ + [0, "rgb(8,29,88)"], + [0.125, "rgb(37,52,148)"], + [0.25, "rgb(34,94,168)"], + [0.375, "rgb(29,145,192)"], + [0.5, "rgb(65,182,196)"], + [0.625, "rgb(127,205,187)"], + [0.75, "rgb(199,233,180)"], + [0.875, "rgb(237,248,217)"], + [1, "rgb(255,255,217)"], ], - - 'Greens': [ - [0, 'rgb(0,68,27)'], [0.125, 'rgb(0,109,44)'], - [0.25, 'rgb(35,139,69)'], [0.375, 'rgb(65,171,93)'], - [0.5, 'rgb(116,196,118)'], [0.625, 'rgb(161,217,155)'], - [0.75, 'rgb(199,233,192)'], [0.875, 'rgb(229,245,224)'], - [1, 'rgb(247,252,245)'] + "Greens": [ + [0, "rgb(0,68,27)"], + [0.125, "rgb(0,109,44)"], + [0.25, "rgb(35,139,69)"], + [0.375, "rgb(65,171,93)"], + [0.5, "rgb(116,196,118)"], + [0.625, "rgb(161,217,155)"], + [0.75, "rgb(199,233,192)"], + [0.875, "rgb(229,245,224)"], + [1, "rgb(247,252,245)"], ], - - 'YlOrRd': [ - [0, 'rgb(128,0,38)'], [0.125, 'rgb(189,0,38)'], - [0.25, 'rgb(227,26,28)'], [0.375, 'rgb(252,78,42)'], - [0.5, 'rgb(253,141,60)'], [0.625, 'rgb(254,178,76)'], - [0.75, 'rgb(254,217,118)'], [0.875, 'rgb(255,237,160)'], - [1, 'rgb(255,255,204)'] - ], - - 'Bluered': [ - [0, 'rgb(0,0,255)'], [1, 'rgb(255,0,0)'] + "YlOrRd": [ + [0, "rgb(128,0,38)"], + [0.125, "rgb(189,0,38)"], + [0.25, "rgb(227,26,28)"], + [0.375, "rgb(252,78,42)"], + [0.5, "rgb(253,141,60)"], + [0.625, "rgb(254,178,76)"], + [0.75, "rgb(254,217,118)"], + [0.875, "rgb(255,237,160)"], + [1, "rgb(255,255,204)"], ], - + "Bluered": [[0, "rgb(0,0,255)"], [1, "rgb(255,0,0)"]], # modified RdBu based on # www.sandia.gov/~kmorel/documents/ColorMaps/ColorMapsExpanded.pdf - 'RdBu': [ - [0, 'rgb(5,10,172)'], [0.35, 'rgb(106,137,247)'], - [0.5, 'rgb(190,190,190)'], [0.6, 'rgb(220,170,132)'], - [0.7, 'rgb(230,145,90)'], [1, 'rgb(178,10,28)'] + "RdBu": [ + [0, "rgb(5,10,172)"], + [0.35, "rgb(106,137,247)"], + [0.5, "rgb(190,190,190)"], + [0.6, "rgb(220,170,132)"], + [0.7, "rgb(230,145,90)"], + [1, "rgb(178,10,28)"], ], - # Scale for non-negative numeric values - 'Reds': [ - [0, 'rgb(220,220,220)'], [0.2, 'rgb(245,195,157)'], - [0.4, 'rgb(245,160,105)'], [1, 'rgb(178,10,28)'] + "Reds": [ + [0, "rgb(220,220,220)"], + [0.2, "rgb(245,195,157)"], + [0.4, "rgb(245,160,105)"], + [1, "rgb(178,10,28)"], ], - # Scale for non-positive numeric values - 'Blues': [ - [0, 'rgb(5,10,172)'], [0.35, 'rgb(40,60,190)'], - [0.5, 'rgb(70,100,245)'], [0.6, 'rgb(90,120,245)'], - [0.7, 'rgb(106,137,247)'], [1, 'rgb(220,220,220)'] + "Blues": [ + [0, "rgb(5,10,172)"], + [0.35, "rgb(40,60,190)"], + [0.5, "rgb(70,100,245)"], + [0.6, "rgb(90,120,245)"], + [0.7, "rgb(106,137,247)"], + [1, "rgb(220,220,220)"], ], - - 'Picnic': [ - [0, 'rgb(0,0,255)'], [0.1, 'rgb(51,153,255)'], - [0.2, 'rgb(102,204,255)'], [0.3, 'rgb(153,204,255)'], - [0.4, 'rgb(204,204,255)'], [0.5, 'rgb(255,255,255)'], - [0.6, 'rgb(255,204,255)'], [0.7, 'rgb(255,153,255)'], - [0.8, 'rgb(255,102,204)'], [0.9, 'rgb(255,102,102)'], - [1, 'rgb(255,0,0)'] + "Picnic": [ + [0, "rgb(0,0,255)"], + [0.1, "rgb(51,153,255)"], + [0.2, "rgb(102,204,255)"], + [0.3, "rgb(153,204,255)"], + [0.4, "rgb(204,204,255)"], + [0.5, "rgb(255,255,255)"], + [0.6, "rgb(255,204,255)"], + [0.7, "rgb(255,153,255)"], + [0.8, "rgb(255,102,204)"], + [0.9, "rgb(255,102,102)"], + [1, "rgb(255,0,0)"], ], - - 'Rainbow': [ - [0, 'rgb(150,0,90)'], [0.125, 'rgb(0,0,200)'], - [0.25, 'rgb(0,25,255)'], [0.375, 'rgb(0,152,255)'], - [0.5, 'rgb(44,255,150)'], [0.625, 'rgb(151,255,0)'], - [0.75, 'rgb(255,234,0)'], [0.875, 'rgb(255,111,0)'], - [1, 'rgb(255,0,0)'] + "Rainbow": [ + [0, "rgb(150,0,90)"], + [0.125, "rgb(0,0,200)"], + [0.25, "rgb(0,25,255)"], + [0.375, "rgb(0,152,255)"], + [0.5, "rgb(44,255,150)"], + [0.625, "rgb(151,255,0)"], + [0.75, "rgb(255,234,0)"], + [0.875, "rgb(255,111,0)"], + [1, "rgb(255,0,0)"], ], - - 'Portland': [ - [0, 'rgb(12,51,131)'], [0.25, 'rgb(10,136,186)'], - [0.5, 'rgb(242,211,56)'], [0.75, 'rgb(242,143,56)'], - [1, 'rgb(217,30,30)'] + "Portland": [ + [0, "rgb(12,51,131)"], + [0.25, "rgb(10,136,186)"], + [0.5, "rgb(242,211,56)"], + [0.75, "rgb(242,143,56)"], + [1, "rgb(217,30,30)"], ], - - 'Jet': [ - [0, 'rgb(0,0,131)'], [0.125, 'rgb(0,60,170)'], - [0.375, 'rgb(5,255,255)'], [0.625, 'rgb(255,255,0)'], - [0.875, 'rgb(250,0,0)'], [1, 'rgb(128,0,0)'] + "Jet": [ + [0, "rgb(0,0,131)"], + [0.125, "rgb(0,60,170)"], + [0.375, "rgb(5,255,255)"], + [0.625, "rgb(255,255,0)"], + [0.875, "rgb(250,0,0)"], + [1, "rgb(128,0,0)"], ], - - 'Hot': [ - [0, 'rgb(0,0,0)'], [0.3, 'rgb(230,0,0)'], - [0.6, 'rgb(255,210,0)'], [1, 'rgb(255,255,255)'] + "Hot": [ + [0, "rgb(0,0,0)"], + [0.3, "rgb(230,0,0)"], + [0.6, "rgb(255,210,0)"], + [1, "rgb(255,255,255)"], ], - - 'Blackbody': [ - [0, 'rgb(0,0,0)'], [0.2, 'rgb(230,0,0)'], - [0.4, 'rgb(230,210,0)'], [0.7, 'rgb(255,255,255)'], - [1, 'rgb(160,200,255)'] + "Blackbody": [ + [0, "rgb(0,0,0)"], + [0.2, "rgb(230,0,0)"], + [0.4, "rgb(230,210,0)"], + [0.7, "rgb(255,255,255)"], + [1, "rgb(160,200,255)"], ], - - 'Earth': [ - [0, 'rgb(0,0,130)'], [0.1, 'rgb(0,180,180)'], - [0.2, 'rgb(40,210,40)'], [0.4, 'rgb(230,230,50)'], - [0.6, 'rgb(120,70,20)'], [1, 'rgb(255,255,255)'] + "Earth": [ + [0, "rgb(0,0,130)"], + [0.1, "rgb(0,180,180)"], + [0.2, "rgb(40,210,40)"], + [0.4, "rgb(230,230,50)"], + [0.6, "rgb(120,70,20)"], + [1, "rgb(255,255,255)"], ], - - 'Electric': [ - [0, 'rgb(0,0,0)'], [0.15, 'rgb(30,0,100)'], - [0.4, 'rgb(120,0,100)'], [0.6, 'rgb(160,90,0)'], - [0.8, 'rgb(230,200,0)'], [1, 'rgb(255,250,220)'] + "Electric": [ + [0, "rgb(0,0,0)"], + [0.15, "rgb(30,0,100)"], + [0.4, "rgb(120,0,100)"], + [0.6, "rgb(160,90,0)"], + [0.8, "rgb(230,200,0)"], + [1, "rgb(255,250,220)"], ], - - 'Viridis': [ - [0, '#440154'], [0.06274509803921569, '#48186a'], - [0.12549019607843137, '#472d7b'], [0.18823529411764706, '#424086'], - [0.25098039215686274, '#3b528b'], [0.3137254901960784, '#33638d'], - [0.3764705882352941, '#2c728e'], [0.4392156862745098, '#26828e'], - [0.5019607843137255, '#21918c'], [0.5647058823529412, '#1fa088'], - [0.6274509803921569, '#28ae80'], [0.6901960784313725, '#3fbc73'], - [0.7529411764705882, '#5ec962'], [0.8156862745098039, '#84d44b'], - [0.8784313725490196, '#addc30'], [0.9411764705882353, '#d8e219'], - [1, '#fde725'] + "Viridis": [ + [0, "#440154"], + [0.06274509803921569, "#48186a"], + [0.12549019607843137, "#472d7b"], + [0.18823529411764706, "#424086"], + [0.25098039215686274, "#3b528b"], + [0.3137254901960784, "#33638d"], + [0.3764705882352941, "#2c728e"], + [0.4392156862745098, "#26828e"], + [0.5019607843137255, "#21918c"], + [0.5647058823529412, "#1fa088"], + [0.6274509803921569, "#28ae80"], + [0.6901960784313725, "#3fbc73"], + [0.7529411764705882, "#5ec962"], + [0.8156862745098039, "#84d44b"], + [0.8784313725490196, "#addc30"], + [0.9411764705882353, "#d8e219"], + [1, "#fde725"], + ], + "Cividis": [ + [0.000000, "rgb(0,32,76)"], + [0.058824, "rgb(0,42,102)"], + [0.117647, "rgb(0,52,110)"], + [0.176471, "rgb(39,63,108)"], + [0.235294, "rgb(60,74,107)"], + [0.294118, "rgb(76,85,107)"], + [0.352941, "rgb(91,95,109)"], + [0.411765, "rgb(104,106,112)"], + [0.470588, "rgb(117,117,117)"], + [0.529412, "rgb(131,129,120)"], + [0.588235, "rgb(146,140,120)"], + [0.647059, "rgb(161,152,118)"], + [0.705882, "rgb(176,165,114)"], + [0.764706, "rgb(192,177,109)"], + [0.823529, "rgb(209,191,102)"], + [0.882353, "rgb(225,204,92)"], + [0.941176, "rgb(243,219,79)"], + [1.000000, "rgb(255,233,69)"], ], - 'Cividis': [ - [0.000000, 'rgb(0,32,76)'], [0.058824, 'rgb(0,42,102)'], - [0.117647, 'rgb(0,52,110)'], [0.176471, 'rgb(39,63,108)'], - [0.235294, 'rgb(60,74,107)'], [0.294118, 'rgb(76,85,107)'], - [0.352941, 'rgb(91,95,109)'], [0.411765, 'rgb(104,106,112)'], - [0.470588, 'rgb(117,117,117)'], [0.529412, 'rgb(131,129,120)'], - [0.588235, 'rgb(146,140,120)'], [0.647059, 'rgb(161,152,118)'], - [0.705882, 'rgb(176,165,114)'], [0.764706, 'rgb(192,177,109)'], - [0.823529, 'rgb(209,191,102)'], [0.882353, 'rgb(225,204,92)'], - [0.941176, 'rgb(243,219,79)'], [1.000000, 'rgb(255,233,69)'] - ] } @@ -249,7 +297,7 @@ def color_parser(colors, function): if isinstance(colors, tuple) and isinstance(colors[0], Number): return function(colors) - if hasattr(colors, '__iter__'): + if hasattr(colors, "__iter__"): if isinstance(colors, tuple): new_color_tuple = tuple(function(item) for item in colors) return new_color_tuple @@ -259,11 +307,12 @@ def color_parser(colors, function): return new_color_list -def validate_colors(colors, colortype='tuple'): +def validate_colors(colors, colortype="tuple"): """ Validates color(s) and returns a list of color(s) of a specified type """ from numbers import Number + if colors is None: colors = DEFAULT_PLOTLY_COLORS @@ -275,12 +324,13 @@ def validate_colors(colors, colortype='tuple'): # color in the plotly colorscale. In resolving this issue we # will be removing the immediate line below colors = [colors_list[0]] + [colors_list[-1]] - elif 'rgb' in colors or '#' in colors: + elif "rgb" in colors or "#" in colors: colors = [colors] else: raise exceptions.PlotlyError( "If your colors variable is a string, it must be a " - "Plotly scale, an rgb color or a hex color.") + "Plotly scale, an rgb color or a hex color." + ) elif isinstance(colors, tuple): if isinstance(colors[0], Number): @@ -290,7 +340,7 @@ def validate_colors(colors, colortype='tuple'): # convert color elements in list to tuple color for j, each_color in enumerate(colors): - if 'rgb' in each_color: + if "rgb" in each_color: each_color = color_parser(each_color, unlabel_rgb) for value in each_color: if value > 255.0: @@ -301,7 +351,7 @@ def validate_colors(colors, colortype='tuple'): each_color = color_parser(each_color, unconvert_from_RGB_255) colors[j] = each_color - if '#' in each_color: + if "#" in each_color: each_color = color_parser(each_color, hex_to_rgb) each_color = color_parser(each_color, unconvert_from_RGB_255) @@ -316,7 +366,7 @@ def validate_colors(colors, colortype='tuple'): ) colors[j] = each_color - if colortype == 'rgb' and not isinstance(colors, six.string_types): + if colortype == "rgb" and not isinstance(colors, six.string_types): for j, each_color in enumerate(colors): rgb_color = color_parser(each_color, convert_to_RGB_255) colors[j] = color_parser(rgb_color, label_rgb) @@ -324,13 +374,13 @@ def validate_colors(colors, colortype='tuple'): return colors -def validate_colors_dict(colors, colortype='tuple'): +def validate_colors_dict(colors, colortype="tuple"): """ Validates dictioanry of color(s) """ # validate each color element in the dictionary for key in colors: - if 'rgb' in colors[key]: + if "rgb" in colors[key]: colors[key] = color_parser(colors[key], unlabel_rgb) for value in colors[key]: if value > 255.0: @@ -340,7 +390,7 @@ def validate_colors_dict(colors, colortype='tuple'): ) colors[key] = color_parser(colors[key], unconvert_from_RGB_255) - if '#' in colors[key]: + if "#" in colors[key]: colors[key] = color_parser(colors[key], hex_to_rgb) colors[key] = color_parser(colors[key], unconvert_from_RGB_255) @@ -352,7 +402,7 @@ def validate_colors_dict(colors, colortype='tuple'): "cannot exceed 1.0." ) - if colortype == 'rgb': + if colortype == "rgb": for key in colors: colors[key] = color_parser(colors[key], convert_to_RGB_255) colors[key] = color_parser(colors[key], label_rgb) @@ -360,9 +410,13 @@ def validate_colors_dict(colors, colortype='tuple'): return colors -def convert_colors_to_same_type(colors, colortype='rgb', scale=None, - return_default_colors=False, - num_of_defualt_colors=2): +def convert_colors_to_same_type( + colors, + colortype="rgb", + scale=None, + return_default_colors=False, + num_of_defualt_colors=2, +): """ Converts color(s) to the specified color type @@ -392,7 +446,7 @@ def convert_colors_to_same_type(colors, colortype='rgb', scale=None, if scale is None: scale = colorscale_to_scale(PLOTLY_SCALES[colors]) - elif 'rgb' in colors or '#' in colors: + elif "rgb" in colors or "#" in colors: colors_list = [colors] elif isinstance(colors, tuple): @@ -410,84 +464,62 @@ def convert_colors_to_same_type(colors, colortype='rgb', scale=None, if len(colors_list) != len(scale): raise exceptions.PlotlyError( - 'Make sure that the length of your scale matches the length ' - 'of your list of colors which is {}.'.format(len(colors_list)) + "Make sure that the length of your scale matches the length " + "of your list of colors which is {}.".format(len(colors_list)) ) # convert all colors to rgb for j, each_color in enumerate(colors_list): - if '#' in each_color: - each_color = color_parser( - each_color, hex_to_rgb - ) - each_color = color_parser( - each_color, label_rgb - ) + if "#" in each_color: + each_color = color_parser(each_color, hex_to_rgb) + each_color = color_parser(each_color, label_rgb) colors_list[j] = each_color elif isinstance(each_color, tuple): - each_color = color_parser( - each_color, convert_to_RGB_255 - ) - each_color = color_parser( - each_color, label_rgb - ) + each_color = color_parser(each_color, convert_to_RGB_255) + each_color = color_parser(each_color, label_rgb) colors_list[j] = each_color - if colortype == 'rgb': + if colortype == "rgb": return (colors_list, scale) - elif colortype == 'tuple': + elif colortype == "tuple": for j, each_color in enumerate(colors_list): - each_color = color_parser( - each_color, unlabel_rgb - ) - each_color = color_parser( - each_color, unconvert_from_RGB_255 - ) + each_color = color_parser(each_color, unlabel_rgb) + each_color = color_parser(each_color, unconvert_from_RGB_255) colors_list[j] = each_color return (colors_list, scale) else: - raise exceptions.PlotlyError('You must select either rgb or tuple ' - 'for your colortype variable.') + raise exceptions.PlotlyError( + "You must select either rgb or tuple " "for your colortype variable." + ) -def convert_dict_colors_to_same_type(colors_dict, colortype='rgb'): +def convert_dict_colors_to_same_type(colors_dict, colortype="rgb"): """ Converts a colors in a dictioanry of colors to the specified color type :param (dict) colors_dict: a dictioanry whose values are single colors """ for key in colors_dict: - if '#' in colors_dict[key]: - colors_dict[key] = color_parser( - colors_dict[key], hex_to_rgb - ) - colors_dict[key] = color_parser( - colors_dict[key], label_rgb - ) + if "#" in colors_dict[key]: + colors_dict[key] = color_parser(colors_dict[key], hex_to_rgb) + colors_dict[key] = color_parser(colors_dict[key], label_rgb) elif isinstance(colors_dict[key], tuple): - colors_dict[key] = color_parser( - colors_dict[key], convert_to_RGB_255 - ) - colors_dict[key] = color_parser( - colors_dict[key], label_rgb - ) + colors_dict[key] = color_parser(colors_dict[key], convert_to_RGB_255) + colors_dict[key] = color_parser(colors_dict[key], label_rgb) - if colortype == 'rgb': + if colortype == "rgb": return colors_dict - elif colortype == 'tuple': + elif colortype == "tuple": for key in colors_dict: - colors_dict[key] = color_parser( - colors_dict[key], unlabel_rgb - ) - colors_dict[key] = color_parser( - colors_dict[key], unconvert_from_RGB_255 - ) + colors_dict[key] = color_parser(colors_dict[key], unlabel_rgb) + colors_dict[key] = color_parser(colors_dict[key], unconvert_from_RGB_255) return colors_dict else: - raise exceptions.PlotlyError('You must select either rgb or tuple ' - 'for your colortype variable.') + raise exceptions.PlotlyError( + "You must select either rgb or tuple " "for your colortype variable." + ) def validate_scale_values(scale): @@ -502,20 +534,21 @@ def validate_scale_values(scale): the extraction of these values from the two-lists in order """ if len(scale) < 2: - raise exceptions.PlotlyError('You must input a list of scale values ' - 'that has at least two values.') + raise exceptions.PlotlyError( + "You must input a list of scale values " "that has at least two values." + ) if (scale[0] != 0) or (scale[-1] != 1): raise exceptions.PlotlyError( - 'The first and last number in your scale must be 0.0 and 1.0 ' - 'respectively.' + "The first and last number in your scale must be 0.0 and 1.0 " + "respectively." ) if not all(x < y for x, y in zip(scale, scale[1:])): - raise exceptions.PlotlyError( - "'scale' must be a list that contains a strictly increasing " - "sequence of numbers." - ) + raise exceptions.PlotlyError( + "'scale' must be a list that contains a strictly increasing " + "sequence of numbers." + ) def validate_colorscale(colorscale): @@ -524,9 +557,7 @@ def validate_colorscale(colorscale): # TODO Write tests for these exceptions raise exceptions.PlotlyError("A valid colorscale must be a list.") if not all(isinstance(innerlist, list) for innerlist in colorscale): - raise exceptions.PlotlyError( - "A valid colorscale must be a list of lists." - ) + raise exceptions.PlotlyError("A valid colorscale must be a list of lists.") colorscale_colors = colorscale_to_colors(colorscale) scale_values = colorscale_to_scale(colorscale) @@ -551,17 +582,19 @@ def make_colorscale(colors, scale=None): # validate minimum colors length of 2 if len(colors) < 2: - raise exceptions.PlotlyError('You must input a list of colors that ' - 'has at least two colors.') + raise exceptions.PlotlyError( + "You must input a list of colors that " "has at least two colors." + ) if scale is None: - scale_incr = 1./(len(colors) - 1) + scale_incr = 1.0 / (len(colors) - 1) return [[i * scale_incr, color] for i, color in enumerate(colors)] else: if len(colors) != len(scale): - raise exceptions.PlotlyError('The length of colors and scale ' - 'must be the same.') + raise exceptions.PlotlyError( + "The length of colors and scale " "must be the same." + ) validate_scale_values(scale) @@ -569,7 +602,7 @@ def make_colorscale(colors, scale=None): return colorscale -def find_intermediate_color(lowcolor, highcolor, intermed, colortype='tuple'): +def find_intermediate_color(lowcolor, highcolor, intermed, colortype="tuple"): """ Returns the color at a given distance between two colors @@ -579,7 +612,7 @@ def find_intermediate_color(lowcolor, highcolor, intermed, colortype='tuple'): the function will automatically convert the rgb type to a tuple, find the intermediate color and return it as an rgb color. """ - if colortype == 'rgb': + if colortype == "rgb": # convert to tuple color, eg. (1, 0.45, 0.7) lowcolor = unlabel_rgb(lowcolor) highcolor = unlabel_rgb(highcolor) @@ -591,10 +624,10 @@ def find_intermediate_color(lowcolor, highcolor, intermed, colortype='tuple'): inter_med_tuple = ( lowcolor[0] + intermed * diff_0, lowcolor[1] + intermed * diff_1, - lowcolor[2] + intermed * diff_2 + lowcolor[2] + intermed * diff_2, ) - if colortype == 'rgb': + if colortype == "rgb": # back to an rgb string, e.g. rgb(30, 20, 10) inter_med_rgb = label_rgb(inter_med_tuple) return inter_med_rgb @@ -610,9 +643,7 @@ def unconvert_from_RGB_255(colors): 255. Returns the same tuples where each tuple element is normalized to a value between 0 and 1 """ - return (colors[0]/(255.0), - colors[1]/(255.0), - colors[2]/(255.0)) + return (colors[0] / (255.0), colors[1] / (255.0), colors[2] / (255.0)) def convert_to_RGB_255(colors): @@ -631,8 +662,8 @@ def convert_to_RGB_255(colors): rgb_components = [] for component in colors: - rounded_num = decimal.Decimal(str(component*255.0)).quantize( - decimal.Decimal('1'), rounding=decimal.ROUND_HALF_EVEN + rounded_num = decimal.Decimal(str(component * 255.0)).quantize( + decimal.Decimal("1"), rounding=decimal.ROUND_HALF_EVEN ) # convert rounded number to an integer from 'Decimal' form rounded_num = int(rounded_num) @@ -641,7 +672,7 @@ def convert_to_RGB_255(colors): return (rgb_components[0], rgb_components[1], rgb_components[2]) -def n_colors(lowcolor, highcolor, n_colors, colortype='tuple'): +def n_colors(lowcolor, highcolor, n_colors, colortype="tuple"): """ Splits a low and high color into a list of n_colors colors in it @@ -650,26 +681,28 @@ def n_colors(lowcolor, highcolor, n_colors, colortype='tuple'): from linearly interpolating through RGB space. If colortype is 'rgb' the function will return a list of colors in the same form. """ - if colortype == 'rgb': + if colortype == "rgb": # convert to tuple lowcolor = unlabel_rgb(lowcolor) highcolor = unlabel_rgb(highcolor) diff_0 = float(highcolor[0] - lowcolor[0]) - incr_0 = diff_0/(n_colors - 1) + incr_0 = diff_0 / (n_colors - 1) diff_1 = float(highcolor[1] - lowcolor[1]) - incr_1 = diff_1/(n_colors - 1) + incr_1 = diff_1 / (n_colors - 1) diff_2 = float(highcolor[2] - lowcolor[2]) - incr_2 = diff_2/(n_colors - 1) + incr_2 = diff_2 / (n_colors - 1) list_of_colors = [] for index in range(n_colors): - new_tuple = (lowcolor[0] + (index * incr_0), - lowcolor[1] + (index * incr_1), - lowcolor[2] + (index * incr_2)) + new_tuple = ( + lowcolor[0] + (index * incr_0), + lowcolor[1] + (index * incr_1), + lowcolor[2] + (index * incr_2), + ) list_of_colors.append(new_tuple) - if colortype == 'rgb': + if colortype == "rgb": # back to an rgb string list_of_colors = color_parser(list_of_colors, label_rgb) @@ -680,7 +713,7 @@ def label_rgb(colors): """ Takes tuple (a, b, c) and returns an rgb color 'rgb(a, b, c)' """ - return ('rgb(%s, %s, %s)' % (colors[0], colors[1], colors[2])) + return "rgb(%s, %s, %s)" % (colors[0], colors[1], colors[2]) def unlabel_rgb(colors): @@ -690,24 +723,24 @@ def unlabel_rgb(colors): This function takes either an 'rgb(a, b, c)' color or a list of such colors and returns the color tuples in tuple(s) (a, b, c) """ - str_vals = '' + str_vals = "" for index in range(len(colors)): try: float(colors[index]) str_vals = str_vals + colors[index] except ValueError: - if colors[index] == ',' or colors[index] == '.': + if colors[index] == "," or colors[index] == ".": str_vals = str_vals + colors[index] - str_vals = str_vals + ',' + str_vals = str_vals + "," numbers = [] - str_num = '' + str_num = "" for char in str_vals: - if char != ',': + if char != ",": str_num = str_num + char else: numbers.append(float(str_num)) - str_num = '' + str_num = "" return (numbers[0], numbers[1], numbers[2]) @@ -719,11 +752,13 @@ def hex_to_rgb(value): :rtype (tuple) (r_value, g_value, b_value): tuple of rgb values """ - value = value.lstrip('#') + value = value.lstrip("#") hex_total_length = len(value) rgb_section_length = hex_total_length // 3 - return tuple(int(value[i:i + rgb_section_length], 16) - for i in range(0, hex_total_length, rgb_section_length)) + return tuple( + int(value[i : i + rgb_section_length], 16) + for i in range(0, hex_total_length, rgb_section_length) + ) def colorscale_to_colors(colorscale): diff --git a/packages/python/plotly/plotly/config.py b/packages/python/plotly/plotly/config.py index 86a36b24075..40011db95ae 100644 --- a/packages/python/plotly/plotly/config.py +++ b/packages/python/plotly/plotly/config.py @@ -1,3 +1,4 @@ from __future__ import absolute_import from _plotly_future_ import _chart_studio_error -_chart_studio_error('config') + +_chart_studio_error("config") diff --git a/packages/python/plotly/plotly/dashboard_objs.py b/packages/python/plotly/plotly/dashboard_objs.py index 42dc89418a2..d208130aa75 100644 --- a/packages/python/plotly/plotly/dashboard_objs.py +++ b/packages/python/plotly/plotly/dashboard_objs.py @@ -1,3 +1,4 @@ from __future__ import absolute_import from _plotly_future_ import _chart_studio_error -_chart_studio_error('dashboard_objs') + +_chart_studio_error("dashboard_objs") diff --git a/packages/python/plotly/plotly/data/__init__.py b/packages/python/plotly/plotly/data/__init__.py index 5e61d319503..5c01b311243 100644 --- a/packages/python/plotly/plotly/data/__init__.py +++ b/packages/python/plotly/plotly/data/__init__.py @@ -78,7 +78,8 @@ def _get_dataset(d): return pandas.read_csv( os.path.join( os.path.dirname(os.path.dirname(__file__)), - 'package_data', - 'datasets', - d + ".csv.gz") + "package_data", + "datasets", + d + ".csv.gz", + ) ) diff --git a/packages/python/plotly/plotly/express/_core.py b/packages/python/plotly/plotly/express/_core.py index 0659fa0d696..6f16d9627bd 100644 --- a/packages/python/plotly/plotly/express/_core.py +++ b/packages/python/plotly/plotly/express/_core.py @@ -340,17 +340,13 @@ def configure_cartesian_marginal_axes(args, fig, orders): # Configure axis ticks on marginal subplots if args["marginal_x"]: fig.update_yaxes( - showticklabels=False, - showgrid=args["marginal_x"] == "histogram", - row=nrows, + showticklabels=False, showgrid=args["marginal_x"] == "histogram", row=nrows ) fig.update_xaxes(showgrid=True, row=nrows) if args["marginal_y"]: fig.update_xaxes( - showticklabels=False, - showgrid=args["marginal_y"] == "histogram", - col=ncols, + showticklabels=False, showgrid=args["marginal_y"] == "histogram", col=ncols ) fig.update_yaxes(showgrid=True, col=ncols) @@ -678,11 +674,11 @@ def apply_default_cascade(args): args["color_discrete_sequence"] = qualitative.Plotly # If both marginals and faceting are specified, faceting wins - if args.get('facet_col', None) and args.get('marginal_y', None): - args['marginal_y'] = None + if args.get("facet_col", None) and args.get("marginal_y", None): + args["marginal_y"] = None - if args.get('facet_row', None) and args.get('marginal_x', None): - args['marginal_x'] = None + if args.get("facet_row", None) and args.get("marginal_x", None): + args["marginal_x"] = None def infer_config(args, constructor, trace_patch): @@ -1011,11 +1007,7 @@ def make_figure(args, constructor, trace_patch={}, layout_patch={}): continue _set_trace_grid_reference( - trace, - fig.layout, - fig._grid_ref, - trace._subplot_row, - trace._subplot_col, + trace, fig.layout, fig._grid_ref, trace._subplot_row, trace._subplot_col ) # Add traces, layout and frames to figure @@ -1048,9 +1040,7 @@ def init_figure( else: specs[row0][col0] = {"type": trace.type} if args.get("facet_row", None) and hasattr(trace, "_subplot_row_val"): - row_titles[row0] = ( - args["facet_row"] + "=" + str(trace._subplot_row_val) - ) + row_titles[row0] = args["facet_row"] + "=" + str(trace._subplot_row_val) if args.get("facet_col", None) and hasattr(trace, "_subplot_col_val"): column_titles[col0] = ( diff --git a/packages/python/plotly/plotly/figure_factory/_2d_density.py b/packages/python/plotly/plotly/figure_factory/_2d_density.py index 585942b8f1a..59c5559a8c8 100644 --- a/packages/python/plotly/plotly/figure_factory/_2d_density.py +++ b/packages/python/plotly/plotly/figure_factory/_2d_density.py @@ -15,14 +15,22 @@ def make_linear_colorscale(colors): For documentation regarding to the form of the output, see https://plot.ly/python/reference/#mesh3d-colorscale """ - scale = 1. / (len(colors) - 1) + scale = 1.0 / (len(colors) - 1) return [[i * scale, color] for i, color in enumerate(colors)] -def create_2d_density(x, y, colorscale='Earth', ncontours=20, - hist_color=(0, 0, 0.5), point_color=(0, 0, 0.5), - point_size=2, title='2D Density Plot', - height=600, width=600): +def create_2d_density( + x, + y, + colorscale="Earth", + ncontours=20, + hist_color=(0, 0, 0.5), + point_color=(0, 0, 0.5), + point_size=2, + title="2D Density Plot", + height=600, + width=600, +): """ Returns figure for a 2D density plot @@ -101,32 +109,34 @@ def create_2d_density(x, y, colorscale='Earth', ncontours=20, "Both lists 'x' and 'y' must be the same length." ) - colorscale = clrs.validate_colors(colorscale, 'rgb') + colorscale = clrs.validate_colors(colorscale, "rgb") colorscale = make_linear_colorscale(colorscale) # validate hist_color and point_color - hist_color = clrs.validate_colors(hist_color, 'rgb') - point_color = clrs.validate_colors(point_color, 'rgb') + hist_color = clrs.validate_colors(hist_color, "rgb") + point_color = clrs.validate_colors(point_color, "rgb") trace1 = graph_objs.Scatter( - x=x, y=y, mode='markers', name='points', - marker=dict( - color=point_color[0], - size=point_size, - opacity=0.4 - ) + x=x, + y=y, + mode="markers", + name="points", + marker=dict(color=point_color[0], size=point_size, opacity=0.4), ) trace2 = graph_objs.Histogram2dContour( - x=x, y=y, name='density', ncontours=ncontours, - colorscale=colorscale, reversescale=True, showscale=False + x=x, + y=y, + name="density", + ncontours=ncontours, + colorscale=colorscale, + reversescale=True, + showscale=False, ) trace3 = graph_objs.Histogram( - x=x, name='x density', - marker=dict(color=hist_color[0]), yaxis='y2' + x=x, name="x density", marker=dict(color=hist_color[0]), yaxis="y2" ) trace4 = graph_objs.Histogram( - y=y, name='y density', - marker=dict(color=hist_color[0]), xaxis='x2' + y=y, name="y density", marker=dict(color=hist_color[0]), xaxis="x2" ) data = [trace1, trace2, trace3, trace4] @@ -136,31 +146,13 @@ def create_2d_density(x, y, colorscale='Earth', ncontours=20, title=title, height=height, width=width, - xaxis=dict( - domain=[0, 0.85], - showgrid=False, - zeroline=False - ), - yaxis=dict( - domain=[0, 0.85], - showgrid=False, - zeroline=False - ), - margin=dict( - t=50 - ), - hovermode='closest', + xaxis=dict(domain=[0, 0.85], showgrid=False, zeroline=False), + yaxis=dict(domain=[0, 0.85], showgrid=False, zeroline=False), + margin=dict(t=50), + hovermode="closest", bargap=0, - xaxis2=dict( - domain=[0.85, 1], - showgrid=False, - zeroline=False - ), - yaxis2=dict( - domain=[0.85, 1], - showgrid=False, - zeroline=False - ) + xaxis2=dict(domain=[0.85, 1], showgrid=False, zeroline=False), + yaxis2=dict(domain=[0.85, 1], showgrid=False, zeroline=False), ) fig = graph_objs.Figure(data=data, layout=layout) diff --git a/packages/python/plotly/plotly/figure_factory/__init__.py b/packages/python/plotly/plotly/figure_factory/__init__.py index 04937a44973..6ce7217803e 100644 --- a/packages/python/plotly/plotly/figure_factory/__init__.py +++ b/packages/python/plotly/plotly/figure_factory/__init__.py @@ -3,10 +3,12 @@ from plotly import optional_imports # Require that numpy exists for figure_factory -np = optional_imports.get_module('numpy') +np = optional_imports.get_module("numpy") if np is None: - raise ImportError("""\ -The figure factory module requires the numpy package""") + raise ImportError( + """\ +The figure factory module requires the numpy package""" + ) from plotly.figure_factory._2d_density import create_2d_density @@ -25,5 +27,6 @@ from plotly.figure_factory._ternary_contour import create_ternary_contour from plotly.figure_factory._trisurf import create_trisurf from plotly.figure_factory._violin import create_violin -if optional_imports.get_module('pandas') is not None: + +if optional_imports.get_module("pandas") is not None: from plotly.figure_factory._county_choropleth import create_choropleth diff --git a/packages/python/plotly/plotly/figure_factory/_annotated_heatmap.py b/packages/python/plotly/plotly/figure_factory/_annotated_heatmap.py index 605b7d825e9..b1ebfc5dc34 100644 --- a/packages/python/plotly/plotly/figure_factory/_annotated_heatmap.py +++ b/packages/python/plotly/plotly/figure_factory/_annotated_heatmap.py @@ -7,7 +7,7 @@ from plotly.validators.heatmap import ColorscaleValidator # Optional imports, may be None for users that only use our core functionality. -np = optional_imports.get_module('numpy') +np = optional_imports.get_module("numpy") def validate_annotated_heatmap(z, x, y, annotation_text): @@ -26,26 +26,38 @@ def validate_annotated_heatmap(z, x, y, annotation_text): utils.validate_equal_length(z, annotation_text) for lst in range(len(z)): if len(z[lst]) != len(annotation_text[lst]): - raise exceptions.PlotlyError("z and text should have the " - "same dimensions") + raise exceptions.PlotlyError( + "z and text should have the " "same dimensions" + ) if x: if len(x) != len(z[0]): - raise exceptions.PlotlyError("oops, the x list that you " - "provided does not match the " - "width of your z matrix ") + raise exceptions.PlotlyError( + "oops, the x list that you " + "provided does not match the " + "width of your z matrix " + ) if y: if len(y) != len(z): - raise exceptions.PlotlyError("oops, the y list that you " - "provided does not match the " - "length of your z matrix ") - - -def create_annotated_heatmap(z, x=None, y=None, annotation_text=None, - colorscale='RdBu', font_colors=None, - showscale=False, reversescale=False, - **kwargs): + raise exceptions.PlotlyError( + "oops, the y list that you " + "provided does not match the " + "length of your z matrix " + ) + + +def create_annotated_heatmap( + z, + x=None, + y=None, + annotation_text=None, + colorscale="RdBu", + font_colors=None, + showscale=False, + reversescale=False, + **kwargs +): """ BETA function that creates annotated heatmaps @@ -94,26 +106,42 @@ def create_annotated_heatmap(z, x=None, y=None, annotation_text=None, colorscale_validator = ColorscaleValidator() colorscale = colorscale_validator.validate_coerce(colorscale) - annotations = _AnnotatedHeatmap(z, x, y, annotation_text, - colorscale, font_colors, reversescale, - **kwargs).make_annotations() + annotations = _AnnotatedHeatmap( + z, x, y, annotation_text, colorscale, font_colors, reversescale, **kwargs + ).make_annotations() if x or y: - trace = dict(type='heatmap', z=z, x=x, y=y, colorscale=colorscale, - showscale=showscale, reversescale=reversescale, **kwargs) - layout = dict(annotations=annotations, - xaxis=dict(ticks='', dtick=1, side='top', - gridcolor='rgb(0, 0, 0)'), - yaxis=dict(ticks='', dtick=1, ticksuffix=' ')) + trace = dict( + type="heatmap", + z=z, + x=x, + y=y, + colorscale=colorscale, + showscale=showscale, + reversescale=reversescale, + **kwargs + ) + layout = dict( + annotations=annotations, + xaxis=dict(ticks="", dtick=1, side="top", gridcolor="rgb(0, 0, 0)"), + yaxis=dict(ticks="", dtick=1, ticksuffix=" "), + ) else: - trace = dict(type='heatmap', z=z, colorscale=colorscale, - showscale=showscale, reversescale=reversescale, **kwargs) - layout = dict(annotations=annotations, - xaxis=dict(ticks='', side='top', - gridcolor='rgb(0, 0, 0)', - showticklabels=False), - yaxis=dict(ticks='', ticksuffix=' ', - showticklabels=False)) + trace = dict( + type="heatmap", + z=z, + colorscale=colorscale, + showscale=showscale, + reversescale=reversescale, + **kwargs + ) + layout = dict( + annotations=annotations, + xaxis=dict( + ticks="", side="top", gridcolor="rgb(0, 0, 0)", showticklabels=False + ), + yaxis=dict(ticks="", ticksuffix=" ", showticklabels=False), + ) data = [trace] @@ -121,26 +149,30 @@ def create_annotated_heatmap(z, x=None, y=None, annotation_text=None, def to_rgb_color_list(color_str, default): - if 'rgb' in color_str: - return [int(v) for v in color_str.strip('rgb()').split(',')] - elif '#' in color_str: + if "rgb" in color_str: + return [int(v) for v in color_str.strip("rgb()").split(",")] + elif "#" in color_str: return clrs.hex_to_rgb(color_str) else: return default def should_use_black_text(background_color): - return (background_color[0] * 0.299 + - background_color[1] * 0.587 + - background_color[2] * 0.114) > 186 + return ( + background_color[0] * 0.299 + + background_color[1] * 0.587 + + background_color[2] * 0.114 + ) > 186 class _AnnotatedHeatmap(object): """ Refer to TraceFactory.create_annotated_heatmap() for docstring """ - def __init__(self, z, x, y, annotation_text, colorscale, - font_colors, reversescale, **kwargs): + + def __init__( + self, z, x, y, annotation_text, colorscale, font_colors, reversescale, **kwargs + ): self.z = z if x: @@ -175,15 +207,27 @@ def get_text_color(self): heatmap values >= (max_value - min_value)/2 """ # Plotly colorscales ranging from a lighter shade to a darker shade - colorscales = ['Greys', 'Greens', 'Blues', - 'YIGnBu', 'YIOrRd', 'RdBu', - 'Picnic', 'Jet', 'Hot', 'Blackbody', - 'Earth', 'Electric', 'Viridis', 'Cividis'] + colorscales = [ + "Greys", + "Greens", + "Blues", + "YIGnBu", + "YIOrRd", + "RdBu", + "Picnic", + "Jet", + "Hot", + "Blackbody", + "Earth", + "Electric", + "Viridis", + "Cividis", + ] # Plotly colorscales ranging from a darker shade to a lighter shade - colorscales_reverse = ['Reds'] + colorscales_reverse = ["Reds"] - white = '#FFFFFF' - black = '#000000' + white = "#FFFFFF" + black = "#000000" if self.font_colors: min_text_color = self.font_colors[0] max_text_color = self.font_colors[-1] @@ -201,10 +245,8 @@ def get_text_color(self): max_text_color = white elif isinstance(self.colorscale, list): - min_col = to_rgb_color_list(self.colorscale[0][1], - [255, 255, 255]) - max_col = to_rgb_color_list(self.colorscale[-1][1], - [255, 255, 255]) + min_col = to_rgb_color_list(self.colorscale[0][1], [255, 255, 255]) + max_col = to_rgb_color_list(self.colorscale[-1][1], [255, 255, 255]) # swap min/max colors if reverse scale if self.reversescale: @@ -236,7 +278,7 @@ def get_z_mid(self): else: z_min = min([v for row in self.z for v in row]) z_max = max([v for row in self.z for v in row]) - z_mid = (z_max+z_min) / 2 + z_mid = (z_max + z_min) / 2 return z_mid def make_annotations(self): @@ -257,8 +299,10 @@ def make_annotations(self): text=str(self.annotation_text[n][m]), x=self.x[m], y=self.y[n], - xref='x1', - yref='y1', + xref="x1", + yref="y1", font=dict(color=font_color), - showarrow=False)) + showarrow=False, + ) + ) return annotations diff --git a/packages/python/plotly/plotly/figure_factory/_bullet.py b/packages/python/plotly/plotly/figure_factory/_bullet.py index 9ef776cde76..5daaa823f60 100644 --- a/packages/python/plotly/plotly/figure_factory/_bullet.py +++ b/packages/python/plotly/plotly/figure_factory/_bullet.py @@ -10,161 +10,193 @@ import plotly import plotly.graph_objs as go -pd = optional_imports.get_module('pandas') - - -def _bullet(df, markers, measures, ranges, subtitles, titles, orientation, - range_colors, measure_colors, horizontal_spacing, - vertical_spacing, scatter_options, layout_options): +pd = optional_imports.get_module("pandas") + + +def _bullet( + df, + markers, + measures, + ranges, + subtitles, + titles, + orientation, + range_colors, + measure_colors, + horizontal_spacing, + vertical_spacing, + scatter_options, + layout_options, +): num_of_lanes = len(df) - num_of_rows = num_of_lanes if orientation == 'h' else 1 - num_of_cols = 1 if orientation == 'h' else num_of_lanes + num_of_rows = num_of_lanes if orientation == "h" else 1 + num_of_cols = 1 if orientation == "h" else num_of_lanes if not horizontal_spacing: - horizontal_spacing = 1./num_of_lanes + horizontal_spacing = 1.0 / num_of_lanes if not vertical_spacing: - vertical_spacing = 1./num_of_lanes + vertical_spacing = 1.0 / num_of_lanes fig = plotly.tools.make_subplots( - num_of_rows, num_of_cols, print_grid=False, + num_of_rows, + num_of_cols, + print_grid=False, horizontal_spacing=horizontal_spacing, - vertical_spacing=vertical_spacing + vertical_spacing=vertical_spacing, ) # layout - fig['layout'].update( + fig["layout"].update( dict(shapes=[]), - title='Bullet Chart', + title="Bullet Chart", height=600, width=1000, showlegend=False, - barmode='stack', + barmode="stack", annotations=[], - margin=dict(l=120 if orientation == 'h' else 80), + margin=dict(l=120 if orientation == "h" else 80), ) # update layout - fig['layout'].update(layout_options) + fig["layout"].update(layout_options) - if orientation == 'h': - width_axis = 'yaxis' - length_axis = 'xaxis' + if orientation == "h": + width_axis = "yaxis" + length_axis = "xaxis" else: - width_axis = 'xaxis' - length_axis = 'yaxis' + width_axis = "xaxis" + length_axis = "yaxis" - for key in fig['layout']: - if 'xaxis' in key or 'yaxis' in key: - fig['layout'][key]['showgrid'] = False - fig['layout'][key]['zeroline'] = False + for key in fig["layout"]: + if "xaxis" in key or "yaxis" in key: + fig["layout"][key]["showgrid"] = False + fig["layout"][key]["zeroline"] = False if length_axis in key: - fig['layout'][key]['tickwidth'] = 1 + fig["layout"][key]["tickwidth"] = 1 if width_axis in key: - fig['layout'][key]['showticklabels'] = False - fig['layout'][key]['range'] = [0, 1] + fig["layout"][key]["showticklabels"] = False + fig["layout"][key]["range"] = [0, 1] # narrow domain if 1 bar if num_of_lanes <= 1: - fig['layout'][width_axis + '1']['domain'] = [0.4, 0.6] + fig["layout"][width_axis + "1"]["domain"] = [0.4, 0.6] if not range_colors: - range_colors = ['rgb(200, 200, 200)', 'rgb(245, 245, 245)'] + range_colors = ["rgb(200, 200, 200)", "rgb(245, 245, 245)"] if not measure_colors: - measure_colors = ['rgb(31, 119, 180)', 'rgb(176, 196, 221)'] + measure_colors = ["rgb(31, 119, 180)", "rgb(176, 196, 221)"] for row in range(num_of_lanes): # ranges bars - for idx in range(len(df.iloc[row]['ranges'])): + for idx in range(len(df.iloc[row]["ranges"])): inter_colors = clrs.n_colors( - range_colors[0], range_colors[1], - len(df.iloc[row]['ranges']), 'rgb' + range_colors[0], range_colors[1], len(df.iloc[row]["ranges"]), "rgb" + ) + x = ( + [sorted(df.iloc[row]["ranges"])[-1 - idx]] + if orientation == "h" + else [0] + ) + y = ( + [0] + if orientation == "h" + else [sorted(df.iloc[row]["ranges"])[-1 - idx]] ) - x = ([sorted(df.iloc[row]['ranges'])[-1 - idx]] if - orientation == 'h' else [0]) - y = ([0] if orientation == 'h' else - [sorted(df.iloc[row]['ranges'])[-1 - idx]]) bar = go.Bar( x=x, y=y, - marker=dict( - color=inter_colors[-1 - idx] - ), - name='ranges', - hoverinfo='x' if orientation == 'h' else 'y', + marker=dict(color=inter_colors[-1 - idx]), + name="ranges", + hoverinfo="x" if orientation == "h" else "y", orientation=orientation, width=2, base=0, - xaxis='x{}'.format(row + 1), - yaxis='y{}'.format(row + 1) + xaxis="x{}".format(row + 1), + yaxis="y{}".format(row + 1), ) fig.add_trace(bar) # measures bars - for idx in range(len(df.iloc[row]['measures'])): + for idx in range(len(df.iloc[row]["measures"])): inter_colors = clrs.n_colors( - measure_colors[0], measure_colors[1], - len(df.iloc[row]['measures']), 'rgb' + measure_colors[0], + measure_colors[1], + len(df.iloc[row]["measures"]), + "rgb", + ) + x = ( + [sorted(df.iloc[row]["measures"])[-1 - idx]] + if orientation == "h" + else [0.5] + ) + y = ( + [0.5] + if orientation == "h" + else [sorted(df.iloc[row]["measures"])[-1 - idx]] ) - x = ([sorted(df.iloc[row]['measures'])[-1 - idx]] if - orientation == 'h' else [0.5]) - y = ([0.5] if orientation == 'h' - else [sorted(df.iloc[row]['measures'])[-1 - idx]]) bar = go.Bar( x=x, y=y, - marker=dict( - color=inter_colors[-1 - idx] - ), - name='measures', - hoverinfo='x' if orientation == 'h' else 'y', + marker=dict(color=inter_colors[-1 - idx]), + name="measures", + hoverinfo="x" if orientation == "h" else "y", orientation=orientation, width=0.4, base=0, - xaxis='x{}'.format(row + 1), - yaxis='y{}'.format(row + 1) + xaxis="x{}".format(row + 1), + yaxis="y{}".format(row + 1), ) fig.add_trace(bar) # markers - x = df.iloc[row]['markers'] if orientation == 'h' else [0.5] - y = [0.5] if orientation == 'h' else df.iloc[row]['markers'] + x = df.iloc[row]["markers"] if orientation == "h" else [0.5] + y = [0.5] if orientation == "h" else df.iloc[row]["markers"] markers = go.Scatter( x=x, y=y, - name='markers', - hoverinfo='x' if orientation == 'h' else 'y', - xaxis='x{}'.format(row + 1), - yaxis='y{}'.format(row + 1), + name="markers", + hoverinfo="x" if orientation == "h" else "y", + xaxis="x{}".format(row + 1), + yaxis="y{}".format(row + 1), **scatter_options ) fig.add_trace(markers) # titles and subtitles - title = df.iloc[row]['titles'] - if 'subtitles' in df: - subtitle = '
{}'.format(df.iloc[row]['subtitles']) + title = df.iloc[row]["titles"] + if "subtitles" in df: + subtitle = "
{}".format(df.iloc[row]["subtitles"]) else: - subtitle = '' - label = '{}'.format(title) + subtitle + subtitle = "" + label = "{}".format(title) + subtitle annot = utils.annotation_dict_for_label( label, - (num_of_lanes - row if orientation == 'h' else row + 1), + (num_of_lanes - row if orientation == "h" else row + 1), num_of_lanes, - vertical_spacing if orientation == 'h' else horizontal_spacing, - 'row' if orientation == 'h' else 'col', - True if orientation == 'h' else False, - False + vertical_spacing if orientation == "h" else horizontal_spacing, + "row" if orientation == "h" else "col", + True if orientation == "h" else False, + False, ) - fig['layout']['annotations'] += (annot,) + fig["layout"]["annotations"] += (annot,) return fig -def create_bullet(data, markers=None, measures=None, ranges=None, - subtitles=None, titles=None, orientation='h', - range_colors=('rgb(200, 200, 200)', 'rgb(245, 245, 245)'), - measure_colors=('rgb(31, 119, 180)', 'rgb(176, 196, 221)'), - horizontal_spacing=None, vertical_spacing=None, - scatter_options={}, **layout_options): +def create_bullet( + data, + markers=None, + measures=None, + ranges=None, + subtitles=None, + titles=None, + orientation="h", + range_colors=("rgb(200, 200, 200)", "rgb(245, 245, 245)"), + measure_colors=("rgb(31, 119, 180)", "rgb(176, 196, 221)"), + horizontal_spacing=None, + vertical_spacing=None, + scatter_options={}, + **layout_options +): """ Returns figure for bullet chart. @@ -252,50 +284,48 @@ def create_bullet(data, markers=None, measures=None, ranges=None, """ # validate df if not pd: - raise ImportError( - "'pandas' must be installed for this figure factory." - ) + raise ImportError("'pandas' must be installed for this figure factory.") if utils.is_sequence(data): if not all(isinstance(item, dict) for item in data): raise exceptions.PlotlyError( - 'Every entry of the data argument list, tuple, etc must ' - 'be a dictionary.' + "Every entry of the data argument list, tuple, etc must " + "be a dictionary." ) elif not isinstance(data, pd.DataFrame): raise exceptions.PlotlyError( - 'You must input a pandas DataFrame, or a list of dictionaries.' + "You must input a pandas DataFrame, or a list of dictionaries." ) # make DataFrame from data with correct column headers - col_names = ['titles', 'subtitle', 'markers', 'measures', 'ranges'] + col_names = ["titles", "subtitle", "markers", "measures", "ranges"] if utils.is_sequence(data): df = pd.DataFrame( [ - [d[titles] for d in data] if titles else [''] * len(data), - [d[subtitles] for d in data] if subtitles else [''] * len(data), + [d[titles] for d in data] if titles else [""] * len(data), + [d[subtitles] for d in data] if subtitles else [""] * len(data), [d[markers] for d in data] if markers else [[]] * len(data), [d[measures] for d in data] if measures else [[]] * len(data), [d[ranges] for d in data] if ranges else [[]] * len(data), ], - index=col_names + index=col_names, ) elif isinstance(data, pd.DataFrame): df = pd.DataFrame( [ - data[titles].tolist() if titles else [''] * len(data), - data[subtitles].tolist() if subtitles else [''] * len(data), + data[titles].tolist() if titles else [""] * len(data), + data[subtitles].tolist() if subtitles else [""] * len(data), data[markers].tolist() if markers else [[]] * len(data), data[measures].tolist() if measures else [[]] * len(data), data[ranges].tolist() if ranges else [[]] * len(data), ], - index=col_names + index=col_names, ) df = pd.DataFrame.transpose(df) # make sure ranges, measures, 'markers' are not NAN or NONE - for needed_key in ['ranges', 'measures', 'markers']: + for needed_key in ["ranges", "measures", "markers"]: for idx, r in enumerate(df[needed_key]): try: r_is_nan = math.isnan(r) @@ -313,28 +343,35 @@ def create_bullet(data, markers=None, measures=None, ranges=None, "of two valid colors." ) clrs.validate_colors(colors_list) - colors_list = clrs.convert_colors_to_same_type(colors_list, - 'rgb')[0] + colors_list = clrs.convert_colors_to_same_type(colors_list, "rgb")[0] # default scatter options default_scatter = { - 'marker': {'size': 12, - 'symbol': 'diamond-tall', - 'color': 'rgb(0, 0, 0)'} + "marker": {"size": 12, "symbol": "diamond-tall", "color": "rgb(0, 0, 0)"} } if scatter_options == {}: scatter_options.update(default_scatter) else: # add default options to scatter_options if they are not present - for k in default_scatter['marker']: - if k not in scatter_options['marker']: - scatter_options['marker'][k] = default_scatter['marker'][k] + for k in default_scatter["marker"]: + if k not in scatter_options["marker"]: + scatter_options["marker"][k] = default_scatter["marker"][k] fig = _bullet( - df, markers, measures, ranges, subtitles, titles, orientation, - range_colors, measure_colors, horizontal_spacing, vertical_spacing, - scatter_options, layout_options, + df, + markers, + measures, + ranges, + subtitles, + titles, + orientation, + range_colors, + measure_colors, + horizontal_spacing, + vertical_spacing, + scatter_options, + layout_options, ) return fig diff --git a/packages/python/plotly/plotly/figure_factory/_candlestick.py b/packages/python/plotly/plotly/figure_factory/_candlestick.py index 925b4c1a62b..b012a60a596 100644 --- a/packages/python/plotly/plotly/figure_factory/_candlestick.py +++ b/packages/python/plotly/plotly/figure_factory/_candlestick.py @@ -1,9 +1,11 @@ from __future__ import absolute_import from plotly.figure_factory import utils -from plotly.figure_factory._ohlc import (_DEFAULT_INCREASING_COLOR, - _DEFAULT_DECREASING_COLOR, - validate_ohlc) +from plotly.figure_factory._ohlc import ( + _DEFAULT_INCREASING_COLOR, + _DEFAULT_DECREASING_COLOR, + validate_ohlc, +) from plotly.graph_objs import graph_objs @@ -29,25 +31,28 @@ def make_increasing_candle(open, high, low, close, dates, **kwargs): increasing candlesticks. """ increase_x, increase_y = _Candlestick( - open, high, low, close, dates, **kwargs).get_candle_increase() + open, high, low, close, dates, **kwargs + ).get_candle_increase() - if 'line' in kwargs: - kwargs.setdefault('fillcolor', kwargs['line']['color']) + if "line" in kwargs: + kwargs.setdefault("fillcolor", kwargs["line"]["color"]) else: - kwargs.setdefault('fillcolor', _DEFAULT_INCREASING_COLOR) - if 'name' in kwargs: - kwargs.setdefault('showlegend', True) + kwargs.setdefault("fillcolor", _DEFAULT_INCREASING_COLOR) + if "name" in kwargs: + kwargs.setdefault("showlegend", True) else: - kwargs.setdefault('showlegend', False) - kwargs.setdefault('name', 'Increasing') - kwargs.setdefault('line', dict(color=_DEFAULT_INCREASING_COLOR)) - - candle_incr_data = dict(type='box', - x=increase_x, - y=increase_y, - whiskerwidth=0, - boxpoints=False, - **kwargs) + kwargs.setdefault("showlegend", False) + kwargs.setdefault("name", "Increasing") + kwargs.setdefault("line", dict(color=_DEFAULT_INCREASING_COLOR)) + + candle_incr_data = dict( + type="box", + x=increase_x, + y=increase_y, + whiskerwidth=0, + boxpoints=False, + **kwargs + ) return [candle_incr_data] @@ -69,28 +74,30 @@ def make_decreasing_candle(open, high, low, close, dates, **kwargs): """ decrease_x, decrease_y = _Candlestick( - open, high, low, close, dates, **kwargs).get_candle_decrease() + open, high, low, close, dates, **kwargs + ).get_candle_decrease() - if 'line' in kwargs: - kwargs.setdefault('fillcolor', kwargs['line']['color']) + if "line" in kwargs: + kwargs.setdefault("fillcolor", kwargs["line"]["color"]) else: - kwargs.setdefault('fillcolor', _DEFAULT_DECREASING_COLOR) - kwargs.setdefault('showlegend', False) - kwargs.setdefault('line', dict(color=_DEFAULT_DECREASING_COLOR)) - kwargs.setdefault('name', 'Decreasing') - - candle_decr_data = dict(type='box', - x=decrease_x, - y=decrease_y, - whiskerwidth=0, - boxpoints=False, - **kwargs) + kwargs.setdefault("fillcolor", _DEFAULT_DECREASING_COLOR) + kwargs.setdefault("showlegend", False) + kwargs.setdefault("line", dict(color=_DEFAULT_DECREASING_COLOR)) + kwargs.setdefault("name", "Decreasing") + + candle_decr_data = dict( + type="box", + x=decrease_x, + y=decrease_y, + whiskerwidth=0, + boxpoints=False, + **kwargs + ) return [candle_decr_data] -def create_candlestick(open, high, low, close, dates=None, direction='both', - **kwargs): +def create_candlestick(open, high, low, close, dates=None, direction="both", **kwargs): """ BETA function that creates a candlestick chart @@ -211,19 +218,23 @@ def create_candlestick(open, high, low, close, dates=None, direction='both', utils.validate_equal_length(open, high, low, close) validate_ohlc(open, high, low, close, direction, **kwargs) - if direction is 'increasing': - candle_incr_data = make_increasing_candle(open, high, low, close, - dates, **kwargs) + if direction is "increasing": + candle_incr_data = make_increasing_candle( + open, high, low, close, dates, **kwargs + ) data = candle_incr_data - elif direction is 'decreasing': - candle_decr_data = make_decreasing_candle(open, high, low, close, - dates, **kwargs) + elif direction is "decreasing": + candle_decr_data = make_decreasing_candle( + open, high, low, close, dates, **kwargs + ) data = candle_decr_data else: - candle_incr_data = make_increasing_candle(open, high, low, close, - dates, **kwargs) - candle_decr_data = make_decreasing_candle(open, high, low, close, - dates, **kwargs) + candle_incr_data = make_increasing_candle( + open, high, low, close, dates, **kwargs + ) + candle_decr_data = make_decreasing_candle( + open, high, low, close, dates, **kwargs + ) data = candle_incr_data + candle_decr_data layout = graph_objs.Layout() @@ -234,6 +245,7 @@ class _Candlestick(object): """ Refer to FigureFactory.create_candlestick() for docstring. """ + def __init__(self, open, high, low, close, dates, **kwargs): self.open = open self.high = high diff --git a/packages/python/plotly/plotly/figure_factory/_county_choropleth.py b/packages/python/plotly/plotly/figure_factory/_county_choropleth.py index 26f6d7f2cc4..93a840ad785 100644 --- a/packages/python/plotly/plotly/figure_factory/_county_choropleth.py +++ b/packages/python/plotly/plotly/figure_factory/_county_choropleth.py @@ -15,10 +15,10 @@ pd.options.mode.chained_assignment = None -shapely = optional_imports.get_module('shapely') -shapefile = optional_imports.get_module('shapefile') -gp = optional_imports.get_module('geopandas') -_plotly_geo = optional_imports.get_module('_plotly_geo') +shapely = optional_imports.get_module("shapely") +shapefile = optional_imports.get_module("shapefile") +gp = optional_imports.get_module("geopandas") +_plotly_geo = optional_imports.get_module("_plotly_geo") def _create_us_counties_df(st_to_state_name_dict, state_to_st_dict): @@ -28,34 +28,34 @@ def _create_us_counties_df(st_to_state_name_dict, state_to_st_dict): abs_plotly_geo_path = os.path.dirname(abs_dir_path) - abs_package_data_dir_path = os.path.join( - abs_plotly_geo_path, 'package_data') + abs_package_data_dir_path = os.path.join(abs_plotly_geo_path, "package_data") - shape_pre2010 = 'gz_2010_us_050_00_500k.shp' + shape_pre2010 = "gz_2010_us_050_00_500k.shp" shape_pre2010 = os.path.join(abs_package_data_dir_path, shape_pre2010) df_shape_pre2010 = gp.read_file(shape_pre2010) - df_shape_pre2010['FIPS'] = (df_shape_pre2010['STATE'] + - df_shape_pre2010['COUNTY']) - df_shape_pre2010['FIPS'] = pd.to_numeric(df_shape_pre2010['FIPS']) + df_shape_pre2010["FIPS"] = df_shape_pre2010["STATE"] + df_shape_pre2010["COUNTY"] + df_shape_pre2010["FIPS"] = pd.to_numeric(df_shape_pre2010["FIPS"]) - states_path = 'cb_2016_us_state_500k.shp' + states_path = "cb_2016_us_state_500k.shp" states_path = os.path.join(abs_package_data_dir_path, states_path) df_state = gp.read_file(states_path) - df_state = df_state[['STATEFP', 'NAME', 'geometry']] - df_state = df_state.rename(columns={'NAME': 'STATE_NAME'}) + df_state = df_state[["STATEFP", "NAME", "geometry"]] + df_state = df_state.rename(columns={"NAME": "STATE_NAME"}) - filenames = ['cb_2016_us_county_500k.dbf', - 'cb_2016_us_county_500k.shp', - 'cb_2016_us_county_500k.shx'] + filenames = [ + "cb_2016_us_county_500k.dbf", + "cb_2016_us_county_500k.shp", + "cb_2016_us_county_500k.shx", + ] for j in range(len(filenames)): filenames[j] = os.path.join(abs_package_data_dir_path, filenames[j]) - dbf = io.open(filenames[0], 'rb') - shp = io.open(filenames[1], 'rb') - shx = io.open(filenames[2], 'rb') + dbf = io.open(filenames[0], "rb") + shp = io.open(filenames[1], "rb") + shx = io.open(filenames[2], "rb") r = shapefile.Reader(shp=shp, shx=shx, dbf=dbf) @@ -67,185 +67,196 @@ def _create_us_counties_df(st_to_state_name_dict, state_to_st_dict): gdf = gp.GeoDataFrame(data=attributes, geometry=geometry) - gdf['FIPS'] = gdf['STATEFP'] + gdf['COUNTYFP'] - gdf['FIPS'] = pd.to_numeric(gdf['FIPS']) + gdf["FIPS"] = gdf["STATEFP"] + gdf["COUNTYFP"] + gdf["FIPS"] = pd.to_numeric(gdf["FIPS"]) # add missing counties f = 46113 singlerow = pd.DataFrame( [ - [st_to_state_name_dict['SD'], 'SD', - df_shape_pre2010[df_shape_pre2010['FIPS'] == f]['geometry'].iloc[0], - df_shape_pre2010[df_shape_pre2010['FIPS'] == f]['FIPS'].iloc[0], - '46', 'Shannon'] + [ + st_to_state_name_dict["SD"], + "SD", + df_shape_pre2010[df_shape_pre2010["FIPS"] == f]["geometry"].iloc[0], + df_shape_pre2010[df_shape_pre2010["FIPS"] == f]["FIPS"].iloc[0], + "46", + "Shannon", + ] ], - columns=['State', 'ST', 'geometry', 'FIPS', 'STATEFP', 'NAME'], - index=[max(gdf.index) + 1] + columns=["State", "ST", "geometry", "FIPS", "STATEFP", "NAME"], + index=[max(gdf.index) + 1], ) gdf = gdf.append(singlerow) f = 51515 singlerow = pd.DataFrame( [ - [st_to_state_name_dict['VA'], 'VA', - df_shape_pre2010[df_shape_pre2010['FIPS'] == f]['geometry'].iloc[0], - df_shape_pre2010[df_shape_pre2010['FIPS'] == f]['FIPS'].iloc[0], - '51', 'Bedford City'] + [ + st_to_state_name_dict["VA"], + "VA", + df_shape_pre2010[df_shape_pre2010["FIPS"] == f]["geometry"].iloc[0], + df_shape_pre2010[df_shape_pre2010["FIPS"] == f]["FIPS"].iloc[0], + "51", + "Bedford City", + ] ], - columns=['State', 'ST', 'geometry', 'FIPS', 'STATEFP', 'NAME'], - index=[max(gdf.index) + 1] + columns=["State", "ST", "geometry", "FIPS", "STATEFP", "NAME"], + index=[max(gdf.index) + 1], ) gdf = gdf.append(singlerow) f = 2270 singlerow = pd.DataFrame( [ - [st_to_state_name_dict['AK'], 'AK', - df_shape_pre2010[df_shape_pre2010['FIPS'] == f]['geometry'].iloc[0], - df_shape_pre2010[df_shape_pre2010['FIPS'] == f]['FIPS'].iloc[0], - '02', 'Wade Hampton'] + [ + st_to_state_name_dict["AK"], + "AK", + df_shape_pre2010[df_shape_pre2010["FIPS"] == f]["geometry"].iloc[0], + df_shape_pre2010[df_shape_pre2010["FIPS"] == f]["FIPS"].iloc[0], + "02", + "Wade Hampton", + ] ], - columns=['State', 'ST', 'geometry', 'FIPS', 'STATEFP', 'NAME'], - index=[max(gdf.index) + 1] + columns=["State", "ST", "geometry", "FIPS", "STATEFP", "NAME"], + index=[max(gdf.index) + 1], ) gdf = gdf.append(singlerow) - row_2198 = gdf[gdf['FIPS'] == 2198] + row_2198 = gdf[gdf["FIPS"] == 2198] row_2198.index = [max(gdf.index) + 1] - row_2198.loc[row_2198.index[0], 'FIPS'] = 2201 - row_2198.loc[row_2198.index[0], 'STATEFP'] = '02' + row_2198.loc[row_2198.index[0], "FIPS"] = 2201 + row_2198.loc[row_2198.index[0], "STATEFP"] = "02" gdf = gdf.append(row_2198) - row_2105 = gdf[gdf['FIPS'] == 2105] + row_2105 = gdf[gdf["FIPS"] == 2105] row_2105.index = [max(gdf.index) + 1] - row_2105.loc[row_2105.index[0], 'FIPS'] = 2232 - row_2105.loc[row_2105.index[0], 'STATEFP'] = '02' + row_2105.loc[row_2105.index[0], "FIPS"] = 2232 + row_2105.loc[row_2105.index[0], "STATEFP"] = "02" gdf = gdf.append(row_2105) - gdf = gdf.rename(columns={'NAME': 'COUNTY_NAME'}) + gdf = gdf.rename(columns={"NAME": "COUNTY_NAME"}) - gdf_reduced = gdf[['FIPS', 'STATEFP', 'COUNTY_NAME', 'geometry']] - gdf_statefp = gdf_reduced.merge(df_state[['STATEFP', 'STATE_NAME']], - on='STATEFP') + gdf_reduced = gdf[["FIPS", "STATEFP", "COUNTY_NAME", "geometry"]] + gdf_statefp = gdf_reduced.merge(df_state[["STATEFP", "STATE_NAME"]], on="STATEFP") ST = [] - for n in gdf_statefp['STATE_NAME']: + for n in gdf_statefp["STATE_NAME"]: ST.append(state_to_st_dict[n]) - gdf_statefp['ST'] = ST + gdf_statefp["ST"] = ST return gdf_statefp, df_state st_to_state_name_dict = { - 'AK': 'Alaska', - 'AL': 'Alabama', - 'AR': 'Arkansas', - 'AZ': 'Arizona', - 'CA': 'California', - 'CO': 'Colorado', - 'CT': 'Connecticut', - 'DC': 'District of Columbia', - 'DE': 'Delaware', - 'FL': 'Florida', - 'GA': 'Georgia', - 'HI': 'Hawaii', - 'IA': 'Iowa', - 'ID': 'Idaho', - 'IL': 'Illinois', - 'IN': 'Indiana', - 'KS': 'Kansas', - 'KY': 'Kentucky', - 'LA': 'Louisiana', - 'MA': 'Massachusetts', - 'MD': 'Maryland', - 'ME': 'Maine', - 'MI': 'Michigan', - 'MN': 'Minnesota', - 'MO': 'Missouri', - 'MS': 'Mississippi', - 'MT': 'Montana', - 'NC': 'North Carolina', - 'ND': 'North Dakota', - 'NE': 'Nebraska', - 'NH': 'New Hampshire', - 'NJ': 'New Jersey', - 'NM': 'New Mexico', - 'NV': 'Nevada', - 'NY': 'New York', - 'OH': 'Ohio', - 'OK': 'Oklahoma', - 'OR': 'Oregon', - 'PA': 'Pennsylvania', - 'RI': 'Rhode Island', - 'SC': 'South Carolina', - 'SD': 'South Dakota', - 'TN': 'Tennessee', - 'TX': 'Texas', - 'UT': 'Utah', - 'VA': 'Virginia', - 'VT': 'Vermont', - 'WA': 'Washington', - 'WI': 'Wisconsin', - 'WV': 'West Virginia', - 'WY': 'Wyoming' + "AK": "Alaska", + "AL": "Alabama", + "AR": "Arkansas", + "AZ": "Arizona", + "CA": "California", + "CO": "Colorado", + "CT": "Connecticut", + "DC": "District of Columbia", + "DE": "Delaware", + "FL": "Florida", + "GA": "Georgia", + "HI": "Hawaii", + "IA": "Iowa", + "ID": "Idaho", + "IL": "Illinois", + "IN": "Indiana", + "KS": "Kansas", + "KY": "Kentucky", + "LA": "Louisiana", + "MA": "Massachusetts", + "MD": "Maryland", + "ME": "Maine", + "MI": "Michigan", + "MN": "Minnesota", + "MO": "Missouri", + "MS": "Mississippi", + "MT": "Montana", + "NC": "North Carolina", + "ND": "North Dakota", + "NE": "Nebraska", + "NH": "New Hampshire", + "NJ": "New Jersey", + "NM": "New Mexico", + "NV": "Nevada", + "NY": "New York", + "OH": "Ohio", + "OK": "Oklahoma", + "OR": "Oregon", + "PA": "Pennsylvania", + "RI": "Rhode Island", + "SC": "South Carolina", + "SD": "South Dakota", + "TN": "Tennessee", + "TX": "Texas", + "UT": "Utah", + "VA": "Virginia", + "VT": "Vermont", + "WA": "Washington", + "WI": "Wisconsin", + "WV": "West Virginia", + "WY": "Wyoming", } state_to_st_dict = { - 'Alabama': 'AL', - 'Alaska': 'AK', - 'American Samoa': 'AS', - 'Arizona': 'AZ', - 'Arkansas': 'AR', - 'California': 'CA', - 'Colorado': 'CO', - 'Commonwealth of the Northern Mariana Islands': 'MP', - 'Connecticut': 'CT', - 'Delaware': 'DE', - 'District of Columbia': 'DC', - 'Florida': 'FL', - 'Georgia': 'GA', - 'Guam': 'GU', - 'Hawaii': 'HI', - 'Idaho': 'ID', - 'Illinois': 'IL', - 'Indiana': 'IN', - 'Iowa': 'IA', - 'Kansas': 'KS', - 'Kentucky': 'KY', - 'Louisiana': 'LA', - 'Maine': 'ME', - 'Maryland': 'MD', - 'Massachusetts': 'MA', - 'Michigan': 'MI', - 'Minnesota': 'MN', - 'Mississippi': 'MS', - 'Missouri': 'MO', - 'Montana': 'MT', - 'Nebraska': 'NE', - 'Nevada': 'NV', - 'New Hampshire': 'NH', - 'New Jersey': 'NJ', - 'New Mexico': 'NM', - 'New York': 'NY', - 'North Carolina': 'NC', - 'North Dakota': 'ND', - 'Ohio': 'OH', - 'Oklahoma': 'OK', - 'Oregon': 'OR', - 'Pennsylvania': 'PA', - 'Puerto Rico': '', - 'Rhode Island': 'RI', - 'South Carolina': 'SC', - 'South Dakota': 'SD', - 'Tennessee': 'TN', - 'Texas': 'TX', - 'United States Virgin Islands': 'VI', - 'Utah': 'UT', - 'Vermont': 'VT', - 'Virginia': 'VA', - 'Washington': 'WA', - 'West Virginia': 'WV', - 'Wisconsin': 'WI', - 'Wyoming': 'WY' + "Alabama": "AL", + "Alaska": "AK", + "American Samoa": "AS", + "Arizona": "AZ", + "Arkansas": "AR", + "California": "CA", + "Colorado": "CO", + "Commonwealth of the Northern Mariana Islands": "MP", + "Connecticut": "CT", + "Delaware": "DE", + "District of Columbia": "DC", + "Florida": "FL", + "Georgia": "GA", + "Guam": "GU", + "Hawaii": "HI", + "Idaho": "ID", + "Illinois": "IL", + "Indiana": "IN", + "Iowa": "IA", + "Kansas": "KS", + "Kentucky": "KY", + "Louisiana": "LA", + "Maine": "ME", + "Maryland": "MD", + "Massachusetts": "MA", + "Michigan": "MI", + "Minnesota": "MN", + "Mississippi": "MS", + "Missouri": "MO", + "Montana": "MT", + "Nebraska": "NE", + "Nevada": "NV", + "New Hampshire": "NH", + "New Jersey": "NJ", + "New Mexico": "NM", + "New York": "NY", + "North Carolina": "NC", + "North Dakota": "ND", + "Ohio": "OH", + "Oklahoma": "OK", + "Oregon": "OR", + "Pennsylvania": "PA", + "Puerto Rico": "", + "Rhode Island": "RI", + "South Carolina": "SC", + "South Dakota": "SD", + "Tennessee": "TN", + "Texas": "TX", + "United States Virgin Islands": "VI", + "Utah": "UT", + "Vermont": "VT", + "Virginia": "VA", + "Washington": "WA", + "West Virginia": "WV", + "Wisconsin": "WI", + "Wyoming": "WY", } USA_XRANGE = [-125.0, -65.0] @@ -253,10 +264,10 @@ def _create_us_counties_df(st_to_state_name_dict, state_to_st_dict): def _human_format(number): - units = ['', 'K', 'M', 'G', 'T', 'P'] + units = ["", "K", "M", "G", "T", "P"] k = 1000.0 magnitude = int(floor(log(number, k))) - return '%.2f%s' % (number / k**magnitude, units[magnitude]) + return "%.2f%s" % (number / k ** magnitude, units[magnitude]) def _intervals_as_labels(array_of_intervals, round_legend_values, exponent_format): @@ -265,19 +276,17 @@ def _intervals_as_labels(array_of_intervals, round_legend_values, exponent_forma Example: [-inf, 30] to '< 30' """ - infs = [float('-inf'), float('inf')] + infs = [float("-inf"), float("inf")] string_intervals = [] for interval in array_of_intervals: # round to 2nd decimal place if round_legend_values: rnd_interval = [ - (int(interval[i]) if interval[i] not in infs else - interval[i]) + (int(interval[i]) if interval[i] not in infs else interval[i]) for i in range(2) ] else: - rnd_interval = [round(interval[0], 2), - round(interval[1], 2)] + rnd_interval = [round(interval[0], 2), round(interval[1], 2)] num0 = rnd_interval[0] num1 = rnd_interval[1] @@ -292,37 +301,52 @@ def _intervals_as_labels(array_of_intervals, round_legend_values, exponent_forma if num1 not in infs: num1 = "{:,}".format(num1) - if num0 == float('-inf'): - as_str = '< {}'.format(num1) - elif num1 == float('inf'): - as_str = '> {}'.format(num0) + if num0 == float("-inf"): + as_str = "< {}".format(num1) + elif num1 == float("inf"): + as_str = "> {}".format(num0) else: - as_str = '{} - {}'.format(num0, num1) + as_str = "{} - {}".format(num0, num1) string_intervals.append(as_str) return string_intervals -def _calculations(df, fips, values, index, f, simplify_county, level, - x_centroids, y_centroids, centroid_text, x_traces, - y_traces, fips_polygon_map): +def _calculations( + df, + fips, + values, + index, + f, + simplify_county, + level, + x_centroids, + y_centroids, + centroid_text, + x_traces, + y_traces, + fips_polygon_map, +): # 0-pad FIPS code to ensure exactly 5 digits padded_f = str(f).zfill(5) - if fips_polygon_map[f].type == 'Polygon': - x = fips_polygon_map[f].simplify( - simplify_county - ).exterior.xy[0].tolist() - y = fips_polygon_map[f].simplify( - simplify_county - ).exterior.xy[1].tolist() + if fips_polygon_map[f].type == "Polygon": + x = fips_polygon_map[f].simplify(simplify_county).exterior.xy[0].tolist() + y = fips_polygon_map[f].simplify(simplify_county).exterior.xy[1].tolist() x_c, y_c = fips_polygon_map[f].centroid.xy - county_name_str = str(df[df['FIPS'] == f]['COUNTY_NAME'].iloc[0]) - state_name_str = str(df[df['FIPS'] == f]['STATE_NAME'].iloc[0]) + county_name_str = str(df[df["FIPS"] == f]["COUNTY_NAME"].iloc[0]) + state_name_str = str(df[df["FIPS"] == f]["STATE_NAME"].iloc[0]) t_c = ( - 'County: ' + county_name_str + '
' + - 'State: ' + state_name_str + '
' + - 'FIPS: ' + padded_f + '
Value: ' + str(values[index]) + "County: " + + county_name_str + + "
" + + "State: " + + state_name_str + + "
" + + "FIPS: " + + padded_f + + "
Value: " + + str(values[index]) ) x_centroids.append(x_c[0]) @@ -331,21 +355,32 @@ def _calculations(df, fips, values, index, f, simplify_county, level, x_traces[level] = x_traces[level] + x + [np.nan] y_traces[level] = y_traces[level] + y + [np.nan] - elif fips_polygon_map[f].type == 'MultiPolygon': - x = ([poly.simplify(simplify_county).exterior.xy[0].tolist() for - poly in fips_polygon_map[f]]) - y = ([poly.simplify(simplify_county).exterior.xy[1].tolist() for - poly in fips_polygon_map[f]]) + elif fips_polygon_map[f].type == "MultiPolygon": + x = [ + poly.simplify(simplify_county).exterior.xy[0].tolist() + for poly in fips_polygon_map[f] + ] + y = [ + poly.simplify(simplify_county).exterior.xy[1].tolist() + for poly in fips_polygon_map[f] + ] x_c = [poly.centroid.xy[0].tolist() for poly in fips_polygon_map[f]] y_c = [poly.centroid.xy[1].tolist() for poly in fips_polygon_map[f]] - county_name_str = str(df[df['FIPS'] == f]['COUNTY_NAME'].iloc[0]) - state_name_str = str(df[df['FIPS'] == f]['STATE_NAME'].iloc[0]) + county_name_str = str(df[df["FIPS"] == f]["COUNTY_NAME"].iloc[0]) + state_name_str = str(df[df["FIPS"] == f]["STATE_NAME"].iloc[0]) text = ( - 'County: ' + county_name_str + '
' + - 'State: ' + state_name_str + '
' + - 'FIPS: ' + padded_f + '
Value: ' + str(values[index]) + "County: " + + county_name_str + + "
" + + "State: " + + state_name_str + + "
" + + "FIPS: " + + padded_f + + "
Value: " + + str(values[index]) ) t_c = [text for poly in fips_polygon_map[f]] x_centroids = x_c + x_centroids @@ -358,13 +393,26 @@ def _calculations(df, fips, values, index, f, simplify_county, level, return x_traces, y_traces, x_centroids, y_centroids, centroid_text -def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None, - colorscale=None, order=None, simplify_county=0.02, - simplify_state=0.02, asp=None, show_hover=True, - show_state_data=True, state_outline=None, - county_outline=None, centroid_marker=None, - round_legend_values=False, exponent_format=False, - legend_title='', **layout_options): +def create_choropleth( + fips, + values, + scope=["usa"], + binning_endpoints=None, + colorscale=None, + order=None, + simplify_county=0.02, + simplify_state=0.02, + asp=None, + show_hover=True, + show_state_data=True, + state_outline=None, + county_outline=None, + centroid_marker=None, + round_legend_values=False, + exponent_format=False, + legend_title="", + **layout_options +): """ Returns figure for county choropleth. Uses data from package_data. @@ -563,7 +611,8 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None, """ # ensure optional modules imported if not _plotly_geo: - raise ValueError(""" + raise ValueError( + """ The create_choropleth figure factory requires the plotly-geo package. Install using pip with: @@ -572,7 +621,8 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None, Or, install using conda with $ conda install -c plotly plotly-geo -""") +""" + ) if not gp or not shapefile or not shapely: raise ImportError( @@ -595,33 +645,23 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None, "```" ) - df, df_state = _create_us_counties_df(st_to_state_name_dict, - state_to_st_dict) + df, df_state = _create_us_counties_df(st_to_state_name_dict, state_to_st_dict) - fips_polygon_map = dict( - zip( - df['FIPS'].tolist(), - df['geometry'].tolist() - ) - ) + fips_polygon_map = dict(zip(df["FIPS"].tolist(), df["geometry"].tolist())) if not state_outline: - state_outline = {'color': 'rgb(240, 240, 240)', - 'width': 1} + state_outline = {"color": "rgb(240, 240, 240)", "width": 1} if not county_outline: - county_outline = {'color': 'rgb(0, 0, 0)', - 'width': 0} + county_outline = {"color": "rgb(0, 0, 0)", "width": 0} if not centroid_marker: - centroid_marker = {'size': 3, 'color': 'white', 'opacity': 1} + centroid_marker = {"size": 3, "color": "white", "opacity": 1} # ensure centroid markers appear on selection - if 'opacity' not in centroid_marker: - centroid_marker.update({'opacity': 1}) + if "opacity" not in centroid_marker: + centroid_marker.update({"opacity": 1}) if len(fips) != len(values): - raise PlotlyError( - 'fips and values must be the same length' - ) + raise PlotlyError("fips and values must be the same length") # make fips, values into lists if isinstance(fips, pd.core.series.Series): @@ -634,8 +674,7 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None, if binning_endpoints: intervals = utils.endpts_to_intervals(binning_endpoints) - LEVELS = _intervals_as_labels(intervals, round_legend_values, - exponent_format) + LEVELS = _intervals_as_labels(intervals, round_legend_values, exponent_format) else: if not order: LEVELS = sorted(list(set(values))) @@ -648,26 +687,20 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None, LEVELS = order else: raise PlotlyError( - 'if you are using a custom order of unique values from ' - 'your color column, you must: have all the unique values ' - 'in your order and have no duplicate items' + "if you are using a custom order of unique values from " + "your color column, you must: have all the unique values " + "in your order and have no duplicate items" ) if not colorscale: colorscale = [] - viridis_colors = clrs.colorscale_to_colors( - clrs.PLOTLY_SCALES['Viridis'] - ) - viridis_colors = clrs.color_parser( - viridis_colors, clrs.hex_to_rgb - ) - viridis_colors = clrs.color_parser( - viridis_colors, clrs.label_rgb - ) + viridis_colors = clrs.colorscale_to_colors(clrs.PLOTLY_SCALES["Viridis"]) + viridis_colors = clrs.color_parser(viridis_colors, clrs.hex_to_rgb) + viridis_colors = clrs.color_parser(viridis_colors, clrs.label_rgb) viri_len = len(viridis_colors) + 1 - viri_intervals = utils.endpts_to_intervals( - list(np.linspace(0, 1, viri_len)) - )[1:-1] + viri_intervals = utils.endpts_to_intervals(list(np.linspace(0, 1, viri_len)))[ + 1:-1 + ] for L in np.linspace(0, 1, len(LEVELS)): for idx, inter in enumerate(viri_intervals): @@ -676,14 +709,12 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None, elif inter[0] < L <= inter[1]: break - intermed = ((L - viri_intervals[idx][0]) / - (viri_intervals[idx][1] - viri_intervals[idx][0])) + intermed = (L - viri_intervals[idx][0]) / ( + viri_intervals[idx][1] - viri_intervals[idx][0] + ) float_color = clrs.find_intermediate_color( - viridis_colors[idx], - viridis_colors[idx], - intermed, - colortype='rgb' + viridis_colors[idx], viridis_colors[idx], intermed, colortype="rgb" ) # make R,G,B into int values @@ -710,17 +741,20 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None, # scope if isinstance(scope, str): - raise PlotlyError( - "'scope' must be a list/tuple/sequence" - ) + raise PlotlyError("'scope' must be a list/tuple/sequence") scope_names = [] - extra_states = ['Alaska', 'Commonwealth of the Northern Mariana Islands', - 'Puerto Rico', 'Guam', 'United States Virgin Islands', - 'American Samoa'] + extra_states = [ + "Alaska", + "Commonwealth of the Northern Mariana Islands", + "Puerto Rico", + "Guam", + "United States Virgin Islands", + "American Samoa", + ] for state in scope: - if state.lower() == 'usa': - scope_names = df['STATE_NAME'].unique() + if state.lower() == "usa": + scope_names = df["STATE_NAME"].unique() scope_names = list(scope_names) for ex_st in extra_states: try: @@ -731,7 +765,7 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None, if state in st_to_state_name_dict.keys(): state = st_to_state_name_dict[state] scope_names.append(state) - df_state = df_state[df_state['STATE_NAME'].isin(scope_names)] + df_state = df_state[df_state["STATE_NAME"].isin(scope_names)] plot_data = [] x_centroids = [] @@ -744,11 +778,26 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None, try: fips_polygon_map[f].type - (x_traces, y_traces, x_centroids, - y_centroids, centroid_text) = _calculations( - df, fips, values, index, f, simplify_county, level, - x_centroids, y_centroids, centroid_text, x_traces, - y_traces, fips_polygon_map + ( + x_traces, + y_traces, + x_centroids, + y_centroids, + centroid_text, + ) = _calculations( + df, + fips, + values, + index, + f, + simplify_county, + level, + x_centroids, + y_centroids, + centroid_text, + x_traces, + y_traces, + fips_polygon_map, ) except KeyError: fips_not_in_shapefile.append(f) @@ -763,40 +812,57 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None, try: fips_polygon_map[f].type - (x_traces, y_traces, x_centroids, - y_centroids, centroid_text) = _calculations( - df, fips, values, index, f, simplify_county, level, - x_centroids, y_centroids, centroid_text, x_traces, - y_traces, fips_polygon_map + ( + x_traces, + y_traces, + x_centroids, + y_centroids, + centroid_text, + ) = _calculations( + df, + fips, + values, + index, + f, + simplify_county, + level, + x_centroids, + y_centroids, + centroid_text, + x_traces, + y_traces, + fips_polygon_map, ) except KeyError: fips_not_in_shapefile.append(f) if len(fips_not_in_shapefile) > 0: msg = ( - 'Unrecognized FIPS Values\n\nWhoops! It looks like you are ' - 'trying to pass at least one FIPS value that is not in ' - 'our shapefile of FIPS and data for the counties. Your ' - 'choropleth will still show up but these counties cannot ' - 'be shown.\nUnrecognized FIPS are: {}'.format( - fips_not_in_shapefile - ) + "Unrecognized FIPS Values\n\nWhoops! It looks like you are " + "trying to pass at least one FIPS value that is not in " + "our shapefile of FIPS and data for the counties. Your " + "choropleth will still show up but these counties cannot " + "be shown.\nUnrecognized FIPS are: {}".format(fips_not_in_shapefile) ) warnings.warn(msg) x_states = [] y_states = [] for index, row in df_state.iterrows(): - if df_state['geometry'][index].type == 'Polygon': + if df_state["geometry"][index].type == "Polygon": x = row.geometry.simplify(simplify_state).exterior.xy[0].tolist() y = row.geometry.simplify(simplify_state).exterior.xy[1].tolist() x_states = x_states + x y_states = y_states + y - elif df_state['geometry'][index].type == 'MultiPolygon': - x = ([poly.simplify(simplify_state).exterior.xy[0].tolist() for - poly in df_state['geometry'][index]]) - y = ([poly.simplify(simplify_state).exterior.xy[1].tolist() for - poly in df_state['geometry'][index]]) + elif df_state["geometry"][index].type == "MultiPolygon": + x = [ + poly.simplify(simplify_state).exterior.xy[0].tolist() + for poly in df_state["geometry"][index] + ] + y = [ + poly.simplify(simplify_state).exterior.xy[1].tolist() + for poly in df_state["geometry"][index] + ] for segment in range(len(x)): x_states = x_states + x[segment] y_states = y_states + y[segment] @@ -807,60 +873,60 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None, for lev in LEVELS: county_data = dict( - type='scatter', - mode='lines', + type="scatter", + mode="lines", x=x_traces[lev], y=y_traces[lev], line=county_outline, - fill='toself', + fill="toself", fillcolor=color_lookup[lev], name=lev, - hoverinfo='none', + hoverinfo="none", ) plot_data.append(county_data) if show_hover: hover_points = dict( - type='scatter', + type="scatter", showlegend=False, - legendgroup='centroids', + legendgroup="centroids", x=x_centroids, y=y_centroids, text=centroid_text, - name='US Counties', - mode='markers', - marker={'color': 'white', 'opacity': 0}, - hoverinfo='text' + name="US Counties", + mode="markers", + marker={"color": "white", "opacity": 0}, + hoverinfo="text", ) centroids_on_select = dict( selected=dict(marker=centroid_marker), - unselected=dict(marker=dict(opacity=0)) + unselected=dict(marker=dict(opacity=0)), ) hover_points.update(centroids_on_select) plot_data.append(hover_points) if show_state_data: state_data = dict( - type='scatter', - legendgroup='States', + type="scatter", + legendgroup="States", line=state_outline, x=x_states, y=y_states, - hoverinfo='text', + hoverinfo="text", showlegend=False, - mode='lines' + mode="lines", ) plot_data.append(state_data) DEFAULT_LAYOUT = dict( - hovermode='closest', + hovermode="closest", xaxis=dict( autorange=False, range=USA_XRANGE, showgrid=False, zeroline=False, fixedrange=True, - showticklabels=False + showticklabels=False, ), yaxis=dict( autorange=False, @@ -868,64 +934,58 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None, showgrid=False, zeroline=False, fixedrange=True, - showticklabels=False + showticklabels=False, ), margin=dict(t=40, b=20, r=20, l=20), width=900, height=450, - dragmode='select', - legend=dict( - traceorder='reversed', - xanchor='right', - yanchor='top', - x=1, - y=1 - ), - annotations=[] + dragmode="select", + legend=dict(traceorder="reversed", xanchor="right", yanchor="top", x=1, y=1), + annotations=[], ) fig = dict(data=plot_data, layout=DEFAULT_LAYOUT) - fig['layout'].update(layout_options) - fig['layout']['annotations'].append( + fig["layout"].update(layout_options) + fig["layout"]["annotations"].append( dict( x=1, y=1.05, - xref='paper', - yref='paper', - xanchor='right', + xref="paper", + yref="paper", + xanchor="right", showarrow=False, - text='' + legend_title + '' + text="" + legend_title + "", ) ) - if len(scope) == 1 and scope[0].lower() == 'usa': + if len(scope) == 1 and scope[0].lower() == "usa": xaxis_range_low = -125.0 xaxis_range_high = -55.0 yaxis_range_low = 25.0 yaxis_range_high = 49.0 else: - xaxis_range_low = float('inf') - xaxis_range_high = float('-inf') - yaxis_range_low = float('inf') - yaxis_range_high = float('-inf') - for trace in fig['data']: - if all(isinstance(n, Number) for n in trace['x']): - calc_x_min = min(trace['x'] or [float('inf')]) - calc_x_max = max(trace['x'] or [float('-inf')]) + xaxis_range_low = float("inf") + xaxis_range_high = float("-inf") + yaxis_range_low = float("inf") + yaxis_range_high = float("-inf") + for trace in fig["data"]: + if all(isinstance(n, Number) for n in trace["x"]): + calc_x_min = min(trace["x"] or [float("inf")]) + calc_x_max = max(trace["x"] or [float("-inf")]) if calc_x_min < xaxis_range_low: xaxis_range_low = calc_x_min if calc_x_max > xaxis_range_high: xaxis_range_high = calc_x_max - if all(isinstance(n, Number) for n in trace['y']): - calc_y_min = min(trace['y'] or [float('inf')]) - calc_y_max = max(trace['y'] or [float('-inf')]) + if all(isinstance(n, Number) for n in trace["y"]): + calc_y_min = min(trace["y"] or [float("inf")]) + calc_y_max = max(trace["y"] or [float("-inf")]) if calc_y_min < yaxis_range_low: yaxis_range_low = calc_y_min if calc_y_max > yaxis_range_high: yaxis_range_high = calc_y_max # camera zoom - fig['layout']['xaxis']['range'] = [xaxis_range_low, xaxis_range_high] - fig['layout']['yaxis']['range'] = [yaxis_range_low, yaxis_range_high] + fig["layout"]["xaxis"]["range"] = [xaxis_range_low, xaxis_range_high] + fig["layout"]["yaxis"]["range"] = [yaxis_range_low, yaxis_range_high] # aspect ratio if asp is None: @@ -934,21 +994,25 @@ def create_choropleth(fips, values, scope=['usa'], binning_endpoints=None, asp = usa_x_range / usa_y_range # based on your figure - width = float(fig['layout']['xaxis']['range'][1] - - fig['layout']['xaxis']['range'][0]) - height = float(fig['layout']['yaxis']['range'][1] - - fig['layout']['yaxis']['range'][0]) + width = float( + fig["layout"]["xaxis"]["range"][1] - fig["layout"]["xaxis"]["range"][0] + ) + height = float( + fig["layout"]["yaxis"]["range"][1] - fig["layout"]["yaxis"]["range"][0] + ) - center = (sum(fig['layout']['xaxis']['range']) / 2., - sum(fig['layout']['yaxis']['range']) / 2.) + center = ( + sum(fig["layout"]["xaxis"]["range"]) / 2.0, + sum(fig["layout"]["yaxis"]["range"]) / 2.0, + ) if height / width > (1 / asp): new_width = asp * height - fig['layout']['xaxis']['range'][0] = center[0] - new_width * 0.5 - fig['layout']['xaxis']['range'][1] = center[0] + new_width * 0.5 + fig["layout"]["xaxis"]["range"][0] = center[0] - new_width * 0.5 + fig["layout"]["xaxis"]["range"][1] = center[0] + new_width * 0.5 else: new_height = (1 / asp) * width - fig['layout']['yaxis']['range'][0] = center[1] - new_height * 0.5 - fig['layout']['yaxis']['range'][1] = center[1] + new_height * 0.5 + fig["layout"]["yaxis"]["range"][0] = center[1] - new_height * 0.5 + fig["layout"]["yaxis"]["range"][1] = center[1] + new_height * 0.5 return go.Figure(fig) diff --git a/packages/python/plotly/plotly/figure_factory/_dendrogram.py b/packages/python/plotly/plotly/figure_factory/_dendrogram.py index 4bafc976c1d..8ce371261f9 100644 --- a/packages/python/plotly/plotly/figure_factory/_dendrogram.py +++ b/packages/python/plotly/plotly/figure_factory/_dendrogram.py @@ -8,16 +8,22 @@ from plotly.graph_objs import graph_objs # Optional imports, may be None for users that only use our core functionality. -np = optional_imports.get_module('numpy') -scp = optional_imports.get_module('scipy') -sch = optional_imports.get_module('scipy.cluster.hierarchy') -scs = optional_imports.get_module('scipy.spatial') - - -def create_dendrogram(X, orientation="bottom", labels=None, - colorscale=None, distfun=None, - linkagefun=lambda x: sch.linkage(x, 'complete'), - hovertext=None, color_threshold=None): +np = optional_imports.get_module("numpy") +scp = optional_imports.get_module("scipy") +sch = optional_imports.get_module("scipy.cluster.hierarchy") +scs = optional_imports.get_module("scipy.spatial") + + +def create_dendrogram( + X, + orientation="bottom", + labels=None, + colorscale=None, + distfun=None, + linkagefun=lambda x: sch.linkage(x, "complete"), + hovertext=None, + color_threshold=None, +): """ BETA function that returns a dendrogram Plotly figure object. @@ -76,8 +82,10 @@ def create_dendrogram(X, orientation="bottom", labels=None, ``` """ if not scp or not scs or not sch: - raise ImportError("FigureFactory.create_dendrogram requires scipy, \ - scipy.spatial and scipy.hierarchy") + raise ImportError( + "FigureFactory.create_dendrogram requires scipy, \ + scipy.spatial and scipy.hierarchy" + ) s = X.shape if len(s) != 2: @@ -86,22 +94,38 @@ def create_dendrogram(X, orientation="bottom", labels=None, if distfun is None: distfun = scs.distance.pdist - dendrogram = _Dendrogram(X, orientation, labels, colorscale, - distfun=distfun, linkagefun=linkagefun, - hovertext=hovertext, color_threshold=color_threshold) + dendrogram = _Dendrogram( + X, + orientation, + labels, + colorscale, + distfun=distfun, + linkagefun=linkagefun, + hovertext=hovertext, + color_threshold=color_threshold, + ) - return graph_objs.Figure(data=dendrogram.data, - layout=dendrogram.layout) + return graph_objs.Figure(data=dendrogram.data, layout=dendrogram.layout) class _Dendrogram(object): """Refer to FigureFactory.create_dendrogram() for docstring.""" - def __init__(self, X, orientation='bottom', labels=None, colorscale=None, - width=np.inf, height=np.inf, xaxis='xaxis', yaxis='yaxis', - distfun=None, - linkagefun=lambda x: sch.linkage(x, 'complete'), - hovertext=None, color_threshold=None): + def __init__( + self, + X, + orientation="bottom", + labels=None, + colorscale=None, + width=np.inf, + height=np.inf, + xaxis="xaxis", + yaxis="yaxis", + distfun=None, + linkagefun=lambda x: sch.linkage(x, "complete"), + hovertext=None, + color_threshold=None, + ): self.orientation = orientation self.labels = labels self.xaxis = xaxis @@ -111,12 +135,12 @@ def __init__(self, X, orientation='bottom', labels=None, colorscale=None, self.sign = {self.xaxis: 1, self.yaxis: 1} self.layout = {self.xaxis: {}, self.yaxis: {}} - if self.orientation in ['left', 'bottom']: + if self.orientation in ["left", "bottom"]: self.sign[self.xaxis] = 1 else: self.sign[self.xaxis] = -1 - if self.orientation in ['right', 'bottom']: + if self.orientation in ["right", "bottom"]: self.sign[self.yaxis] = 1 else: self.sign[self.yaxis] = -1 @@ -124,12 +148,9 @@ def __init__(self, X, orientation='bottom', labels=None, colorscale=None, if distfun is None: distfun = scs.distance.pdist - (dd_traces, xvals, yvals, - ordered_labels, leaves) = self.get_dendrogram_traces(X, colorscale, - distfun, - linkagefun, - hovertext, - color_threshold) + (dd_traces, xvals, yvals, ordered_labels, leaves) = self.get_dendrogram_traces( + X, colorscale, distfun, linkagefun, hovertext, color_threshold + ) self.labels = ordered_labels self.leaves = leaves @@ -149,9 +170,9 @@ def __init__(self, X, orientation='bottom', labels=None, colorscale=None, # accidentally take it as leaves. l_border = int(min(self.zero_vals)) r_border = int(max(self.zero_vals)) - correct_leaves_pos = range(l_border, - r_border + 1, - int((r_border - l_border) / len(yvals))) + correct_leaves_pos = range( + l_border, r_border + 1, int((r_border - l_border) / len(yvals)) + ) # Regenerating the leaves pos from the self.zero_vals with equally intervals. self.zero_vals = [v for v in correct_leaves_pos] @@ -170,26 +191,29 @@ def get_color_dict(self, colorscale): # These are the color codes returned for dendrograms # We're replacing them with nicer colors - d = {'r': 'red', - 'g': 'green', - 'b': 'blue', - 'c': 'cyan', - 'm': 'magenta', - 'y': 'yellow', - 'k': 'black', - 'w': 'white'} + d = { + "r": "red", + "g": "green", + "b": "blue", + "c": "cyan", + "m": "magenta", + "y": "yellow", + "k": "black", + "w": "white", + } default_colors = OrderedDict(sorted(d.items(), key=lambda t: t[0])) if colorscale is None: colorscale = [ - 'rgb(0,116,217)', # blue - 'rgb(35,205,205)', # cyan - 'rgb(61,153,112)', # green - 'rgb(40,35,35)', # black - 'rgb(133,20,75)', # magenta - 'rgb(255,65,54)', # red - 'rgb(255,255,255)', # white - 'rgb(255,220,0)'] # yellow + "rgb(0,116,217)", # blue + "rgb(35,205,205)", # cyan + "rgb(61,153,112)", # green + "rgb(40,35,35)", # black + "rgb(133,20,75)", # magenta + "rgb(255,65,54)", # red + "rgb(255,255,255)", # white + "rgb(255,220,0)", + ] # yellow for i in range(len(default_colors.keys())): k = list(default_colors.keys())[i] # PY3 won't index keys @@ -207,26 +231,27 @@ def set_axis_layout(self, axis_key): """ axis_defaults = { - 'type': 'linear', - 'ticks': 'outside', - 'mirror': 'allticks', - 'rangemode': 'tozero', - 'showticklabels': True, - 'zeroline': False, - 'showgrid': False, - 'showline': True, - } + "type": "linear", + "ticks": "outside", + "mirror": "allticks", + "rangemode": "tozero", + "showticklabels": True, + "zeroline": False, + "showgrid": False, + "showline": True, + } if len(self.labels) != 0: axis_key_labels = self.xaxis - if self.orientation in ['left', 'right']: + if self.orientation in ["left", "right"]: axis_key_labels = self.yaxis if axis_key_labels not in self.layout: self.layout[axis_key_labels] = {} - self.layout[axis_key_labels]['tickvals'] = \ - [zv*self.sign[axis_key] for zv in self.zero_vals] - self.layout[axis_key_labels]['ticktext'] = self.labels - self.layout[axis_key_labels]['tickmode'] = 'array' + self.layout[axis_key_labels]["tickvals"] = [ + zv * self.sign[axis_key] for zv in self.zero_vals + ] + self.layout[axis_key_labels]["ticktext"] = self.labels + self.layout[axis_key_labels]["tickmode"] = "array" self.layout[axis_key].update(axis_defaults) @@ -237,20 +262,24 @@ def set_figure_layout(self, width, height): Sets and returns default layout object for dendrogram figure. """ - self.layout.update({ - 'showlegend': False, - 'autosize': False, - 'hovermode': 'closest', - 'width': width, - 'height': height - }) + self.layout.update( + { + "showlegend": False, + "autosize": False, + "hovermode": "closest", + "width": width, + "height": height, + } + ) self.set_axis_layout(self.xaxis) self.set_axis_layout(self.yaxis) return self.layout - def get_dendrogram_traces(self, X, colorscale, distfun, linkagefun, hovertext, color_threshold): + def get_dendrogram_traces( + self, X, colorscale, distfun, linkagefun, hovertext, color_threshold + ): """ Calculates all the elements needed for plotting a dendrogram. @@ -274,14 +303,18 @@ def get_dendrogram_traces(self, X, colorscale, distfun, linkagefun, hovertext, c """ d = distfun(X) Z = linkagefun(d) - P = sch.dendrogram(Z, orientation=self.orientation, - labels=self.labels, no_plot=True, - color_threshold=color_threshold) - - icoord = scp.array(P['icoord']) - dcoord = scp.array(P['dcoord']) - ordered_labels = scp.array(P['ivl']) - color_list = scp.array(P['color_list']) + P = sch.dendrogram( + Z, + orientation=self.orientation, + labels=self.labels, + no_plot=True, + color_threshold=color_threshold, + ) + + icoord = scp.array(P["icoord"]) + dcoord = scp.array(P["dcoord"]) + ordered_labels = scp.array(P["ivl"]) + color_list = scp.array(P["color_list"]) colors = self.get_color_dict(colorscale) trace_list = [] @@ -289,12 +322,12 @@ def get_dendrogram_traces(self, X, colorscale, distfun, linkagefun, hovertext, c for i in range(len(icoord)): # xs and ys are arrays of 4 points that make up the '∩' shapes # of the dendrogram tree - if self.orientation in ['top', 'bottom']: + if self.orientation in ["top", "bottom"]: xs = icoord[i] else: xs = dcoord[i] - if self.orientation in ['top', 'bottom']: + if self.orientation in ["top", "bottom"]: ys = dcoord[i] else: ys = icoord[i] @@ -303,28 +336,28 @@ def get_dendrogram_traces(self, X, colorscale, distfun, linkagefun, hovertext, c if hovertext: hovertext_label = hovertext[i] trace = dict( - type='scatter', + type="scatter", x=np.multiply(self.sign[self.xaxis], xs), y=np.multiply(self.sign[self.yaxis], ys), - mode='lines', + mode="lines", marker=dict(color=colors[color_key]), text=hovertext_label, - hoverinfo='text' + hoverinfo="text", ) try: x_index = int(self.xaxis[-1]) except ValueError: - x_index = '' + x_index = "" try: y_index = int(self.yaxis[-1]) except ValueError: - y_index = '' + y_index = "" - trace['xaxis'] = 'x' + x_index - trace['yaxis'] = 'y' + y_index + trace["xaxis"] = "x" + x_index + trace["yaxis"] = "y" + y_index trace_list.append(trace) - return trace_list, icoord, dcoord, ordered_labels, P['leaves'] + return trace_list, icoord, dcoord, ordered_labels, P["leaves"] diff --git a/packages/python/plotly/plotly/figure_factory/_distplot.py b/packages/python/plotly/plotly/figure_factory/_distplot.py index 0d88847eeb4..dd7d3adb1d9 100644 --- a/packages/python/plotly/plotly/figure_factory/_distplot.py +++ b/packages/python/plotly/plotly/figure_factory/_distplot.py @@ -5,14 +5,14 @@ from plotly.graph_objs import graph_objs # Optional imports, may be None for users that only use our core functionality. -np = optional_imports.get_module('numpy') -pd = optional_imports.get_module('pandas') -scipy = optional_imports.get_module('scipy') -scipy_stats = optional_imports.get_module('scipy.stats') +np = optional_imports.get_module("numpy") +pd = optional_imports.get_module("pandas") +scipy = optional_imports.get_module("scipy") +scipy_stats = optional_imports.get_module("scipy.stats") -DEFAULT_HISTNORM = 'probability density' -ALTERNATIVE_HISTNORM = 'probability' +DEFAULT_HISTNORM = "probability density" +ALTERNATIVE_HISTNORM = "probability" def validate_distplot(hist_data, curve_type): @@ -30,25 +30,37 @@ def validate_distplot(hist_data, curve_type): hist_data_types += (pd.core.series.Series,) if not isinstance(hist_data[0], hist_data_types): - raise exceptions.PlotlyError("Oops, this function was written " - "to handle multiple datasets, if " - "you want to plot just one, make " - "sure your hist_data variable is " - "still a list of lists, i.e. x = " - "[1, 2, 3] -> x = [[1, 2, 3]]") - - curve_opts = ('kde', 'normal') + raise exceptions.PlotlyError( + "Oops, this function was written " + "to handle multiple datasets, if " + "you want to plot just one, make " + "sure your hist_data variable is " + "still a list of lists, i.e. x = " + "[1, 2, 3] -> x = [[1, 2, 3]]" + ) + + curve_opts = ("kde", "normal") if curve_type not in curve_opts: - raise exceptions.PlotlyError("curve_type must be defined as " - "'kde' or 'normal'") + raise exceptions.PlotlyError( + "curve_type must be defined as " "'kde' or 'normal'" + ) if not scipy: raise ImportError("FigureFactory.create_distplot requires scipy") -def create_distplot(hist_data, group_labels, bin_size=1., curve_type='kde', - colors=None, rug_text=None, histnorm=DEFAULT_HISTNORM, - show_hist=True, show_curve=True, show_rug=True): +def create_distplot( + hist_data, + group_labels, + bin_size=1.0, + curve_type="kde", + colors=None, + rug_text=None, + histnorm=DEFAULT_HISTNORM, + show_hist=True, + show_curve=True, + show_rug=True, +): """ BETA function that creates a distplot similar to seaborn.distplot @@ -176,25 +188,53 @@ def create_distplot(hist_data, group_labels, bin_size=1., curve_type='kde', bin_size = [bin_size] * len(hist_data) hist = _Distplot( - hist_data, histnorm, group_labels, bin_size, - curve_type, colors, rug_text, - show_hist, show_curve).make_hist() - - if curve_type == 'normal': + hist_data, + histnorm, + group_labels, + bin_size, + curve_type, + colors, + rug_text, + show_hist, + show_curve, + ).make_hist() + + if curve_type == "normal": curve = _Distplot( - hist_data, histnorm, group_labels, bin_size, - curve_type, colors, rug_text, - show_hist, show_curve).make_normal() + hist_data, + histnorm, + group_labels, + bin_size, + curve_type, + colors, + rug_text, + show_hist, + show_curve, + ).make_normal() else: curve = _Distplot( - hist_data, histnorm, group_labels, bin_size, - curve_type, colors, rug_text, - show_hist, show_curve).make_kde() + hist_data, + histnorm, + group_labels, + bin_size, + curve_type, + colors, + rug_text, + show_hist, + show_curve, + ).make_kde() rug = _Distplot( - hist_data, histnorm, group_labels, bin_size, - curve_type, colors, rug_text, - show_hist, show_curve).make_rug() + hist_data, + histnorm, + group_labels, + bin_size, + curve_type, + colors, + rug_text, + show_hist, + show_curve, + ).make_rug() data = [] if show_hist: @@ -204,30 +244,21 @@ def create_distplot(hist_data, group_labels, bin_size=1., curve_type='kde', if show_rug: data.append(rug) layout = graph_objs.Layout( - barmode='overlay', - hovermode='closest', - legend=dict(traceorder='reversed'), - xaxis1=dict(domain=[0.0, 1.0], - anchor='y2', - zeroline=False), - yaxis1=dict(domain=[0.35, 1], - anchor='free', - position=0.0), - yaxis2=dict(domain=[0, 0.25], - anchor='x1', - dtick=1, - showticklabels=False)) + barmode="overlay", + hovermode="closest", + legend=dict(traceorder="reversed"), + xaxis1=dict(domain=[0.0, 1.0], anchor="y2", zeroline=False), + yaxis1=dict(domain=[0.35, 1], anchor="free", position=0.0), + yaxis2=dict(domain=[0, 0.25], anchor="x1", dtick=1, showticklabels=False), + ) else: layout = graph_objs.Layout( - barmode='overlay', - hovermode='closest', - legend=dict(traceorder='reversed'), - xaxis1=dict(domain=[0.0, 1.0], - anchor='y2', - zeroline=False), - yaxis1=dict(domain=[0., 1], - anchor='free', - position=0.0)) + barmode="overlay", + hovermode="closest", + legend=dict(traceorder="reversed"), + xaxis1=dict(domain=[0.0, 1.0], anchor="y2", zeroline=False), + yaxis1=dict(domain=[0.0, 1], anchor="free", position=0.0), + ) data = sum(data, []) return graph_objs.Figure(data=data, layout=layout) @@ -237,9 +268,19 @@ class _Distplot(object): """ Refer to TraceFactory.create_distplot() for docstring """ - def __init__(self, hist_data, histnorm, group_labels, - bin_size, curve_type, colors, - rug_text, show_hist, show_curve): + + def __init__( + self, + hist_data, + histnorm, + group_labels, + bin_size, + curve_type, + colors, + rug_text, + show_hist, + show_curve, + ): self.hist_data = hist_data self.histnorm = histnorm self.group_labels = group_labels @@ -258,17 +299,23 @@ def __init__(self, hist_data, histnorm, group_labels, self.colors = colors else: self.colors = [ - "rgb(31, 119, 180)", "rgb(255, 127, 14)", - "rgb(44, 160, 44)", "rgb(214, 39, 40)", - "rgb(148, 103, 189)", "rgb(140, 86, 75)", - "rgb(227, 119, 194)", "rgb(127, 127, 127)", - "rgb(188, 189, 34)", "rgb(23, 190, 207)"] + "rgb(31, 119, 180)", + "rgb(255, 127, 14)", + "rgb(44, 160, 44)", + "rgb(214, 39, 40)", + "rgb(148, 103, 189)", + "rgb(140, 86, 75)", + "rgb(227, 119, 194)", + "rgb(127, 127, 127)", + "rgb(188, 189, 34)", + "rgb(23, 190, 207)", + ] self.curve_x = [None] * self.trace_number self.curve_y = [None] * self.trace_number for trace in self.hist_data: - self.start.append(min(trace) * 1.) - self.end.append(max(trace) * 1.) + self.start.append(min(trace) * 1.0) + self.end.append(max(trace) * 1.0) def make_hist(self): """ @@ -279,19 +326,23 @@ def make_hist(self): hist = [None] * self.trace_number for index in range(self.trace_number): - hist[index] = dict(type='histogram', - x=self.hist_data[index], - xaxis='x1', - yaxis='y1', - histnorm=self.histnorm, - name=self.group_labels[index], - legendgroup=self.group_labels[index], - marker=dict(color=self.colors[index % len(self.colors)]), - autobinx=False, - xbins=dict(start=self.start[index], - end=self.end[index], - size=self.bin_size[index]), - opacity=.7) + hist[index] = dict( + type="histogram", + x=self.hist_data[index], + xaxis="x1", + yaxis="y1", + histnorm=self.histnorm, + name=self.group_labels[index], + legendgroup=self.group_labels[index], + marker=dict(color=self.colors[index % len(self.colors)]), + autobinx=False, + xbins=dict( + start=self.start[index], + end=self.end[index], + size=self.bin_size[index], + ), + opacity=0.7, + ) return hist def make_kde(self): @@ -304,27 +355,30 @@ def make_kde(self): """ curve = [None] * self.trace_number for index in range(self.trace_number): - self.curve_x[index] = [self.start[index] + - x * (self.end[index] - self.start[index]) - / 500 for x in range(500)] - self.curve_y[index] = (scipy_stats.gaussian_kde - (self.hist_data[index]) - (self.curve_x[index])) + self.curve_x[index] = [ + self.start[index] + x * (self.end[index] - self.start[index]) / 500 + for x in range(500) + ] + self.curve_y[index] = scipy_stats.gaussian_kde(self.hist_data[index])( + self.curve_x[index] + ) if self.histnorm == ALTERNATIVE_HISTNORM: self.curve_y[index] *= self.bin_size[index] for index in range(self.trace_number): - curve[index] = dict(type='scatter', - x=self.curve_x[index], - y=self.curve_y[index], - xaxis='x1', - yaxis='y1', - mode='lines', - name=self.group_labels[index], - legendgroup=self.group_labels[index], - showlegend=False if self.show_hist else True, - marker=dict(color=self.colors[index % len(self.colors)])) + curve[index] = dict( + type="scatter", + x=self.curve_x[index], + y=self.curve_y[index], + xaxis="x1", + yaxis="y1", + mode="lines", + name=self.group_labels[index], + legendgroup=self.group_labels[index], + showlegend=False if self.show_hist else True, + marker=dict(color=self.colors[index % len(self.colors)]), + ) return curve def make_normal(self): @@ -340,28 +394,31 @@ def make_normal(self): sd = [None] * self.trace_number for index in range(self.trace_number): - mean[index], sd[index] = (scipy_stats.norm.fit - (self.hist_data[index])) - self.curve_x[index] = [self.start[index] + - x * (self.end[index] - self.start[index]) - / 500 for x in range(500)] + mean[index], sd[index] = scipy_stats.norm.fit(self.hist_data[index]) + self.curve_x[index] = [ + self.start[index] + x * (self.end[index] - self.start[index]) / 500 + for x in range(500) + ] self.curve_y[index] = scipy_stats.norm.pdf( - self.curve_x[index], loc=mean[index], scale=sd[index]) + self.curve_x[index], loc=mean[index], scale=sd[index] + ) if self.histnorm == ALTERNATIVE_HISTNORM: self.curve_y[index] *= self.bin_size[index] for index in range(self.trace_number): - curve[index] = dict(type='scatter', - x=self.curve_x[index], - y=self.curve_y[index], - xaxis='x1', - yaxis='y1', - mode='lines', - name=self.group_labels[index], - legendgroup=self.group_labels[index], - showlegend=False if self.show_hist else True, - marker=dict(color=self.colors[index % len(self.colors)])) + curve[index] = dict( + type="scatter", + x=self.curve_x[index], + y=self.curve_y[index], + xaxis="x1", + yaxis="y1", + mode="lines", + name=self.group_labels[index], + legendgroup=self.group_labels[index], + showlegend=False if self.show_hist else True, + marker=dict(color=self.colors[index % len(self.colors)]), + ) return curve def make_rug(self): @@ -373,18 +430,19 @@ def make_rug(self): rug = [None] * self.trace_number for index in range(self.trace_number): - rug[index] = dict(type='scatter', - x=self.hist_data[index], - y=([self.group_labels[index]] * - len(self.hist_data[index])), - xaxis='x1', - yaxis='y2', - mode='markers', - name=self.group_labels[index], - legendgroup=self.group_labels[index], - showlegend=(False if self.show_hist or - self.show_curve else True), - text=self.rug_text[index], - marker=dict(color=self.colors[index % len(self.colors)], - symbol='line-ns-open')) + rug[index] = dict( + type="scatter", + x=self.hist_data[index], + y=([self.group_labels[index]] * len(self.hist_data[index])), + xaxis="x1", + yaxis="y2", + mode="markers", + name=self.group_labels[index], + legendgroup=self.group_labels[index], + showlegend=(False if self.show_hist or self.show_curve else True), + text=self.rug_text[index], + marker=dict( + color=self.colors[index % len(self.colors)], symbol="line-ns-open" + ), + ) return rug diff --git a/packages/python/plotly/plotly/figure_factory/_facet_grid.py b/packages/python/plotly/plotly/figure_factory/_facet_grid.py index ea4b8c4f745..cc129468b1a 100644 --- a/packages/python/plotly/plotly/figure_factory/_facet_grid.py +++ b/packages/python/plotly/plotly/figure_factory/_facet_grid.py @@ -8,15 +8,15 @@ import math from numbers import Number -pd = optional_imports.get_module('pandas') +pd = optional_imports.get_module("pandas") -TICK_COLOR = '#969696' -AXIS_TITLE_COLOR = '#0f0f0f' +TICK_COLOR = "#969696" +AXIS_TITLE_COLOR = "#0f0f0f" AXIS_TITLE_SIZE = 12 -GRID_COLOR = '#ffffff' -LEGEND_COLOR = '#efefef' -PLOT_BGCOLOR = '#ededed' -ANNOT_RECT_COLOR = '#d0d0d0' +GRID_COLOR = "#ffffff" +LEGEND_COLOR = "#efefef" +PLOT_BGCOLOR = "#ededed" +ANNOT_RECT_COLOR = "#d0d0d0" LEGEND_BORDER_WIDTH = 1 LEGEND_ANNOT_X = 1.05 LEGEND_ANNOT_Y = 0.5 @@ -24,7 +24,7 @@ THRES_FOR_FLIPPED_FACET_TITLES = 10 GRID_WIDTH = 1 -VALID_TRACE_TYPES = ['scatter', 'scattergl', 'histogram', 'bar', 'box'] +VALID_TRACE_TYPES = ["scatter", "scattergl", "histogram", "bar", "box"] CUSTOM_LABEL_ERROR = ( "If you are using a dictionary for custom labels for the facet row/col, " @@ -45,7 +45,7 @@ def _return_label(original_label, facet_labels, facet_var): if isinstance(facet_labels, dict): label = facet_labels[original_label] elif isinstance(facet_labels, str): - label = '{}: {}'.format(facet_var, original_label) + label = "{}: {}".format(facet_var, original_label) else: label = original_label return label @@ -54,46 +54,44 @@ def _return_label(original_label, facet_labels, facet_var): def _legend_annotation(color_name): legend_title = dict( textangle=0, - xanchor='left', - yanchor='middle', + xanchor="left", + yanchor="middle", x=LEGEND_ANNOT_X, y=1.03, showarrow=False, - xref='paper', - yref='paper', - text='factor({})'.format(color_name), - font=dict( - size=13, - color='#000000' - ) + xref="paper", + yref="paper", + text="factor({})".format(color_name), + font=dict(size=13, color="#000000"), ) return legend_title -def _annotation_dict(text, lane, num_of_lanes, SUBPLOT_SPACING, row_col='col', - flipped=True): +def _annotation_dict( + text, lane, num_of_lanes, SUBPLOT_SPACING, row_col="col", flipped=True +): l = (1 - (num_of_lanes - 1) * SUBPLOT_SPACING) / (num_of_lanes) if not flipped: - xanchor = 'center' - yanchor = 'middle' - if row_col == 'col': + xanchor = "center" + yanchor = "middle" + if row_col == "col": x = (lane - 1) * (l + SUBPLOT_SPACING) + 0.5 * l y = 1.03 textangle = 0 - elif row_col == 'row': + elif row_col == "row": y = (lane - 1) * (l + SUBPLOT_SPACING) + 0.5 * l x = 1.03 textangle = 90 else: - if row_col == 'col': - xanchor = 'center' - yanchor = 'bottom' + if row_col == "col": + xanchor = "center" + yanchor = "bottom" x = (lane - 1) * (l + SUBPLOT_SPACING) + 0.5 * l y = 1.0 textangle = 270 - elif row_col == 'row': - xanchor = 'left' - yanchor = 'middle' + elif row_col == "row": + xanchor = "left" + yanchor = "middle" y = (lane - 1) * (l + SUBPLOT_SPACING) + 0.5 * l x = 1.0 textangle = 0 @@ -105,98 +103,116 @@ def _annotation_dict(text, lane, num_of_lanes, SUBPLOT_SPACING, row_col='col', x=x, y=y, showarrow=False, - xref='paper', - yref='paper', + xref="paper", + yref="paper", text=str(text), - font=dict( - size=13, - color=AXIS_TITLE_COLOR - ) + font=dict(size=13, color=AXIS_TITLE_COLOR), ) return annotation_dict def _axis_title_annotation(text, x_or_y_axis): - if x_or_y_axis == 'x': + if x_or_y_axis == "x": x_pos = 0.5 y_pos = -0.1 textangle = 0 - elif x_or_y_axis == 'y': + elif x_or_y_axis == "y": x_pos = -0.1 y_pos = 0.5 textangle = 270 if not text: - text = '' - - annot = {'font': {'color': '#000000', 'size': AXIS_TITLE_SIZE}, - 'showarrow': False, - 'text': text, - 'textangle': textangle, - 'x': x_pos, - 'xanchor': 'center', - 'xref': 'paper', - 'y': y_pos, - 'yanchor': 'middle', - 'yref': 'paper'} + text = "" + + annot = { + "font": {"color": "#000000", "size": AXIS_TITLE_SIZE}, + "showarrow": False, + "text": text, + "textangle": textangle, + "x": x_pos, + "xanchor": "center", + "xref": "paper", + "y": y_pos, + "yanchor": "middle", + "yref": "paper", + } return annot -def _add_shapes_to_fig(fig, annot_rect_color, flipped_rows=False, - flipped_cols=False): +def _add_shapes_to_fig(fig, annot_rect_color, flipped_rows=False, flipped_cols=False): shapes_list = [] - for key in fig['layout'].to_plotly_json().keys(): - if 'axis' in key and fig['layout'][key]['domain'] != [0.0, 1.0]: + for key in fig["layout"].to_plotly_json().keys(): + if "axis" in key and fig["layout"][key]["domain"] != [0.0, 1.0]: shape = { - 'fillcolor': annot_rect_color, - 'layer': 'below', - 'line': {'color': annot_rect_color, 'width': 1}, - 'type': 'rect', - 'xref': 'paper', - 'yref': 'paper' + "fillcolor": annot_rect_color, + "layer": "below", + "line": {"color": annot_rect_color, "width": 1}, + "type": "rect", + "xref": "paper", + "yref": "paper", } - if 'xaxis' in key: - shape['x0'] = fig['layout'][key]['domain'][0] - shape['x1'] = fig['layout'][key]['domain'][1] - shape['y0'] = 1.005 - shape['y1'] = 1.05 + if "xaxis" in key: + shape["x0"] = fig["layout"][key]["domain"][0] + shape["x1"] = fig["layout"][key]["domain"][1] + shape["y0"] = 1.005 + shape["y1"] = 1.05 if flipped_cols: - shape['y1'] += 0.5 + shape["y1"] += 0.5 shapes_list.append(shape) - elif 'yaxis' in key: - shape['x0'] = 1.005 - shape['x1'] = 1.05 - shape['y0'] = fig['layout'][key]['domain'][0] - shape['y1'] = fig['layout'][key]['domain'][1] + elif "yaxis" in key: + shape["x0"] = 1.005 + shape["x1"] = 1.05 + shape["y0"] = fig["layout"][key]["domain"][0] + shape["y1"] = fig["layout"][key]["domain"][1] if flipped_rows: - shape['x1'] += 1 + shape["x1"] += 1 shapes_list.append(shape) - fig['layout']['shapes'] = shapes_list + fig["layout"]["shapes"] = shapes_list def _make_trace_for_scatter(trace, trace_type, color, **kwargs_marker): - if trace_type in ['scatter', 'scattergl']: - trace['mode'] = 'markers' - trace['marker'] = dict(color=color, **kwargs_marker) + if trace_type in ["scatter", "scattergl"]: + trace["mode"] = "markers" + trace["marker"] = dict(color=color, **kwargs_marker) return trace -def _facet_grid_color_categorical(df, x, y, facet_row, facet_col, color_name, - colormap, num_of_rows, num_of_cols, - facet_row_labels, facet_col_labels, - trace_type, flipped_rows, flipped_cols, - show_boxes, SUBPLOT_SPACING, marker_color, - kwargs_trace, kwargs_marker): - - fig = make_subplots(rows=num_of_rows, cols=num_of_cols, - shared_xaxes=True, shared_yaxes=True, - horizontal_spacing=SUBPLOT_SPACING, - vertical_spacing=SUBPLOT_SPACING, print_grid=False) +def _facet_grid_color_categorical( + df, + x, + y, + facet_row, + facet_col, + color_name, + colormap, + num_of_rows, + num_of_cols, + facet_row_labels, + facet_col_labels, + trace_type, + flipped_rows, + flipped_cols, + show_boxes, + SUBPLOT_SPACING, + marker_color, + kwargs_trace, + kwargs_marker, +): + + fig = make_subplots( + rows=num_of_rows, + cols=num_of_cols, + shared_xaxes=True, + shared_yaxes=True, + horizontal_spacing=SUBPLOT_SPACING, + vertical_spacing=SUBPLOT_SPACING, + print_grid=False, + ) annotations = [] if not facet_row and not facet_col: @@ -205,15 +221,13 @@ def _facet_grid_color_categorical(df, x, y, facet_row, facet_col, color_name, trace = dict( type=trace_type, name=group[0], - marker=dict( - color=colormap[group[0]], - ), + marker=dict(color=colormap[group[0]]), **kwargs_trace ) if x: - trace['x'] = group[1][x] + trace["x"] = group[1][x] if y: - trace['y'] = group[1][y] + trace["y"] = group[1][y] trace = _make_trace_for_scatter( trace, trace_type, colormap[group[0]], **kwargs_marker ) @@ -221,36 +235,32 @@ def _facet_grid_color_categorical(df, x, y, facet_row, facet_col, color_name, fig.append_trace(trace, 1, 1) elif (facet_row and not facet_col) or (not facet_row and facet_col): - groups_by_facet = list( - df.groupby(facet_row if facet_row else facet_col) - ) + groups_by_facet = list(df.groupby(facet_row if facet_row else facet_col)) for j, group in enumerate(groups_by_facet): for color_val in df[color_name].unique(): data_by_color = group[1][group[1][color_name] == color_val] trace = dict( type=trace_type, name=color_val, - marker=dict( - color=colormap[color_val], - ), + marker=dict(color=colormap[color_val]), **kwargs_trace ) if x: - trace['x'] = data_by_color[x] + trace["x"] = data_by_color[x] if y: - trace['y'] = data_by_color[y] + trace["y"] = data_by_color[y] trace = _make_trace_for_scatter( trace, trace_type, colormap[color_val], **kwargs_marker ) - fig.append_trace(trace, - j + 1 if facet_row else 1, - 1 if facet_row else j + 1) + fig.append_trace( + trace, j + 1 if facet_row else 1, 1 if facet_row else j + 1 + ) label = _return_label( group[0], facet_row_labels if facet_row else facet_col_labels, - facet_row if facet_row else facet_col + facet_row if facet_row else facet_col, ) annotations.append( @@ -259,14 +269,14 @@ def _facet_grid_color_categorical(df, x, y, facet_row, facet_col, color_name, num_of_rows - j if facet_row else j + 1, num_of_rows if facet_row else num_of_cols, SUBPLOT_SPACING, - 'row' if facet_row else 'col', - flipped_rows) + "row" if facet_row else "col", + flipped_rows, + ) ) elif facet_row and facet_col: groups_by_facets = list(df.groupby([facet_row, facet_col])) - tuple_to_facet_group = {item[0]: item[1] for - item in groups_by_facets} + tuple_to_facet_group = {item[0]: item[1] for item in groups_by_facets} row_values = df[facet_row].unique() col_values = df[facet_col].unique() @@ -276,8 +286,9 @@ def _facet_grid_color_categorical(df, x, y, facet_row, facet_col, color_name, try: group = tuple_to_facet_group[(x_val, y_val)] except KeyError: - group = pd.DataFrame([[None, None, None]], - columns=[x, y, color_name]) + group = pd.DataFrame( + [[None, None, None]], columns=[x, y, color_name] + ) for color_val in color_vals: if group.values.tolist() != [[None, None, None]]: @@ -286,9 +297,7 @@ def _facet_grid_color_categorical(df, x, y, facet_row, facet_col, color_name, trace = dict( type=trace_type, name=color_val, - marker=dict( - color=colormap[color_val], - ), + marker=dict(color=colormap[color_val]), **kwargs_trace ) new_x = group_filtered[x] @@ -297,9 +306,7 @@ def _facet_grid_color_categorical(df, x, y, facet_row, facet_col, color_name, trace = dict( type=trace_type, name=color_val, - marker=dict( - color=colormap[color_val], - ), + marker=dict(color=colormap[color_val]), showlegend=False, **kwargs_trace ) @@ -307,62 +314,86 @@ def _facet_grid_color_categorical(df, x, y, facet_row, facet_col, color_name, new_y = group[y] if x: - trace['x'] = new_x + trace["x"] = new_x if y: - trace['y'] = new_y + trace["y"] = new_y trace = _make_trace_for_scatter( - trace, trace_type, colormap[color_val], - **kwargs_marker + trace, trace_type, colormap[color_val], **kwargs_marker ) fig.append_trace(trace, row_count + 1, col_count + 1) if row_count == 0: - label = _return_label(col_values[col_count], - facet_col_labels, facet_col) + label = _return_label( + col_values[col_count], facet_col_labels, facet_col + ) annotations.append( - _annotation_dict(label, col_count + 1, num_of_cols, - SUBPLOT_SPACING, - row_col='col', flipped=flipped_cols) + _annotation_dict( + label, + col_count + 1, + num_of_cols, + SUBPLOT_SPACING, + row_col="col", + flipped=flipped_cols, ) - label = _return_label(row_values[row_count], - facet_row_labels, facet_row) + ) + label = _return_label(row_values[row_count], facet_row_labels, facet_row) annotations.append( - _annotation_dict(label, num_of_rows - row_count, num_of_rows, - SUBPLOT_SPACING, - row_col='row', flipped=flipped_rows) + _annotation_dict( + label, + num_of_rows - row_count, + num_of_rows, + SUBPLOT_SPACING, + row_col="row", + flipped=flipped_rows, + ) ) return fig, annotations -def _facet_grid_color_numerical(df, x, y, facet_row, facet_col, color_name, - colormap, num_of_rows, - num_of_cols, facet_row_labels, - facet_col_labels, trace_type, - flipped_rows, flipped_cols, show_boxes, - SUBPLOT_SPACING, marker_color, kwargs_trace, - kwargs_marker): - - fig = make_subplots(rows=num_of_rows, cols=num_of_cols, - shared_xaxes=True, shared_yaxes=True, - horizontal_spacing=SUBPLOT_SPACING, - vertical_spacing=SUBPLOT_SPACING, print_grid=False) +def _facet_grid_color_numerical( + df, + x, + y, + facet_row, + facet_col, + color_name, + colormap, + num_of_rows, + num_of_cols, + facet_row_labels, + facet_col_labels, + trace_type, + flipped_rows, + flipped_cols, + show_boxes, + SUBPLOT_SPACING, + marker_color, + kwargs_trace, + kwargs_marker, +): + + fig = make_subplots( + rows=num_of_rows, + cols=num_of_cols, + shared_xaxes=True, + shared_yaxes=True, + horizontal_spacing=SUBPLOT_SPACING, + vertical_spacing=SUBPLOT_SPACING, + print_grid=False, + ) annotations = [] if not facet_row and not facet_col: trace = dict( type=trace_type, - marker=dict( - color=df[color_name], - colorscale=colormap, - showscale=True, - ), + marker=dict(color=df[color_name], colorscale=colormap, showscale=True), **kwargs_trace ) if x: - trace['x'] = df[x] + trace["x"] = df[x] if y: - trace['y'] = df[y] + trace["y"] = df[y] trace = _make_trace_for_scatter( trace, trace_type, df[color_name], **kwargs_marker ) @@ -370,9 +401,7 @@ def _facet_grid_color_numerical(df, x, y, facet_row, facet_col, color_name, fig.append_trace(trace, 1, 1) if (facet_row and not facet_col) or (not facet_row and facet_col): - groups_by_facet = list( - df.groupby(facet_row if facet_row else facet_col) - ) + groups_by_facet = list(df.groupby(facet_row if facet_row else facet_col)) for j, group in enumerate(groups_by_facet): trace = dict( type=trace_type, @@ -385,17 +414,15 @@ def _facet_grid_color_numerical(df, x, y, facet_row, facet_col, color_name, **kwargs_trace ) if x: - trace['x'] = group[1][x] + trace["x"] = group[1][x] if y: - trace['y'] = group[1][y] + trace["y"] = group[1][y] trace = _make_trace_for_scatter( trace, trace_type, df[color_name], **kwargs_marker ) fig.append_trace( - trace, - j + 1 if facet_row else 1, - 1 if facet_row else j + 1 + trace, j + 1 if facet_row else 1, 1 if facet_row else j + 1 ) labels = facet_row_labels if facet_row else facet_col_labels @@ -409,14 +436,14 @@ def _facet_grid_color_numerical(df, x, y, facet_row, facet_col, color_name, num_of_rows - j if facet_row else j + 1, num_of_rows if facet_row else num_of_cols, SUBPLOT_SPACING, - 'row' if facet_row else 'col', - flipped=flipped_rows) + "row" if facet_row else "col", + flipped=flipped_rows, + ) ) elif facet_row and facet_col: groups_by_facets = list(df.groupby([facet_row, facet_col])) - tuple_to_facet_group = {item[0]: item[1] for - item in groups_by_facets} + tuple_to_facet_group = {item[0]: item[1] for item in groups_by_facets} row_values = df[facet_row].unique() col_values = df[facet_col].unique() @@ -425,8 +452,9 @@ def _facet_grid_color_numerical(df, x, y, facet_row, facet_col, color_name, try: group = tuple_to_facet_group[(x_val, y_val)] except KeyError: - group = pd.DataFrame([[None, None, None]], - columns=[x, y, color_name]) + group = pd.DataFrame( + [[None, None, None]], columns=[x, y, color_name] + ) if group.values.tolist() != [[None, None, None]]: trace = dict( @@ -441,64 +469,87 @@ def _facet_grid_color_numerical(df, x, y, facet_row, facet_col, color_name, ) else: - trace = dict( - type=trace_type, - showlegend=False, - **kwargs_trace - ) + trace = dict(type=trace_type, showlegend=False, **kwargs_trace) if x: - trace['x'] = group[x] + trace["x"] = group[x] if y: - trace['y'] = group[y] + trace["y"] = group[y] trace = _make_trace_for_scatter( trace, trace_type, df[color_name], **kwargs_marker ) fig.append_trace(trace, row_count + 1, col_count + 1) if row_count == 0: - label = _return_label(col_values[col_count], - facet_col_labels, facet_col) + label = _return_label( + col_values[col_count], facet_col_labels, facet_col + ) annotations.append( - _annotation_dict(label, col_count + 1, num_of_cols, - SUBPLOT_SPACING, - row_col='col', flipped=flipped_cols) + _annotation_dict( + label, + col_count + 1, + num_of_cols, + SUBPLOT_SPACING, + row_col="col", + flipped=flipped_cols, ) - label = _return_label(row_values[row_count], - facet_row_labels, facet_row) + ) + label = _return_label(row_values[row_count], facet_row_labels, facet_row) annotations.append( - _annotation_dict(row_values[row_count], - num_of_rows - row_count, num_of_rows, SUBPLOT_SPACING, - row_col='row', flipped=flipped_rows) + _annotation_dict( + row_values[row_count], + num_of_rows - row_count, + num_of_rows, + SUBPLOT_SPACING, + row_col="row", + flipped=flipped_rows, + ) ) return fig, annotations -def _facet_grid(df, x, y, facet_row, facet_col, num_of_rows, - num_of_cols, facet_row_labels, facet_col_labels, - trace_type, flipped_rows, flipped_cols, show_boxes, - SUBPLOT_SPACING, marker_color, kwargs_trace, kwargs_marker): - - fig = make_subplots(rows=num_of_rows, cols=num_of_cols, - shared_xaxes=True, shared_yaxes=True, - horizontal_spacing=SUBPLOT_SPACING, - vertical_spacing=SUBPLOT_SPACING, print_grid=False) +def _facet_grid( + df, + x, + y, + facet_row, + facet_col, + num_of_rows, + num_of_cols, + facet_row_labels, + facet_col_labels, + trace_type, + flipped_rows, + flipped_cols, + show_boxes, + SUBPLOT_SPACING, + marker_color, + kwargs_trace, + kwargs_marker, +): + + fig = make_subplots( + rows=num_of_rows, + cols=num_of_cols, + shared_xaxes=True, + shared_yaxes=True, + horizontal_spacing=SUBPLOT_SPACING, + vertical_spacing=SUBPLOT_SPACING, + print_grid=False, + ) annotations = [] if not facet_row and not facet_col: trace = dict( type=trace_type, - marker=dict( - color=marker_color, - line=kwargs_marker['line'], - ), + marker=dict(color=marker_color, line=kwargs_marker["line"]), **kwargs_trace ) if x: - trace['x'] = df[x] + trace["x"] = df[x] if y: - trace['y'] = df[y] + trace["y"] = df[y] trace = _make_trace_for_scatter( trace, trace_type, marker_color, **kwargs_marker ) @@ -506,35 +557,30 @@ def _facet_grid(df, x, y, facet_row, facet_col, num_of_rows, fig.append_trace(trace, 1, 1) elif (facet_row and not facet_col) or (not facet_row and facet_col): - groups_by_facet = list( - df.groupby(facet_row if facet_row else facet_col) - ) + groups_by_facet = list(df.groupby(facet_row if facet_row else facet_col)) for j, group in enumerate(groups_by_facet): trace = dict( type=trace_type, - marker=dict( - color=marker_color, - line=kwargs_marker['line'], - ), + marker=dict(color=marker_color, line=kwargs_marker["line"]), **kwargs_trace ) if x: - trace['x'] = group[1][x] + trace["x"] = group[1][x] if y: - trace['y'] = group[1][y] + trace["y"] = group[1][y] trace = _make_trace_for_scatter( trace, trace_type, marker_color, **kwargs_marker ) - fig.append_trace(trace, - j + 1 if facet_row else 1, - 1 if facet_row else j + 1) + fig.append_trace( + trace, j + 1 if facet_row else 1, 1 if facet_row else j + 1 + ) label = _return_label( group[0], facet_row_labels if facet_row else facet_col_labels, - facet_row if facet_row else facet_col + facet_row if facet_row else facet_col, ) annotations.append( @@ -543,15 +589,14 @@ def _facet_grid(df, x, y, facet_row, facet_col, num_of_rows, num_of_rows - j if facet_row else j + 1, num_of_rows if facet_row else num_of_cols, SUBPLOT_SPACING, - 'row' if facet_row else 'col', - flipped_rows + "row" if facet_row else "col", + flipped_rows, ) ) elif facet_row and facet_col: groups_by_facets = list(df.groupby([facet_row, facet_col])) - tuple_to_facet_group = {item[0]: item[1] for - item in groups_by_facets} + tuple_to_facet_group = {item[0]: item[1] for item in groups_by_facets} row_values = df[facet_row].unique() col_values = df[facet_col].unique() @@ -563,47 +608,70 @@ def _facet_grid(df, x, y, facet_row, facet_col, num_of_rows, group = pd.DataFrame([[None, None]], columns=[x, y]) trace = dict( type=trace_type, - marker=dict( - color=marker_color, - line=kwargs_marker['line'], - ), + marker=dict(color=marker_color, line=kwargs_marker["line"]), **kwargs_trace ) if x: - trace['x'] = group[x] + trace["x"] = group[x] if y: - trace['y'] = group[y] + trace["y"] = group[y] trace = _make_trace_for_scatter( trace, trace_type, marker_color, **kwargs_marker ) fig.append_trace(trace, row_count + 1, col_count + 1) if row_count == 0: - label = _return_label(col_values[col_count], - facet_col_labels, - facet_col) + label = _return_label( + col_values[col_count], facet_col_labels, facet_col + ) annotations.append( - _annotation_dict(label, col_count + 1, num_of_cols, SUBPLOT_SPACING, - row_col='col', flipped=flipped_cols) + _annotation_dict( + label, + col_count + 1, + num_of_cols, + SUBPLOT_SPACING, + row_col="col", + flipped=flipped_cols, ) + ) - label = _return_label(row_values[row_count], - facet_row_labels, - facet_row) + label = _return_label(row_values[row_count], facet_row_labels, facet_row) annotations.append( - _annotation_dict(label, num_of_rows - row_count, num_of_rows, SUBPLOT_SPACING, - row_col='row', flipped=flipped_rows) + _annotation_dict( + label, + num_of_rows - row_count, + num_of_rows, + SUBPLOT_SPACING, + row_col="row", + flipped=flipped_rows, + ) ) return fig, annotations -def create_facet_grid(df, x=None, y=None, facet_row=None, facet_col=None, - color_name=None, colormap=None, color_is_cat=False, - facet_row_labels=None, facet_col_labels=None, - height=None, width=None, trace_type='scatter', - scales='fixed', dtick_x=None, dtick_y=None, - show_boxes=True, ggplot2=False, binsize=1, **kwargs): +def create_facet_grid( + df, + x=None, + y=None, + facet_row=None, + facet_col=None, + color_name=None, + colormap=None, + color_is_cat=False, + facet_row_labels=None, + facet_col_labels=None, + height=None, + width=None, + trace_type="scatter", + scales="fixed", + dtick_x=None, + dtick_y=None, + show_boxes=True, + ggplot2=False, + binsize=1, + **kwargs +): """ Returns figure for facet grid. @@ -769,19 +837,15 @@ def create_facet_grid(df, x=None, y=None, facet_row=None, facet_col=None, ``` """ if not pd: - raise ImportError( - "'pandas' must be installed for this figure_factory." - ) + raise ImportError("'pandas' must be installed for this figure_factory.") if not isinstance(df, pd.DataFrame): - raise exceptions.PlotlyError( - "You must input a pandas DataFrame." - ) + raise exceptions.PlotlyError("You must input a pandas DataFrame.") # make sure all columns are of homogenous datatype utils.validate_dataframe(df) - if trace_type in ['scatter', 'scattergl']: + if trace_type in ["scatter", "scattergl"]: if not x or not y: raise exceptions.PlotlyError( "You need to input 'x' and 'y' if you are you are using a " @@ -798,11 +862,11 @@ def create_facet_grid(df, x=None, y=None, facet_row=None, facet_col=None, "in your dataframe." ) # autoscale histogram bars - if trace_type not in ['scatter', 'scattergl']: - scales = 'free' + if trace_type not in ["scatter", "scattergl"]: + scales = "free" # validate scales - if scales not in ['fixed', 'free_x', 'free_y', 'free']: + if scales not in ["fixed", "free_x", "free_y", "free"]: raise exceptions.PlotlyError( "'scales' must be set to 'fixed', 'free_x', 'free_y' and 'free'." ) @@ -812,42 +876,42 @@ def create_facet_grid(df, x=None, y=None, facet_row=None, facet_col=None, "'trace_type' must be in {}".format(VALID_TRACE_TYPES) ) - if trace_type == 'histogram': + if trace_type == "histogram": SUBPLOT_SPACING = 0.06 else: SUBPLOT_SPACING = 0.015 # seperate kwargs for marker and else - if 'marker' in kwargs: - kwargs_marker = kwargs['marker'] + if "marker" in kwargs: + kwargs_marker = kwargs["marker"] else: kwargs_marker = {} - marker_color = kwargs_marker.pop('color', None) - kwargs.pop('marker', None) + marker_color = kwargs_marker.pop("color", None) + kwargs.pop("marker", None) kwargs_trace = kwargs - if 'size' not in kwargs_marker: + if "size" not in kwargs_marker: if ggplot2: - kwargs_marker['size'] = 5 + kwargs_marker["size"] = 5 else: - kwargs_marker['size'] = 8 + kwargs_marker["size"] = 8 - if 'opacity' not in kwargs_marker: + if "opacity" not in kwargs_marker: if not ggplot2: - kwargs_trace['opacity'] = 0.6 + kwargs_trace["opacity"] = 0.6 - if 'line' not in kwargs_marker: + if "line" not in kwargs_marker: if not ggplot2: - kwargs_marker['line'] = {'color': 'darkgrey', 'width': 1} + kwargs_marker["line"] = {"color": "darkgrey", "width": 1} else: - kwargs_marker['line'] = {} + kwargs_marker["line"] = {} # default marker size if not ggplot2: if not marker_color: - marker_color = 'rgb(31, 119, 180)' + marker_color = "rgb(31, 119, 180)" else: - marker_color = 'rgb(0, 0, 0)' + marker_color = "rgb(0, 0, 0)" num_of_rows = 1 num_of_cols = 1 @@ -860,9 +924,7 @@ def create_facet_grid(df, x=None, y=None, facet_row=None, facet_col=None, for key in df[facet_row].unique(): if key not in facet_row_labels.keys(): unique_keys = df[facet_row].unique().tolist() - raise exceptions.PlotlyError( - CUSTOM_LABEL_ERROR.format(unique_keys) - ) + raise exceptions.PlotlyError(CUSTOM_LABEL_ERROR.format(unique_keys)) if facet_col: num_of_cols = len(df[facet_col].unique()) flipped_cols = _is_flipped(num_of_cols) @@ -870,15 +932,13 @@ def create_facet_grid(df, x=None, y=None, facet_row=None, facet_col=None, for key in df[facet_col].unique(): if key not in facet_col_labels.keys(): unique_keys = df[facet_col].unique().tolist() - raise exceptions.PlotlyError( - CUSTOM_LABEL_ERROR.format(unique_keys) - ) + raise exceptions.PlotlyError(CUSTOM_LABEL_ERROR.format(unique_keys)) show_legend = False if color_name: if isinstance(df[color_name].iloc[0], str) or color_is_cat: show_legend = True if isinstance(colormap, dict): - clrs.validate_colors_dict(colormap, 'rgb') + clrs.validate_colors_dict(colormap, "rgb") for val in df[color_name].unique(): if val not in colormap.keys(): @@ -898,16 +958,31 @@ def create_facet_grid(df, x=None, y=None, facet_row=None, facet_col=None, colormap[val] = default_colors[j] j += 1 fig, annotations = _facet_grid_color_categorical( - df, x, y, facet_row, facet_col, color_name, colormap, - num_of_rows, num_of_cols, facet_row_labels, facet_col_labels, - trace_type, flipped_rows, flipped_cols, show_boxes, - SUBPLOT_SPACING, marker_color, kwargs_trace, kwargs_marker + df, + x, + y, + facet_row, + facet_col, + color_name, + colormap, + num_of_rows, + num_of_cols, + facet_row_labels, + facet_col_labels, + trace_type, + flipped_rows, + flipped_cols, + show_boxes, + SUBPLOT_SPACING, + marker_color, + kwargs_trace, + kwargs_marker, ) elif isinstance(df[color_name].iloc[0], Number): if isinstance(colormap, dict): show_legend = True - clrs.validate_colors_dict(colormap, 'rgb') + clrs.validate_colors_dict(colormap, "rgb") for val in df[color_name].unique(): if val not in colormap.keys(): @@ -917,11 +992,25 @@ def create_facet_grid(df, x=None, y=None, facet_row=None, facet_col=None, "the keys of your dictionary." ) fig, annotations = _facet_grid_color_categorical( - df, x, y, facet_row, facet_col, color_name, colormap, - num_of_rows, num_of_cols, facet_row_labels, - facet_col_labels, trace_type, flipped_rows, - flipped_cols, show_boxes, SUBPLOT_SPACING, marker_color, - kwargs_trace, kwargs_marker + df, + x, + y, + facet_row, + facet_col, + color_name, + colormap, + num_of_rows, + num_of_cols, + facet_row_labels, + facet_col_labels, + trace_type, + flipped_rows, + flipped_cols, + show_boxes, + SUBPLOT_SPACING, + marker_color, + kwargs_trace, + kwargs_marker, ) elif isinstance(colormap, list): @@ -929,11 +1018,25 @@ def create_facet_grid(df, x=None, y=None, facet_row=None, facet_col=None, clrs.validate_colorscale(colorscale_list) fig, annotations = _facet_grid_color_numerical( - df, x, y, facet_row, facet_col, color_name, - colorscale_list, num_of_rows, num_of_cols, - facet_row_labels, facet_col_labels, trace_type, - flipped_rows, flipped_cols, show_boxes, SUBPLOT_SPACING, - marker_color, kwargs_trace, kwargs_marker + df, + x, + y, + facet_row, + facet_col, + color_name, + colorscale_list, + num_of_rows, + num_of_cols, + facet_row_labels, + facet_col_labels, + trace_type, + flipped_rows, + flipped_cols, + show_boxes, + SUBPLOT_SPACING, + marker_color, + kwargs_trace, + kwargs_marker, ) elif isinstance(colormap, str): if colormap in clrs.PLOTLY_SCALES.keys(): @@ -945,28 +1048,69 @@ def create_facet_grid(df, x=None, y=None, facet_row=None, facet_col=None, "names are {}".format(clrs.PLOTLY_SCALES.keys()) ) fig, annotations = _facet_grid_color_numerical( - df, x, y, facet_row, facet_col, color_name, - colorscale_list, num_of_rows, num_of_cols, - facet_row_labels, facet_col_labels, trace_type, - flipped_rows, flipped_cols, show_boxes, SUBPLOT_SPACING, - marker_color, kwargs_trace, kwargs_marker + df, + x, + y, + facet_row, + facet_col, + color_name, + colorscale_list, + num_of_rows, + num_of_cols, + facet_row_labels, + facet_col_labels, + trace_type, + flipped_rows, + flipped_cols, + show_boxes, + SUBPLOT_SPACING, + marker_color, + kwargs_trace, + kwargs_marker, ) else: - colorscale_list = clrs.PLOTLY_SCALES['Reds'] + colorscale_list = clrs.PLOTLY_SCALES["Reds"] fig, annotations = _facet_grid_color_numerical( - df, x, y, facet_row, facet_col, color_name, - colorscale_list, num_of_rows, num_of_cols, - facet_row_labels, facet_col_labels, trace_type, - flipped_rows, flipped_cols, show_boxes, SUBPLOT_SPACING, - marker_color, kwargs_trace, kwargs_marker + df, + x, + y, + facet_row, + facet_col, + color_name, + colorscale_list, + num_of_rows, + num_of_cols, + facet_row_labels, + facet_col_labels, + trace_type, + flipped_rows, + flipped_cols, + show_boxes, + SUBPLOT_SPACING, + marker_color, + kwargs_trace, + kwargs_marker, ) else: fig, annotations = _facet_grid( - df, x, y, facet_row, facet_col, num_of_rows, num_of_cols, - facet_row_labels, facet_col_labels, trace_type, flipped_rows, - flipped_cols, show_boxes, SUBPLOT_SPACING, marker_color, - kwargs_trace, kwargs_marker + df, + x, + y, + facet_row, + facet_col, + num_of_rows, + num_of_cols, + facet_row_labels, + facet_col_labels, + trace_type, + flipped_rows, + flipped_cols, + show_boxes, + SUBPLOT_SPACING, + marker_color, + kwargs_trace, + kwargs_marker, ) if not height: @@ -974,51 +1118,54 @@ def create_facet_grid(df, x=None, y=None, facet_row=None, facet_col=None, if not width: width = max(600, 100 * num_of_cols) - fig['layout'].update(height=height, width=width, title='', - paper_bgcolor='rgb(251, 251, 251)') + fig["layout"].update( + height=height, width=width, title="", paper_bgcolor="rgb(251, 251, 251)" + ) if ggplot2: - fig['layout'].update(plot_bgcolor=PLOT_BGCOLOR, - paper_bgcolor='rgb(255, 255, 255)', - hovermode='closest') + fig["layout"].update( + plot_bgcolor=PLOT_BGCOLOR, + paper_bgcolor="rgb(255, 255, 255)", + hovermode="closest", + ) # axis titles - x_title_annot = _axis_title_annotation(x, 'x') - y_title_annot = _axis_title_annotation(y, 'y') + x_title_annot = _axis_title_annotation(x, "x") + y_title_annot = _axis_title_annotation(y, "y") # annotations annotations.append(x_title_annot) annotations.append(y_title_annot) # legend - fig['layout']['showlegend'] = show_legend - fig['layout']['legend']['bgcolor'] = LEGEND_COLOR - fig['layout']['legend']['borderwidth'] = LEGEND_BORDER_WIDTH - fig['layout']['legend']['x'] = 1.05 - fig['layout']['legend']['y'] = 1 - fig['layout']['legend']['yanchor'] = 'top' + fig["layout"]["showlegend"] = show_legend + fig["layout"]["legend"]["bgcolor"] = LEGEND_COLOR + fig["layout"]["legend"]["borderwidth"] = LEGEND_BORDER_WIDTH + fig["layout"]["legend"]["x"] = 1.05 + fig["layout"]["legend"]["y"] = 1 + fig["layout"]["legend"]["yanchor"] = "top" if show_legend: - fig['layout']['showlegend'] = show_legend + fig["layout"]["showlegend"] = show_legend if ggplot2: if color_name: legend_annot = _legend_annotation(color_name) annotations.append(legend_annot) - fig['layout']['margin']['r'] = 150 + fig["layout"]["margin"]["r"] = 150 # assign annotations to figure - fig['layout']['annotations'] = annotations + fig["layout"]["annotations"] = annotations # add shaded boxes behind axis titles if show_boxes and ggplot2: _add_shapes_to_fig(fig, ANNOT_RECT_COLOR, flipped_rows, flipped_cols) # all xaxis and yaxis labels - axis_labels = {'x': [], 'y': []} - for key in fig['layout']: - if 'xaxis' in key: - axis_labels['x'].append(key) - elif 'yaxis' in key: - axis_labels['y'].append(key) + axis_labels = {"x": [], "y": []} + for key in fig["layout"]: + if "xaxis" in key: + axis_labels["x"].append(key) + elif "yaxis" in key: + axis_labels["y"].append(key) string_number_in_data = False for var in [v for v in [x, y] if v]: @@ -1033,22 +1180,22 @@ def create_facet_grid(df, x=None, y=None, facet_row=None, facet_col=None, if string_number_in_data: for x_y in axis_labels.keys(): for axis_name in axis_labels[x_y]: - fig['layout'][axis_name]['type'] = 'category' - - if scales == 'fixed': - fixed_axes = ['x', 'y'] - elif scales == 'free_x': - fixed_axes = ['y'] - elif scales == 'free_y': - fixed_axes = ['x'] - elif scales == 'free': + fig["layout"][axis_name]["type"] = "category" + + if scales == "fixed": + fixed_axes = ["x", "y"] + elif scales == "free_x": + fixed_axes = ["y"] + elif scales == "free_y": + fixed_axes = ["x"] + elif scales == "free": fixed_axes = [] # fixed ranges for x_y in fixed_axes: min_ranges = [] max_ranges = [] - for trace in fig['data']: + for trace in fig["data"]: if trace[x_y] is not None and len(trace[x_y]) > 0: min_ranges.append(min(trace[x_y])) max_ranges.append(max(trace[x_y])) @@ -1060,8 +1207,9 @@ def create_facet_grid(df, x=None, y=None, facet_row=None, facet_col=None, min_range = min(min_ranges) max_range = max(max_ranges) - range_are_numbers = (isinstance(min_range, Number) and - isinstance(max_range, Number)) + range_are_numbers = isinstance(min_range, Number) and isinstance( + max_range, Number + ) if range_are_numbers: min_range = math.floor(min_range) @@ -1071,42 +1219,39 @@ def create_facet_grid(df, x=None, y=None, facet_row=None, facet_col=None, min_range -= 0.05 * (max_range - min_range) max_range += 0.05 * (max_range - min_range) - if x_y == 'x': + if x_y == "x": if dtick_x: dtick = dtick_x else: - dtick = math.floor( - (max_range - min_range) / MAX_TICKS_PER_AXIS - ) - elif x_y == 'y': + dtick = math.floor((max_range - min_range) / MAX_TICKS_PER_AXIS) + elif x_y == "y": if dtick_y: dtick = dtick_y else: - dtick = math.floor( - (max_range - min_range) / MAX_TICKS_PER_AXIS - ) + dtick = math.floor((max_range - min_range) / MAX_TICKS_PER_AXIS) else: dtick = 1 for axis_title in axis_labels[x_y]: - fig['layout'][axis_title]['dtick'] = dtick - fig['layout'][axis_title]['ticklen'] = 0 - fig['layout'][axis_title]['zeroline'] = False + fig["layout"][axis_title]["dtick"] = dtick + fig["layout"][axis_title]["ticklen"] = 0 + fig["layout"][axis_title]["zeroline"] = False if ggplot2: - fig['layout'][axis_title]['tickwidth'] = 1 - fig['layout'][axis_title]['ticklen'] = 4 - fig['layout'][axis_title]['gridwidth'] = GRID_WIDTH - - fig['layout'][axis_title]['gridcolor'] = GRID_COLOR - fig['layout'][axis_title]['gridwidth'] = 2 - fig['layout'][axis_title]['tickfont'] = { - 'color': TICK_COLOR, 'size': 10 + fig["layout"][axis_title]["tickwidth"] = 1 + fig["layout"][axis_title]["ticklen"] = 4 + fig["layout"][axis_title]["gridwidth"] = GRID_WIDTH + + fig["layout"][axis_title]["gridcolor"] = GRID_COLOR + fig["layout"][axis_title]["gridwidth"] = 2 + fig["layout"][axis_title]["tickfont"] = { + "color": TICK_COLOR, + "size": 10, } # insert ranges into fig if x_y in fixed_axes: - for key in fig['layout']: - if '{}axis'.format(x_y) in key and range_are_numbers: - fig['layout'][key]['range'] = [min_range, max_range] + for key in fig["layout"]: + if "{}axis".format(x_y) in key and range_are_numbers: + fig["layout"][key]["range"] = [min_range, max_range] return fig diff --git a/packages/python/plotly/plotly/figure_factory/_gantt.py b/packages/python/plotly/plotly/figure_factory/_gantt.py index e341655b9ce..e8e5ec42d57 100644 --- a/packages/python/plotly/plotly/figure_factory/_gantt.py +++ b/packages/python/plotly/plotly/figure_factory/_gantt.py @@ -7,9 +7,9 @@ from plotly.figure_factory import utils from plotly.graph_objs import graph_objs -pd = optional_imports.get_module('pandas') +pd = optional_imports.get_module("pandas") -REQUIRED_GANTT_KEYS = ['Task', 'Start', 'Finish'] +REQUIRED_GANTT_KEYS = ["Task", "Start", "Finish"] def validate_gantt(df): @@ -22,8 +22,7 @@ def validate_gantt(df): if key not in df: raise exceptions.PlotlyError( "The columns in your dataframe must include the " - "following keys: {0}".format( - ', '.join(REQUIRED_GANTT_KEYS)) + "following keys: {0}".format(", ".join(REQUIRED_GANTT_KEYS)) ) num_of_rows = len(df.index) @@ -38,21 +37,34 @@ def validate_gantt(df): # validate if df is a list if not isinstance(df, list): - raise exceptions.PlotlyError("You must input either a dataframe " - "or a list of dictionaries.") + raise exceptions.PlotlyError( + "You must input either a dataframe " "or a list of dictionaries." + ) # validate if df is empty if len(df) <= 0: - raise exceptions.PlotlyError("Your list is empty. It must contain " - "at least one dictionary.") + raise exceptions.PlotlyError( + "Your list is empty. It must contain " "at least one dictionary." + ) if not isinstance(df[0], dict): - raise exceptions.PlotlyError("Your list must only " - "include dictionaries.") + raise exceptions.PlotlyError("Your list must only " "include dictionaries.") return df -def gantt(chart, colors, title, bar_width, showgrid_x, showgrid_y, height, - width, tasks=None, task_names=None, data=None, group_tasks=False): +def gantt( + chart, + colors, + title, + bar_width, + showgrid_x, + showgrid_y, + height, + width, + tasks=None, + task_names=None, + data=None, + group_tasks=False, +): """ Refer to create_gantt() for docstring """ @@ -64,25 +76,25 @@ def gantt(chart, colors, title, bar_width, showgrid_x, showgrid_y, height, data = [] for index in range(len(chart)): - task = dict(x0=chart[index]['Start'], - x1=chart[index]['Finish'], - name=chart[index]['Task']) - if 'Description' in chart[index]: - task['description'] = chart[index]['Description'] + task = dict( + x0=chart[index]["Start"], + x1=chart[index]["Finish"], + name=chart[index]["Task"], + ) + if "Description" in chart[index]: + task["description"] = chart[index]["Description"] tasks.append(task) shape_template = { - 'type': 'rect', - 'xref': 'x', - 'yref': 'y', - 'opacity': 1, - 'line': { - 'width': 0, - } + "type": "rect", + "xref": "x", + "yref": "y", + "opacity": 1, + "line": {"width": 0}, } # create the list of task names for index in range(len(tasks)): - tn = tasks[index]['name'] + tn = tasks[index]["name"] # Is added to task_names if group_tasks is set to False, # or if the option is used (True) it only adds them if the # name is not already in the list @@ -95,8 +107,8 @@ def gantt(chart, colors, title, bar_width, showgrid_x, showgrid_y, height, color_index = 0 for index in range(len(tasks)): - tn = tasks[index]['name'] - del tasks[index]['name'] + tn = tasks[index]["name"] + del tasks[index]["name"] tasks[index].update(shape_template) # If group_tasks is True, all tasks with the same name belong @@ -104,23 +116,23 @@ def gantt(chart, colors, title, bar_width, showgrid_x, showgrid_y, height, groupID = index if group_tasks: groupID = task_names.index(tn) - tasks[index]['y0'] = groupID - bar_width - tasks[index]['y1'] = groupID + bar_width + tasks[index]["y0"] = groupID - bar_width + tasks[index]["y1"] = groupID + bar_width # check if colors need to be looped if color_index >= len(colors): color_index = 0 - tasks[index]['fillcolor'] = colors[color_index] + tasks[index]["fillcolor"] = colors[color_index] # Add a line for hover text and autorange entry = dict( - x=[tasks[index]['x0'], tasks[index]['x1']], + x=[tasks[index]["x0"], tasks[index]["x1"]], y=[groupID, groupID], - name='', - marker={'color': 'white'} + name="", + marker={"color": "white"}, ) if "description" in tasks[index]: - entry['text'] = tasks[index]['description'] - del tasks[index]['description'] + entry["text"] = tasks[index]["description"] + del tasks[index]["description"] data.append(entry) color_index += 1 @@ -130,7 +142,7 @@ def gantt(chart, colors, title, bar_width, showgrid_x, showgrid_y, height, height=height, width=width, shapes=[], - hovermode='closest', + hovermode="closest", yaxis=dict( showgrid=showgrid_y, ticktext=task_names, @@ -143,42 +155,42 @@ def gantt(chart, colors, title, bar_width, showgrid_x, showgrid_y, height, showgrid=showgrid_x, zeroline=False, rangeselector=dict( - buttons=list([ - dict(count=7, - label='1w', - step='day', - stepmode='backward'), - dict(count=1, - label='1m', - step='month', - stepmode='backward'), - dict(count=6, - label='6m', - step='month', - stepmode='backward'), - dict(count=1, - label='YTD', - step='year', - stepmode='todate'), - dict(count=1, - label='1y', - step='year', - stepmode='backward'), - dict(step='all') - ]) + buttons=list( + [ + dict(count=7, label="1w", step="day", stepmode="backward"), + dict(count=1, label="1m", step="month", stepmode="backward"), + dict(count=6, label="6m", step="month", stepmode="backward"), + dict(count=1, label="YTD", step="year", stepmode="todate"), + dict(count=1, label="1y", step="year", stepmode="backward"), + dict(step="all"), + ] + ) ), - type='date' - ) + type="date", + ), ) - layout['shapes'] = tasks + layout["shapes"] = tasks fig = graph_objs.Figure(data=data, layout=layout) return fig -def gantt_colorscale(chart, colors, title, index_col, show_colorbar, bar_width, - showgrid_x, showgrid_y, height, width, tasks=None, - task_names=None, data=None, group_tasks=False): +def gantt_colorscale( + chart, + colors, + title, + index_col, + show_colorbar, + bar_width, + showgrid_x, + showgrid_y, + height, + width, + tasks=None, + task_names=None, + data=None, + group_tasks=False, +): """ Refer to FigureFactory.create_gantt() for docstring """ @@ -191,21 +203,21 @@ def gantt_colorscale(chart, colors, title, index_col, show_colorbar, bar_width, showlegend = False for index in range(len(chart)): - task = dict(x0=chart[index]['Start'], - x1=chart[index]['Finish'], - name=chart[index]['Task']) - if 'Description' in chart[index]: - task['description'] = chart[index]['Description'] + task = dict( + x0=chart[index]["Start"], + x1=chart[index]["Finish"], + name=chart[index]["Task"], + ) + if "Description" in chart[index]: + task["description"] = chart[index]["Description"] tasks.append(task) shape_template = { - 'type': 'rect', - 'xref': 'x', - 'yref': 'y', - 'opacity': 1, - 'line': { - 'width': 0, - } + "type": "rect", + "xref": "x", + "yref": "y", + "opacity": 1, + "line": {"width": 0}, } # compute the color for task based on indexing column @@ -221,7 +233,7 @@ def gantt_colorscale(chart, colors, title, index_col, show_colorbar, bar_width, # create the list of task names for index in range(len(tasks)): - tn = tasks[index]['name'] + tn = tasks[index]["name"] # Is added to task_names if group_tasks is set to False, # or if the option is used (True) it only adds them if the # name is not already in the list @@ -233,8 +245,8 @@ def gantt_colorscale(chart, colors, title, index_col, show_colorbar, bar_width, task_names.reverse() for index in range(len(tasks)): - tn = tasks[index]['name'] - del tasks[index]['name'] + tn = tasks[index]["name"] + del tasks[index]["name"] tasks[index].update(shape_template) # If group_tasks is True, all tasks with the same name belong @@ -242,8 +254,8 @@ def gantt_colorscale(chart, colors, title, index_col, show_colorbar, bar_width, groupID = index if group_tasks: groupID = task_names.index(tn) - tasks[index]['y0'] = groupID - bar_width - tasks[index]['y1'] = groupID + bar_width + tasks[index]["y0"] = groupID - bar_width + tasks[index]["y1"] = groupID + bar_width # unlabel color colors = clrs.color_parser(colors, clrs.unlabel_rgb) @@ -251,40 +263,38 @@ def gantt_colorscale(chart, colors, title, index_col, show_colorbar, bar_width, highcolor = colors[1] intermed = (chart[index][index_col]) / 100.0 - intermed_color = clrs.find_intermediate_color( - lowcolor, highcolor, intermed - ) - intermed_color = clrs.color_parser( - intermed_color, clrs.label_rgb - ) - tasks[index]['fillcolor'] = intermed_color + intermed_color = clrs.find_intermediate_color(lowcolor, highcolor, intermed) + intermed_color = clrs.color_parser(intermed_color, clrs.label_rgb) + tasks[index]["fillcolor"] = intermed_color # relabel colors with 'rgb' colors = clrs.color_parser(colors, clrs.label_rgb) # add a line for hover text and autorange entry = dict( - x=[tasks[index]['x0'], tasks[index]['x1']], + x=[tasks[index]["x0"], tasks[index]["x1"]], y=[groupID, groupID], - name='', - marker={'color': 'white'} + name="", + marker={"color": "white"}, ) if "description" in tasks[index]: - entry['text'] = tasks[index]['description'] - del tasks[index]['description'] + entry["text"] = tasks[index]["description"] + del tasks[index]["description"] data.append(entry) if show_colorbar is True: # generate dummy data for colorscale visibility data.append( dict( - x=[tasks[index]['x0'], tasks[index]['x0']], + x=[tasks[index]["x0"], tasks[index]["x0"]], y=[index, index], - name='', - marker={'color': 'white', - 'colorscale': [[0, colors[0]], [1, colors[1]]], - 'showscale': True, - 'cmax': 100, - 'cmin': 0} + name="", + marker={ + "color": "white", + "colorscale": [[0, colors[0]], [1, colors[1]]], + "showscale": True, + "cmax": 100, + "cmin": 0, + }, ) ) @@ -315,7 +325,7 @@ def gantt_colorscale(chart, colors, title, index_col, show_colorbar, bar_width, # create the list of task names for index in range(len(tasks)): - tn = tasks[index]['name'] + tn = tasks[index]["name"] # Is added to task_names if group_tasks is set to False, # or if the option is used (True) it only adds them if the # name is not already in the list @@ -327,31 +337,29 @@ def gantt_colorscale(chart, colors, title, index_col, show_colorbar, bar_width, task_names.reverse() for index in range(len(tasks)): - tn = tasks[index]['name'] - del tasks[index]['name'] + tn = tasks[index]["name"] + del tasks[index]["name"] tasks[index].update(shape_template) # If group_tasks is True, all tasks with the same name belong # to the same row. groupID = index if group_tasks: groupID = task_names.index(tn) - tasks[index]['y0'] = groupID - bar_width - tasks[index]['y1'] = groupID + bar_width + tasks[index]["y0"] = groupID - bar_width + tasks[index]["y1"] = groupID + bar_width - tasks[index]['fillcolor'] = index_vals_dict[ - chart[index][index_col] - ] + tasks[index]["fillcolor"] = index_vals_dict[chart[index][index_col]] # add a line for hover text and autorange entry = dict( - x=[tasks[index]['x0'], tasks[index]['x1']], + x=[tasks[index]["x0"], tasks[index]["x1"]], y=[groupID, groupID], - name='', - marker={'color': 'white'} + name="", + marker={"color": "white"}, ) if "description" in tasks[index]: - entry['text'] = tasks[index]['description'] - del tasks[index]['description'] + entry["text"] = tasks[index]["description"] + del tasks[index]["description"] data.append(entry) if show_colorbar is True: @@ -360,15 +368,12 @@ def gantt_colorscale(chart, colors, title, index_col, show_colorbar, bar_width, for k, index_value in enumerate(index_vals): data.append( dict( - x=[tasks[index]['x0'], tasks[index]['x0']], + x=[tasks[index]["x0"], tasks[index]["x0"]], y=[k, k], showlegend=True, name=str(index_value), - hoverinfo='none', - marker=dict( - color=colors[k], - size=1 - ) + hoverinfo="none", + marker=dict(color=colors[k], size=1), ) ) @@ -378,7 +383,7 @@ def gantt_colorscale(chart, colors, title, index_col, show_colorbar, bar_width, height=height, width=width, shapes=[], - hovermode='closest', + hovermode="closest", yaxis=dict( showgrid=showgrid_y, ticktext=task_names, @@ -391,42 +396,42 @@ def gantt_colorscale(chart, colors, title, index_col, show_colorbar, bar_width, showgrid=showgrid_x, zeroline=False, rangeselector=dict( - buttons=list([ - dict(count=7, - label='1w', - step='day', - stepmode='backward'), - dict(count=1, - label='1m', - step='month', - stepmode='backward'), - dict(count=6, - label='6m', - step='month', - stepmode='backward'), - dict(count=1, - label='YTD', - step='year', - stepmode='todate'), - dict(count=1, - label='1y', - step='year', - stepmode='backward'), - dict(step='all') - ]) + buttons=list( + [ + dict(count=7, label="1w", step="day", stepmode="backward"), + dict(count=1, label="1m", step="month", stepmode="backward"), + dict(count=6, label="6m", step="month", stepmode="backward"), + dict(count=1, label="YTD", step="year", stepmode="todate"), + dict(count=1, label="1y", step="year", stepmode="backward"), + dict(step="all"), + ] + ) ), - type='date' - ) + type="date", + ), ) - layout['shapes'] = tasks + layout["shapes"] = tasks fig = dict(data=data, layout=layout) return fig -def gantt_dict(chart, colors, title, index_col, show_colorbar, bar_width, - showgrid_x, showgrid_y, height, width, tasks=None, - task_names=None, data=None, group_tasks=False): +def gantt_dict( + chart, + colors, + title, + index_col, + show_colorbar, + bar_width, + showgrid_x, + showgrid_y, + height, + width, + tasks=None, + task_names=None, + data=None, + group_tasks=False, +): """ Refer to FigureFactory.create_gantt() for docstring """ @@ -439,21 +444,21 @@ def gantt_dict(chart, colors, title, index_col, show_colorbar, bar_width, showlegend = False for index in range(len(chart)): - task = dict(x0=chart[index]['Start'], - x1=chart[index]['Finish'], - name=chart[index]['Task']) - if 'Description' in chart[index]: - task['description'] = chart[index]['Description'] + task = dict( + x0=chart[index]["Start"], + x1=chart[index]["Finish"], + name=chart[index]["Task"], + ) + if "Description" in chart[index]: + task["description"] = chart[index]["Description"] tasks.append(task) shape_template = { - 'type': 'rect', - 'xref': 'x', - 'yref': 'y', - 'opacity': 1, - 'line': { - 'width': 0, - } + "type": "rect", + "xref": "x", + "yref": "y", + "opacity": 1, + "line": {"width": 0}, } index_vals = [] @@ -473,7 +478,7 @@ def gantt_dict(chart, colors, title, index_col, show_colorbar, bar_width, # create the list of task names for index in range(len(tasks)): - tn = tasks[index]['name'] + tn = tasks[index]["name"] # Is added to task_names if group_tasks is set to False, # or if the option is used (True) it only adds them if the # name is not already in the list @@ -485,8 +490,8 @@ def gantt_dict(chart, colors, title, index_col, show_colorbar, bar_width, task_names.reverse() for index in range(len(tasks)): - tn = tasks[index]['name'] - del tasks[index]['name'] + tn = tasks[index]["name"] + del tasks[index]["name"] tasks[index].update(shape_template) # If group_tasks is True, all tasks with the same name belong @@ -494,22 +499,22 @@ def gantt_dict(chart, colors, title, index_col, show_colorbar, bar_width, groupID = index if group_tasks: groupID = task_names.index(tn) - tasks[index]['y0'] = groupID - bar_width - tasks[index]['y1'] = groupID + bar_width + tasks[index]["y0"] = groupID - bar_width + tasks[index]["y1"] = groupID + bar_width - tasks[index]['fillcolor'] = colors[chart[index][index_col]] + tasks[index]["fillcolor"] = colors[chart[index][index_col]] # add a line for hover text and autorange entry = dict( - x=[tasks[index]['x0'], tasks[index]['x1']], + x=[tasks[index]["x0"], tasks[index]["x1"]], y=[groupID, groupID], showlegend=False, - name='', - marker={'color': 'white'} + name="", + marker={"color": "white"}, ) if "description" in tasks[index]: - entry['text'] = tasks[index]['description'] - del tasks[index]['description'] + entry["text"] = tasks[index]["description"] + del tasks[index]["description"] data.append(entry) if show_colorbar is True: @@ -518,15 +523,12 @@ def gantt_dict(chart, colors, title, index_col, show_colorbar, bar_width, for k, index_value in enumerate(index_vals): data.append( dict( - x=[tasks[index]['x0'], tasks[index]['x0']], + x=[tasks[index]["x0"], tasks[index]["x0"]], y=[k, k], showlegend=True, - hoverinfo='none', + hoverinfo="none", name=str(index_value), - marker=dict( - color=colors[index_value], - size=1 - ) + marker=dict(color=colors[index_value], size=1), ) ) @@ -536,7 +538,7 @@ def gantt_dict(chart, colors, title, index_col, show_colorbar, bar_width, height=height, width=width, shapes=[], - hovermode='closest', + hovermode="closest", yaxis=dict( showgrid=showgrid_y, ticktext=task_names, @@ -549,43 +551,43 @@ def gantt_dict(chart, colors, title, index_col, show_colorbar, bar_width, showgrid=showgrid_x, zeroline=False, rangeselector=dict( - buttons=list([ - dict(count=7, - label='1w', - step='day', - stepmode='backward'), - dict(count=1, - label='1m', - step='month', - stepmode='backward'), - dict(count=6, - label='6m', - step='month', - stepmode='backward'), - dict(count=1, - label='YTD', - step='year', - stepmode='todate'), - dict(count=1, - label='1y', - step='year', - stepmode='backward'), - dict(step='all') - ]) + buttons=list( + [ + dict(count=7, label="1w", step="day", stepmode="backward"), + dict(count=1, label="1m", step="month", stepmode="backward"), + dict(count=6, label="6m", step="month", stepmode="backward"), + dict(count=1, label="YTD", step="year", stepmode="todate"), + dict(count=1, label="1y", step="year", stepmode="backward"), + dict(step="all"), + ] + ) ), - type='date' - ) + type="date", + ), ) - layout['shapes'] = tasks + layout["shapes"] = tasks fig = dict(data=data, layout=layout) return fig -def create_gantt(df, colors=None, index_col=None, show_colorbar=False, - reverse_colors=False, title='Gantt Chart', bar_width=0.2, - showgrid_x=False, showgrid_y=False, height=600, width=900, - tasks=None, task_names=None, data=None, group_tasks=False): +def create_gantt( + df, + colors=None, + index_col=None, + show_colorbar=False, + reverse_colors=False, + title="Gantt Chart", + bar_width=0.2, + showgrid_x=False, + showgrid_y=False, + height=600, + width=900, + tasks=None, + task_names=None, + data=None, + group_tasks=False, +): """ Returns figure for a gantt chart @@ -734,7 +736,8 @@ def create_gantt(df, colors=None, index_col=None, show_colorbar=False, "In order to use an indexing column and assign colors to " "the values of the index, you must choose an actual " "column name in the dataframe or key if a list of " - "dictionaries is being used.") + "dictionaries is being used." + ) # validate gantt index column index_list = [] @@ -744,9 +747,9 @@ def create_gantt(df, colors=None, index_col=None, show_colorbar=False, # Validate colors if isinstance(colors, dict): - colors = clrs.validate_colors_dict(colors, 'rgb') + colors = clrs.validate_colors_dict(colors, "rgb") else: - colors = clrs.validate_colors(colors, 'rgb') + colors = clrs.validate_colors(colors, "rgb") if reverse_colors is True: colors.reverse() @@ -759,23 +762,54 @@ def create_gantt(df, colors=None, index_col=None, show_colorbar=False, "assigning colors to particular values in a dictioanry." ) fig = gantt( - chart, colors, title, bar_width, showgrid_x, showgrid_y, - height, width, tasks=None, task_names=None, data=None, - group_tasks=group_tasks + chart, + colors, + title, + bar_width, + showgrid_x, + showgrid_y, + height, + width, + tasks=None, + task_names=None, + data=None, + group_tasks=group_tasks, ) return fig else: if not isinstance(colors, dict): fig = gantt_colorscale( - chart, colors, title, index_col, show_colorbar, bar_width, - showgrid_x, showgrid_y, height, width, - tasks=None, task_names=None, data=None, group_tasks=group_tasks + chart, + colors, + title, + index_col, + show_colorbar, + bar_width, + showgrid_x, + showgrid_y, + height, + width, + tasks=None, + task_names=None, + data=None, + group_tasks=group_tasks, ) return fig else: fig = gantt_dict( - chart, colors, title, index_col, show_colorbar, bar_width, - showgrid_x, showgrid_y, height, width, - tasks=None, task_names=None, data=None, group_tasks=group_tasks + chart, + colors, + title, + index_col, + show_colorbar, + bar_width, + showgrid_x, + showgrid_y, + height, + width, + tasks=None, + task_names=None, + data=None, + group_tasks=group_tasks, ) return fig diff --git a/packages/python/plotly/plotly/figure_factory/_ohlc.py b/packages/python/plotly/plotly/figure_factory/_ohlc.py index b5e84cd6d93..131d3df2d88 100644 --- a/packages/python/plotly/plotly/figure_factory/_ohlc.py +++ b/packages/python/plotly/plotly/figure_factory/_ohlc.py @@ -6,8 +6,8 @@ # Default colours for finance charts -_DEFAULT_INCREASING_COLOR = '#3D9970' # http://clrs.cc -_DEFAULT_DECREASING_COLOR = '#FF4136' +_DEFAULT_INCREASING_COLOR = "#3D9970" # http://clrs.cc +_DEFAULT_DECREASING_COLOR = "#FF4136" def validate_ohlc(open, high, low, close, direction, **kwargs): @@ -29,28 +29,32 @@ def validate_ohlc(open, high, low, close, direction, **kwargs): for lst in [open, low, close]: for index in range(len(high)): if high[index] < lst[index]: - raise exceptions.PlotlyError("Oops! Looks like some of " - "your high values are less " - "the corresponding open, " - "low, or close values. " - "Double check that your data " - "is entered in O-H-L-C order") + raise exceptions.PlotlyError( + "Oops! Looks like some of " + "your high values are less " + "the corresponding open, " + "low, or close values. " + "Double check that your data " + "is entered in O-H-L-C order" + ) for lst in [open, high, close]: for index in range(len(low)): if low[index] > lst[index]: - raise exceptions.PlotlyError("Oops! Looks like some of " - "your low values are greater " - "than the corresponding high" - ", open, or close values. " - "Double check that your data " - "is entered in O-H-L-C order") - - direction_opts = ('increasing', 'decreasing', 'both') + raise exceptions.PlotlyError( + "Oops! Looks like some of " + "your low values are greater " + "than the corresponding high" + ", open, or close values. " + "Double check that your data " + "is entered in O-H-L-C order" + ) + + direction_opts = ("increasing", "decreasing", "both") if direction not in direction_opts: - raise exceptions.PlotlyError("direction must be defined as " - "'increasing', 'decreasing', or " - "'both'") + raise exceptions.PlotlyError( + "direction must be defined as " "'increasing', 'decreasing', or " "'both'" + ) def make_increasing_ohlc(open, high, low, close, dates, **kwargs): @@ -74,26 +78,27 @@ def make_increasing_ohlc(open, high, low, close, dates, **kwargs): :rtype (trace) ohlc_incr_data: Scatter trace of all increasing ohlc sticks. """ - (flat_increase_x, - flat_increase_y, - text_increase) = _OHLC(open, high, low, close, dates).get_increase() + (flat_increase_x, flat_increase_y, text_increase) = _OHLC( + open, high, low, close, dates + ).get_increase() - if 'name' in kwargs: + if "name" in kwargs: showlegend = True else: - kwargs.setdefault('name', 'Increasing') + kwargs.setdefault("name", "Increasing") showlegend = False - kwargs.setdefault('line', dict(color=_DEFAULT_INCREASING_COLOR, - width=1)) - kwargs.setdefault('text', text_increase) - - ohlc_incr = dict(type='scatter', - x=flat_increase_x, - y=flat_increase_y, - mode='lines', - showlegend=showlegend, - **kwargs) + kwargs.setdefault("line", dict(color=_DEFAULT_INCREASING_COLOR, width=1)) + kwargs.setdefault("text", text_increase) + + ohlc_incr = dict( + type="scatter", + x=flat_increase_x, + y=flat_increase_y, + mode="lines", + showlegend=showlegend, + **kwargs + ) return ohlc_incr @@ -112,26 +117,22 @@ def make_decreasing_ohlc(open, high, low, close, dates, **kwargs): :rtype (trace) ohlc_decr_data: Scatter trace of all decreasing ohlc sticks. """ - (flat_decrease_x, - flat_decrease_y, - text_decrease) = _OHLC(open, high, low, close, dates).get_decrease() - - kwargs.setdefault('line', dict(color=_DEFAULT_DECREASING_COLOR, - width=1)) - kwargs.setdefault('text', text_decrease) - kwargs.setdefault('showlegend', False) - kwargs.setdefault('name', 'Decreasing') - - ohlc_decr = dict(type='scatter', - x=flat_decrease_x, - y=flat_decrease_y, - mode='lines', - **kwargs) + (flat_decrease_x, flat_decrease_y, text_decrease) = _OHLC( + open, high, low, close, dates + ).get_decrease() + + kwargs.setdefault("line", dict(color=_DEFAULT_DECREASING_COLOR, width=1)) + kwargs.setdefault("text", text_decrease) + kwargs.setdefault("showlegend", False) + kwargs.setdefault("name", "Decreasing") + + ohlc_decr = dict( + type="scatter", x=flat_decrease_x, y=flat_decrease_y, mode="lines", **kwargs + ) return ohlc_decr -def create_ohlc(open, high, low, close, dates=None, direction='both', - **kwargs): +def create_ohlc(open, high, low, close, dates=None, direction="both", **kwargs): """ BETA function that creates an ohlc chart @@ -264,23 +265,18 @@ def create_ohlc(open, high, low, close, dates=None, direction='both', utils.validate_equal_length(open, high, low, close) validate_ohlc(open, high, low, close, direction, **kwargs) - if direction is 'increasing': - ohlc_incr = make_increasing_ohlc(open, high, low, close, dates, - **kwargs) + if direction is "increasing": + ohlc_incr = make_increasing_ohlc(open, high, low, close, dates, **kwargs) data = [ohlc_incr] - elif direction is 'decreasing': - ohlc_decr = make_decreasing_ohlc(open, high, low, close, dates, - **kwargs) + elif direction is "decreasing": + ohlc_decr = make_decreasing_ohlc(open, high, low, close, dates, **kwargs) data = [ohlc_decr] else: - ohlc_incr = make_increasing_ohlc(open, high, low, close, dates, - **kwargs) - ohlc_decr = make_decreasing_ohlc(open, high, low, close, dates, - **kwargs) + ohlc_incr = make_increasing_ohlc(open, high, low, close, dates, **kwargs) + ohlc_decr = make_decreasing_ohlc(open, high, low, close, dates, **kwargs) data = [ohlc_incr, ohlc_decr] - layout = graph_objs.Layout(xaxis=dict(zeroline=False), - hovermode='closest') + layout = graph_objs.Layout(xaxis=dict(zeroline=False), hovermode="closest") return graph_objs.Figure(data=data, layout=layout) @@ -289,6 +285,7 @@ class _OHLC(object): """ Refer to FigureFactory.create_ohlc_increase() for docstring. """ + def __init__(self, open, high, low, close, dates, **kwargs): self.open = open self.high = high @@ -317,18 +314,30 @@ def get_all_xy(self): If no date data was provided, the x-axis is a list of integers and the length of the open and close branches is .2. """ - self.all_y = list(zip(self.open, self.open, self.high, - self.low, self.close, self.close, self.empty)) + self.all_y = list( + zip( + self.open, + self.open, + self.high, + self.low, + self.close, + self.close, + self.empty, + ) + ) if self.dates is not None: date_dif = [] for i in range(len(self.dates) - 1): date_dif.append(self.dates[i + 1] - self.dates[i]) date_dif_min = (min(date_dif)) / 5 - self.all_x = [[x - date_dif_min, x, x, x, x, x + - date_dif_min, None] for x in self.dates] + self.all_x = [ + [x - date_dif_min, x, x, x, x, x + date_dif_min, None] + for x in self.dates + ] else: - self.all_x = [[x - .2, x, x, x, x, x + .2, None] - for x in range(len(self.open))] + self.all_x = [ + [x - 0.2, x, x, x, x, x + 0.2, None] for x in range(len(self.open)) + ] def separate_increase_decrease(self): """ @@ -357,9 +366,9 @@ def get_increase(self): """ flat_increase_x = utils.flatten(self.increase_x) flat_increase_y = utils.flatten(self.increase_y) - text_increase = (("Open", "Open", "High", - "Low", "Close", "Close", '') - * (len(self.increase_x))) + text_increase = ("Open", "Open", "High", "Low", "Close", "Close", "") * ( + len(self.increase_x) + ) return flat_increase_x, flat_increase_y, text_increase @@ -373,8 +382,8 @@ def get_decrease(self): """ flat_decrease_x = utils.flatten(self.decrease_x) flat_decrease_y = utils.flatten(self.decrease_y) - text_decrease = (("Open", "Open", "High", - "Low", "Close", "Close", '') - * (len(self.decrease_x))) + text_decrease = ("Open", "Open", "High", "Low", "Close", "Close", "") * ( + len(self.decrease_x) + ) return flat_decrease_x, flat_decrease_y, text_decrease diff --git a/packages/python/plotly/plotly/figure_factory/_quiver.py b/packages/python/plotly/plotly/figure_factory/_quiver.py index 4031c27b94f..e64f7eebfcb 100644 --- a/packages/python/plotly/plotly/figure_factory/_quiver.py +++ b/packages/python/plotly/plotly/figure_factory/_quiver.py @@ -7,8 +7,9 @@ from plotly.figure_factory import utils -def create_quiver(x, y, u, v, scale=.1, arrow_scale=.3, - angle=math.pi / 9, scaleratio=None, **kwargs): +def create_quiver( + x, y, u, v, scale=0.1, arrow_scale=0.3, angle=math.pi / 9, scaleratio=None, **kwargs +): """ Returns data for a quiver plot. @@ -121,31 +122,28 @@ def create_quiver(x, y, u, v, scale=.1, arrow_scale=.3, barb_x, barb_y = quiver_obj.get_barbs() arrow_x, arrow_y = quiver_obj.get_quiver_arrows() - quiver_plot = graph_objs.Scatter(x=barb_x + arrow_x, - y=barb_y + arrow_y, - mode='lines', **kwargs) + quiver_plot = graph_objs.Scatter( + x=barb_x + arrow_x, y=barb_y + arrow_y, mode="lines", **kwargs + ) data = [quiver_plot] if scaleratio is None: - layout = graph_objs.Layout(hovermode='closest') + layout = graph_objs.Layout(hovermode="closest") else: layout = graph_objs.Layout( - hovermode='closest', - yaxis=dict( - scaleratio = scaleratio, - scaleanchor = "x" - ) - ) + hovermode="closest", yaxis=dict(scaleratio=scaleratio, scaleanchor="x") + ) return graph_objs.Figure(data=data, layout=layout) + class _Quiver(object): """ Refer to FigureFactory.create_quiver() for docstring """ - def __init__(self, x, y, u, v, - scale, arrow_scale, angle, scaleratio=1, **kwargs): + + def __init__(self, x, y, u, v, scale, arrow_scale, angle, scaleratio=1, **kwargs): try: x = utils.flatten(x) except exceptions.PlotlyError: diff --git a/packages/python/plotly/plotly/figure_factory/_scatterplot.py b/packages/python/plotly/plotly/figure_factory/_scatterplot.py index 7ae9627ab16..f7975d77dbf 100644 --- a/packages/python/plotly/plotly/figure_factory/_scatterplot.py +++ b/packages/python/plotly/plotly/figure_factory/_scatterplot.py @@ -8,10 +8,10 @@ from plotly.graph_objs import graph_objs from plotly.tools import make_subplots -pd = optional_imports.get_module('pandas') +pd = optional_imports.get_module("pandas") -DIAG_CHOICES = ['scatter', 'histogram', 'box'] -VALID_COLORMAP_TYPES = ['cat', 'seq'] +DIAG_CHOICES = ["scatter", "histogram", "box"] +VALID_COLORMAP_TYPES = ["cat", "seq"] def endpts_to_intervals(endpts): @@ -30,34 +30,40 @@ def endpts_to_intervals(endpts): length = len(endpts) # Check if endpts is a list or tuple if not (isinstance(endpts, (tuple)) or isinstance(endpts, (list))): - raise exceptions.PlotlyError("The intervals_endpts argument must " - "be a list or tuple of a sequence " - "of increasing numbers.") + raise exceptions.PlotlyError( + "The intervals_endpts argument must " + "be a list or tuple of a sequence " + "of increasing numbers." + ) # Check if endpts contains only numbers for item in endpts: if isinstance(item, str): - raise exceptions.PlotlyError("The intervals_endpts argument " - "must be a list or tuple of a " - "sequence of increasing " - "numbers.") + raise exceptions.PlotlyError( + "The intervals_endpts argument " + "must be a list or tuple of a " + "sequence of increasing " + "numbers." + ) # Check if numbers in endpts are increasing for k in range(length - 1): if endpts[k] >= endpts[k + 1]: - raise exceptions.PlotlyError("The intervals_endpts argument " - "must be a list or tuple of a " - "sequence of increasing " - "numbers.") + raise exceptions.PlotlyError( + "The intervals_endpts argument " + "must be a list or tuple of a " + "sequence of increasing " + "numbers." + ) else: intervals = [] # add -inf to intervals - intervals.append([float('-inf'), endpts[0]]) + intervals.append([float("-inf"), endpts[0]]) for k in range(length - 1): interval = [] interval.append(endpts[k]) interval.append(endpts[k + 1]) intervals.append(interval) # add +inf to intervals - intervals.append([endpts[length - 1], float('inf')]) + intervals.append([endpts[length - 1], float("inf")]) return intervals @@ -66,15 +72,13 @@ def hide_tick_labels_from_box_subplots(fig): Hides tick labels for box plots in scatterplotmatrix subplots. """ boxplot_xaxes = [] - for trace in fig['data']: - if trace['type'] == 'box': + for trace in fig["data"]: + if trace["type"] == "box": # stores the xaxes which correspond to boxplot subplots # since we use xaxis1, xaxis2, etc, in plotly.py - boxplot_xaxes.append( - 'xaxis{}'.format(trace['xaxis'][1:]) - ) + boxplot_xaxes.append("xaxis{}".format(trace["xaxis"][1:])) for xaxis in boxplot_xaxes: - fig['layout'][xaxis]['showticklabels'] = False + fig["layout"][xaxis]["showticklabels"] = False def validate_scatterplotmatrix(df, index, diag, colormap_type, **kwargs): @@ -91,49 +95,58 @@ def validate_scatterplotmatrix(df, index, diag, colormap_type, **kwargs): 'colorscale' """ if not pd: - raise ImportError("FigureFactory.scatterplotmatrix requires " - "a pandas DataFrame.") + raise ImportError( + "FigureFactory.scatterplotmatrix requires " "a pandas DataFrame." + ) # Check if pandas dataframe if not isinstance(df, pd.core.frame.DataFrame): - raise exceptions.PlotlyError("Dataframe not inputed. Please " - "use a pandas dataframe to pro" - "duce a scatterplot matrix.") + raise exceptions.PlotlyError( + "Dataframe not inputed. Please " + "use a pandas dataframe to pro" + "duce a scatterplot matrix." + ) # Check if dataframe is 1 column or less if len(df.columns) <= 1: - raise exceptions.PlotlyError("Dataframe has only one column. To " - "use the scatterplot matrix, use at " - "least 2 columns.") + raise exceptions.PlotlyError( + "Dataframe has only one column. To " + "use the scatterplot matrix, use at " + "least 2 columns." + ) # Check that diag parameter is a valid selection if diag not in DIAG_CHOICES: - raise exceptions.PlotlyError("Make sure diag is set to " - "one of {}".format(DIAG_CHOICES)) + raise exceptions.PlotlyError( + "Make sure diag is set to " "one of {}".format(DIAG_CHOICES) + ) # Check that colormap_types is a valid selection if colormap_type not in VALID_COLORMAP_TYPES: - raise exceptions.PlotlyError("Must choose a valid colormap type. " - "Either 'cat' or 'seq' for a cate" - "gorical and sequential colormap " - "respectively.") + raise exceptions.PlotlyError( + "Must choose a valid colormap type. " + "Either 'cat' or 'seq' for a cate" + "gorical and sequential colormap " + "respectively." + ) # Check for not 'size' or 'color' in 'marker' of **kwargs - if 'marker' in kwargs: - FORBIDDEN_PARAMS = ['size', 'color', 'colorscale'] - if any(param in kwargs['marker'] for param in FORBIDDEN_PARAMS): - raise exceptions.PlotlyError("Your kwargs dictionary cannot " - "include the 'size', 'color' or " - "'colorscale' key words inside " - "the marker dict since 'size' is " - "already an argument of the " - "scatterplot matrix function and " - "both 'color' and 'colorscale " - "are set internally.") - - -def scatterplot(dataframe, headers, diag, size, height, width, title, - **kwargs): + if "marker" in kwargs: + FORBIDDEN_PARAMS = ["size", "color", "colorscale"] + if any(param in kwargs["marker"] for param in FORBIDDEN_PARAMS): + raise exceptions.PlotlyError( + "Your kwargs dictionary cannot " + "include the 'size', 'color' or " + "'colorscale' key words inside " + "the marker dict since 'size' is " + "already an argument of the " + "scatterplot matrix function and " + "both 'color' and 'colorscale " + "are set internally." + ) + + +def scatterplot(dataframe, headers, diag, size, height, width, title, **kwargs): """ Refer to FigureFactory.create_scatterplotmatrix() for docstring @@ -146,35 +159,23 @@ def scatterplot(dataframe, headers, diag, size, height, width, title, # Insert traces into trace_list for listy in dataframe: for listx in dataframe: - if (listx == listy) and (diag == 'histogram'): - trace = graph_objs.Histogram( - x=listx, - showlegend=False - ) - elif (listx == listy) and (diag == 'box'): - trace = graph_objs.Box( - y=listx, - name=None, - showlegend=False - ) + if (listx == listy) and (diag == "histogram"): + trace = graph_objs.Histogram(x=listx, showlegend=False) + elif (listx == listy) and (diag == "box"): + trace = graph_objs.Box(y=listx, name=None, showlegend=False) else: - if 'marker' in kwargs: - kwargs['marker']['size'] = size + if "marker" in kwargs: + kwargs["marker"]["size"] = size trace = graph_objs.Scatter( - x=listx, - y=listy, - mode='markers', - showlegend=False, - **kwargs + x=listx, y=listy, mode="markers", showlegend=False, **kwargs ) trace_list.append(trace) else: trace = graph_objs.Scatter( x=listx, y=listy, - mode='markers', - marker=dict( - size=size), + mode="markers", + marker=dict(size=size), showlegend=False, **kwargs ) @@ -184,33 +185,39 @@ def scatterplot(dataframe, headers, diag, size, height, width, title, indices = range(1, dim + 1) for y_index in indices: for x_index in indices: - fig.append_trace(trace_list[trace_index], - y_index, - x_index) + fig.append_trace(trace_list[trace_index], y_index, x_index) trace_index += 1 # Insert headers into the figure for j in range(dim): - xaxis_key = 'xaxis{}'.format((dim * dim) - dim + 1 + j) - fig['layout'][xaxis_key].update(title=headers[j]) + xaxis_key = "xaxis{}".format((dim * dim) - dim + 1 + j) + fig["layout"][xaxis_key].update(title=headers[j]) for j in range(dim): - yaxis_key = 'yaxis{}'.format(1 + (dim * j)) - fig['layout'][yaxis_key].update(title=headers[j]) + yaxis_key = "yaxis{}".format(1 + (dim * j)) + fig["layout"][yaxis_key].update(title=headers[j]) - fig['layout'].update( - height=height, width=width, - title=title, - showlegend=True - ) + fig["layout"].update(height=height, width=width, title=title, showlegend=True) hide_tick_labels_from_box_subplots(fig) return fig -def scatterplot_dict(dataframe, headers, diag, size, - height, width, title, index, index_vals, - endpts, colormap, colormap_type, **kwargs): +def scatterplot_dict( + dataframe, + headers, + diag, + size, + height, + width, + title, + index, + index_vals, + endpts, + colormap, + colormap_type, + **kwargs +): """ Refer to FigureFactory.create_scatterplotmatrix() for docstring @@ -246,29 +253,25 @@ def scatterplot_dict(dataframe, headers, diag, size, new_listy.append(listy[j]) # Generate trace with VISIBLE icon if legend_param == 1: - if (listx == listy) and (diag == 'histogram'): + if (listx == listy) and (diag == "histogram"): trace = graph_objs.Histogram( - x=new_listx, - marker=dict( - color=theme[name]), - showlegend=True + x=new_listx, marker=dict(color=theme[name]), showlegend=True ) - elif (listx == listy) and (diag == 'box'): + elif (listx == listy) and (diag == "box"): trace = graph_objs.Box( y=new_listx, name=None, - marker=dict( - color=theme[name]), - showlegend=True + marker=dict(color=theme[name]), + showlegend=True, ) else: - if 'marker' in kwargs: - kwargs['marker']['size'] = size - kwargs['marker']['color'] = theme[name] + if "marker" in kwargs: + kwargs["marker"]["size"] = size + kwargs["marker"]["color"] = theme[name] trace = graph_objs.Scatter( x=new_listx, y=new_listy, - mode='markers', + mode="markers", name=name, showlegend=True, **kwargs @@ -277,39 +280,35 @@ def scatterplot_dict(dataframe, headers, diag, size, trace = graph_objs.Scatter( x=new_listx, y=new_listy, - mode='markers', + mode="markers", name=name, - marker=dict( - size=size, - color=theme[name]), + marker=dict(size=size, color=theme[name]), showlegend=True, **kwargs ) # Generate trace with INVISIBLE icon else: - if (listx == listy) and (diag == 'histogram'): + if (listx == listy) and (diag == "histogram"): trace = graph_objs.Histogram( x=new_listx, - marker=dict( - color=theme[name]), - showlegend=False + marker=dict(color=theme[name]), + showlegend=False, ) - elif (listx == listy) and (diag == 'box'): + elif (listx == listy) and (diag == "box"): trace = graph_objs.Box( y=new_listx, name=None, - marker=dict( - color=theme[name]), - showlegend=False + marker=dict(color=theme[name]), + showlegend=False, ) else: - if 'marker' in kwargs: - kwargs['marker']['size'] = size - kwargs['marker']['color'] = theme[name] + if "marker" in kwargs: + kwargs["marker"]["size"] = size + kwargs["marker"]["color"] = theme[name] trace = graph_objs.Scatter( x=new_listx, y=new_listy, - mode='markers', + mode="markers", name=name, showlegend=False, **kwargs @@ -318,11 +317,9 @@ def scatterplot_dict(dataframe, headers, diag, size, trace = graph_objs.Scatter( x=new_listx, y=new_listy, - mode='markers', + mode="markers", name=name, - marker=dict( - size=size, - color=theme[name]), + marker=dict(size=size, color=theme[name]), showlegend=False, **kwargs ) @@ -336,42 +333,46 @@ def scatterplot_dict(dataframe, headers, diag, size, for y_index in indices: for x_index in indices: for name in sorted(trace_list[trace_index].keys()): - fig.append_trace( - trace_list[trace_index][name], - y_index, - x_index) + fig.append_trace(trace_list[trace_index][name], y_index, x_index) trace_index += 1 # Insert headers into the figure for j in range(dim): - xaxis_key = 'xaxis{}'.format((dim * dim) - dim + 1 + j) - fig['layout'][xaxis_key].update(title=headers[j]) + xaxis_key = "xaxis{}".format((dim * dim) - dim + 1 + j) + fig["layout"][xaxis_key].update(title=headers[j]) for j in range(dim): - yaxis_key = 'yaxis{}'.format(1 + (dim * j)) - fig['layout'][yaxis_key].update(title=headers[j]) + yaxis_key = "yaxis{}".format(1 + (dim * j)) + fig["layout"][yaxis_key].update(title=headers[j]) hide_tick_labels_from_box_subplots(fig) - if diag == 'histogram': - fig['layout'].update( - height=height, width=width, - title=title, - showlegend=True, - barmode='stack') + if diag == "histogram": + fig["layout"].update( + height=height, width=width, title=title, showlegend=True, barmode="stack" + ) return fig else: - fig['layout'].update( - height=height, width=width, - title=title, - showlegend=True) + fig["layout"].update(height=height, width=width, title=title, showlegend=True) return fig -def scatterplot_theme(dataframe, headers, diag, size, height, width, title, - index, index_vals, endpts, colormap, colormap_type, - **kwargs): +def scatterplot_theme( + dataframe, + headers, + diag, + size, + height, + width, + title, + index, + index_vals, + endpts, + colormap, + colormap_type, + **kwargs +): """ Refer to FigureFactory.create_scatterplotmatrix() for docstring @@ -388,12 +389,12 @@ def scatterplot_theme(dataframe, headers, diag, size, height, width, title, n_colors_len = len(unique_index_vals) # Convert colormap to list of n RGB tuples - if colormap_type == 'seq': + if colormap_type == "seq": foo = clrs.color_parser(colormap, clrs.unlabel_rgb) foo = clrs.n_colors(foo[0], foo[1], n_colors_len) theme = clrs.color_parser(foo, clrs.label_rgb) - if colormap_type == 'cat': + if colormap_type == "cat": # leave list of colors the same way theme = colormap @@ -421,29 +422,27 @@ def scatterplot_theme(dataframe, headers, diag, size, height, width, title, new_listy.append(listy[j]) # Generate trace with VISIBLE icon if legend_param == 1: - if (listx == listy) and (diag == 'histogram'): + if (listx == listy) and (diag == "histogram"): trace = graph_objs.Histogram( x=new_listx, - marker=dict( - color=theme[c_indx]), - showlegend=True + marker=dict(color=theme[c_indx]), + showlegend=True, ) - elif (listx == listy) and (diag == 'box'): + elif (listx == listy) and (diag == "box"): trace = graph_objs.Box( y=new_listx, name=None, - marker=dict( - color=theme[c_indx]), - showlegend=True + marker=dict(color=theme[c_indx]), + showlegend=True, ) else: - if 'marker' in kwargs: - kwargs['marker']['size'] = size - kwargs['marker']['color'] = theme[c_indx] + if "marker" in kwargs: + kwargs["marker"]["size"] = size + kwargs["marker"]["color"] = theme[c_indx] trace = graph_objs.Scatter( x=new_listx, y=new_listy, - mode='markers', + mode="markers", name=name, showlegend=True, **kwargs @@ -452,39 +451,35 @@ def scatterplot_theme(dataframe, headers, diag, size, height, width, title, trace = graph_objs.Scatter( x=new_listx, y=new_listy, - mode='markers', + mode="markers", name=name, - marker=dict( - size=size, - color=theme[c_indx]), + marker=dict(size=size, color=theme[c_indx]), showlegend=True, **kwargs ) # Generate trace with INVISIBLE icon else: - if (listx == listy) and (diag == 'histogram'): + if (listx == listy) and (diag == "histogram"): trace = graph_objs.Histogram( x=new_listx, - marker=dict( - color=theme[c_indx]), - showlegend=False + marker=dict(color=theme[c_indx]), + showlegend=False, ) - elif (listx == listy) and (diag == 'box'): + elif (listx == listy) and (diag == "box"): trace = graph_objs.Box( y=new_listx, name=None, - marker=dict( - color=theme[c_indx]), - showlegend=False + marker=dict(color=theme[c_indx]), + showlegend=False, ) else: - if 'marker' in kwargs: - kwargs['marker']['size'] = size - kwargs['marker']['color'] = theme[c_indx] + if "marker" in kwargs: + kwargs["marker"]["size"] = size + kwargs["marker"]["color"] = theme[c_indx] trace = graph_objs.Scatter( x=new_listx, y=new_listy, - mode='markers', + mode="markers", name=name, showlegend=False, **kwargs @@ -493,11 +488,9 @@ def scatterplot_theme(dataframe, headers, diag, size, height, width, title, trace = graph_objs.Scatter( x=new_listx, y=new_listy, - mode='markers', + mode="markers", name=name, - marker=dict( - size=size, - color=theme[c_indx]), + marker=dict(size=size, color=theme[c_indx]), showlegend=False, **kwargs ) @@ -514,43 +507,40 @@ def scatterplot_theme(dataframe, headers, diag, size, height, width, title, for y_index in indices: for x_index in indices: for name in sorted(trace_list[trace_index].keys()): - fig.append_trace( - trace_list[trace_index][name], - y_index, - x_index) + fig.append_trace(trace_list[trace_index][name], y_index, x_index) trace_index += 1 # Insert headers into the figure for j in range(dim): - xaxis_key = 'xaxis{}'.format((dim * dim) - dim + 1 + j) - fig['layout'][xaxis_key].update(title=headers[j]) + xaxis_key = "xaxis{}".format((dim * dim) - dim + 1 + j) + fig["layout"][xaxis_key].update(title=headers[j]) for j in range(dim): - yaxis_key = 'yaxis{}'.format(1 + (dim * j)) - fig['layout'][yaxis_key].update(title=headers[j]) + yaxis_key = "yaxis{}".format(1 + (dim * j)) + fig["layout"][yaxis_key].update(title=headers[j]) hide_tick_labels_from_box_subplots(fig) - if diag == 'histogram': - fig['layout'].update( - height=height, width=width, + if diag == "histogram": + fig["layout"].update( + height=height, + width=width, title=title, showlegend=True, - barmode='stack') + barmode="stack", + ) return fig - elif diag == 'box': - fig['layout'].update( - height=height, width=width, - title=title, - showlegend=True) + elif diag == "box": + fig["layout"].update( + height=height, width=width, title=title, showlegend=True + ) return fig else: - fig['layout'].update( - height=height, width=width, - title=title, - showlegend=True) + fig["layout"].update( + height=height, width=width, title=title, showlegend=True + ) return fig else: @@ -558,12 +548,12 @@ def scatterplot_theme(dataframe, headers, diag, size, height, width, title, intervals = utils.endpts_to_intervals(endpts) # Convert colormap to list of n RGB tuples - if colormap_type == 'seq': + if colormap_type == "seq": foo = clrs.color_parser(colormap, clrs.unlabel_rgb) foo = clrs.n_colors(foo[0], foo[1], len(intervals)) theme = clrs.color_parser(foo, clrs.label_rgb) - if colormap_type == 'cat': + if colormap_type == "cat": # leave list of colors the same way theme = colormap @@ -589,30 +579,27 @@ def scatterplot_theme(dataframe, headers, diag, size, height, width, title, new_listy.append(listy[j]) # Generate trace with VISIBLE icon if legend_param == 1: - if (listx == listy) and (diag == 'histogram'): + if (listx == listy) and (diag == "histogram"): trace = graph_objs.Histogram( x=new_listx, - marker=dict( - color=theme[c_indx]), - showlegend=True + marker=dict(color=theme[c_indx]), + showlegend=True, ) - elif (listx == listy) and (diag == 'box'): + elif (listx == listy) and (diag == "box"): trace = graph_objs.Box( y=new_listx, name=None, - marker=dict( - color=theme[c_indx]), - showlegend=True + marker=dict(color=theme[c_indx]), + showlegend=True, ) else: - if 'marker' in kwargs: - kwargs['marker']['size'] = size - (kwargs['marker'] - ['color']) = theme[c_indx] + if "marker" in kwargs: + kwargs["marker"]["size"] = size + (kwargs["marker"]["color"]) = theme[c_indx] trace = graph_objs.Scatter( x=new_listx, y=new_listy, - mode='markers', + mode="markers", name=str(interval), showlegend=True, **kwargs @@ -621,40 +608,35 @@ def scatterplot_theme(dataframe, headers, diag, size, height, width, title, trace = graph_objs.Scatter( x=new_listx, y=new_listy, - mode='markers', + mode="markers", name=str(interval), - marker=dict( - size=size, - color=theme[c_indx]), + marker=dict(size=size, color=theme[c_indx]), showlegend=True, **kwargs ) # Generate trace with INVISIBLE icon else: - if (listx == listy) and (diag == 'histogram'): + if (listx == listy) and (diag == "histogram"): trace = graph_objs.Histogram( x=new_listx, - marker=dict( - color=theme[c_indx]), - showlegend=False + marker=dict(color=theme[c_indx]), + showlegend=False, ) - elif (listx == listy) and (diag == 'box'): + elif (listx == listy) and (diag == "box"): trace = graph_objs.Box( y=new_listx, name=None, - marker=dict( - color=theme[c_indx]), - showlegend=False + marker=dict(color=theme[c_indx]), + showlegend=False, ) else: - if 'marker' in kwargs: - kwargs['marker']['size'] = size - (kwargs['marker'] - ['color']) = theme[c_indx] + if "marker" in kwargs: + kwargs["marker"]["size"] = size + (kwargs["marker"]["color"]) = theme[c_indx] trace = graph_objs.Scatter( x=new_listx, y=new_listy, - mode='markers', + mode="markers", name=str(interval), showlegend=False, **kwargs @@ -663,11 +645,9 @@ def scatterplot_theme(dataframe, headers, diag, size, height, width, title, trace = graph_objs.Scatter( x=new_listx, y=new_listy, - mode='markers', + mode="markers", name=str(interval), - marker=dict( - size=size, - color=theme[c_indx]), + marker=dict(size=size, color=theme[c_indx]), showlegend=False, **kwargs ) @@ -685,41 +665,40 @@ def scatterplot_theme(dataframe, headers, diag, size, height, width, title, for x_index in indices: for interval in intervals: fig.append_trace( - trace_list[trace_index][str(interval)], - y_index, - x_index) + trace_list[trace_index][str(interval)], y_index, x_index + ) trace_index += 1 # Insert headers into the figure for j in range(dim): - xaxis_key = 'xaxis{}'.format((dim * dim) - dim + 1 + j) - fig['layout'][xaxis_key].update(title=headers[j]) + xaxis_key = "xaxis{}".format((dim * dim) - dim + 1 + j) + fig["layout"][xaxis_key].update(title=headers[j]) for j in range(dim): - yaxis_key = 'yaxis{}'.format(1 + (dim * j)) - fig['layout'][yaxis_key].update(title=headers[j]) + yaxis_key = "yaxis{}".format(1 + (dim * j)) + fig["layout"][yaxis_key].update(title=headers[j]) hide_tick_labels_from_box_subplots(fig) - if diag == 'histogram': - fig['layout'].update( - height=height, width=width, + if diag == "histogram": + fig["layout"].update( + height=height, + width=width, title=title, showlegend=True, - barmode='stack') + barmode="stack", + ) return fig - elif diag == 'box': - fig['layout'].update( - height=height, width=width, - title=title, - showlegend=True) + elif diag == "box": + fig["layout"].update( + height=height, width=width, title=title, showlegend=True + ) return fig else: - fig['layout'].update( - height=height, width=width, - title=title, - showlegend=True) + fig["layout"].update( + height=height, width=width, title=title, showlegend=True + ) return fig else: @@ -731,7 +710,7 @@ def scatterplot_theme(dataframe, headers, diag, size, height, width, title, color = [] for incr in range(len(theme)): - color.append([1. / (len(theme) - 1) * incr, theme[incr]]) + color.append([1.0 / (len(theme) - 1) * incr, theme[incr]]) dim = len(dataframe) fig = make_subplots(rows=dim, cols=dim, print_grid=False) @@ -742,30 +721,24 @@ def scatterplot_theme(dataframe, headers, diag, size, height, width, title, for listx in dataframe: # Generate trace with VISIBLE icon if legend_param == 1: - if (listx == listy) and (diag == 'histogram'): + if (listx == listy) and (diag == "histogram"): trace = graph_objs.Histogram( - x=listx, - marker=dict( - color=theme[0]), - showlegend=False + x=listx, marker=dict(color=theme[0]), showlegend=False ) - elif (listx == listy) and (diag == 'box'): + elif (listx == listy) and (diag == "box"): trace = graph_objs.Box( - y=listx, - marker=dict( - color=theme[0]), - showlegend=False + y=listx, marker=dict(color=theme[0]), showlegend=False ) else: - if 'marker' in kwargs: - kwargs['marker']['size'] = size - kwargs['marker']['color'] = index_vals - kwargs['marker']['colorscale'] = color - kwargs['marker']['showscale'] = True + if "marker" in kwargs: + kwargs["marker"]["size"] = size + kwargs["marker"]["color"] = index_vals + kwargs["marker"]["colorscale"] = color + kwargs["marker"]["showscale"] = True trace = graph_objs.Scatter( x=listx, y=listy, - mode='markers', + mode="markers", showlegend=False, **kwargs ) @@ -773,41 +746,36 @@ def scatterplot_theme(dataframe, headers, diag, size, height, width, title, trace = graph_objs.Scatter( x=listx, y=listy, - mode='markers', + mode="markers", marker=dict( size=size, color=index_vals, colorscale=color, - showscale=True), + showscale=True, + ), showlegend=False, **kwargs ) # Generate trace with INVISIBLE icon else: - if (listx == listy) and (diag == 'histogram'): + if (listx == listy) and (diag == "histogram"): trace = graph_objs.Histogram( - x=listx, - marker=dict( - color=theme[0]), - showlegend=False + x=listx, marker=dict(color=theme[0]), showlegend=False ) - elif (listx == listy) and (diag == 'box'): + elif (listx == listy) and (diag == "box"): trace = graph_objs.Box( - y=listx, - marker=dict( - color=theme[0]), - showlegend=False + y=listx, marker=dict(color=theme[0]), showlegend=False ) else: - if 'marker' in kwargs: - kwargs['marker']['size'] = size - kwargs['marker']['color'] = index_vals - kwargs['marker']['colorscale'] = color - kwargs['marker']['showscale'] = False + if "marker" in kwargs: + kwargs["marker"]["size"] = size + kwargs["marker"]["color"] = index_vals + kwargs["marker"]["colorscale"] = color + kwargs["marker"]["showscale"] = False trace = graph_objs.Scatter( x=listx, y=listy, - mode='markers', + mode="markers", showlegend=False, **kwargs ) @@ -815,12 +783,13 @@ def scatterplot_theme(dataframe, headers, diag, size, height, width, title, trace = graph_objs.Scatter( x=listx, y=listy, - mode='markers', + mode="markers", marker=dict( size=size, color=index_vals, colorscale=color, - showscale=False), + showscale=False, + ), showlegend=False, **kwargs ) @@ -832,49 +801,58 @@ def scatterplot_theme(dataframe, headers, diag, size, height, width, title, indices = range(1, dim + 1) for y_index in indices: for x_index in indices: - fig.append_trace(trace_list[trace_index], - y_index, - x_index) + fig.append_trace(trace_list[trace_index], y_index, x_index) trace_index += 1 # Insert headers into the figure for j in range(dim): - xaxis_key = 'xaxis{}'.format((dim * dim) - dim + 1 + j) - fig['layout'][xaxis_key].update(title=headers[j]) + xaxis_key = "xaxis{}".format((dim * dim) - dim + 1 + j) + fig["layout"][xaxis_key].update(title=headers[j]) for j in range(dim): - yaxis_key = 'yaxis{}'.format(1 + (dim * j)) - fig['layout'][yaxis_key].update(title=headers[j]) + yaxis_key = "yaxis{}".format(1 + (dim * j)) + fig["layout"][yaxis_key].update(title=headers[j]) hide_tick_labels_from_box_subplots(fig) - if diag == 'histogram': - fig['layout'].update( - height=height, width=width, + if diag == "histogram": + fig["layout"].update( + height=height, + width=width, title=title, showlegend=True, - barmode='stack') + barmode="stack", + ) return fig - elif diag == 'box': - fig['layout'].update( - height=height, width=width, - title=title, - showlegend=True) + elif diag == "box": + fig["layout"].update( + height=height, width=width, title=title, showlegend=True + ) return fig else: - fig['layout'].update( - height=height, width=width, - title=title, - showlegend=True) + fig["layout"].update( + height=height, width=width, title=title, showlegend=True + ) return fig -def create_scatterplotmatrix(df, index=None, endpts=None, diag='scatter', - height=500, width=500, size=6, - title='Scatterplot Matrix', colormap=None, - colormap_type='cat', dataframe=None, - headers=None, index_vals=None, **kwargs): +def create_scatterplotmatrix( + df, + index=None, + endpts=None, + diag="scatter", + height=500, + width=500, + size=6, + title="Scatterplot Matrix", + colormap=None, + colormap_type="cat", + dataframe=None, + headers=None, + index_vals=None, + **kwargs +): """ Returns data for a scatterplot matrix. @@ -1082,8 +1060,12 @@ def create_scatterplotmatrix(df, index=None, endpts=None, diag='scatter', # Validate colormap if isinstance(colormap, dict): - colormap = clrs.validate_colors_dict(colormap, 'rgb') - elif isinstance(colormap, six.string_types) and 'rgb' not in colormap and '#' not in colormap: + colormap = clrs.validate_colors_dict(colormap, "rgb") + elif ( + isinstance(colormap, six.string_types) + and "rgb" not in colormap + and "#" not in colormap + ): if colormap not in clrs.PLOTLY_SCALES.keys(): raise exceptions.PlotlyError( "If 'colormap' is a string, it must be the name " @@ -1095,10 +1077,9 @@ def create_scatterplotmatrix(df, index=None, endpts=None, diag='scatter', colormap = clrs.colorscale_to_colors(clrs.PLOTLY_SCALES[colormap]) # keep only first and last item - fix later colormap = [colormap[0]] + [colormap[-1]] - colormap = clrs.validate_colors(colormap, 'rgb') + colormap = clrs.validate_colors(colormap, "rgb") else: - colormap = clrs.validate_colors(colormap, 'rgb') - + colormap = clrs.validate_colors(colormap, "rgb") if not index: for name in df: @@ -1107,16 +1088,19 @@ def create_scatterplotmatrix(df, index=None, endpts=None, diag='scatter', dataframe.append(df[name].values.tolist()) # Check for same data-type in df columns utils.validate_dataframe(dataframe) - figure = scatterplot(dataframe, headers, diag, size, height, width, - title, **kwargs) + figure = scatterplot( + dataframe, headers, diag, size, height, width, title, **kwargs + ) return figure else: # Validate index selection if index not in df: - raise exceptions.PlotlyError("Make sure you set the index " - "input variable to one of the " - "column names of your " - "dataframe.") + raise exceptions.PlotlyError( + "Make sure you set the index " + "input variable to one of the " + "column names of your " + "dataframe." + ) index_vals = df[index].values.tolist() for name in df: if name != index: @@ -1133,21 +1117,43 @@ def create_scatterplotmatrix(df, index=None, endpts=None, diag='scatter', if isinstance(colormap, dict): for key in colormap: if not all(index in colormap for index in index_vals): - raise exceptions.PlotlyError("If colormap is a " - "dictionary, all the " - "names in the index " - "must be keys.") + raise exceptions.PlotlyError( + "If colormap is a " + "dictionary, all the " + "names in the index " + "must be keys." + ) figure = scatterplot_dict( - dataframe, headers, diag, size, height, width, title, - index, index_vals, endpts, colormap, colormap_type, + dataframe, + headers, + diag, + size, + height, + width, + title, + index, + index_vals, + endpts, + colormap, + colormap_type, **kwargs ) return figure else: figure = scatterplot_theme( - dataframe, headers, diag, size, height, width, title, - index, index_vals, endpts, colormap, colormap_type, + dataframe, + headers, + diag, + size, + height, + width, + title, + index, + index_vals, + endpts, + colormap, + colormap_type, **kwargs ) return figure diff --git a/packages/python/plotly/plotly/figure_factory/_streamline.py b/packages/python/plotly/plotly/figure_factory/_streamline.py index a6773420f48..88a790d87fe 100644 --- a/packages/python/plotly/plotly/figure_factory/_streamline.py +++ b/packages/python/plotly/plotly/figure_factory/_streamline.py @@ -6,7 +6,7 @@ from plotly.figure_factory import utils from plotly.graph_objs import graph_objs -np = optional_imports.get_module('numpy') +np = optional_imports.get_module("numpy") def validate_streamline(x, y): @@ -25,18 +25,20 @@ def validate_streamline(x, y): if np is False: raise ImportError("FigureFactory.create_streamline requires numpy") for index in range(len(x) - 1): - if ((x[index + 1] - x[index]) - (x[1] - x[0])) > .0001: - raise exceptions.PlotlyError("x must be a 1 dimensional, " - "evenly spaced array") + if ((x[index + 1] - x[index]) - (x[1] - x[0])) > 0.0001: + raise exceptions.PlotlyError( + "x must be a 1 dimensional, " "evenly spaced array" + ) for index in range(len(y) - 1): - if ((y[index + 1] - y[index]) - - (y[1] - y[0])) > .0001: - raise exceptions.PlotlyError("y must be a 1 dimensional, " - "evenly spaced array") + if ((y[index + 1] - y[index]) - (y[1] - y[0])) > 0.0001: + raise exceptions.PlotlyError( + "y must be a 1 dimensional, " "evenly spaced array" + ) -def create_streamline(x, y, u, v, density=1, angle=math.pi / 9, - arrow_scale=.09, **kwargs): +def create_streamline( + x, y, u, v, density=1, angle=math.pi / 9, arrow_scale=0.09, **kwargs +): """ Returns data for a streamline plot. @@ -120,19 +122,19 @@ def create_streamline(x, y, u, v, density=1, angle=math.pi / 9, validate_streamline(x, y) utils.validate_positive_scalars(density=density, arrow_scale=arrow_scale) - streamline_x, streamline_y = _Streamline(x, y, u, v, - density, angle, - arrow_scale).sum_streamlines() - arrow_x, arrow_y = _Streamline(x, y, u, v, - density, angle, - arrow_scale).get_streamline_arrows() + streamline_x, streamline_y = _Streamline( + x, y, u, v, density, angle, arrow_scale + ).sum_streamlines() + arrow_x, arrow_y = _Streamline( + x, y, u, v, density, angle, arrow_scale + ).get_streamline_arrows() - streamline = graph_objs.Scatter(x=streamline_x + arrow_x, - y=streamline_y + arrow_y, - mode='lines', **kwargs) + streamline = graph_objs.Scatter( + x=streamline_x + arrow_x, y=streamline_y + arrow_y, mode="lines", **kwargs + ) data = [streamline] - layout = graph_objs.Layout(hovermode='closest') + layout = graph_objs.Layout(hovermode="closest") return graph_objs.Figure(data=data, layout=layout) @@ -141,9 +143,8 @@ class _Streamline(object): """ Refer to FigureFactory.create_streamline() for docstring """ - def __init__(self, x, y, u, v, - density, angle, - arrow_scale, **kwargs): + + def __init__(self, x, y, u, v, density, angle, arrow_scale, **kwargs): self.x = np.array(x) self.y = np.array(y) self.u = np.array(u) @@ -180,8 +181,7 @@ def blank_pos(self, xi, yi): """ Set up positions for trajectories to be used with rk4 function. """ - return (int((xi / self.spacing_x) + 0.5), - int((yi / self.spacing_y) + 0.5)) + return (int((xi / self.spacing_x) + 0.5), int((yi / self.spacing_y) + 0.5)) def value_at(self, a, xi, yi): """ @@ -210,20 +210,20 @@ def rk4_integrate(self, x0, y0): Adapted from Bokeh's streamline -uses Runge-Kutta method to fill x and y trajectories then checks length of traj (s in units of axes) """ + def f(xi, yi): - dt_ds = 1. / self.value_at(self.speed, xi, yi) + dt_ds = 1.0 / self.value_at(self.speed, xi, yi) ui = self.value_at(self.u, xi, yi) vi = self.value_at(self.v, xi, yi) return ui * dt_ds, vi * dt_ds def g(xi, yi): - dt_ds = 1. / self.value_at(self.speed, xi, yi) + dt_ds = 1.0 / self.value_at(self.speed, xi, yi) ui = self.value_at(self.u, xi, yi) vi = self.value_at(self.v, xi, yi) return -ui * dt_ds, -vi * dt_ds - check = lambda xi, yi: (0 <= xi < len(self.x) - 1 and - 0 <= yi < len(self.y) - 1) + check = lambda xi, yi: (0 <= xi < len(self.x) - 1 and 0 <= yi < len(self.y) - 1) xb_changes = [] yb_changes = [] @@ -240,13 +240,13 @@ def rk4(x0, y0, f): yf_traj.append(yi) try: k1x, k1y = f(xi, yi) - k2x, k2y = f(xi + .5 * ds * k1x, yi + .5 * ds * k1y) - k3x, k3y = f(xi + .5 * ds * k2x, yi + .5 * ds * k2y) + k2x, k2y = f(xi + 0.5 * ds * k1x, yi + 0.5 * ds * k1y) + k3x, k3y = f(xi + 0.5 * ds * k2x, yi + 0.5 * ds * k2y) k4x, k4y = f(xi + ds * k3x, yi + ds * k3y) except IndexError: break - xi += ds * (k1x + 2 * k2x + 2 * k3x + k4x) / 6. - yi += ds * (k1y + 2 * k2y + 2 * k3y + k4y) / 6. + xi += ds * (k1x + 2 * k2x + 2 * k3x + k4x) / 6.0 + yi += ds * (k1y + 2 * k2y + 2 * k3y + k4y) / 6.0 if not check(xi, yi): break stotal += ds @@ -272,7 +272,7 @@ def rk4(x0, y0, f): if len(x_traj) < 1: return None - if stotal > .2: + if stotal > 0.2: initxb, inityb = self.blank_pos(x0, y0) self.blank[inityb, initxb] = 1 return x_traj, y_traj @@ -309,10 +309,12 @@ def get_streamlines(self): self.traj(indent, xi + indent) self.traj(self.density - 1 - indent, xi + indent) - self.st_x = [np.array(t[0]) * self.delta_x + self.x[0] for t in - self.trajectories] - self.st_y = [np.array(t[1]) * self.delta_y + self.y[0] for t in - self.trajectories] + self.st_x = [ + np.array(t[0]) * self.delta_x + self.x[0] for t in self.trajectories + ] + self.st_y = [ + np.array(t[1]) * self.delta_y + self.y[0] for t in self.trajectories + ] for index in range(len(self.st_x)): self.st_x[index] = self.st_x[index].tolist() @@ -342,24 +344,23 @@ def get_streamline_arrows(self): arrow_start_x = np.empty((len(self.st_x))) arrow_start_y = np.empty((len(self.st_y))) for index in range(len(self.st_x)): - arrow_end_x[index] = (self.st_x[index] - [int(len(self.st_x[index]) / 3)]) - arrow_start_x[index] = (self.st_x[index] - [(int(len(self.st_x[index]) / 3)) - 1]) - arrow_end_y[index] = (self.st_y[index] - [int(len(self.st_y[index]) / 3)]) - arrow_start_y[index] = (self.st_y[index] - [(int(len(self.st_y[index]) / 3)) - 1]) + arrow_end_x[index] = self.st_x[index][int(len(self.st_x[index]) / 3)] + arrow_start_x[index] = self.st_x[index][ + (int(len(self.st_x[index]) / 3)) - 1 + ] + arrow_end_y[index] = self.st_y[index][int(len(self.st_y[index]) / 3)] + arrow_start_y[index] = self.st_y[index][ + (int(len(self.st_y[index]) / 3)) - 1 + ] dif_x = arrow_end_x - arrow_start_x dif_y = arrow_end_y - arrow_start_y orig_err = np.geterr() - np.seterr(divide='ignore', invalid='ignore') + np.seterr(divide="ignore", invalid="ignore") streamline_ang = np.arctan(dif_y / dif_x) np.seterr(**orig_err) - ang1 = streamline_ang + (self.angle) ang2 = streamline_ang - (self.angle) @@ -391,13 +392,13 @@ def get_streamline_arrows(self): # Combine arrays into matrix arrows_x = np.matrix([point1_x, arrow_end_x, point2_x, space]) arrows_x = np.array(arrows_x) - arrows_x = arrows_x.flatten('F') + arrows_x = arrows_x.flatten("F") arrows_x = arrows_x.tolist() # Combine arrays into matrix arrows_y = np.matrix([point1_y, arrow_end_y, point2_y, space]) arrows_y = np.array(arrows_y) - arrows_y = arrows_y.flatten('F') + arrows_y = arrows_y.flatten("F") arrows_y = arrows_y.tolist() return arrows_x, arrows_y diff --git a/packages/python/plotly/plotly/figure_factory/_table.py b/packages/python/plotly/plotly/figure_factory/_table.py index 3bd48db905d..c4570e2016a 100644 --- a/packages/python/plotly/plotly/figure_factory/_table.py +++ b/packages/python/plotly/plotly/figure_factory/_table.py @@ -3,7 +3,7 @@ from plotly import exceptions, optional_imports from plotly.graph_objs import graph_objs -pd = optional_imports.get_module('pandas') +pd = optional_imports.get_module("pandas") def validate_table(table_text, font_colors): @@ -19,13 +19,22 @@ def validate_table(table_text, font_colors): """ font_colors_len_options = [1, 3, len(table_text)] if len(font_colors) not in font_colors_len_options: - raise exceptions.PlotlyError("Oops, font_colors should be a list " - "of length 1, 3 or len(text)") - - -def create_table(table_text, colorscale=None, font_colors=None, - index=False, index_title='', annotation_offset=.45, - height_constant=30, hoverinfo='none', **kwargs): + raise exceptions.PlotlyError( + "Oops, font_colors should be a list " "of length 1, 3 or len(text)" + ) + + +def create_table( + table_text, + colorscale=None, + font_colors=None, + index=False, + index_title="", + annotation_offset=0.45, + height_constant=30, + hoverinfo="none", + **kwargs +): """ BETA function that creates data tables @@ -98,35 +107,68 @@ def create_table(table_text, colorscale=None, font_colors=None, """ # Avoiding mutables in the call signature - colorscale = \ - colorscale if colorscale is not None else [[0, '#00083e'], - [.5, '#ededee'], - [1, '#ffffff']] - font_colors = font_colors if font_colors is not None else ['#ffffff', - '#000000', - '#000000'] + colorscale = ( + colorscale + if colorscale is not None + else [[0, "#00083e"], [0.5, "#ededee"], [1, "#ffffff"]] + ) + font_colors = ( + font_colors if font_colors is not None else ["#ffffff", "#000000", "#000000"] + ) validate_table(table_text, font_colors) - table_matrix = _Table(table_text, colorscale, font_colors, index, - index_title, annotation_offset, - **kwargs).get_table_matrix() - annotations = _Table(table_text, colorscale, font_colors, index, - index_title, annotation_offset, - **kwargs).make_table_annotations() - - trace = dict(type='heatmap', z=table_matrix, opacity=.75, - colorscale=colorscale, showscale=False, - hoverinfo=hoverinfo, **kwargs) + table_matrix = _Table( + table_text, + colorscale, + font_colors, + index, + index_title, + annotation_offset, + **kwargs + ).get_table_matrix() + annotations = _Table( + table_text, + colorscale, + font_colors, + index, + index_title, + annotation_offset, + **kwargs + ).make_table_annotations() + + trace = dict( + type="heatmap", + z=table_matrix, + opacity=0.75, + colorscale=colorscale, + showscale=False, + hoverinfo=hoverinfo, + **kwargs + ) data = [trace] - layout = dict(annotations=annotations, - height=len(table_matrix) * height_constant + 50, - margin=dict(t=0, b=0, r=0, l=0), - yaxis=dict(autorange='reversed', zeroline=False, - gridwidth=2, ticks='', dtick=1, tick0=.5, - showticklabels=False), - xaxis=dict(zeroline=False, gridwidth=2, ticks='', - dtick=1, tick0=-0.5, showticklabels=False)) + layout = dict( + annotations=annotations, + height=len(table_matrix) * height_constant + 50, + margin=dict(t=0, b=0, r=0, l=0), + yaxis=dict( + autorange="reversed", + zeroline=False, + gridwidth=2, + ticks="", + dtick=1, + tick0=0.5, + showticklabels=False, + ), + xaxis=dict( + zeroline=False, + gridwidth=2, + ticks="", + dtick=1, + tick0=-0.5, + showticklabels=False, + ), + ) return graph_objs.Figure(data=data, layout=layout) @@ -134,8 +176,17 @@ class _Table(object): """ Refer to TraceFactory.create_table() for docstring """ - def __init__(self, table_text, colorscale, font_colors, index, - index_title, annotation_offset, **kwargs): + + def __init__( + self, + table_text, + colorscale, + font_colors, + index, + index_title, + annotation_offset, + **kwargs + ): if pd and isinstance(table_text, pd.DataFrame): headers = table_text.columns.tolist() table_text_index = table_text.index.tolist() @@ -161,7 +212,7 @@ def get_table_matrix(self): table coloring. """ header = [0] * len(self.table_text[0]) - odd_row = [.5] * len(self.table_text[0]) + odd_row = [0.5] * len(self.table_text[0]) even_row = [1] * len(self.table_text[0]) table_matrix = [None] * len(self.table_text) table_matrix[0] = header @@ -186,7 +237,7 @@ def get_table_font_color(self): in table. """ if len(self.font_colors) == 1: - all_font_colors = self.font_colors*len(self.table_text) + all_font_colors = self.font_colors * len(self.table_text) elif len(self.font_colors) == 3: all_font_colors = list(range(len(self.table_text))) all_font_colors[0] = self.font_colors[0] @@ -197,7 +248,7 @@ def get_table_font_color(self): elif len(self.font_colors) == len(self.table_text): all_font_colors = self.font_colors else: - all_font_colors = ['#000000']*len(self.table_text) + all_font_colors = ["#000000"] * len(self.table_text) return all_font_colors def make_table_annotations(self): @@ -213,21 +264,26 @@ def make_table_annotations(self): for n, row in enumerate(self.table_text): for m, val in enumerate(row): # Bold text in header and index - format_text = ('' + str(val) + '' if n == 0 or - self.index and m < 1 else str(val)) + format_text = ( + "" + str(val) + "" + if n == 0 or self.index and m < 1 + else str(val) + ) # Match font color of index to font color of header - font_color = (self.font_colors[0] if self.index and m == 0 - else all_font_colors[n]) + font_color = ( + self.font_colors[0] if self.index and m == 0 else all_font_colors[n] + ) annotations.append( graph_objs.layout.Annotation( text=format_text, x=self.x[m] - self.annotation_offset, y=self.y[n], - xref='x1', - yref='y1', + xref="x1", + yref="y1", align="left", xanchor="left", font=dict(color=font_color), - showarrow=False) + showarrow=False, + ) ) return annotations diff --git a/packages/python/plotly/plotly/figure_factory/_ternary_contour.py b/packages/python/plotly/plotly/figure_factory/_ternary_contour.py index 1cca22a7c28..f45a9fcc135 100644 --- a/packages/python/plotly/plotly/figure_factory/_ternary_contour.py +++ b/packages/python/plotly/plotly/figure_factory/_ternary_contour.py @@ -5,16 +5,17 @@ from plotly import optional_imports from plotly.graph_objs import graph_objs as go -np = optional_imports.get_module('numpy') -sk_measure = optional_imports.get_module('skimage.measure') -scipy_interp = optional_imports.get_module('scipy.interpolate') +np = optional_imports.get_module("numpy") +sk_measure = optional_imports.get_module("skimage.measure") +scipy_interp = optional_imports.get_module("scipy.interpolate") # -------------------------- Layout ------------------------------ -def _ternary_layout(title='Ternary contour plot', width=550, height=525, - pole_labels=['a', 'b', 'c']): +def _ternary_layout( + title="Ternary contour plot", width=550, height=525, pole_labels=["a", "b", "c"] +): """ Layout of ternary contour plot, to be passed to ``go.FigureWidget`` object. @@ -30,20 +31,24 @@ def _ternary_layout(title='Ternary contour plot', width=550, height=525, pole_labels : str, default ['a', 'b', 'c'] Names of the three poles of the triangle. """ - return dict(title=title, - width=width, height=height, - ternary=dict(sum=1, - aaxis=dict(title=dict(text=pole_labels[0]), - min=0.01, linewidth=2, - ticks='outside'), - baxis=dict(title=dict(text=pole_labels[1]), - min=0.01, linewidth=2, - ticks='outside'), - caxis=dict(title=dict(text=pole_labels[2]), - min=0.01, linewidth=2, - ticks='outside')), - showlegend=False, - ) + return dict( + title=title, + width=width, + height=height, + ternary=dict( + sum=1, + aaxis=dict( + title=dict(text=pole_labels[0]), min=0.01, linewidth=2, ticks="outside" + ), + baxis=dict( + title=dict(text=pole_labels[1]), min=0.01, linewidth=2, ticks="outside" + ), + caxis=dict( + title=dict(text=pole_labels[2]), min=0.01, linewidth=2, ticks="outside" + ), + ), + showlegend=False, + ) # ------------- Transformations of coordinates ------------------- @@ -70,13 +75,15 @@ def _replace_zero_coords(ternary_data, delta=0.0005): using nonparametric imputation, Mathematical Geology 35 (2003), pp 253-278. """ - zero_mask = (ternary_data == 0) + zero_mask = ternary_data == 0 is_any_coord_zero = np.any(zero_mask, axis=0) unity_complement = 1 - delta * is_any_coord_zero if np.any(unity_complement) < 0: - raise ValueError('The provided value of delta led to negative' - 'ternary coords.Set a smaller delta') + raise ValueError( + "The provided value of delta led to negative" + "ternary coords.Set a smaller delta" + ) ternary_data = np.where(zero_mask, delta, unity_complement * ternary_data) return ternary_data @@ -99,8 +106,9 @@ def _ilr_transform(barycentric): """ barycentric = np.asarray(barycentric) x_0 = np.log(barycentric[0] / barycentric[1]) / np.sqrt(2) - x_1 = 1. / np.sqrt(6) * np.log(barycentric[0] * barycentric[1] / - barycentric[2] ** 2) + x_1 = ( + 1.0 / np.sqrt(6) * np.log(barycentric[0] * barycentric[1] / barycentric[2] ** 2) + ) ilr_tdata = np.stack((x_0, x_1)) return ilr_tdata @@ -123,16 +131,14 @@ def _ilr_inverse(x): Intl Assoc for Math Geology, 2003, pp 31-30. """ x = np.array(x) - matrix = np.array([[0.5, 1, 1.], - [-0.5, 1, 1.], - [0., 0., 1.]]) + matrix = np.array([[0.5, 1, 1.0], [-0.5, 1, 1.0], [0.0, 0.0, 1.0]]) s = np.sqrt(2) / 2 t = np.sqrt(3 / 2) - Sk = np.einsum('ik, kj -> ij', np.array([[s, t], [-s, t]]), x) + Sk = np.einsum("ik, kj -> ij", np.array([[s, t], [-s, t]]), x) Z = -np.log(1 + np.exp(Sk).sum(axis=0)) - log_barycentric = np.einsum('ik, kj -> ij', - matrix, - np.stack((2*s*x[0], t*x[1], Z))) + log_barycentric = np.einsum( + "ik, kj -> ij", matrix, np.stack((2 * s * x[0], t * x[1], Z)) + ) iilr_tdata = np.exp(log_barycentric) return iilr_tdata @@ -153,15 +159,20 @@ def _prepare_barycentric_coord(b_coords): Check ternary coordinates and return the right barycentric coordinates. """ if not isinstance(b_coords, (list, np.ndarray)): - raise ValueError('Data should be either an array of shape (n,m),' - 'or a list of n m-lists, m=2 or 3') + raise ValueError( + "Data should be either an array of shape (n,m)," + "or a list of n m-lists, m=2 or 3" + ) b_coords = np.asarray(b_coords) if b_coords.shape[0] not in (2, 3): - raise ValueError('A point should have 2 (a, b) or 3 (a, b, c)' - 'barycentric coordinates') - if ((len(b_coords) == 3) and - not np.allclose(b_coords.sum(axis=0), 1, rtol=0.01) and - not np.allclose(b_coords.sum(axis=0), 100, rtol=0.01)): + raise ValueError( + "A point should have 2 (a, b) or 3 (a, b, c)" "barycentric coordinates" + ) + if ( + (len(b_coords) == 3) + and not np.allclose(b_coords.sum(axis=0), 1, rtol=0.01) + and not np.allclose(b_coords.sum(axis=0), 100, rtol=0.01) + ): msg = "The sum of coordinates should be 1 or 100 for all data points" raise ValueError(msg) @@ -171,11 +182,11 @@ def _prepare_barycentric_coord(b_coords): else: A, B, C = b_coords / b_coords.sum(axis=0) if np.any(np.stack((A, B, C)) < 0): - raise ValueError('Barycentric coordinates should be positive.') + raise ValueError("Barycentric coordinates should be positive.") return np.stack((A, B, C)) -def _compute_grid(coordinates, values, interp_mode='ilr'): +def _compute_grid(coordinates, values, interp_mode="ilr"): """ Transform data points with Cartesian or ILR mapping, then Compute interpolation on a regular grid. @@ -190,10 +201,10 @@ def _compute_grid(coordinates, values, interp_mode='ilr'): interp_mode : 'ilr' (default) or 'cartesian' Defines how data are interpolated to compute contours. """ - if interp_mode == 'cartesian': + if interp_mode == "cartesian": M, invM = _transform_barycentric_cartesian() - coord_points = np.einsum('ik, kj -> ij', M, coordinates) - elif interp_mode == 'ilr': + coord_points = np.einsum("ik, kj -> ij", M, coordinates) + elif interp_mode == "ilr": coordinates = _replace_zero_coords(coordinates) coord_points = _ilr_transform(coordinates) else: @@ -207,12 +218,12 @@ def _compute_grid(coordinates, values, interp_mode='ilr'): grid_x, grid_y = np.meshgrid(gr_x, gr_y) # We use cubic interpolation, except outside of the convex hull # of data points where we use nearest neighbor values. - grid_z = scipy_interp.griddata(coord_points[:2].T, values, - (grid_x, grid_y), - method='cubic') - grid_z_other = scipy_interp.griddata(coord_points[:2].T, values, - (grid_x, grid_y), - method='nearest') + grid_z = scipy_interp.griddata( + coord_points[:2].T, values, (grid_x, grid_y), method="cubic" + ) + grid_z_other = scipy_interp.griddata( + coord_points[:2].T, values, (grid_x, grid_y), method="nearest" + ) # mask_nan = np.isnan(grid_z) # grid_z[mask_nan] = grid_z_other[mask_nan] return grid_z, gr_x, gr_y @@ -222,8 +233,7 @@ def _compute_grid(coordinates, values, interp_mode='ilr'): def _polygon_area(x, y): - return (0.5 * np.abs(np.dot(x, np.roll(y, 1)) - - np.dot(y, np.roll(x, 1)))) + return 0.5 * np.abs(np.dot(x, np.roll(y, 1)) - np.dot(y, np.roll(x, 1))) def _colors(ncontours, colormap=None): @@ -235,22 +245,22 @@ def _colors(ncontours, colormap=None): else: raise exceptions.PlotlyError( "Colorscale must be a valid Plotly Colorscale." - "The available colorscale names are {}".format( - clrs.PLOTLY_SCALES.keys())) + "The available colorscale names are {}".format(clrs.PLOTLY_SCALES.keys()) + ) values = np.linspace(0, 1, ncontours) vals_cmap = np.array([pair[0] for pair in cmap]) cols = np.array([pair[1] for pair in cmap]) inds = np.searchsorted(vals_cmap, values) - if '#' in cols[0]: # for Viridis + if "#" in cols[0]: # for Viridis cols = [clrs.label_rgb(clrs.hex_to_rgb(col)) for col in cols] colors = [cols[0]] for ind, val in zip(inds[1:], values[1:]): val1, val2 = vals_cmap[ind - 1], vals_cmap[ind] interm = (val - val1) / (val2 - val1) - col = clrs.find_intermediate_color(cols[ind - 1], - cols[ind], interm, - colortype='rgb') + col = clrs.find_intermediate_color( + cols[ind - 1], cols[ind], interm, colortype="rgb" + ) colors.append(col) return colors @@ -261,8 +271,7 @@ def _is_invalid_contour(x, y): Contours with an area of the order as 1 pixel are considered spurious. """ - too_small = (np.all(np.abs(x - x[0]) < 2) and - np.all(np.abs(y - y[0]) < 2)) + too_small = np.all(np.abs(x - x[0]) < 2) and np.all(np.abs(y - y[0]) < 2) return too_small @@ -285,8 +294,10 @@ def _extract_contours(im, values, colors): be a faster way to do this, but it works... """ mask_nan = np.isnan(im) - im_min, im_max = (im[np.logical_not(mask_nan)].min(), - im[np.logical_not(mask_nan)].max()) + im_min, im_max = ( + im[np.logical_not(mask_nan)].min(), + im[np.logical_not(mask_nan)].max(), + ) zz_min = np.copy(im) zz_min[mask_nan] = 2 * im_min zz_max = np.copy(im) @@ -300,10 +311,12 @@ def _extract_contours(im, values, colors): all_contours2.extend(contour_level2) all_values1.extend([val] * len(contour_level1)) all_values2.extend([val] * len(contour_level2)) - all_areas1.extend([_polygon_area(contour.T[1], contour.T[0]) - for contour in contour_level1]) - all_areas2.extend([_polygon_area(contour.T[1], contour.T[0]) - for contour in contour_level2]) + all_areas1.extend( + [_polygon_area(contour.T[1], contour.T[0]) for contour in contour_level1] + ) + all_areas2.extend( + [_polygon_area(contour.T[1], contour.T[0]) for contour in contour_level2] + ) all_colors1.extend([colors[i]] * len(contour_level1)) all_colors2.extend([colors[i]] * len(contour_level2)) if len(all_contours1) <= len(all_contours2): @@ -312,9 +325,19 @@ def _extract_contours(im, values, colors): return all_contours2, all_values2, all_areas2, all_colors2 -def _add_outer_contour(all_contours, all_values, all_areas, all_colors, - values, val_outer, v_min, v_max, - colors, color_min, color_max): +def _add_outer_contour( + all_contours, + all_values, + all_areas, + all_colors, + values, + val_outer, + v_min, + v_max, + colors, + color_min, + color_max, +): """ Utility function for _contour_trace @@ -334,8 +357,9 @@ def _add_outer_contour(all_contours, all_values, all_areas, all_colors, outer_contour = 20 * np.array([[0, 0, 1], [0, 1, 0.5]]).T all_contours = [outer_contour] + all_contours delta_values = np.diff(values)[0] - values = np.concatenate(([values[0] - delta_values], values, - [values[-1] + delta_values])) + values = np.concatenate( + ([values[0] - delta_values], values, [values[-1] + delta_values]) + ) colors = np.concatenate(([color_min], colors, [color_max])) index = np.nonzero(values == val_outer)[0][0] if index < len(values) / 2: @@ -358,11 +382,18 @@ def _add_outer_contour(all_contours, all_values, all_areas, all_colors, return all_contours, all_values, all_areas, all_colors, discrete_cm -def _contour_trace(x, y, z, ncontours=None, - colorscale='Electric', - linecolor='rgb(150,150,150)', interp_mode='llr', - coloring=None, - v_min=0, v_max=1): +def _contour_trace( + x, + y, + z, + ncontours=None, + colorscale="Electric", + linecolor="rgb(150,150,150)", + interp_mode="llr", + coloring=None, + v_min=0, + v_max=1, +): """ Contour trace in Cartesian coordinates. @@ -406,23 +437,32 @@ def _contour_trace(x, y, z, ncontours=None, # Color of line contours if linecolor is None: - linecolor = 'rgb(150, 150, 150)' + linecolor = "rgb(150, 150, 150)" else: colors = [linecolor] * ncontours # Retrieve all contours all_contours, all_values, all_areas, all_colors = _extract_contours( - z, values, colors) + z, values, colors + ) # Now sort contours by decreasing area order = np.argsort(all_areas)[::-1] # Add outer contour - all_contours, all_values, all_areas, all_colors, discrete_cm = \ - _add_outer_contour( - all_contours, all_values, all_areas, all_colors, - values, all_values[order[0]], v_min, v_max, - colors, color_min, color_max) + all_contours, all_values, all_areas, all_colors, discrete_cm = _add_outer_contour( + all_contours, + all_values, + all_areas, + all_colors, + values, + all_values[order[0]], + v_min, + v_max, + colors, + color_min, + color_max, + ) order = np.concatenate(([0], order + 1)) # Compute traces, in the order of decreasing area @@ -433,15 +473,15 @@ def _contour_trace(x, y, z, ncontours=None, for index in order: y_contour, x_contour = all_contours[index].T val = all_values[index] - if interp_mode == 'cartesian': - bar_coords = np.dot(invM, - np.stack((dx * x_contour, - dy * y_contour, - np.ones(x_contour.shape)))) - elif interp_mode == 'ilr': - bar_coords = _ilr_inverse(np.stack((dx * x_contour + x.min(), - dy * y_contour + - y.min()))) + if interp_mode == "cartesian": + bar_coords = np.dot( + invM, + np.stack((dx * x_contour, dy * y_contour, np.ones(x_contour.shape))), + ) + elif interp_mode == "ilr": + bar_coords = _ilr_inverse( + np.stack((dx * x_contour + x.min(), dy * y_contour + y.min())) + ) if index == 0: # outer triangle a = np.array([1, 0, 0]) b = np.array([0, 1, 0]) @@ -451,18 +491,22 @@ def _contour_trace(x, y, z, ncontours=None, if _is_invalid_contour(x_contour, y_contour): continue - _col = all_colors[index] if coloring == 'lines' else linecolor + _col = all_colors[index] if coloring == "lines" else linecolor trace = dict( - type='scatterternary', - a=a, b=b, c=c, mode='lines', - line=dict(color=_col, shape='spline', width=1), - fill='toself', fillcolor=all_colors[index], + type="scatterternary", + a=a, + b=b, + c=c, + mode="lines", + line=dict(color=_col, shape="spline", width=1), + fill="toself", + fillcolor=all_colors[index], showlegend=True, - hoverinfo='skip', - name='%.3f' % val + hoverinfo="skip", + name="%.3f" % val, ) - if coloring == 'lines': - trace['fill'] = None + if coloring == "lines": + trace["fill"] = None traces.append(trace) return traces, discrete_cm @@ -471,15 +515,21 @@ def _contour_trace(x, y, z, ncontours=None, # -------------------- Figure Factory for ternary contour ------------- -def create_ternary_contour(coordinates, values, pole_labels=['a', 'b', 'c'], - width=500, height=500, - ncontours=None, - showscale=False, coloring=None, - colorscale='Bluered', - linecolor=None, - title=None, - interp_mode='ilr', - showmarkers=False): +def create_ternary_contour( + coordinates, + values, + pole_labels=["a", "b", "c"], + width=500, + height=500, + ncontours=None, + showscale=False, + coloring=None, + colorscale="Bluered", + linecolor=None, + title=None, + interp_mode="ilr", + showmarkers=False, +): """ Ternary contour plot. @@ -560,63 +610,86 @@ def create_ternary_contour(coordinates, values, pole_labels=['a', 'b', 'c'], pole_labels=['clay', 'quartz', 'fledspar']) """ if scipy_interp is None: - raise ImportError("""\ - The create_ternary_contour figure factory requires the scipy package""") + raise ImportError( + """\ + The create_ternary_contour figure factory requires the scipy package""" + ) if sk_measure is None: - raise ImportError("""\ + raise ImportError( + """\ The create_ternary_contour figure factory requires the scikit-image - package""") + package""" + ) if colorscale is None: showscale = False if ncontours is None: ncontours = 5 coordinates = _prepare_barycentric_coord(coordinates) v_min, v_max = values.min(), values.max() - grid_z, gr_x, gr_y = _compute_grid(coordinates, values, - interp_mode=interp_mode) - - layout = _ternary_layout(pole_labels=pole_labels, - width=width, height=height, title=title) - - contour_trace, discrete_cm = _contour_trace(gr_x, gr_y, grid_z, - ncontours=ncontours, - colorscale=colorscale, - linecolor=linecolor, - interp_mode=interp_mode, - coloring=coloring, - v_min=v_min, - v_max=v_max) + grid_z, gr_x, gr_y = _compute_grid(coordinates, values, interp_mode=interp_mode) + + layout = _ternary_layout( + pole_labels=pole_labels, width=width, height=height, title=title + ) + + contour_trace, discrete_cm = _contour_trace( + gr_x, + gr_y, + grid_z, + ncontours=ncontours, + colorscale=colorscale, + linecolor=linecolor, + interp_mode=interp_mode, + coloring=coloring, + v_min=v_min, + v_max=v_max, + ) fig = go.Figure(data=contour_trace, layout=layout) opacity = 1 if showmarkers else 0 a, b, c = coordinates - hovertemplate = (pole_labels[0] + ": %{a:.3f}
" - + pole_labels[1] + ": %{b:.3f}
" - + pole_labels[2] + ": %{c:.3f}
" - "z: %{marker.color:.3f}") - - fig.add_scatterternary(a=a, b=b, c=c, - mode='markers', - marker={'color': values, - 'colorscale': colorscale, - 'line': {'color': 'rgb(120, 120, 120)', - 'width': int(coloring != 'lines')}, - }, - opacity=opacity, - hovertemplate=hovertemplate) + hovertemplate = ( + pole_labels[0] + + ": %{a:.3f}
" + + pole_labels[1] + + ": %{b:.3f}
" + + pole_labels[2] + + ": %{c:.3f}
" + "z: %{marker.color:.3f}" + ) + + fig.add_scatterternary( + a=a, + b=b, + c=c, + mode="markers", + marker={ + "color": values, + "colorscale": colorscale, + "line": {"color": "rgb(120, 120, 120)", "width": int(coloring != "lines")}, + }, + opacity=opacity, + hovertemplate=hovertemplate, + ) if showscale: if not showmarkers: colorscale = discrete_cm - colorbar = dict({'type': 'scatterternary', - 'a': [None], 'b': [None], - 'c': [None], - 'marker': { - 'cmin': values.min(), - 'cmax': values.max(), - 'colorscale': colorscale, - 'showscale': True}, - 'mode': 'markers'}) + colorbar = dict( + { + "type": "scatterternary", + "a": [None], + "b": [None], + "c": [None], + "marker": { + "cmin": values.min(), + "cmax": values.max(), + "colorscale": colorscale, + "showscale": True, + }, + "mode": "markers", + } + ) fig.add_trace(colorbar) return fig diff --git a/packages/python/plotly/plotly/figure_factory/_trisurf.py b/packages/python/plotly/plotly/figure_factory/_trisurf.py index 3c49cf59665..9efc255fbbd 100644 --- a/packages/python/plotly/plotly/figure_factory/_trisurf.py +++ b/packages/python/plotly/plotly/figure_factory/_trisurf.py @@ -4,7 +4,7 @@ import plotly.colors as clrs from plotly.graph_objs import graph_objs -np = optional_imports.get_module('numpy') +np = optional_imports.get_module("numpy") def map_face2color(face, colormap, scale, vmin, vmax): @@ -18,10 +18,12 @@ def map_face2color(face, colormap, scale, vmin, vmax): """ if vmin >= vmax: - raise exceptions.PlotlyError("Incorrect relation between vmin " - "and vmax. The vmin value cannot be " - "bigger than or equal to the value " - "of vmax.") + raise exceptions.PlotlyError( + "Incorrect relation between vmin " + "and vmax. The vmin value cannot be " + "bigger than or equal to the value " + "of vmax." + ) if len(colormap) == 1: # color each triangle face with the same color in colormap face_color = colormap[0] @@ -39,12 +41,12 @@ def map_face2color(face, colormap, scale, vmin, vmax): # find the normalized distance t of a triangle face between # vmin and vmax where the distance is between 0 and 1 t = (face - vmin) / float((vmax - vmin)) - low_color_index = int(t / (1./(len(colormap) - 1))) + low_color_index = int(t / (1.0 / (len(colormap) - 1))) face_color = clrs.find_intermediate_color( colormap[low_color_index], colormap[low_color_index + 1], - t * (len(colormap) - 1) - low_color_index + t * (len(colormap) - 1) - low_color_index, ) face_color = clrs.convert_to_RGB_255(face_color) @@ -55,7 +57,7 @@ def map_face2color(face, colormap, scale, vmin, vmax): low_color_index = 0 for k in range(len(scale) - 1): - if scale[k] <= t < scale[k+1]: + if scale[k] <= t < scale[k + 1]: break low_color_index += 1 @@ -65,7 +67,7 @@ def map_face2color(face, colormap, scale, vmin, vmax): face_color = clrs.find_intermediate_color( colormap[low_color_index], colormap[low_color_index + 1], - (t - low_scale_val)/(high_scale_val - low_scale_val) + (t - low_scale_val) / (high_scale_val - low_scale_val), ) face_color = clrs.convert_to_RGB_255(face_color) @@ -73,16 +75,28 @@ def map_face2color(face, colormap, scale, vmin, vmax): return face_color -def trisurf(x, y, z, simplices, show_colorbar, edges_color, scale, - colormap=None, color_func=None, plot_edges=False, x_edge=None, - y_edge=None, z_edge=None, facecolor=None): +def trisurf( + x, + y, + z, + simplices, + show_colorbar, + edges_color, + scale, + colormap=None, + color_func=None, + plot_edges=False, + x_edge=None, + y_edge=None, + z_edge=None, + facecolor=None, +): """ Refer to FigureFactory.create_trisurf() for docstring """ # numpy import check if not np: - raise ImportError("FigureFactory._trisurf() requires " - "numpy imported.") + raise ImportError("FigureFactory._trisurf() requires " "numpy imported.") points3D = np.vstack((x, y, z)).T simplices = np.atleast_2d(simplices) @@ -96,13 +110,15 @@ def trisurf(x, y, z, simplices, show_colorbar, edges_color, scale, elif isinstance(color_func, (list, np.ndarray)): # Pre-computed list / array of values to map onto color if len(color_func) != len(simplices): - raise ValueError("If color_func is a list/array, it must " - "be the same length as simplices.") + raise ValueError( + "If color_func is a list/array, it must " + "be the same length as simplices." + ) # convert all colors in color_func to rgb for index in range(len(color_func)): if isinstance(color_func[index], str): - if '#' in color_func[index]: + if "#" in color_func[index]: foo = clrs.hex_to_rgb(color_func[index]) color_func[index] = clrs.label_rgb(foo) @@ -133,16 +149,18 @@ def trisurf(x, y, z, simplices, show_colorbar, edges_color, scale, if facecolor is None: facecolor = [] for index in range(len(mean_dists)): - color = map_face2color(mean_dists[index], colormap, scale, - min_mean_dists, max_mean_dists) + color = map_face2color( + mean_dists[index], colormap, scale, min_mean_dists, max_mean_dists + ) facecolor.append(color) # Make sure facecolor is a list so output is consistent across Pythons facecolor = np.asarray(facecolor) ii, jj, kk = simplices.T - triangles = graph_objs.Mesh3d(x=x, y=y, z=z, facecolor=facecolor, - i=ii, j=jj, k=kk, name='') + triangles = graph_objs.Mesh3d( + x=x, y=y, z=z, facecolor=facecolor, i=ii, j=jj, k=kk, name="" + ) mean_dists_are_numbers = not isinstance(mean_dists[0], str) @@ -155,14 +173,15 @@ def trisurf(x, y, z, simplices, show_colorbar, edges_color, scale, x=x[:1], y=y[:1], z=z[:1], - mode='markers', + mode="markers", marker=dict( size=0.1, color=[min_mean_dists, max_mean_dists], colorscale=colorscale, - showscale=True), - hoverinfo='none', - showlegend=False + showscale=True, + ), + hoverinfo="none", + showlegend=False, ) # the triangle sides are not plotted @@ -178,8 +197,9 @@ def trisurf(x, y, z, simplices, show_colorbar, edges_color, scale, is_none = [ii is None for ii in [x_edge, y_edge, z_edge]] if any(is_none): if not all(is_none): - raise ValueError("If any (x_edge, y_edge, z_edge) is None, " - "all must be None") + raise ValueError( + "If any (x_edge, y_edge, z_edge) is None, " "all must be None" + ) else: x_edge = [] y_edge = [] @@ -188,12 +208,15 @@ def trisurf(x, y, z, simplices, show_colorbar, edges_color, scale, # Pull indices we care about, then add a None column to separate tris ixs_triangles = [0, 1, 2, 0] pull_edges = tri_vertices[:, ixs_triangles, :] - x_edge_pull = np.hstack([pull_edges[:, :, 0], - np.tile(None, [pull_edges.shape[0], 1])]) - y_edge_pull = np.hstack([pull_edges[:, :, 1], - np.tile(None, [pull_edges.shape[0], 1])]) - z_edge_pull = np.hstack([pull_edges[:, :, 2], - np.tile(None, [pull_edges.shape[0], 1])]) + x_edge_pull = np.hstack( + [pull_edges[:, :, 0], np.tile(None, [pull_edges.shape[0], 1])] + ) + y_edge_pull = np.hstack( + [pull_edges[:, :, 1], np.tile(None, [pull_edges.shape[0], 1])] + ) + z_edge_pull = np.hstack( + [pull_edges[:, :, 2], np.tile(None, [pull_edges.shape[0], 1])] + ) # Now unravel the edges into a 1-d vector for plotting x_edge = np.hstack([x_edge, x_edge_pull.reshape([1, -1])[0]]) @@ -201,17 +224,18 @@ def trisurf(x, y, z, simplices, show_colorbar, edges_color, scale, z_edge = np.hstack([z_edge, z_edge_pull.reshape([1, -1])[0]]) if not (len(x_edge) == len(y_edge) == len(z_edge)): - raise exceptions.PlotlyError("The lengths of x_edge, y_edge and " - "z_edge are not the same.") + raise exceptions.PlotlyError( + "The lengths of x_edge, y_edge and " "z_edge are not the same." + ) # define the lines for plotting lines = graph_objs.Scatter3d( - x=x_edge, y=y_edge, z=z_edge, mode='lines', - line=graph_objs.scatter3d.Line( - color=edges_color, - width=1.5 - ), - showlegend=False + x=x_edge, + y=y_edge, + z=z_edge, + mode="lines", + line=graph_objs.scatter3d.Line(color=edges_color, width=1.5), + showlegend=False, ) if mean_dists_are_numbers and show_colorbar is True: @@ -220,15 +244,26 @@ def trisurf(x, y, z, simplices, show_colorbar, edges_color, scale, return [triangles, lines] -def create_trisurf(x, y, z, simplices, colormap=None, show_colorbar=True, - scale=None, color_func=None, title='Trisurf Plot', - plot_edges=True, showbackground=True, - backgroundcolor='rgb(230, 230, 230)', - gridcolor='rgb(255, 255, 255)', - zerolinecolor='rgb(255, 255, 255)', - edges_color='rgb(50, 50, 50)', - height=800, width=800, - aspectratio=None): +def create_trisurf( + x, + y, + z, + simplices, + colormap=None, + show_colorbar=True, + scale=None, + color_func=None, + title="Trisurf Plot", + plot_edges=True, + showbackground=True, + backgroundcolor="rgb(230, 230, 230)", + gridcolor="rgb(255, 255, 255)", + zerolinecolor="rgb(255, 255, 255)", + edges_color="rgb(50, 50, 50)", + height=800, + width=800, + aspectratio=None, +): """ Returns figure for a triangulated surface plot @@ -452,18 +487,26 @@ def dist_origin(x, y, z): ``` """ if aspectratio is None: - aspectratio = {'x': 1, 'y': 1, 'z': 1} + aspectratio = {"x": 1, "y": 1, "z": 1} # Validate colormap clrs.validate_colors(colormap) colormap, scale = clrs.convert_colors_to_same_type( - colormap, colortype='tuple', - return_default_colors=True, scale=scale + colormap, colortype="tuple", return_default_colors=True, scale=scale ) - data1 = trisurf(x, y, z, simplices, show_colorbar=show_colorbar, - color_func=color_func, colormap=colormap, scale=scale, - edges_color=edges_color, plot_edges=plot_edges) + data1 = trisurf( + x, + y, + z, + simplices, + show_colorbar=show_colorbar, + color_func=color_func, + colormap=colormap, + scale=scale, + edges_color=edges_color, + plot_edges=plot_edges, + ) axis = dict( showbackground=showbackground, @@ -480,10 +523,9 @@ def dist_origin(x, y, z): yaxis=graph_objs.layout.scene.YAxis(**axis), zaxis=graph_objs.layout.scene.ZAxis(**axis), aspectratio=dict( - x=aspectratio['x'], - y=aspectratio['y'], - z=aspectratio['z']), - ) + x=aspectratio["x"], y=aspectratio["y"], z=aspectratio["z"] + ), + ), ) return graph_objs.Figure(data=data1, layout=layout) diff --git a/packages/python/plotly/plotly/figure_factory/_violin.py b/packages/python/plotly/plotly/figure_factory/_violin.py index 20aa5c18305..520a8fa5517 100644 --- a/packages/python/plotly/plotly/figure_factory/_violin.py +++ b/packages/python/plotly/plotly/figure_factory/_violin.py @@ -7,9 +7,9 @@ from plotly.graph_objs import graph_objs from plotly.tools import make_subplots -pd = optional_imports.get_module('pandas') -np = optional_imports.get_module('numpy') -scipy_stats = optional_imports.get_module('scipy.stats') +pd = optional_imports.get_module("pandas") +np = optional_imports.get_module("numpy") +scipy_stats = optional_imports.get_module("scipy.stats") def calc_stats(data): @@ -19,9 +19,9 @@ def calc_stats(data): x = np.asarray(data, np.float) vals_min = np.min(x) vals_max = np.max(x) - q2 = np.percentile(x, 50, interpolation='linear') - q1 = np.percentile(x, 25, interpolation='lower') - q3 = np.percentile(x, 75, interpolation='higher') + q2 = np.percentile(x, 50, interpolation="linear") + q1 = np.percentile(x, 25, interpolation="lower") + q3 = np.percentile(x, 75, interpolation="higher") iqr = q3 - q1 whisker_dist = 1.5 * iqr @@ -30,53 +30,51 @@ def calc_stats(data): d1 = np.min(x[x >= (q1 - whisker_dist)]) d2 = np.max(x[x <= (q3 + whisker_dist)]) return { - 'min': vals_min, - 'max': vals_max, - 'q1': q1, - 'q2': q2, - 'q3': q3, - 'd1': d1, - 'd2': d2 + "min": vals_min, + "max": vals_max, + "q1": q1, + "q2": q2, + "q3": q3, + "d1": d1, + "d2": d2, } -def make_half_violin(x, y, fillcolor='#1f77b4', linecolor='rgb(0, 0, 0)'): +def make_half_violin(x, y, fillcolor="#1f77b4", linecolor="rgb(0, 0, 0)"): """ Produces a sideways probability distribution fig violin plot. """ - text = ['(pdf(y), y)=(' + '{:0.2f}'.format(x[i]) + - ', ' + '{:0.2f}'.format(y[i]) + ')' - for i in range(len(x))] + text = [ + "(pdf(y), y)=(" + "{:0.2f}".format(x[i]) + ", " + "{:0.2f}".format(y[i]) + ")" + for i in range(len(x)) + ] return graph_objs.Scatter( x=x, y=y, - mode='lines', - name='', + mode="lines", + name="", text=text, - fill='tonextx', + fill="tonextx", fillcolor=fillcolor, - line=graph_objs.scatter.Line(width=0.5, color=linecolor, shape='spline'), - hoverinfo='text', - opacity=0.5 + line=graph_objs.scatter.Line(width=0.5, color=linecolor, shape="spline"), + hoverinfo="text", + opacity=0.5, ) -def make_violin_rugplot(vals, pdf_max, distance, color='#1f77b4'): +def make_violin_rugplot(vals, pdf_max, distance, color="#1f77b4"): """ Returns a rugplot fig for a violin plot. """ return graph_objs.Scatter( y=vals, - x=[-pdf_max-distance]*len(vals), - marker=graph_objs.scatter.Marker( - color=color, - symbol='line-ew-open' - ), - mode='markers', - name='', + x=[-pdf_max - distance] * len(vals), + marker=graph_objs.scatter.Marker(color=color, symbol="line-ew-open"), + mode="markers", + name="", showlegend=False, - hoverinfo='y' + hoverinfo="y", ) @@ -87,10 +85,9 @@ def make_non_outlier_interval(d1, d2): return graph_objs.Scatter( x=[0, 0], y=[d1, d2], - name='', - mode='lines', - line=graph_objs.scatter.Line(width=1.5, - color='rgb(0,0,0)') + name="", + mode="lines", + line=graph_objs.scatter.Line(width=1.5, color="rgb(0,0,0)"), ) @@ -101,14 +98,13 @@ def make_quartiles(q1, q3): return graph_objs.Scatter( x=[0, 0], y=[q1, q3], - text=['lower-quartile: ' + '{:0.2f}'.format(q1), - 'upper-quartile: ' + '{:0.2f}'.format(q3)], - mode='lines', - line=graph_objs.scatter.Line( - width=4, - color='rgb(0,0,0)' - ), - hoverinfo='text' + text=[ + "lower-quartile: " + "{:0.2f}".format(q1), + "upper-quartile: " + "{:0.2f}".format(q3), + ], + mode="lines", + line=graph_objs.scatter.Line(width=4, color="rgb(0,0,0)"), + hoverinfo="text", ) @@ -119,11 +115,10 @@ def make_median(q2): return graph_objs.Scatter( x=[0], y=[q2], - text=['median: ' + '{:0.2f}'.format(q2)], - mode='markers', - marker=dict(symbol='square', - color='rgb(255,255,255)'), - hoverinfo='text' + text=["median: " + "{:0.2f}".format(q2)], + mode="markers", + marker=dict(symbol="square", color="rgb(255,255,255)"), + hoverinfo="text", ) @@ -131,14 +126,16 @@ def make_XAxis(xaxis_title, xaxis_range): """ Makes the x-axis for a violin plot. """ - xaxis = graph_objs.layout.XAxis(title=xaxis_title, - range=xaxis_range, - showgrid=False, - zeroline=False, - showline=False, - mirror=False, - ticks='', - showticklabels=False) + xaxis = graph_objs.layout.XAxis( + title=xaxis_title, + range=xaxis_range, + showgrid=False, + zeroline=False, + showline=False, + mirror=False, + ticks="", + showticklabels=False, + ) return xaxis @@ -146,30 +143,32 @@ def make_YAxis(yaxis_title): """ Makes the y-axis for a violin plot. """ - yaxis = graph_objs.layout.YAxis(title=yaxis_title, - showticklabels=True, - autorange=True, - ticklen=4, - showline=True, - zeroline=False, - showgrid=False, - mirror=False) + yaxis = graph_objs.layout.YAxis( + title=yaxis_title, + showticklabels=True, + autorange=True, + ticklen=4, + showline=True, + zeroline=False, + showgrid=False, + mirror=False, + ) return yaxis -def violinplot(vals, fillcolor='#1f77b4', rugplot=True): +def violinplot(vals, fillcolor="#1f77b4", rugplot=True): """ Refer to FigureFactory.create_violin() for docstring. """ vals = np.asarray(vals, np.float) # summary statistics - vals_min = calc_stats(vals)['min'] - vals_max = calc_stats(vals)['max'] - q1 = calc_stats(vals)['q1'] - q2 = calc_stats(vals)['q2'] - q3 = calc_stats(vals)['q3'] - d1 = calc_stats(vals)['d1'] - d2 = calc_stats(vals)['d2'] + vals_min = calc_stats(vals)["min"] + vals_max = calc_stats(vals)["max"] + q1 = calc_stats(vals)["q1"] + q2 = calc_stats(vals)["q2"] + q3 = calc_stats(vals)["q3"] + d1 = calc_stats(vals)["d1"] + d2 = calc_stats(vals)["d2"] # kernel density estimation of pdf pdf = scipy_stats.gaussian_kde(vals) @@ -179,23 +178,36 @@ def violinplot(vals, fillcolor='#1f77b4', rugplot=True): yy = pdf(xx) max_pdf = np.max(yy) # distance from the violin plot to rugplot - distance = (2.0 * max_pdf)/10 if rugplot else 0 + distance = (2.0 * max_pdf) / 10 if rugplot else 0 # range for x values in the plot plot_xrange = [-max_pdf - distance - 0.1, max_pdf + 0.1] - plot_data = [make_half_violin(-yy, xx, fillcolor=fillcolor), - make_half_violin(yy, xx, fillcolor=fillcolor), - make_non_outlier_interval(d1, d2), - make_quartiles(q1, q3), - make_median(q2)] + plot_data = [ + make_half_violin(-yy, xx, fillcolor=fillcolor), + make_half_violin(yy, xx, fillcolor=fillcolor), + make_non_outlier_interval(d1, d2), + make_quartiles(q1, q3), + make_median(q2), + ] if rugplot: - plot_data.append(make_violin_rugplot(vals, max_pdf, distance=distance, - color=fillcolor)) + plot_data.append( + make_violin_rugplot(vals, max_pdf, distance=distance, color=fillcolor) + ) return plot_data, plot_xrange -def violin_no_colorscale(data, data_header, group_header, colors, - use_colorscale, group_stats, rugplot, sort, - height, width, title): +def violin_no_colorscale( + data, + data_header, + group_header, + colors, + use_colorscale, + group_stats, + rugplot, + sort, + height, + width, + title, +): """ Refer to FigureFactory.create_violin() for docstring. @@ -214,18 +226,17 @@ def violin_no_colorscale(data, data_header, group_header, colors, gb = data.groupby([group_header]) L = len(group_name) - fig = make_subplots(rows=1, cols=L, - shared_yaxes=True, - horizontal_spacing=0.025, - print_grid=False) + fig = make_subplots( + rows=1, cols=L, shared_yaxes=True, horizontal_spacing=0.025, print_grid=False + ) color_index = 0 for k, gr in enumerate(group_name): vals = np.asarray(gb.get_group(gr)[data_header], np.float) if color_index >= len(colors): color_index = 0 - plot_data, plot_xrange = violinplot(vals, - fillcolor=colors[color_index], - rugplot=rugplot) + plot_data, plot_xrange = violinplot( + vals, fillcolor=colors[color_index], rugplot=rugplot + ) layout = graph_objs.Layout() for item in plot_data: @@ -233,27 +244,37 @@ def violin_no_colorscale(data, data_header, group_header, colors, color_index += 1 # add violin plot labels - fig['layout'].update( - {'xaxis{}'.format(k + 1): make_XAxis(group_name[k], plot_xrange)} + fig["layout"].update( + {"xaxis{}".format(k + 1): make_XAxis(group_name[k], plot_xrange)} ) # set the sharey axis style - fig['layout'].update({'yaxis{}'.format(1): make_YAxis('')}) - fig['layout'].update( + fig["layout"].update({"yaxis{}".format(1): make_YAxis("")}) + fig["layout"].update( title=title, showlegend=False, - hovermode='closest', + hovermode="closest", autosize=False, height=height, - width=width + width=width, ) return fig -def violin_colorscale(data, data_header, group_header, colors, use_colorscale, - group_stats, rugplot, sort, height, width, - title): +def violin_colorscale( + data, + data_header, + group_header, + colors, + use_colorscale, + group_stats, + rugplot, + sort, + height, + width, + title, +): """ Refer to FigureFactory.create_violin() for docstring. @@ -272,17 +293,18 @@ def violin_colorscale(data, data_header, group_header, colors, use_colorscale, # make sure all group names are keys in group_stats for group in group_name: if group not in group_stats: - raise exceptions.PlotlyError("All values/groups in the index " - "column must be represented " - "as a key in group_stats.") + raise exceptions.PlotlyError( + "All values/groups in the index " + "column must be represented " + "as a key in group_stats." + ) gb = data.groupby([group_header]) L = len(group_name) - fig = make_subplots(rows=1, cols=L, - shared_yaxes=True, - horizontal_spacing=0.025, - print_grid=False) + fig = make_subplots( + rows=1, cols=L, shared_yaxes=True, horizontal_spacing=0.025, print_grid=False + ) # prepare low and high color for colorscale lowcolor = clrs.color_parser(colors[0], clrs.unlabel_rgb) @@ -301,54 +323,61 @@ def violin_colorscale(data, data_header, group_header, colors, use_colorscale, # find intermediate color from colorscale intermed = (group_stats[gr] - min_value) / (max_value - min_value) - intermed_color = clrs.find_intermediate_color( - lowcolor, highcolor, intermed - ) + intermed_color = clrs.find_intermediate_color(lowcolor, highcolor, intermed) plot_data, plot_xrange = violinplot( - vals, - fillcolor='rgb{}'.format(intermed_color), - rugplot=rugplot + vals, fillcolor="rgb{}".format(intermed_color), rugplot=rugplot ) layout = graph_objs.Layout() for item in plot_data: fig.append_trace(item, 1, k + 1) - fig['layout'].update( - {'xaxis{}'.format(k + 1): make_XAxis(group_name[k], plot_xrange)} + fig["layout"].update( + {"xaxis{}".format(k + 1): make_XAxis(group_name[k], plot_xrange)} ) # add colorbar to plot trace_dummy = graph_objs.Scatter( x=[0], y=[0], - mode='markers', + mode="markers", marker=dict( size=2, cmin=min_value, cmax=max_value, - colorscale=[[0, colors[0]], - [1, colors[1]]], - showscale=True), + colorscale=[[0, colors[0]], [1, colors[1]]], + showscale=True, + ), showlegend=False, ) fig.append_trace(trace_dummy, 1, L) # set the sharey axis style - fig['layout'].update({'yaxis{}'.format(1): make_YAxis('')}) - fig['layout'].update( + fig["layout"].update({"yaxis{}".format(1): make_YAxis("")}) + fig["layout"].update( title=title, showlegend=False, - hovermode='closest', + hovermode="closest", autosize=False, height=height, - width=width + width=width, ) return fig -def violin_dict(data, data_header, group_header, colors, use_colorscale, - group_stats, rugplot, sort, height, width, title): +def violin_dict( + data, + data_header, + group_header, + colors, + use_colorscale, + group_stats, + rugplot, + sort, + height, + width, + title, +): """ Refer to FigureFactory.create_violin() for docstring. @@ -368,50 +397,59 @@ def violin_dict(data, data_header, group_header, colors, use_colorscale, # check if all group names appear in colors dict for group in group_name: if group not in colors: - raise exceptions.PlotlyError("If colors is a dictionary, all " - "the group names must appear as " - "keys in colors.") + raise exceptions.PlotlyError( + "If colors is a dictionary, all " + "the group names must appear as " + "keys in colors." + ) gb = data.groupby([group_header]) L = len(group_name) - fig = make_subplots(rows=1, cols=L, - shared_yaxes=True, - horizontal_spacing=0.025, - print_grid=False) + fig = make_subplots( + rows=1, cols=L, shared_yaxes=True, horizontal_spacing=0.025, print_grid=False + ) for k, gr in enumerate(group_name): vals = np.asarray(gb.get_group(gr)[data_header], np.float) - plot_data, plot_xrange = violinplot(vals, fillcolor=colors[gr], - rugplot=rugplot) + plot_data, plot_xrange = violinplot(vals, fillcolor=colors[gr], rugplot=rugplot) layout = graph_objs.Layout() for item in plot_data: fig.append_trace(item, 1, k + 1) # add violin plot labels - fig['layout'].update( - {'xaxis{}'.format(k + 1): make_XAxis(group_name[k], plot_xrange)} + fig["layout"].update( + {"xaxis{}".format(k + 1): make_XAxis(group_name[k], plot_xrange)} ) # set the sharey axis style - fig['layout'].update({'yaxis{}'.format(1): make_YAxis('')}) - fig['layout'].update( + fig["layout"].update({"yaxis{}".format(1): make_YAxis("")}) + fig["layout"].update( title=title, showlegend=False, - hovermode='closest', + hovermode="closest", autosize=False, height=height, - width=width + width=width, ) return fig -def create_violin(data, data_header=None, group_header=None, colors=None, - use_colorscale=False, group_stats=None, rugplot=True, - sort=False, height=450, width=600, - title='Violin and Rug Plot'): +def create_violin( + data, + data_header=None, + group_header=None, + colors=None, + use_colorscale=False, + group_stats=None, + rugplot=True, + sort=False, + height=450, + width=600, + title="Violin and Rug Plot", +): """ Returns figure for a violin plot @@ -545,34 +583,40 @@ def create_violin(data, data_header=None, group_header=None, colors=None, # Validate colors if isinstance(colors, dict): - valid_colors = clrs.validate_colors_dict(colors, 'rgb') + valid_colors = clrs.validate_colors_dict(colors, "rgb") else: - valid_colors = clrs.validate_colors(colors, 'rgb') + valid_colors = clrs.validate_colors(colors, "rgb") # validate data and choose plot type if group_header is None: if isinstance(data, list): if len(data) <= 0: - raise exceptions.PlotlyError("If data is a list, it must be " - "nonempty and contain either " - "numbers or dictionaries.") + raise exceptions.PlotlyError( + "If data is a list, it must be " + "nonempty and contain either " + "numbers or dictionaries." + ) if not all(isinstance(element, Number) for element in data): - raise exceptions.PlotlyError("If data is a list, it must " - "contain only numbers.") + raise exceptions.PlotlyError( + "If data is a list, it must " "contain only numbers." + ) if pd and isinstance(data, pd.core.frame.DataFrame): if data_header is None: - raise exceptions.PlotlyError("data_header must be the " - "column name with the " - "desired numeric data for " - "the violin plot.") + raise exceptions.PlotlyError( + "data_header must be the " + "column name with the " + "desired numeric data for " + "the violin plot." + ) data = data[data_header].values.tolist() # call the plotting functions - plot_data, plot_xrange = violinplot(data, fillcolor=valid_colors[0], - rugplot=rugplot) + plot_data, plot_xrange = violinplot( + data, fillcolor=valid_colors[0], rugplot=rugplot + ) layout = graph_objs.Layout( title=title, @@ -581,64 +625,94 @@ def create_violin(data, data_header=None, group_header=None, colors=None, height=height, showlegend=False, width=width, - xaxis=make_XAxis('', plot_xrange), - yaxis=make_YAxis(''), - hovermode='closest' + xaxis=make_XAxis("", plot_xrange), + yaxis=make_YAxis(""), + hovermode="closest", ) - layout['yaxis'].update(dict(showline=False, - showticklabels=False, - ticks='')) + layout["yaxis"].update(dict(showline=False, showticklabels=False, ticks="")) - fig = graph_objs.Figure(data=plot_data, - layout=layout) + fig = graph_objs.Figure(data=plot_data, layout=layout) return fig else: if not isinstance(data, pd.core.frame.DataFrame): - raise exceptions.PlotlyError("Error. You must use a pandas " - "DataFrame if you are using a " - "group header.") + raise exceptions.PlotlyError( + "Error. You must use a pandas " + "DataFrame if you are using a " + "group header." + ) if data_header is None: - raise exceptions.PlotlyError("data_header must be the column " - "name with the desired numeric " - "data for the violin plot.") + raise exceptions.PlotlyError( + "data_header must be the column " + "name with the desired numeric " + "data for the violin plot." + ) if use_colorscale is False: if isinstance(valid_colors, dict): # validate colors dict choice below fig = violin_dict( - data, data_header, group_header, valid_colors, - use_colorscale, group_stats, rugplot, sort, - height, width, title + data, + data_header, + group_header, + valid_colors, + use_colorscale, + group_stats, + rugplot, + sort, + height, + width, + title, ) return fig else: fig = violin_no_colorscale( - data, data_header, group_header, valid_colors, - use_colorscale, group_stats, rugplot, sort, - height, width, title + data, + data_header, + group_header, + valid_colors, + use_colorscale, + group_stats, + rugplot, + sort, + height, + width, + title, ) return fig else: if isinstance(valid_colors, dict): - raise exceptions.PlotlyError("The colors param cannot be " - "a dictionary if you are " - "using a colorscale.") + raise exceptions.PlotlyError( + "The colors param cannot be " + "a dictionary if you are " + "using a colorscale." + ) if len(valid_colors) < 2: - raise exceptions.PlotlyError("colors must be a list with " - "at least 2 colors. A " - "Plotly scale is allowed.") + raise exceptions.PlotlyError( + "colors must be a list with " + "at least 2 colors. A " + "Plotly scale is allowed." + ) if not isinstance(group_stats, dict): - raise exceptions.PlotlyError("Your group_stats param " - "must be a dictionary.") + raise exceptions.PlotlyError( + "Your group_stats param " "must be a dictionary." + ) fig = violin_colorscale( - data, data_header, group_header, valid_colors, - use_colorscale, group_stats, rugplot, sort, height, - width, title + data, + data_header, + group_header, + valid_colors, + use_colorscale, + group_stats, + rugplot, + sort, + height, + width, + title, ) return fig diff --git a/packages/python/plotly/plotly/figure_factory/utils.py b/packages/python/plotly/plotly/figure_factory/utils.py index 2226d738709..cdd5657cddc 100644 --- a/packages/python/plotly/plotly/figure_factory/utils.py +++ b/packages/python/plotly/plotly/figure_factory/utils.py @@ -5,18 +5,28 @@ import six from plotly import exceptions -from plotly.colors import (DEFAULT_PLOTLY_COLORS, PLOTLY_SCALES, color_parser, - colorscale_to_colors, colorscale_to_scale, - convert_to_RGB_255, find_intermediate_color, - hex_to_rgb, label_rgb, n_colors, - unconvert_from_RGB_255, unlabel_rgb, - validate_colors, validate_colors_dict, - validate_colorscale, validate_scale_values) +from plotly.colors import ( + DEFAULT_PLOTLY_COLORS, + PLOTLY_SCALES, + color_parser, + colorscale_to_colors, + colorscale_to_scale, + convert_to_RGB_255, + find_intermediate_color, + hex_to_rgb, + label_rgb, + n_colors, + unconvert_from_RGB_255, + unlabel_rgb, + validate_colors, + validate_colors_dict, + validate_colorscale, + validate_scale_values, +) def is_sequence(obj): - return (isinstance(obj, collections.Sequence) and - not isinstance(obj, str)) + return isinstance(obj, collections.Sequence) and not isinstance(obj, str) def validate_index(index_vals): @@ -27,19 +37,24 @@ def validate_index(index_vals): types differ """ from numbers import Number + if isinstance(index_vals[0], Number): if not all(isinstance(item, Number) for item in index_vals): - raise exceptions.PlotlyError("Error in indexing column. " - "Make sure all entries of each " - "column are all numbers or " - "all strings.") + raise exceptions.PlotlyError( + "Error in indexing column. " + "Make sure all entries of each " + "column are all numbers or " + "all strings." + ) elif isinstance(index_vals[0], str): if not all(isinstance(item, str) for item in index_vals): - raise exceptions.PlotlyError("Error in indexing column. " - "Make sure all entries of each " - "column are all numbers or " - "all strings.") + raise exceptions.PlotlyError( + "Error in indexing column. " + "Make sure all entries of each " + "column are all numbers or " + "all strings." + ) def validate_dataframe(array): @@ -50,19 +65,24 @@ def validate_dataframe(array): types differ """ from numbers import Number + for vector in array: if isinstance(vector[0], Number): if not all(isinstance(item, Number) for item in vector): - raise exceptions.PlotlyError("Error in dataframe. " - "Make sure all entries of " - "each column are either " - "numbers or strings.") + raise exceptions.PlotlyError( + "Error in dataframe. " + "Make sure all entries of " + "each column are either " + "numbers or strings." + ) elif isinstance(vector[0], str): if not all(isinstance(item, str) for item in vector): - raise exceptions.PlotlyError("Error in dataframe. " - "Make sure all entries of " - "each column are either " - "numbers or strings.") + raise exceptions.PlotlyError( + "Error in dataframe. " + "Make sure all entries of " + "each column are either " + "numbers or strings." + ) def validate_equal_length(*args): @@ -73,8 +93,9 @@ def validate_equal_length(*args): """ length = len(args[0]) if any(len(lst) != length for lst in args): - raise exceptions.PlotlyError("Oops! Your data lists or ndarrays " - "should be the same length.") + raise exceptions.PlotlyError( + "Oops! Your data lists or ndarrays " "should be the same length." + ) def validate_positive_scalars(**kwargs): @@ -88,10 +109,9 @@ def validate_positive_scalars(**kwargs): for key, val in kwargs.items(): try: if val <= 0: - raise ValueError('{} must be > 0, got {}'.format(key, val)) + raise ValueError("{} must be > 0, got {}".format(key, val)) except TypeError: - raise exceptions.PlotlyError('{} must be a number, got {}' - .format(key, val)) + raise exceptions.PlotlyError("{} must be a number, got {}".format(key, val)) def flatten(array): @@ -105,9 +125,12 @@ def flatten(array): try: return [item for sublist in array for item in sublist] except TypeError: - raise exceptions.PlotlyError("Your data array could not be " - "flattened! Make sure your data is " - "entered as lists or ndarrays!") + raise exceptions.PlotlyError( + "Your data array could not be " + "flattened! Make sure your data is " + "entered as lists or ndarrays!" + ) + def endpts_to_intervals(endpts): """ @@ -125,40 +148,53 @@ def endpts_to_intervals(endpts): length = len(endpts) # Check if endpts is a list or tuple if not (isinstance(endpts, (tuple)) or isinstance(endpts, (list))): - raise exceptions.PlotlyError("The intervals_endpts argument must " - "be a list or tuple of a sequence " - "of increasing numbers.") + raise exceptions.PlotlyError( + "The intervals_endpts argument must " + "be a list or tuple of a sequence " + "of increasing numbers." + ) # Check if endpts contains only numbers for item in endpts: if isinstance(item, str): - raise exceptions.PlotlyError("The intervals_endpts argument " - "must be a list or tuple of a " - "sequence of increasing " - "numbers.") + raise exceptions.PlotlyError( + "The intervals_endpts argument " + "must be a list or tuple of a " + "sequence of increasing " + "numbers." + ) # Check if numbers in endpts are increasing for k in range(length - 1): if endpts[k] >= endpts[k + 1]: - raise exceptions.PlotlyError("The intervals_endpts argument " - "must be a list or tuple of a " - "sequence of increasing " - "numbers.") + raise exceptions.PlotlyError( + "The intervals_endpts argument " + "must be a list or tuple of a " + "sequence of increasing " + "numbers." + ) else: intervals = [] # add -inf to intervals - intervals.append([float('-inf'), endpts[0]]) + intervals.append([float("-inf"), endpts[0]]) for k in range(length - 1): interval = [] interval.append(endpts[k]) interval.append(endpts[k + 1]) intervals.append(interval) # add +inf to intervals - intervals.append([endpts[length - 1], float('inf')]) + intervals.append([endpts[length - 1], float("inf")]) return intervals -def annotation_dict_for_label(text, lane, num_of_lanes, subplot_spacing, - row_col='col', flipped=True, right_side=True, - text_color='#0f0f0f'): +def annotation_dict_for_label( + text, + lane, + num_of_lanes, + subplot_spacing, + row_col="col", + flipped=True, + right_side=True, + text_color="#0f0f0f", +): """ Returns annotation dict for label of n labels of a 1xn or nx1 subplot. @@ -177,32 +213,32 @@ def annotation_dict_for_label(text, lane, num_of_lanes, subplot_spacing, """ l = (1 - (num_of_lanes - 1) * subplot_spacing) / (num_of_lanes) if not flipped: - xanchor = 'center' - yanchor = 'middle' - if row_col == 'col': + xanchor = "center" + yanchor = "middle" + if row_col == "col": x = (lane - 1) * (l + subplot_spacing) + 0.5 * l y = 1.03 textangle = 0 - elif row_col == 'row': + elif row_col == "row": y = (lane - 1) * (l + subplot_spacing) + 0.5 * l x = 1.03 textangle = 90 else: - if row_col == 'col': - xanchor = 'center' - yanchor = 'bottom' + if row_col == "col": + xanchor = "center" + yanchor = "bottom" x = (lane - 1) * (l + subplot_spacing) + 0.5 * l y = 1.0 textangle = 270 - elif row_col == 'row': - yanchor = 'middle' + elif row_col == "row": + yanchor = "middle" y = (lane - 1) * (l + subplot_spacing) + 0.5 * l if right_side: x = 1.0 - xanchor = 'left' + xanchor = "left" else: x = -0.01 - xanchor = 'right' + xanchor = "right" textangle = 0 annotation_dict = dict( @@ -212,18 +248,15 @@ def annotation_dict_for_label(text, lane, num_of_lanes, subplot_spacing, x=x, y=y, showarrow=False, - xref='paper', - yref='paper', + xref="paper", + yref="paper", text=text, - font=dict( - size=13, - color=text_color - ) + font=dict(size=13, color=text_color), ) return annotation_dict -def list_of_options(iterable, conj='and', period=True): +def list_of_options(iterable, conj="and", period=True): """ Returns an English listing of objects seperated by commas ',' @@ -232,7 +265,7 @@ def list_of_options(iterable, conj='and', period=True): """ if len(iterable) < 2: raise exceptions.PlotlyError( - 'Your list or tuple must contain at least 2 items.' + "Your list or tuple must contain at least 2 items." ) - template = (len(iterable) - 2)*'{}, ' + '{} ' + conj + ' {}' + period*'.' + template = (len(iterable) - 2) * "{}, " + "{} " + conj + " {}" + period * "." return template.format(*iterable) diff --git a/packages/python/plotly/plotly/graph_objs/__init__.py b/packages/python/plotly/plotly/graph_objs/__init__.py index 261492a1f11..d464c663276 100644 --- a/packages/python/plotly/plotly/graph_objs/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutType as _BaseLayoutType import copy as _copy @@ -7,14 +5,19 @@ class Layout(_BaseLayoutType): _subplotid_prop_names = [ - 'coloraxis', 'geo', 'mapbox', 'polar', 'scene', 'ternary', 'xaxis', - 'yaxis' + "coloraxis", + "geo", + "mapbox", + "polar", + "scene", + "ternary", + "xaxis", + "yaxis", ] import re - _subplotid_prop_re = re.compile( - '^(' + '|'.join(_subplotid_prop_names) + ')(\d+)$' - ) + + _subplotid_prop_re = re.compile("^(" + "|".join(_subplotid_prop_names) + ")(\d+)$") @property def _subplotid_validators(self): @@ -26,19 +29,25 @@ def _subplotid_validators(self): dict """ from plotly.validators.layout import ( - ColoraxisValidator, GeoValidator, MapboxValidator, PolarValidator, - SceneValidator, TernaryValidator, XAxisValidator, YAxisValidator + ColoraxisValidator, + GeoValidator, + MapboxValidator, + PolarValidator, + SceneValidator, + TernaryValidator, + XAxisValidator, + YAxisValidator, ) return { - 'coloraxis': ColoraxisValidator, - 'geo': GeoValidator, - 'mapbox': MapboxValidator, - 'polar': PolarValidator, - 'scene': SceneValidator, - 'ternary': TernaryValidator, - 'xaxis': XAxisValidator, - 'yaxis': YAxisValidator + "coloraxis": ColoraxisValidator, + "geo": GeoValidator, + "mapbox": MapboxValidator, + "polar": PolarValidator, + "scene": SceneValidator, + "ternary": TernaryValidator, + "xaxis": XAxisValidator, + "yaxis": YAxisValidator, } def _subplot_re_match(self, prop): @@ -103,11 +112,11 @@ def angularaxis(self): ------- plotly.graph_objs.layout.AngularAxis """ - return self['angularaxis'] + return self["angularaxis"] @angularaxis.setter def angularaxis(self, val): - self['angularaxis'] = val + self["angularaxis"] = val # annotations # ----------- @@ -388,11 +397,11 @@ def annotations(self): ------- tuple[plotly.graph_objs.layout.Annotation] """ - return self['annotations'] + return self["annotations"] @annotations.setter def annotations(self, val): - self['annotations'] = val + self["annotations"] = val # annotationdefaults # ------------------ @@ -415,11 +424,11 @@ def annotationdefaults(self): ------- plotly.graph_objs.layout.Annotation """ - return self['annotationdefaults'] + return self["annotationdefaults"] @annotationdefaults.setter def annotationdefaults(self, val): - self['annotationdefaults'] = val + self["annotationdefaults"] = val # autosize # -------- @@ -439,11 +448,11 @@ def autosize(self): ------- bool """ - return self['autosize'] + return self["autosize"] @autosize.setter def autosize(self, val): - self['autosize'] = val + self["autosize"] = val # bargap # ------ @@ -460,11 +469,11 @@ def bargap(self): ------- int|float """ - return self['bargap'] + return self["bargap"] @bargap.setter def bargap(self, val): - self['bargap'] = val + self["bargap"] = val # bargroupgap # ----------- @@ -481,11 +490,11 @@ def bargroupgap(self): ------- int|float """ - return self['bargroupgap'] + return self["bargroupgap"] @bargroupgap.setter def bargroupgap(self, val): - self['bargroupgap'] = val + self["bargroupgap"] = val # barmode # ------- @@ -509,11 +518,11 @@ def barmode(self): ------- Any """ - return self['barmode'] + return self["barmode"] @barmode.setter def barmode(self, val): - self['barmode'] = val + self["barmode"] = val # barnorm # ------- @@ -533,11 +542,11 @@ def barnorm(self): ------- Any """ - return self['barnorm'] + return self["barnorm"] @barnorm.setter def barnorm(self, val): - self['barnorm'] = val + self["barnorm"] = val # boxgap # ------ @@ -555,11 +564,11 @@ def boxgap(self): ------- int|float """ - return self['boxgap'] + return self["boxgap"] @boxgap.setter def boxgap(self, val): - self['boxgap'] = val + self["boxgap"] = val # boxgroupgap # ----------- @@ -577,11 +586,11 @@ def boxgroupgap(self): ------- int|float """ - return self['boxgroupgap'] + return self["boxgroupgap"] @boxgroupgap.setter def boxgroupgap(self, val): - self['boxgroupgap'] = val + self["boxgroupgap"] = val # boxmode # ------- @@ -603,11 +612,11 @@ def boxmode(self): ------- Any """ - return self['boxmode'] + return self["boxmode"] @boxmode.setter def boxmode(self, val): - self['boxmode'] = val + self["boxmode"] = val # calendar # -------- @@ -628,11 +637,11 @@ def calendar(self): ------- Any """ - return self['calendar'] + return self["calendar"] @calendar.setter def calendar(self, val): - self['calendar'] = val + self["calendar"] = val # clickmode # --------- @@ -663,11 +672,11 @@ def clickmode(self): ------- Any """ - return self['clickmode'] + return self["clickmode"] @clickmode.setter def clickmode(self, val): - self['clickmode'] = val + self["clickmode"] = val # coloraxis # --------- @@ -743,11 +752,11 @@ def coloraxis(self): ------- plotly.graph_objs.layout.Coloraxis """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorscale # ---------- @@ -779,11 +788,11 @@ def colorscale(self): ------- plotly.graph_objs.layout.Colorscale """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorway # -------- @@ -800,11 +809,11 @@ def colorway(self): ------- list """ - return self['colorway'] + return self["colorway"] @colorway.setter def colorway(self, val): - self['colorway'] = val + self["colorway"] = val # datarevision # ------------ @@ -825,11 +834,11 @@ def datarevision(self): ------- Any """ - return self['datarevision'] + return self["datarevision"] @datarevision.setter def datarevision(self, val): - self['datarevision'] = val + self["datarevision"] = val # direction # --------- @@ -848,11 +857,11 @@ def direction(self): ------- Any """ - return self['direction'] + return self["direction"] @direction.setter def direction(self, val): - self['direction'] = val + self["direction"] = val # dragmode # -------- @@ -872,11 +881,11 @@ def dragmode(self): ------- Any """ - return self['dragmode'] + return self["dragmode"] @dragmode.setter def dragmode(self, val): - self['dragmode'] = val + self["dragmode"] = val # editrevision # ------------ @@ -893,11 +902,11 @@ def editrevision(self): ------- Any """ - return self['editrevision'] + return self["editrevision"] @editrevision.setter def editrevision(self, val): - self['editrevision'] = val + self["editrevision"] = val # extendfunnelareacolors # ---------------------- @@ -920,11 +929,11 @@ def extendfunnelareacolors(self): ------- bool """ - return self['extendfunnelareacolors'] + return self["extendfunnelareacolors"] @extendfunnelareacolors.setter def extendfunnelareacolors(self, val): - self['extendfunnelareacolors'] = val + self["extendfunnelareacolors"] = val # extendpiecolors # --------------- @@ -946,11 +955,11 @@ def extendpiecolors(self): ------- bool """ - return self['extendpiecolors'] + return self["extendpiecolors"] @extendpiecolors.setter def extendpiecolors(self, val): - self['extendpiecolors'] = val + self["extendpiecolors"] = val # extendsunburstcolors # -------------------- @@ -973,11 +982,11 @@ def extendsunburstcolors(self): ------- bool """ - return self['extendsunburstcolors'] + return self["extendsunburstcolors"] @extendsunburstcolors.setter def extendsunburstcolors(self, val): - self['extendsunburstcolors'] = val + self["extendsunburstcolors"] = val # font # ---- @@ -1019,11 +1028,11 @@ def font(self): ------- plotly.graph_objs.layout.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # funnelareacolorway # ------------------ @@ -1043,11 +1052,11 @@ def funnelareacolorway(self): ------- list """ - return self['funnelareacolorway'] + return self["funnelareacolorway"] @funnelareacolorway.setter def funnelareacolorway(self, val): - self['funnelareacolorway'] = val + self["funnelareacolorway"] = val # funnelgap # --------- @@ -1064,11 +1073,11 @@ def funnelgap(self): ------- int|float """ - return self['funnelgap'] + return self["funnelgap"] @funnelgap.setter def funnelgap(self, val): - self['funnelgap'] = val + self["funnelgap"] = val # funnelgroupgap # -------------- @@ -1085,11 +1094,11 @@ def funnelgroupgap(self): ------- int|float """ - return self['funnelgroupgap'] + return self["funnelgroupgap"] @funnelgroupgap.setter def funnelgroupgap(self, val): - self['funnelgroupgap'] = val + self["funnelgroupgap"] = val # funnelmode # ---------- @@ -1111,11 +1120,11 @@ def funnelmode(self): ------- Any """ - return self['funnelmode'] + return self["funnelmode"] @funnelmode.setter def funnelmode(self, val): - self['funnelmode'] = val + self["funnelmode"] = val # geo # --- @@ -1211,11 +1220,11 @@ def geo(self): ------- plotly.graph_objs.layout.Geo """ - return self['geo'] + return self["geo"] @geo.setter def geo(self, val): - self['geo'] = val + self["geo"] = val # grid # ---- @@ -1314,11 +1323,11 @@ def grid(self): ------- plotly.graph_objs.layout.Grid """ - return self['grid'] + return self["grid"] @grid.setter def grid(self, val): - self['grid'] = val + self["grid"] = val # height # ------ @@ -1334,11 +1343,11 @@ def height(self): ------- int|float """ - return self['height'] + return self["height"] @height.setter def height(self, val): - self['height'] = val + self["height"] = val # hiddenlabels # ------------ @@ -1356,11 +1365,11 @@ def hiddenlabels(self): ------- numpy.ndarray """ - return self['hiddenlabels'] + return self["hiddenlabels"] @hiddenlabels.setter def hiddenlabels(self, val): - self['hiddenlabels'] = val + self["hiddenlabels"] = val # hiddenlabelssrc # --------------- @@ -1376,11 +1385,11 @@ def hiddenlabelssrc(self): ------- str """ - return self['hiddenlabelssrc'] + return self["hiddenlabelssrc"] @hiddenlabelssrc.setter def hiddenlabelssrc(self, val): - self['hiddenlabelssrc'] = val + self["hiddenlabelssrc"] = val # hidesources # ----------- @@ -1400,11 +1409,11 @@ def hidesources(self): ------- bool """ - return self['hidesources'] + return self["hidesources"] @hidesources.setter def hidesources(self, val): - self['hidesources'] = val + self["hidesources"] = val # hoverdistance # ------------- @@ -1427,11 +1436,11 @@ def hoverdistance(self): ------- int """ - return self['hoverdistance'] + return self["hoverdistance"] @hoverdistance.setter def hoverdistance(self, val): - self['hoverdistance'] = val + self["hoverdistance"] = val # hoverlabel # ---------- @@ -1475,11 +1484,11 @@ def hoverlabel(self): ------- plotly.graph_objs.layout.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovermode # --------- @@ -1501,11 +1510,11 @@ def hovermode(self): ------- Any """ - return self['hovermode'] + return self["hovermode"] @hovermode.setter def hovermode(self, val): - self['hovermode'] = val + self["hovermode"] = val # images # ------ @@ -1602,11 +1611,11 @@ def images(self): ------- tuple[plotly.graph_objs.layout.Image] """ - return self['images'] + return self["images"] @images.setter def images(self, val): - self['images'] = val + self["images"] = val # imagedefaults # ------------- @@ -1629,11 +1638,11 @@ def imagedefaults(self): ------- plotly.graph_objs.layout.Image """ - return self['imagedefaults'] + return self["imagedefaults"] @imagedefaults.setter def imagedefaults(self, val): - self['imagedefaults'] = val + self["imagedefaults"] = val # legend # ------ @@ -1718,11 +1727,11 @@ def legend(self): ------- plotly.graph_objs.layout.Legend """ - return self['legend'] + return self["legend"] @legend.setter def legend(self, val): - self['legend'] = val + self["legend"] = val # mapbox # ------ @@ -1778,11 +1787,11 @@ def mapbox(self): ------- plotly.graph_objs.layout.Mapbox """ - return self['mapbox'] + return self["mapbox"] @mapbox.setter def mapbox(self, val): - self['mapbox'] = val + self["mapbox"] = val # margin # ------ @@ -1815,11 +1824,11 @@ def margin(self): ------- plotly.graph_objs.layout.Margin """ - return self['margin'] + return self["margin"] @margin.setter def margin(self, val): - self['margin'] = val + self["margin"] = val # meta # ---- @@ -1841,11 +1850,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -1861,11 +1870,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # modebar # ------- @@ -1900,11 +1909,11 @@ def modebar(self): ------- plotly.graph_objs.layout.Modebar """ - return self['modebar'] + return self["modebar"] @modebar.setter def modebar(self, val): - self['modebar'] = val + self["modebar"] = val # orientation # ----------- @@ -1924,11 +1933,11 @@ def orientation(self): ------- int|float """ - return self['orientation'] + return self["orientation"] @orientation.setter def orientation(self, val): - self['orientation'] = val + self["orientation"] = val # paper_bgcolor # ------------- @@ -1983,11 +1992,11 @@ def paper_bgcolor(self): ------- str """ - return self['paper_bgcolor'] + return self["paper_bgcolor"] @paper_bgcolor.setter def paper_bgcolor(self, val): - self['paper_bgcolor'] = val + self["paper_bgcolor"] = val # piecolorway # ----------- @@ -2007,11 +2016,11 @@ def piecolorway(self): ------- list """ - return self['piecolorway'] + return self["piecolorway"] @piecolorway.setter def piecolorway(self, val): - self['piecolorway'] = val + self["piecolorway"] = val # plot_bgcolor # ------------ @@ -2066,11 +2075,11 @@ def plot_bgcolor(self): ------- str """ - return self['plot_bgcolor'] + return self["plot_bgcolor"] @plot_bgcolor.setter def plot_bgcolor(self, val): - self['plot_bgcolor'] = val + self["plot_bgcolor"] = val # polar # ----- @@ -2136,11 +2145,11 @@ def polar(self): ------- plotly.graph_objs.layout.Polar """ - return self['polar'] + return self["polar"] @polar.setter def polar(self, val): - self['polar'] = val + self["polar"] = val # radialaxis # ---------- @@ -2206,11 +2215,11 @@ def radialaxis(self): ------- plotly.graph_objs.layout.RadialAxis """ - return self['radialaxis'] + return self["radialaxis"] @radialaxis.setter def radialaxis(self, val): - self['radialaxis'] = val + self["radialaxis"] = val # scene # ----- @@ -2280,11 +2289,11 @@ def scene(self): ------- plotly.graph_objs.layout.Scene """ - return self['scene'] + return self["scene"] @scene.setter def scene(self, val): - self['scene'] = val + self["scene"] = val # selectdirection # --------------- @@ -2304,11 +2313,11 @@ def selectdirection(self): ------- Any """ - return self['selectdirection'] + return self["selectdirection"] @selectdirection.setter def selectdirection(self, val): - self['selectdirection'] = val + self["selectdirection"] = val # selectionrevision # ----------------- @@ -2324,11 +2333,11 @@ def selectionrevision(self): ------- Any """ - return self['selectionrevision'] + return self["selectionrevision"] @selectionrevision.setter def selectionrevision(self, val): - self['selectionrevision'] = val + self["selectionrevision"] = val # separators # ---------- @@ -2348,11 +2357,11 @@ def separators(self): ------- str """ - return self['separators'] + return self["separators"] @separators.setter def separators(self, val): - self['separators'] = val + self["separators"] = val # shapes # ------ @@ -2518,11 +2527,11 @@ def shapes(self): ------- tuple[plotly.graph_objs.layout.Shape] """ - return self['shapes'] + return self["shapes"] @shapes.setter def shapes(self, val): - self['shapes'] = val + self["shapes"] = val # shapedefaults # ------------- @@ -2545,11 +2554,11 @@ def shapedefaults(self): ------- plotly.graph_objs.layout.Shape """ - return self['shapedefaults'] + return self["shapedefaults"] @shapedefaults.setter def shapedefaults(self, val): - self['shapedefaults'] = val + self["shapedefaults"] = val # showlegend # ---------- @@ -2569,11 +2578,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # sliders # ------- @@ -2684,11 +2693,11 @@ def sliders(self): ------- tuple[plotly.graph_objs.layout.Slider] """ - return self['sliders'] + return self["sliders"] @sliders.setter def sliders(self, val): - self['sliders'] = val + self["sliders"] = val # sliderdefaults # -------------- @@ -2711,11 +2720,11 @@ def sliderdefaults(self): ------- plotly.graph_objs.layout.Slider """ - return self['sliderdefaults'] + return self["sliderdefaults"] @sliderdefaults.setter def sliderdefaults(self, val): - self['sliderdefaults'] = val + self["sliderdefaults"] = val # spikedistance # ------------- @@ -2736,11 +2745,11 @@ def spikedistance(self): ------- int """ - return self['spikedistance'] + return self["spikedistance"] @spikedistance.setter def spikedistance(self, val): - self['spikedistance'] = val + self["spikedistance"] = val # sunburstcolorway # ---------------- @@ -2760,11 +2769,11 @@ def sunburstcolorway(self): ------- list """ - return self['sunburstcolorway'] + return self["sunburstcolorway"] @sunburstcolorway.setter def sunburstcolorway(self, val): - self['sunburstcolorway'] = val + self["sunburstcolorway"] = val # template # -------- @@ -2820,11 +2829,11 @@ def template(self): ------- plotly.graph_objs.layout.Template """ - return self['template'] + return self["template"] @template.setter def template(self, val): - self['template'] = val + self["template"] = val # ternary # ------- @@ -2866,11 +2875,11 @@ def ternary(self): ------- plotly.graph_objs.layout.Ternary """ - return self['ternary'] + return self["ternary"] @ternary.setter def ternary(self, val): - self['ternary'] = val + self["ternary"] = val # title # ----- @@ -2942,11 +2951,11 @@ def title(self): ------- plotly.graph_objs.layout.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -2989,11 +2998,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # transition # ---------- @@ -3025,11 +3034,11 @@ def transition(self): ------- plotly.graph_objs.layout.Transition """ - return self['transition'] + return self["transition"] @transition.setter def transition(self, val): - self['transition'] = val + self["transition"] = val # uirevision # ---------- @@ -3059,11 +3068,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # updatemenus # ----------- @@ -3161,11 +3170,11 @@ def updatemenus(self): ------- tuple[plotly.graph_objs.layout.Updatemenu] """ - return self['updatemenus'] + return self["updatemenus"] @updatemenus.setter def updatemenus(self, val): - self['updatemenus'] = val + self["updatemenus"] = val # updatemenudefaults # ------------------ @@ -3188,11 +3197,11 @@ def updatemenudefaults(self): ------- plotly.graph_objs.layout.Updatemenu """ - return self['updatemenudefaults'] + return self["updatemenudefaults"] @updatemenudefaults.setter def updatemenudefaults(self, val): - self['updatemenudefaults'] = val + self["updatemenudefaults"] = val # violingap # --------- @@ -3210,11 +3219,11 @@ def violingap(self): ------- int|float """ - return self['violingap'] + return self["violingap"] @violingap.setter def violingap(self, val): - self['violingap'] = val + self["violingap"] = val # violingroupgap # -------------- @@ -3232,11 +3241,11 @@ def violingroupgap(self): ------- int|float """ - return self['violingroupgap'] + return self["violingroupgap"] @violingroupgap.setter def violingroupgap(self, val): - self['violingroupgap'] = val + self["violingroupgap"] = val # violinmode # ---------- @@ -3258,11 +3267,11 @@ def violinmode(self): ------- Any """ - return self['violinmode'] + return self["violinmode"] @violinmode.setter def violinmode(self, val): - self['violinmode'] = val + self["violinmode"] = val # waterfallgap # ------------ @@ -3279,11 +3288,11 @@ def waterfallgap(self): ------- int|float """ - return self['waterfallgap'] + return self["waterfallgap"] @waterfallgap.setter def waterfallgap(self, val): - self['waterfallgap'] = val + self["waterfallgap"] = val # waterfallgroupgap # ----------------- @@ -3300,11 +3309,11 @@ def waterfallgroupgap(self): ------- int|float """ - return self['waterfallgroupgap'] + return self["waterfallgroupgap"] @waterfallgroupgap.setter def waterfallgroupgap(self, val): - self['waterfallgroupgap'] = val + self["waterfallgroupgap"] = val # waterfallmode # ------------- @@ -3325,11 +3334,11 @@ def waterfallmode(self): ------- Any """ - return self['waterfallmode'] + return self["waterfallmode"] @waterfallmode.setter def waterfallmode(self, val): - self['waterfallmode'] = val + self["waterfallmode"] = val # width # ----- @@ -3345,11 +3354,11 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # xaxis # ----- @@ -3784,11 +3793,11 @@ def xaxis(self): ------- plotly.graph_objs.layout.XAxis """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # yaxis # ----- @@ -4217,17 +4226,17 @@ def yaxis(self): ------- plotly.graph_objs.layout.YAxis """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -4634,7 +4643,7 @@ def _prop_descriptions(self): compatible properties """ - _mapped_properties = {'titlefont': ('title', 'font')} + _mapped_properties = {"titlefont": ("title", "font")} def __init__( self, @@ -5131,7 +5140,7 @@ def __init__( ------- Layout """ - super(Layout, self).__init__('layout') + super(Layout, self).__init__("layout") # Validate arg # ------------ @@ -5151,288 +5160,277 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (layout as v_layout) + from plotly.validators import layout as v_layout # Initialize validators # --------------------- - self._validators['angularaxis'] = v_layout.AngularAxisValidator() - self._validators['annotations'] = v_layout.AnnotationsValidator() - self._validators['annotationdefaults'] = v_layout.AnnotationValidator() - self._validators['autosize'] = v_layout.AutosizeValidator() - self._validators['bargap'] = v_layout.BargapValidator() - self._validators['bargroupgap'] = v_layout.BargroupgapValidator() - self._validators['barmode'] = v_layout.BarmodeValidator() - self._validators['barnorm'] = v_layout.BarnormValidator() - self._validators['boxgap'] = v_layout.BoxgapValidator() - self._validators['boxgroupgap'] = v_layout.BoxgroupgapValidator() - self._validators['boxmode'] = v_layout.BoxmodeValidator() - self._validators['calendar'] = v_layout.CalendarValidator() - self._validators['clickmode'] = v_layout.ClickmodeValidator() - self._validators['coloraxis'] = v_layout.ColoraxisValidator() - self._validators['colorscale'] = v_layout.ColorscaleValidator() - self._validators['colorway'] = v_layout.ColorwayValidator() - self._validators['datarevision'] = v_layout.DatarevisionValidator() - self._validators['direction'] = v_layout.DirectionValidator() - self._validators['dragmode'] = v_layout.DragmodeValidator() - self._validators['editrevision'] = v_layout.EditrevisionValidator() - self._validators['extendfunnelareacolors' - ] = v_layout.ExtendfunnelareacolorsValidator() - self._validators['extendpiecolors' - ] = v_layout.ExtendpiecolorsValidator() - self._validators['extendsunburstcolors' - ] = v_layout.ExtendsunburstcolorsValidator() - self._validators['font'] = v_layout.FontValidator() - self._validators['funnelareacolorway' - ] = v_layout.FunnelareacolorwayValidator() - self._validators['funnelgap'] = v_layout.FunnelgapValidator() - self._validators['funnelgroupgap'] = v_layout.FunnelgroupgapValidator() - self._validators['funnelmode'] = v_layout.FunnelmodeValidator() - self._validators['geo'] = v_layout.GeoValidator() - self._validators['grid'] = v_layout.GridValidator() - self._validators['height'] = v_layout.HeightValidator() - self._validators['hiddenlabels'] = v_layout.HiddenlabelsValidator() - self._validators['hiddenlabelssrc' - ] = v_layout.HiddenlabelssrcValidator() - self._validators['hidesources'] = v_layout.HidesourcesValidator() - self._validators['hoverdistance'] = v_layout.HoverdistanceValidator() - self._validators['hoverlabel'] = v_layout.HoverlabelValidator() - self._validators['hovermode'] = v_layout.HovermodeValidator() - self._validators['images'] = v_layout.ImagesValidator() - self._validators['imagedefaults'] = v_layout.ImageValidator() - self._validators['legend'] = v_layout.LegendValidator() - self._validators['mapbox'] = v_layout.MapboxValidator() - self._validators['margin'] = v_layout.MarginValidator() - self._validators['meta'] = v_layout.MetaValidator() - self._validators['metasrc'] = v_layout.MetasrcValidator() - self._validators['modebar'] = v_layout.ModebarValidator() - self._validators['orientation'] = v_layout.OrientationValidator() - self._validators['paper_bgcolor'] = v_layout.PaperBgcolorValidator() - self._validators['piecolorway'] = v_layout.PiecolorwayValidator() - self._validators['plot_bgcolor'] = v_layout.PlotBgcolorValidator() - self._validators['polar'] = v_layout.PolarValidator() - self._validators['radialaxis'] = v_layout.RadialAxisValidator() - self._validators['scene'] = v_layout.SceneValidator() - self._validators['selectdirection' - ] = v_layout.SelectdirectionValidator() - self._validators['selectionrevision' - ] = v_layout.SelectionrevisionValidator() - self._validators['separators'] = v_layout.SeparatorsValidator() - self._validators['shapes'] = v_layout.ShapesValidator() - self._validators['shapedefaults'] = v_layout.ShapeValidator() - self._validators['showlegend'] = v_layout.ShowlegendValidator() - self._validators['sliders'] = v_layout.SlidersValidator() - self._validators['sliderdefaults'] = v_layout.SliderValidator() - self._validators['spikedistance'] = v_layout.SpikedistanceValidator() - self._validators['sunburstcolorway' - ] = v_layout.SunburstcolorwayValidator() - self._validators['template'] = v_layout.TemplateValidator() - self._validators['ternary'] = v_layout.TernaryValidator() - self._validators['title'] = v_layout.TitleValidator() - self._validators['transition'] = v_layout.TransitionValidator() - self._validators['uirevision'] = v_layout.UirevisionValidator() - self._validators['updatemenus'] = v_layout.UpdatemenusValidator() - self._validators['updatemenudefaults'] = v_layout.UpdatemenuValidator() - self._validators['violingap'] = v_layout.ViolingapValidator() - self._validators['violingroupgap'] = v_layout.ViolingroupgapValidator() - self._validators['violinmode'] = v_layout.ViolinmodeValidator() - self._validators['waterfallgap'] = v_layout.WaterfallgapValidator() - self._validators['waterfallgroupgap' - ] = v_layout.WaterfallgroupgapValidator() - self._validators['waterfallmode'] = v_layout.WaterfallmodeValidator() - self._validators['width'] = v_layout.WidthValidator() - self._validators['xaxis'] = v_layout.XAxisValidator() - self._validators['yaxis'] = v_layout.YAxisValidator() + self._validators["angularaxis"] = v_layout.AngularAxisValidator() + self._validators["annotations"] = v_layout.AnnotationsValidator() + self._validators["annotationdefaults"] = v_layout.AnnotationValidator() + self._validators["autosize"] = v_layout.AutosizeValidator() + self._validators["bargap"] = v_layout.BargapValidator() + self._validators["bargroupgap"] = v_layout.BargroupgapValidator() + self._validators["barmode"] = v_layout.BarmodeValidator() + self._validators["barnorm"] = v_layout.BarnormValidator() + self._validators["boxgap"] = v_layout.BoxgapValidator() + self._validators["boxgroupgap"] = v_layout.BoxgroupgapValidator() + self._validators["boxmode"] = v_layout.BoxmodeValidator() + self._validators["calendar"] = v_layout.CalendarValidator() + self._validators["clickmode"] = v_layout.ClickmodeValidator() + self._validators["coloraxis"] = v_layout.ColoraxisValidator() + self._validators["colorscale"] = v_layout.ColorscaleValidator() + self._validators["colorway"] = v_layout.ColorwayValidator() + self._validators["datarevision"] = v_layout.DatarevisionValidator() + self._validators["direction"] = v_layout.DirectionValidator() + self._validators["dragmode"] = v_layout.DragmodeValidator() + self._validators["editrevision"] = v_layout.EditrevisionValidator() + self._validators[ + "extendfunnelareacolors" + ] = v_layout.ExtendfunnelareacolorsValidator() + self._validators["extendpiecolors"] = v_layout.ExtendpiecolorsValidator() + self._validators[ + "extendsunburstcolors" + ] = v_layout.ExtendsunburstcolorsValidator() + self._validators["font"] = v_layout.FontValidator() + self._validators["funnelareacolorway"] = v_layout.FunnelareacolorwayValidator() + self._validators["funnelgap"] = v_layout.FunnelgapValidator() + self._validators["funnelgroupgap"] = v_layout.FunnelgroupgapValidator() + self._validators["funnelmode"] = v_layout.FunnelmodeValidator() + self._validators["geo"] = v_layout.GeoValidator() + self._validators["grid"] = v_layout.GridValidator() + self._validators["height"] = v_layout.HeightValidator() + self._validators["hiddenlabels"] = v_layout.HiddenlabelsValidator() + self._validators["hiddenlabelssrc"] = v_layout.HiddenlabelssrcValidator() + self._validators["hidesources"] = v_layout.HidesourcesValidator() + self._validators["hoverdistance"] = v_layout.HoverdistanceValidator() + self._validators["hoverlabel"] = v_layout.HoverlabelValidator() + self._validators["hovermode"] = v_layout.HovermodeValidator() + self._validators["images"] = v_layout.ImagesValidator() + self._validators["imagedefaults"] = v_layout.ImageValidator() + self._validators["legend"] = v_layout.LegendValidator() + self._validators["mapbox"] = v_layout.MapboxValidator() + self._validators["margin"] = v_layout.MarginValidator() + self._validators["meta"] = v_layout.MetaValidator() + self._validators["metasrc"] = v_layout.MetasrcValidator() + self._validators["modebar"] = v_layout.ModebarValidator() + self._validators["orientation"] = v_layout.OrientationValidator() + self._validators["paper_bgcolor"] = v_layout.PaperBgcolorValidator() + self._validators["piecolorway"] = v_layout.PiecolorwayValidator() + self._validators["plot_bgcolor"] = v_layout.PlotBgcolorValidator() + self._validators["polar"] = v_layout.PolarValidator() + self._validators["radialaxis"] = v_layout.RadialAxisValidator() + self._validators["scene"] = v_layout.SceneValidator() + self._validators["selectdirection"] = v_layout.SelectdirectionValidator() + self._validators["selectionrevision"] = v_layout.SelectionrevisionValidator() + self._validators["separators"] = v_layout.SeparatorsValidator() + self._validators["shapes"] = v_layout.ShapesValidator() + self._validators["shapedefaults"] = v_layout.ShapeValidator() + self._validators["showlegend"] = v_layout.ShowlegendValidator() + self._validators["sliders"] = v_layout.SlidersValidator() + self._validators["sliderdefaults"] = v_layout.SliderValidator() + self._validators["spikedistance"] = v_layout.SpikedistanceValidator() + self._validators["sunburstcolorway"] = v_layout.SunburstcolorwayValidator() + self._validators["template"] = v_layout.TemplateValidator() + self._validators["ternary"] = v_layout.TernaryValidator() + self._validators["title"] = v_layout.TitleValidator() + self._validators["transition"] = v_layout.TransitionValidator() + self._validators["uirevision"] = v_layout.UirevisionValidator() + self._validators["updatemenus"] = v_layout.UpdatemenusValidator() + self._validators["updatemenudefaults"] = v_layout.UpdatemenuValidator() + self._validators["violingap"] = v_layout.ViolingapValidator() + self._validators["violingroupgap"] = v_layout.ViolingroupgapValidator() + self._validators["violinmode"] = v_layout.ViolinmodeValidator() + self._validators["waterfallgap"] = v_layout.WaterfallgapValidator() + self._validators["waterfallgroupgap"] = v_layout.WaterfallgroupgapValidator() + self._validators["waterfallmode"] = v_layout.WaterfallmodeValidator() + self._validators["width"] = v_layout.WidthValidator() + self._validators["xaxis"] = v_layout.XAxisValidator() + self._validators["yaxis"] = v_layout.YAxisValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('angularaxis', None) - self['angularaxis'] = angularaxis if angularaxis is not None else _v - _v = arg.pop('annotations', None) - self['annotations'] = annotations if annotations is not None else _v - _v = arg.pop('annotationdefaults', None) - self['annotationdefaults' - ] = annotationdefaults if annotationdefaults is not None else _v - _v = arg.pop('autosize', None) - self['autosize'] = autosize if autosize is not None else _v - _v = arg.pop('bargap', None) - self['bargap'] = bargap if bargap is not None else _v - _v = arg.pop('bargroupgap', None) - self['bargroupgap'] = bargroupgap if bargroupgap is not None else _v - _v = arg.pop('barmode', None) - self['barmode'] = barmode if barmode is not None else _v - _v = arg.pop('barnorm', None) - self['barnorm'] = barnorm if barnorm is not None else _v - _v = arg.pop('boxgap', None) - self['boxgap'] = boxgap if boxgap is not None else _v - _v = arg.pop('boxgroupgap', None) - self['boxgroupgap'] = boxgroupgap if boxgroupgap is not None else _v - _v = arg.pop('boxmode', None) - self['boxmode'] = boxmode if boxmode is not None else _v - _v = arg.pop('calendar', None) - self['calendar'] = calendar if calendar is not None else _v - _v = arg.pop('clickmode', None) - self['clickmode'] = clickmode if clickmode is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorway', None) - self['colorway'] = colorway if colorway is not None else _v - _v = arg.pop('datarevision', None) - self['datarevision'] = datarevision if datarevision is not None else _v - _v = arg.pop('direction', None) - self['direction'] = direction if direction is not None else _v - _v = arg.pop('dragmode', None) - self['dragmode'] = dragmode if dragmode is not None else _v - _v = arg.pop('editrevision', None) - self['editrevision'] = editrevision if editrevision is not None else _v - _v = arg.pop('extendfunnelareacolors', None) - self[ - 'extendfunnelareacolors' - ] = extendfunnelareacolors if extendfunnelareacolors is not None else _v - _v = arg.pop('extendpiecolors', None) - self['extendpiecolors' - ] = extendpiecolors if extendpiecolors is not None else _v - _v = arg.pop('extendsunburstcolors', None) - self[ - 'extendsunburstcolors' - ] = extendsunburstcolors if extendsunburstcolors is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('funnelareacolorway', None) - self['funnelareacolorway' - ] = funnelareacolorway if funnelareacolorway is not None else _v - _v = arg.pop('funnelgap', None) - self['funnelgap'] = funnelgap if funnelgap is not None else _v - _v = arg.pop('funnelgroupgap', None) - self['funnelgroupgap' - ] = funnelgroupgap if funnelgroupgap is not None else _v - _v = arg.pop('funnelmode', None) - self['funnelmode'] = funnelmode if funnelmode is not None else _v - _v = arg.pop('geo', None) - self['geo'] = geo if geo is not None else _v - _v = arg.pop('grid', None) - self['grid'] = grid if grid is not None else _v - _v = arg.pop('height', None) - self['height'] = height if height is not None else _v - _v = arg.pop('hiddenlabels', None) - self['hiddenlabels'] = hiddenlabels if hiddenlabels is not None else _v - _v = arg.pop('hiddenlabelssrc', None) - self['hiddenlabelssrc' - ] = hiddenlabelssrc if hiddenlabelssrc is not None else _v - _v = arg.pop('hidesources', None) - self['hidesources'] = hidesources if hidesources is not None else _v - _v = arg.pop('hoverdistance', None) - self['hoverdistance' - ] = hoverdistance if hoverdistance is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovermode', None) - self['hovermode'] = hovermode if hovermode is not None else _v - _v = arg.pop('images', None) - self['images'] = images if images is not None else _v - _v = arg.pop('imagedefaults', None) - self['imagedefaults' - ] = imagedefaults if imagedefaults is not None else _v - _v = arg.pop('legend', None) - self['legend'] = legend if legend is not None else _v - _v = arg.pop('mapbox', None) - self['mapbox'] = mapbox if mapbox is not None else _v - _v = arg.pop('margin', None) - self['margin'] = margin if margin is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('modebar', None) - self['modebar'] = modebar if modebar is not None else _v - _v = arg.pop('orientation', None) - self['orientation'] = orientation if orientation is not None else _v - _v = arg.pop('paper_bgcolor', None) - self['paper_bgcolor' - ] = paper_bgcolor if paper_bgcolor is not None else _v - _v = arg.pop('piecolorway', None) - self['piecolorway'] = piecolorway if piecolorway is not None else _v - _v = arg.pop('plot_bgcolor', None) - self['plot_bgcolor'] = plot_bgcolor if plot_bgcolor is not None else _v - _v = arg.pop('polar', None) - self['polar'] = polar if polar is not None else _v - _v = arg.pop('radialaxis', None) - self['radialaxis'] = radialaxis if radialaxis is not None else _v - _v = arg.pop('scene', None) - self['scene'] = scene if scene is not None else _v - _v = arg.pop('selectdirection', None) - self['selectdirection' - ] = selectdirection if selectdirection is not None else _v - _v = arg.pop('selectionrevision', None) - self['selectionrevision' - ] = selectionrevision if selectionrevision is not None else _v - _v = arg.pop('separators', None) - self['separators'] = separators if separators is not None else _v - _v = arg.pop('shapes', None) - self['shapes'] = shapes if shapes is not None else _v - _v = arg.pop('shapedefaults', None) - self['shapedefaults' - ] = shapedefaults if shapedefaults is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('sliders', None) - self['sliders'] = sliders if sliders is not None else _v - _v = arg.pop('sliderdefaults', None) - self['sliderdefaults' - ] = sliderdefaults if sliderdefaults is not None else _v - _v = arg.pop('spikedistance', None) - self['spikedistance' - ] = spikedistance if spikedistance is not None else _v - _v = arg.pop('sunburstcolorway', None) - self['sunburstcolorway' - ] = sunburstcolorway if sunburstcolorway is not None else _v - _v = arg.pop('template', None) + _v = arg.pop("angularaxis", None) + self["angularaxis"] = angularaxis if angularaxis is not None else _v + _v = arg.pop("annotations", None) + self["annotations"] = annotations if annotations is not None else _v + _v = arg.pop("annotationdefaults", None) + self["annotationdefaults"] = ( + annotationdefaults if annotationdefaults is not None else _v + ) + _v = arg.pop("autosize", None) + self["autosize"] = autosize if autosize is not None else _v + _v = arg.pop("bargap", None) + self["bargap"] = bargap if bargap is not None else _v + _v = arg.pop("bargroupgap", None) + self["bargroupgap"] = bargroupgap if bargroupgap is not None else _v + _v = arg.pop("barmode", None) + self["barmode"] = barmode if barmode is not None else _v + _v = arg.pop("barnorm", None) + self["barnorm"] = barnorm if barnorm is not None else _v + _v = arg.pop("boxgap", None) + self["boxgap"] = boxgap if boxgap is not None else _v + _v = arg.pop("boxgroupgap", None) + self["boxgroupgap"] = boxgroupgap if boxgroupgap is not None else _v + _v = arg.pop("boxmode", None) + self["boxmode"] = boxmode if boxmode is not None else _v + _v = arg.pop("calendar", None) + self["calendar"] = calendar if calendar is not None else _v + _v = arg.pop("clickmode", None) + self["clickmode"] = clickmode if clickmode is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorway", None) + self["colorway"] = colorway if colorway is not None else _v + _v = arg.pop("datarevision", None) + self["datarevision"] = datarevision if datarevision is not None else _v + _v = arg.pop("direction", None) + self["direction"] = direction if direction is not None else _v + _v = arg.pop("dragmode", None) + self["dragmode"] = dragmode if dragmode is not None else _v + _v = arg.pop("editrevision", None) + self["editrevision"] = editrevision if editrevision is not None else _v + _v = arg.pop("extendfunnelareacolors", None) + self["extendfunnelareacolors"] = ( + extendfunnelareacolors if extendfunnelareacolors is not None else _v + ) + _v = arg.pop("extendpiecolors", None) + self["extendpiecolors"] = extendpiecolors if extendpiecolors is not None else _v + _v = arg.pop("extendsunburstcolors", None) + self["extendsunburstcolors"] = ( + extendsunburstcolors if extendsunburstcolors is not None else _v + ) + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("funnelareacolorway", None) + self["funnelareacolorway"] = ( + funnelareacolorway if funnelareacolorway is not None else _v + ) + _v = arg.pop("funnelgap", None) + self["funnelgap"] = funnelgap if funnelgap is not None else _v + _v = arg.pop("funnelgroupgap", None) + self["funnelgroupgap"] = funnelgroupgap if funnelgroupgap is not None else _v + _v = arg.pop("funnelmode", None) + self["funnelmode"] = funnelmode if funnelmode is not None else _v + _v = arg.pop("geo", None) + self["geo"] = geo if geo is not None else _v + _v = arg.pop("grid", None) + self["grid"] = grid if grid is not None else _v + _v = arg.pop("height", None) + self["height"] = height if height is not None else _v + _v = arg.pop("hiddenlabels", None) + self["hiddenlabels"] = hiddenlabels if hiddenlabels is not None else _v + _v = arg.pop("hiddenlabelssrc", None) + self["hiddenlabelssrc"] = hiddenlabelssrc if hiddenlabelssrc is not None else _v + _v = arg.pop("hidesources", None) + self["hidesources"] = hidesources if hidesources is not None else _v + _v = arg.pop("hoverdistance", None) + self["hoverdistance"] = hoverdistance if hoverdistance is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovermode", None) + self["hovermode"] = hovermode if hovermode is not None else _v + _v = arg.pop("images", None) + self["images"] = images if images is not None else _v + _v = arg.pop("imagedefaults", None) + self["imagedefaults"] = imagedefaults if imagedefaults is not None else _v + _v = arg.pop("legend", None) + self["legend"] = legend if legend is not None else _v + _v = arg.pop("mapbox", None) + self["mapbox"] = mapbox if mapbox is not None else _v + _v = arg.pop("margin", None) + self["margin"] = margin if margin is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("modebar", None) + self["modebar"] = modebar if modebar is not None else _v + _v = arg.pop("orientation", None) + self["orientation"] = orientation if orientation is not None else _v + _v = arg.pop("paper_bgcolor", None) + self["paper_bgcolor"] = paper_bgcolor if paper_bgcolor is not None else _v + _v = arg.pop("piecolorway", None) + self["piecolorway"] = piecolorway if piecolorway is not None else _v + _v = arg.pop("plot_bgcolor", None) + self["plot_bgcolor"] = plot_bgcolor if plot_bgcolor is not None else _v + _v = arg.pop("polar", None) + self["polar"] = polar if polar is not None else _v + _v = arg.pop("radialaxis", None) + self["radialaxis"] = radialaxis if radialaxis is not None else _v + _v = arg.pop("scene", None) + self["scene"] = scene if scene is not None else _v + _v = arg.pop("selectdirection", None) + self["selectdirection"] = selectdirection if selectdirection is not None else _v + _v = arg.pop("selectionrevision", None) + self["selectionrevision"] = ( + selectionrevision if selectionrevision is not None else _v + ) + _v = arg.pop("separators", None) + self["separators"] = separators if separators is not None else _v + _v = arg.pop("shapes", None) + self["shapes"] = shapes if shapes is not None else _v + _v = arg.pop("shapedefaults", None) + self["shapedefaults"] = shapedefaults if shapedefaults is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("sliders", None) + self["sliders"] = sliders if sliders is not None else _v + _v = arg.pop("sliderdefaults", None) + self["sliderdefaults"] = sliderdefaults if sliderdefaults is not None else _v + _v = arg.pop("spikedistance", None) + self["spikedistance"] = spikedistance if spikedistance is not None else _v + _v = arg.pop("sunburstcolorway", None) + self["sunburstcolorway"] = ( + sunburstcolorway if sunburstcolorway is not None else _v + ) + _v = arg.pop("template", None) _v = template if template is not None else _v if _v is not None: - self['template'] = _v - _v = arg.pop('ternary', None) - self['ternary'] = ternary if ternary is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + self["template"] = _v + _v = arg.pop("ternary", None) + self["ternary"] = ternary if ternary is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('transition', None) - self['transition'] = transition if transition is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('updatemenus', None) - self['updatemenus'] = updatemenus if updatemenus is not None else _v - _v = arg.pop('updatemenudefaults', None) - self['updatemenudefaults' - ] = updatemenudefaults if updatemenudefaults is not None else _v - _v = arg.pop('violingap', None) - self['violingap'] = violingap if violingap is not None else _v - _v = arg.pop('violingroupgap', None) - self['violingroupgap' - ] = violingroupgap if violingroupgap is not None else _v - _v = arg.pop('violinmode', None) - self['violinmode'] = violinmode if violinmode is not None else _v - _v = arg.pop('waterfallgap', None) - self['waterfallgap'] = waterfallgap if waterfallgap is not None else _v - _v = arg.pop('waterfallgroupgap', None) - self['waterfallgroupgap' - ] = waterfallgroupgap if waterfallgroupgap is not None else _v - _v = arg.pop('waterfallmode', None) - self['waterfallmode' - ] = waterfallmode if waterfallmode is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v + self["titlefont"] = _v + _v = arg.pop("transition", None) + self["transition"] = transition if transition is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("updatemenus", None) + self["updatemenus"] = updatemenus if updatemenus is not None else _v + _v = arg.pop("updatemenudefaults", None) + self["updatemenudefaults"] = ( + updatemenudefaults if updatemenudefaults is not None else _v + ) + _v = arg.pop("violingap", None) + self["violingap"] = violingap if violingap is not None else _v + _v = arg.pop("violingroupgap", None) + self["violingroupgap"] = violingroupgap if violingroupgap is not None else _v + _v = arg.pop("violinmode", None) + self["violinmode"] = violinmode if violinmode is not None else _v + _v = arg.pop("waterfallgap", None) + self["waterfallgap"] = waterfallgap if waterfallgap is not None else _v + _v = arg.pop("waterfallgroupgap", None) + self["waterfallgroupgap"] = ( + waterfallgroupgap if waterfallgroupgap is not None else _v + ) + _v = arg.pop("waterfallmode", None) + self["waterfallmode"] = waterfallmode if waterfallmode is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v # Process unknown kwargs # ---------------------- @@ -5466,11 +5464,11 @@ def alignmentgroup(self): ------- str """ - return self['alignmentgroup'] + return self["alignmentgroup"] @alignmentgroup.setter def alignmentgroup(self, val): - self['alignmentgroup'] = val + self["alignmentgroup"] = val # base # ---- @@ -5486,11 +5484,11 @@ def base(self): ------- int|float """ - return self['base'] + return self["base"] @base.setter def base(self, val): - self['base'] = val + self["base"] = val # cliponaxis # ---------- @@ -5509,11 +5507,11 @@ def cliponaxis(self): ------- bool """ - return self['cliponaxis'] + return self["cliponaxis"] @cliponaxis.setter def cliponaxis(self, val): - self['cliponaxis'] = val + self["cliponaxis"] = val # connector # --------- @@ -5540,11 +5538,11 @@ def connector(self): ------- plotly.graph_objs.waterfall.Connector """ - return self['connector'] + return self["connector"] @connector.setter def connector(self, val): - self['connector'] = val + self["connector"] = val # constraintext # ------------- @@ -5562,11 +5560,11 @@ def constraintext(self): ------- Any """ - return self['constraintext'] + return self["constraintext"] @constraintext.setter def constraintext(self, val): - self['constraintext'] = val + self["constraintext"] = val # customdata # ---------- @@ -5585,11 +5583,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -5605,11 +5603,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # decreasing # ---------- @@ -5632,11 +5630,11 @@ def decreasing(self): ------- plotly.graph_objs.waterfall.Decreasing """ - return self['decreasing'] + return self["decreasing"] @decreasing.setter def decreasing(self, val): - self['decreasing'] = val + self["decreasing"] = val # dx # -- @@ -5652,11 +5650,11 @@ def dx(self): ------- int|float """ - return self['dx'] + return self["dx"] @dx.setter def dx(self, val): - self['dx'] = val + self["dx"] = val # dy # -- @@ -5672,11 +5670,11 @@ def dy(self): ------- int|float """ - return self['dy'] + return self["dy"] @dy.setter def dy(self, val): - self['dy'] = val + self["dy"] = val # hoverinfo # --------- @@ -5698,11 +5696,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -5718,11 +5716,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -5777,11 +5775,11 @@ def hoverlabel(self): ------- plotly.graph_objs.waterfall.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -5813,11 +5811,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -5833,11 +5831,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -5859,11 +5857,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -5879,11 +5877,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -5901,11 +5899,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -5921,11 +5919,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # increasing # ---------- @@ -5948,11 +5946,11 @@ def increasing(self): ------- plotly.graph_objs.waterfall.Increasing """ - return self['increasing'] + return self["increasing"] @increasing.setter def increasing(self, val): - self['increasing'] = val + self["increasing"] = val # insidetextanchor # ---------------- @@ -5970,11 +5968,11 @@ def insidetextanchor(self): ------- Any """ - return self['insidetextanchor'] + return self["insidetextanchor"] @insidetextanchor.setter def insidetextanchor(self, val): - self['insidetextanchor'] = val + self["insidetextanchor"] = val # insidetextfont # -------------- @@ -6025,11 +6023,11 @@ def insidetextfont(self): ------- plotly.graph_objs.waterfall.Insidetextfont """ - return self['insidetextfont'] + return self["insidetextfont"] @insidetextfont.setter def insidetextfont(self, val): - self['insidetextfont'] = val + self["insidetextfont"] = val # legendgroup # ----------- @@ -6048,11 +6046,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # measure # ------- @@ -6072,11 +6070,11 @@ def measure(self): ------- numpy.ndarray """ - return self['measure'] + return self["measure"] @measure.setter def measure(self, val): - self['measure'] = val + self["measure"] = val # measuresrc # ---------- @@ -6092,11 +6090,11 @@ def measuresrc(self): ------- str """ - return self['measuresrc'] + return self["measuresrc"] @measuresrc.setter def measuresrc(self, val): - self['measuresrc'] = val + self["measuresrc"] = val # meta # ---- @@ -6120,11 +6118,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -6140,11 +6138,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -6162,11 +6160,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # offset # ------ @@ -6185,11 +6183,11 @@ def offset(self): ------- int|float|numpy.ndarray """ - return self['offset'] + return self["offset"] @offset.setter def offset(self, val): - self['offset'] = val + self["offset"] = val # offsetgroup # ----------- @@ -6208,11 +6206,11 @@ def offsetgroup(self): ------- str """ - return self['offsetgroup'] + return self["offsetgroup"] @offsetgroup.setter def offsetgroup(self, val): - self['offsetgroup'] = val + self["offsetgroup"] = val # offsetsrc # --------- @@ -6228,11 +6226,11 @@ def offsetsrc(self): ------- str """ - return self['offsetsrc'] + return self["offsetsrc"] @offsetsrc.setter def offsetsrc(self, val): - self['offsetsrc'] = val + self["offsetsrc"] = val # opacity # ------- @@ -6248,11 +6246,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # orientation # ----------- @@ -6270,11 +6268,11 @@ def orientation(self): ------- Any """ - return self['orientation'] + return self["orientation"] @orientation.setter def orientation(self, val): - self['orientation'] = val + self["orientation"] = val # outsidetextfont # --------------- @@ -6325,11 +6323,11 @@ def outsidetextfont(self): ------- plotly.graph_objs.waterfall.Outsidetextfont """ - return self['outsidetextfont'] + return self["outsidetextfont"] @outsidetextfont.setter def outsidetextfont(self, val): - self['outsidetextfont'] = val + self["outsidetextfont"] = val # selectedpoints # -------------- @@ -6349,11 +6347,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -6370,11 +6368,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -6403,11 +6401,11 @@ def stream(self): ------- plotly.graph_objs.waterfall.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -6430,11 +6428,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textangle # --------- @@ -6455,11 +6453,11 @@ def textangle(self): ------- int|float """ - return self['textangle'] + return self["textangle"] @textangle.setter def textangle(self, val): - self['textangle'] = val + self["textangle"] = val # textfont # -------- @@ -6510,11 +6508,11 @@ def textfont(self): ------- plotly.graph_objs.waterfall.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # textinfo # -------- @@ -6535,11 +6533,11 @@ def textinfo(self): ------- Any """ - return self['textinfo'] + return self["textinfo"] @textinfo.setter def textinfo(self, val): - self['textinfo'] = val + self["textinfo"] = val # textposition # ------------ @@ -6563,11 +6561,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self['textposition'] + return self["textposition"] @textposition.setter def textposition(self, val): - self['textposition'] = val + self["textposition"] = val # textpositionsrc # --------------- @@ -6583,11 +6581,11 @@ def textpositionsrc(self): ------- str """ - return self['textpositionsrc'] + return self["textpositionsrc"] @textpositionsrc.setter def textpositionsrc(self, val): - self['textpositionsrc'] = val + self["textpositionsrc"] = val # textsrc # ------- @@ -6603,11 +6601,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # totals # ------ @@ -6630,11 +6628,11 @@ def totals(self): ------- plotly.graph_objs.waterfall.Totals """ - return self['totals'] + return self["totals"] @totals.setter def totals(self, val): - self['totals'] = val + self["totals"] = val # uid # --- @@ -6652,11 +6650,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -6685,11 +6683,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -6708,11 +6706,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -6729,11 +6727,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -6749,11 +6747,11 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # x # - @@ -6769,11 +6767,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # x0 # -- @@ -6790,11 +6788,11 @@ def x0(self): ------- Any """ - return self['x0'] + return self["x0"] @x0.setter def x0(self, val): - self['x0'] = val + self["x0"] = val # xaxis # ----- @@ -6815,11 +6813,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # xsrc # ---- @@ -6835,11 +6833,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -6855,11 +6853,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # y0 # -- @@ -6876,11 +6874,11 @@ def y0(self): ------- Any """ - return self['y0'] + return self["y0"] @y0.setter def y0(self, val): - self['y0'] = val + self["y0"] = val # yaxis # ----- @@ -6901,11 +6899,11 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # ysrc # ---- @@ -6921,23 +6919,23 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -7515,7 +7513,7 @@ def __init__( ------- Waterfall """ - super(Waterfall, self).__init__('waterfall') + super(Waterfall, self).__init__("waterfall") # Validate arg # ------------ @@ -7535,220 +7533,205 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (waterfall as v_waterfall) + from plotly.validators import waterfall as v_waterfall # Initialize validators # --------------------- - self._validators['alignmentgroup' - ] = v_waterfall.AlignmentgroupValidator() - self._validators['base'] = v_waterfall.BaseValidator() - self._validators['cliponaxis'] = v_waterfall.CliponaxisValidator() - self._validators['connector'] = v_waterfall.ConnectorValidator() - self._validators['constraintext'] = v_waterfall.ConstraintextValidator( - ) - self._validators['customdata'] = v_waterfall.CustomdataValidator() - self._validators['customdatasrc'] = v_waterfall.CustomdatasrcValidator( - ) - self._validators['decreasing'] = v_waterfall.DecreasingValidator() - self._validators['dx'] = v_waterfall.DxValidator() - self._validators['dy'] = v_waterfall.DyValidator() - self._validators['hoverinfo'] = v_waterfall.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_waterfall.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_waterfall.HoverlabelValidator() - self._validators['hovertemplate'] = v_waterfall.HovertemplateValidator( - ) - self._validators['hovertemplatesrc' - ] = v_waterfall.HovertemplatesrcValidator() - self._validators['hovertext'] = v_waterfall.HovertextValidator() - self._validators['hovertextsrc'] = v_waterfall.HovertextsrcValidator() - self._validators['ids'] = v_waterfall.IdsValidator() - self._validators['idssrc'] = v_waterfall.IdssrcValidator() - self._validators['increasing'] = v_waterfall.IncreasingValidator() - self._validators['insidetextanchor' - ] = v_waterfall.InsidetextanchorValidator() - self._validators['insidetextfont' - ] = v_waterfall.InsidetextfontValidator() - self._validators['legendgroup'] = v_waterfall.LegendgroupValidator() - self._validators['measure'] = v_waterfall.MeasureValidator() - self._validators['measuresrc'] = v_waterfall.MeasuresrcValidator() - self._validators['meta'] = v_waterfall.MetaValidator() - self._validators['metasrc'] = v_waterfall.MetasrcValidator() - self._validators['name'] = v_waterfall.NameValidator() - self._validators['offset'] = v_waterfall.OffsetValidator() - self._validators['offsetgroup'] = v_waterfall.OffsetgroupValidator() - self._validators['offsetsrc'] = v_waterfall.OffsetsrcValidator() - self._validators['opacity'] = v_waterfall.OpacityValidator() - self._validators['orientation'] = v_waterfall.OrientationValidator() - self._validators['outsidetextfont' - ] = v_waterfall.OutsidetextfontValidator() - self._validators['selectedpoints' - ] = v_waterfall.SelectedpointsValidator() - self._validators['showlegend'] = v_waterfall.ShowlegendValidator() - self._validators['stream'] = v_waterfall.StreamValidator() - self._validators['text'] = v_waterfall.TextValidator() - self._validators['textangle'] = v_waterfall.TextangleValidator() - self._validators['textfont'] = v_waterfall.TextfontValidator() - self._validators['textinfo'] = v_waterfall.TextinfoValidator() - self._validators['textposition'] = v_waterfall.TextpositionValidator() - self._validators['textpositionsrc' - ] = v_waterfall.TextpositionsrcValidator() - self._validators['textsrc'] = v_waterfall.TextsrcValidator() - self._validators['totals'] = v_waterfall.TotalsValidator() - self._validators['uid'] = v_waterfall.UidValidator() - self._validators['uirevision'] = v_waterfall.UirevisionValidator() - self._validators['visible'] = v_waterfall.VisibleValidator() - self._validators['width'] = v_waterfall.WidthValidator() - self._validators['widthsrc'] = v_waterfall.WidthsrcValidator() - self._validators['x'] = v_waterfall.XValidator() - self._validators['x0'] = v_waterfall.X0Validator() - self._validators['xaxis'] = v_waterfall.XAxisValidator() - self._validators['xsrc'] = v_waterfall.XsrcValidator() - self._validators['y'] = v_waterfall.YValidator() - self._validators['y0'] = v_waterfall.Y0Validator() - self._validators['yaxis'] = v_waterfall.YAxisValidator() - self._validators['ysrc'] = v_waterfall.YsrcValidator() + self._validators["alignmentgroup"] = v_waterfall.AlignmentgroupValidator() + self._validators["base"] = v_waterfall.BaseValidator() + self._validators["cliponaxis"] = v_waterfall.CliponaxisValidator() + self._validators["connector"] = v_waterfall.ConnectorValidator() + self._validators["constraintext"] = v_waterfall.ConstraintextValidator() + self._validators["customdata"] = v_waterfall.CustomdataValidator() + self._validators["customdatasrc"] = v_waterfall.CustomdatasrcValidator() + self._validators["decreasing"] = v_waterfall.DecreasingValidator() + self._validators["dx"] = v_waterfall.DxValidator() + self._validators["dy"] = v_waterfall.DyValidator() + self._validators["hoverinfo"] = v_waterfall.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_waterfall.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_waterfall.HoverlabelValidator() + self._validators["hovertemplate"] = v_waterfall.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_waterfall.HovertemplatesrcValidator() + self._validators["hovertext"] = v_waterfall.HovertextValidator() + self._validators["hovertextsrc"] = v_waterfall.HovertextsrcValidator() + self._validators["ids"] = v_waterfall.IdsValidator() + self._validators["idssrc"] = v_waterfall.IdssrcValidator() + self._validators["increasing"] = v_waterfall.IncreasingValidator() + self._validators["insidetextanchor"] = v_waterfall.InsidetextanchorValidator() + self._validators["insidetextfont"] = v_waterfall.InsidetextfontValidator() + self._validators["legendgroup"] = v_waterfall.LegendgroupValidator() + self._validators["measure"] = v_waterfall.MeasureValidator() + self._validators["measuresrc"] = v_waterfall.MeasuresrcValidator() + self._validators["meta"] = v_waterfall.MetaValidator() + self._validators["metasrc"] = v_waterfall.MetasrcValidator() + self._validators["name"] = v_waterfall.NameValidator() + self._validators["offset"] = v_waterfall.OffsetValidator() + self._validators["offsetgroup"] = v_waterfall.OffsetgroupValidator() + self._validators["offsetsrc"] = v_waterfall.OffsetsrcValidator() + self._validators["opacity"] = v_waterfall.OpacityValidator() + self._validators["orientation"] = v_waterfall.OrientationValidator() + self._validators["outsidetextfont"] = v_waterfall.OutsidetextfontValidator() + self._validators["selectedpoints"] = v_waterfall.SelectedpointsValidator() + self._validators["showlegend"] = v_waterfall.ShowlegendValidator() + self._validators["stream"] = v_waterfall.StreamValidator() + self._validators["text"] = v_waterfall.TextValidator() + self._validators["textangle"] = v_waterfall.TextangleValidator() + self._validators["textfont"] = v_waterfall.TextfontValidator() + self._validators["textinfo"] = v_waterfall.TextinfoValidator() + self._validators["textposition"] = v_waterfall.TextpositionValidator() + self._validators["textpositionsrc"] = v_waterfall.TextpositionsrcValidator() + self._validators["textsrc"] = v_waterfall.TextsrcValidator() + self._validators["totals"] = v_waterfall.TotalsValidator() + self._validators["uid"] = v_waterfall.UidValidator() + self._validators["uirevision"] = v_waterfall.UirevisionValidator() + self._validators["visible"] = v_waterfall.VisibleValidator() + self._validators["width"] = v_waterfall.WidthValidator() + self._validators["widthsrc"] = v_waterfall.WidthsrcValidator() + self._validators["x"] = v_waterfall.XValidator() + self._validators["x0"] = v_waterfall.X0Validator() + self._validators["xaxis"] = v_waterfall.XAxisValidator() + self._validators["xsrc"] = v_waterfall.XsrcValidator() + self._validators["y"] = v_waterfall.YValidator() + self._validators["y0"] = v_waterfall.Y0Validator() + self._validators["yaxis"] = v_waterfall.YAxisValidator() + self._validators["ysrc"] = v_waterfall.YsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('alignmentgroup', None) - self['alignmentgroup' - ] = alignmentgroup if alignmentgroup is not None else _v - _v = arg.pop('base', None) - self['base'] = base if base is not None else _v - _v = arg.pop('cliponaxis', None) - self['cliponaxis'] = cliponaxis if cliponaxis is not None else _v - _v = arg.pop('connector', None) - self['connector'] = connector if connector is not None else _v - _v = arg.pop('constraintext', None) - self['constraintext' - ] = constraintext if constraintext is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('decreasing', None) - self['decreasing'] = decreasing if decreasing is not None else _v - _v = arg.pop('dx', None) - self['dx'] = dx if dx is not None else _v - _v = arg.pop('dy', None) - self['dy'] = dy if dy is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('increasing', None) - self['increasing'] = increasing if increasing is not None else _v - _v = arg.pop('insidetextanchor', None) - self['insidetextanchor' - ] = insidetextanchor if insidetextanchor is not None else _v - _v = arg.pop('insidetextfont', None) - self['insidetextfont' - ] = insidetextfont if insidetextfont is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('measure', None) - self['measure'] = measure if measure is not None else _v - _v = arg.pop('measuresrc', None) - self['measuresrc'] = measuresrc if measuresrc is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('offset', None) - self['offset'] = offset if offset is not None else _v - _v = arg.pop('offsetgroup', None) - self['offsetgroup'] = offsetgroup if offsetgroup is not None else _v - _v = arg.pop('offsetsrc', None) - self['offsetsrc'] = offsetsrc if offsetsrc is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('orientation', None) - self['orientation'] = orientation if orientation is not None else _v - _v = arg.pop('outsidetextfont', None) - self['outsidetextfont' - ] = outsidetextfont if outsidetextfont is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textangle', None) - self['textangle'] = textangle if textangle is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v - _v = arg.pop('textinfo', None) - self['textinfo'] = textinfo if textinfo is not None else _v - _v = arg.pop('textposition', None) - self['textposition'] = textposition if textposition is not None else _v - _v = arg.pop('textpositionsrc', None) - self['textpositionsrc' - ] = textpositionsrc if textpositionsrc is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('totals', None) - self['totals'] = totals if totals is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('x0', None) - self['x0'] = x0 if x0 is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('y0', None) - self['y0'] = y0 if y0 is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v + _v = arg.pop("alignmentgroup", None) + self["alignmentgroup"] = alignmentgroup if alignmentgroup is not None else _v + _v = arg.pop("base", None) + self["base"] = base if base is not None else _v + _v = arg.pop("cliponaxis", None) + self["cliponaxis"] = cliponaxis if cliponaxis is not None else _v + _v = arg.pop("connector", None) + self["connector"] = connector if connector is not None else _v + _v = arg.pop("constraintext", None) + self["constraintext"] = constraintext if constraintext is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("decreasing", None) + self["decreasing"] = decreasing if decreasing is not None else _v + _v = arg.pop("dx", None) + self["dx"] = dx if dx is not None else _v + _v = arg.pop("dy", None) + self["dy"] = dy if dy is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("increasing", None) + self["increasing"] = increasing if increasing is not None else _v + _v = arg.pop("insidetextanchor", None) + self["insidetextanchor"] = ( + insidetextanchor if insidetextanchor is not None else _v + ) + _v = arg.pop("insidetextfont", None) + self["insidetextfont"] = insidetextfont if insidetextfont is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("measure", None) + self["measure"] = measure if measure is not None else _v + _v = arg.pop("measuresrc", None) + self["measuresrc"] = measuresrc if measuresrc is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("offset", None) + self["offset"] = offset if offset is not None else _v + _v = arg.pop("offsetgroup", None) + self["offsetgroup"] = offsetgroup if offsetgroup is not None else _v + _v = arg.pop("offsetsrc", None) + self["offsetsrc"] = offsetsrc if offsetsrc is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("orientation", None) + self["orientation"] = orientation if orientation is not None else _v + _v = arg.pop("outsidetextfont", None) + self["outsidetextfont"] = outsidetextfont if outsidetextfont is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textangle", None) + self["textangle"] = textangle if textangle is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v + _v = arg.pop("textinfo", None) + self["textinfo"] = textinfo if textinfo is not None else _v + _v = arg.pop("textposition", None) + self["textposition"] = textposition if textposition is not None else _v + _v = arg.pop("textpositionsrc", None) + self["textpositionsrc"] = textpositionsrc if textpositionsrc is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("totals", None) + self["totals"] = totals if totals is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("x0", None) + self["x0"] = x0 if x0 is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("y0", None) + self["y0"] = y0 if y0 is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'waterfall' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='waterfall', val='waterfall' + + self._props["type"] = "waterfall" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="waterfall", val="waterfall" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -7784,11 +7767,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # caps # ---- @@ -7817,11 +7800,11 @@ def caps(self): ------- plotly.graph_objs.volume.Caps """ - return self['caps'] + return self["caps"] @caps.setter def caps(self, val): - self['caps'] = val + self["caps"] = val # cauto # ----- @@ -7840,11 +7823,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -7861,11 +7844,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -7883,11 +7866,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -7904,11 +7887,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # coloraxis # --------- @@ -7931,11 +7914,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -8163,11 +8146,11 @@ def colorbar(self): ------- plotly.graph_objs.volume.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -8200,11 +8183,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # contour # ------- @@ -8231,11 +8214,11 @@ def contour(self): ------- plotly.graph_objs.volume.Contour """ - return self['contour'] + return self["contour"] @contour.setter def contour(self, val): - self['contour'] = val + self["contour"] = val # customdata # ---------- @@ -8254,11 +8237,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -8274,11 +8257,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # flatshading # ----------- @@ -8296,11 +8279,11 @@ def flatshading(self): ------- bool """ - return self['flatshading'] + return self["flatshading"] @flatshading.setter def flatshading(self, val): - self['flatshading'] = val + self["flatshading"] = val # hoverinfo # --------- @@ -8322,11 +8305,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -8342,11 +8325,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -8401,11 +8384,11 @@ def hoverlabel(self): ------- plotly.graph_objs.volume.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -8437,11 +8420,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -8457,11 +8440,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -8479,11 +8462,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -8499,11 +8482,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -8521,11 +8504,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -8541,11 +8524,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # isomax # ------ @@ -8561,11 +8544,11 @@ def isomax(self): ------- int|float """ - return self['isomax'] + return self["isomax"] @isomax.setter def isomax(self, val): - self['isomax'] = val + self["isomax"] = val # isomin # ------ @@ -8581,11 +8564,11 @@ def isomin(self): ------- int|float """ - return self['isomin'] + return self["isomin"] @isomin.setter def isomin(self, val): - self['isomin'] = val + self["isomin"] = val # lighting # -------- @@ -8629,11 +8612,11 @@ def lighting(self): ------- plotly.graph_objs.volume.Lighting """ - return self['lighting'] + return self["lighting"] @lighting.setter def lighting(self, val): - self['lighting'] = val + self["lighting"] = val # lightposition # ------------- @@ -8662,11 +8645,11 @@ def lightposition(self): ------- plotly.graph_objs.volume.Lightposition """ - return self['lightposition'] + return self["lightposition"] @lightposition.setter def lightposition(self, val): - self['lightposition'] = val + self["lightposition"] = val # meta # ---- @@ -8690,11 +8673,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -8710,11 +8693,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -8732,11 +8715,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -8757,11 +8740,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # opacityscale # ------------ @@ -8784,11 +8767,11 @@ def opacityscale(self): ------- Any """ - return self['opacityscale'] + return self["opacityscale"] @opacityscale.setter def opacityscale(self, val): - self['opacityscale'] = val + self["opacityscale"] = val # reversescale # ------------ @@ -8806,11 +8789,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # scene # ----- @@ -8831,11 +8814,11 @@ def scene(self): ------- str """ - return self['scene'] + return self["scene"] @scene.setter def scene(self, val): - self['scene'] = val + self["scene"] = val # showscale # --------- @@ -8852,11 +8835,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # slices # ------ @@ -8885,11 +8868,11 @@ def slices(self): ------- plotly.graph_objs.volume.Slices """ - return self['slices'] + return self["slices"] @slices.setter def slices(self, val): - self['slices'] = val + self["slices"] = val # spaceframe # ---------- @@ -8920,11 +8903,11 @@ def spaceframe(self): ------- plotly.graph_objs.volume.Spaceframe """ - return self['spaceframe'] + return self["spaceframe"] @spaceframe.setter def spaceframe(self, val): - self['spaceframe'] = val + self["spaceframe"] = val # stream # ------ @@ -8953,11 +8936,11 @@ def stream(self): ------- plotly.graph_objs.volume.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # surface # ------- @@ -9003,11 +8986,11 @@ def surface(self): ------- plotly.graph_objs.volume.Surface """ - return self['surface'] + return self["surface"] @surface.setter def surface(self, val): - self['surface'] = val + self["surface"] = val # text # ---- @@ -9027,11 +9010,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -9047,11 +9030,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -9069,11 +9052,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -9102,11 +9085,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # value # ----- @@ -9122,11 +9105,11 @@ def value(self): ------- numpy.ndarray """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # valuesrc # -------- @@ -9142,11 +9125,11 @@ def valuesrc(self): ------- str """ - return self['valuesrc'] + return self["valuesrc"] @valuesrc.setter def valuesrc(self, val): - self['valuesrc'] = val + self["valuesrc"] = val # visible # ------- @@ -9165,11 +9148,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -9185,11 +9168,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xsrc # ---- @@ -9205,11 +9188,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -9225,11 +9208,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # ysrc # ---- @@ -9245,11 +9228,11 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # z # - @@ -9265,11 +9248,11 @@ def z(self): ------- numpy.ndarray """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # zsrc # ---- @@ -9285,23 +9268,23 @@ def zsrc(self): ------- str """ - return self['zsrc'] + return self["zsrc"] @zsrc.setter def zsrc(self, val): - self['zsrc'] = val + self["zsrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -9840,7 +9823,7 @@ def __init__( ------- Volume """ - super(Volume, self).__init__('volume') + super(Volume, self).__init__("volume") # Validate arg # ------------ @@ -9860,185 +9843,182 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (volume as v_volume) + from plotly.validators import volume as v_volume # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_volume.AutocolorscaleValidator() - self._validators['caps'] = v_volume.CapsValidator() - self._validators['cauto'] = v_volume.CautoValidator() - self._validators['cmax'] = v_volume.CmaxValidator() - self._validators['cmid'] = v_volume.CmidValidator() - self._validators['cmin'] = v_volume.CminValidator() - self._validators['coloraxis'] = v_volume.ColoraxisValidator() - self._validators['colorbar'] = v_volume.ColorBarValidator() - self._validators['colorscale'] = v_volume.ColorscaleValidator() - self._validators['contour'] = v_volume.ContourValidator() - self._validators['customdata'] = v_volume.CustomdataValidator() - self._validators['customdatasrc'] = v_volume.CustomdatasrcValidator() - self._validators['flatshading'] = v_volume.FlatshadingValidator() - self._validators['hoverinfo'] = v_volume.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_volume.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_volume.HoverlabelValidator() - self._validators['hovertemplate'] = v_volume.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_volume.HovertemplatesrcValidator() - self._validators['hovertext'] = v_volume.HovertextValidator() - self._validators['hovertextsrc'] = v_volume.HovertextsrcValidator() - self._validators['ids'] = v_volume.IdsValidator() - self._validators['idssrc'] = v_volume.IdssrcValidator() - self._validators['isomax'] = v_volume.IsomaxValidator() - self._validators['isomin'] = v_volume.IsominValidator() - self._validators['lighting'] = v_volume.LightingValidator() - self._validators['lightposition'] = v_volume.LightpositionValidator() - self._validators['meta'] = v_volume.MetaValidator() - self._validators['metasrc'] = v_volume.MetasrcValidator() - self._validators['name'] = v_volume.NameValidator() - self._validators['opacity'] = v_volume.OpacityValidator() - self._validators['opacityscale'] = v_volume.OpacityscaleValidator() - self._validators['reversescale'] = v_volume.ReversescaleValidator() - self._validators['scene'] = v_volume.SceneValidator() - self._validators['showscale'] = v_volume.ShowscaleValidator() - self._validators['slices'] = v_volume.SlicesValidator() - self._validators['spaceframe'] = v_volume.SpaceframeValidator() - self._validators['stream'] = v_volume.StreamValidator() - self._validators['surface'] = v_volume.SurfaceValidator() - self._validators['text'] = v_volume.TextValidator() - self._validators['textsrc'] = v_volume.TextsrcValidator() - self._validators['uid'] = v_volume.UidValidator() - self._validators['uirevision'] = v_volume.UirevisionValidator() - self._validators['value'] = v_volume.ValueValidator() - self._validators['valuesrc'] = v_volume.ValuesrcValidator() - self._validators['visible'] = v_volume.VisibleValidator() - self._validators['x'] = v_volume.XValidator() - self._validators['xsrc'] = v_volume.XsrcValidator() - self._validators['y'] = v_volume.YValidator() - self._validators['ysrc'] = v_volume.YsrcValidator() - self._validators['z'] = v_volume.ZValidator() - self._validators['zsrc'] = v_volume.ZsrcValidator() + self._validators["autocolorscale"] = v_volume.AutocolorscaleValidator() + self._validators["caps"] = v_volume.CapsValidator() + self._validators["cauto"] = v_volume.CautoValidator() + self._validators["cmax"] = v_volume.CmaxValidator() + self._validators["cmid"] = v_volume.CmidValidator() + self._validators["cmin"] = v_volume.CminValidator() + self._validators["coloraxis"] = v_volume.ColoraxisValidator() + self._validators["colorbar"] = v_volume.ColorBarValidator() + self._validators["colorscale"] = v_volume.ColorscaleValidator() + self._validators["contour"] = v_volume.ContourValidator() + self._validators["customdata"] = v_volume.CustomdataValidator() + self._validators["customdatasrc"] = v_volume.CustomdatasrcValidator() + self._validators["flatshading"] = v_volume.FlatshadingValidator() + self._validators["hoverinfo"] = v_volume.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_volume.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_volume.HoverlabelValidator() + self._validators["hovertemplate"] = v_volume.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_volume.HovertemplatesrcValidator() + self._validators["hovertext"] = v_volume.HovertextValidator() + self._validators["hovertextsrc"] = v_volume.HovertextsrcValidator() + self._validators["ids"] = v_volume.IdsValidator() + self._validators["idssrc"] = v_volume.IdssrcValidator() + self._validators["isomax"] = v_volume.IsomaxValidator() + self._validators["isomin"] = v_volume.IsominValidator() + self._validators["lighting"] = v_volume.LightingValidator() + self._validators["lightposition"] = v_volume.LightpositionValidator() + self._validators["meta"] = v_volume.MetaValidator() + self._validators["metasrc"] = v_volume.MetasrcValidator() + self._validators["name"] = v_volume.NameValidator() + self._validators["opacity"] = v_volume.OpacityValidator() + self._validators["opacityscale"] = v_volume.OpacityscaleValidator() + self._validators["reversescale"] = v_volume.ReversescaleValidator() + self._validators["scene"] = v_volume.SceneValidator() + self._validators["showscale"] = v_volume.ShowscaleValidator() + self._validators["slices"] = v_volume.SlicesValidator() + self._validators["spaceframe"] = v_volume.SpaceframeValidator() + self._validators["stream"] = v_volume.StreamValidator() + self._validators["surface"] = v_volume.SurfaceValidator() + self._validators["text"] = v_volume.TextValidator() + self._validators["textsrc"] = v_volume.TextsrcValidator() + self._validators["uid"] = v_volume.UidValidator() + self._validators["uirevision"] = v_volume.UirevisionValidator() + self._validators["value"] = v_volume.ValueValidator() + self._validators["valuesrc"] = v_volume.ValuesrcValidator() + self._validators["visible"] = v_volume.VisibleValidator() + self._validators["x"] = v_volume.XValidator() + self._validators["xsrc"] = v_volume.XsrcValidator() + self._validators["y"] = v_volume.YValidator() + self._validators["ysrc"] = v_volume.YsrcValidator() + self._validators["z"] = v_volume.ZValidator() + self._validators["zsrc"] = v_volume.ZsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('caps', None) - self['caps'] = caps if caps is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('contour', None) - self['contour'] = contour if contour is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('flatshading', None) - self['flatshading'] = flatshading if flatshading is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('isomax', None) - self['isomax'] = isomax if isomax is not None else _v - _v = arg.pop('isomin', None) - self['isomin'] = isomin if isomin is not None else _v - _v = arg.pop('lighting', None) - self['lighting'] = lighting if lighting is not None else _v - _v = arg.pop('lightposition', None) - self['lightposition' - ] = lightposition if lightposition is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('opacityscale', None) - self['opacityscale'] = opacityscale if opacityscale is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('scene', None) - self['scene'] = scene if scene is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('slices', None) - self['slices'] = slices if slices is not None else _v - _v = arg.pop('spaceframe', None) - self['spaceframe'] = spaceframe if spaceframe is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('surface', None) - self['surface'] = surface if surface is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v - _v = arg.pop('valuesrc', None) - self['valuesrc'] = valuesrc if valuesrc is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v - _v = arg.pop('zsrc', None) - self['zsrc'] = zsrc if zsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("caps", None) + self["caps"] = caps if caps is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("contour", None) + self["contour"] = contour if contour is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("flatshading", None) + self["flatshading"] = flatshading if flatshading is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("isomax", None) + self["isomax"] = isomax if isomax is not None else _v + _v = arg.pop("isomin", None) + self["isomin"] = isomin if isomin is not None else _v + _v = arg.pop("lighting", None) + self["lighting"] = lighting if lighting is not None else _v + _v = arg.pop("lightposition", None) + self["lightposition"] = lightposition if lightposition is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("opacityscale", None) + self["opacityscale"] = opacityscale if opacityscale is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("scene", None) + self["scene"] = scene if scene is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("slices", None) + self["slices"] = slices if slices is not None else _v + _v = arg.pop("spaceframe", None) + self["spaceframe"] = spaceframe if spaceframe is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("surface", None) + self["surface"] = surface if surface is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v + _v = arg.pop("valuesrc", None) + self["valuesrc"] = valuesrc if valuesrc is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v + _v = arg.pop("zsrc", None) + self["zsrc"] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'volume' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='volume', val='volume' + + self._props["type"] = "volume" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="volume", val="volume" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -10072,11 +10052,11 @@ def alignmentgroup(self): ------- str """ - return self['alignmentgroup'] + return self["alignmentgroup"] @alignmentgroup.setter def alignmentgroup(self, val): - self['alignmentgroup'] = val + self["alignmentgroup"] = val # bandwidth # --------- @@ -10094,11 +10074,11 @@ def bandwidth(self): ------- int|float """ - return self['bandwidth'] + return self["bandwidth"] @bandwidth.setter def bandwidth(self, val): - self['bandwidth'] = val + self["bandwidth"] = val # box # --- @@ -10130,11 +10110,11 @@ def box(self): ------- plotly.graph_objs.violin.Box """ - return self['box'] + return self["box"] @box.setter def box(self, val): - self['box'] = val + self["box"] = val # customdata # ---------- @@ -10153,11 +10133,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -10173,11 +10153,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # fillcolor # --------- @@ -10234,11 +10214,11 @@ def fillcolor(self): ------- str """ - return self['fillcolor'] + return self["fillcolor"] @fillcolor.setter def fillcolor(self, val): - self['fillcolor'] = val + self["fillcolor"] = val # hoverinfo # --------- @@ -10260,11 +10240,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -10280,11 +10260,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -10339,11 +10319,11 @@ def hoverlabel(self): ------- plotly.graph_objs.violin.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hoveron # ------- @@ -10364,11 +10344,11 @@ def hoveron(self): ------- Any """ - return self['hoveron'] + return self["hoveron"] @hoveron.setter def hoveron(self, val): - self['hoveron'] = val + self["hoveron"] = val # hovertemplate # ------------- @@ -10400,11 +10380,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -10420,11 +10400,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -10442,11 +10422,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -10462,11 +10442,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -10484,11 +10464,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -10504,11 +10484,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # jitter # ------ @@ -10527,11 +10507,11 @@ def jitter(self): ------- int|float """ - return self['jitter'] + return self["jitter"] @jitter.setter def jitter(self, val): - self['jitter'] = val + self["jitter"] = val # legendgroup # ----------- @@ -10550,11 +10530,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # line # ---- @@ -10579,11 +10559,11 @@ def line(self): ------- plotly.graph_objs.violin.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # marker # ------ @@ -10625,11 +10605,11 @@ def marker(self): ------- plotly.graph_objs.violin.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meanline # -------- @@ -10660,11 +10640,11 @@ def meanline(self): ------- plotly.graph_objs.violin.Meanline """ - return self['meanline'] + return self["meanline"] @meanline.setter def meanline(self, val): - self['meanline'] = val + self["meanline"] = val # meta # ---- @@ -10688,11 +10668,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -10708,11 +10688,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -10735,11 +10715,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # offsetgroup # ----------- @@ -10758,11 +10738,11 @@ def offsetgroup(self): ------- str """ - return self['offsetgroup'] + return self["offsetgroup"] @offsetgroup.setter def offsetgroup(self, val): - self['offsetgroup'] = val + self["offsetgroup"] = val # opacity # ------- @@ -10778,11 +10758,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # orientation # ----------- @@ -10800,11 +10780,11 @@ def orientation(self): ------- Any """ - return self['orientation'] + return self["orientation"] @orientation.setter def orientation(self, val): - self['orientation'] = val + self["orientation"] = val # pointpos # -------- @@ -10824,11 +10804,11 @@ def pointpos(self): ------- int|float """ - return self['pointpos'] + return self["pointpos"] @pointpos.setter def pointpos(self, val): - self['pointpos'] = val + self["pointpos"] = val # points # ------ @@ -10850,11 +10830,11 @@ def points(self): ------- Any """ - return self['points'] + return self["points"] @points.setter def points(self, val): - self['points'] = val + self["points"] = val # scalegroup # ---------- @@ -10876,11 +10856,11 @@ def scalegroup(self): ------- str """ - return self['scalegroup'] + return self["scalegroup"] @scalegroup.setter def scalegroup(self, val): - self['scalegroup'] = val + self["scalegroup"] = val # scalemode # --------- @@ -10900,11 +10880,11 @@ def scalemode(self): ------- Any """ - return self['scalemode'] + return self["scalemode"] @scalemode.setter def scalemode(self, val): - self['scalemode'] = val + self["scalemode"] = val # selected # -------- @@ -10927,11 +10907,11 @@ def selected(self): ------- plotly.graph_objs.violin.Selected """ - return self['selected'] + return self["selected"] @selected.setter def selected(self, val): - self['selected'] = val + self["selected"] = val # selectedpoints # -------------- @@ -10951,11 +10931,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -10972,11 +10952,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # side # ---- @@ -10996,11 +10976,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # span # ---- @@ -11021,11 +11001,11 @@ def span(self): ------- list """ - return self['span'] + return self["span"] @span.setter def span(self, val): - self['span'] = val + self["span"] = val # spanmode # -------- @@ -11048,11 +11028,11 @@ def spanmode(self): ------- Any """ - return self['spanmode'] + return self["spanmode"] @spanmode.setter def spanmode(self, val): - self['spanmode'] = val + self["spanmode"] = val # stream # ------ @@ -11081,11 +11061,11 @@ def stream(self): ------- plotly.graph_objs.violin.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -11107,11 +11087,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -11127,11 +11107,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -11149,11 +11129,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -11182,11 +11162,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # unselected # ---------- @@ -11209,11 +11189,11 @@ def unselected(self): ------- plotly.graph_objs.violin.Unselected """ - return self['unselected'] + return self["unselected"] @unselected.setter def unselected(self, val): - self['unselected'] = val + self["unselected"] = val # visible # ------- @@ -11232,11 +11212,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -11254,11 +11234,11 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # x # - @@ -11275,11 +11255,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # x0 # -- @@ -11294,11 +11274,11 @@ def x0(self): ------- Any """ - return self['x0'] + return self["x0"] @x0.setter def x0(self, val): - self['x0'] = val + self["x0"] = val # xaxis # ----- @@ -11319,11 +11299,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # xsrc # ---- @@ -11339,11 +11319,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -11360,11 +11340,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # y0 # -- @@ -11379,11 +11359,11 @@ def y0(self): ------- Any """ - return self['y0'] + return self["y0"] @y0.setter def y0(self, val): - self['y0'] = val + self["y0"] = val # yaxis # ----- @@ -11404,11 +11384,11 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # ysrc # ---- @@ -11424,23 +11404,23 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -12031,7 +12011,7 @@ def __init__( ------- Violin """ - super(Violin, self).__init__('violin') + super(Violin, self).__init__("violin") # Validate arg # ------------ @@ -12051,191 +12031,188 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (violin as v_violin) + from plotly.validators import violin as v_violin # Initialize validators # --------------------- - self._validators['alignmentgroup'] = v_violin.AlignmentgroupValidator() - self._validators['bandwidth'] = v_violin.BandwidthValidator() - self._validators['box'] = v_violin.BoxValidator() - self._validators['customdata'] = v_violin.CustomdataValidator() - self._validators['customdatasrc'] = v_violin.CustomdatasrcValidator() - self._validators['fillcolor'] = v_violin.FillcolorValidator() - self._validators['hoverinfo'] = v_violin.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_violin.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_violin.HoverlabelValidator() - self._validators['hoveron'] = v_violin.HoveronValidator() - self._validators['hovertemplate'] = v_violin.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_violin.HovertemplatesrcValidator() - self._validators['hovertext'] = v_violin.HovertextValidator() - self._validators['hovertextsrc'] = v_violin.HovertextsrcValidator() - self._validators['ids'] = v_violin.IdsValidator() - self._validators['idssrc'] = v_violin.IdssrcValidator() - self._validators['jitter'] = v_violin.JitterValidator() - self._validators['legendgroup'] = v_violin.LegendgroupValidator() - self._validators['line'] = v_violin.LineValidator() - self._validators['marker'] = v_violin.MarkerValidator() - self._validators['meanline'] = v_violin.MeanlineValidator() - self._validators['meta'] = v_violin.MetaValidator() - self._validators['metasrc'] = v_violin.MetasrcValidator() - self._validators['name'] = v_violin.NameValidator() - self._validators['offsetgroup'] = v_violin.OffsetgroupValidator() - self._validators['opacity'] = v_violin.OpacityValidator() - self._validators['orientation'] = v_violin.OrientationValidator() - self._validators['pointpos'] = v_violin.PointposValidator() - self._validators['points'] = v_violin.PointsValidator() - self._validators['scalegroup'] = v_violin.ScalegroupValidator() - self._validators['scalemode'] = v_violin.ScalemodeValidator() - self._validators['selected'] = v_violin.SelectedValidator() - self._validators['selectedpoints'] = v_violin.SelectedpointsValidator() - self._validators['showlegend'] = v_violin.ShowlegendValidator() - self._validators['side'] = v_violin.SideValidator() - self._validators['span'] = v_violin.SpanValidator() - self._validators['spanmode'] = v_violin.SpanmodeValidator() - self._validators['stream'] = v_violin.StreamValidator() - self._validators['text'] = v_violin.TextValidator() - self._validators['textsrc'] = v_violin.TextsrcValidator() - self._validators['uid'] = v_violin.UidValidator() - self._validators['uirevision'] = v_violin.UirevisionValidator() - self._validators['unselected'] = v_violin.UnselectedValidator() - self._validators['visible'] = v_violin.VisibleValidator() - self._validators['width'] = v_violin.WidthValidator() - self._validators['x'] = v_violin.XValidator() - self._validators['x0'] = v_violin.X0Validator() - self._validators['xaxis'] = v_violin.XAxisValidator() - self._validators['xsrc'] = v_violin.XsrcValidator() - self._validators['y'] = v_violin.YValidator() - self._validators['y0'] = v_violin.Y0Validator() - self._validators['yaxis'] = v_violin.YAxisValidator() - self._validators['ysrc'] = v_violin.YsrcValidator() + self._validators["alignmentgroup"] = v_violin.AlignmentgroupValidator() + self._validators["bandwidth"] = v_violin.BandwidthValidator() + self._validators["box"] = v_violin.BoxValidator() + self._validators["customdata"] = v_violin.CustomdataValidator() + self._validators["customdatasrc"] = v_violin.CustomdatasrcValidator() + self._validators["fillcolor"] = v_violin.FillcolorValidator() + self._validators["hoverinfo"] = v_violin.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_violin.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_violin.HoverlabelValidator() + self._validators["hoveron"] = v_violin.HoveronValidator() + self._validators["hovertemplate"] = v_violin.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_violin.HovertemplatesrcValidator() + self._validators["hovertext"] = v_violin.HovertextValidator() + self._validators["hovertextsrc"] = v_violin.HovertextsrcValidator() + self._validators["ids"] = v_violin.IdsValidator() + self._validators["idssrc"] = v_violin.IdssrcValidator() + self._validators["jitter"] = v_violin.JitterValidator() + self._validators["legendgroup"] = v_violin.LegendgroupValidator() + self._validators["line"] = v_violin.LineValidator() + self._validators["marker"] = v_violin.MarkerValidator() + self._validators["meanline"] = v_violin.MeanlineValidator() + self._validators["meta"] = v_violin.MetaValidator() + self._validators["metasrc"] = v_violin.MetasrcValidator() + self._validators["name"] = v_violin.NameValidator() + self._validators["offsetgroup"] = v_violin.OffsetgroupValidator() + self._validators["opacity"] = v_violin.OpacityValidator() + self._validators["orientation"] = v_violin.OrientationValidator() + self._validators["pointpos"] = v_violin.PointposValidator() + self._validators["points"] = v_violin.PointsValidator() + self._validators["scalegroup"] = v_violin.ScalegroupValidator() + self._validators["scalemode"] = v_violin.ScalemodeValidator() + self._validators["selected"] = v_violin.SelectedValidator() + self._validators["selectedpoints"] = v_violin.SelectedpointsValidator() + self._validators["showlegend"] = v_violin.ShowlegendValidator() + self._validators["side"] = v_violin.SideValidator() + self._validators["span"] = v_violin.SpanValidator() + self._validators["spanmode"] = v_violin.SpanmodeValidator() + self._validators["stream"] = v_violin.StreamValidator() + self._validators["text"] = v_violin.TextValidator() + self._validators["textsrc"] = v_violin.TextsrcValidator() + self._validators["uid"] = v_violin.UidValidator() + self._validators["uirevision"] = v_violin.UirevisionValidator() + self._validators["unselected"] = v_violin.UnselectedValidator() + self._validators["visible"] = v_violin.VisibleValidator() + self._validators["width"] = v_violin.WidthValidator() + self._validators["x"] = v_violin.XValidator() + self._validators["x0"] = v_violin.X0Validator() + self._validators["xaxis"] = v_violin.XAxisValidator() + self._validators["xsrc"] = v_violin.XsrcValidator() + self._validators["y"] = v_violin.YValidator() + self._validators["y0"] = v_violin.Y0Validator() + self._validators["yaxis"] = v_violin.YAxisValidator() + self._validators["ysrc"] = v_violin.YsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('alignmentgroup', None) - self['alignmentgroup' - ] = alignmentgroup if alignmentgroup is not None else _v - _v = arg.pop('bandwidth', None) - self['bandwidth'] = bandwidth if bandwidth is not None else _v - _v = arg.pop('box', None) - self['box'] = box if box is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('fillcolor', None) - self['fillcolor'] = fillcolor if fillcolor is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hoveron', None) - self['hoveron'] = hoveron if hoveron is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('jitter', None) - self['jitter'] = jitter if jitter is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meanline', None) - self['meanline'] = meanline if meanline is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('offsetgroup', None) - self['offsetgroup'] = offsetgroup if offsetgroup is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('orientation', None) - self['orientation'] = orientation if orientation is not None else _v - _v = arg.pop('pointpos', None) - self['pointpos'] = pointpos if pointpos is not None else _v - _v = arg.pop('points', None) - self['points'] = points if points is not None else _v - _v = arg.pop('scalegroup', None) - self['scalegroup'] = scalegroup if scalegroup is not None else _v - _v = arg.pop('scalemode', None) - self['scalemode'] = scalemode if scalemode is not None else _v - _v = arg.pop('selected', None) - self['selected'] = selected if selected is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('span', None) - self['span'] = span if span is not None else _v - _v = arg.pop('spanmode', None) - self['spanmode'] = spanmode if spanmode is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('unselected', None) - self['unselected'] = unselected if unselected is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('x0', None) - self['x0'] = x0 if x0 is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('y0', None) - self['y0'] = y0 if y0 is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v + _v = arg.pop("alignmentgroup", None) + self["alignmentgroup"] = alignmentgroup if alignmentgroup is not None else _v + _v = arg.pop("bandwidth", None) + self["bandwidth"] = bandwidth if bandwidth is not None else _v + _v = arg.pop("box", None) + self["box"] = box if box is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("fillcolor", None) + self["fillcolor"] = fillcolor if fillcolor is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hoveron", None) + self["hoveron"] = hoveron if hoveron is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("jitter", None) + self["jitter"] = jitter if jitter is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meanline", None) + self["meanline"] = meanline if meanline is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("offsetgroup", None) + self["offsetgroup"] = offsetgroup if offsetgroup is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("orientation", None) + self["orientation"] = orientation if orientation is not None else _v + _v = arg.pop("pointpos", None) + self["pointpos"] = pointpos if pointpos is not None else _v + _v = arg.pop("points", None) + self["points"] = points if points is not None else _v + _v = arg.pop("scalegroup", None) + self["scalegroup"] = scalegroup if scalegroup is not None else _v + _v = arg.pop("scalemode", None) + self["scalemode"] = scalemode if scalemode is not None else _v + _v = arg.pop("selected", None) + self["selected"] = selected if selected is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("span", None) + self["span"] = span if span is not None else _v + _v = arg.pop("spanmode", None) + self["spanmode"] = spanmode if spanmode is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("unselected", None) + self["unselected"] = unselected if unselected is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("x0", None) + self["x0"] = x0 if x0 is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("y0", None) + self["y0"] = y0 if y0 is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'violin' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='violin', val='violin' + + self._props["type"] = "violin" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="violin", val="violin" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -12319,11 +12296,11 @@ def cells(self): ------- plotly.graph_objs.table.Cells """ - return self['cells'] + return self["cells"] @cells.setter def cells(self, val): - self['cells'] = val + self["cells"] = val # columnorder # ----------- @@ -12342,11 +12319,11 @@ def columnorder(self): ------- numpy.ndarray """ - return self['columnorder'] + return self["columnorder"] @columnorder.setter def columnorder(self, val): - self['columnorder'] = val + self["columnorder"] = val # columnordersrc # -------------- @@ -12362,11 +12339,11 @@ def columnordersrc(self): ------- str """ - return self['columnordersrc'] + return self["columnordersrc"] @columnordersrc.setter def columnordersrc(self, val): - self['columnordersrc'] = val + self["columnordersrc"] = val # columnwidth # ----------- @@ -12384,11 +12361,11 @@ def columnwidth(self): ------- int|float|numpy.ndarray """ - return self['columnwidth'] + return self["columnwidth"] @columnwidth.setter def columnwidth(self, val): - self['columnwidth'] = val + self["columnwidth"] = val # columnwidthsrc # -------------- @@ -12404,11 +12381,11 @@ def columnwidthsrc(self): ------- str """ - return self['columnwidthsrc'] + return self["columnwidthsrc"] @columnwidthsrc.setter def columnwidthsrc(self, val): - self['columnwidthsrc'] = val + self["columnwidthsrc"] = val # customdata # ---------- @@ -12427,11 +12404,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -12447,11 +12424,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # domain # ------ @@ -12483,11 +12460,11 @@ def domain(self): ------- plotly.graph_objs.table.Domain """ - return self['domain'] + return self["domain"] @domain.setter def domain(self, val): - self['domain'] = val + self["domain"] = val # header # ------ @@ -12556,11 +12533,11 @@ def header(self): ------- plotly.graph_objs.table.Header """ - return self['header'] + return self["header"] @header.setter def header(self, val): - self['header'] = val + self["header"] = val # hoverinfo # --------- @@ -12582,11 +12559,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -12602,11 +12579,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -12661,11 +12638,11 @@ def hoverlabel(self): ------- plotly.graph_objs.table.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # ids # --- @@ -12683,11 +12660,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -12703,11 +12680,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # meta # ---- @@ -12731,11 +12708,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -12751,11 +12728,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -12773,11 +12750,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # stream # ------ @@ -12806,11 +12783,11 @@ def stream(self): ------- plotly.graph_objs.table.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # uid # --- @@ -12828,11 +12805,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -12861,11 +12838,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -12884,23 +12861,23 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -13140,7 +13117,7 @@ def __init__( ------- Table """ - super(Table, self).__init__('table') + super(Table, self).__init__("table") # Validate arg # ------------ @@ -13160,92 +13137,90 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (table as v_table) + from plotly.validators import table as v_table # Initialize validators # --------------------- - self._validators['cells'] = v_table.CellsValidator() - self._validators['columnorder'] = v_table.ColumnorderValidator() - self._validators['columnordersrc'] = v_table.ColumnordersrcValidator() - self._validators['columnwidth'] = v_table.ColumnwidthValidator() - self._validators['columnwidthsrc'] = v_table.ColumnwidthsrcValidator() - self._validators['customdata'] = v_table.CustomdataValidator() - self._validators['customdatasrc'] = v_table.CustomdatasrcValidator() - self._validators['domain'] = v_table.DomainValidator() - self._validators['header'] = v_table.HeaderValidator() - self._validators['hoverinfo'] = v_table.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_table.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_table.HoverlabelValidator() - self._validators['ids'] = v_table.IdsValidator() - self._validators['idssrc'] = v_table.IdssrcValidator() - self._validators['meta'] = v_table.MetaValidator() - self._validators['metasrc'] = v_table.MetasrcValidator() - self._validators['name'] = v_table.NameValidator() - self._validators['stream'] = v_table.StreamValidator() - self._validators['uid'] = v_table.UidValidator() - self._validators['uirevision'] = v_table.UirevisionValidator() - self._validators['visible'] = v_table.VisibleValidator() + self._validators["cells"] = v_table.CellsValidator() + self._validators["columnorder"] = v_table.ColumnorderValidator() + self._validators["columnordersrc"] = v_table.ColumnordersrcValidator() + self._validators["columnwidth"] = v_table.ColumnwidthValidator() + self._validators["columnwidthsrc"] = v_table.ColumnwidthsrcValidator() + self._validators["customdata"] = v_table.CustomdataValidator() + self._validators["customdatasrc"] = v_table.CustomdatasrcValidator() + self._validators["domain"] = v_table.DomainValidator() + self._validators["header"] = v_table.HeaderValidator() + self._validators["hoverinfo"] = v_table.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_table.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_table.HoverlabelValidator() + self._validators["ids"] = v_table.IdsValidator() + self._validators["idssrc"] = v_table.IdssrcValidator() + self._validators["meta"] = v_table.MetaValidator() + self._validators["metasrc"] = v_table.MetasrcValidator() + self._validators["name"] = v_table.NameValidator() + self._validators["stream"] = v_table.StreamValidator() + self._validators["uid"] = v_table.UidValidator() + self._validators["uirevision"] = v_table.UirevisionValidator() + self._validators["visible"] = v_table.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('cells', None) - self['cells'] = cells if cells is not None else _v - _v = arg.pop('columnorder', None) - self['columnorder'] = columnorder if columnorder is not None else _v - _v = arg.pop('columnordersrc', None) - self['columnordersrc' - ] = columnordersrc if columnordersrc is not None else _v - _v = arg.pop('columnwidth', None) - self['columnwidth'] = columnwidth if columnwidth is not None else _v - _v = arg.pop('columnwidthsrc', None) - self['columnwidthsrc' - ] = columnwidthsrc if columnwidthsrc is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('domain', None) - self['domain'] = domain if domain is not None else _v - _v = arg.pop('header', None) - self['header'] = header if header is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("cells", None) + self["cells"] = cells if cells is not None else _v + _v = arg.pop("columnorder", None) + self["columnorder"] = columnorder if columnorder is not None else _v + _v = arg.pop("columnordersrc", None) + self["columnordersrc"] = columnordersrc if columnordersrc is not None else _v + _v = arg.pop("columnwidth", None) + self["columnwidth"] = columnwidth if columnwidth is not None else _v + _v = arg.pop("columnwidthsrc", None) + self["columnwidthsrc"] = columnwidthsrc if columnwidthsrc is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("domain", None) + self["domain"] = domain if domain is not None else _v + _v = arg.pop("header", None) + self["header"] = header if header is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'table' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='table', val='table' + + self._props["type"] = "table" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="table", val="table" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -13281,11 +13256,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -13304,11 +13279,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -13326,11 +13301,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -13349,11 +13324,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -13371,11 +13346,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # coloraxis # --------- @@ -13398,11 +13373,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -13630,11 +13605,11 @@ def colorbar(self): ------- plotly.graph_objs.surface.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -13667,11 +13642,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # connectgaps # ----------- @@ -13688,11 +13663,11 @@ def connectgaps(self): ------- bool """ - return self['connectgaps'] + return self["connectgaps"] @connectgaps.setter def connectgaps(self, val): - self['connectgaps'] = val + self["connectgaps"] = val # contours # -------- @@ -13721,11 +13696,11 @@ def contours(self): ------- plotly.graph_objs.surface.Contours """ - return self['contours'] + return self["contours"] @contours.setter def contours(self, val): - self['contours'] = val + self["contours"] = val # customdata # ---------- @@ -13744,11 +13719,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -13764,11 +13739,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # hidesurface # ----------- @@ -13786,11 +13761,11 @@ def hidesurface(self): ------- bool """ - return self['hidesurface'] + return self["hidesurface"] @hidesurface.setter def hidesurface(self, val): - self['hidesurface'] = val + self["hidesurface"] = val # hoverinfo # --------- @@ -13812,11 +13787,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -13832,11 +13807,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -13891,11 +13866,11 @@ def hoverlabel(self): ------- plotly.graph_objs.surface.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -13927,11 +13902,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -13947,11 +13922,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -13969,11 +13944,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -13989,11 +13964,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -14011,11 +13986,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -14031,11 +14006,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # lighting # -------- @@ -14073,11 +14048,11 @@ def lighting(self): ------- plotly.graph_objs.surface.Lighting """ - return self['lighting'] + return self["lighting"] @lighting.setter def lighting(self, val): - self['lighting'] = val + self["lighting"] = val # lightposition # ------------- @@ -14106,11 +14081,11 @@ def lightposition(self): ------- plotly.graph_objs.surface.Lightposition """ - return self['lightposition'] + return self["lightposition"] @lightposition.setter def lightposition(self, val): - self['lightposition'] = val + self["lightposition"] = val # meta # ---- @@ -14134,11 +14109,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -14154,11 +14129,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -14176,11 +14151,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -14201,11 +14176,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # reversescale # ------------ @@ -14223,11 +14198,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # scene # ----- @@ -14248,11 +14223,11 @@ def scene(self): ------- str """ - return self['scene'] + return self["scene"] @scene.setter def scene(self, val): - self['scene'] = val + self["scene"] = val # showscale # --------- @@ -14269,11 +14244,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # stream # ------ @@ -14302,11 +14277,11 @@ def stream(self): ------- plotly.graph_objs.surface.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # surfacecolor # ------------ @@ -14323,11 +14298,11 @@ def surfacecolor(self): ------- numpy.ndarray """ - return self['surfacecolor'] + return self["surfacecolor"] @surfacecolor.setter def surfacecolor(self, val): - self['surfacecolor'] = val + self["surfacecolor"] = val # surfacecolorsrc # --------------- @@ -14343,11 +14318,11 @@ def surfacecolorsrc(self): ------- str """ - return self['surfacecolorsrc'] + return self["surfacecolorsrc"] @surfacecolorsrc.setter def surfacecolorsrc(self, val): - self['surfacecolorsrc'] = val + self["surfacecolorsrc"] = val # text # ---- @@ -14367,11 +14342,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -14387,11 +14362,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -14409,11 +14384,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -14442,11 +14417,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -14465,11 +14440,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -14485,11 +14460,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xcalendar # --------- @@ -14509,11 +14484,11 @@ def xcalendar(self): ------- Any """ - return self['xcalendar'] + return self["xcalendar"] @xcalendar.setter def xcalendar(self, val): - self['xcalendar'] = val + self["xcalendar"] = val # xsrc # ---- @@ -14529,11 +14504,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -14549,11 +14524,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # ycalendar # --------- @@ -14573,11 +14548,11 @@ def ycalendar(self): ------- Any """ - return self['ycalendar'] + return self["ycalendar"] @ycalendar.setter def ycalendar(self, val): - self['ycalendar'] = val + self["ycalendar"] = val # ysrc # ---- @@ -14593,11 +14568,11 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # z # - @@ -14613,11 +14588,11 @@ def z(self): ------- numpy.ndarray """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # zcalendar # --------- @@ -14637,11 +14612,11 @@ def zcalendar(self): ------- Any """ - return self['zcalendar'] + return self["zcalendar"] @zcalendar.setter def zcalendar(self, val): - self['zcalendar'] = val + self["zcalendar"] = val # zsrc # ---- @@ -14657,23 +14632,23 @@ def zsrc(self): ------- str """ - return self['zsrc'] + return self["zsrc"] @zsrc.setter def zsrc(self, val): - self['zsrc'] = val + self["zsrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -15182,7 +15157,7 @@ def __init__( ------- Surface """ - super(Surface, self).__init__('surface') + super(Surface, self).__init__("surface") # Validate arg # ------------ @@ -15202,179 +15177,173 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (surface as v_surface) + from plotly.validators import surface as v_surface # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_surface.AutocolorscaleValidator( - ) - self._validators['cauto'] = v_surface.CautoValidator() - self._validators['cmax'] = v_surface.CmaxValidator() - self._validators['cmid'] = v_surface.CmidValidator() - self._validators['cmin'] = v_surface.CminValidator() - self._validators['coloraxis'] = v_surface.ColoraxisValidator() - self._validators['colorbar'] = v_surface.ColorBarValidator() - self._validators['colorscale'] = v_surface.ColorscaleValidator() - self._validators['connectgaps'] = v_surface.ConnectgapsValidator() - self._validators['contours'] = v_surface.ContoursValidator() - self._validators['customdata'] = v_surface.CustomdataValidator() - self._validators['customdatasrc'] = v_surface.CustomdatasrcValidator() - self._validators['hidesurface'] = v_surface.HidesurfaceValidator() - self._validators['hoverinfo'] = v_surface.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_surface.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_surface.HoverlabelValidator() - self._validators['hovertemplate'] = v_surface.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_surface.HovertemplatesrcValidator() - self._validators['hovertext'] = v_surface.HovertextValidator() - self._validators['hovertextsrc'] = v_surface.HovertextsrcValidator() - self._validators['ids'] = v_surface.IdsValidator() - self._validators['idssrc'] = v_surface.IdssrcValidator() - self._validators['lighting'] = v_surface.LightingValidator() - self._validators['lightposition'] = v_surface.LightpositionValidator() - self._validators['meta'] = v_surface.MetaValidator() - self._validators['metasrc'] = v_surface.MetasrcValidator() - self._validators['name'] = v_surface.NameValidator() - self._validators['opacity'] = v_surface.OpacityValidator() - self._validators['reversescale'] = v_surface.ReversescaleValidator() - self._validators['scene'] = v_surface.SceneValidator() - self._validators['showscale'] = v_surface.ShowscaleValidator() - self._validators['stream'] = v_surface.StreamValidator() - self._validators['surfacecolor'] = v_surface.SurfacecolorValidator() - self._validators['surfacecolorsrc' - ] = v_surface.SurfacecolorsrcValidator() - self._validators['text'] = v_surface.TextValidator() - self._validators['textsrc'] = v_surface.TextsrcValidator() - self._validators['uid'] = v_surface.UidValidator() - self._validators['uirevision'] = v_surface.UirevisionValidator() - self._validators['visible'] = v_surface.VisibleValidator() - self._validators['x'] = v_surface.XValidator() - self._validators['xcalendar'] = v_surface.XcalendarValidator() - self._validators['xsrc'] = v_surface.XsrcValidator() - self._validators['y'] = v_surface.YValidator() - self._validators['ycalendar'] = v_surface.YcalendarValidator() - self._validators['ysrc'] = v_surface.YsrcValidator() - self._validators['z'] = v_surface.ZValidator() - self._validators['zcalendar'] = v_surface.ZcalendarValidator() - self._validators['zsrc'] = v_surface.ZsrcValidator() + self._validators["autocolorscale"] = v_surface.AutocolorscaleValidator() + self._validators["cauto"] = v_surface.CautoValidator() + self._validators["cmax"] = v_surface.CmaxValidator() + self._validators["cmid"] = v_surface.CmidValidator() + self._validators["cmin"] = v_surface.CminValidator() + self._validators["coloraxis"] = v_surface.ColoraxisValidator() + self._validators["colorbar"] = v_surface.ColorBarValidator() + self._validators["colorscale"] = v_surface.ColorscaleValidator() + self._validators["connectgaps"] = v_surface.ConnectgapsValidator() + self._validators["contours"] = v_surface.ContoursValidator() + self._validators["customdata"] = v_surface.CustomdataValidator() + self._validators["customdatasrc"] = v_surface.CustomdatasrcValidator() + self._validators["hidesurface"] = v_surface.HidesurfaceValidator() + self._validators["hoverinfo"] = v_surface.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_surface.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_surface.HoverlabelValidator() + self._validators["hovertemplate"] = v_surface.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_surface.HovertemplatesrcValidator() + self._validators["hovertext"] = v_surface.HovertextValidator() + self._validators["hovertextsrc"] = v_surface.HovertextsrcValidator() + self._validators["ids"] = v_surface.IdsValidator() + self._validators["idssrc"] = v_surface.IdssrcValidator() + self._validators["lighting"] = v_surface.LightingValidator() + self._validators["lightposition"] = v_surface.LightpositionValidator() + self._validators["meta"] = v_surface.MetaValidator() + self._validators["metasrc"] = v_surface.MetasrcValidator() + self._validators["name"] = v_surface.NameValidator() + self._validators["opacity"] = v_surface.OpacityValidator() + self._validators["reversescale"] = v_surface.ReversescaleValidator() + self._validators["scene"] = v_surface.SceneValidator() + self._validators["showscale"] = v_surface.ShowscaleValidator() + self._validators["stream"] = v_surface.StreamValidator() + self._validators["surfacecolor"] = v_surface.SurfacecolorValidator() + self._validators["surfacecolorsrc"] = v_surface.SurfacecolorsrcValidator() + self._validators["text"] = v_surface.TextValidator() + self._validators["textsrc"] = v_surface.TextsrcValidator() + self._validators["uid"] = v_surface.UidValidator() + self._validators["uirevision"] = v_surface.UirevisionValidator() + self._validators["visible"] = v_surface.VisibleValidator() + self._validators["x"] = v_surface.XValidator() + self._validators["xcalendar"] = v_surface.XcalendarValidator() + self._validators["xsrc"] = v_surface.XsrcValidator() + self._validators["y"] = v_surface.YValidator() + self._validators["ycalendar"] = v_surface.YcalendarValidator() + self._validators["ysrc"] = v_surface.YsrcValidator() + self._validators["z"] = v_surface.ZValidator() + self._validators["zcalendar"] = v_surface.ZcalendarValidator() + self._validators["zsrc"] = v_surface.ZsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('connectgaps', None) - self['connectgaps'] = connectgaps if connectgaps is not None else _v - _v = arg.pop('contours', None) - self['contours'] = contours if contours is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('hidesurface', None) - self['hidesurface'] = hidesurface if hidesurface is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('lighting', None) - self['lighting'] = lighting if lighting is not None else _v - _v = arg.pop('lightposition', None) - self['lightposition' - ] = lightposition if lightposition is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('scene', None) - self['scene'] = scene if scene is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('surfacecolor', None) - self['surfacecolor'] = surfacecolor if surfacecolor is not None else _v - _v = arg.pop('surfacecolorsrc', None) - self['surfacecolorsrc' - ] = surfacecolorsrc if surfacecolorsrc is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xcalendar', None) - self['xcalendar'] = xcalendar if xcalendar is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('ycalendar', None) - self['ycalendar'] = ycalendar if ycalendar is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v - _v = arg.pop('zcalendar', None) - self['zcalendar'] = zcalendar if zcalendar is not None else _v - _v = arg.pop('zsrc', None) - self['zsrc'] = zsrc if zsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("connectgaps", None) + self["connectgaps"] = connectgaps if connectgaps is not None else _v + _v = arg.pop("contours", None) + self["contours"] = contours if contours is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("hidesurface", None) + self["hidesurface"] = hidesurface if hidesurface is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("lighting", None) + self["lighting"] = lighting if lighting is not None else _v + _v = arg.pop("lightposition", None) + self["lightposition"] = lightposition if lightposition is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("scene", None) + self["scene"] = scene if scene is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("surfacecolor", None) + self["surfacecolor"] = surfacecolor if surfacecolor is not None else _v + _v = arg.pop("surfacecolorsrc", None) + self["surfacecolorsrc"] = surfacecolorsrc if surfacecolorsrc is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xcalendar", None) + self["xcalendar"] = xcalendar if xcalendar is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("ycalendar", None) + self["ycalendar"] = ycalendar if ycalendar is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v + _v = arg.pop("zcalendar", None) + self["zcalendar"] = zcalendar if zcalendar is not None else _v + _v = arg.pop("zsrc", None) + self["zsrc"] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'surface' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='surface', val='surface' + + self._props["type"] = "surface" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="surface", val="surface" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -15411,11 +15380,11 @@ def branchvalues(self): ------- Any """ - return self['branchvalues'] + return self["branchvalues"] @branchvalues.setter def branchvalues(self, val): - self['branchvalues'] = val + self["branchvalues"] = val # customdata # ---------- @@ -15434,11 +15403,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -15454,11 +15423,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # domain # ------ @@ -15491,11 +15460,11 @@ def domain(self): ------- plotly.graph_objs.sunburst.Domain """ - return self['domain'] + return self["domain"] @domain.setter def domain(self, val): - self['domain'] = val + self["domain"] = val # hoverinfo # --------- @@ -15517,11 +15486,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -15537,11 +15506,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -15596,11 +15565,11 @@ def hoverlabel(self): ------- plotly.graph_objs.sunburst.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -15632,11 +15601,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -15652,11 +15621,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -15678,11 +15647,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -15698,11 +15667,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -15720,11 +15689,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -15740,11 +15709,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # insidetextfont # -------------- @@ -15795,11 +15764,11 @@ def insidetextfont(self): ------- plotly.graph_objs.sunburst.Insidetextfont """ - return self['insidetextfont'] + return self["insidetextfont"] @insidetextfont.setter def insidetextfont(self, val): - self['insidetextfont'] = val + self["insidetextfont"] = val # labels # ------ @@ -15815,11 +15784,11 @@ def labels(self): ------- numpy.ndarray """ - return self['labels'] + return self["labels"] @labels.setter def labels(self, val): - self['labels'] = val + self["labels"] = val # labelssrc # --------- @@ -15835,11 +15804,11 @@ def labelssrc(self): ------- str """ - return self['labelssrc'] + return self["labelssrc"] @labelssrc.setter def labelssrc(self, val): - self['labelssrc'] = val + self["labelssrc"] = val # leaf # ---- @@ -15861,11 +15830,11 @@ def leaf(self): ------- plotly.graph_objs.sunburst.Leaf """ - return self['leaf'] + return self["leaf"] @leaf.setter def leaf(self, val): - self['leaf'] = val + self["leaf"] = val # level # ----- @@ -15884,11 +15853,11 @@ def level(self): ------- Any """ - return self['level'] + return self["level"] @level.setter def level(self, val): - self['level'] = val + self["level"] = val # marker # ------ @@ -15918,11 +15887,11 @@ def marker(self): ------- plotly.graph_objs.sunburst.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # maxdepth # -------- @@ -15940,11 +15909,11 @@ def maxdepth(self): ------- int """ - return self['maxdepth'] + return self["maxdepth"] @maxdepth.setter def maxdepth(self, val): - self['maxdepth'] = val + self["maxdepth"] = val # meta # ---- @@ -15968,11 +15937,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -15988,11 +15957,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -16010,11 +15979,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -16030,11 +15999,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # outsidetextfont # --------------- @@ -16085,11 +16054,11 @@ def outsidetextfont(self): ------- plotly.graph_objs.sunburst.Outsidetextfont """ - return self['outsidetextfont'] + return self["outsidetextfont"] @outsidetextfont.setter def outsidetextfont(self, val): - self['outsidetextfont'] = val + self["outsidetextfont"] = val # parents # ------- @@ -16110,11 +16079,11 @@ def parents(self): ------- numpy.ndarray """ - return self['parents'] + return self["parents"] @parents.setter def parents(self, val): - self['parents'] = val + self["parents"] = val # parentssrc # ---------- @@ -16130,11 +16099,11 @@ def parentssrc(self): ------- str """ - return self['parentssrc'] + return self["parentssrc"] @parentssrc.setter def parentssrc(self, val): - self['parentssrc'] = val + self["parentssrc"] = val # stream # ------ @@ -16163,11 +16132,11 @@ def stream(self): ------- plotly.graph_objs.sunburst.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -16187,11 +16156,11 @@ def text(self): ------- numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textfont # -------- @@ -16242,11 +16211,11 @@ def textfont(self): ------- plotly.graph_objs.sunburst.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # textinfo # -------- @@ -16265,11 +16234,11 @@ def textinfo(self): ------- Any """ - return self['textinfo'] + return self["textinfo"] @textinfo.setter def textinfo(self, val): - self['textinfo'] = val + self["textinfo"] = val # textsrc # ------- @@ -16285,11 +16254,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -16307,11 +16276,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -16340,11 +16309,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # values # ------ @@ -16361,11 +16330,11 @@ def values(self): ------- numpy.ndarray """ - return self['values'] + return self["values"] @values.setter def values(self, val): - self['values'] = val + self["values"] = val # valuessrc # --------- @@ -16381,11 +16350,11 @@ def valuessrc(self): ------- str """ - return self['valuessrc'] + return self["valuessrc"] @valuessrc.setter def valuessrc(self, val): - self['valuessrc'] = val + self["valuessrc"] = val # visible # ------- @@ -16404,23 +16373,23 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -16820,7 +16789,7 @@ def __init__( ------- Sunburst """ - super(Sunburst, self).__init__('sunburst') + super(Sunburst, self).__init__("sunburst") # Validate arg # ------------ @@ -16840,145 +16809,140 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (sunburst as v_sunburst) + from plotly.validators import sunburst as v_sunburst # Initialize validators # --------------------- - self._validators['branchvalues'] = v_sunburst.BranchvaluesValidator() - self._validators['customdata'] = v_sunburst.CustomdataValidator() - self._validators['customdatasrc'] = v_sunburst.CustomdatasrcValidator() - self._validators['domain'] = v_sunburst.DomainValidator() - self._validators['hoverinfo'] = v_sunburst.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_sunburst.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_sunburst.HoverlabelValidator() - self._validators['hovertemplate'] = v_sunburst.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_sunburst.HovertemplatesrcValidator() - self._validators['hovertext'] = v_sunburst.HovertextValidator() - self._validators['hovertextsrc'] = v_sunburst.HovertextsrcValidator() - self._validators['ids'] = v_sunburst.IdsValidator() - self._validators['idssrc'] = v_sunburst.IdssrcValidator() - self._validators['insidetextfont' - ] = v_sunburst.InsidetextfontValidator() - self._validators['labels'] = v_sunburst.LabelsValidator() - self._validators['labelssrc'] = v_sunburst.LabelssrcValidator() - self._validators['leaf'] = v_sunburst.LeafValidator() - self._validators['level'] = v_sunburst.LevelValidator() - self._validators['marker'] = v_sunburst.MarkerValidator() - self._validators['maxdepth'] = v_sunburst.MaxdepthValidator() - self._validators['meta'] = v_sunburst.MetaValidator() - self._validators['metasrc'] = v_sunburst.MetasrcValidator() - self._validators['name'] = v_sunburst.NameValidator() - self._validators['opacity'] = v_sunburst.OpacityValidator() - self._validators['outsidetextfont' - ] = v_sunburst.OutsidetextfontValidator() - self._validators['parents'] = v_sunburst.ParentsValidator() - self._validators['parentssrc'] = v_sunburst.ParentssrcValidator() - self._validators['stream'] = v_sunburst.StreamValidator() - self._validators['text'] = v_sunburst.TextValidator() - self._validators['textfont'] = v_sunburst.TextfontValidator() - self._validators['textinfo'] = v_sunburst.TextinfoValidator() - self._validators['textsrc'] = v_sunburst.TextsrcValidator() - self._validators['uid'] = v_sunburst.UidValidator() - self._validators['uirevision'] = v_sunburst.UirevisionValidator() - self._validators['values'] = v_sunburst.ValuesValidator() - self._validators['valuessrc'] = v_sunburst.ValuessrcValidator() - self._validators['visible'] = v_sunburst.VisibleValidator() + self._validators["branchvalues"] = v_sunburst.BranchvaluesValidator() + self._validators["customdata"] = v_sunburst.CustomdataValidator() + self._validators["customdatasrc"] = v_sunburst.CustomdatasrcValidator() + self._validators["domain"] = v_sunburst.DomainValidator() + self._validators["hoverinfo"] = v_sunburst.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_sunburst.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_sunburst.HoverlabelValidator() + self._validators["hovertemplate"] = v_sunburst.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_sunburst.HovertemplatesrcValidator() + self._validators["hovertext"] = v_sunburst.HovertextValidator() + self._validators["hovertextsrc"] = v_sunburst.HovertextsrcValidator() + self._validators["ids"] = v_sunburst.IdsValidator() + self._validators["idssrc"] = v_sunburst.IdssrcValidator() + self._validators["insidetextfont"] = v_sunburst.InsidetextfontValidator() + self._validators["labels"] = v_sunburst.LabelsValidator() + self._validators["labelssrc"] = v_sunburst.LabelssrcValidator() + self._validators["leaf"] = v_sunburst.LeafValidator() + self._validators["level"] = v_sunburst.LevelValidator() + self._validators["marker"] = v_sunburst.MarkerValidator() + self._validators["maxdepth"] = v_sunburst.MaxdepthValidator() + self._validators["meta"] = v_sunburst.MetaValidator() + self._validators["metasrc"] = v_sunburst.MetasrcValidator() + self._validators["name"] = v_sunburst.NameValidator() + self._validators["opacity"] = v_sunburst.OpacityValidator() + self._validators["outsidetextfont"] = v_sunburst.OutsidetextfontValidator() + self._validators["parents"] = v_sunburst.ParentsValidator() + self._validators["parentssrc"] = v_sunburst.ParentssrcValidator() + self._validators["stream"] = v_sunburst.StreamValidator() + self._validators["text"] = v_sunburst.TextValidator() + self._validators["textfont"] = v_sunburst.TextfontValidator() + self._validators["textinfo"] = v_sunburst.TextinfoValidator() + self._validators["textsrc"] = v_sunburst.TextsrcValidator() + self._validators["uid"] = v_sunburst.UidValidator() + self._validators["uirevision"] = v_sunburst.UirevisionValidator() + self._validators["values"] = v_sunburst.ValuesValidator() + self._validators["valuessrc"] = v_sunburst.ValuessrcValidator() + self._validators["visible"] = v_sunburst.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('branchvalues', None) - self['branchvalues'] = branchvalues if branchvalues is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('domain', None) - self['domain'] = domain if domain is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('insidetextfont', None) - self['insidetextfont' - ] = insidetextfont if insidetextfont is not None else _v - _v = arg.pop('labels', None) - self['labels'] = labels if labels is not None else _v - _v = arg.pop('labelssrc', None) - self['labelssrc'] = labelssrc if labelssrc is not None else _v - _v = arg.pop('leaf', None) - self['leaf'] = leaf if leaf is not None else _v - _v = arg.pop('level', None) - self['level'] = level if level is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('maxdepth', None) - self['maxdepth'] = maxdepth if maxdepth is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('outsidetextfont', None) - self['outsidetextfont' - ] = outsidetextfont if outsidetextfont is not None else _v - _v = arg.pop('parents', None) - self['parents'] = parents if parents is not None else _v - _v = arg.pop('parentssrc', None) - self['parentssrc'] = parentssrc if parentssrc is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v - _v = arg.pop('textinfo', None) - self['textinfo'] = textinfo if textinfo is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('values', None) - self['values'] = values if values is not None else _v - _v = arg.pop('valuessrc', None) - self['valuessrc'] = valuessrc if valuessrc is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("branchvalues", None) + self["branchvalues"] = branchvalues if branchvalues is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("domain", None) + self["domain"] = domain if domain is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("insidetextfont", None) + self["insidetextfont"] = insidetextfont if insidetextfont is not None else _v + _v = arg.pop("labels", None) + self["labels"] = labels if labels is not None else _v + _v = arg.pop("labelssrc", None) + self["labelssrc"] = labelssrc if labelssrc is not None else _v + _v = arg.pop("leaf", None) + self["leaf"] = leaf if leaf is not None else _v + _v = arg.pop("level", None) + self["level"] = level if level is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("maxdepth", None) + self["maxdepth"] = maxdepth if maxdepth is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("outsidetextfont", None) + self["outsidetextfont"] = outsidetextfont if outsidetextfont is not None else _v + _v = arg.pop("parents", None) + self["parents"] = parents if parents is not None else _v + _v = arg.pop("parentssrc", None) + self["parentssrc"] = parentssrc if parentssrc is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v + _v = arg.pop("textinfo", None) + self["textinfo"] = textinfo if textinfo is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("values", None) + self["values"] = values if values is not None else _v + _v = arg.pop("valuessrc", None) + self["valuessrc"] = valuessrc if valuessrc is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'sunburst' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='sunburst', val='sunburst' + + self._props["type"] = "sunburst" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="sunburst", val="sunburst" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -17014,11 +16978,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -17037,11 +17001,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -17059,11 +17023,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -17082,11 +17046,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -17104,11 +17068,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # coloraxis # --------- @@ -17131,11 +17095,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -17364,11 +17328,11 @@ def colorbar(self): ------- plotly.graph_objs.streamtube.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -17401,11 +17365,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # customdata # ---------- @@ -17424,11 +17388,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -17444,11 +17408,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # hoverinfo # --------- @@ -17470,11 +17434,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -17490,11 +17454,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -17549,11 +17513,11 @@ def hoverlabel(self): ------- plotly.graph_objs.streamtube.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -17586,11 +17550,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -17606,11 +17570,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -17627,11 +17591,11 @@ def hovertext(self): ------- str """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # ids # --- @@ -17649,11 +17613,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -17669,11 +17633,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # lighting # -------- @@ -17717,11 +17681,11 @@ def lighting(self): ------- plotly.graph_objs.streamtube.Lighting """ - return self['lighting'] + return self["lighting"] @lighting.setter def lighting(self, val): - self['lighting'] = val + self["lighting"] = val # lightposition # ------------- @@ -17750,11 +17714,11 @@ def lightposition(self): ------- plotly.graph_objs.streamtube.Lightposition """ - return self['lightposition'] + return self["lightposition"] @lightposition.setter def lightposition(self, val): - self['lightposition'] = val + self["lightposition"] = val # maxdisplayed # ------------ @@ -17771,11 +17735,11 @@ def maxdisplayed(self): ------- int """ - return self['maxdisplayed'] + return self["maxdisplayed"] @maxdisplayed.setter def maxdisplayed(self, val): - self['maxdisplayed'] = val + self["maxdisplayed"] = val # meta # ---- @@ -17799,11 +17763,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -17819,11 +17783,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -17841,11 +17805,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -17866,11 +17830,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # reversescale # ------------ @@ -17888,11 +17852,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # scene # ----- @@ -17913,11 +17877,11 @@ def scene(self): ------- str """ - return self['scene'] + return self["scene"] @scene.setter def scene(self, val): - self['scene'] = val + self["scene"] = val # showscale # --------- @@ -17934,11 +17898,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # sizeref # ------- @@ -17956,11 +17920,11 @@ def sizeref(self): ------- int|float """ - return self['sizeref'] + return self["sizeref"] @sizeref.setter def sizeref(self, val): - self['sizeref'] = val + self["sizeref"] = val # starts # ------ @@ -17995,11 +17959,11 @@ def starts(self): ------- plotly.graph_objs.streamtube.Starts """ - return self['starts'] + return self["starts"] @starts.setter def starts(self, val): - self['starts'] = val + self["starts"] = val # stream # ------ @@ -18028,11 +17992,11 @@ def stream(self): ------- plotly.graph_objs.streamtube.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -18052,11 +18016,11 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # u # - @@ -18072,11 +18036,11 @@ def u(self): ------- numpy.ndarray """ - return self['u'] + return self["u"] @u.setter def u(self, val): - self['u'] = val + self["u"] = val # uid # --- @@ -18094,11 +18058,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -18127,11 +18091,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # usrc # ---- @@ -18147,11 +18111,11 @@ def usrc(self): ------- str """ - return self['usrc'] + return self["usrc"] @usrc.setter def usrc(self, val): - self['usrc'] = val + self["usrc"] = val # v # - @@ -18167,11 +18131,11 @@ def v(self): ------- numpy.ndarray """ - return self['v'] + return self["v"] @v.setter def v(self, val): - self['v'] = val + self["v"] = val # visible # ------- @@ -18190,11 +18154,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # vsrc # ---- @@ -18210,11 +18174,11 @@ def vsrc(self): ------- str """ - return self['vsrc'] + return self["vsrc"] @vsrc.setter def vsrc(self, val): - self['vsrc'] = val + self["vsrc"] = val # w # - @@ -18230,11 +18194,11 @@ def w(self): ------- numpy.ndarray """ - return self['w'] + return self["w"] @w.setter def w(self, val): - self['w'] = val + self["w"] = val # wsrc # ---- @@ -18250,11 +18214,11 @@ def wsrc(self): ------- str """ - return self['wsrc'] + return self["wsrc"] @wsrc.setter def wsrc(self, val): - self['wsrc'] = val + self["wsrc"] = val # x # - @@ -18270,11 +18234,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xsrc # ---- @@ -18290,11 +18254,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -18310,11 +18274,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # ysrc # ---- @@ -18330,11 +18294,11 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # z # - @@ -18350,11 +18314,11 @@ def z(self): ------- numpy.ndarray """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # zsrc # ---- @@ -18370,23 +18334,23 @@ def zsrc(self): ------- str """ - return self['zsrc'] + return self["zsrc"] @zsrc.setter def zsrc(self, val): - self['zsrc'] = val + self["zsrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -18886,7 +18850,7 @@ def __init__( ------- Streamtube """ - super(Streamtube, self).__init__('streamtube') + super(Streamtube, self).__init__("streamtube") # Validate arg # ------------ @@ -18906,177 +18870,170 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (streamtube as v_streamtube) + from plotly.validators import streamtube as v_streamtube # Initialize validators # --------------------- - self._validators['autocolorscale' - ] = v_streamtube.AutocolorscaleValidator() - self._validators['cauto'] = v_streamtube.CautoValidator() - self._validators['cmax'] = v_streamtube.CmaxValidator() - self._validators['cmid'] = v_streamtube.CmidValidator() - self._validators['cmin'] = v_streamtube.CminValidator() - self._validators['coloraxis'] = v_streamtube.ColoraxisValidator() - self._validators['colorbar'] = v_streamtube.ColorBarValidator() - self._validators['colorscale'] = v_streamtube.ColorscaleValidator() - self._validators['customdata'] = v_streamtube.CustomdataValidator() - self._validators['customdatasrc' - ] = v_streamtube.CustomdatasrcValidator() - self._validators['hoverinfo'] = v_streamtube.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_streamtube.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_streamtube.HoverlabelValidator() - self._validators['hovertemplate' - ] = v_streamtube.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_streamtube.HovertemplatesrcValidator() - self._validators['hovertext'] = v_streamtube.HovertextValidator() - self._validators['ids'] = v_streamtube.IdsValidator() - self._validators['idssrc'] = v_streamtube.IdssrcValidator() - self._validators['lighting'] = v_streamtube.LightingValidator() - self._validators['lightposition' - ] = v_streamtube.LightpositionValidator() - self._validators['maxdisplayed'] = v_streamtube.MaxdisplayedValidator() - self._validators['meta'] = v_streamtube.MetaValidator() - self._validators['metasrc'] = v_streamtube.MetasrcValidator() - self._validators['name'] = v_streamtube.NameValidator() - self._validators['opacity'] = v_streamtube.OpacityValidator() - self._validators['reversescale'] = v_streamtube.ReversescaleValidator() - self._validators['scene'] = v_streamtube.SceneValidator() - self._validators['showscale'] = v_streamtube.ShowscaleValidator() - self._validators['sizeref'] = v_streamtube.SizerefValidator() - self._validators['starts'] = v_streamtube.StartsValidator() - self._validators['stream'] = v_streamtube.StreamValidator() - self._validators['text'] = v_streamtube.TextValidator() - self._validators['u'] = v_streamtube.UValidator() - self._validators['uid'] = v_streamtube.UidValidator() - self._validators['uirevision'] = v_streamtube.UirevisionValidator() - self._validators['usrc'] = v_streamtube.UsrcValidator() - self._validators['v'] = v_streamtube.VValidator() - self._validators['visible'] = v_streamtube.VisibleValidator() - self._validators['vsrc'] = v_streamtube.VsrcValidator() - self._validators['w'] = v_streamtube.WValidator() - self._validators['wsrc'] = v_streamtube.WsrcValidator() - self._validators['x'] = v_streamtube.XValidator() - self._validators['xsrc'] = v_streamtube.XsrcValidator() - self._validators['y'] = v_streamtube.YValidator() - self._validators['ysrc'] = v_streamtube.YsrcValidator() - self._validators['z'] = v_streamtube.ZValidator() - self._validators['zsrc'] = v_streamtube.ZsrcValidator() + self._validators["autocolorscale"] = v_streamtube.AutocolorscaleValidator() + self._validators["cauto"] = v_streamtube.CautoValidator() + self._validators["cmax"] = v_streamtube.CmaxValidator() + self._validators["cmid"] = v_streamtube.CmidValidator() + self._validators["cmin"] = v_streamtube.CminValidator() + self._validators["coloraxis"] = v_streamtube.ColoraxisValidator() + self._validators["colorbar"] = v_streamtube.ColorBarValidator() + self._validators["colorscale"] = v_streamtube.ColorscaleValidator() + self._validators["customdata"] = v_streamtube.CustomdataValidator() + self._validators["customdatasrc"] = v_streamtube.CustomdatasrcValidator() + self._validators["hoverinfo"] = v_streamtube.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_streamtube.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_streamtube.HoverlabelValidator() + self._validators["hovertemplate"] = v_streamtube.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_streamtube.HovertemplatesrcValidator() + self._validators["hovertext"] = v_streamtube.HovertextValidator() + self._validators["ids"] = v_streamtube.IdsValidator() + self._validators["idssrc"] = v_streamtube.IdssrcValidator() + self._validators["lighting"] = v_streamtube.LightingValidator() + self._validators["lightposition"] = v_streamtube.LightpositionValidator() + self._validators["maxdisplayed"] = v_streamtube.MaxdisplayedValidator() + self._validators["meta"] = v_streamtube.MetaValidator() + self._validators["metasrc"] = v_streamtube.MetasrcValidator() + self._validators["name"] = v_streamtube.NameValidator() + self._validators["opacity"] = v_streamtube.OpacityValidator() + self._validators["reversescale"] = v_streamtube.ReversescaleValidator() + self._validators["scene"] = v_streamtube.SceneValidator() + self._validators["showscale"] = v_streamtube.ShowscaleValidator() + self._validators["sizeref"] = v_streamtube.SizerefValidator() + self._validators["starts"] = v_streamtube.StartsValidator() + self._validators["stream"] = v_streamtube.StreamValidator() + self._validators["text"] = v_streamtube.TextValidator() + self._validators["u"] = v_streamtube.UValidator() + self._validators["uid"] = v_streamtube.UidValidator() + self._validators["uirevision"] = v_streamtube.UirevisionValidator() + self._validators["usrc"] = v_streamtube.UsrcValidator() + self._validators["v"] = v_streamtube.VValidator() + self._validators["visible"] = v_streamtube.VisibleValidator() + self._validators["vsrc"] = v_streamtube.VsrcValidator() + self._validators["w"] = v_streamtube.WValidator() + self._validators["wsrc"] = v_streamtube.WsrcValidator() + self._validators["x"] = v_streamtube.XValidator() + self._validators["xsrc"] = v_streamtube.XsrcValidator() + self._validators["y"] = v_streamtube.YValidator() + self._validators["ysrc"] = v_streamtube.YsrcValidator() + self._validators["z"] = v_streamtube.ZValidator() + self._validators["zsrc"] = v_streamtube.ZsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('lighting', None) - self['lighting'] = lighting if lighting is not None else _v - _v = arg.pop('lightposition', None) - self['lightposition' - ] = lightposition if lightposition is not None else _v - _v = arg.pop('maxdisplayed', None) - self['maxdisplayed'] = maxdisplayed if maxdisplayed is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('scene', None) - self['scene'] = scene if scene is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('sizeref', None) - self['sizeref'] = sizeref if sizeref is not None else _v - _v = arg.pop('starts', None) - self['starts'] = starts if starts is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('u', None) - self['u'] = u if u is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('usrc', None) - self['usrc'] = usrc if usrc is not None else _v - _v = arg.pop('v', None) - self['v'] = v if v is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('vsrc', None) - self['vsrc'] = vsrc if vsrc is not None else _v - _v = arg.pop('w', None) - self['w'] = w if w is not None else _v - _v = arg.pop('wsrc', None) - self['wsrc'] = wsrc if wsrc is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v - _v = arg.pop('zsrc', None) - self['zsrc'] = zsrc if zsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("lighting", None) + self["lighting"] = lighting if lighting is not None else _v + _v = arg.pop("lightposition", None) + self["lightposition"] = lightposition if lightposition is not None else _v + _v = arg.pop("maxdisplayed", None) + self["maxdisplayed"] = maxdisplayed if maxdisplayed is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("scene", None) + self["scene"] = scene if scene is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("sizeref", None) + self["sizeref"] = sizeref if sizeref is not None else _v + _v = arg.pop("starts", None) + self["starts"] = starts if starts is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("u", None) + self["u"] = u if u is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("usrc", None) + self["usrc"] = usrc if usrc is not None else _v + _v = arg.pop("v", None) + self["v"] = v if v is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("vsrc", None) + self["vsrc"] = vsrc if vsrc is not None else _v + _v = arg.pop("w", None) + self["w"] = w if w is not None else _v + _v = arg.pop("wsrc", None) + self["wsrc"] = wsrc if wsrc is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v + _v = arg.pop("zsrc", None) + self["zsrc"] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'streamtube' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='streamtube', val='streamtube' + + self._props["type"] = "streamtube" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="streamtube", val="streamtube" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -19110,11 +19067,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -19130,11 +19087,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # diagonal # -------- @@ -19157,11 +19114,11 @@ def diagonal(self): ------- plotly.graph_objs.splom.Diagonal """ - return self['diagonal'] + return self["diagonal"] @diagonal.setter def diagonal(self, val): - self['diagonal'] = val + self["diagonal"] = val # dimensions # ---------- @@ -19218,11 +19175,11 @@ def dimensions(self): ------- tuple[plotly.graph_objs.splom.Dimension] """ - return self['dimensions'] + return self["dimensions"] @dimensions.setter def dimensions(self, val): - self['dimensions'] = val + self["dimensions"] = val # dimensiondefaults # ----------------- @@ -19245,11 +19202,11 @@ def dimensiondefaults(self): ------- plotly.graph_objs.splom.Dimension """ - return self['dimensiondefaults'] + return self["dimensiondefaults"] @dimensiondefaults.setter def dimensiondefaults(self, val): - self['dimensiondefaults'] = val + self["dimensiondefaults"] = val # hoverinfo # --------- @@ -19271,11 +19228,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -19291,11 +19248,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -19350,11 +19307,11 @@ def hoverlabel(self): ------- plotly.graph_objs.splom.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -19386,11 +19343,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -19406,11 +19363,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -19428,11 +19385,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -19448,11 +19405,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -19470,11 +19427,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -19490,11 +19447,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # legendgroup # ----------- @@ -19513,11 +19470,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # marker # ------ @@ -19659,11 +19616,11 @@ def marker(self): ------- plotly.graph_objs.splom.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -19687,11 +19644,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -19707,11 +19664,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -19729,11 +19686,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -19749,11 +19706,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # selected # -------- @@ -19776,11 +19733,11 @@ def selected(self): ------- plotly.graph_objs.splom.Selected """ - return self['selected'] + return self["selected"] @selected.setter def selected(self, val): - self['selected'] = val + self["selected"] = val # selectedpoints # -------------- @@ -19800,11 +19757,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -19821,11 +19778,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # showlowerhalf # ------------- @@ -19842,11 +19799,11 @@ def showlowerhalf(self): ------- bool """ - return self['showlowerhalf'] + return self["showlowerhalf"] @showlowerhalf.setter def showlowerhalf(self, val): - self['showlowerhalf'] = val + self["showlowerhalf"] = val # showupperhalf # ------------- @@ -19863,11 +19820,11 @@ def showupperhalf(self): ------- bool """ - return self['showupperhalf'] + return self["showupperhalf"] @showupperhalf.setter def showupperhalf(self, val): - self['showupperhalf'] = val + self["showupperhalf"] = val # stream # ------ @@ -19896,11 +19853,11 @@ def stream(self): ------- plotly.graph_objs.splom.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -19921,11 +19878,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -19941,11 +19898,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -19963,11 +19920,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -19996,11 +19953,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # unselected # ---------- @@ -20023,11 +19980,11 @@ def unselected(self): ------- plotly.graph_objs.splom.Unselected """ - return self['unselected'] + return self["unselected"] @unselected.setter def unselected(self, val): - self['unselected'] = val + self["unselected"] = val # visible # ------- @@ -20046,11 +20003,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # xaxes # ----- @@ -20075,11 +20032,11 @@ def xaxes(self): ------- list """ - return self['xaxes'] + return self["xaxes"] @xaxes.setter def xaxes(self, val): - self['xaxes'] = val + self["xaxes"] = val # yaxes # ----- @@ -20104,23 +20061,23 @@ def yaxes(self): ------- list """ - return self['yaxes'] + return self["yaxes"] @yaxes.setter def yaxes(self, val): - self['yaxes'] = val + self["yaxes"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -20513,7 +20470,7 @@ def __init__( ------- Splom """ - super(Splom, self).__init__('splom') + super(Splom, self).__init__("splom") # Validate arg # ------------ @@ -20533,136 +20490,133 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (splom as v_splom) + from plotly.validators import splom as v_splom # Initialize validators # --------------------- - self._validators['customdata'] = v_splom.CustomdataValidator() - self._validators['customdatasrc'] = v_splom.CustomdatasrcValidator() - self._validators['diagonal'] = v_splom.DiagonalValidator() - self._validators['dimensions'] = v_splom.DimensionsValidator() - self._validators['dimensiondefaults'] = v_splom.DimensionValidator() - self._validators['hoverinfo'] = v_splom.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_splom.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_splom.HoverlabelValidator() - self._validators['hovertemplate'] = v_splom.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_splom.HovertemplatesrcValidator() - self._validators['hovertext'] = v_splom.HovertextValidator() - self._validators['hovertextsrc'] = v_splom.HovertextsrcValidator() - self._validators['ids'] = v_splom.IdsValidator() - self._validators['idssrc'] = v_splom.IdssrcValidator() - self._validators['legendgroup'] = v_splom.LegendgroupValidator() - self._validators['marker'] = v_splom.MarkerValidator() - self._validators['meta'] = v_splom.MetaValidator() - self._validators['metasrc'] = v_splom.MetasrcValidator() - self._validators['name'] = v_splom.NameValidator() - self._validators['opacity'] = v_splom.OpacityValidator() - self._validators['selected'] = v_splom.SelectedValidator() - self._validators['selectedpoints'] = v_splom.SelectedpointsValidator() - self._validators['showlegend'] = v_splom.ShowlegendValidator() - self._validators['showlowerhalf'] = v_splom.ShowlowerhalfValidator() - self._validators['showupperhalf'] = v_splom.ShowupperhalfValidator() - self._validators['stream'] = v_splom.StreamValidator() - self._validators['text'] = v_splom.TextValidator() - self._validators['textsrc'] = v_splom.TextsrcValidator() - self._validators['uid'] = v_splom.UidValidator() - self._validators['uirevision'] = v_splom.UirevisionValidator() - self._validators['unselected'] = v_splom.UnselectedValidator() - self._validators['visible'] = v_splom.VisibleValidator() - self._validators['xaxes'] = v_splom.XaxesValidator() - self._validators['yaxes'] = v_splom.YaxesValidator() + self._validators["customdata"] = v_splom.CustomdataValidator() + self._validators["customdatasrc"] = v_splom.CustomdatasrcValidator() + self._validators["diagonal"] = v_splom.DiagonalValidator() + self._validators["dimensions"] = v_splom.DimensionsValidator() + self._validators["dimensiondefaults"] = v_splom.DimensionValidator() + self._validators["hoverinfo"] = v_splom.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_splom.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_splom.HoverlabelValidator() + self._validators["hovertemplate"] = v_splom.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_splom.HovertemplatesrcValidator() + self._validators["hovertext"] = v_splom.HovertextValidator() + self._validators["hovertextsrc"] = v_splom.HovertextsrcValidator() + self._validators["ids"] = v_splom.IdsValidator() + self._validators["idssrc"] = v_splom.IdssrcValidator() + self._validators["legendgroup"] = v_splom.LegendgroupValidator() + self._validators["marker"] = v_splom.MarkerValidator() + self._validators["meta"] = v_splom.MetaValidator() + self._validators["metasrc"] = v_splom.MetasrcValidator() + self._validators["name"] = v_splom.NameValidator() + self._validators["opacity"] = v_splom.OpacityValidator() + self._validators["selected"] = v_splom.SelectedValidator() + self._validators["selectedpoints"] = v_splom.SelectedpointsValidator() + self._validators["showlegend"] = v_splom.ShowlegendValidator() + self._validators["showlowerhalf"] = v_splom.ShowlowerhalfValidator() + self._validators["showupperhalf"] = v_splom.ShowupperhalfValidator() + self._validators["stream"] = v_splom.StreamValidator() + self._validators["text"] = v_splom.TextValidator() + self._validators["textsrc"] = v_splom.TextsrcValidator() + self._validators["uid"] = v_splom.UidValidator() + self._validators["uirevision"] = v_splom.UirevisionValidator() + self._validators["unselected"] = v_splom.UnselectedValidator() + self._validators["visible"] = v_splom.VisibleValidator() + self._validators["xaxes"] = v_splom.XaxesValidator() + self._validators["yaxes"] = v_splom.YaxesValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('diagonal', None) - self['diagonal'] = diagonal if diagonal is not None else _v - _v = arg.pop('dimensions', None) - self['dimensions'] = dimensions if dimensions is not None else _v - _v = arg.pop('dimensiondefaults', None) - self['dimensiondefaults' - ] = dimensiondefaults if dimensiondefaults is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('selected', None) - self['selected'] = selected if selected is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('showlowerhalf', None) - self['showlowerhalf' - ] = showlowerhalf if showlowerhalf is not None else _v - _v = arg.pop('showupperhalf', None) - self['showupperhalf' - ] = showupperhalf if showupperhalf is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('unselected', None) - self['unselected'] = unselected if unselected is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('xaxes', None) - self['xaxes'] = xaxes if xaxes is not None else _v - _v = arg.pop('yaxes', None) - self['yaxes'] = yaxes if yaxes is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("diagonal", None) + self["diagonal"] = diagonal if diagonal is not None else _v + _v = arg.pop("dimensions", None) + self["dimensions"] = dimensions if dimensions is not None else _v + _v = arg.pop("dimensiondefaults", None) + self["dimensiondefaults"] = ( + dimensiondefaults if dimensiondefaults is not None else _v + ) + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("selected", None) + self["selected"] = selected if selected is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("showlowerhalf", None) + self["showlowerhalf"] = showlowerhalf if showlowerhalf is not None else _v + _v = arg.pop("showupperhalf", None) + self["showupperhalf"] = showupperhalf if showupperhalf is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("unselected", None) + self["unselected"] = unselected if unselected is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("xaxes", None) + self["xaxes"] = xaxes if xaxes is not None else _v + _v = arg.pop("yaxes", None) + self["yaxes"] = yaxes if yaxes is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'splom' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='splom', val='splom' + + self._props["type"] = "splom" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="splom", val="splom" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -20696,11 +20650,11 @@ def a(self): ------- numpy.ndarray """ - return self['a'] + return self["a"] @a.setter def a(self, val): - self['a'] = val + self["a"] = val # asrc # ---- @@ -20716,11 +20670,11 @@ def asrc(self): ------- str """ - return self['asrc'] + return self["asrc"] @asrc.setter def asrc(self, val): - self['asrc'] = val + self["asrc"] = val # b # - @@ -20739,11 +20693,11 @@ def b(self): ------- numpy.ndarray """ - return self['b'] + return self["b"] @b.setter def b(self, val): - self['b'] = val + self["b"] = val # bsrc # ---- @@ -20759,11 +20713,11 @@ def bsrc(self): ------- str """ - return self['bsrc'] + return self["bsrc"] @bsrc.setter def bsrc(self, val): - self['bsrc'] = val + self["bsrc"] = val # c # - @@ -20782,11 +20736,11 @@ def c(self): ------- numpy.ndarray """ - return self['c'] + return self["c"] @c.setter def c(self, val): - self['c'] = val + self["c"] = val # cliponaxis # ---------- @@ -20805,11 +20759,11 @@ def cliponaxis(self): ------- bool """ - return self['cliponaxis'] + return self["cliponaxis"] @cliponaxis.setter def cliponaxis(self, val): - self['cliponaxis'] = val + self["cliponaxis"] = val # connectgaps # ----------- @@ -20826,11 +20780,11 @@ def connectgaps(self): ------- bool """ - return self['connectgaps'] + return self["connectgaps"] @connectgaps.setter def connectgaps(self, val): - self['connectgaps'] = val + self["connectgaps"] = val # csrc # ---- @@ -20846,11 +20800,11 @@ def csrc(self): ------- str """ - return self['csrc'] + return self["csrc"] @csrc.setter def csrc(self, val): - self['csrc'] = val + self["csrc"] = val # customdata # ---------- @@ -20869,11 +20823,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -20889,11 +20843,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # fill # ---- @@ -20918,11 +20872,11 @@ def fill(self): ------- Any """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # fillcolor # --------- @@ -20979,11 +20933,11 @@ def fillcolor(self): ------- str """ - return self['fillcolor'] + return self["fillcolor"] @fillcolor.setter def fillcolor(self, val): - self['fillcolor'] = val + self["fillcolor"] = val # hoverinfo # --------- @@ -21005,11 +20959,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -21025,11 +20979,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -21084,11 +21038,11 @@ def hoverlabel(self): ------- plotly.graph_objs.scatterternary.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hoveron # ------- @@ -21109,11 +21063,11 @@ def hoveron(self): ------- Any """ - return self['hoveron'] + return self["hoveron"] @hoveron.setter def hoveron(self, val): - self['hoveron'] = val + self["hoveron"] = val # hovertemplate # ------------- @@ -21145,11 +21099,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -21165,11 +21119,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -21191,11 +21145,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -21211,11 +21165,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -21233,11 +21187,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -21253,11 +21207,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # legendgroup # ----------- @@ -21276,11 +21230,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # line # ---- @@ -21319,11 +21273,11 @@ def line(self): ------- plotly.graph_objs.scatterternary.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # marker # ------ @@ -21471,11 +21425,11 @@ def marker(self): ------- plotly.graph_objs.scatterternary.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -21499,11 +21453,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -21519,11 +21473,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # mode # ---- @@ -21547,11 +21501,11 @@ def mode(self): ------- Any """ - return self['mode'] + return self["mode"] @mode.setter def mode(self, val): - self['mode'] = val + self["mode"] = val # name # ---- @@ -21569,11 +21523,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -21589,11 +21543,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # selected # -------- @@ -21619,11 +21573,11 @@ def selected(self): ------- plotly.graph_objs.scatterternary.Selected """ - return self['selected'] + return self["selected"] @selected.setter def selected(self, val): - self['selected'] = val + self["selected"] = val # selectedpoints # -------------- @@ -21643,11 +21597,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -21664,11 +21618,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -21697,11 +21651,11 @@ def stream(self): ------- plotly.graph_objs.scatterternary.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # subplot # ------- @@ -21722,11 +21676,11 @@ def subplot(self): ------- str """ - return self['subplot'] + return self["subplot"] @subplot.setter def subplot(self, val): - self['subplot'] = val + self["subplot"] = val # sum # --- @@ -21746,11 +21700,11 @@ def sum(self): ------- int|float """ - return self['sum'] + return self["sum"] @sum.setter def sum(self, val): - self['sum'] = val + self["sum"] = val # text # ---- @@ -21773,11 +21727,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textfont # -------- @@ -21828,11 +21782,11 @@ def textfont(self): ------- plotly.graph_objs.scatterternary.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # textposition # ------------ @@ -21853,11 +21807,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self['textposition'] + return self["textposition"] @textposition.setter def textposition(self, val): - self['textposition'] = val + self["textposition"] = val # textpositionsrc # --------------- @@ -21873,11 +21827,11 @@ def textpositionsrc(self): ------- str """ - return self['textpositionsrc'] + return self["textpositionsrc"] @textpositionsrc.setter def textpositionsrc(self, val): - self['textpositionsrc'] = val + self["textpositionsrc"] = val # textsrc # ------- @@ -21893,11 +21847,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -21915,11 +21869,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -21948,11 +21902,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # unselected # ---------- @@ -21979,11 +21933,11 @@ def unselected(self): ------- plotly.graph_objs.scatterternary.Unselected """ - return self['unselected'] + return self["unselected"] @unselected.setter def unselected(self, val): - self['unselected'] = val + self["unselected"] = val # visible # ------- @@ -22002,23 +21956,23 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -22534,7 +22488,7 @@ def __init__( ------- Scatterternary """ - super(Scatterternary, self).__init__('scatterternary') + super(Scatterternary, self).__init__("scatterternary") # Validate arg # ------------ @@ -22554,178 +22508,168 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (scatterternary as v_scatterternary) + from plotly.validators import scatterternary as v_scatterternary # Initialize validators # --------------------- - self._validators['a'] = v_scatterternary.AValidator() - self._validators['asrc'] = v_scatterternary.AsrcValidator() - self._validators['b'] = v_scatterternary.BValidator() - self._validators['bsrc'] = v_scatterternary.BsrcValidator() - self._validators['c'] = v_scatterternary.CValidator() - self._validators['cliponaxis'] = v_scatterternary.CliponaxisValidator() - self._validators['connectgaps' - ] = v_scatterternary.ConnectgapsValidator() - self._validators['csrc'] = v_scatterternary.CsrcValidator() - self._validators['customdata'] = v_scatterternary.CustomdataValidator() - self._validators['customdatasrc' - ] = v_scatterternary.CustomdatasrcValidator() - self._validators['fill'] = v_scatterternary.FillValidator() - self._validators['fillcolor'] = v_scatterternary.FillcolorValidator() - self._validators['hoverinfo'] = v_scatterternary.HoverinfoValidator() - self._validators['hoverinfosrc' - ] = v_scatterternary.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_scatterternary.HoverlabelValidator() - self._validators['hoveron'] = v_scatterternary.HoveronValidator() - self._validators['hovertemplate' - ] = v_scatterternary.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_scatterternary.HovertemplatesrcValidator() - self._validators['hovertext'] = v_scatterternary.HovertextValidator() - self._validators['hovertextsrc' - ] = v_scatterternary.HovertextsrcValidator() - self._validators['ids'] = v_scatterternary.IdsValidator() - self._validators['idssrc'] = v_scatterternary.IdssrcValidator() - self._validators['legendgroup' - ] = v_scatterternary.LegendgroupValidator() - self._validators['line'] = v_scatterternary.LineValidator() - self._validators['marker'] = v_scatterternary.MarkerValidator() - self._validators['meta'] = v_scatterternary.MetaValidator() - self._validators['metasrc'] = v_scatterternary.MetasrcValidator() - self._validators['mode'] = v_scatterternary.ModeValidator() - self._validators['name'] = v_scatterternary.NameValidator() - self._validators['opacity'] = v_scatterternary.OpacityValidator() - self._validators['selected'] = v_scatterternary.SelectedValidator() - self._validators['selectedpoints' - ] = v_scatterternary.SelectedpointsValidator() - self._validators['showlegend'] = v_scatterternary.ShowlegendValidator() - self._validators['stream'] = v_scatterternary.StreamValidator() - self._validators['subplot'] = v_scatterternary.SubplotValidator() - self._validators['sum'] = v_scatterternary.SumValidator() - self._validators['text'] = v_scatterternary.TextValidator() - self._validators['textfont'] = v_scatterternary.TextfontValidator() - self._validators['textposition' - ] = v_scatterternary.TextpositionValidator() - self._validators['textpositionsrc' - ] = v_scatterternary.TextpositionsrcValidator() - self._validators['textsrc'] = v_scatterternary.TextsrcValidator() - self._validators['uid'] = v_scatterternary.UidValidator() - self._validators['uirevision'] = v_scatterternary.UirevisionValidator() - self._validators['unselected'] = v_scatterternary.UnselectedValidator() - self._validators['visible'] = v_scatterternary.VisibleValidator() + self._validators["a"] = v_scatterternary.AValidator() + self._validators["asrc"] = v_scatterternary.AsrcValidator() + self._validators["b"] = v_scatterternary.BValidator() + self._validators["bsrc"] = v_scatterternary.BsrcValidator() + self._validators["c"] = v_scatterternary.CValidator() + self._validators["cliponaxis"] = v_scatterternary.CliponaxisValidator() + self._validators["connectgaps"] = v_scatterternary.ConnectgapsValidator() + self._validators["csrc"] = v_scatterternary.CsrcValidator() + self._validators["customdata"] = v_scatterternary.CustomdataValidator() + self._validators["customdatasrc"] = v_scatterternary.CustomdatasrcValidator() + self._validators["fill"] = v_scatterternary.FillValidator() + self._validators["fillcolor"] = v_scatterternary.FillcolorValidator() + self._validators["hoverinfo"] = v_scatterternary.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_scatterternary.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_scatterternary.HoverlabelValidator() + self._validators["hoveron"] = v_scatterternary.HoveronValidator() + self._validators["hovertemplate"] = v_scatterternary.HovertemplateValidator() + self._validators[ + "hovertemplatesrc" + ] = v_scatterternary.HovertemplatesrcValidator() + self._validators["hovertext"] = v_scatterternary.HovertextValidator() + self._validators["hovertextsrc"] = v_scatterternary.HovertextsrcValidator() + self._validators["ids"] = v_scatterternary.IdsValidator() + self._validators["idssrc"] = v_scatterternary.IdssrcValidator() + self._validators["legendgroup"] = v_scatterternary.LegendgroupValidator() + self._validators["line"] = v_scatterternary.LineValidator() + self._validators["marker"] = v_scatterternary.MarkerValidator() + self._validators["meta"] = v_scatterternary.MetaValidator() + self._validators["metasrc"] = v_scatterternary.MetasrcValidator() + self._validators["mode"] = v_scatterternary.ModeValidator() + self._validators["name"] = v_scatterternary.NameValidator() + self._validators["opacity"] = v_scatterternary.OpacityValidator() + self._validators["selected"] = v_scatterternary.SelectedValidator() + self._validators["selectedpoints"] = v_scatterternary.SelectedpointsValidator() + self._validators["showlegend"] = v_scatterternary.ShowlegendValidator() + self._validators["stream"] = v_scatterternary.StreamValidator() + self._validators["subplot"] = v_scatterternary.SubplotValidator() + self._validators["sum"] = v_scatterternary.SumValidator() + self._validators["text"] = v_scatterternary.TextValidator() + self._validators["textfont"] = v_scatterternary.TextfontValidator() + self._validators["textposition"] = v_scatterternary.TextpositionValidator() + self._validators[ + "textpositionsrc" + ] = v_scatterternary.TextpositionsrcValidator() + self._validators["textsrc"] = v_scatterternary.TextsrcValidator() + self._validators["uid"] = v_scatterternary.UidValidator() + self._validators["uirevision"] = v_scatterternary.UirevisionValidator() + self._validators["unselected"] = v_scatterternary.UnselectedValidator() + self._validators["visible"] = v_scatterternary.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('a', None) - self['a'] = a if a is not None else _v - _v = arg.pop('asrc', None) - self['asrc'] = asrc if asrc is not None else _v - _v = arg.pop('b', None) - self['b'] = b if b is not None else _v - _v = arg.pop('bsrc', None) - self['bsrc'] = bsrc if bsrc is not None else _v - _v = arg.pop('c', None) - self['c'] = c if c is not None else _v - _v = arg.pop('cliponaxis', None) - self['cliponaxis'] = cliponaxis if cliponaxis is not None else _v - _v = arg.pop('connectgaps', None) - self['connectgaps'] = connectgaps if connectgaps is not None else _v - _v = arg.pop('csrc', None) - self['csrc'] = csrc if csrc is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('fillcolor', None) - self['fillcolor'] = fillcolor if fillcolor is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hoveron', None) - self['hoveron'] = hoveron if hoveron is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('mode', None) - self['mode'] = mode if mode is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('selected', None) - self['selected'] = selected if selected is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('subplot', None) - self['subplot'] = subplot if subplot is not None else _v - _v = arg.pop('sum', None) - self['sum'] = sum if sum is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v - _v = arg.pop('textposition', None) - self['textposition'] = textposition if textposition is not None else _v - _v = arg.pop('textpositionsrc', None) - self['textpositionsrc' - ] = textpositionsrc if textpositionsrc is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('unselected', None) - self['unselected'] = unselected if unselected is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("a", None) + self["a"] = a if a is not None else _v + _v = arg.pop("asrc", None) + self["asrc"] = asrc if asrc is not None else _v + _v = arg.pop("b", None) + self["b"] = b if b is not None else _v + _v = arg.pop("bsrc", None) + self["bsrc"] = bsrc if bsrc is not None else _v + _v = arg.pop("c", None) + self["c"] = c if c is not None else _v + _v = arg.pop("cliponaxis", None) + self["cliponaxis"] = cliponaxis if cliponaxis is not None else _v + _v = arg.pop("connectgaps", None) + self["connectgaps"] = connectgaps if connectgaps is not None else _v + _v = arg.pop("csrc", None) + self["csrc"] = csrc if csrc is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("fillcolor", None) + self["fillcolor"] = fillcolor if fillcolor is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hoveron", None) + self["hoveron"] = hoveron if hoveron is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("mode", None) + self["mode"] = mode if mode is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("selected", None) + self["selected"] = selected if selected is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("subplot", None) + self["subplot"] = subplot if subplot is not None else _v + _v = arg.pop("sum", None) + self["sum"] = sum if sum is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v + _v = arg.pop("textposition", None) + self["textposition"] = textposition if textposition is not None else _v + _v = arg.pop("textpositionsrc", None) + self["textpositionsrc"] = textpositionsrc if textpositionsrc is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("unselected", None) + self["unselected"] = unselected if unselected is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'scatterternary' - self._validators['type'] = LiteralValidator( - plotly_name='type', - parent_name='scatterternary', - val='scatterternary' + + self._props["type"] = "scatterternary" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="scatterternary", val="scatterternary" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -22757,11 +22701,11 @@ def connectgaps(self): ------- bool """ - return self['connectgaps'] + return self["connectgaps"] @connectgaps.setter def connectgaps(self, val): - self['connectgaps'] = val + self["connectgaps"] = val # customdata # ---------- @@ -22780,11 +22724,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -22800,11 +22744,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # dr # -- @@ -22820,11 +22764,11 @@ def dr(self): ------- int|float """ - return self['dr'] + return self["dr"] @dr.setter def dr(self, val): - self['dr'] = val + self["dr"] = val # dtheta # ------ @@ -22842,11 +22786,11 @@ def dtheta(self): ------- int|float """ - return self['dtheta'] + return self["dtheta"] @dtheta.setter def dtheta(self, val): - self['dtheta'] = val + self["dtheta"] = val # fill # ---- @@ -22882,11 +22826,11 @@ def fill(self): ------- Any """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # fillcolor # --------- @@ -22943,11 +22887,11 @@ def fillcolor(self): ------- str """ - return self['fillcolor'] + return self["fillcolor"] @fillcolor.setter def fillcolor(self, val): - self['fillcolor'] = val + self["fillcolor"] = val # hoverinfo # --------- @@ -22969,11 +22913,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -22989,11 +22933,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -23048,11 +22992,11 @@ def hoverlabel(self): ------- plotly.graph_objs.scatterpolargl.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -23084,11 +23028,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -23104,11 +23048,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -23130,11 +23074,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -23150,11 +23094,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -23172,11 +23116,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -23192,11 +23136,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # legendgroup # ----------- @@ -23215,11 +23159,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # line # ---- @@ -23248,11 +23192,11 @@ def line(self): ------- plotly.graph_objs.scatterpolargl.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # marker # ------ @@ -23394,11 +23338,11 @@ def marker(self): ------- plotly.graph_objs.scatterpolargl.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -23422,11 +23366,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -23442,11 +23386,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # mode # ---- @@ -23470,11 +23414,11 @@ def mode(self): ------- Any """ - return self['mode'] + return self["mode"] @mode.setter def mode(self, val): - self['mode'] = val + self["mode"] = val # name # ---- @@ -23492,11 +23436,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -23512,11 +23456,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # r # - @@ -23532,11 +23476,11 @@ def r(self): ------- numpy.ndarray """ - return self['r'] + return self["r"] @r.setter def r(self, val): - self['r'] = val + self["r"] = val # r0 # -- @@ -23553,11 +23497,11 @@ def r0(self): ------- Any """ - return self['r0'] + return self["r0"] @r0.setter def r0(self, val): - self['r0'] = val + self["r0"] = val # rsrc # ---- @@ -23573,11 +23517,11 @@ def rsrc(self): ------- str """ - return self['rsrc'] + return self["rsrc"] @rsrc.setter def rsrc(self, val): - self['rsrc'] = val + self["rsrc"] = val # selected # -------- @@ -23603,11 +23547,11 @@ def selected(self): ------- plotly.graph_objs.scatterpolargl.Selected """ - return self['selected'] + return self["selected"] @selected.setter def selected(self, val): - self['selected'] = val + self["selected"] = val # selectedpoints # -------------- @@ -23627,11 +23571,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -23648,11 +23592,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -23681,11 +23625,11 @@ def stream(self): ------- plotly.graph_objs.scatterpolargl.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # subplot # ------- @@ -23706,11 +23650,11 @@ def subplot(self): ------- str """ - return self['subplot'] + return self["subplot"] @subplot.setter def subplot(self, val): - self['subplot'] = val + self["subplot"] = val # text # ---- @@ -23733,11 +23677,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textfont # -------- @@ -23788,11 +23732,11 @@ def textfont(self): ------- plotly.graph_objs.scatterpolargl.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # textposition # ------------ @@ -23813,11 +23757,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self['textposition'] + return self["textposition"] @textposition.setter def textposition(self, val): - self['textposition'] = val + self["textposition"] = val # textpositionsrc # --------------- @@ -23833,11 +23777,11 @@ def textpositionsrc(self): ------- str """ - return self['textpositionsrc'] + return self["textpositionsrc"] @textpositionsrc.setter def textpositionsrc(self, val): - self['textpositionsrc'] = val + self["textpositionsrc"] = val # textsrc # ------- @@ -23853,11 +23797,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # theta # ----- @@ -23873,11 +23817,11 @@ def theta(self): ------- numpy.ndarray """ - return self['theta'] + return self["theta"] @theta.setter def theta(self, val): - self['theta'] = val + self["theta"] = val # theta0 # ------ @@ -23894,11 +23838,11 @@ def theta0(self): ------- Any """ - return self['theta0'] + return self["theta0"] @theta0.setter def theta0(self, val): - self['theta0'] = val + self["theta0"] = val # thetasrc # -------- @@ -23914,11 +23858,11 @@ def thetasrc(self): ------- str """ - return self['thetasrc'] + return self["thetasrc"] @thetasrc.setter def thetasrc(self, val): - self['thetasrc'] = val + self["thetasrc"] = val # thetaunit # --------- @@ -23936,11 +23880,11 @@ def thetaunit(self): ------- Any """ - return self['thetaunit'] + return self["thetaunit"] @thetaunit.setter def thetaunit(self, val): - self['thetaunit'] = val + self["thetaunit"] = val # uid # --- @@ -23958,11 +23902,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -23991,11 +23935,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # unselected # ---------- @@ -24022,11 +23966,11 @@ def unselected(self): ------- plotly.graph_objs.scatterpolargl.Unselected """ - return self['unselected'] + return self["unselected"] @unselected.setter def unselected(self, val): - self['unselected'] = val + self["unselected"] = val # visible # ------- @@ -24045,23 +23989,23 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -24568,7 +24512,7 @@ def __init__( ------- Scatterpolargl """ - super(Scatterpolargl, self).__init__('scatterpolargl') + super(Scatterpolargl, self).__init__("scatterpolargl") # Validate arg # ------------ @@ -24588,178 +24532,168 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (scatterpolargl as v_scatterpolargl) + from plotly.validators import scatterpolargl as v_scatterpolargl # Initialize validators # --------------------- - self._validators['connectgaps' - ] = v_scatterpolargl.ConnectgapsValidator() - self._validators['customdata'] = v_scatterpolargl.CustomdataValidator() - self._validators['customdatasrc' - ] = v_scatterpolargl.CustomdatasrcValidator() - self._validators['dr'] = v_scatterpolargl.DrValidator() - self._validators['dtheta'] = v_scatterpolargl.DthetaValidator() - self._validators['fill'] = v_scatterpolargl.FillValidator() - self._validators['fillcolor'] = v_scatterpolargl.FillcolorValidator() - self._validators['hoverinfo'] = v_scatterpolargl.HoverinfoValidator() - self._validators['hoverinfosrc' - ] = v_scatterpolargl.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_scatterpolargl.HoverlabelValidator() - self._validators['hovertemplate' - ] = v_scatterpolargl.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_scatterpolargl.HovertemplatesrcValidator() - self._validators['hovertext'] = v_scatterpolargl.HovertextValidator() - self._validators['hovertextsrc' - ] = v_scatterpolargl.HovertextsrcValidator() - self._validators['ids'] = v_scatterpolargl.IdsValidator() - self._validators['idssrc'] = v_scatterpolargl.IdssrcValidator() - self._validators['legendgroup' - ] = v_scatterpolargl.LegendgroupValidator() - self._validators['line'] = v_scatterpolargl.LineValidator() - self._validators['marker'] = v_scatterpolargl.MarkerValidator() - self._validators['meta'] = v_scatterpolargl.MetaValidator() - self._validators['metasrc'] = v_scatterpolargl.MetasrcValidator() - self._validators['mode'] = v_scatterpolargl.ModeValidator() - self._validators['name'] = v_scatterpolargl.NameValidator() - self._validators['opacity'] = v_scatterpolargl.OpacityValidator() - self._validators['r'] = v_scatterpolargl.RValidator() - self._validators['r0'] = v_scatterpolargl.R0Validator() - self._validators['rsrc'] = v_scatterpolargl.RsrcValidator() - self._validators['selected'] = v_scatterpolargl.SelectedValidator() - self._validators['selectedpoints' - ] = v_scatterpolargl.SelectedpointsValidator() - self._validators['showlegend'] = v_scatterpolargl.ShowlegendValidator() - self._validators['stream'] = v_scatterpolargl.StreamValidator() - self._validators['subplot'] = v_scatterpolargl.SubplotValidator() - self._validators['text'] = v_scatterpolargl.TextValidator() - self._validators['textfont'] = v_scatterpolargl.TextfontValidator() - self._validators['textposition' - ] = v_scatterpolargl.TextpositionValidator() - self._validators['textpositionsrc' - ] = v_scatterpolargl.TextpositionsrcValidator() - self._validators['textsrc'] = v_scatterpolargl.TextsrcValidator() - self._validators['theta'] = v_scatterpolargl.ThetaValidator() - self._validators['theta0'] = v_scatterpolargl.Theta0Validator() - self._validators['thetasrc'] = v_scatterpolargl.ThetasrcValidator() - self._validators['thetaunit'] = v_scatterpolargl.ThetaunitValidator() - self._validators['uid'] = v_scatterpolargl.UidValidator() - self._validators['uirevision'] = v_scatterpolargl.UirevisionValidator() - self._validators['unselected'] = v_scatterpolargl.UnselectedValidator() - self._validators['visible'] = v_scatterpolargl.VisibleValidator() + self._validators["connectgaps"] = v_scatterpolargl.ConnectgapsValidator() + self._validators["customdata"] = v_scatterpolargl.CustomdataValidator() + self._validators["customdatasrc"] = v_scatterpolargl.CustomdatasrcValidator() + self._validators["dr"] = v_scatterpolargl.DrValidator() + self._validators["dtheta"] = v_scatterpolargl.DthetaValidator() + self._validators["fill"] = v_scatterpolargl.FillValidator() + self._validators["fillcolor"] = v_scatterpolargl.FillcolorValidator() + self._validators["hoverinfo"] = v_scatterpolargl.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_scatterpolargl.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_scatterpolargl.HoverlabelValidator() + self._validators["hovertemplate"] = v_scatterpolargl.HovertemplateValidator() + self._validators[ + "hovertemplatesrc" + ] = v_scatterpolargl.HovertemplatesrcValidator() + self._validators["hovertext"] = v_scatterpolargl.HovertextValidator() + self._validators["hovertextsrc"] = v_scatterpolargl.HovertextsrcValidator() + self._validators["ids"] = v_scatterpolargl.IdsValidator() + self._validators["idssrc"] = v_scatterpolargl.IdssrcValidator() + self._validators["legendgroup"] = v_scatterpolargl.LegendgroupValidator() + self._validators["line"] = v_scatterpolargl.LineValidator() + self._validators["marker"] = v_scatterpolargl.MarkerValidator() + self._validators["meta"] = v_scatterpolargl.MetaValidator() + self._validators["metasrc"] = v_scatterpolargl.MetasrcValidator() + self._validators["mode"] = v_scatterpolargl.ModeValidator() + self._validators["name"] = v_scatterpolargl.NameValidator() + self._validators["opacity"] = v_scatterpolargl.OpacityValidator() + self._validators["r"] = v_scatterpolargl.RValidator() + self._validators["r0"] = v_scatterpolargl.R0Validator() + self._validators["rsrc"] = v_scatterpolargl.RsrcValidator() + self._validators["selected"] = v_scatterpolargl.SelectedValidator() + self._validators["selectedpoints"] = v_scatterpolargl.SelectedpointsValidator() + self._validators["showlegend"] = v_scatterpolargl.ShowlegendValidator() + self._validators["stream"] = v_scatterpolargl.StreamValidator() + self._validators["subplot"] = v_scatterpolargl.SubplotValidator() + self._validators["text"] = v_scatterpolargl.TextValidator() + self._validators["textfont"] = v_scatterpolargl.TextfontValidator() + self._validators["textposition"] = v_scatterpolargl.TextpositionValidator() + self._validators[ + "textpositionsrc" + ] = v_scatterpolargl.TextpositionsrcValidator() + self._validators["textsrc"] = v_scatterpolargl.TextsrcValidator() + self._validators["theta"] = v_scatterpolargl.ThetaValidator() + self._validators["theta0"] = v_scatterpolargl.Theta0Validator() + self._validators["thetasrc"] = v_scatterpolargl.ThetasrcValidator() + self._validators["thetaunit"] = v_scatterpolargl.ThetaunitValidator() + self._validators["uid"] = v_scatterpolargl.UidValidator() + self._validators["uirevision"] = v_scatterpolargl.UirevisionValidator() + self._validators["unselected"] = v_scatterpolargl.UnselectedValidator() + self._validators["visible"] = v_scatterpolargl.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('connectgaps', None) - self['connectgaps'] = connectgaps if connectgaps is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('dr', None) - self['dr'] = dr if dr is not None else _v - _v = arg.pop('dtheta', None) - self['dtheta'] = dtheta if dtheta is not None else _v - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('fillcolor', None) - self['fillcolor'] = fillcolor if fillcolor is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('mode', None) - self['mode'] = mode if mode is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('r', None) - self['r'] = r if r is not None else _v - _v = arg.pop('r0', None) - self['r0'] = r0 if r0 is not None else _v - _v = arg.pop('rsrc', None) - self['rsrc'] = rsrc if rsrc is not None else _v - _v = arg.pop('selected', None) - self['selected'] = selected if selected is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('subplot', None) - self['subplot'] = subplot if subplot is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v - _v = arg.pop('textposition', None) - self['textposition'] = textposition if textposition is not None else _v - _v = arg.pop('textpositionsrc', None) - self['textpositionsrc' - ] = textpositionsrc if textpositionsrc is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('theta', None) - self['theta'] = theta if theta is not None else _v - _v = arg.pop('theta0', None) - self['theta0'] = theta0 if theta0 is not None else _v - _v = arg.pop('thetasrc', None) - self['thetasrc'] = thetasrc if thetasrc is not None else _v - _v = arg.pop('thetaunit', None) - self['thetaunit'] = thetaunit if thetaunit is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('unselected', None) - self['unselected'] = unselected if unselected is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("connectgaps", None) + self["connectgaps"] = connectgaps if connectgaps is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("dr", None) + self["dr"] = dr if dr is not None else _v + _v = arg.pop("dtheta", None) + self["dtheta"] = dtheta if dtheta is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("fillcolor", None) + self["fillcolor"] = fillcolor if fillcolor is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("mode", None) + self["mode"] = mode if mode is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("r", None) + self["r"] = r if r is not None else _v + _v = arg.pop("r0", None) + self["r0"] = r0 if r0 is not None else _v + _v = arg.pop("rsrc", None) + self["rsrc"] = rsrc if rsrc is not None else _v + _v = arg.pop("selected", None) + self["selected"] = selected if selected is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("subplot", None) + self["subplot"] = subplot if subplot is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v + _v = arg.pop("textposition", None) + self["textposition"] = textposition if textposition is not None else _v + _v = arg.pop("textpositionsrc", None) + self["textpositionsrc"] = textpositionsrc if textpositionsrc is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("theta", None) + self["theta"] = theta if theta is not None else _v + _v = arg.pop("theta0", None) + self["theta0"] = theta0 if theta0 is not None else _v + _v = arg.pop("thetasrc", None) + self["thetasrc"] = thetasrc if thetasrc is not None else _v + _v = arg.pop("thetaunit", None) + self["thetaunit"] = thetaunit if thetaunit is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("unselected", None) + self["unselected"] = unselected if unselected is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'scatterpolargl' - self._validators['type'] = LiteralValidator( - plotly_name='type', - parent_name='scatterpolargl', - val='scatterpolargl' + + self._props["type"] = "scatterpolargl" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="scatterpolargl", val="scatterpolargl" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -24793,11 +24727,11 @@ def cliponaxis(self): ------- bool """ - return self['cliponaxis'] + return self["cliponaxis"] @cliponaxis.setter def cliponaxis(self, val): - self['cliponaxis'] = val + self["cliponaxis"] = val # connectgaps # ----------- @@ -24814,11 +24748,11 @@ def connectgaps(self): ------- bool """ - return self['connectgaps'] + return self["connectgaps"] @connectgaps.setter def connectgaps(self, val): - self['connectgaps'] = val + self["connectgaps"] = val # customdata # ---------- @@ -24837,11 +24771,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -24857,11 +24791,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # dr # -- @@ -24877,11 +24811,11 @@ def dr(self): ------- int|float """ - return self['dr'] + return self["dr"] @dr.setter def dr(self, val): - self['dr'] = val + self["dr"] = val # dtheta # ------ @@ -24899,11 +24833,11 @@ def dtheta(self): ------- int|float """ - return self['dtheta'] + return self["dtheta"] @dtheta.setter def dtheta(self, val): - self['dtheta'] = val + self["dtheta"] = val # fill # ---- @@ -24928,11 +24862,11 @@ def fill(self): ------- Any """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # fillcolor # --------- @@ -24989,11 +24923,11 @@ def fillcolor(self): ------- str """ - return self['fillcolor'] + return self["fillcolor"] @fillcolor.setter def fillcolor(self, val): - self['fillcolor'] = val + self["fillcolor"] = val # hoverinfo # --------- @@ -25015,11 +24949,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -25035,11 +24969,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -25094,11 +25028,11 @@ def hoverlabel(self): ------- plotly.graph_objs.scatterpolar.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hoveron # ------- @@ -25119,11 +25053,11 @@ def hoveron(self): ------- Any """ - return self['hoveron'] + return self["hoveron"] @hoveron.setter def hoveron(self, val): - self['hoveron'] = val + self["hoveron"] = val # hovertemplate # ------------- @@ -25155,11 +25089,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -25175,11 +25109,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -25201,11 +25135,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -25221,11 +25155,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -25243,11 +25177,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -25263,11 +25197,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # legendgroup # ----------- @@ -25286,11 +25220,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # line # ---- @@ -25329,11 +25263,11 @@ def line(self): ------- plotly.graph_objs.scatterpolar.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # marker # ------ @@ -25481,11 +25415,11 @@ def marker(self): ------- plotly.graph_objs.scatterpolar.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -25509,11 +25443,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -25529,11 +25463,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # mode # ---- @@ -25557,11 +25491,11 @@ def mode(self): ------- Any """ - return self['mode'] + return self["mode"] @mode.setter def mode(self, val): - self['mode'] = val + self["mode"] = val # name # ---- @@ -25579,11 +25513,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -25599,11 +25533,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # r # - @@ -25619,11 +25553,11 @@ def r(self): ------- numpy.ndarray """ - return self['r'] + return self["r"] @r.setter def r(self, val): - self['r'] = val + self["r"] = val # r0 # -- @@ -25640,11 +25574,11 @@ def r0(self): ------- Any """ - return self['r0'] + return self["r0"] @r0.setter def r0(self, val): - self['r0'] = val + self["r0"] = val # rsrc # ---- @@ -25660,11 +25594,11 @@ def rsrc(self): ------- str """ - return self['rsrc'] + return self["rsrc"] @rsrc.setter def rsrc(self, val): - self['rsrc'] = val + self["rsrc"] = val # selected # -------- @@ -25690,11 +25624,11 @@ def selected(self): ------- plotly.graph_objs.scatterpolar.Selected """ - return self['selected'] + return self["selected"] @selected.setter def selected(self, val): - self['selected'] = val + self["selected"] = val # selectedpoints # -------------- @@ -25714,11 +25648,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -25735,11 +25669,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -25768,11 +25702,11 @@ def stream(self): ------- plotly.graph_objs.scatterpolar.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # subplot # ------- @@ -25793,11 +25727,11 @@ def subplot(self): ------- str """ - return self['subplot'] + return self["subplot"] @subplot.setter def subplot(self, val): - self['subplot'] = val + self["subplot"] = val # text # ---- @@ -25820,11 +25754,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textfont # -------- @@ -25875,11 +25809,11 @@ def textfont(self): ------- plotly.graph_objs.scatterpolar.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # textposition # ------------ @@ -25900,11 +25834,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self['textposition'] + return self["textposition"] @textposition.setter def textposition(self, val): - self['textposition'] = val + self["textposition"] = val # textpositionsrc # --------------- @@ -25920,11 +25854,11 @@ def textpositionsrc(self): ------- str """ - return self['textpositionsrc'] + return self["textpositionsrc"] @textpositionsrc.setter def textpositionsrc(self, val): - self['textpositionsrc'] = val + self["textpositionsrc"] = val # textsrc # ------- @@ -25940,11 +25874,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # theta # ----- @@ -25960,11 +25894,11 @@ def theta(self): ------- numpy.ndarray """ - return self['theta'] + return self["theta"] @theta.setter def theta(self, val): - self['theta'] = val + self["theta"] = val # theta0 # ------ @@ -25981,11 +25915,11 @@ def theta0(self): ------- Any """ - return self['theta0'] + return self["theta0"] @theta0.setter def theta0(self, val): - self['theta0'] = val + self["theta0"] = val # thetasrc # -------- @@ -26001,11 +25935,11 @@ def thetasrc(self): ------- str """ - return self['thetasrc'] + return self["thetasrc"] @thetasrc.setter def thetasrc(self, val): - self['thetasrc'] = val + self["thetasrc"] = val # thetaunit # --------- @@ -26023,11 +25957,11 @@ def thetaunit(self): ------- Any """ - return self['thetaunit'] + return self["thetaunit"] @thetaunit.setter def thetaunit(self, val): - self['thetaunit'] = val + self["thetaunit"] = val # uid # --- @@ -26045,11 +25979,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -26078,11 +26012,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # unselected # ---------- @@ -26108,11 +26042,11 @@ def unselected(self): ------- plotly.graph_objs.scatterpolar.Unselected """ - return self['unselected'] + return self["unselected"] @unselected.setter def unselected(self, val): - self['unselected'] = val + self["unselected"] = val # visible # ------- @@ -26131,23 +26065,23 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -26657,7 +26591,7 @@ def __init__( ------- Scatterpolar """ - super(Scatterpolar, self).__init__('scatterpolar') + super(Scatterpolar, self).__init__("scatterpolar") # Validate arg # ------------ @@ -26677,180 +26611,172 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (scatterpolar as v_scatterpolar) + from plotly.validators import scatterpolar as v_scatterpolar # Initialize validators # --------------------- - self._validators['cliponaxis'] = v_scatterpolar.CliponaxisValidator() - self._validators['connectgaps'] = v_scatterpolar.ConnectgapsValidator() - self._validators['customdata'] = v_scatterpolar.CustomdataValidator() - self._validators['customdatasrc' - ] = v_scatterpolar.CustomdatasrcValidator() - self._validators['dr'] = v_scatterpolar.DrValidator() - self._validators['dtheta'] = v_scatterpolar.DthetaValidator() - self._validators['fill'] = v_scatterpolar.FillValidator() - self._validators['fillcolor'] = v_scatterpolar.FillcolorValidator() - self._validators['hoverinfo'] = v_scatterpolar.HoverinfoValidator() - self._validators['hoverinfosrc' - ] = v_scatterpolar.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_scatterpolar.HoverlabelValidator() - self._validators['hoveron'] = v_scatterpolar.HoveronValidator() - self._validators['hovertemplate' - ] = v_scatterpolar.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_scatterpolar.HovertemplatesrcValidator() - self._validators['hovertext'] = v_scatterpolar.HovertextValidator() - self._validators['hovertextsrc' - ] = v_scatterpolar.HovertextsrcValidator() - self._validators['ids'] = v_scatterpolar.IdsValidator() - self._validators['idssrc'] = v_scatterpolar.IdssrcValidator() - self._validators['legendgroup'] = v_scatterpolar.LegendgroupValidator() - self._validators['line'] = v_scatterpolar.LineValidator() - self._validators['marker'] = v_scatterpolar.MarkerValidator() - self._validators['meta'] = v_scatterpolar.MetaValidator() - self._validators['metasrc'] = v_scatterpolar.MetasrcValidator() - self._validators['mode'] = v_scatterpolar.ModeValidator() - self._validators['name'] = v_scatterpolar.NameValidator() - self._validators['opacity'] = v_scatterpolar.OpacityValidator() - self._validators['r'] = v_scatterpolar.RValidator() - self._validators['r0'] = v_scatterpolar.R0Validator() - self._validators['rsrc'] = v_scatterpolar.RsrcValidator() - self._validators['selected'] = v_scatterpolar.SelectedValidator() - self._validators['selectedpoints' - ] = v_scatterpolar.SelectedpointsValidator() - self._validators['showlegend'] = v_scatterpolar.ShowlegendValidator() - self._validators['stream'] = v_scatterpolar.StreamValidator() - self._validators['subplot'] = v_scatterpolar.SubplotValidator() - self._validators['text'] = v_scatterpolar.TextValidator() - self._validators['textfont'] = v_scatterpolar.TextfontValidator() - self._validators['textposition' - ] = v_scatterpolar.TextpositionValidator() - self._validators['textpositionsrc' - ] = v_scatterpolar.TextpositionsrcValidator() - self._validators['textsrc'] = v_scatterpolar.TextsrcValidator() - self._validators['theta'] = v_scatterpolar.ThetaValidator() - self._validators['theta0'] = v_scatterpolar.Theta0Validator() - self._validators['thetasrc'] = v_scatterpolar.ThetasrcValidator() - self._validators['thetaunit'] = v_scatterpolar.ThetaunitValidator() - self._validators['uid'] = v_scatterpolar.UidValidator() - self._validators['uirevision'] = v_scatterpolar.UirevisionValidator() - self._validators['unselected'] = v_scatterpolar.UnselectedValidator() - self._validators['visible'] = v_scatterpolar.VisibleValidator() + self._validators["cliponaxis"] = v_scatterpolar.CliponaxisValidator() + self._validators["connectgaps"] = v_scatterpolar.ConnectgapsValidator() + self._validators["customdata"] = v_scatterpolar.CustomdataValidator() + self._validators["customdatasrc"] = v_scatterpolar.CustomdatasrcValidator() + self._validators["dr"] = v_scatterpolar.DrValidator() + self._validators["dtheta"] = v_scatterpolar.DthetaValidator() + self._validators["fill"] = v_scatterpolar.FillValidator() + self._validators["fillcolor"] = v_scatterpolar.FillcolorValidator() + self._validators["hoverinfo"] = v_scatterpolar.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_scatterpolar.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_scatterpolar.HoverlabelValidator() + self._validators["hoveron"] = v_scatterpolar.HoveronValidator() + self._validators["hovertemplate"] = v_scatterpolar.HovertemplateValidator() + self._validators[ + "hovertemplatesrc" + ] = v_scatterpolar.HovertemplatesrcValidator() + self._validators["hovertext"] = v_scatterpolar.HovertextValidator() + self._validators["hovertextsrc"] = v_scatterpolar.HovertextsrcValidator() + self._validators["ids"] = v_scatterpolar.IdsValidator() + self._validators["idssrc"] = v_scatterpolar.IdssrcValidator() + self._validators["legendgroup"] = v_scatterpolar.LegendgroupValidator() + self._validators["line"] = v_scatterpolar.LineValidator() + self._validators["marker"] = v_scatterpolar.MarkerValidator() + self._validators["meta"] = v_scatterpolar.MetaValidator() + self._validators["metasrc"] = v_scatterpolar.MetasrcValidator() + self._validators["mode"] = v_scatterpolar.ModeValidator() + self._validators["name"] = v_scatterpolar.NameValidator() + self._validators["opacity"] = v_scatterpolar.OpacityValidator() + self._validators["r"] = v_scatterpolar.RValidator() + self._validators["r0"] = v_scatterpolar.R0Validator() + self._validators["rsrc"] = v_scatterpolar.RsrcValidator() + self._validators["selected"] = v_scatterpolar.SelectedValidator() + self._validators["selectedpoints"] = v_scatterpolar.SelectedpointsValidator() + self._validators["showlegend"] = v_scatterpolar.ShowlegendValidator() + self._validators["stream"] = v_scatterpolar.StreamValidator() + self._validators["subplot"] = v_scatterpolar.SubplotValidator() + self._validators["text"] = v_scatterpolar.TextValidator() + self._validators["textfont"] = v_scatterpolar.TextfontValidator() + self._validators["textposition"] = v_scatterpolar.TextpositionValidator() + self._validators["textpositionsrc"] = v_scatterpolar.TextpositionsrcValidator() + self._validators["textsrc"] = v_scatterpolar.TextsrcValidator() + self._validators["theta"] = v_scatterpolar.ThetaValidator() + self._validators["theta0"] = v_scatterpolar.Theta0Validator() + self._validators["thetasrc"] = v_scatterpolar.ThetasrcValidator() + self._validators["thetaunit"] = v_scatterpolar.ThetaunitValidator() + self._validators["uid"] = v_scatterpolar.UidValidator() + self._validators["uirevision"] = v_scatterpolar.UirevisionValidator() + self._validators["unselected"] = v_scatterpolar.UnselectedValidator() + self._validators["visible"] = v_scatterpolar.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('cliponaxis', None) - self['cliponaxis'] = cliponaxis if cliponaxis is not None else _v - _v = arg.pop('connectgaps', None) - self['connectgaps'] = connectgaps if connectgaps is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('dr', None) - self['dr'] = dr if dr is not None else _v - _v = arg.pop('dtheta', None) - self['dtheta'] = dtheta if dtheta is not None else _v - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('fillcolor', None) - self['fillcolor'] = fillcolor if fillcolor is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hoveron', None) - self['hoveron'] = hoveron if hoveron is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('mode', None) - self['mode'] = mode if mode is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('r', None) - self['r'] = r if r is not None else _v - _v = arg.pop('r0', None) - self['r0'] = r0 if r0 is not None else _v - _v = arg.pop('rsrc', None) - self['rsrc'] = rsrc if rsrc is not None else _v - _v = arg.pop('selected', None) - self['selected'] = selected if selected is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('subplot', None) - self['subplot'] = subplot if subplot is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v - _v = arg.pop('textposition', None) - self['textposition'] = textposition if textposition is not None else _v - _v = arg.pop('textpositionsrc', None) - self['textpositionsrc' - ] = textpositionsrc if textpositionsrc is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('theta', None) - self['theta'] = theta if theta is not None else _v - _v = arg.pop('theta0', None) - self['theta0'] = theta0 if theta0 is not None else _v - _v = arg.pop('thetasrc', None) - self['thetasrc'] = thetasrc if thetasrc is not None else _v - _v = arg.pop('thetaunit', None) - self['thetaunit'] = thetaunit if thetaunit is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('unselected', None) - self['unselected'] = unselected if unselected is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("cliponaxis", None) + self["cliponaxis"] = cliponaxis if cliponaxis is not None else _v + _v = arg.pop("connectgaps", None) + self["connectgaps"] = connectgaps if connectgaps is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("dr", None) + self["dr"] = dr if dr is not None else _v + _v = arg.pop("dtheta", None) + self["dtheta"] = dtheta if dtheta is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("fillcolor", None) + self["fillcolor"] = fillcolor if fillcolor is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hoveron", None) + self["hoveron"] = hoveron if hoveron is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("mode", None) + self["mode"] = mode if mode is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("r", None) + self["r"] = r if r is not None else _v + _v = arg.pop("r0", None) + self["r0"] = r0 if r0 is not None else _v + _v = arg.pop("rsrc", None) + self["rsrc"] = rsrc if rsrc is not None else _v + _v = arg.pop("selected", None) + self["selected"] = selected if selected is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("subplot", None) + self["subplot"] = subplot if subplot is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v + _v = arg.pop("textposition", None) + self["textposition"] = textposition if textposition is not None else _v + _v = arg.pop("textpositionsrc", None) + self["textpositionsrc"] = textpositionsrc if textpositionsrc is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("theta", None) + self["theta"] = theta if theta is not None else _v + _v = arg.pop("theta0", None) + self["theta0"] = theta0 if theta0 is not None else _v + _v = arg.pop("thetasrc", None) + self["thetasrc"] = thetasrc if thetasrc is not None else _v + _v = arg.pop("thetaunit", None) + self["thetaunit"] = thetaunit if thetaunit is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("unselected", None) + self["unselected"] = unselected if unselected is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'scatterpolar' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='scatterpolar', val='scatterpolar' + + self._props["type"] = "scatterpolar" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="scatterpolar", val="scatterpolar" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -26882,11 +26808,11 @@ def connectgaps(self): ------- bool """ - return self['connectgaps'] + return self["connectgaps"] @connectgaps.setter def connectgaps(self, val): - self['connectgaps'] = val + self["connectgaps"] = val # customdata # ---------- @@ -26905,11 +26831,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -26925,11 +26851,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # fill # ---- @@ -26948,11 +26874,11 @@ def fill(self): ------- Any """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # fillcolor # --------- @@ -27009,11 +26935,11 @@ def fillcolor(self): ------- str """ - return self['fillcolor'] + return self["fillcolor"] @fillcolor.setter def fillcolor(self, val): - self['fillcolor'] = val + self["fillcolor"] = val # hoverinfo # --------- @@ -27035,11 +26961,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -27055,11 +26981,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -27114,11 +27040,11 @@ def hoverlabel(self): ------- plotly.graph_objs.scattermapbox.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -27150,11 +27076,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -27170,11 +27096,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -27196,11 +27122,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -27216,11 +27142,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -27238,11 +27164,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -27258,11 +27184,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # lat # --- @@ -27278,11 +27204,11 @@ def lat(self): ------- numpy.ndarray """ - return self['lat'] + return self["lat"] @lat.setter def lat(self, val): - self['lat'] = val + self["lat"] = val # latsrc # ------ @@ -27298,11 +27224,11 @@ def latsrc(self): ------- str """ - return self['latsrc'] + return self["latsrc"] @latsrc.setter def latsrc(self, val): - self['latsrc'] = val + self["latsrc"] = val # legendgroup # ----------- @@ -27321,11 +27247,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # line # ---- @@ -27349,11 +27275,11 @@ def line(self): ------- plotly.graph_objs.scattermapbox.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # lon # --- @@ -27369,11 +27295,11 @@ def lon(self): ------- numpy.ndarray """ - return self['lon'] + return self["lon"] @lon.setter def lon(self, val): - self['lon'] = val + self["lon"] = val # lonsrc # ------ @@ -27389,11 +27315,11 @@ def lonsrc(self): ------- str """ - return self['lonsrc'] + return self["lonsrc"] @lonsrc.setter def lonsrc(self, val): - self['lonsrc'] = val + self["lonsrc"] = val # marker # ------ @@ -27530,11 +27456,11 @@ def marker(self): ------- plotly.graph_objs.scattermapbox.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -27558,11 +27484,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -27578,11 +27504,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # mode # ---- @@ -27604,11 +27530,11 @@ def mode(self): ------- Any """ - return self['mode'] + return self["mode"] @mode.setter def mode(self, val): - self['mode'] = val + self["mode"] = val # name # ---- @@ -27626,11 +27552,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -27646,11 +27572,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # selected # -------- @@ -27673,11 +27599,11 @@ def selected(self): ------- plotly.graph_objs.scattermapbox.Selected """ - return self['selected'] + return self["selected"] @selected.setter def selected(self, val): - self['selected'] = val + self["selected"] = val # selectedpoints # -------------- @@ -27697,11 +27623,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -27718,11 +27644,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -27751,11 +27677,11 @@ def stream(self): ------- plotly.graph_objs.scattermapbox.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # subplot # ------- @@ -27776,11 +27702,11 @@ def subplot(self): ------- str """ - return self['subplot'] + return self["subplot"] @subplot.setter def subplot(self, val): - self['subplot'] = val + self["subplot"] = val # text # ---- @@ -27803,11 +27729,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textfont # -------- @@ -27850,11 +27776,11 @@ def textfont(self): ------- plotly.graph_objs.scattermapbox.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # textposition # ------------ @@ -27874,11 +27800,11 @@ def textposition(self): ------- Any """ - return self['textposition'] + return self["textposition"] @textposition.setter def textposition(self, val): - self['textposition'] = val + self["textposition"] = val # textsrc # ------- @@ -27894,11 +27820,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -27916,11 +27842,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -27949,11 +27875,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # unselected # ---------- @@ -27976,11 +27902,11 @@ def unselected(self): ------- plotly.graph_objs.scattermapbox.Unselected """ - return self['unselected'] + return self["unselected"] @unselected.setter def unselected(self, val): - self['unselected'] = val + self["unselected"] = val # visible # ------- @@ -27999,23 +27925,23 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -28437,7 +28363,7 @@ def __init__( ------- Scattermapbox """ - super(Scattermapbox, self).__init__('scattermapbox') + super(Scattermapbox, self).__init__("scattermapbox") # Validate arg # ------------ @@ -28457,158 +28383,148 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (scattermapbox as v_scattermapbox) + from plotly.validators import scattermapbox as v_scattermapbox # Initialize validators # --------------------- - self._validators['connectgaps'] = v_scattermapbox.ConnectgapsValidator( - ) - self._validators['customdata'] = v_scattermapbox.CustomdataValidator() - self._validators['customdatasrc' - ] = v_scattermapbox.CustomdatasrcValidator() - self._validators['fill'] = v_scattermapbox.FillValidator() - self._validators['fillcolor'] = v_scattermapbox.FillcolorValidator() - self._validators['hoverinfo'] = v_scattermapbox.HoverinfoValidator() - self._validators['hoverinfosrc' - ] = v_scattermapbox.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_scattermapbox.HoverlabelValidator() - self._validators['hovertemplate' - ] = v_scattermapbox.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_scattermapbox.HovertemplatesrcValidator() - self._validators['hovertext'] = v_scattermapbox.HovertextValidator() - self._validators['hovertextsrc' - ] = v_scattermapbox.HovertextsrcValidator() - self._validators['ids'] = v_scattermapbox.IdsValidator() - self._validators['idssrc'] = v_scattermapbox.IdssrcValidator() - self._validators['lat'] = v_scattermapbox.LatValidator() - self._validators['latsrc'] = v_scattermapbox.LatsrcValidator() - self._validators['legendgroup'] = v_scattermapbox.LegendgroupValidator( - ) - self._validators['line'] = v_scattermapbox.LineValidator() - self._validators['lon'] = v_scattermapbox.LonValidator() - self._validators['lonsrc'] = v_scattermapbox.LonsrcValidator() - self._validators['marker'] = v_scattermapbox.MarkerValidator() - self._validators['meta'] = v_scattermapbox.MetaValidator() - self._validators['metasrc'] = v_scattermapbox.MetasrcValidator() - self._validators['mode'] = v_scattermapbox.ModeValidator() - self._validators['name'] = v_scattermapbox.NameValidator() - self._validators['opacity'] = v_scattermapbox.OpacityValidator() - self._validators['selected'] = v_scattermapbox.SelectedValidator() - self._validators['selectedpoints' - ] = v_scattermapbox.SelectedpointsValidator() - self._validators['showlegend'] = v_scattermapbox.ShowlegendValidator() - self._validators['stream'] = v_scattermapbox.StreamValidator() - self._validators['subplot'] = v_scattermapbox.SubplotValidator() - self._validators['text'] = v_scattermapbox.TextValidator() - self._validators['textfont'] = v_scattermapbox.TextfontValidator() - self._validators['textposition' - ] = v_scattermapbox.TextpositionValidator() - self._validators['textsrc'] = v_scattermapbox.TextsrcValidator() - self._validators['uid'] = v_scattermapbox.UidValidator() - self._validators['uirevision'] = v_scattermapbox.UirevisionValidator() - self._validators['unselected'] = v_scattermapbox.UnselectedValidator() - self._validators['visible'] = v_scattermapbox.VisibleValidator() + self._validators["connectgaps"] = v_scattermapbox.ConnectgapsValidator() + self._validators["customdata"] = v_scattermapbox.CustomdataValidator() + self._validators["customdatasrc"] = v_scattermapbox.CustomdatasrcValidator() + self._validators["fill"] = v_scattermapbox.FillValidator() + self._validators["fillcolor"] = v_scattermapbox.FillcolorValidator() + self._validators["hoverinfo"] = v_scattermapbox.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_scattermapbox.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_scattermapbox.HoverlabelValidator() + self._validators["hovertemplate"] = v_scattermapbox.HovertemplateValidator() + self._validators[ + "hovertemplatesrc" + ] = v_scattermapbox.HovertemplatesrcValidator() + self._validators["hovertext"] = v_scattermapbox.HovertextValidator() + self._validators["hovertextsrc"] = v_scattermapbox.HovertextsrcValidator() + self._validators["ids"] = v_scattermapbox.IdsValidator() + self._validators["idssrc"] = v_scattermapbox.IdssrcValidator() + self._validators["lat"] = v_scattermapbox.LatValidator() + self._validators["latsrc"] = v_scattermapbox.LatsrcValidator() + self._validators["legendgroup"] = v_scattermapbox.LegendgroupValidator() + self._validators["line"] = v_scattermapbox.LineValidator() + self._validators["lon"] = v_scattermapbox.LonValidator() + self._validators["lonsrc"] = v_scattermapbox.LonsrcValidator() + self._validators["marker"] = v_scattermapbox.MarkerValidator() + self._validators["meta"] = v_scattermapbox.MetaValidator() + self._validators["metasrc"] = v_scattermapbox.MetasrcValidator() + self._validators["mode"] = v_scattermapbox.ModeValidator() + self._validators["name"] = v_scattermapbox.NameValidator() + self._validators["opacity"] = v_scattermapbox.OpacityValidator() + self._validators["selected"] = v_scattermapbox.SelectedValidator() + self._validators["selectedpoints"] = v_scattermapbox.SelectedpointsValidator() + self._validators["showlegend"] = v_scattermapbox.ShowlegendValidator() + self._validators["stream"] = v_scattermapbox.StreamValidator() + self._validators["subplot"] = v_scattermapbox.SubplotValidator() + self._validators["text"] = v_scattermapbox.TextValidator() + self._validators["textfont"] = v_scattermapbox.TextfontValidator() + self._validators["textposition"] = v_scattermapbox.TextpositionValidator() + self._validators["textsrc"] = v_scattermapbox.TextsrcValidator() + self._validators["uid"] = v_scattermapbox.UidValidator() + self._validators["uirevision"] = v_scattermapbox.UirevisionValidator() + self._validators["unselected"] = v_scattermapbox.UnselectedValidator() + self._validators["visible"] = v_scattermapbox.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('connectgaps', None) - self['connectgaps'] = connectgaps if connectgaps is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('fillcolor', None) - self['fillcolor'] = fillcolor if fillcolor is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('lat', None) - self['lat'] = lat if lat is not None else _v - _v = arg.pop('latsrc', None) - self['latsrc'] = latsrc if latsrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('lon', None) - self['lon'] = lon if lon is not None else _v - _v = arg.pop('lonsrc', None) - self['lonsrc'] = lonsrc if lonsrc is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('mode', None) - self['mode'] = mode if mode is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('selected', None) - self['selected'] = selected if selected is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('subplot', None) - self['subplot'] = subplot if subplot is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v - _v = arg.pop('textposition', None) - self['textposition'] = textposition if textposition is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('unselected', None) - self['unselected'] = unselected if unselected is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("connectgaps", None) + self["connectgaps"] = connectgaps if connectgaps is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("fillcolor", None) + self["fillcolor"] = fillcolor if fillcolor is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("lat", None) + self["lat"] = lat if lat is not None else _v + _v = arg.pop("latsrc", None) + self["latsrc"] = latsrc if latsrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("lon", None) + self["lon"] = lon if lon is not None else _v + _v = arg.pop("lonsrc", None) + self["lonsrc"] = lonsrc if lonsrc is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("mode", None) + self["mode"] = mode if mode is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("selected", None) + self["selected"] = selected if selected is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("subplot", None) + self["subplot"] = subplot if subplot is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v + _v = arg.pop("textposition", None) + self["textposition"] = textposition if textposition is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("unselected", None) + self["unselected"] = unselected if unselected is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'scattermapbox' - self._validators['type'] = LiteralValidator( - plotly_name='type', - parent_name='scattermapbox', - val='scattermapbox' + + self._props["type"] = "scattermapbox" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="scattermapbox", val="scattermapbox" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -28640,11 +28556,11 @@ def connectgaps(self): ------- bool """ - return self['connectgaps'] + return self["connectgaps"] @connectgaps.setter def connectgaps(self, val): - self['connectgaps'] = val + self["connectgaps"] = val # customdata # ---------- @@ -28663,11 +28579,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -28683,11 +28599,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # dx # -- @@ -28703,11 +28619,11 @@ def dx(self): ------- int|float """ - return self['dx'] + return self["dx"] @dx.setter def dx(self, val): - self['dx'] = val + self["dx"] = val # dy # -- @@ -28723,11 +28639,11 @@ def dy(self): ------- int|float """ - return self['dy'] + return self["dy"] @dy.setter def dy(self, val): - self['dy'] = val + self["dy"] = val # error_x # ------- @@ -28804,11 +28720,11 @@ def error_x(self): ------- plotly.graph_objs.scattergl.ErrorX """ - return self['error_x'] + return self["error_x"] @error_x.setter def error_x(self, val): - self['error_x'] = val + self["error_x"] = val # error_y # ------- @@ -28883,11 +28799,11 @@ def error_y(self): ------- plotly.graph_objs.scattergl.ErrorY """ - return self['error_y'] + return self["error_y"] @error_y.setter def error_y(self, val): - self['error_y'] = val + self["error_y"] = val # fill # ---- @@ -28923,11 +28839,11 @@ def fill(self): ------- Any """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # fillcolor # --------- @@ -28984,11 +28900,11 @@ def fillcolor(self): ------- str """ - return self['fillcolor'] + return self["fillcolor"] @fillcolor.setter def fillcolor(self, val): - self['fillcolor'] = val + self["fillcolor"] = val # hoverinfo # --------- @@ -29010,11 +28926,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -29030,11 +28946,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -29089,11 +29005,11 @@ def hoverlabel(self): ------- plotly.graph_objs.scattergl.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -29125,11 +29041,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -29145,11 +29061,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -29171,11 +29087,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -29191,11 +29107,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -29213,11 +29129,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -29233,11 +29149,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # legendgroup # ----------- @@ -29256,11 +29172,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # line # ---- @@ -29289,11 +29205,11 @@ def line(self): ------- plotly.graph_objs.scattergl.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # marker # ------ @@ -29435,11 +29351,11 @@ def marker(self): ------- plotly.graph_objs.scattergl.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -29463,11 +29379,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -29483,11 +29399,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # mode # ---- @@ -29506,11 +29422,11 @@ def mode(self): ------- Any """ - return self['mode'] + return self["mode"] @mode.setter def mode(self, val): - self['mode'] = val + self["mode"] = val # name # ---- @@ -29528,11 +29444,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -29548,11 +29464,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # selected # -------- @@ -29578,11 +29494,11 @@ def selected(self): ------- plotly.graph_objs.scattergl.Selected """ - return self['selected'] + return self["selected"] @selected.setter def selected(self, val): - self['selected'] = val + self["selected"] = val # selectedpoints # -------------- @@ -29602,11 +29518,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -29623,11 +29539,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -29656,11 +29572,11 @@ def stream(self): ------- plotly.graph_objs.scattergl.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -29683,11 +29599,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textfont # -------- @@ -29738,11 +29654,11 @@ def textfont(self): ------- plotly.graph_objs.scattergl.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # textposition # ------------ @@ -29763,11 +29679,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self['textposition'] + return self["textposition"] @textposition.setter def textposition(self, val): - self['textposition'] = val + self["textposition"] = val # textpositionsrc # --------------- @@ -29783,11 +29699,11 @@ def textpositionsrc(self): ------- str """ - return self['textpositionsrc'] + return self["textpositionsrc"] @textpositionsrc.setter def textpositionsrc(self, val): - self['textpositionsrc'] = val + self["textpositionsrc"] = val # textsrc # ------- @@ -29803,11 +29719,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -29825,11 +29741,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -29858,11 +29774,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # unselected # ---------- @@ -29888,11 +29804,11 @@ def unselected(self): ------- plotly.graph_objs.scattergl.Unselected """ - return self['unselected'] + return self["unselected"] @unselected.setter def unselected(self, val): - self['unselected'] = val + self["unselected"] = val # visible # ------- @@ -29911,11 +29827,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -29931,11 +29847,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # x0 # -- @@ -29952,11 +29868,11 @@ def x0(self): ------- Any """ - return self['x0'] + return self["x0"] @x0.setter def x0(self, val): - self['x0'] = val + self["x0"] = val # xaxis # ----- @@ -29977,11 +29893,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # xcalendar # --------- @@ -30001,11 +29917,11 @@ def xcalendar(self): ------- Any """ - return self['xcalendar'] + return self["xcalendar"] @xcalendar.setter def xcalendar(self, val): - self['xcalendar'] = val + self["xcalendar"] = val # xsrc # ---- @@ -30021,11 +29937,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -30041,11 +29957,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # y0 # -- @@ -30062,11 +29978,11 @@ def y0(self): ------- Any """ - return self['y0'] + return self["y0"] @y0.setter def y0(self, val): - self['y0'] = val + self["y0"] = val # yaxis # ----- @@ -30087,11 +30003,11 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # ycalendar # --------- @@ -30111,11 +30027,11 @@ def ycalendar(self): ------- Any """ - return self['ycalendar'] + return self["ycalendar"] @ycalendar.setter def ycalendar(self, val): - self['ycalendar'] = val + self["ycalendar"] = val # ysrc # ---- @@ -30131,23 +30047,23 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -30666,7 +30582,7 @@ def __init__( ------- Scattergl """ - super(Scattergl, self).__init__('scattergl') + super(Scattergl, self).__init__("scattergl") # Validate arg # ------------ @@ -30686,183 +30602,176 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (scattergl as v_scattergl) + from plotly.validators import scattergl as v_scattergl # Initialize validators # --------------------- - self._validators['connectgaps'] = v_scattergl.ConnectgapsValidator() - self._validators['customdata'] = v_scattergl.CustomdataValidator() - self._validators['customdatasrc'] = v_scattergl.CustomdatasrcValidator( - ) - self._validators['dx'] = v_scattergl.DxValidator() - self._validators['dy'] = v_scattergl.DyValidator() - self._validators['error_x'] = v_scattergl.ErrorXValidator() - self._validators['error_y'] = v_scattergl.ErrorYValidator() - self._validators['fill'] = v_scattergl.FillValidator() - self._validators['fillcolor'] = v_scattergl.FillcolorValidator() - self._validators['hoverinfo'] = v_scattergl.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_scattergl.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_scattergl.HoverlabelValidator() - self._validators['hovertemplate'] = v_scattergl.HovertemplateValidator( - ) - self._validators['hovertemplatesrc' - ] = v_scattergl.HovertemplatesrcValidator() - self._validators['hovertext'] = v_scattergl.HovertextValidator() - self._validators['hovertextsrc'] = v_scattergl.HovertextsrcValidator() - self._validators['ids'] = v_scattergl.IdsValidator() - self._validators['idssrc'] = v_scattergl.IdssrcValidator() - self._validators['legendgroup'] = v_scattergl.LegendgroupValidator() - self._validators['line'] = v_scattergl.LineValidator() - self._validators['marker'] = v_scattergl.MarkerValidator() - self._validators['meta'] = v_scattergl.MetaValidator() - self._validators['metasrc'] = v_scattergl.MetasrcValidator() - self._validators['mode'] = v_scattergl.ModeValidator() - self._validators['name'] = v_scattergl.NameValidator() - self._validators['opacity'] = v_scattergl.OpacityValidator() - self._validators['selected'] = v_scattergl.SelectedValidator() - self._validators['selectedpoints' - ] = v_scattergl.SelectedpointsValidator() - self._validators['showlegend'] = v_scattergl.ShowlegendValidator() - self._validators['stream'] = v_scattergl.StreamValidator() - self._validators['text'] = v_scattergl.TextValidator() - self._validators['textfont'] = v_scattergl.TextfontValidator() - self._validators['textposition'] = v_scattergl.TextpositionValidator() - self._validators['textpositionsrc' - ] = v_scattergl.TextpositionsrcValidator() - self._validators['textsrc'] = v_scattergl.TextsrcValidator() - self._validators['uid'] = v_scattergl.UidValidator() - self._validators['uirevision'] = v_scattergl.UirevisionValidator() - self._validators['unselected'] = v_scattergl.UnselectedValidator() - self._validators['visible'] = v_scattergl.VisibleValidator() - self._validators['x'] = v_scattergl.XValidator() - self._validators['x0'] = v_scattergl.X0Validator() - self._validators['xaxis'] = v_scattergl.XAxisValidator() - self._validators['xcalendar'] = v_scattergl.XcalendarValidator() - self._validators['xsrc'] = v_scattergl.XsrcValidator() - self._validators['y'] = v_scattergl.YValidator() - self._validators['y0'] = v_scattergl.Y0Validator() - self._validators['yaxis'] = v_scattergl.YAxisValidator() - self._validators['ycalendar'] = v_scattergl.YcalendarValidator() - self._validators['ysrc'] = v_scattergl.YsrcValidator() + self._validators["connectgaps"] = v_scattergl.ConnectgapsValidator() + self._validators["customdata"] = v_scattergl.CustomdataValidator() + self._validators["customdatasrc"] = v_scattergl.CustomdatasrcValidator() + self._validators["dx"] = v_scattergl.DxValidator() + self._validators["dy"] = v_scattergl.DyValidator() + self._validators["error_x"] = v_scattergl.ErrorXValidator() + self._validators["error_y"] = v_scattergl.ErrorYValidator() + self._validators["fill"] = v_scattergl.FillValidator() + self._validators["fillcolor"] = v_scattergl.FillcolorValidator() + self._validators["hoverinfo"] = v_scattergl.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_scattergl.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_scattergl.HoverlabelValidator() + self._validators["hovertemplate"] = v_scattergl.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_scattergl.HovertemplatesrcValidator() + self._validators["hovertext"] = v_scattergl.HovertextValidator() + self._validators["hovertextsrc"] = v_scattergl.HovertextsrcValidator() + self._validators["ids"] = v_scattergl.IdsValidator() + self._validators["idssrc"] = v_scattergl.IdssrcValidator() + self._validators["legendgroup"] = v_scattergl.LegendgroupValidator() + self._validators["line"] = v_scattergl.LineValidator() + self._validators["marker"] = v_scattergl.MarkerValidator() + self._validators["meta"] = v_scattergl.MetaValidator() + self._validators["metasrc"] = v_scattergl.MetasrcValidator() + self._validators["mode"] = v_scattergl.ModeValidator() + self._validators["name"] = v_scattergl.NameValidator() + self._validators["opacity"] = v_scattergl.OpacityValidator() + self._validators["selected"] = v_scattergl.SelectedValidator() + self._validators["selectedpoints"] = v_scattergl.SelectedpointsValidator() + self._validators["showlegend"] = v_scattergl.ShowlegendValidator() + self._validators["stream"] = v_scattergl.StreamValidator() + self._validators["text"] = v_scattergl.TextValidator() + self._validators["textfont"] = v_scattergl.TextfontValidator() + self._validators["textposition"] = v_scattergl.TextpositionValidator() + self._validators["textpositionsrc"] = v_scattergl.TextpositionsrcValidator() + self._validators["textsrc"] = v_scattergl.TextsrcValidator() + self._validators["uid"] = v_scattergl.UidValidator() + self._validators["uirevision"] = v_scattergl.UirevisionValidator() + self._validators["unselected"] = v_scattergl.UnselectedValidator() + self._validators["visible"] = v_scattergl.VisibleValidator() + self._validators["x"] = v_scattergl.XValidator() + self._validators["x0"] = v_scattergl.X0Validator() + self._validators["xaxis"] = v_scattergl.XAxisValidator() + self._validators["xcalendar"] = v_scattergl.XcalendarValidator() + self._validators["xsrc"] = v_scattergl.XsrcValidator() + self._validators["y"] = v_scattergl.YValidator() + self._validators["y0"] = v_scattergl.Y0Validator() + self._validators["yaxis"] = v_scattergl.YAxisValidator() + self._validators["ycalendar"] = v_scattergl.YcalendarValidator() + self._validators["ysrc"] = v_scattergl.YsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('connectgaps', None) - self['connectgaps'] = connectgaps if connectgaps is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('dx', None) - self['dx'] = dx if dx is not None else _v - _v = arg.pop('dy', None) - self['dy'] = dy if dy is not None else _v - _v = arg.pop('error_x', None) - self['error_x'] = error_x if error_x is not None else _v - _v = arg.pop('error_y', None) - self['error_y'] = error_y if error_y is not None else _v - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('fillcolor', None) - self['fillcolor'] = fillcolor if fillcolor is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('mode', None) - self['mode'] = mode if mode is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('selected', None) - self['selected'] = selected if selected is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v - _v = arg.pop('textposition', None) - self['textposition'] = textposition if textposition is not None else _v - _v = arg.pop('textpositionsrc', None) - self['textpositionsrc' - ] = textpositionsrc if textpositionsrc is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('unselected', None) - self['unselected'] = unselected if unselected is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('x0', None) - self['x0'] = x0 if x0 is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('xcalendar', None) - self['xcalendar'] = xcalendar if xcalendar is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('y0', None) - self['y0'] = y0 if y0 is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v - _v = arg.pop('ycalendar', None) - self['ycalendar'] = ycalendar if ycalendar is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v + _v = arg.pop("connectgaps", None) + self["connectgaps"] = connectgaps if connectgaps is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("dx", None) + self["dx"] = dx if dx is not None else _v + _v = arg.pop("dy", None) + self["dy"] = dy if dy is not None else _v + _v = arg.pop("error_x", None) + self["error_x"] = error_x if error_x is not None else _v + _v = arg.pop("error_y", None) + self["error_y"] = error_y if error_y is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("fillcolor", None) + self["fillcolor"] = fillcolor if fillcolor is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("mode", None) + self["mode"] = mode if mode is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("selected", None) + self["selected"] = selected if selected is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v + _v = arg.pop("textposition", None) + self["textposition"] = textposition if textposition is not None else _v + _v = arg.pop("textpositionsrc", None) + self["textpositionsrc"] = textpositionsrc if textpositionsrc is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("unselected", None) + self["unselected"] = unselected if unselected is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("x0", None) + self["x0"] = x0 if x0 is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("xcalendar", None) + self["xcalendar"] = xcalendar if xcalendar is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("y0", None) + self["y0"] = y0 if y0 is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v + _v = arg.pop("ycalendar", None) + self["ycalendar"] = ycalendar if ycalendar is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'scattergl' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='scattergl', val='scattergl' + + self._props["type"] = "scattergl" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="scattergl", val="scattergl" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -30894,11 +30803,11 @@ def connectgaps(self): ------- bool """ - return self['connectgaps'] + return self["connectgaps"] @connectgaps.setter def connectgaps(self, val): - self['connectgaps'] = val + self["connectgaps"] = val # customdata # ---------- @@ -30917,11 +30826,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -30937,11 +30846,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # fill # ---- @@ -30960,11 +30869,11 @@ def fill(self): ------- Any """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # fillcolor # --------- @@ -31021,11 +30930,11 @@ def fillcolor(self): ------- str """ - return self['fillcolor'] + return self["fillcolor"] @fillcolor.setter def fillcolor(self, val): - self['fillcolor'] = val + self["fillcolor"] = val # geo # --- @@ -31046,11 +30955,11 @@ def geo(self): ------- str """ - return self['geo'] + return self["geo"] @geo.setter def geo(self, val): - self['geo'] = val + self["geo"] = val # hoverinfo # --------- @@ -31072,11 +30981,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -31092,11 +31001,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -31151,11 +31060,11 @@ def hoverlabel(self): ------- plotly.graph_objs.scattergeo.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -31187,11 +31096,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -31207,11 +31116,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -31234,11 +31143,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -31254,11 +31163,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -31276,11 +31185,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -31296,11 +31205,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # lat # --- @@ -31316,11 +31225,11 @@ def lat(self): ------- numpy.ndarray """ - return self['lat'] + return self["lat"] @lat.setter def lat(self, val): - self['lat'] = val + self["lat"] = val # latsrc # ------ @@ -31336,11 +31245,11 @@ def latsrc(self): ------- str """ - return self['latsrc'] + return self["latsrc"] @latsrc.setter def latsrc(self, val): - self['latsrc'] = val + self["latsrc"] = val # legendgroup # ----------- @@ -31359,11 +31268,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # line # ---- @@ -31392,11 +31301,11 @@ def line(self): ------- plotly.graph_objs.scattergeo.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # locationmode # ------------ @@ -31414,11 +31323,11 @@ def locationmode(self): ------- Any """ - return self['locationmode'] + return self["locationmode"] @locationmode.setter def locationmode(self, val): - self['locationmode'] = val + self["locationmode"] = val # locations # --------- @@ -31436,11 +31345,11 @@ def locations(self): ------- numpy.ndarray """ - return self['locations'] + return self["locations"] @locations.setter def locations(self, val): - self['locations'] = val + self["locations"] = val # locationssrc # ------------ @@ -31456,11 +31365,11 @@ def locationssrc(self): ------- str """ - return self['locationssrc'] + return self["locationssrc"] @locationssrc.setter def locationssrc(self, val): - self['locationssrc'] = val + self["locationssrc"] = val # lon # --- @@ -31476,11 +31385,11 @@ def lon(self): ------- numpy.ndarray """ - return self['lon'] + return self["lon"] @lon.setter def lon(self, val): - self['lon'] = val + self["lon"] = val # lonsrc # ------ @@ -31496,11 +31405,11 @@ def lonsrc(self): ------- str """ - return self['lonsrc'] + return self["lonsrc"] @lonsrc.setter def lonsrc(self, val): - self['lonsrc'] = val + self["lonsrc"] = val # marker # ------ @@ -31645,11 +31554,11 @@ def marker(self): ------- plotly.graph_objs.scattergeo.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -31673,11 +31582,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -31693,11 +31602,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # mode # ---- @@ -31721,11 +31630,11 @@ def mode(self): ------- Any """ - return self['mode'] + return self["mode"] @mode.setter def mode(self, val): - self['mode'] = val + self["mode"] = val # name # ---- @@ -31743,11 +31652,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -31763,11 +31672,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # selected # -------- @@ -31793,11 +31702,11 @@ def selected(self): ------- plotly.graph_objs.scattergeo.Selected """ - return self['selected'] + return self["selected"] @selected.setter def selected(self, val): - self['selected'] = val + self["selected"] = val # selectedpoints # -------------- @@ -31817,11 +31726,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -31838,11 +31747,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -31871,11 +31780,11 @@ def stream(self): ------- plotly.graph_objs.scattergeo.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -31899,11 +31808,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textfont # -------- @@ -31954,11 +31863,11 @@ def textfont(self): ------- plotly.graph_objs.scattergeo.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # textposition # ------------ @@ -31979,11 +31888,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self['textposition'] + return self["textposition"] @textposition.setter def textposition(self, val): - self['textposition'] = val + self["textposition"] = val # textpositionsrc # --------------- @@ -31999,11 +31908,11 @@ def textpositionsrc(self): ------- str """ - return self['textpositionsrc'] + return self["textpositionsrc"] @textpositionsrc.setter def textpositionsrc(self, val): - self['textpositionsrc'] = val + self["textpositionsrc"] = val # textsrc # ------- @@ -32019,11 +31928,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -32041,11 +31950,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -32074,11 +31983,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # unselected # ---------- @@ -32104,11 +32013,11 @@ def unselected(self): ------- plotly.graph_objs.scattergeo.Unselected """ - return self['unselected'] + return self["unselected"] @unselected.setter def unselected(self, val): - self['unselected'] = val + self["unselected"] = val # visible # ------- @@ -32127,23 +32036,23 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -32598,7 +32507,7 @@ def __init__( ------- Scattergeo """ - super(Scattergeo, self).__init__('scattergeo') + super(Scattergeo, self).__init__("scattergeo") # Validate arg # ------------ @@ -32618,165 +32527,158 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (scattergeo as v_scattergeo) + from plotly.validators import scattergeo as v_scattergeo # Initialize validators # --------------------- - self._validators['connectgaps'] = v_scattergeo.ConnectgapsValidator() - self._validators['customdata'] = v_scattergeo.CustomdataValidator() - self._validators['customdatasrc' - ] = v_scattergeo.CustomdatasrcValidator() - self._validators['fill'] = v_scattergeo.FillValidator() - self._validators['fillcolor'] = v_scattergeo.FillcolorValidator() - self._validators['geo'] = v_scattergeo.GeoValidator() - self._validators['hoverinfo'] = v_scattergeo.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_scattergeo.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_scattergeo.HoverlabelValidator() - self._validators['hovertemplate' - ] = v_scattergeo.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_scattergeo.HovertemplatesrcValidator() - self._validators['hovertext'] = v_scattergeo.HovertextValidator() - self._validators['hovertextsrc'] = v_scattergeo.HovertextsrcValidator() - self._validators['ids'] = v_scattergeo.IdsValidator() - self._validators['idssrc'] = v_scattergeo.IdssrcValidator() - self._validators['lat'] = v_scattergeo.LatValidator() - self._validators['latsrc'] = v_scattergeo.LatsrcValidator() - self._validators['legendgroup'] = v_scattergeo.LegendgroupValidator() - self._validators['line'] = v_scattergeo.LineValidator() - self._validators['locationmode'] = v_scattergeo.LocationmodeValidator() - self._validators['locations'] = v_scattergeo.LocationsValidator() - self._validators['locationssrc'] = v_scattergeo.LocationssrcValidator() - self._validators['lon'] = v_scattergeo.LonValidator() - self._validators['lonsrc'] = v_scattergeo.LonsrcValidator() - self._validators['marker'] = v_scattergeo.MarkerValidator() - self._validators['meta'] = v_scattergeo.MetaValidator() - self._validators['metasrc'] = v_scattergeo.MetasrcValidator() - self._validators['mode'] = v_scattergeo.ModeValidator() - self._validators['name'] = v_scattergeo.NameValidator() - self._validators['opacity'] = v_scattergeo.OpacityValidator() - self._validators['selected'] = v_scattergeo.SelectedValidator() - self._validators['selectedpoints' - ] = v_scattergeo.SelectedpointsValidator() - self._validators['showlegend'] = v_scattergeo.ShowlegendValidator() - self._validators['stream'] = v_scattergeo.StreamValidator() - self._validators['text'] = v_scattergeo.TextValidator() - self._validators['textfont'] = v_scattergeo.TextfontValidator() - self._validators['textposition'] = v_scattergeo.TextpositionValidator() - self._validators['textpositionsrc' - ] = v_scattergeo.TextpositionsrcValidator() - self._validators['textsrc'] = v_scattergeo.TextsrcValidator() - self._validators['uid'] = v_scattergeo.UidValidator() - self._validators['uirevision'] = v_scattergeo.UirevisionValidator() - self._validators['unselected'] = v_scattergeo.UnselectedValidator() - self._validators['visible'] = v_scattergeo.VisibleValidator() + self._validators["connectgaps"] = v_scattergeo.ConnectgapsValidator() + self._validators["customdata"] = v_scattergeo.CustomdataValidator() + self._validators["customdatasrc"] = v_scattergeo.CustomdatasrcValidator() + self._validators["fill"] = v_scattergeo.FillValidator() + self._validators["fillcolor"] = v_scattergeo.FillcolorValidator() + self._validators["geo"] = v_scattergeo.GeoValidator() + self._validators["hoverinfo"] = v_scattergeo.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_scattergeo.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_scattergeo.HoverlabelValidator() + self._validators["hovertemplate"] = v_scattergeo.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_scattergeo.HovertemplatesrcValidator() + self._validators["hovertext"] = v_scattergeo.HovertextValidator() + self._validators["hovertextsrc"] = v_scattergeo.HovertextsrcValidator() + self._validators["ids"] = v_scattergeo.IdsValidator() + self._validators["idssrc"] = v_scattergeo.IdssrcValidator() + self._validators["lat"] = v_scattergeo.LatValidator() + self._validators["latsrc"] = v_scattergeo.LatsrcValidator() + self._validators["legendgroup"] = v_scattergeo.LegendgroupValidator() + self._validators["line"] = v_scattergeo.LineValidator() + self._validators["locationmode"] = v_scattergeo.LocationmodeValidator() + self._validators["locations"] = v_scattergeo.LocationsValidator() + self._validators["locationssrc"] = v_scattergeo.LocationssrcValidator() + self._validators["lon"] = v_scattergeo.LonValidator() + self._validators["lonsrc"] = v_scattergeo.LonsrcValidator() + self._validators["marker"] = v_scattergeo.MarkerValidator() + self._validators["meta"] = v_scattergeo.MetaValidator() + self._validators["metasrc"] = v_scattergeo.MetasrcValidator() + self._validators["mode"] = v_scattergeo.ModeValidator() + self._validators["name"] = v_scattergeo.NameValidator() + self._validators["opacity"] = v_scattergeo.OpacityValidator() + self._validators["selected"] = v_scattergeo.SelectedValidator() + self._validators["selectedpoints"] = v_scattergeo.SelectedpointsValidator() + self._validators["showlegend"] = v_scattergeo.ShowlegendValidator() + self._validators["stream"] = v_scattergeo.StreamValidator() + self._validators["text"] = v_scattergeo.TextValidator() + self._validators["textfont"] = v_scattergeo.TextfontValidator() + self._validators["textposition"] = v_scattergeo.TextpositionValidator() + self._validators["textpositionsrc"] = v_scattergeo.TextpositionsrcValidator() + self._validators["textsrc"] = v_scattergeo.TextsrcValidator() + self._validators["uid"] = v_scattergeo.UidValidator() + self._validators["uirevision"] = v_scattergeo.UirevisionValidator() + self._validators["unselected"] = v_scattergeo.UnselectedValidator() + self._validators["visible"] = v_scattergeo.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('connectgaps', None) - self['connectgaps'] = connectgaps if connectgaps is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('fillcolor', None) - self['fillcolor'] = fillcolor if fillcolor is not None else _v - _v = arg.pop('geo', None) - self['geo'] = geo if geo is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('lat', None) - self['lat'] = lat if lat is not None else _v - _v = arg.pop('latsrc', None) - self['latsrc'] = latsrc if latsrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('locationmode', None) - self['locationmode'] = locationmode if locationmode is not None else _v - _v = arg.pop('locations', None) - self['locations'] = locations if locations is not None else _v - _v = arg.pop('locationssrc', None) - self['locationssrc'] = locationssrc if locationssrc is not None else _v - _v = arg.pop('lon', None) - self['lon'] = lon if lon is not None else _v - _v = arg.pop('lonsrc', None) - self['lonsrc'] = lonsrc if lonsrc is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('mode', None) - self['mode'] = mode if mode is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('selected', None) - self['selected'] = selected if selected is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v - _v = arg.pop('textposition', None) - self['textposition'] = textposition if textposition is not None else _v - _v = arg.pop('textpositionsrc', None) - self['textpositionsrc' - ] = textpositionsrc if textpositionsrc is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('unselected', None) - self['unselected'] = unselected if unselected is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("connectgaps", None) + self["connectgaps"] = connectgaps if connectgaps is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("fillcolor", None) + self["fillcolor"] = fillcolor if fillcolor is not None else _v + _v = arg.pop("geo", None) + self["geo"] = geo if geo is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("lat", None) + self["lat"] = lat if lat is not None else _v + _v = arg.pop("latsrc", None) + self["latsrc"] = latsrc if latsrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("locationmode", None) + self["locationmode"] = locationmode if locationmode is not None else _v + _v = arg.pop("locations", None) + self["locations"] = locations if locations is not None else _v + _v = arg.pop("locationssrc", None) + self["locationssrc"] = locationssrc if locationssrc is not None else _v + _v = arg.pop("lon", None) + self["lon"] = lon if lon is not None else _v + _v = arg.pop("lonsrc", None) + self["lonsrc"] = lonsrc if lonsrc is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("mode", None) + self["mode"] = mode if mode is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("selected", None) + self["selected"] = selected if selected is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v + _v = arg.pop("textposition", None) + self["textposition"] = textposition if textposition is not None else _v + _v = arg.pop("textpositionsrc", None) + self["textpositionsrc"] = textpositionsrc if textpositionsrc is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("unselected", None) + self["unselected"] = unselected if unselected is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'scattergeo' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='scattergeo', val='scattergeo' + + self._props["type"] = "scattergeo" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="scattergeo", val="scattergeo" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -32807,11 +32709,11 @@ def a(self): ------- numpy.ndarray """ - return self['a'] + return self["a"] @a.setter def a(self, val): - self['a'] = val + self["a"] = val # asrc # ---- @@ -32827,11 +32729,11 @@ def asrc(self): ------- str """ - return self['asrc'] + return self["asrc"] @asrc.setter def asrc(self, val): - self['asrc'] = val + self["asrc"] = val # b # - @@ -32847,11 +32749,11 @@ def b(self): ------- numpy.ndarray """ - return self['b'] + return self["b"] @b.setter def b(self, val): - self['b'] = val + self["b"] = val # bsrc # ---- @@ -32867,11 +32769,11 @@ def bsrc(self): ------- str """ - return self['bsrc'] + return self["bsrc"] @bsrc.setter def bsrc(self, val): - self['bsrc'] = val + self["bsrc"] = val # carpet # ------ @@ -32890,11 +32792,11 @@ def carpet(self): ------- str """ - return self['carpet'] + return self["carpet"] @carpet.setter def carpet(self, val): - self['carpet'] = val + self["carpet"] = val # connectgaps # ----------- @@ -32911,11 +32813,11 @@ def connectgaps(self): ------- bool """ - return self['connectgaps'] + return self["connectgaps"] @connectgaps.setter def connectgaps(self, val): - self['connectgaps'] = val + self["connectgaps"] = val # customdata # ---------- @@ -32934,11 +32836,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -32954,11 +32856,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # fill # ---- @@ -32983,11 +32885,11 @@ def fill(self): ------- Any """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # fillcolor # --------- @@ -33044,11 +32946,11 @@ def fillcolor(self): ------- str """ - return self['fillcolor'] + return self["fillcolor"] @fillcolor.setter def fillcolor(self, val): - self['fillcolor'] = val + self["fillcolor"] = val # hoverinfo # --------- @@ -33070,11 +32972,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -33090,11 +32992,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -33149,11 +33051,11 @@ def hoverlabel(self): ------- plotly.graph_objs.scattercarpet.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hoveron # ------- @@ -33174,11 +33076,11 @@ def hoveron(self): ------- Any """ - return self['hoveron'] + return self["hoveron"] @hoveron.setter def hoveron(self, val): - self['hoveron'] = val + self["hoveron"] = val # hovertemplate # ------------- @@ -33210,11 +33112,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -33230,11 +33132,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -33256,11 +33158,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -33276,11 +33178,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -33298,11 +33200,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -33318,11 +33220,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # legendgroup # ----------- @@ -33341,11 +33243,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # line # ---- @@ -33384,11 +33286,11 @@ def line(self): ------- plotly.graph_objs.scattercarpet.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # marker # ------ @@ -33536,11 +33438,11 @@ def marker(self): ------- plotly.graph_objs.scattercarpet.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -33564,11 +33466,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -33584,11 +33486,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # mode # ---- @@ -33612,11 +33514,11 @@ def mode(self): ------- Any """ - return self['mode'] + return self["mode"] @mode.setter def mode(self, val): - self['mode'] = val + self["mode"] = val # name # ---- @@ -33634,11 +33536,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -33654,11 +33556,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # selected # -------- @@ -33684,11 +33586,11 @@ def selected(self): ------- plotly.graph_objs.scattercarpet.Selected """ - return self['selected'] + return self["selected"] @selected.setter def selected(self, val): - self['selected'] = val + self["selected"] = val # selectedpoints # -------------- @@ -33708,11 +33610,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -33729,11 +33631,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -33762,11 +33664,11 @@ def stream(self): ------- plotly.graph_objs.scattercarpet.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -33789,11 +33691,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textfont # -------- @@ -33844,11 +33746,11 @@ def textfont(self): ------- plotly.graph_objs.scattercarpet.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # textposition # ------------ @@ -33869,11 +33771,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self['textposition'] + return self["textposition"] @textposition.setter def textposition(self, val): - self['textposition'] = val + self["textposition"] = val # textpositionsrc # --------------- @@ -33889,11 +33791,11 @@ def textpositionsrc(self): ------- str """ - return self['textpositionsrc'] + return self["textpositionsrc"] @textpositionsrc.setter def textpositionsrc(self, val): - self['textpositionsrc'] = val + self["textpositionsrc"] = val # textsrc # ------- @@ -33909,11 +33811,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -33931,11 +33833,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -33964,11 +33866,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # unselected # ---------- @@ -33995,11 +33897,11 @@ def unselected(self): ------- plotly.graph_objs.scattercarpet.Unselected """ - return self['unselected'] + return self["unselected"] @unselected.setter def unselected(self, val): - self['unselected'] = val + self["unselected"] = val # visible # ------- @@ -34018,11 +33920,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # xaxis # ----- @@ -34043,11 +33945,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # yaxis # ----- @@ -34068,23 +33970,23 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -34555,7 +34457,7 @@ def __init__( ------- Scattercarpet """ - super(Scattercarpet, self).__init__('scattercarpet') + super(Scattercarpet, self).__init__("scattercarpet") # Validate arg # ------------ @@ -34575,172 +34477,160 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (scattercarpet as v_scattercarpet) + from plotly.validators import scattercarpet as v_scattercarpet # Initialize validators # --------------------- - self._validators['a'] = v_scattercarpet.AValidator() - self._validators['asrc'] = v_scattercarpet.AsrcValidator() - self._validators['b'] = v_scattercarpet.BValidator() - self._validators['bsrc'] = v_scattercarpet.BsrcValidator() - self._validators['carpet'] = v_scattercarpet.CarpetValidator() - self._validators['connectgaps'] = v_scattercarpet.ConnectgapsValidator( - ) - self._validators['customdata'] = v_scattercarpet.CustomdataValidator() - self._validators['customdatasrc' - ] = v_scattercarpet.CustomdatasrcValidator() - self._validators['fill'] = v_scattercarpet.FillValidator() - self._validators['fillcolor'] = v_scattercarpet.FillcolorValidator() - self._validators['hoverinfo'] = v_scattercarpet.HoverinfoValidator() - self._validators['hoverinfosrc' - ] = v_scattercarpet.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_scattercarpet.HoverlabelValidator() - self._validators['hoveron'] = v_scattercarpet.HoveronValidator() - self._validators['hovertemplate' - ] = v_scattercarpet.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_scattercarpet.HovertemplatesrcValidator() - self._validators['hovertext'] = v_scattercarpet.HovertextValidator() - self._validators['hovertextsrc' - ] = v_scattercarpet.HovertextsrcValidator() - self._validators['ids'] = v_scattercarpet.IdsValidator() - self._validators['idssrc'] = v_scattercarpet.IdssrcValidator() - self._validators['legendgroup'] = v_scattercarpet.LegendgroupValidator( - ) - self._validators['line'] = v_scattercarpet.LineValidator() - self._validators['marker'] = v_scattercarpet.MarkerValidator() - self._validators['meta'] = v_scattercarpet.MetaValidator() - self._validators['metasrc'] = v_scattercarpet.MetasrcValidator() - self._validators['mode'] = v_scattercarpet.ModeValidator() - self._validators['name'] = v_scattercarpet.NameValidator() - self._validators['opacity'] = v_scattercarpet.OpacityValidator() - self._validators['selected'] = v_scattercarpet.SelectedValidator() - self._validators['selectedpoints' - ] = v_scattercarpet.SelectedpointsValidator() - self._validators['showlegend'] = v_scattercarpet.ShowlegendValidator() - self._validators['stream'] = v_scattercarpet.StreamValidator() - self._validators['text'] = v_scattercarpet.TextValidator() - self._validators['textfont'] = v_scattercarpet.TextfontValidator() - self._validators['textposition' - ] = v_scattercarpet.TextpositionValidator() - self._validators['textpositionsrc' - ] = v_scattercarpet.TextpositionsrcValidator() - self._validators['textsrc'] = v_scattercarpet.TextsrcValidator() - self._validators['uid'] = v_scattercarpet.UidValidator() - self._validators['uirevision'] = v_scattercarpet.UirevisionValidator() - self._validators['unselected'] = v_scattercarpet.UnselectedValidator() - self._validators['visible'] = v_scattercarpet.VisibleValidator() - self._validators['xaxis'] = v_scattercarpet.XAxisValidator() - self._validators['yaxis'] = v_scattercarpet.YAxisValidator() + self._validators["a"] = v_scattercarpet.AValidator() + self._validators["asrc"] = v_scattercarpet.AsrcValidator() + self._validators["b"] = v_scattercarpet.BValidator() + self._validators["bsrc"] = v_scattercarpet.BsrcValidator() + self._validators["carpet"] = v_scattercarpet.CarpetValidator() + self._validators["connectgaps"] = v_scattercarpet.ConnectgapsValidator() + self._validators["customdata"] = v_scattercarpet.CustomdataValidator() + self._validators["customdatasrc"] = v_scattercarpet.CustomdatasrcValidator() + self._validators["fill"] = v_scattercarpet.FillValidator() + self._validators["fillcolor"] = v_scattercarpet.FillcolorValidator() + self._validators["hoverinfo"] = v_scattercarpet.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_scattercarpet.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_scattercarpet.HoverlabelValidator() + self._validators["hoveron"] = v_scattercarpet.HoveronValidator() + self._validators["hovertemplate"] = v_scattercarpet.HovertemplateValidator() + self._validators[ + "hovertemplatesrc" + ] = v_scattercarpet.HovertemplatesrcValidator() + self._validators["hovertext"] = v_scattercarpet.HovertextValidator() + self._validators["hovertextsrc"] = v_scattercarpet.HovertextsrcValidator() + self._validators["ids"] = v_scattercarpet.IdsValidator() + self._validators["idssrc"] = v_scattercarpet.IdssrcValidator() + self._validators["legendgroup"] = v_scattercarpet.LegendgroupValidator() + self._validators["line"] = v_scattercarpet.LineValidator() + self._validators["marker"] = v_scattercarpet.MarkerValidator() + self._validators["meta"] = v_scattercarpet.MetaValidator() + self._validators["metasrc"] = v_scattercarpet.MetasrcValidator() + self._validators["mode"] = v_scattercarpet.ModeValidator() + self._validators["name"] = v_scattercarpet.NameValidator() + self._validators["opacity"] = v_scattercarpet.OpacityValidator() + self._validators["selected"] = v_scattercarpet.SelectedValidator() + self._validators["selectedpoints"] = v_scattercarpet.SelectedpointsValidator() + self._validators["showlegend"] = v_scattercarpet.ShowlegendValidator() + self._validators["stream"] = v_scattercarpet.StreamValidator() + self._validators["text"] = v_scattercarpet.TextValidator() + self._validators["textfont"] = v_scattercarpet.TextfontValidator() + self._validators["textposition"] = v_scattercarpet.TextpositionValidator() + self._validators["textpositionsrc"] = v_scattercarpet.TextpositionsrcValidator() + self._validators["textsrc"] = v_scattercarpet.TextsrcValidator() + self._validators["uid"] = v_scattercarpet.UidValidator() + self._validators["uirevision"] = v_scattercarpet.UirevisionValidator() + self._validators["unselected"] = v_scattercarpet.UnselectedValidator() + self._validators["visible"] = v_scattercarpet.VisibleValidator() + self._validators["xaxis"] = v_scattercarpet.XAxisValidator() + self._validators["yaxis"] = v_scattercarpet.YAxisValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('a', None) - self['a'] = a if a is not None else _v - _v = arg.pop('asrc', None) - self['asrc'] = asrc if asrc is not None else _v - _v = arg.pop('b', None) - self['b'] = b if b is not None else _v - _v = arg.pop('bsrc', None) - self['bsrc'] = bsrc if bsrc is not None else _v - _v = arg.pop('carpet', None) - self['carpet'] = carpet if carpet is not None else _v - _v = arg.pop('connectgaps', None) - self['connectgaps'] = connectgaps if connectgaps is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('fillcolor', None) - self['fillcolor'] = fillcolor if fillcolor is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hoveron', None) - self['hoveron'] = hoveron if hoveron is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('mode', None) - self['mode'] = mode if mode is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('selected', None) - self['selected'] = selected if selected is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v - _v = arg.pop('textposition', None) - self['textposition'] = textposition if textposition is not None else _v - _v = arg.pop('textpositionsrc', None) - self['textpositionsrc' - ] = textpositionsrc if textpositionsrc is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('unselected', None) - self['unselected'] = unselected if unselected is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v + _v = arg.pop("a", None) + self["a"] = a if a is not None else _v + _v = arg.pop("asrc", None) + self["asrc"] = asrc if asrc is not None else _v + _v = arg.pop("b", None) + self["b"] = b if b is not None else _v + _v = arg.pop("bsrc", None) + self["bsrc"] = bsrc if bsrc is not None else _v + _v = arg.pop("carpet", None) + self["carpet"] = carpet if carpet is not None else _v + _v = arg.pop("connectgaps", None) + self["connectgaps"] = connectgaps if connectgaps is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("fillcolor", None) + self["fillcolor"] = fillcolor if fillcolor is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hoveron", None) + self["hoveron"] = hoveron if hoveron is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("mode", None) + self["mode"] = mode if mode is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("selected", None) + self["selected"] = selected if selected is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v + _v = arg.pop("textposition", None) + self["textposition"] = textposition if textposition is not None else _v + _v = arg.pop("textpositionsrc", None) + self["textpositionsrc"] = textpositionsrc if textpositionsrc is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("unselected", None) + self["unselected"] = unselected if unselected is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'scattercarpet' - self._validators['type'] = LiteralValidator( - plotly_name='type', - parent_name='scattercarpet', - val='scattercarpet' + + self._props["type"] = "scattercarpet" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="scattercarpet", val="scattercarpet" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -34772,11 +34662,11 @@ def connectgaps(self): ------- bool """ - return self['connectgaps'] + return self["connectgaps"] @connectgaps.setter def connectgaps(self, val): - self['connectgaps'] = val + self["connectgaps"] = val # customdata # ---------- @@ -34795,11 +34685,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -34815,11 +34705,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # error_x # ------- @@ -34896,11 +34786,11 @@ def error_x(self): ------- plotly.graph_objs.scatter3d.ErrorX """ - return self['error_x'] + return self["error_x"] @error_x.setter def error_x(self, val): - self['error_x'] = val + self["error_x"] = val # error_y # ------- @@ -34977,11 +34867,11 @@ def error_y(self): ------- plotly.graph_objs.scatter3d.ErrorY """ - return self['error_y'] + return self["error_y"] @error_y.setter def error_y(self, val): - self['error_y'] = val + self["error_y"] = val # error_z # ------- @@ -35056,11 +34946,11 @@ def error_z(self): ------- plotly.graph_objs.scatter3d.ErrorZ """ - return self['error_z'] + return self["error_z"] @error_z.setter def error_z(self, val): - self['error_z'] = val + self["error_z"] = val # hoverinfo # --------- @@ -35082,11 +34972,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -35102,11 +34992,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -35161,11 +35051,11 @@ def hoverlabel(self): ------- plotly.graph_objs.scatter3d.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -35197,11 +35087,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -35217,11 +35107,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -35243,11 +35133,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -35263,11 +35153,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -35285,11 +35175,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -35305,11 +35195,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # legendgroup # ----------- @@ -35328,11 +35218,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # line # ---- @@ -35441,11 +35331,11 @@ def line(self): ------- plotly.graph_objs.scatter3d.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # marker # ------ @@ -35584,11 +35474,11 @@ def marker(self): ------- plotly.graph_objs.scatter3d.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -35612,11 +35502,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -35632,11 +35522,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # mode # ---- @@ -35660,11 +35550,11 @@ def mode(self): ------- Any """ - return self['mode'] + return self["mode"] @mode.setter def mode(self, val): - self['mode'] = val + self["mode"] = val # name # ---- @@ -35682,11 +35572,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -35702,11 +35592,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # projection # ---------- @@ -35735,11 +35625,11 @@ def projection(self): ------- plotly.graph_objs.scatter3d.Projection """ - return self['projection'] + return self["projection"] @projection.setter def projection(self, val): - self['projection'] = val + self["projection"] = val # scene # ----- @@ -35760,11 +35650,11 @@ def scene(self): ------- str """ - return self['scene'] + return self["scene"] @scene.setter def scene(self, val): - self['scene'] = val + self["scene"] = val # showlegend # ---------- @@ -35781,11 +35671,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -35814,11 +35704,11 @@ def stream(self): ------- plotly.graph_objs.scatter3d.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # surfaceaxis # ----------- @@ -35837,11 +35727,11 @@ def surfaceaxis(self): ------- Any """ - return self['surfaceaxis'] + return self["surfaceaxis"] @surfaceaxis.setter def surfaceaxis(self, val): - self['surfaceaxis'] = val + self["surfaceaxis"] = val # surfacecolor # ------------ @@ -35896,11 +35786,11 @@ def surfacecolor(self): ------- str """ - return self['surfacecolor'] + return self["surfacecolor"] @surfacecolor.setter def surfacecolor(self, val): - self['surfacecolor'] = val + self["surfacecolor"] = val # text # ---- @@ -35923,11 +35813,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textfont # -------- @@ -35973,11 +35863,11 @@ def textfont(self): ------- plotly.graph_objs.scatter3d.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # textposition # ------------ @@ -35998,11 +35888,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self['textposition'] + return self["textposition"] @textposition.setter def textposition(self, val): - self['textposition'] = val + self["textposition"] = val # textpositionsrc # --------------- @@ -36018,11 +35908,11 @@ def textpositionsrc(self): ------- str """ - return self['textpositionsrc'] + return self["textpositionsrc"] @textpositionsrc.setter def textpositionsrc(self, val): - self['textpositionsrc'] = val + self["textpositionsrc"] = val # textsrc # ------- @@ -36038,11 +35928,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -36060,11 +35950,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -36093,11 +35983,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -36116,11 +36006,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -36136,11 +36026,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xcalendar # --------- @@ -36160,11 +36050,11 @@ def xcalendar(self): ------- Any """ - return self['xcalendar'] + return self["xcalendar"] @xcalendar.setter def xcalendar(self, val): - self['xcalendar'] = val + self["xcalendar"] = val # xsrc # ---- @@ -36180,11 +36070,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -36200,11 +36090,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # ycalendar # --------- @@ -36224,11 +36114,11 @@ def ycalendar(self): ------- Any """ - return self['ycalendar'] + return self["ycalendar"] @ycalendar.setter def ycalendar(self, val): - self['ycalendar'] = val + self["ycalendar"] = val # ysrc # ---- @@ -36244,11 +36134,11 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # z # - @@ -36264,11 +36154,11 @@ def z(self): ------- numpy.ndarray """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # zcalendar # --------- @@ -36288,11 +36178,11 @@ def zcalendar(self): ------- Any """ - return self['zcalendar'] + return self["zcalendar"] @zcalendar.setter def zcalendar(self, val): - self['zcalendar'] = val + self["zcalendar"] = val # zsrc # ---- @@ -36308,23 +36198,23 @@ def zsrc(self): ------- str """ - return self['zsrc'] + return self["zsrc"] @zsrc.setter def zsrc(self, val): - self['zsrc'] = val + self["zsrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -36778,7 +36668,7 @@ def __init__( ------- Scatter3d """ - super(Scatter3d, self).__init__('scatter3d') + super(Scatter3d, self).__init__("scatter3d") # Validate arg # ------------ @@ -36798,172 +36688,167 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (scatter3d as v_scatter3d) + from plotly.validators import scatter3d as v_scatter3d # Initialize validators # --------------------- - self._validators['connectgaps'] = v_scatter3d.ConnectgapsValidator() - self._validators['customdata'] = v_scatter3d.CustomdataValidator() - self._validators['customdatasrc'] = v_scatter3d.CustomdatasrcValidator( - ) - self._validators['error_x'] = v_scatter3d.ErrorXValidator() - self._validators['error_y'] = v_scatter3d.ErrorYValidator() - self._validators['error_z'] = v_scatter3d.ErrorZValidator() - self._validators['hoverinfo'] = v_scatter3d.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_scatter3d.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_scatter3d.HoverlabelValidator() - self._validators['hovertemplate'] = v_scatter3d.HovertemplateValidator( - ) - self._validators['hovertemplatesrc' - ] = v_scatter3d.HovertemplatesrcValidator() - self._validators['hovertext'] = v_scatter3d.HovertextValidator() - self._validators['hovertextsrc'] = v_scatter3d.HovertextsrcValidator() - self._validators['ids'] = v_scatter3d.IdsValidator() - self._validators['idssrc'] = v_scatter3d.IdssrcValidator() - self._validators['legendgroup'] = v_scatter3d.LegendgroupValidator() - self._validators['line'] = v_scatter3d.LineValidator() - self._validators['marker'] = v_scatter3d.MarkerValidator() - self._validators['meta'] = v_scatter3d.MetaValidator() - self._validators['metasrc'] = v_scatter3d.MetasrcValidator() - self._validators['mode'] = v_scatter3d.ModeValidator() - self._validators['name'] = v_scatter3d.NameValidator() - self._validators['opacity'] = v_scatter3d.OpacityValidator() - self._validators['projection'] = v_scatter3d.ProjectionValidator() - self._validators['scene'] = v_scatter3d.SceneValidator() - self._validators['showlegend'] = v_scatter3d.ShowlegendValidator() - self._validators['stream'] = v_scatter3d.StreamValidator() - self._validators['surfaceaxis'] = v_scatter3d.SurfaceaxisValidator() - self._validators['surfacecolor'] = v_scatter3d.SurfacecolorValidator() - self._validators['text'] = v_scatter3d.TextValidator() - self._validators['textfont'] = v_scatter3d.TextfontValidator() - self._validators['textposition'] = v_scatter3d.TextpositionValidator() - self._validators['textpositionsrc' - ] = v_scatter3d.TextpositionsrcValidator() - self._validators['textsrc'] = v_scatter3d.TextsrcValidator() - self._validators['uid'] = v_scatter3d.UidValidator() - self._validators['uirevision'] = v_scatter3d.UirevisionValidator() - self._validators['visible'] = v_scatter3d.VisibleValidator() - self._validators['x'] = v_scatter3d.XValidator() - self._validators['xcalendar'] = v_scatter3d.XcalendarValidator() - self._validators['xsrc'] = v_scatter3d.XsrcValidator() - self._validators['y'] = v_scatter3d.YValidator() - self._validators['ycalendar'] = v_scatter3d.YcalendarValidator() - self._validators['ysrc'] = v_scatter3d.YsrcValidator() - self._validators['z'] = v_scatter3d.ZValidator() - self._validators['zcalendar'] = v_scatter3d.ZcalendarValidator() - self._validators['zsrc'] = v_scatter3d.ZsrcValidator() + self._validators["connectgaps"] = v_scatter3d.ConnectgapsValidator() + self._validators["customdata"] = v_scatter3d.CustomdataValidator() + self._validators["customdatasrc"] = v_scatter3d.CustomdatasrcValidator() + self._validators["error_x"] = v_scatter3d.ErrorXValidator() + self._validators["error_y"] = v_scatter3d.ErrorYValidator() + self._validators["error_z"] = v_scatter3d.ErrorZValidator() + self._validators["hoverinfo"] = v_scatter3d.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_scatter3d.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_scatter3d.HoverlabelValidator() + self._validators["hovertemplate"] = v_scatter3d.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_scatter3d.HovertemplatesrcValidator() + self._validators["hovertext"] = v_scatter3d.HovertextValidator() + self._validators["hovertextsrc"] = v_scatter3d.HovertextsrcValidator() + self._validators["ids"] = v_scatter3d.IdsValidator() + self._validators["idssrc"] = v_scatter3d.IdssrcValidator() + self._validators["legendgroup"] = v_scatter3d.LegendgroupValidator() + self._validators["line"] = v_scatter3d.LineValidator() + self._validators["marker"] = v_scatter3d.MarkerValidator() + self._validators["meta"] = v_scatter3d.MetaValidator() + self._validators["metasrc"] = v_scatter3d.MetasrcValidator() + self._validators["mode"] = v_scatter3d.ModeValidator() + self._validators["name"] = v_scatter3d.NameValidator() + self._validators["opacity"] = v_scatter3d.OpacityValidator() + self._validators["projection"] = v_scatter3d.ProjectionValidator() + self._validators["scene"] = v_scatter3d.SceneValidator() + self._validators["showlegend"] = v_scatter3d.ShowlegendValidator() + self._validators["stream"] = v_scatter3d.StreamValidator() + self._validators["surfaceaxis"] = v_scatter3d.SurfaceaxisValidator() + self._validators["surfacecolor"] = v_scatter3d.SurfacecolorValidator() + self._validators["text"] = v_scatter3d.TextValidator() + self._validators["textfont"] = v_scatter3d.TextfontValidator() + self._validators["textposition"] = v_scatter3d.TextpositionValidator() + self._validators["textpositionsrc"] = v_scatter3d.TextpositionsrcValidator() + self._validators["textsrc"] = v_scatter3d.TextsrcValidator() + self._validators["uid"] = v_scatter3d.UidValidator() + self._validators["uirevision"] = v_scatter3d.UirevisionValidator() + self._validators["visible"] = v_scatter3d.VisibleValidator() + self._validators["x"] = v_scatter3d.XValidator() + self._validators["xcalendar"] = v_scatter3d.XcalendarValidator() + self._validators["xsrc"] = v_scatter3d.XsrcValidator() + self._validators["y"] = v_scatter3d.YValidator() + self._validators["ycalendar"] = v_scatter3d.YcalendarValidator() + self._validators["ysrc"] = v_scatter3d.YsrcValidator() + self._validators["z"] = v_scatter3d.ZValidator() + self._validators["zcalendar"] = v_scatter3d.ZcalendarValidator() + self._validators["zsrc"] = v_scatter3d.ZsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('connectgaps', None) - self['connectgaps'] = connectgaps if connectgaps is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('error_x', None) - self['error_x'] = error_x if error_x is not None else _v - _v = arg.pop('error_y', None) - self['error_y'] = error_y if error_y is not None else _v - _v = arg.pop('error_z', None) - self['error_z'] = error_z if error_z is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('mode', None) - self['mode'] = mode if mode is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('projection', None) - self['projection'] = projection if projection is not None else _v - _v = arg.pop('scene', None) - self['scene'] = scene if scene is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('surfaceaxis', None) - self['surfaceaxis'] = surfaceaxis if surfaceaxis is not None else _v - _v = arg.pop('surfacecolor', None) - self['surfacecolor'] = surfacecolor if surfacecolor is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v - _v = arg.pop('textposition', None) - self['textposition'] = textposition if textposition is not None else _v - _v = arg.pop('textpositionsrc', None) - self['textpositionsrc' - ] = textpositionsrc if textpositionsrc is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xcalendar', None) - self['xcalendar'] = xcalendar if xcalendar is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('ycalendar', None) - self['ycalendar'] = ycalendar if ycalendar is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v - _v = arg.pop('zcalendar', None) - self['zcalendar'] = zcalendar if zcalendar is not None else _v - _v = arg.pop('zsrc', None) - self['zsrc'] = zsrc if zsrc is not None else _v + _v = arg.pop("connectgaps", None) + self["connectgaps"] = connectgaps if connectgaps is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("error_x", None) + self["error_x"] = error_x if error_x is not None else _v + _v = arg.pop("error_y", None) + self["error_y"] = error_y if error_y is not None else _v + _v = arg.pop("error_z", None) + self["error_z"] = error_z if error_z is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("mode", None) + self["mode"] = mode if mode is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("projection", None) + self["projection"] = projection if projection is not None else _v + _v = arg.pop("scene", None) + self["scene"] = scene if scene is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("surfaceaxis", None) + self["surfaceaxis"] = surfaceaxis if surfaceaxis is not None else _v + _v = arg.pop("surfacecolor", None) + self["surfacecolor"] = surfacecolor if surfacecolor is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v + _v = arg.pop("textposition", None) + self["textposition"] = textposition if textposition is not None else _v + _v = arg.pop("textpositionsrc", None) + self["textpositionsrc"] = textpositionsrc if textpositionsrc is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xcalendar", None) + self["xcalendar"] = xcalendar if xcalendar is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("ycalendar", None) + self["ycalendar"] = ycalendar if ycalendar is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v + _v = arg.pop("zcalendar", None) + self["zcalendar"] = zcalendar if zcalendar is not None else _v + _v = arg.pop("zsrc", None) + self["zsrc"] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'scatter3d' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='scatter3d', val='scatter3d' + + self._props["type"] = "scatter3d" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="scatter3d", val="scatter3d" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -36997,11 +36882,11 @@ def cliponaxis(self): ------- bool """ - return self['cliponaxis'] + return self["cliponaxis"] @cliponaxis.setter def cliponaxis(self, val): - self['cliponaxis'] = val + self["cliponaxis"] = val # connectgaps # ----------- @@ -37018,11 +36903,11 @@ def connectgaps(self): ------- bool """ - return self['connectgaps'] + return self["connectgaps"] @connectgaps.setter def connectgaps(self, val): - self['connectgaps'] = val + self["connectgaps"] = val # customdata # ---------- @@ -37041,11 +36926,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -37061,11 +36946,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # dx # -- @@ -37081,11 +36966,11 @@ def dx(self): ------- int|float """ - return self['dx'] + return self["dx"] @dx.setter def dx(self, val): - self['dx'] = val + self["dx"] = val # dy # -- @@ -37101,11 +36986,11 @@ def dy(self): ------- int|float """ - return self['dy'] + return self["dy"] @dy.setter def dy(self, val): - self['dy'] = val + self["dy"] = val # error_x # ------- @@ -37182,11 +37067,11 @@ def error_x(self): ------- plotly.graph_objs.scatter.ErrorX """ - return self['error_x'] + return self["error_x"] @error_x.setter def error_x(self, val): - self['error_x'] = val + self["error_x"] = val # error_y # ------- @@ -37261,11 +37146,11 @@ def error_y(self): ------- plotly.graph_objs.scatter.ErrorY """ - return self['error_y'] + return self["error_y"] @error_y.setter def error_y(self, val): - self['error_y'] = val + self["error_y"] = val # fill # ---- @@ -37301,11 +37186,11 @@ def fill(self): ------- Any """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # fillcolor # --------- @@ -37362,11 +37247,11 @@ def fillcolor(self): ------- str """ - return self['fillcolor'] + return self["fillcolor"] @fillcolor.setter def fillcolor(self, val): - self['fillcolor'] = val + self["fillcolor"] = val # groupnorm # --------- @@ -37391,11 +37276,11 @@ def groupnorm(self): ------- Any """ - return self['groupnorm'] + return self["groupnorm"] @groupnorm.setter def groupnorm(self, val): - self['groupnorm'] = val + self["groupnorm"] = val # hoverinfo # --------- @@ -37417,11 +37302,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -37437,11 +37322,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -37496,11 +37381,11 @@ def hoverlabel(self): ------- plotly.graph_objs.scatter.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hoveron # ------- @@ -37521,11 +37406,11 @@ def hoveron(self): ------- Any """ - return self['hoveron'] + return self["hoveron"] @hoveron.setter def hoveron(self, val): - self['hoveron'] = val + self["hoveron"] = val # hovertemplate # ------------- @@ -37557,11 +37442,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -37577,11 +37462,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -37603,11 +37488,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -37623,11 +37508,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -37645,11 +37530,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -37665,11 +37550,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # legendgroup # ----------- @@ -37688,11 +37573,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # line # ---- @@ -37737,11 +37622,11 @@ def line(self): ------- plotly.graph_objs.scatter.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # marker # ------ @@ -37889,11 +37774,11 @@ def marker(self): ------- plotly.graph_objs.scatter.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -37917,11 +37802,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -37937,11 +37822,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # mode # ---- @@ -37965,11 +37850,11 @@ def mode(self): ------- Any """ - return self['mode'] + return self["mode"] @mode.setter def mode(self, val): - self['mode'] = val + self["mode"] = val # name # ---- @@ -37987,11 +37872,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -38007,11 +37892,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # orientation # ----------- @@ -38033,11 +37918,11 @@ def orientation(self): ------- Any """ - return self['orientation'] + return self["orientation"] @orientation.setter def orientation(self, val): - self['orientation'] = val + self["orientation"] = val # r # - @@ -38055,11 +37940,11 @@ def r(self): ------- numpy.ndarray """ - return self['r'] + return self["r"] @r.setter def r(self, val): - self['r'] = val + self["r"] = val # rsrc # ---- @@ -38075,11 +37960,11 @@ def rsrc(self): ------- str """ - return self['rsrc'] + return self["rsrc"] @rsrc.setter def rsrc(self, val): - self['rsrc'] = val + self["rsrc"] = val # selected # -------- @@ -38105,11 +37990,11 @@ def selected(self): ------- plotly.graph_objs.scatter.Selected """ - return self['selected'] + return self["selected"] @selected.setter def selected(self, val): - self['selected'] = val + self["selected"] = val # selectedpoints # -------------- @@ -38129,11 +38014,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -38150,11 +38035,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stackgaps # --------- @@ -38178,11 +38063,11 @@ def stackgaps(self): ------- Any """ - return self['stackgaps'] + return self["stackgaps"] @stackgaps.setter def stackgaps(self, val): - self['stackgaps'] = val + self["stackgaps"] = val # stackgroup # ---------- @@ -38210,11 +38095,11 @@ def stackgroup(self): ------- str """ - return self['stackgroup'] + return self["stackgroup"] @stackgroup.setter def stackgroup(self, val): - self['stackgroup'] = val + self["stackgroup"] = val # stream # ------ @@ -38243,11 +38128,11 @@ def stream(self): ------- plotly.graph_objs.scatter.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # t # - @@ -38265,11 +38150,11 @@ def t(self): ------- numpy.ndarray """ - return self['t'] + return self["t"] @t.setter def t(self, val): - self['t'] = val + self["t"] = val # text # ---- @@ -38292,11 +38177,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textfont # -------- @@ -38347,11 +38232,11 @@ def textfont(self): ------- plotly.graph_objs.scatter.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # textposition # ------------ @@ -38372,11 +38257,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self['textposition'] + return self["textposition"] @textposition.setter def textposition(self, val): - self['textposition'] = val + self["textposition"] = val # textpositionsrc # --------------- @@ -38392,11 +38277,11 @@ def textpositionsrc(self): ------- str """ - return self['textpositionsrc'] + return self["textpositionsrc"] @textpositionsrc.setter def textpositionsrc(self, val): - self['textpositionsrc'] = val + self["textpositionsrc"] = val # textsrc # ------- @@ -38412,11 +38297,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # tsrc # ---- @@ -38432,11 +38317,11 @@ def tsrc(self): ------- str """ - return self['tsrc'] + return self["tsrc"] @tsrc.setter def tsrc(self, val): - self['tsrc'] = val + self["tsrc"] = val # uid # --- @@ -38454,11 +38339,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -38487,11 +38372,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # unselected # ---------- @@ -38517,11 +38402,11 @@ def unselected(self): ------- plotly.graph_objs.scatter.Unselected """ - return self['unselected'] + return self["unselected"] @unselected.setter def unselected(self, val): - self['unselected'] = val + self["unselected"] = val # visible # ------- @@ -38540,11 +38425,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -38560,11 +38445,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # x0 # -- @@ -38581,11 +38466,11 @@ def x0(self): ------- Any """ - return self['x0'] + return self["x0"] @x0.setter def x0(self, val): - self['x0'] = val + self["x0"] = val # xaxis # ----- @@ -38606,11 +38491,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # xcalendar # --------- @@ -38630,11 +38515,11 @@ def xcalendar(self): ------- Any """ - return self['xcalendar'] + return self["xcalendar"] @xcalendar.setter def xcalendar(self, val): - self['xcalendar'] = val + self["xcalendar"] = val # xsrc # ---- @@ -38650,11 +38535,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -38670,11 +38555,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # y0 # -- @@ -38691,11 +38576,11 @@ def y0(self): ------- Any """ - return self['y0'] + return self["y0"] @y0.setter def y0(self, val): - self['y0'] = val + self["y0"] = val # yaxis # ----- @@ -38716,11 +38601,11 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # ycalendar # --------- @@ -38740,11 +38625,11 @@ def ycalendar(self): ------- Any """ - return self['ycalendar'] + return self["ycalendar"] @ycalendar.setter def ycalendar(self, val): - self['ycalendar'] = val + self["ycalendar"] = val # ysrc # ---- @@ -38760,23 +38645,23 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -39449,7 +39334,7 @@ def __init__( ------- Scatter """ - super(Scatter, self).__init__('scatter') + super(Scatter, self).__init__("scatter") # Validate arg # ------------ @@ -39469,211 +39354,206 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (scatter as v_scatter) + from plotly.validators import scatter as v_scatter # Initialize validators # --------------------- - self._validators['cliponaxis'] = v_scatter.CliponaxisValidator() - self._validators['connectgaps'] = v_scatter.ConnectgapsValidator() - self._validators['customdata'] = v_scatter.CustomdataValidator() - self._validators['customdatasrc'] = v_scatter.CustomdatasrcValidator() - self._validators['dx'] = v_scatter.DxValidator() - self._validators['dy'] = v_scatter.DyValidator() - self._validators['error_x'] = v_scatter.ErrorXValidator() - self._validators['error_y'] = v_scatter.ErrorYValidator() - self._validators['fill'] = v_scatter.FillValidator() - self._validators['fillcolor'] = v_scatter.FillcolorValidator() - self._validators['groupnorm'] = v_scatter.GroupnormValidator() - self._validators['hoverinfo'] = v_scatter.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_scatter.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_scatter.HoverlabelValidator() - self._validators['hoveron'] = v_scatter.HoveronValidator() - self._validators['hovertemplate'] = v_scatter.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_scatter.HovertemplatesrcValidator() - self._validators['hovertext'] = v_scatter.HovertextValidator() - self._validators['hovertextsrc'] = v_scatter.HovertextsrcValidator() - self._validators['ids'] = v_scatter.IdsValidator() - self._validators['idssrc'] = v_scatter.IdssrcValidator() - self._validators['legendgroup'] = v_scatter.LegendgroupValidator() - self._validators['line'] = v_scatter.LineValidator() - self._validators['marker'] = v_scatter.MarkerValidator() - self._validators['meta'] = v_scatter.MetaValidator() - self._validators['metasrc'] = v_scatter.MetasrcValidator() - self._validators['mode'] = v_scatter.ModeValidator() - self._validators['name'] = v_scatter.NameValidator() - self._validators['opacity'] = v_scatter.OpacityValidator() - self._validators['orientation'] = v_scatter.OrientationValidator() - self._validators['r'] = v_scatter.RValidator() - self._validators['rsrc'] = v_scatter.RsrcValidator() - self._validators['selected'] = v_scatter.SelectedValidator() - self._validators['selectedpoints'] = v_scatter.SelectedpointsValidator( - ) - self._validators['showlegend'] = v_scatter.ShowlegendValidator() - self._validators['stackgaps'] = v_scatter.StackgapsValidator() - self._validators['stackgroup'] = v_scatter.StackgroupValidator() - self._validators['stream'] = v_scatter.StreamValidator() - self._validators['t'] = v_scatter.TValidator() - self._validators['text'] = v_scatter.TextValidator() - self._validators['textfont'] = v_scatter.TextfontValidator() - self._validators['textposition'] = v_scatter.TextpositionValidator() - self._validators['textpositionsrc' - ] = v_scatter.TextpositionsrcValidator() - self._validators['textsrc'] = v_scatter.TextsrcValidator() - self._validators['tsrc'] = v_scatter.TsrcValidator() - self._validators['uid'] = v_scatter.UidValidator() - self._validators['uirevision'] = v_scatter.UirevisionValidator() - self._validators['unselected'] = v_scatter.UnselectedValidator() - self._validators['visible'] = v_scatter.VisibleValidator() - self._validators['x'] = v_scatter.XValidator() - self._validators['x0'] = v_scatter.X0Validator() - self._validators['xaxis'] = v_scatter.XAxisValidator() - self._validators['xcalendar'] = v_scatter.XcalendarValidator() - self._validators['xsrc'] = v_scatter.XsrcValidator() - self._validators['y'] = v_scatter.YValidator() - self._validators['y0'] = v_scatter.Y0Validator() - self._validators['yaxis'] = v_scatter.YAxisValidator() - self._validators['ycalendar'] = v_scatter.YcalendarValidator() - self._validators['ysrc'] = v_scatter.YsrcValidator() + self._validators["cliponaxis"] = v_scatter.CliponaxisValidator() + self._validators["connectgaps"] = v_scatter.ConnectgapsValidator() + self._validators["customdata"] = v_scatter.CustomdataValidator() + self._validators["customdatasrc"] = v_scatter.CustomdatasrcValidator() + self._validators["dx"] = v_scatter.DxValidator() + self._validators["dy"] = v_scatter.DyValidator() + self._validators["error_x"] = v_scatter.ErrorXValidator() + self._validators["error_y"] = v_scatter.ErrorYValidator() + self._validators["fill"] = v_scatter.FillValidator() + self._validators["fillcolor"] = v_scatter.FillcolorValidator() + self._validators["groupnorm"] = v_scatter.GroupnormValidator() + self._validators["hoverinfo"] = v_scatter.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_scatter.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_scatter.HoverlabelValidator() + self._validators["hoveron"] = v_scatter.HoveronValidator() + self._validators["hovertemplate"] = v_scatter.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_scatter.HovertemplatesrcValidator() + self._validators["hovertext"] = v_scatter.HovertextValidator() + self._validators["hovertextsrc"] = v_scatter.HovertextsrcValidator() + self._validators["ids"] = v_scatter.IdsValidator() + self._validators["idssrc"] = v_scatter.IdssrcValidator() + self._validators["legendgroup"] = v_scatter.LegendgroupValidator() + self._validators["line"] = v_scatter.LineValidator() + self._validators["marker"] = v_scatter.MarkerValidator() + self._validators["meta"] = v_scatter.MetaValidator() + self._validators["metasrc"] = v_scatter.MetasrcValidator() + self._validators["mode"] = v_scatter.ModeValidator() + self._validators["name"] = v_scatter.NameValidator() + self._validators["opacity"] = v_scatter.OpacityValidator() + self._validators["orientation"] = v_scatter.OrientationValidator() + self._validators["r"] = v_scatter.RValidator() + self._validators["rsrc"] = v_scatter.RsrcValidator() + self._validators["selected"] = v_scatter.SelectedValidator() + self._validators["selectedpoints"] = v_scatter.SelectedpointsValidator() + self._validators["showlegend"] = v_scatter.ShowlegendValidator() + self._validators["stackgaps"] = v_scatter.StackgapsValidator() + self._validators["stackgroup"] = v_scatter.StackgroupValidator() + self._validators["stream"] = v_scatter.StreamValidator() + self._validators["t"] = v_scatter.TValidator() + self._validators["text"] = v_scatter.TextValidator() + self._validators["textfont"] = v_scatter.TextfontValidator() + self._validators["textposition"] = v_scatter.TextpositionValidator() + self._validators["textpositionsrc"] = v_scatter.TextpositionsrcValidator() + self._validators["textsrc"] = v_scatter.TextsrcValidator() + self._validators["tsrc"] = v_scatter.TsrcValidator() + self._validators["uid"] = v_scatter.UidValidator() + self._validators["uirevision"] = v_scatter.UirevisionValidator() + self._validators["unselected"] = v_scatter.UnselectedValidator() + self._validators["visible"] = v_scatter.VisibleValidator() + self._validators["x"] = v_scatter.XValidator() + self._validators["x0"] = v_scatter.X0Validator() + self._validators["xaxis"] = v_scatter.XAxisValidator() + self._validators["xcalendar"] = v_scatter.XcalendarValidator() + self._validators["xsrc"] = v_scatter.XsrcValidator() + self._validators["y"] = v_scatter.YValidator() + self._validators["y0"] = v_scatter.Y0Validator() + self._validators["yaxis"] = v_scatter.YAxisValidator() + self._validators["ycalendar"] = v_scatter.YcalendarValidator() + self._validators["ysrc"] = v_scatter.YsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('cliponaxis', None) - self['cliponaxis'] = cliponaxis if cliponaxis is not None else _v - _v = arg.pop('connectgaps', None) - self['connectgaps'] = connectgaps if connectgaps is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('dx', None) - self['dx'] = dx if dx is not None else _v - _v = arg.pop('dy', None) - self['dy'] = dy if dy is not None else _v - _v = arg.pop('error_x', None) - self['error_x'] = error_x if error_x is not None else _v - _v = arg.pop('error_y', None) - self['error_y'] = error_y if error_y is not None else _v - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('fillcolor', None) - self['fillcolor'] = fillcolor if fillcolor is not None else _v - _v = arg.pop('groupnorm', None) - self['groupnorm'] = groupnorm if groupnorm is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hoveron', None) - self['hoveron'] = hoveron if hoveron is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('mode', None) - self['mode'] = mode if mode is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('orientation', None) - self['orientation'] = orientation if orientation is not None else _v - _v = arg.pop('r', None) - self['r'] = r if r is not None else _v - _v = arg.pop('rsrc', None) - self['rsrc'] = rsrc if rsrc is not None else _v - _v = arg.pop('selected', None) - self['selected'] = selected if selected is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stackgaps', None) - self['stackgaps'] = stackgaps if stackgaps is not None else _v - _v = arg.pop('stackgroup', None) - self['stackgroup'] = stackgroup if stackgroup is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('t', None) - self['t'] = t if t is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v - _v = arg.pop('textposition', None) - self['textposition'] = textposition if textposition is not None else _v - _v = arg.pop('textpositionsrc', None) - self['textpositionsrc' - ] = textpositionsrc if textpositionsrc is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('tsrc', None) - self['tsrc'] = tsrc if tsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('unselected', None) - self['unselected'] = unselected if unselected is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('x0', None) - self['x0'] = x0 if x0 is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('xcalendar', None) - self['xcalendar'] = xcalendar if xcalendar is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('y0', None) - self['y0'] = y0 if y0 is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v - _v = arg.pop('ycalendar', None) - self['ycalendar'] = ycalendar if ycalendar is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v + _v = arg.pop("cliponaxis", None) + self["cliponaxis"] = cliponaxis if cliponaxis is not None else _v + _v = arg.pop("connectgaps", None) + self["connectgaps"] = connectgaps if connectgaps is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("dx", None) + self["dx"] = dx if dx is not None else _v + _v = arg.pop("dy", None) + self["dy"] = dy if dy is not None else _v + _v = arg.pop("error_x", None) + self["error_x"] = error_x if error_x is not None else _v + _v = arg.pop("error_y", None) + self["error_y"] = error_y if error_y is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("fillcolor", None) + self["fillcolor"] = fillcolor if fillcolor is not None else _v + _v = arg.pop("groupnorm", None) + self["groupnorm"] = groupnorm if groupnorm is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hoveron", None) + self["hoveron"] = hoveron if hoveron is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("mode", None) + self["mode"] = mode if mode is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("orientation", None) + self["orientation"] = orientation if orientation is not None else _v + _v = arg.pop("r", None) + self["r"] = r if r is not None else _v + _v = arg.pop("rsrc", None) + self["rsrc"] = rsrc if rsrc is not None else _v + _v = arg.pop("selected", None) + self["selected"] = selected if selected is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stackgaps", None) + self["stackgaps"] = stackgaps if stackgaps is not None else _v + _v = arg.pop("stackgroup", None) + self["stackgroup"] = stackgroup if stackgroup is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("t", None) + self["t"] = t if t is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v + _v = arg.pop("textposition", None) + self["textposition"] = textposition if textposition is not None else _v + _v = arg.pop("textpositionsrc", None) + self["textpositionsrc"] = textpositionsrc if textpositionsrc is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("tsrc", None) + self["tsrc"] = tsrc if tsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("unselected", None) + self["unselected"] = unselected if unselected is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("x0", None) + self["x0"] = x0 if x0 is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("xcalendar", None) + self["xcalendar"] = xcalendar if xcalendar is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("y0", None) + self["y0"] = y0 if y0 is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v + _v = arg.pop("ycalendar", None) + self["ycalendar"] = ycalendar if ycalendar is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'scatter' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='scatter', val='scatter' + + self._props["type"] = "scatter" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="scatter", val="scatter" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -39711,11 +39591,11 @@ def arrangement(self): ------- Any """ - return self['arrangement'] + return self["arrangement"] @arrangement.setter def arrangement(self, val): - self['arrangement'] = val + self["arrangement"] = val # customdata # ---------- @@ -39734,11 +39614,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -39754,11 +39634,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # domain # ------ @@ -39790,11 +39670,11 @@ def domain(self): ------- plotly.graph_objs.sankey.Domain """ - return self['domain'] + return self["domain"] @domain.setter def domain(self, val): - self['domain'] = val + self["domain"] = val # hoverinfo # --------- @@ -39817,11 +39697,11 @@ def hoverinfo(self): ------- Any """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverlabel # ---------- @@ -39876,11 +39756,11 @@ def hoverlabel(self): ------- plotly.graph_objs.sankey.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # ids # --- @@ -39898,11 +39778,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -39918,11 +39798,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # link # ---- @@ -40021,11 +39901,11 @@ def link(self): ------- plotly.graph_objs.sankey.Link """ - return self['link'] + return self["link"] @link.setter def link(self, val): - self['link'] = val + self["link"] = val # meta # ---- @@ -40049,11 +39929,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -40069,11 +39949,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -40091,11 +39971,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # node # ---- @@ -40186,11 +40066,11 @@ def node(self): ------- plotly.graph_objs.sankey.Node """ - return self['node'] + return self["node"] @node.setter def node(self, val): - self['node'] = val + self["node"] = val # orientation # ----------- @@ -40207,11 +40087,11 @@ def orientation(self): ------- Any """ - return self['orientation'] + return self["orientation"] @orientation.setter def orientation(self, val): - self['orientation'] = val + self["orientation"] = val # selectedpoints # -------------- @@ -40231,11 +40111,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # stream # ------ @@ -40264,11 +40144,11 @@ def stream(self): ------- plotly.graph_objs.sankey.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # textfont # -------- @@ -40309,11 +40189,11 @@ def textfont(self): ------- plotly.graph_objs.sankey.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # uid # --- @@ -40331,11 +40211,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -40364,11 +40244,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # valueformat # ----------- @@ -40387,11 +40267,11 @@ def valueformat(self): ------- str """ - return self['valueformat'] + return self["valueformat"] @valueformat.setter def valueformat(self, val): - self['valueformat'] = val + self["valueformat"] = val # valuesuffix # ----------- @@ -40409,11 +40289,11 @@ def valuesuffix(self): ------- str """ - return self['valuesuffix'] + return self["valuesuffix"] @valuesuffix.setter def valuesuffix(self, val): - self['valuesuffix'] = val + self["valuesuffix"] = val # visible # ------- @@ -40432,23 +40312,23 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -40714,7 +40594,7 @@ def __init__( ------- Sankey """ - super(Sankey, self).__init__('sankey') + super(Sankey, self).__init__("sankey") # Validate arg # ------------ @@ -40734,94 +40614,93 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (sankey as v_sankey) + from plotly.validators import sankey as v_sankey # Initialize validators # --------------------- - self._validators['arrangement'] = v_sankey.ArrangementValidator() - self._validators['customdata'] = v_sankey.CustomdataValidator() - self._validators['customdatasrc'] = v_sankey.CustomdatasrcValidator() - self._validators['domain'] = v_sankey.DomainValidator() - self._validators['hoverinfo'] = v_sankey.HoverinfoValidator() - self._validators['hoverlabel'] = v_sankey.HoverlabelValidator() - self._validators['ids'] = v_sankey.IdsValidator() - self._validators['idssrc'] = v_sankey.IdssrcValidator() - self._validators['link'] = v_sankey.LinkValidator() - self._validators['meta'] = v_sankey.MetaValidator() - self._validators['metasrc'] = v_sankey.MetasrcValidator() - self._validators['name'] = v_sankey.NameValidator() - self._validators['node'] = v_sankey.NodeValidator() - self._validators['orientation'] = v_sankey.OrientationValidator() - self._validators['selectedpoints'] = v_sankey.SelectedpointsValidator() - self._validators['stream'] = v_sankey.StreamValidator() - self._validators['textfont'] = v_sankey.TextfontValidator() - self._validators['uid'] = v_sankey.UidValidator() - self._validators['uirevision'] = v_sankey.UirevisionValidator() - self._validators['valueformat'] = v_sankey.ValueformatValidator() - self._validators['valuesuffix'] = v_sankey.ValuesuffixValidator() - self._validators['visible'] = v_sankey.VisibleValidator() + self._validators["arrangement"] = v_sankey.ArrangementValidator() + self._validators["customdata"] = v_sankey.CustomdataValidator() + self._validators["customdatasrc"] = v_sankey.CustomdatasrcValidator() + self._validators["domain"] = v_sankey.DomainValidator() + self._validators["hoverinfo"] = v_sankey.HoverinfoValidator() + self._validators["hoverlabel"] = v_sankey.HoverlabelValidator() + self._validators["ids"] = v_sankey.IdsValidator() + self._validators["idssrc"] = v_sankey.IdssrcValidator() + self._validators["link"] = v_sankey.LinkValidator() + self._validators["meta"] = v_sankey.MetaValidator() + self._validators["metasrc"] = v_sankey.MetasrcValidator() + self._validators["name"] = v_sankey.NameValidator() + self._validators["node"] = v_sankey.NodeValidator() + self._validators["orientation"] = v_sankey.OrientationValidator() + self._validators["selectedpoints"] = v_sankey.SelectedpointsValidator() + self._validators["stream"] = v_sankey.StreamValidator() + self._validators["textfont"] = v_sankey.TextfontValidator() + self._validators["uid"] = v_sankey.UidValidator() + self._validators["uirevision"] = v_sankey.UirevisionValidator() + self._validators["valueformat"] = v_sankey.ValueformatValidator() + self._validators["valuesuffix"] = v_sankey.ValuesuffixValidator() + self._validators["visible"] = v_sankey.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('arrangement', None) - self['arrangement'] = arrangement if arrangement is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('domain', None) - self['domain'] = domain if domain is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('link', None) - self['link'] = link if link is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('node', None) - self['node'] = node if node is not None else _v - _v = arg.pop('orientation', None) - self['orientation'] = orientation if orientation is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('valueformat', None) - self['valueformat'] = valueformat if valueformat is not None else _v - _v = arg.pop('valuesuffix', None) - self['valuesuffix'] = valuesuffix if valuesuffix is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("arrangement", None) + self["arrangement"] = arrangement if arrangement is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("domain", None) + self["domain"] = domain if domain is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("link", None) + self["link"] = link if link is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("node", None) + self["node"] = node if node is not None else _v + _v = arg.pop("orientation", None) + self["orientation"] = orientation if orientation is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("valueformat", None) + self["valueformat"] = valueformat if valueformat is not None else _v + _v = arg.pop("valuesuffix", None) + self["valuesuffix"] = valuesuffix if valuesuffix is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'sankey' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='sankey', val='sankey' + + self._props["type"] = "sankey" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="sankey", val="sankey" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -40855,11 +40734,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -40875,11 +40754,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # hoverinfo # --------- @@ -40901,11 +40780,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -40921,11 +40800,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -40980,11 +40859,11 @@ def hoverlabel(self): ------- plotly.graph_objs.pointcloud.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # ids # --- @@ -41002,11 +40881,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -41022,11 +40901,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # indices # ------- @@ -41048,11 +40927,11 @@ def indices(self): ------- numpy.ndarray """ - return self['indices'] + return self["indices"] @indices.setter def indices(self, val): - self['indices'] = val + self["indices"] = val # indicessrc # ---------- @@ -41068,11 +40947,11 @@ def indicessrc(self): ------- str """ - return self['indicessrc'] + return self["indicessrc"] @indicessrc.setter def indicessrc(self, val): - self['indicessrc'] = val + self["indicessrc"] = val # legendgroup # ----------- @@ -41091,11 +40970,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # marker # ------ @@ -41145,11 +41024,11 @@ def marker(self): ------- plotly.graph_objs.pointcloud.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -41173,11 +41052,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -41193,11 +41072,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -41215,11 +41094,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -41235,11 +41114,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # showlegend # ---------- @@ -41256,11 +41135,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -41289,11 +41168,11 @@ def stream(self): ------- plotly.graph_objs.pointcloud.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -41316,11 +41195,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -41336,11 +41215,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -41358,11 +41237,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -41391,11 +41270,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -41414,11 +41293,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -41434,11 +41313,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xaxis # ----- @@ -41459,11 +41338,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # xbounds # ------- @@ -41481,11 +41360,11 @@ def xbounds(self): ------- numpy.ndarray """ - return self['xbounds'] + return self["xbounds"] @xbounds.setter def xbounds(self, val): - self['xbounds'] = val + self["xbounds"] = val # xboundssrc # ---------- @@ -41501,11 +41380,11 @@ def xboundssrc(self): ------- str """ - return self['xboundssrc'] + return self["xboundssrc"] @xboundssrc.setter def xboundssrc(self, val): - self['xboundssrc'] = val + self["xboundssrc"] = val # xsrc # ---- @@ -41521,11 +41400,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # xy # -- @@ -41544,11 +41423,11 @@ def xy(self): ------- numpy.ndarray """ - return self['xy'] + return self["xy"] @xy.setter def xy(self, val): - self['xy'] = val + self["xy"] = val # xysrc # ----- @@ -41564,11 +41443,11 @@ def xysrc(self): ------- str """ - return self['xysrc'] + return self["xysrc"] @xysrc.setter def xysrc(self, val): - self['xysrc'] = val + self["xysrc"] = val # y # - @@ -41584,11 +41463,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yaxis # ----- @@ -41609,11 +41488,11 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # ybounds # ------- @@ -41631,11 +41510,11 @@ def ybounds(self): ------- numpy.ndarray """ - return self['ybounds'] + return self["ybounds"] @ybounds.setter def ybounds(self, val): - self['ybounds'] = val + self["ybounds"] = val # yboundssrc # ---------- @@ -41651,11 +41530,11 @@ def yboundssrc(self): ------- str """ - return self['yboundssrc'] + return self["yboundssrc"] @yboundssrc.setter def yboundssrc(self, val): - self['yboundssrc'] = val + self["yboundssrc"] = val # ysrc # ---- @@ -41671,23 +41550,23 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -42037,7 +41916,7 @@ def __init__( ------- Pointcloud """ - super(Pointcloud, self).__init__('pointcloud') + super(Pointcloud, self).__init__("pointcloud") # Validate arg # ------------ @@ -42057,130 +41936,129 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (pointcloud as v_pointcloud) + from plotly.validators import pointcloud as v_pointcloud # Initialize validators # --------------------- - self._validators['customdata'] = v_pointcloud.CustomdataValidator() - self._validators['customdatasrc' - ] = v_pointcloud.CustomdatasrcValidator() - self._validators['hoverinfo'] = v_pointcloud.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_pointcloud.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_pointcloud.HoverlabelValidator() - self._validators['ids'] = v_pointcloud.IdsValidator() - self._validators['idssrc'] = v_pointcloud.IdssrcValidator() - self._validators['indices'] = v_pointcloud.IndicesValidator() - self._validators['indicessrc'] = v_pointcloud.IndicessrcValidator() - self._validators['legendgroup'] = v_pointcloud.LegendgroupValidator() - self._validators['marker'] = v_pointcloud.MarkerValidator() - self._validators['meta'] = v_pointcloud.MetaValidator() - self._validators['metasrc'] = v_pointcloud.MetasrcValidator() - self._validators['name'] = v_pointcloud.NameValidator() - self._validators['opacity'] = v_pointcloud.OpacityValidator() - self._validators['showlegend'] = v_pointcloud.ShowlegendValidator() - self._validators['stream'] = v_pointcloud.StreamValidator() - self._validators['text'] = v_pointcloud.TextValidator() - self._validators['textsrc'] = v_pointcloud.TextsrcValidator() - self._validators['uid'] = v_pointcloud.UidValidator() - self._validators['uirevision'] = v_pointcloud.UirevisionValidator() - self._validators['visible'] = v_pointcloud.VisibleValidator() - self._validators['x'] = v_pointcloud.XValidator() - self._validators['xaxis'] = v_pointcloud.XAxisValidator() - self._validators['xbounds'] = v_pointcloud.XboundsValidator() - self._validators['xboundssrc'] = v_pointcloud.XboundssrcValidator() - self._validators['xsrc'] = v_pointcloud.XsrcValidator() - self._validators['xy'] = v_pointcloud.XyValidator() - self._validators['xysrc'] = v_pointcloud.XysrcValidator() - self._validators['y'] = v_pointcloud.YValidator() - self._validators['yaxis'] = v_pointcloud.YAxisValidator() - self._validators['ybounds'] = v_pointcloud.YboundsValidator() - self._validators['yboundssrc'] = v_pointcloud.YboundssrcValidator() - self._validators['ysrc'] = v_pointcloud.YsrcValidator() + self._validators["customdata"] = v_pointcloud.CustomdataValidator() + self._validators["customdatasrc"] = v_pointcloud.CustomdatasrcValidator() + self._validators["hoverinfo"] = v_pointcloud.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_pointcloud.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_pointcloud.HoverlabelValidator() + self._validators["ids"] = v_pointcloud.IdsValidator() + self._validators["idssrc"] = v_pointcloud.IdssrcValidator() + self._validators["indices"] = v_pointcloud.IndicesValidator() + self._validators["indicessrc"] = v_pointcloud.IndicessrcValidator() + self._validators["legendgroup"] = v_pointcloud.LegendgroupValidator() + self._validators["marker"] = v_pointcloud.MarkerValidator() + self._validators["meta"] = v_pointcloud.MetaValidator() + self._validators["metasrc"] = v_pointcloud.MetasrcValidator() + self._validators["name"] = v_pointcloud.NameValidator() + self._validators["opacity"] = v_pointcloud.OpacityValidator() + self._validators["showlegend"] = v_pointcloud.ShowlegendValidator() + self._validators["stream"] = v_pointcloud.StreamValidator() + self._validators["text"] = v_pointcloud.TextValidator() + self._validators["textsrc"] = v_pointcloud.TextsrcValidator() + self._validators["uid"] = v_pointcloud.UidValidator() + self._validators["uirevision"] = v_pointcloud.UirevisionValidator() + self._validators["visible"] = v_pointcloud.VisibleValidator() + self._validators["x"] = v_pointcloud.XValidator() + self._validators["xaxis"] = v_pointcloud.XAxisValidator() + self._validators["xbounds"] = v_pointcloud.XboundsValidator() + self._validators["xboundssrc"] = v_pointcloud.XboundssrcValidator() + self._validators["xsrc"] = v_pointcloud.XsrcValidator() + self._validators["xy"] = v_pointcloud.XyValidator() + self._validators["xysrc"] = v_pointcloud.XysrcValidator() + self._validators["y"] = v_pointcloud.YValidator() + self._validators["yaxis"] = v_pointcloud.YAxisValidator() + self._validators["ybounds"] = v_pointcloud.YboundsValidator() + self._validators["yboundssrc"] = v_pointcloud.YboundssrcValidator() + self._validators["ysrc"] = v_pointcloud.YsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('indices', None) - self['indices'] = indices if indices is not None else _v - _v = arg.pop('indicessrc', None) - self['indicessrc'] = indicessrc if indicessrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('xbounds', None) - self['xbounds'] = xbounds if xbounds is not None else _v - _v = arg.pop('xboundssrc', None) - self['xboundssrc'] = xboundssrc if xboundssrc is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('xy', None) - self['xy'] = xy if xy is not None else _v - _v = arg.pop('xysrc', None) - self['xysrc'] = xysrc if xysrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v - _v = arg.pop('ybounds', None) - self['ybounds'] = ybounds if ybounds is not None else _v - _v = arg.pop('yboundssrc', None) - self['yboundssrc'] = yboundssrc if yboundssrc is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("indices", None) + self["indices"] = indices if indices is not None else _v + _v = arg.pop("indicessrc", None) + self["indicessrc"] = indicessrc if indicessrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("xbounds", None) + self["xbounds"] = xbounds if xbounds is not None else _v + _v = arg.pop("xboundssrc", None) + self["xboundssrc"] = xboundssrc if xboundssrc is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("xy", None) + self["xy"] = xy if xy is not None else _v + _v = arg.pop("xysrc", None) + self["xysrc"] = xysrc if xysrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v + _v = arg.pop("ybounds", None) + self["ybounds"] = ybounds if ybounds is not None else _v + _v = arg.pop("yboundssrc", None) + self["yboundssrc"] = yboundssrc if yboundssrc is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'pointcloud' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='pointcloud', val='pointcloud' + + self._props["type"] = "pointcloud" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="pointcloud", val="pointcloud" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -42214,11 +42092,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -42234,11 +42112,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # direction # --------- @@ -42256,11 +42134,11 @@ def direction(self): ------- Any """ - return self['direction'] + return self["direction"] @direction.setter def direction(self, val): - self['direction'] = val + self["direction"] = val # dlabel # ------ @@ -42276,11 +42154,11 @@ def dlabel(self): ------- int|float """ - return self['dlabel'] + return self["dlabel"] @dlabel.setter def dlabel(self, val): - self['dlabel'] = val + self["dlabel"] = val # domain # ------ @@ -42312,11 +42190,11 @@ def domain(self): ------- plotly.graph_objs.pie.Domain """ - return self['domain'] + return self["domain"] @domain.setter def domain(self, val): - self['domain'] = val + self["domain"] = val # hole # ---- @@ -42333,11 +42211,11 @@ def hole(self): ------- int|float """ - return self['hole'] + return self["hole"] @hole.setter def hole(self, val): - self['hole'] = val + self["hole"] = val # hoverinfo # --------- @@ -42359,11 +42237,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -42379,11 +42257,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -42438,11 +42316,11 @@ def hoverlabel(self): ------- plotly.graph_objs.pie.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -42475,11 +42353,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -42495,11 +42373,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -42521,11 +42399,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -42541,11 +42419,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -42563,11 +42441,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -42583,11 +42461,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # insidetextfont # -------------- @@ -42638,11 +42516,11 @@ def insidetextfont(self): ------- plotly.graph_objs.pie.Insidetextfont """ - return self['insidetextfont'] + return self["insidetextfont"] @insidetextfont.setter def insidetextfont(self, val): - self['insidetextfont'] = val + self["insidetextfont"] = val # label0 # ------ @@ -42660,11 +42538,11 @@ def label0(self): ------- int|float """ - return self['label0'] + return self["label0"] @label0.setter def label0(self, val): - self['label0'] = val + self["label0"] = val # labels # ------ @@ -42684,11 +42562,11 @@ def labels(self): ------- numpy.ndarray """ - return self['labels'] + return self["labels"] @labels.setter def labels(self, val): - self['labels'] = val + self["labels"] = val # labelssrc # --------- @@ -42704,11 +42582,11 @@ def labelssrc(self): ------- str """ - return self['labelssrc'] + return self["labelssrc"] @labelssrc.setter def labelssrc(self, val): - self['labelssrc'] = val + self["labelssrc"] = val # legendgroup # ----------- @@ -42727,11 +42605,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # marker # ------ @@ -42761,11 +42639,11 @@ def marker(self): ------- plotly.graph_objs.pie.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -42789,11 +42667,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -42809,11 +42687,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -42831,11 +42709,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -42851,11 +42729,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # outsidetextfont # --------------- @@ -42906,11 +42784,11 @@ def outsidetextfont(self): ------- plotly.graph_objs.pie.Outsidetextfont """ - return self['outsidetextfont'] + return self["outsidetextfont"] @outsidetextfont.setter def outsidetextfont(self, val): - self['outsidetextfont'] = val + self["outsidetextfont"] = val # pull # ---- @@ -42930,11 +42808,11 @@ def pull(self): ------- int|float|numpy.ndarray """ - return self['pull'] + return self["pull"] @pull.setter def pull(self, val): - self['pull'] = val + self["pull"] = val # pullsrc # ------- @@ -42950,11 +42828,11 @@ def pullsrc(self): ------- str """ - return self['pullsrc'] + return self["pullsrc"] @pullsrc.setter def pullsrc(self, val): - self['pullsrc'] = val + self["pullsrc"] = val # rotation # -------- @@ -42971,11 +42849,11 @@ def rotation(self): ------- int|float """ - return self['rotation'] + return self["rotation"] @rotation.setter def rotation(self, val): - self['rotation'] = val + self["rotation"] = val # scalegroup # ---------- @@ -42994,11 +42872,11 @@ def scalegroup(self): ------- str """ - return self['scalegroup'] + return self["scalegroup"] @scalegroup.setter def scalegroup(self, val): - self['scalegroup'] = val + self["scalegroup"] = val # showlegend # ---------- @@ -43015,11 +42893,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # sort # ---- @@ -43036,11 +42914,11 @@ def sort(self): ------- bool """ - return self['sort'] + return self["sort"] @sort.setter def sort(self, val): - self['sort'] = val + self["sort"] = val # stream # ------ @@ -43069,11 +42947,11 @@ def stream(self): ------- plotly.graph_objs.pie.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -43093,11 +42971,11 @@ def text(self): ------- numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textfont # -------- @@ -43148,11 +43026,11 @@ def textfont(self): ------- plotly.graph_objs.pie.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # textinfo # -------- @@ -43171,11 +43049,11 @@ def textinfo(self): ------- Any """ - return self['textinfo'] + return self["textinfo"] @textinfo.setter def textinfo(self, val): - self['textinfo'] = val + self["textinfo"] = val # textposition # ------------ @@ -43193,11 +43071,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self['textposition'] + return self["textposition"] @textposition.setter def textposition(self, val): - self['textposition'] = val + self["textposition"] = val # textpositionsrc # --------------- @@ -43213,11 +43091,11 @@ def textpositionsrc(self): ------- str """ - return self['textpositionsrc'] + return self["textpositionsrc"] @textpositionsrc.setter def textpositionsrc(self, val): - self['textpositionsrc'] = val + self["textpositionsrc"] = val # textsrc # ------- @@ -43233,11 +43111,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # title # ----- @@ -43271,11 +43149,11 @@ def title(self): ------- plotly.graph_objs.pie.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -43328,11 +43206,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleposition # ------------- @@ -43352,11 +43230,11 @@ def titleposition(self): ------- """ - return self['titleposition'] + return self["titleposition"] @titleposition.setter def titleposition(self, val): - self['titleposition'] = val + self["titleposition"] = val # uid # --- @@ -43374,11 +43252,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -43407,11 +43285,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # values # ------ @@ -43428,11 +43306,11 @@ def values(self): ------- numpy.ndarray """ - return self['values'] + return self["values"] @values.setter def values(self, val): - self['values'] = val + self["values"] = val # valuessrc # --------- @@ -43448,11 +43326,11 @@ def valuessrc(self): ------- str """ - return self['valuessrc'] + return self["valuessrc"] @valuessrc.setter def valuessrc(self, val): - self['valuessrc'] = val + self["valuessrc"] = val # visible # ------- @@ -43471,23 +43349,23 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -43692,8 +43570,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleposition': ('title', 'position') + "titlefont": ("title", "font"), + "titleposition": ("title", "position"), } def __init__( @@ -43960,7 +43838,7 @@ def __init__( ------- Pie """ - super(Pie, self).__init__('pie') + super(Pie, self).__init__("pie") # Validate arg # ------------ @@ -43980,176 +43858,172 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (pie as v_pie) + from plotly.validators import pie as v_pie # Initialize validators # --------------------- - self._validators['customdata'] = v_pie.CustomdataValidator() - self._validators['customdatasrc'] = v_pie.CustomdatasrcValidator() - self._validators['direction'] = v_pie.DirectionValidator() - self._validators['dlabel'] = v_pie.DlabelValidator() - self._validators['domain'] = v_pie.DomainValidator() - self._validators['hole'] = v_pie.HoleValidator() - self._validators['hoverinfo'] = v_pie.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_pie.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_pie.HoverlabelValidator() - self._validators['hovertemplate'] = v_pie.HovertemplateValidator() - self._validators['hovertemplatesrc'] = v_pie.HovertemplatesrcValidator( - ) - self._validators['hovertext'] = v_pie.HovertextValidator() - self._validators['hovertextsrc'] = v_pie.HovertextsrcValidator() - self._validators['ids'] = v_pie.IdsValidator() - self._validators['idssrc'] = v_pie.IdssrcValidator() - self._validators['insidetextfont'] = v_pie.InsidetextfontValidator() - self._validators['label0'] = v_pie.Label0Validator() - self._validators['labels'] = v_pie.LabelsValidator() - self._validators['labelssrc'] = v_pie.LabelssrcValidator() - self._validators['legendgroup'] = v_pie.LegendgroupValidator() - self._validators['marker'] = v_pie.MarkerValidator() - self._validators['meta'] = v_pie.MetaValidator() - self._validators['metasrc'] = v_pie.MetasrcValidator() - self._validators['name'] = v_pie.NameValidator() - self._validators['opacity'] = v_pie.OpacityValidator() - self._validators['outsidetextfont'] = v_pie.OutsidetextfontValidator() - self._validators['pull'] = v_pie.PullValidator() - self._validators['pullsrc'] = v_pie.PullsrcValidator() - self._validators['rotation'] = v_pie.RotationValidator() - self._validators['scalegroup'] = v_pie.ScalegroupValidator() - self._validators['showlegend'] = v_pie.ShowlegendValidator() - self._validators['sort'] = v_pie.SortValidator() - self._validators['stream'] = v_pie.StreamValidator() - self._validators['text'] = v_pie.TextValidator() - self._validators['textfont'] = v_pie.TextfontValidator() - self._validators['textinfo'] = v_pie.TextinfoValidator() - self._validators['textposition'] = v_pie.TextpositionValidator() - self._validators['textpositionsrc'] = v_pie.TextpositionsrcValidator() - self._validators['textsrc'] = v_pie.TextsrcValidator() - self._validators['title'] = v_pie.TitleValidator() - self._validators['uid'] = v_pie.UidValidator() - self._validators['uirevision'] = v_pie.UirevisionValidator() - self._validators['values'] = v_pie.ValuesValidator() - self._validators['valuessrc'] = v_pie.ValuessrcValidator() - self._validators['visible'] = v_pie.VisibleValidator() + self._validators["customdata"] = v_pie.CustomdataValidator() + self._validators["customdatasrc"] = v_pie.CustomdatasrcValidator() + self._validators["direction"] = v_pie.DirectionValidator() + self._validators["dlabel"] = v_pie.DlabelValidator() + self._validators["domain"] = v_pie.DomainValidator() + self._validators["hole"] = v_pie.HoleValidator() + self._validators["hoverinfo"] = v_pie.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_pie.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_pie.HoverlabelValidator() + self._validators["hovertemplate"] = v_pie.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_pie.HovertemplatesrcValidator() + self._validators["hovertext"] = v_pie.HovertextValidator() + self._validators["hovertextsrc"] = v_pie.HovertextsrcValidator() + self._validators["ids"] = v_pie.IdsValidator() + self._validators["idssrc"] = v_pie.IdssrcValidator() + self._validators["insidetextfont"] = v_pie.InsidetextfontValidator() + self._validators["label0"] = v_pie.Label0Validator() + self._validators["labels"] = v_pie.LabelsValidator() + self._validators["labelssrc"] = v_pie.LabelssrcValidator() + self._validators["legendgroup"] = v_pie.LegendgroupValidator() + self._validators["marker"] = v_pie.MarkerValidator() + self._validators["meta"] = v_pie.MetaValidator() + self._validators["metasrc"] = v_pie.MetasrcValidator() + self._validators["name"] = v_pie.NameValidator() + self._validators["opacity"] = v_pie.OpacityValidator() + self._validators["outsidetextfont"] = v_pie.OutsidetextfontValidator() + self._validators["pull"] = v_pie.PullValidator() + self._validators["pullsrc"] = v_pie.PullsrcValidator() + self._validators["rotation"] = v_pie.RotationValidator() + self._validators["scalegroup"] = v_pie.ScalegroupValidator() + self._validators["showlegend"] = v_pie.ShowlegendValidator() + self._validators["sort"] = v_pie.SortValidator() + self._validators["stream"] = v_pie.StreamValidator() + self._validators["text"] = v_pie.TextValidator() + self._validators["textfont"] = v_pie.TextfontValidator() + self._validators["textinfo"] = v_pie.TextinfoValidator() + self._validators["textposition"] = v_pie.TextpositionValidator() + self._validators["textpositionsrc"] = v_pie.TextpositionsrcValidator() + self._validators["textsrc"] = v_pie.TextsrcValidator() + self._validators["title"] = v_pie.TitleValidator() + self._validators["uid"] = v_pie.UidValidator() + self._validators["uirevision"] = v_pie.UirevisionValidator() + self._validators["values"] = v_pie.ValuesValidator() + self._validators["valuessrc"] = v_pie.ValuessrcValidator() + self._validators["visible"] = v_pie.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('direction', None) - self['direction'] = direction if direction is not None else _v - _v = arg.pop('dlabel', None) - self['dlabel'] = dlabel if dlabel is not None else _v - _v = arg.pop('domain', None) - self['domain'] = domain if domain is not None else _v - _v = arg.pop('hole', None) - self['hole'] = hole if hole is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('insidetextfont', None) - self['insidetextfont' - ] = insidetextfont if insidetextfont is not None else _v - _v = arg.pop('label0', None) - self['label0'] = label0 if label0 is not None else _v - _v = arg.pop('labels', None) - self['labels'] = labels if labels is not None else _v - _v = arg.pop('labelssrc', None) - self['labelssrc'] = labelssrc if labelssrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('outsidetextfont', None) - self['outsidetextfont' - ] = outsidetextfont if outsidetextfont is not None else _v - _v = arg.pop('pull', None) - self['pull'] = pull if pull is not None else _v - _v = arg.pop('pullsrc', None) - self['pullsrc'] = pullsrc if pullsrc is not None else _v - _v = arg.pop('rotation', None) - self['rotation'] = rotation if rotation is not None else _v - _v = arg.pop('scalegroup', None) - self['scalegroup'] = scalegroup if scalegroup is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('sort', None) - self['sort'] = sort if sort is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v - _v = arg.pop('textinfo', None) - self['textinfo'] = textinfo if textinfo is not None else _v - _v = arg.pop('textposition', None) - self['textposition'] = textposition if textposition is not None else _v - _v = arg.pop('textpositionsrc', None) - self['textpositionsrc' - ] = textpositionsrc if textpositionsrc is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("direction", None) + self["direction"] = direction if direction is not None else _v + _v = arg.pop("dlabel", None) + self["dlabel"] = dlabel if dlabel is not None else _v + _v = arg.pop("domain", None) + self["domain"] = domain if domain is not None else _v + _v = arg.pop("hole", None) + self["hole"] = hole if hole is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("insidetextfont", None) + self["insidetextfont"] = insidetextfont if insidetextfont is not None else _v + _v = arg.pop("label0", None) + self["label0"] = label0 if label0 is not None else _v + _v = arg.pop("labels", None) + self["labels"] = labels if labels is not None else _v + _v = arg.pop("labelssrc", None) + self["labelssrc"] = labelssrc if labelssrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("outsidetextfont", None) + self["outsidetextfont"] = outsidetextfont if outsidetextfont is not None else _v + _v = arg.pop("pull", None) + self["pull"] = pull if pull is not None else _v + _v = arg.pop("pullsrc", None) + self["pullsrc"] = pullsrc if pullsrc is not None else _v + _v = arg.pop("rotation", None) + self["rotation"] = rotation if rotation is not None else _v + _v = arg.pop("scalegroup", None) + self["scalegroup"] = scalegroup if scalegroup is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("sort", None) + self["sort"] = sort if sort is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v + _v = arg.pop("textinfo", None) + self["textinfo"] = textinfo if textinfo is not None else _v + _v = arg.pop("textposition", None) + self["textposition"] = textposition if textposition is not None else _v + _v = arg.pop("textpositionsrc", None) + self["textpositionsrc"] = textpositionsrc if textpositionsrc is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleposition', None) + self["titlefont"] = _v + _v = arg.pop("titleposition", None) _v = titleposition if titleposition is not None else _v if _v is not None: - self['titleposition'] = _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('values', None) - self['values'] = values if values is not None else _v - _v = arg.pop('valuessrc', None) - self['valuessrc'] = valuessrc if valuessrc is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + self["titleposition"] = _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("values", None) + self["values"] = values if values is not None else _v + _v = arg.pop("valuessrc", None) + self["valuessrc"] = valuessrc if valuessrc is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'pie' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='pie', val='pie' + + self._props["type"] = "pie" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="pie", val="pie" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -44183,11 +44057,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -44203,11 +44077,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # dimensions # ---------- @@ -44301,11 +44175,11 @@ def dimensions(self): ------- tuple[plotly.graph_objs.parcoords.Dimension] """ - return self['dimensions'] + return self["dimensions"] @dimensions.setter def dimensions(self, val): - self['dimensions'] = val + self["dimensions"] = val # dimensiondefaults # ----------------- @@ -44329,11 +44203,11 @@ def dimensiondefaults(self): ------- plotly.graph_objs.parcoords.Dimension """ - return self['dimensiondefaults'] + return self["dimensiondefaults"] @dimensiondefaults.setter def dimensiondefaults(self, val): - self['dimensiondefaults'] = val + self["dimensiondefaults"] = val # domain # ------ @@ -44366,11 +44240,11 @@ def domain(self): ------- plotly.graph_objs.parcoords.Domain """ - return self['domain'] + return self["domain"] @domain.setter def domain(self, val): - self['domain'] = val + self["domain"] = val # ids # --- @@ -44388,11 +44262,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -44408,11 +44282,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # labelfont # --------- @@ -44453,11 +44327,11 @@ def labelfont(self): ------- plotly.graph_objs.parcoords.Labelfont """ - return self['labelfont'] + return self["labelfont"] @labelfont.setter def labelfont(self, val): - self['labelfont'] = val + self["labelfont"] = val # line # ---- @@ -44562,11 +44436,11 @@ def line(self): ------- plotly.graph_objs.parcoords.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # meta # ---- @@ -44590,11 +44464,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -44610,11 +44484,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -44632,11 +44506,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # rangefont # --------- @@ -44677,11 +44551,11 @@ def rangefont(self): ------- plotly.graph_objs.parcoords.Rangefont """ - return self['rangefont'] + return self["rangefont"] @rangefont.setter def rangefont(self, val): - self['rangefont'] = val + self["rangefont"] = val # stream # ------ @@ -44710,11 +44584,11 @@ def stream(self): ------- plotly.graph_objs.parcoords.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # tickfont # -------- @@ -44755,11 +44629,11 @@ def tickfont(self): ------- plotly.graph_objs.parcoords.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # uid # --- @@ -44777,11 +44651,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -44810,11 +44684,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -44833,23 +44707,23 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -45060,7 +44934,7 @@ def __init__( ------- Parcoords """ - super(Parcoords, self).__init__('parcoords') + super(Parcoords, self).__init__("parcoords") # Validate arg # ------------ @@ -45080,84 +44954,83 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (parcoords as v_parcoords) + from plotly.validators import parcoords as v_parcoords # Initialize validators # --------------------- - self._validators['customdata'] = v_parcoords.CustomdataValidator() - self._validators['customdatasrc'] = v_parcoords.CustomdatasrcValidator( - ) - self._validators['dimensions'] = v_parcoords.DimensionsValidator() - self._validators['dimensiondefaults'] = v_parcoords.DimensionValidator( - ) - self._validators['domain'] = v_parcoords.DomainValidator() - self._validators['ids'] = v_parcoords.IdsValidator() - self._validators['idssrc'] = v_parcoords.IdssrcValidator() - self._validators['labelfont'] = v_parcoords.LabelfontValidator() - self._validators['line'] = v_parcoords.LineValidator() - self._validators['meta'] = v_parcoords.MetaValidator() - self._validators['metasrc'] = v_parcoords.MetasrcValidator() - self._validators['name'] = v_parcoords.NameValidator() - self._validators['rangefont'] = v_parcoords.RangefontValidator() - self._validators['stream'] = v_parcoords.StreamValidator() - self._validators['tickfont'] = v_parcoords.TickfontValidator() - self._validators['uid'] = v_parcoords.UidValidator() - self._validators['uirevision'] = v_parcoords.UirevisionValidator() - self._validators['visible'] = v_parcoords.VisibleValidator() + self._validators["customdata"] = v_parcoords.CustomdataValidator() + self._validators["customdatasrc"] = v_parcoords.CustomdatasrcValidator() + self._validators["dimensions"] = v_parcoords.DimensionsValidator() + self._validators["dimensiondefaults"] = v_parcoords.DimensionValidator() + self._validators["domain"] = v_parcoords.DomainValidator() + self._validators["ids"] = v_parcoords.IdsValidator() + self._validators["idssrc"] = v_parcoords.IdssrcValidator() + self._validators["labelfont"] = v_parcoords.LabelfontValidator() + self._validators["line"] = v_parcoords.LineValidator() + self._validators["meta"] = v_parcoords.MetaValidator() + self._validators["metasrc"] = v_parcoords.MetasrcValidator() + self._validators["name"] = v_parcoords.NameValidator() + self._validators["rangefont"] = v_parcoords.RangefontValidator() + self._validators["stream"] = v_parcoords.StreamValidator() + self._validators["tickfont"] = v_parcoords.TickfontValidator() + self._validators["uid"] = v_parcoords.UidValidator() + self._validators["uirevision"] = v_parcoords.UirevisionValidator() + self._validators["visible"] = v_parcoords.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('dimensions', None) - self['dimensions'] = dimensions if dimensions is not None else _v - _v = arg.pop('dimensiondefaults', None) - self['dimensiondefaults' - ] = dimensiondefaults if dimensiondefaults is not None else _v - _v = arg.pop('domain', None) - self['domain'] = domain if domain is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('labelfont', None) - self['labelfont'] = labelfont if labelfont is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('rangefont', None) - self['rangefont'] = rangefont if rangefont is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("dimensions", None) + self["dimensions"] = dimensions if dimensions is not None else _v + _v = arg.pop("dimensiondefaults", None) + self["dimensiondefaults"] = ( + dimensiondefaults if dimensiondefaults is not None else _v + ) + _v = arg.pop("domain", None) + self["domain"] = domain if domain is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("labelfont", None) + self["labelfont"] = labelfont if labelfont is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("rangefont", None) + self["rangefont"] = rangefont if rangefont is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'parcoords' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='parcoords', val='parcoords' + + self._props["type"] = "parcoords" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="parcoords", val="parcoords" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -45193,11 +45066,11 @@ def arrangement(self): ------- Any """ - return self['arrangement'] + return self["arrangement"] @arrangement.setter def arrangement(self, val): - self['arrangement'] = val + self["arrangement"] = val # bundlecolors # ------------ @@ -45214,11 +45087,11 @@ def bundlecolors(self): ------- bool """ - return self['bundlecolors'] + return self["bundlecolors"] @bundlecolors.setter def bundlecolors(self, val): - self['bundlecolors'] = val + self["bundlecolors"] = val # counts # ------ @@ -45236,11 +45109,11 @@ def counts(self): ------- int|float|numpy.ndarray """ - return self['counts'] + return self["counts"] @counts.setter def counts(self, val): - self['counts'] = val + self["counts"] = val # countssrc # --------- @@ -45256,11 +45129,11 @@ def countssrc(self): ------- str """ - return self['countssrc'] + return self["countssrc"] @countssrc.setter def countssrc(self, val): - self['countssrc'] = val + self["countssrc"] = val # dimensions # ---------- @@ -45332,11 +45205,11 @@ def dimensions(self): ------- tuple[plotly.graph_objs.parcats.Dimension] """ - return self['dimensions'] + return self["dimensions"] @dimensions.setter def dimensions(self, val): - self['dimensions'] = val + self["dimensions"] = val # dimensiondefaults # ----------------- @@ -45360,11 +45233,11 @@ def dimensiondefaults(self): ------- plotly.graph_objs.parcats.Dimension """ - return self['dimensiondefaults'] + return self["dimensiondefaults"] @dimensiondefaults.setter def dimensiondefaults(self, val): - self['dimensiondefaults'] = val + self["dimensiondefaults"] = val # domain # ------ @@ -45397,11 +45270,11 @@ def domain(self): ------- plotly.graph_objs.parcats.Domain """ - return self['domain'] + return self["domain"] @domain.setter def domain(self, val): - self['domain'] = val + self["domain"] = val # hoverinfo # --------- @@ -45422,11 +45295,11 @@ def hoverinfo(self): ------- Any """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoveron # ------- @@ -45447,11 +45320,11 @@ def hoveron(self): ------- Any """ - return self['hoveron'] + return self["hoveron"] @hoveron.setter def hoveron(self, val): - self['hoveron'] = val + self["hoveron"] = val # hovertemplate # ------------- @@ -45483,11 +45356,11 @@ def hovertemplate(self): ------- str """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # labelfont # --------- @@ -45528,11 +45401,11 @@ def labelfont(self): ------- plotly.graph_objs.parcats.Labelfont """ - return self['labelfont'] + return self["labelfont"] @labelfont.setter def labelfont(self, val): - self['labelfont'] = val + self["labelfont"] = val # line # ---- @@ -45663,11 +45536,11 @@ def line(self): ------- plotly.graph_objs.parcats.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # meta # ---- @@ -45691,11 +45564,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -45711,11 +45584,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -45733,11 +45606,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # sortpaths # --------- @@ -45756,11 +45629,11 @@ def sortpaths(self): ------- Any """ - return self['sortpaths'] + return self["sortpaths"] @sortpaths.setter def sortpaths(self, val): - self['sortpaths'] = val + self["sortpaths"] = val # stream # ------ @@ -45789,11 +45662,11 @@ def stream(self): ------- plotly.graph_objs.parcats.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # tickfont # -------- @@ -45834,11 +45707,11 @@ def tickfont(self): ------- plotly.graph_objs.parcats.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # uid # --- @@ -45856,11 +45729,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -45889,11 +45762,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -45912,23 +45785,23 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -46217,7 +46090,7 @@ def __init__( ------- Parcats """ - super(Parcats, self).__init__('parcats') + super(Parcats, self).__init__("parcats") # Validate arg # ------------ @@ -46237,91 +46110,92 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (parcats as v_parcats) + from plotly.validators import parcats as v_parcats # Initialize validators # --------------------- - self._validators['arrangement'] = v_parcats.ArrangementValidator() - self._validators['bundlecolors'] = v_parcats.BundlecolorsValidator() - self._validators['counts'] = v_parcats.CountsValidator() - self._validators['countssrc'] = v_parcats.CountssrcValidator() - self._validators['dimensions'] = v_parcats.DimensionsValidator() - self._validators['dimensiondefaults'] = v_parcats.DimensionValidator() - self._validators['domain'] = v_parcats.DomainValidator() - self._validators['hoverinfo'] = v_parcats.HoverinfoValidator() - self._validators['hoveron'] = v_parcats.HoveronValidator() - self._validators['hovertemplate'] = v_parcats.HovertemplateValidator() - self._validators['labelfont'] = v_parcats.LabelfontValidator() - self._validators['line'] = v_parcats.LineValidator() - self._validators['meta'] = v_parcats.MetaValidator() - self._validators['metasrc'] = v_parcats.MetasrcValidator() - self._validators['name'] = v_parcats.NameValidator() - self._validators['sortpaths'] = v_parcats.SortpathsValidator() - self._validators['stream'] = v_parcats.StreamValidator() - self._validators['tickfont'] = v_parcats.TickfontValidator() - self._validators['uid'] = v_parcats.UidValidator() - self._validators['uirevision'] = v_parcats.UirevisionValidator() - self._validators['visible'] = v_parcats.VisibleValidator() + self._validators["arrangement"] = v_parcats.ArrangementValidator() + self._validators["bundlecolors"] = v_parcats.BundlecolorsValidator() + self._validators["counts"] = v_parcats.CountsValidator() + self._validators["countssrc"] = v_parcats.CountssrcValidator() + self._validators["dimensions"] = v_parcats.DimensionsValidator() + self._validators["dimensiondefaults"] = v_parcats.DimensionValidator() + self._validators["domain"] = v_parcats.DomainValidator() + self._validators["hoverinfo"] = v_parcats.HoverinfoValidator() + self._validators["hoveron"] = v_parcats.HoveronValidator() + self._validators["hovertemplate"] = v_parcats.HovertemplateValidator() + self._validators["labelfont"] = v_parcats.LabelfontValidator() + self._validators["line"] = v_parcats.LineValidator() + self._validators["meta"] = v_parcats.MetaValidator() + self._validators["metasrc"] = v_parcats.MetasrcValidator() + self._validators["name"] = v_parcats.NameValidator() + self._validators["sortpaths"] = v_parcats.SortpathsValidator() + self._validators["stream"] = v_parcats.StreamValidator() + self._validators["tickfont"] = v_parcats.TickfontValidator() + self._validators["uid"] = v_parcats.UidValidator() + self._validators["uirevision"] = v_parcats.UirevisionValidator() + self._validators["visible"] = v_parcats.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('arrangement', None) - self['arrangement'] = arrangement if arrangement is not None else _v - _v = arg.pop('bundlecolors', None) - self['bundlecolors'] = bundlecolors if bundlecolors is not None else _v - _v = arg.pop('counts', None) - self['counts'] = counts if counts is not None else _v - _v = arg.pop('countssrc', None) - self['countssrc'] = countssrc if countssrc is not None else _v - _v = arg.pop('dimensions', None) - self['dimensions'] = dimensions if dimensions is not None else _v - _v = arg.pop('dimensiondefaults', None) - self['dimensiondefaults' - ] = dimensiondefaults if dimensiondefaults is not None else _v - _v = arg.pop('domain', None) - self['domain'] = domain if domain is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoveron', None) - self['hoveron'] = hoveron if hoveron is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('labelfont', None) - self['labelfont'] = labelfont if labelfont is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('sortpaths', None) - self['sortpaths'] = sortpaths if sortpaths is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("arrangement", None) + self["arrangement"] = arrangement if arrangement is not None else _v + _v = arg.pop("bundlecolors", None) + self["bundlecolors"] = bundlecolors if bundlecolors is not None else _v + _v = arg.pop("counts", None) + self["counts"] = counts if counts is not None else _v + _v = arg.pop("countssrc", None) + self["countssrc"] = countssrc if countssrc is not None else _v + _v = arg.pop("dimensions", None) + self["dimensions"] = dimensions if dimensions is not None else _v + _v = arg.pop("dimensiondefaults", None) + self["dimensiondefaults"] = ( + dimensiondefaults if dimensiondefaults is not None else _v + ) + _v = arg.pop("domain", None) + self["domain"] = domain if domain is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoveron", None) + self["hoveron"] = hoveron if hoveron is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("labelfont", None) + self["labelfont"] = labelfont if labelfont is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("sortpaths", None) + self["sortpaths"] = sortpaths if sortpaths is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'parcats' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='parcats', val='parcats' + + self._props["type"] = "parcats" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="parcats", val="parcats" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -46352,11 +46226,11 @@ def close(self): ------- numpy.ndarray """ - return self['close'] + return self["close"] @close.setter def close(self, val): - self['close'] = val + self["close"] = val # closesrc # -------- @@ -46372,11 +46246,11 @@ def closesrc(self): ------- str """ - return self['closesrc'] + return self["closesrc"] @closesrc.setter def closesrc(self, val): - self['closesrc'] = val + self["closesrc"] = val # customdata # ---------- @@ -46395,11 +46269,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -46415,11 +46289,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # decreasing # ---------- @@ -46442,11 +46316,11 @@ def decreasing(self): ------- plotly.graph_objs.ohlc.Decreasing """ - return self['decreasing'] + return self["decreasing"] @decreasing.setter def decreasing(self, val): - self['decreasing'] = val + self["decreasing"] = val # high # ---- @@ -46462,11 +46336,11 @@ def high(self): ------- numpy.ndarray """ - return self['high'] + return self["high"] @high.setter def high(self, val): - self['high'] = val + self["high"] = val # highsrc # ------- @@ -46482,11 +46356,11 @@ def highsrc(self): ------- str """ - return self['highsrc'] + return self["highsrc"] @highsrc.setter def highsrc(self, val): - self['highsrc'] = val + self["highsrc"] = val # hoverinfo # --------- @@ -46508,11 +46382,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -46528,11 +46402,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -46590,11 +46464,11 @@ def hoverlabel(self): ------- plotly.graph_objs.ohlc.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertext # --------- @@ -46612,11 +46486,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -46632,11 +46506,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -46654,11 +46528,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -46674,11 +46548,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # increasing # ---------- @@ -46701,11 +46575,11 @@ def increasing(self): ------- plotly.graph_objs.ohlc.Increasing """ - return self['increasing'] + return self["increasing"] @increasing.setter def increasing(self, val): - self['increasing'] = val + self["increasing"] = val # legendgroup # ----------- @@ -46724,11 +46598,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # line # ---- @@ -46761,11 +46635,11 @@ def line(self): ------- plotly.graph_objs.ohlc.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # low # --- @@ -46781,11 +46655,11 @@ def low(self): ------- numpy.ndarray """ - return self['low'] + return self["low"] @low.setter def low(self, val): - self['low'] = val + self["low"] = val # lowsrc # ------ @@ -46801,11 +46675,11 @@ def lowsrc(self): ------- str """ - return self['lowsrc'] + return self["lowsrc"] @lowsrc.setter def lowsrc(self, val): - self['lowsrc'] = val + self["lowsrc"] = val # meta # ---- @@ -46829,11 +46703,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -46849,11 +46723,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -46871,11 +46745,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -46891,11 +46765,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # open # ---- @@ -46911,11 +46785,11 @@ def open(self): ------- numpy.ndarray """ - return self['open'] + return self["open"] @open.setter def open(self, val): - self['open'] = val + self["open"] = val # opensrc # ------- @@ -46931,11 +46805,11 @@ def opensrc(self): ------- str """ - return self['opensrc'] + return self["opensrc"] @opensrc.setter def opensrc(self, val): - self['opensrc'] = val + self["opensrc"] = val # selectedpoints # -------------- @@ -46955,11 +46829,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -46976,11 +46850,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -47009,11 +46883,11 @@ def stream(self): ------- plotly.graph_objs.ohlc.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -47034,11 +46908,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -47054,11 +46928,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # tickwidth # --------- @@ -47075,11 +46949,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # uid # --- @@ -47097,11 +46971,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -47130,11 +47004,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -47153,11 +47027,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -47174,11 +47048,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xaxis # ----- @@ -47199,11 +47073,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # xcalendar # --------- @@ -47223,11 +47097,11 @@ def xcalendar(self): ------- Any """ - return self['xcalendar'] + return self["xcalendar"] @xcalendar.setter def xcalendar(self, val): - self['xcalendar'] = val + self["xcalendar"] = val # xsrc # ---- @@ -47243,11 +47117,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # yaxis # ----- @@ -47268,23 +47142,23 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -47645,7 +47519,7 @@ def __init__( ------- Ohlc """ - super(Ohlc, self).__init__('ohlc') + super(Ohlc, self).__init__("ohlc") # Validate arg # ------------ @@ -47665,145 +47539,144 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (ohlc as v_ohlc) + from plotly.validators import ohlc as v_ohlc # Initialize validators # --------------------- - self._validators['close'] = v_ohlc.CloseValidator() - self._validators['closesrc'] = v_ohlc.ClosesrcValidator() - self._validators['customdata'] = v_ohlc.CustomdataValidator() - self._validators['customdatasrc'] = v_ohlc.CustomdatasrcValidator() - self._validators['decreasing'] = v_ohlc.DecreasingValidator() - self._validators['high'] = v_ohlc.HighValidator() - self._validators['highsrc'] = v_ohlc.HighsrcValidator() - self._validators['hoverinfo'] = v_ohlc.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_ohlc.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_ohlc.HoverlabelValidator() - self._validators['hovertext'] = v_ohlc.HovertextValidator() - self._validators['hovertextsrc'] = v_ohlc.HovertextsrcValidator() - self._validators['ids'] = v_ohlc.IdsValidator() - self._validators['idssrc'] = v_ohlc.IdssrcValidator() - self._validators['increasing'] = v_ohlc.IncreasingValidator() - self._validators['legendgroup'] = v_ohlc.LegendgroupValidator() - self._validators['line'] = v_ohlc.LineValidator() - self._validators['low'] = v_ohlc.LowValidator() - self._validators['lowsrc'] = v_ohlc.LowsrcValidator() - self._validators['meta'] = v_ohlc.MetaValidator() - self._validators['metasrc'] = v_ohlc.MetasrcValidator() - self._validators['name'] = v_ohlc.NameValidator() - self._validators['opacity'] = v_ohlc.OpacityValidator() - self._validators['open'] = v_ohlc.OpenValidator() - self._validators['opensrc'] = v_ohlc.OpensrcValidator() - self._validators['selectedpoints'] = v_ohlc.SelectedpointsValidator() - self._validators['showlegend'] = v_ohlc.ShowlegendValidator() - self._validators['stream'] = v_ohlc.StreamValidator() - self._validators['text'] = v_ohlc.TextValidator() - self._validators['textsrc'] = v_ohlc.TextsrcValidator() - self._validators['tickwidth'] = v_ohlc.TickwidthValidator() - self._validators['uid'] = v_ohlc.UidValidator() - self._validators['uirevision'] = v_ohlc.UirevisionValidator() - self._validators['visible'] = v_ohlc.VisibleValidator() - self._validators['x'] = v_ohlc.XValidator() - self._validators['xaxis'] = v_ohlc.XAxisValidator() - self._validators['xcalendar'] = v_ohlc.XcalendarValidator() - self._validators['xsrc'] = v_ohlc.XsrcValidator() - self._validators['yaxis'] = v_ohlc.YAxisValidator() + self._validators["close"] = v_ohlc.CloseValidator() + self._validators["closesrc"] = v_ohlc.ClosesrcValidator() + self._validators["customdata"] = v_ohlc.CustomdataValidator() + self._validators["customdatasrc"] = v_ohlc.CustomdatasrcValidator() + self._validators["decreasing"] = v_ohlc.DecreasingValidator() + self._validators["high"] = v_ohlc.HighValidator() + self._validators["highsrc"] = v_ohlc.HighsrcValidator() + self._validators["hoverinfo"] = v_ohlc.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_ohlc.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_ohlc.HoverlabelValidator() + self._validators["hovertext"] = v_ohlc.HovertextValidator() + self._validators["hovertextsrc"] = v_ohlc.HovertextsrcValidator() + self._validators["ids"] = v_ohlc.IdsValidator() + self._validators["idssrc"] = v_ohlc.IdssrcValidator() + self._validators["increasing"] = v_ohlc.IncreasingValidator() + self._validators["legendgroup"] = v_ohlc.LegendgroupValidator() + self._validators["line"] = v_ohlc.LineValidator() + self._validators["low"] = v_ohlc.LowValidator() + self._validators["lowsrc"] = v_ohlc.LowsrcValidator() + self._validators["meta"] = v_ohlc.MetaValidator() + self._validators["metasrc"] = v_ohlc.MetasrcValidator() + self._validators["name"] = v_ohlc.NameValidator() + self._validators["opacity"] = v_ohlc.OpacityValidator() + self._validators["open"] = v_ohlc.OpenValidator() + self._validators["opensrc"] = v_ohlc.OpensrcValidator() + self._validators["selectedpoints"] = v_ohlc.SelectedpointsValidator() + self._validators["showlegend"] = v_ohlc.ShowlegendValidator() + self._validators["stream"] = v_ohlc.StreamValidator() + self._validators["text"] = v_ohlc.TextValidator() + self._validators["textsrc"] = v_ohlc.TextsrcValidator() + self._validators["tickwidth"] = v_ohlc.TickwidthValidator() + self._validators["uid"] = v_ohlc.UidValidator() + self._validators["uirevision"] = v_ohlc.UirevisionValidator() + self._validators["visible"] = v_ohlc.VisibleValidator() + self._validators["x"] = v_ohlc.XValidator() + self._validators["xaxis"] = v_ohlc.XAxisValidator() + self._validators["xcalendar"] = v_ohlc.XcalendarValidator() + self._validators["xsrc"] = v_ohlc.XsrcValidator() + self._validators["yaxis"] = v_ohlc.YAxisValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('close', None) - self['close'] = close if close is not None else _v - _v = arg.pop('closesrc', None) - self['closesrc'] = closesrc if closesrc is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('decreasing', None) - self['decreasing'] = decreasing if decreasing is not None else _v - _v = arg.pop('high', None) - self['high'] = high if high is not None else _v - _v = arg.pop('highsrc', None) - self['highsrc'] = highsrc if highsrc is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('increasing', None) - self['increasing'] = increasing if increasing is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('low', None) - self['low'] = low if low is not None else _v - _v = arg.pop('lowsrc', None) - self['lowsrc'] = lowsrc if lowsrc is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('open', None) - self['open'] = open if open is not None else _v - _v = arg.pop('opensrc', None) - self['opensrc'] = opensrc if opensrc is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('xcalendar', None) - self['xcalendar'] = xcalendar if xcalendar is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v + _v = arg.pop("close", None) + self["close"] = close if close is not None else _v + _v = arg.pop("closesrc", None) + self["closesrc"] = closesrc if closesrc is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("decreasing", None) + self["decreasing"] = decreasing if decreasing is not None else _v + _v = arg.pop("high", None) + self["high"] = high if high is not None else _v + _v = arg.pop("highsrc", None) + self["highsrc"] = highsrc if highsrc is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("increasing", None) + self["increasing"] = increasing if increasing is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("low", None) + self["low"] = low if low is not None else _v + _v = arg.pop("lowsrc", None) + self["lowsrc"] = lowsrc if lowsrc is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("open", None) + self["open"] = open if open is not None else _v + _v = arg.pop("opensrc", None) + self["opensrc"] = opensrc if opensrc is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("xcalendar", None) + self["xcalendar"] = xcalendar if xcalendar is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'ohlc' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='ohlc', val='ohlc' + + self._props["type"] = "ohlc" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="ohlc", val="ohlc" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -47849,11 +47722,11 @@ def alphahull(self): ------- int|float """ - return self['alphahull'] + return self["alphahull"] @alphahull.setter def alphahull(self, val): - self['alphahull'] = val + self["alphahull"] = val # autocolorscale # -------------- @@ -47874,11 +47747,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -47897,11 +47770,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -47919,11 +47792,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -47942,11 +47815,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -47964,11 +47837,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -48025,11 +47898,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -48052,11 +47925,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -48284,11 +48157,11 @@ def colorbar(self): ------- plotly.graph_objs.mesh3d.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -48321,11 +48194,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # contour # ------- @@ -48352,11 +48225,11 @@ def contour(self): ------- plotly.graph_objs.mesh3d.Contour """ - return self['contour'] + return self["contour"] @contour.setter def contour(self, val): - self['contour'] = val + self["contour"] = val # customdata # ---------- @@ -48375,11 +48248,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -48395,11 +48268,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # delaunayaxis # ------------ @@ -48419,11 +48292,11 @@ def delaunayaxis(self): ------- Any """ - return self['delaunayaxis'] + return self["delaunayaxis"] @delaunayaxis.setter def delaunayaxis(self, val): - self['delaunayaxis'] = val + self["delaunayaxis"] = val # facecolor # --------- @@ -48440,11 +48313,11 @@ def facecolor(self): ------- numpy.ndarray """ - return self['facecolor'] + return self["facecolor"] @facecolor.setter def facecolor(self, val): - self['facecolor'] = val + self["facecolor"] = val # facecolorsrc # ------------ @@ -48460,11 +48333,11 @@ def facecolorsrc(self): ------- str """ - return self['facecolorsrc'] + return self["facecolorsrc"] @facecolorsrc.setter def facecolorsrc(self, val): - self['facecolorsrc'] = val + self["facecolorsrc"] = val # flatshading # ----------- @@ -48482,11 +48355,11 @@ def flatshading(self): ------- bool """ - return self['flatshading'] + return self["flatshading"] @flatshading.setter def flatshading(self, val): - self['flatshading'] = val + self["flatshading"] = val # hoverinfo # --------- @@ -48508,11 +48381,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -48528,11 +48401,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -48587,11 +48460,11 @@ def hoverlabel(self): ------- plotly.graph_objs.mesh3d.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -48623,11 +48496,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -48643,11 +48516,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -48665,11 +48538,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -48685,11 +48558,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # i # - @@ -48711,11 +48584,11 @@ def i(self): ------- numpy.ndarray """ - return self['i'] + return self["i"] @i.setter def i(self, val): - self['i'] = val + self["i"] = val # ids # --- @@ -48733,11 +48606,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -48753,11 +48626,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # intensity # --------- @@ -48774,11 +48647,11 @@ def intensity(self): ------- numpy.ndarray """ - return self['intensity'] + return self["intensity"] @intensity.setter def intensity(self, val): - self['intensity'] = val + self["intensity"] = val # intensitysrc # ------------ @@ -48794,11 +48667,11 @@ def intensitysrc(self): ------- str """ - return self['intensitysrc'] + return self["intensitysrc"] @intensitysrc.setter def intensitysrc(self, val): - self['intensitysrc'] = val + self["intensitysrc"] = val # isrc # ---- @@ -48814,11 +48687,11 @@ def isrc(self): ------- str """ - return self['isrc'] + return self["isrc"] @isrc.setter def isrc(self, val): - self['isrc'] = val + self["isrc"] = val # j # - @@ -48840,11 +48713,11 @@ def j(self): ------- numpy.ndarray """ - return self['j'] + return self["j"] @j.setter def j(self, val): - self['j'] = val + self["j"] = val # jsrc # ---- @@ -48860,11 +48733,11 @@ def jsrc(self): ------- str """ - return self['jsrc'] + return self["jsrc"] @jsrc.setter def jsrc(self, val): - self['jsrc'] = val + self["jsrc"] = val # k # - @@ -48886,11 +48759,11 @@ def k(self): ------- numpy.ndarray """ - return self['k'] + return self["k"] @k.setter def k(self, val): - self['k'] = val + self["k"] = val # ksrc # ---- @@ -48906,11 +48779,11 @@ def ksrc(self): ------- str """ - return self['ksrc'] + return self["ksrc"] @ksrc.setter def ksrc(self, val): - self['ksrc'] = val + self["ksrc"] = val # lighting # -------- @@ -48954,11 +48827,11 @@ def lighting(self): ------- plotly.graph_objs.mesh3d.Lighting """ - return self['lighting'] + return self["lighting"] @lighting.setter def lighting(self, val): - self['lighting'] = val + self["lighting"] = val # lightposition # ------------- @@ -48987,11 +48860,11 @@ def lightposition(self): ------- plotly.graph_objs.mesh3d.Lightposition """ - return self['lightposition'] + return self["lightposition"] @lightposition.setter def lightposition(self, val): - self['lightposition'] = val + self["lightposition"] = val # meta # ---- @@ -49015,11 +48888,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -49035,11 +48908,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -49057,11 +48930,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -49082,11 +48955,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # reversescale # ------------ @@ -49104,11 +48977,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # scene # ----- @@ -49129,11 +49002,11 @@ def scene(self): ------- str """ - return self['scene'] + return self["scene"] @scene.setter def scene(self, val): - self['scene'] = val + self["scene"] = val # showscale # --------- @@ -49150,11 +49023,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # stream # ------ @@ -49183,11 +49056,11 @@ def stream(self): ------- plotly.graph_objs.mesh3d.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -49207,11 +49080,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -49227,11 +49100,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -49249,11 +49122,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -49282,11 +49155,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # vertexcolor # ----------- @@ -49305,11 +49178,11 @@ def vertexcolor(self): ------- numpy.ndarray """ - return self['vertexcolor'] + return self["vertexcolor"] @vertexcolor.setter def vertexcolor(self, val): - self['vertexcolor'] = val + self["vertexcolor"] = val # vertexcolorsrc # -------------- @@ -49325,11 +49198,11 @@ def vertexcolorsrc(self): ------- str """ - return self['vertexcolorsrc'] + return self["vertexcolorsrc"] @vertexcolorsrc.setter def vertexcolorsrc(self, val): - self['vertexcolorsrc'] = val + self["vertexcolorsrc"] = val # visible # ------- @@ -49348,11 +49221,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -49370,11 +49243,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xcalendar # --------- @@ -49394,11 +49267,11 @@ def xcalendar(self): ------- Any """ - return self['xcalendar'] + return self["xcalendar"] @xcalendar.setter def xcalendar(self, val): - self['xcalendar'] = val + self["xcalendar"] = val # xsrc # ---- @@ -49414,11 +49287,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -49436,11 +49309,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # ycalendar # --------- @@ -49460,11 +49333,11 @@ def ycalendar(self): ------- Any """ - return self['ycalendar'] + return self["ycalendar"] @ycalendar.setter def ycalendar(self, val): - self['ycalendar'] = val + self["ycalendar"] = val # ysrc # ---- @@ -49480,11 +49353,11 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # z # - @@ -49502,11 +49375,11 @@ def z(self): ------- numpy.ndarray """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # zcalendar # --------- @@ -49526,11 +49399,11 @@ def zcalendar(self): ------- Any """ - return self['zcalendar'] + return self["zcalendar"] @zcalendar.setter def zcalendar(self, val): - self['zcalendar'] = val + self["zcalendar"] = val # zsrc # ---- @@ -49546,23 +49419,23 @@ def zsrc(self): ------- str """ - return self['zsrc'] + return self["zsrc"] @zsrc.setter def zsrc(self, val): - self['zsrc'] = val + self["zsrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -50226,7 +50099,7 @@ def __init__( ------- Mesh3d """ - super(Mesh3d, self).__init__('mesh3d') + super(Mesh3d, self).__init__("mesh3d") # Validate arg # ------------ @@ -50246,213 +50119,209 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (mesh3d as v_mesh3d) + from plotly.validators import mesh3d as v_mesh3d # Initialize validators # --------------------- - self._validators['alphahull'] = v_mesh3d.AlphahullValidator() - self._validators['autocolorscale'] = v_mesh3d.AutocolorscaleValidator() - self._validators['cauto'] = v_mesh3d.CautoValidator() - self._validators['cmax'] = v_mesh3d.CmaxValidator() - self._validators['cmid'] = v_mesh3d.CmidValidator() - self._validators['cmin'] = v_mesh3d.CminValidator() - self._validators['color'] = v_mesh3d.ColorValidator() - self._validators['coloraxis'] = v_mesh3d.ColoraxisValidator() - self._validators['colorbar'] = v_mesh3d.ColorBarValidator() - self._validators['colorscale'] = v_mesh3d.ColorscaleValidator() - self._validators['contour'] = v_mesh3d.ContourValidator() - self._validators['customdata'] = v_mesh3d.CustomdataValidator() - self._validators['customdatasrc'] = v_mesh3d.CustomdatasrcValidator() - self._validators['delaunayaxis'] = v_mesh3d.DelaunayaxisValidator() - self._validators['facecolor'] = v_mesh3d.FacecolorValidator() - self._validators['facecolorsrc'] = v_mesh3d.FacecolorsrcValidator() - self._validators['flatshading'] = v_mesh3d.FlatshadingValidator() - self._validators['hoverinfo'] = v_mesh3d.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_mesh3d.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_mesh3d.HoverlabelValidator() - self._validators['hovertemplate'] = v_mesh3d.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_mesh3d.HovertemplatesrcValidator() - self._validators['hovertext'] = v_mesh3d.HovertextValidator() - self._validators['hovertextsrc'] = v_mesh3d.HovertextsrcValidator() - self._validators['i'] = v_mesh3d.IValidator() - self._validators['ids'] = v_mesh3d.IdsValidator() - self._validators['idssrc'] = v_mesh3d.IdssrcValidator() - self._validators['intensity'] = v_mesh3d.IntensityValidator() - self._validators['intensitysrc'] = v_mesh3d.IntensitysrcValidator() - self._validators['isrc'] = v_mesh3d.IsrcValidator() - self._validators['j'] = v_mesh3d.JValidator() - self._validators['jsrc'] = v_mesh3d.JsrcValidator() - self._validators['k'] = v_mesh3d.KValidator() - self._validators['ksrc'] = v_mesh3d.KsrcValidator() - self._validators['lighting'] = v_mesh3d.LightingValidator() - self._validators['lightposition'] = v_mesh3d.LightpositionValidator() - self._validators['meta'] = v_mesh3d.MetaValidator() - self._validators['metasrc'] = v_mesh3d.MetasrcValidator() - self._validators['name'] = v_mesh3d.NameValidator() - self._validators['opacity'] = v_mesh3d.OpacityValidator() - self._validators['reversescale'] = v_mesh3d.ReversescaleValidator() - self._validators['scene'] = v_mesh3d.SceneValidator() - self._validators['showscale'] = v_mesh3d.ShowscaleValidator() - self._validators['stream'] = v_mesh3d.StreamValidator() - self._validators['text'] = v_mesh3d.TextValidator() - self._validators['textsrc'] = v_mesh3d.TextsrcValidator() - self._validators['uid'] = v_mesh3d.UidValidator() - self._validators['uirevision'] = v_mesh3d.UirevisionValidator() - self._validators['vertexcolor'] = v_mesh3d.VertexcolorValidator() - self._validators['vertexcolorsrc'] = v_mesh3d.VertexcolorsrcValidator() - self._validators['visible'] = v_mesh3d.VisibleValidator() - self._validators['x'] = v_mesh3d.XValidator() - self._validators['xcalendar'] = v_mesh3d.XcalendarValidator() - self._validators['xsrc'] = v_mesh3d.XsrcValidator() - self._validators['y'] = v_mesh3d.YValidator() - self._validators['ycalendar'] = v_mesh3d.YcalendarValidator() - self._validators['ysrc'] = v_mesh3d.YsrcValidator() - self._validators['z'] = v_mesh3d.ZValidator() - self._validators['zcalendar'] = v_mesh3d.ZcalendarValidator() - self._validators['zsrc'] = v_mesh3d.ZsrcValidator() + self._validators["alphahull"] = v_mesh3d.AlphahullValidator() + self._validators["autocolorscale"] = v_mesh3d.AutocolorscaleValidator() + self._validators["cauto"] = v_mesh3d.CautoValidator() + self._validators["cmax"] = v_mesh3d.CmaxValidator() + self._validators["cmid"] = v_mesh3d.CmidValidator() + self._validators["cmin"] = v_mesh3d.CminValidator() + self._validators["color"] = v_mesh3d.ColorValidator() + self._validators["coloraxis"] = v_mesh3d.ColoraxisValidator() + self._validators["colorbar"] = v_mesh3d.ColorBarValidator() + self._validators["colorscale"] = v_mesh3d.ColorscaleValidator() + self._validators["contour"] = v_mesh3d.ContourValidator() + self._validators["customdata"] = v_mesh3d.CustomdataValidator() + self._validators["customdatasrc"] = v_mesh3d.CustomdatasrcValidator() + self._validators["delaunayaxis"] = v_mesh3d.DelaunayaxisValidator() + self._validators["facecolor"] = v_mesh3d.FacecolorValidator() + self._validators["facecolorsrc"] = v_mesh3d.FacecolorsrcValidator() + self._validators["flatshading"] = v_mesh3d.FlatshadingValidator() + self._validators["hoverinfo"] = v_mesh3d.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_mesh3d.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_mesh3d.HoverlabelValidator() + self._validators["hovertemplate"] = v_mesh3d.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_mesh3d.HovertemplatesrcValidator() + self._validators["hovertext"] = v_mesh3d.HovertextValidator() + self._validators["hovertextsrc"] = v_mesh3d.HovertextsrcValidator() + self._validators["i"] = v_mesh3d.IValidator() + self._validators["ids"] = v_mesh3d.IdsValidator() + self._validators["idssrc"] = v_mesh3d.IdssrcValidator() + self._validators["intensity"] = v_mesh3d.IntensityValidator() + self._validators["intensitysrc"] = v_mesh3d.IntensitysrcValidator() + self._validators["isrc"] = v_mesh3d.IsrcValidator() + self._validators["j"] = v_mesh3d.JValidator() + self._validators["jsrc"] = v_mesh3d.JsrcValidator() + self._validators["k"] = v_mesh3d.KValidator() + self._validators["ksrc"] = v_mesh3d.KsrcValidator() + self._validators["lighting"] = v_mesh3d.LightingValidator() + self._validators["lightposition"] = v_mesh3d.LightpositionValidator() + self._validators["meta"] = v_mesh3d.MetaValidator() + self._validators["metasrc"] = v_mesh3d.MetasrcValidator() + self._validators["name"] = v_mesh3d.NameValidator() + self._validators["opacity"] = v_mesh3d.OpacityValidator() + self._validators["reversescale"] = v_mesh3d.ReversescaleValidator() + self._validators["scene"] = v_mesh3d.SceneValidator() + self._validators["showscale"] = v_mesh3d.ShowscaleValidator() + self._validators["stream"] = v_mesh3d.StreamValidator() + self._validators["text"] = v_mesh3d.TextValidator() + self._validators["textsrc"] = v_mesh3d.TextsrcValidator() + self._validators["uid"] = v_mesh3d.UidValidator() + self._validators["uirevision"] = v_mesh3d.UirevisionValidator() + self._validators["vertexcolor"] = v_mesh3d.VertexcolorValidator() + self._validators["vertexcolorsrc"] = v_mesh3d.VertexcolorsrcValidator() + self._validators["visible"] = v_mesh3d.VisibleValidator() + self._validators["x"] = v_mesh3d.XValidator() + self._validators["xcalendar"] = v_mesh3d.XcalendarValidator() + self._validators["xsrc"] = v_mesh3d.XsrcValidator() + self._validators["y"] = v_mesh3d.YValidator() + self._validators["ycalendar"] = v_mesh3d.YcalendarValidator() + self._validators["ysrc"] = v_mesh3d.YsrcValidator() + self._validators["z"] = v_mesh3d.ZValidator() + self._validators["zcalendar"] = v_mesh3d.ZcalendarValidator() + self._validators["zsrc"] = v_mesh3d.ZsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('alphahull', None) - self['alphahull'] = alphahull if alphahull is not None else _v - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('contour', None) - self['contour'] = contour if contour is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('delaunayaxis', None) - self['delaunayaxis'] = delaunayaxis if delaunayaxis is not None else _v - _v = arg.pop('facecolor', None) - self['facecolor'] = facecolor if facecolor is not None else _v - _v = arg.pop('facecolorsrc', None) - self['facecolorsrc'] = facecolorsrc if facecolorsrc is not None else _v - _v = arg.pop('flatshading', None) - self['flatshading'] = flatshading if flatshading is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('i', None) - self['i'] = i if i is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('intensity', None) - self['intensity'] = intensity if intensity is not None else _v - _v = arg.pop('intensitysrc', None) - self['intensitysrc'] = intensitysrc if intensitysrc is not None else _v - _v = arg.pop('isrc', None) - self['isrc'] = isrc if isrc is not None else _v - _v = arg.pop('j', None) - self['j'] = j if j is not None else _v - _v = arg.pop('jsrc', None) - self['jsrc'] = jsrc if jsrc is not None else _v - _v = arg.pop('k', None) - self['k'] = k if k is not None else _v - _v = arg.pop('ksrc', None) - self['ksrc'] = ksrc if ksrc is not None else _v - _v = arg.pop('lighting', None) - self['lighting'] = lighting if lighting is not None else _v - _v = arg.pop('lightposition', None) - self['lightposition' - ] = lightposition if lightposition is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('scene', None) - self['scene'] = scene if scene is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('vertexcolor', None) - self['vertexcolor'] = vertexcolor if vertexcolor is not None else _v - _v = arg.pop('vertexcolorsrc', None) - self['vertexcolorsrc' - ] = vertexcolorsrc if vertexcolorsrc is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xcalendar', None) - self['xcalendar'] = xcalendar if xcalendar is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('ycalendar', None) - self['ycalendar'] = ycalendar if ycalendar is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v - _v = arg.pop('zcalendar', None) - self['zcalendar'] = zcalendar if zcalendar is not None else _v - _v = arg.pop('zsrc', None) - self['zsrc'] = zsrc if zsrc is not None else _v + _v = arg.pop("alphahull", None) + self["alphahull"] = alphahull if alphahull is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("contour", None) + self["contour"] = contour if contour is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("delaunayaxis", None) + self["delaunayaxis"] = delaunayaxis if delaunayaxis is not None else _v + _v = arg.pop("facecolor", None) + self["facecolor"] = facecolor if facecolor is not None else _v + _v = arg.pop("facecolorsrc", None) + self["facecolorsrc"] = facecolorsrc if facecolorsrc is not None else _v + _v = arg.pop("flatshading", None) + self["flatshading"] = flatshading if flatshading is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("i", None) + self["i"] = i if i is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("intensity", None) + self["intensity"] = intensity if intensity is not None else _v + _v = arg.pop("intensitysrc", None) + self["intensitysrc"] = intensitysrc if intensitysrc is not None else _v + _v = arg.pop("isrc", None) + self["isrc"] = isrc if isrc is not None else _v + _v = arg.pop("j", None) + self["j"] = j if j is not None else _v + _v = arg.pop("jsrc", None) + self["jsrc"] = jsrc if jsrc is not None else _v + _v = arg.pop("k", None) + self["k"] = k if k is not None else _v + _v = arg.pop("ksrc", None) + self["ksrc"] = ksrc if ksrc is not None else _v + _v = arg.pop("lighting", None) + self["lighting"] = lighting if lighting is not None else _v + _v = arg.pop("lightposition", None) + self["lightposition"] = lightposition if lightposition is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("scene", None) + self["scene"] = scene if scene is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("vertexcolor", None) + self["vertexcolor"] = vertexcolor if vertexcolor is not None else _v + _v = arg.pop("vertexcolorsrc", None) + self["vertexcolorsrc"] = vertexcolorsrc if vertexcolorsrc is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xcalendar", None) + self["xcalendar"] = xcalendar if xcalendar is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("ycalendar", None) + self["ycalendar"] = ycalendar if ycalendar is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v + _v = arg.pop("zcalendar", None) + self["zcalendar"] = zcalendar if zcalendar is not None else _v + _v = arg.pop("zsrc", None) + self["zsrc"] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'mesh3d' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='mesh3d', val='mesh3d' + + self._props["type"] = "mesh3d" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="mesh3d", val="mesh3d" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -50488,11 +50357,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # caps # ---- @@ -50521,11 +50390,11 @@ def caps(self): ------- plotly.graph_objs.isosurface.Caps """ - return self['caps'] + return self["caps"] @caps.setter def caps(self, val): - self['caps'] = val + self["caps"] = val # cauto # ----- @@ -50544,11 +50413,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -50565,11 +50434,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -50587,11 +50456,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -50608,11 +50477,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # coloraxis # --------- @@ -50635,11 +50504,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -50868,11 +50737,11 @@ def colorbar(self): ------- plotly.graph_objs.isosurface.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -50905,11 +50774,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # contour # ------- @@ -50936,11 +50805,11 @@ def contour(self): ------- plotly.graph_objs.isosurface.Contour """ - return self['contour'] + return self["contour"] @contour.setter def contour(self, val): - self['contour'] = val + self["contour"] = val # customdata # ---------- @@ -50959,11 +50828,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -50979,11 +50848,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # flatshading # ----------- @@ -51001,11 +50870,11 @@ def flatshading(self): ------- bool """ - return self['flatshading'] + return self["flatshading"] @flatshading.setter def flatshading(self, val): - self['flatshading'] = val + self["flatshading"] = val # hoverinfo # --------- @@ -51027,11 +50896,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -51047,11 +50916,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -51106,11 +50975,11 @@ def hoverlabel(self): ------- plotly.graph_objs.isosurface.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -51142,11 +51011,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -51162,11 +51031,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -51184,11 +51053,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -51204,11 +51073,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -51226,11 +51095,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -51246,11 +51115,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # isomax # ------ @@ -51266,11 +51135,11 @@ def isomax(self): ------- int|float """ - return self['isomax'] + return self["isomax"] @isomax.setter def isomax(self, val): - self['isomax'] = val + self["isomax"] = val # isomin # ------ @@ -51286,11 +51155,11 @@ def isomin(self): ------- int|float """ - return self['isomin'] + return self["isomin"] @isomin.setter def isomin(self, val): - self['isomin'] = val + self["isomin"] = val # lighting # -------- @@ -51334,11 +51203,11 @@ def lighting(self): ------- plotly.graph_objs.isosurface.Lighting """ - return self['lighting'] + return self["lighting"] @lighting.setter def lighting(self, val): - self['lighting'] = val + self["lighting"] = val # lightposition # ------------- @@ -51367,11 +51236,11 @@ def lightposition(self): ------- plotly.graph_objs.isosurface.Lightposition """ - return self['lightposition'] + return self["lightposition"] @lightposition.setter def lightposition(self, val): - self['lightposition'] = val + self["lightposition"] = val # meta # ---- @@ -51395,11 +51264,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -51415,11 +51284,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -51437,11 +51306,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -51462,11 +51331,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # reversescale # ------------ @@ -51484,11 +51353,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # scene # ----- @@ -51509,11 +51378,11 @@ def scene(self): ------- str """ - return self['scene'] + return self["scene"] @scene.setter def scene(self, val): - self['scene'] = val + self["scene"] = val # showscale # --------- @@ -51530,11 +51399,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # slices # ------ @@ -51563,11 +51432,11 @@ def slices(self): ------- plotly.graph_objs.isosurface.Slices """ - return self['slices'] + return self["slices"] @slices.setter def slices(self, val): - self['slices'] = val + self["slices"] = val # spaceframe # ---------- @@ -51600,11 +51469,11 @@ def spaceframe(self): ------- plotly.graph_objs.isosurface.Spaceframe """ - return self['spaceframe'] + return self["spaceframe"] @spaceframe.setter def spaceframe(self, val): - self['spaceframe'] = val + self["spaceframe"] = val # stream # ------ @@ -51633,11 +51502,11 @@ def stream(self): ------- plotly.graph_objs.isosurface.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # surface # ------- @@ -51683,11 +51552,11 @@ def surface(self): ------- plotly.graph_objs.isosurface.Surface """ - return self['surface'] + return self["surface"] @surface.setter def surface(self, val): - self['surface'] = val + self["surface"] = val # text # ---- @@ -51707,11 +51576,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -51727,11 +51596,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -51749,11 +51618,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -51782,11 +51651,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # value # ----- @@ -51802,11 +51671,11 @@ def value(self): ------- numpy.ndarray """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # valuesrc # -------- @@ -51822,11 +51691,11 @@ def valuesrc(self): ------- str """ - return self['valuesrc'] + return self["valuesrc"] @valuesrc.setter def valuesrc(self, val): - self['valuesrc'] = val + self["valuesrc"] = val # visible # ------- @@ -51845,11 +51714,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -51865,11 +51734,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xsrc # ---- @@ -51885,11 +51754,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -51905,11 +51774,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # ysrc # ---- @@ -51925,11 +51794,11 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # z # - @@ -51945,11 +51814,11 @@ def z(self): ------- numpy.ndarray """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # zsrc # ---- @@ -51965,23 +51834,23 @@ def zsrc(self): ------- str """ - return self['zsrc'] + return self["zsrc"] @zsrc.setter def zsrc(self, val): - self['zsrc'] = val + self["zsrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -52497,7 +52366,7 @@ def __init__( ------- Isosurface """ - super(Isosurface, self).__init__('isosurface') + super(Isosurface, self).__init__("isosurface") # Validate arg # ------------ @@ -52517,186 +52386,179 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (isosurface as v_isosurface) + from plotly.validators import isosurface as v_isosurface # Initialize validators # --------------------- - self._validators['autocolorscale' - ] = v_isosurface.AutocolorscaleValidator() - self._validators['caps'] = v_isosurface.CapsValidator() - self._validators['cauto'] = v_isosurface.CautoValidator() - self._validators['cmax'] = v_isosurface.CmaxValidator() - self._validators['cmid'] = v_isosurface.CmidValidator() - self._validators['cmin'] = v_isosurface.CminValidator() - self._validators['coloraxis'] = v_isosurface.ColoraxisValidator() - self._validators['colorbar'] = v_isosurface.ColorBarValidator() - self._validators['colorscale'] = v_isosurface.ColorscaleValidator() - self._validators['contour'] = v_isosurface.ContourValidator() - self._validators['customdata'] = v_isosurface.CustomdataValidator() - self._validators['customdatasrc' - ] = v_isosurface.CustomdatasrcValidator() - self._validators['flatshading'] = v_isosurface.FlatshadingValidator() - self._validators['hoverinfo'] = v_isosurface.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_isosurface.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_isosurface.HoverlabelValidator() - self._validators['hovertemplate' - ] = v_isosurface.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_isosurface.HovertemplatesrcValidator() - self._validators['hovertext'] = v_isosurface.HovertextValidator() - self._validators['hovertextsrc'] = v_isosurface.HovertextsrcValidator() - self._validators['ids'] = v_isosurface.IdsValidator() - self._validators['idssrc'] = v_isosurface.IdssrcValidator() - self._validators['isomax'] = v_isosurface.IsomaxValidator() - self._validators['isomin'] = v_isosurface.IsominValidator() - self._validators['lighting'] = v_isosurface.LightingValidator() - self._validators['lightposition' - ] = v_isosurface.LightpositionValidator() - self._validators['meta'] = v_isosurface.MetaValidator() - self._validators['metasrc'] = v_isosurface.MetasrcValidator() - self._validators['name'] = v_isosurface.NameValidator() - self._validators['opacity'] = v_isosurface.OpacityValidator() - self._validators['reversescale'] = v_isosurface.ReversescaleValidator() - self._validators['scene'] = v_isosurface.SceneValidator() - self._validators['showscale'] = v_isosurface.ShowscaleValidator() - self._validators['slices'] = v_isosurface.SlicesValidator() - self._validators['spaceframe'] = v_isosurface.SpaceframeValidator() - self._validators['stream'] = v_isosurface.StreamValidator() - self._validators['surface'] = v_isosurface.SurfaceValidator() - self._validators['text'] = v_isosurface.TextValidator() - self._validators['textsrc'] = v_isosurface.TextsrcValidator() - self._validators['uid'] = v_isosurface.UidValidator() - self._validators['uirevision'] = v_isosurface.UirevisionValidator() - self._validators['value'] = v_isosurface.ValueValidator() - self._validators['valuesrc'] = v_isosurface.ValuesrcValidator() - self._validators['visible'] = v_isosurface.VisibleValidator() - self._validators['x'] = v_isosurface.XValidator() - self._validators['xsrc'] = v_isosurface.XsrcValidator() - self._validators['y'] = v_isosurface.YValidator() - self._validators['ysrc'] = v_isosurface.YsrcValidator() - self._validators['z'] = v_isosurface.ZValidator() - self._validators['zsrc'] = v_isosurface.ZsrcValidator() + self._validators["autocolorscale"] = v_isosurface.AutocolorscaleValidator() + self._validators["caps"] = v_isosurface.CapsValidator() + self._validators["cauto"] = v_isosurface.CautoValidator() + self._validators["cmax"] = v_isosurface.CmaxValidator() + self._validators["cmid"] = v_isosurface.CmidValidator() + self._validators["cmin"] = v_isosurface.CminValidator() + self._validators["coloraxis"] = v_isosurface.ColoraxisValidator() + self._validators["colorbar"] = v_isosurface.ColorBarValidator() + self._validators["colorscale"] = v_isosurface.ColorscaleValidator() + self._validators["contour"] = v_isosurface.ContourValidator() + self._validators["customdata"] = v_isosurface.CustomdataValidator() + self._validators["customdatasrc"] = v_isosurface.CustomdatasrcValidator() + self._validators["flatshading"] = v_isosurface.FlatshadingValidator() + self._validators["hoverinfo"] = v_isosurface.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_isosurface.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_isosurface.HoverlabelValidator() + self._validators["hovertemplate"] = v_isosurface.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_isosurface.HovertemplatesrcValidator() + self._validators["hovertext"] = v_isosurface.HovertextValidator() + self._validators["hovertextsrc"] = v_isosurface.HovertextsrcValidator() + self._validators["ids"] = v_isosurface.IdsValidator() + self._validators["idssrc"] = v_isosurface.IdssrcValidator() + self._validators["isomax"] = v_isosurface.IsomaxValidator() + self._validators["isomin"] = v_isosurface.IsominValidator() + self._validators["lighting"] = v_isosurface.LightingValidator() + self._validators["lightposition"] = v_isosurface.LightpositionValidator() + self._validators["meta"] = v_isosurface.MetaValidator() + self._validators["metasrc"] = v_isosurface.MetasrcValidator() + self._validators["name"] = v_isosurface.NameValidator() + self._validators["opacity"] = v_isosurface.OpacityValidator() + self._validators["reversescale"] = v_isosurface.ReversescaleValidator() + self._validators["scene"] = v_isosurface.SceneValidator() + self._validators["showscale"] = v_isosurface.ShowscaleValidator() + self._validators["slices"] = v_isosurface.SlicesValidator() + self._validators["spaceframe"] = v_isosurface.SpaceframeValidator() + self._validators["stream"] = v_isosurface.StreamValidator() + self._validators["surface"] = v_isosurface.SurfaceValidator() + self._validators["text"] = v_isosurface.TextValidator() + self._validators["textsrc"] = v_isosurface.TextsrcValidator() + self._validators["uid"] = v_isosurface.UidValidator() + self._validators["uirevision"] = v_isosurface.UirevisionValidator() + self._validators["value"] = v_isosurface.ValueValidator() + self._validators["valuesrc"] = v_isosurface.ValuesrcValidator() + self._validators["visible"] = v_isosurface.VisibleValidator() + self._validators["x"] = v_isosurface.XValidator() + self._validators["xsrc"] = v_isosurface.XsrcValidator() + self._validators["y"] = v_isosurface.YValidator() + self._validators["ysrc"] = v_isosurface.YsrcValidator() + self._validators["z"] = v_isosurface.ZValidator() + self._validators["zsrc"] = v_isosurface.ZsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('caps', None) - self['caps'] = caps if caps is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('contour', None) - self['contour'] = contour if contour is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('flatshading', None) - self['flatshading'] = flatshading if flatshading is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('isomax', None) - self['isomax'] = isomax if isomax is not None else _v - _v = arg.pop('isomin', None) - self['isomin'] = isomin if isomin is not None else _v - _v = arg.pop('lighting', None) - self['lighting'] = lighting if lighting is not None else _v - _v = arg.pop('lightposition', None) - self['lightposition' - ] = lightposition if lightposition is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('scene', None) - self['scene'] = scene if scene is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('slices', None) - self['slices'] = slices if slices is not None else _v - _v = arg.pop('spaceframe', None) - self['spaceframe'] = spaceframe if spaceframe is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('surface', None) - self['surface'] = surface if surface is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v - _v = arg.pop('valuesrc', None) - self['valuesrc'] = valuesrc if valuesrc is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v - _v = arg.pop('zsrc', None) - self['zsrc'] = zsrc if zsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("caps", None) + self["caps"] = caps if caps is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("contour", None) + self["contour"] = contour if contour is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("flatshading", None) + self["flatshading"] = flatshading if flatshading is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("isomax", None) + self["isomax"] = isomax if isomax is not None else _v + _v = arg.pop("isomin", None) + self["isomin"] = isomin if isomin is not None else _v + _v = arg.pop("lighting", None) + self["lighting"] = lighting if lighting is not None else _v + _v = arg.pop("lightposition", None) + self["lightposition"] = lightposition if lightposition is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("scene", None) + self["scene"] = scene if scene is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("slices", None) + self["slices"] = slices if slices is not None else _v + _v = arg.pop("spaceframe", None) + self["spaceframe"] = spaceframe if spaceframe is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("surface", None) + self["surface"] = surface if surface is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v + _v = arg.pop("valuesrc", None) + self["valuesrc"] = valuesrc if valuesrc is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v + _v = arg.pop("zsrc", None) + self["zsrc"] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'isosurface' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='isosurface', val='isosurface' + + self._props["type"] = "isosurface" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="isosurface", val="isosurface" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -52730,11 +52592,11 @@ def autobinx(self): ------- bool """ - return self['autobinx'] + return self["autobinx"] @autobinx.setter def autobinx(self, val): - self['autobinx'] = val + self["autobinx"] = val # autobiny # -------- @@ -52753,11 +52615,11 @@ def autobiny(self): ------- bool """ - return self['autobiny'] + return self["autobiny"] @autobiny.setter def autobiny(self, val): - self['autobiny'] = val + self["autobiny"] = val # autocolorscale # -------------- @@ -52778,11 +52640,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # autocontour # ----------- @@ -52801,11 +52663,11 @@ def autocontour(self): ------- bool """ - return self['autocontour'] + return self["autocontour"] @autocontour.setter def autocontour(self, val): - self['autocontour'] = val + self["autocontour"] = val # bingroup # -------- @@ -52824,11 +52686,11 @@ def bingroup(self): ------- str """ - return self['bingroup'] + return self["bingroup"] @bingroup.setter def bingroup(self, val): - self['bingroup'] = val + self["bingroup"] = val # coloraxis # --------- @@ -52851,11 +52713,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -53086,11 +52948,11 @@ def colorbar(self): ------- plotly.graph_objs.histogram2dcontour.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -53123,11 +52985,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # contours # -------- @@ -53209,11 +53071,11 @@ def contours(self): ------- plotly.graph_objs.histogram2dcontour.Contours """ - return self['contours'] + return self["contours"] @contours.setter def contours(self, val): - self['contours'] = val + self["contours"] = val # customdata # ---------- @@ -53232,11 +53094,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -53252,11 +53114,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # histfunc # -------- @@ -53278,11 +53140,11 @@ def histfunc(self): ------- Any """ - return self['histfunc'] + return self["histfunc"] @histfunc.setter def histfunc(self, val): - self['histfunc'] = val + self["histfunc"] = val # histnorm # -------- @@ -53312,11 +53174,11 @@ def histnorm(self): ------- Any """ - return self['histnorm'] + return self["histnorm"] @histnorm.setter def histnorm(self, val): - self['histnorm'] = val + self["histnorm"] = val # hoverinfo # --------- @@ -53338,11 +53200,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -53358,11 +53220,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -53417,11 +53279,11 @@ def hoverlabel(self): ------- plotly.graph_objs.histogram2dcontour.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -53453,11 +53315,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -53473,11 +53335,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # ids # --- @@ -53495,11 +53357,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -53515,11 +53377,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # legendgroup # ----------- @@ -53538,11 +53400,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # line # ---- @@ -53576,11 +53438,11 @@ def line(self): ------- plotly.graph_objs.histogram2dcontour.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # marker # ------ @@ -53605,11 +53467,11 @@ def marker(self): ------- plotly.graph_objs.histogram2dcontour.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -53633,11 +53495,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -53653,11 +53515,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -53675,11 +53537,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # nbinsx # ------ @@ -53699,11 +53561,11 @@ def nbinsx(self): ------- int """ - return self['nbinsx'] + return self["nbinsx"] @nbinsx.setter def nbinsx(self, val): - self['nbinsx'] = val + self["nbinsx"] = val # nbinsy # ------ @@ -53723,11 +53585,11 @@ def nbinsy(self): ------- int """ - return self['nbinsy'] + return self["nbinsy"] @nbinsy.setter def nbinsy(self, val): - self['nbinsy'] = val + self["nbinsy"] = val # ncontours # --------- @@ -53747,11 +53609,11 @@ def ncontours(self): ------- int """ - return self['ncontours'] + return self["ncontours"] @ncontours.setter def ncontours(self, val): - self['ncontours'] = val + self["ncontours"] = val # opacity # ------- @@ -53767,11 +53629,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # reversescale # ------------ @@ -53789,11 +53651,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showlegend # ---------- @@ -53810,11 +53672,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # showscale # --------- @@ -53831,11 +53693,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # stream # ------ @@ -53864,11 +53726,11 @@ def stream(self): ------- plotly.graph_objs.histogram2dcontour.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # uid # --- @@ -53886,11 +53748,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -53919,11 +53781,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -53942,11 +53804,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -53962,11 +53824,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xaxis # ----- @@ -53987,11 +53849,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # xbingroup # --------- @@ -54012,11 +53874,11 @@ def xbingroup(self): ------- str """ - return self['xbingroup'] + return self["xbingroup"] @xbingroup.setter def xbingroup(self, val): - self['xbingroup'] = val + self["xbingroup"] = val # xbins # ----- @@ -54070,11 +53932,11 @@ def xbins(self): ------- plotly.graph_objs.histogram2dcontour.XBins """ - return self['xbins'] + return self["xbins"] @xbins.setter def xbins(self, val): - self['xbins'] = val + self["xbins"] = val # xcalendar # --------- @@ -54094,11 +53956,11 @@ def xcalendar(self): ------- Any """ - return self['xcalendar'] + return self["xcalendar"] @xcalendar.setter def xcalendar(self, val): - self['xcalendar'] = val + self["xcalendar"] = val # xsrc # ---- @@ -54114,11 +53976,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -54134,11 +53996,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yaxis # ----- @@ -54159,11 +54021,11 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # ybingroup # --------- @@ -54184,11 +54046,11 @@ def ybingroup(self): ------- str """ - return self['ybingroup'] + return self["ybingroup"] @ybingroup.setter def ybingroup(self, val): - self['ybingroup'] = val + self["ybingroup"] = val # ybins # ----- @@ -54242,11 +54104,11 @@ def ybins(self): ------- plotly.graph_objs.histogram2dcontour.YBins """ - return self['ybins'] + return self["ybins"] @ybins.setter def ybins(self, val): - self['ybins'] = val + self["ybins"] = val # ycalendar # --------- @@ -54266,11 +54128,11 @@ def ycalendar(self): ------- Any """ - return self['ycalendar'] + return self["ycalendar"] @ycalendar.setter def ycalendar(self, val): - self['ycalendar'] = val + self["ycalendar"] = val # ysrc # ---- @@ -54286,11 +54148,11 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # z # - @@ -54306,11 +54168,11 @@ def z(self): ------- numpy.ndarray """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # zauto # ----- @@ -54329,11 +54191,11 @@ def zauto(self): ------- bool """ - return self['zauto'] + return self["zauto"] @zauto.setter def zauto(self, val): - self['zauto'] = val + self["zauto"] = val # zhoverformat # ------------ @@ -54352,11 +54214,11 @@ def zhoverformat(self): ------- str """ - return self['zhoverformat'] + return self["zhoverformat"] @zhoverformat.setter def zhoverformat(self, val): - self['zhoverformat'] = val + self["zhoverformat"] = val # zmax # ---- @@ -54373,11 +54235,11 @@ def zmax(self): ------- int|float """ - return self['zmax'] + return self["zmax"] @zmax.setter def zmax(self, val): - self['zmax'] = val + self["zmax"] = val # zmid # ---- @@ -54395,11 +54257,11 @@ def zmid(self): ------- int|float """ - return self['zmid'] + return self["zmid"] @zmid.setter def zmid(self, val): - self['zmid'] = val + self["zmid"] = val # zmin # ---- @@ -54416,11 +54278,11 @@ def zmin(self): ------- int|float """ - return self['zmin'] + return self["zmin"] @zmin.setter def zmin(self, val): - self['zmin'] = val + self["zmin"] = val # zsrc # ---- @@ -54436,23 +54298,23 @@ def zsrc(self): ------- str """ - return self['zsrc'] + return self["zsrc"] @zsrc.setter def zsrc(self, val): - self['zsrc'] = val + self["zsrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -55104,7 +54966,7 @@ def __init__( ------- Histogram2dContour """ - super(Histogram2dContour, self).__init__('histogram2dcontour') + super(Histogram2dContour, self).__init__("histogram2dcontour") # Validate arg # ------------ @@ -55124,224 +54986,207 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import ( - histogram2dcontour as v_histogram2dcontour - ) + from plotly.validators import histogram2dcontour as v_histogram2dcontour # Initialize validators # --------------------- - self._validators['autobinx'] = v_histogram2dcontour.AutobinxValidator() - self._validators['autobiny'] = v_histogram2dcontour.AutobinyValidator() - self._validators['autocolorscale' - ] = v_histogram2dcontour.AutocolorscaleValidator() - self._validators['autocontour' - ] = v_histogram2dcontour.AutocontourValidator() - self._validators['bingroup'] = v_histogram2dcontour.BingroupValidator() - self._validators['coloraxis' - ] = v_histogram2dcontour.ColoraxisValidator() - self._validators['colorbar'] = v_histogram2dcontour.ColorBarValidator() - self._validators['colorscale' - ] = v_histogram2dcontour.ColorscaleValidator() - self._validators['contours'] = v_histogram2dcontour.ContoursValidator() - self._validators['customdata' - ] = v_histogram2dcontour.CustomdataValidator() - self._validators['customdatasrc' - ] = v_histogram2dcontour.CustomdatasrcValidator() - self._validators['histfunc'] = v_histogram2dcontour.HistfuncValidator() - self._validators['histnorm'] = v_histogram2dcontour.HistnormValidator() - self._validators['hoverinfo' - ] = v_histogram2dcontour.HoverinfoValidator() - self._validators['hoverinfosrc' - ] = v_histogram2dcontour.HoverinfosrcValidator() - self._validators['hoverlabel' - ] = v_histogram2dcontour.HoverlabelValidator() - self._validators['hovertemplate' - ] = v_histogram2dcontour.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_histogram2dcontour.HovertemplatesrcValidator() - self._validators['ids'] = v_histogram2dcontour.IdsValidator() - self._validators['idssrc'] = v_histogram2dcontour.IdssrcValidator() - self._validators['legendgroup' - ] = v_histogram2dcontour.LegendgroupValidator() - self._validators['line'] = v_histogram2dcontour.LineValidator() - self._validators['marker'] = v_histogram2dcontour.MarkerValidator() - self._validators['meta'] = v_histogram2dcontour.MetaValidator() - self._validators['metasrc'] = v_histogram2dcontour.MetasrcValidator() - self._validators['name'] = v_histogram2dcontour.NameValidator() - self._validators['nbinsx'] = v_histogram2dcontour.NbinsxValidator() - self._validators['nbinsy'] = v_histogram2dcontour.NbinsyValidator() - self._validators['ncontours' - ] = v_histogram2dcontour.NcontoursValidator() - self._validators['opacity'] = v_histogram2dcontour.OpacityValidator() - self._validators['reversescale' - ] = v_histogram2dcontour.ReversescaleValidator() - self._validators['showlegend' - ] = v_histogram2dcontour.ShowlegendValidator() - self._validators['showscale' - ] = v_histogram2dcontour.ShowscaleValidator() - self._validators['stream'] = v_histogram2dcontour.StreamValidator() - self._validators['uid'] = v_histogram2dcontour.UidValidator() - self._validators['uirevision' - ] = v_histogram2dcontour.UirevisionValidator() - self._validators['visible'] = v_histogram2dcontour.VisibleValidator() - self._validators['x'] = v_histogram2dcontour.XValidator() - self._validators['xaxis'] = v_histogram2dcontour.XAxisValidator() - self._validators['xbingroup' - ] = v_histogram2dcontour.XbingroupValidator() - self._validators['xbins'] = v_histogram2dcontour.XBinsValidator() - self._validators['xcalendar' - ] = v_histogram2dcontour.XcalendarValidator() - self._validators['xsrc'] = v_histogram2dcontour.XsrcValidator() - self._validators['y'] = v_histogram2dcontour.YValidator() - self._validators['yaxis'] = v_histogram2dcontour.YAxisValidator() - self._validators['ybingroup' - ] = v_histogram2dcontour.YbingroupValidator() - self._validators['ybins'] = v_histogram2dcontour.YBinsValidator() - self._validators['ycalendar' - ] = v_histogram2dcontour.YcalendarValidator() - self._validators['ysrc'] = v_histogram2dcontour.YsrcValidator() - self._validators['z'] = v_histogram2dcontour.ZValidator() - self._validators['zauto'] = v_histogram2dcontour.ZautoValidator() - self._validators['zhoverformat' - ] = v_histogram2dcontour.ZhoverformatValidator() - self._validators['zmax'] = v_histogram2dcontour.ZmaxValidator() - self._validators['zmid'] = v_histogram2dcontour.ZmidValidator() - self._validators['zmin'] = v_histogram2dcontour.ZminValidator() - self._validators['zsrc'] = v_histogram2dcontour.ZsrcValidator() + self._validators["autobinx"] = v_histogram2dcontour.AutobinxValidator() + self._validators["autobiny"] = v_histogram2dcontour.AutobinyValidator() + self._validators[ + "autocolorscale" + ] = v_histogram2dcontour.AutocolorscaleValidator() + self._validators["autocontour"] = v_histogram2dcontour.AutocontourValidator() + self._validators["bingroup"] = v_histogram2dcontour.BingroupValidator() + self._validators["coloraxis"] = v_histogram2dcontour.ColoraxisValidator() + self._validators["colorbar"] = v_histogram2dcontour.ColorBarValidator() + self._validators["colorscale"] = v_histogram2dcontour.ColorscaleValidator() + self._validators["contours"] = v_histogram2dcontour.ContoursValidator() + self._validators["customdata"] = v_histogram2dcontour.CustomdataValidator() + self._validators[ + "customdatasrc" + ] = v_histogram2dcontour.CustomdatasrcValidator() + self._validators["histfunc"] = v_histogram2dcontour.HistfuncValidator() + self._validators["histnorm"] = v_histogram2dcontour.HistnormValidator() + self._validators["hoverinfo"] = v_histogram2dcontour.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_histogram2dcontour.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_histogram2dcontour.HoverlabelValidator() + self._validators[ + "hovertemplate" + ] = v_histogram2dcontour.HovertemplateValidator() + self._validators[ + "hovertemplatesrc" + ] = v_histogram2dcontour.HovertemplatesrcValidator() + self._validators["ids"] = v_histogram2dcontour.IdsValidator() + self._validators["idssrc"] = v_histogram2dcontour.IdssrcValidator() + self._validators["legendgroup"] = v_histogram2dcontour.LegendgroupValidator() + self._validators["line"] = v_histogram2dcontour.LineValidator() + self._validators["marker"] = v_histogram2dcontour.MarkerValidator() + self._validators["meta"] = v_histogram2dcontour.MetaValidator() + self._validators["metasrc"] = v_histogram2dcontour.MetasrcValidator() + self._validators["name"] = v_histogram2dcontour.NameValidator() + self._validators["nbinsx"] = v_histogram2dcontour.NbinsxValidator() + self._validators["nbinsy"] = v_histogram2dcontour.NbinsyValidator() + self._validators["ncontours"] = v_histogram2dcontour.NcontoursValidator() + self._validators["opacity"] = v_histogram2dcontour.OpacityValidator() + self._validators["reversescale"] = v_histogram2dcontour.ReversescaleValidator() + self._validators["showlegend"] = v_histogram2dcontour.ShowlegendValidator() + self._validators["showscale"] = v_histogram2dcontour.ShowscaleValidator() + self._validators["stream"] = v_histogram2dcontour.StreamValidator() + self._validators["uid"] = v_histogram2dcontour.UidValidator() + self._validators["uirevision"] = v_histogram2dcontour.UirevisionValidator() + self._validators["visible"] = v_histogram2dcontour.VisibleValidator() + self._validators["x"] = v_histogram2dcontour.XValidator() + self._validators["xaxis"] = v_histogram2dcontour.XAxisValidator() + self._validators["xbingroup"] = v_histogram2dcontour.XbingroupValidator() + self._validators["xbins"] = v_histogram2dcontour.XBinsValidator() + self._validators["xcalendar"] = v_histogram2dcontour.XcalendarValidator() + self._validators["xsrc"] = v_histogram2dcontour.XsrcValidator() + self._validators["y"] = v_histogram2dcontour.YValidator() + self._validators["yaxis"] = v_histogram2dcontour.YAxisValidator() + self._validators["ybingroup"] = v_histogram2dcontour.YbingroupValidator() + self._validators["ybins"] = v_histogram2dcontour.YBinsValidator() + self._validators["ycalendar"] = v_histogram2dcontour.YcalendarValidator() + self._validators["ysrc"] = v_histogram2dcontour.YsrcValidator() + self._validators["z"] = v_histogram2dcontour.ZValidator() + self._validators["zauto"] = v_histogram2dcontour.ZautoValidator() + self._validators["zhoverformat"] = v_histogram2dcontour.ZhoverformatValidator() + self._validators["zmax"] = v_histogram2dcontour.ZmaxValidator() + self._validators["zmid"] = v_histogram2dcontour.ZmidValidator() + self._validators["zmin"] = v_histogram2dcontour.ZminValidator() + self._validators["zsrc"] = v_histogram2dcontour.ZsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autobinx', None) - self['autobinx'] = autobinx if autobinx is not None else _v - _v = arg.pop('autobiny', None) - self['autobiny'] = autobiny if autobiny is not None else _v - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('autocontour', None) - self['autocontour'] = autocontour if autocontour is not None else _v - _v = arg.pop('bingroup', None) - self['bingroup'] = bingroup if bingroup is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('contours', None) - self['contours'] = contours if contours is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('histfunc', None) - self['histfunc'] = histfunc if histfunc is not None else _v - _v = arg.pop('histnorm', None) - self['histnorm'] = histnorm if histnorm is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('nbinsx', None) - self['nbinsx'] = nbinsx if nbinsx is not None else _v - _v = arg.pop('nbinsy', None) - self['nbinsy'] = nbinsy if nbinsy is not None else _v - _v = arg.pop('ncontours', None) - self['ncontours'] = ncontours if ncontours is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('xbingroup', None) - self['xbingroup'] = xbingroup if xbingroup is not None else _v - _v = arg.pop('xbins', None) - self['xbins'] = xbins if xbins is not None else _v - _v = arg.pop('xcalendar', None) - self['xcalendar'] = xcalendar if xcalendar is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v - _v = arg.pop('ybingroup', None) - self['ybingroup'] = ybingroup if ybingroup is not None else _v - _v = arg.pop('ybins', None) - self['ybins'] = ybins if ybins is not None else _v - _v = arg.pop('ycalendar', None) - self['ycalendar'] = ycalendar if ycalendar is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v - _v = arg.pop('zauto', None) - self['zauto'] = zauto if zauto is not None else _v - _v = arg.pop('zhoverformat', None) - self['zhoverformat'] = zhoverformat if zhoverformat is not None else _v - _v = arg.pop('zmax', None) - self['zmax'] = zmax if zmax is not None else _v - _v = arg.pop('zmid', None) - self['zmid'] = zmid if zmid is not None else _v - _v = arg.pop('zmin', None) - self['zmin'] = zmin if zmin is not None else _v - _v = arg.pop('zsrc', None) - self['zsrc'] = zsrc if zsrc is not None else _v + _v = arg.pop("autobinx", None) + self["autobinx"] = autobinx if autobinx is not None else _v + _v = arg.pop("autobiny", None) + self["autobiny"] = autobiny if autobiny is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("autocontour", None) + self["autocontour"] = autocontour if autocontour is not None else _v + _v = arg.pop("bingroup", None) + self["bingroup"] = bingroup if bingroup is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("contours", None) + self["contours"] = contours if contours is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("histfunc", None) + self["histfunc"] = histfunc if histfunc is not None else _v + _v = arg.pop("histnorm", None) + self["histnorm"] = histnorm if histnorm is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("nbinsx", None) + self["nbinsx"] = nbinsx if nbinsx is not None else _v + _v = arg.pop("nbinsy", None) + self["nbinsy"] = nbinsy if nbinsy is not None else _v + _v = arg.pop("ncontours", None) + self["ncontours"] = ncontours if ncontours is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("xbingroup", None) + self["xbingroup"] = xbingroup if xbingroup is not None else _v + _v = arg.pop("xbins", None) + self["xbins"] = xbins if xbins is not None else _v + _v = arg.pop("xcalendar", None) + self["xcalendar"] = xcalendar if xcalendar is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v + _v = arg.pop("ybingroup", None) + self["ybingroup"] = ybingroup if ybingroup is not None else _v + _v = arg.pop("ybins", None) + self["ybins"] = ybins if ybins is not None else _v + _v = arg.pop("ycalendar", None) + self["ycalendar"] = ycalendar if ycalendar is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v + _v = arg.pop("zauto", None) + self["zauto"] = zauto if zauto is not None else _v + _v = arg.pop("zhoverformat", None) + self["zhoverformat"] = zhoverformat if zhoverformat is not None else _v + _v = arg.pop("zmax", None) + self["zmax"] = zmax if zmax is not None else _v + _v = arg.pop("zmid", None) + self["zmid"] = zmid if zmid is not None else _v + _v = arg.pop("zmin", None) + self["zmin"] = zmin if zmin is not None else _v + _v = arg.pop("zsrc", None) + self["zsrc"] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'histogram2dcontour' - self._validators['type'] = LiteralValidator( - plotly_name='type', - parent_name='histogram2dcontour', - val='histogram2dcontour' + + self._props["type"] = "histogram2dcontour" + self._validators["type"] = LiteralValidator( + plotly_name="type", + parent_name="histogram2dcontour", + val="histogram2dcontour", ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -55375,11 +55220,11 @@ def autobinx(self): ------- bool """ - return self['autobinx'] + return self["autobinx"] @autobinx.setter def autobinx(self, val): - self['autobinx'] = val + self["autobinx"] = val # autobiny # -------- @@ -55398,11 +55243,11 @@ def autobiny(self): ------- bool """ - return self['autobiny'] + return self["autobiny"] @autobiny.setter def autobiny(self, val): - self['autobiny'] = val + self["autobiny"] = val # autocolorscale # -------------- @@ -55423,11 +55268,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # bingroup # -------- @@ -55446,11 +55291,11 @@ def bingroup(self): ------- str """ - return self['bingroup'] + return self["bingroup"] @bingroup.setter def bingroup(self, val): - self['bingroup'] = val + self["bingroup"] = val # coloraxis # --------- @@ -55473,11 +55318,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -55707,11 +55552,11 @@ def colorbar(self): ------- plotly.graph_objs.histogram2d.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -55744,11 +55589,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # customdata # ---------- @@ -55767,11 +55612,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -55787,11 +55632,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # histfunc # -------- @@ -55813,11 +55658,11 @@ def histfunc(self): ------- Any """ - return self['histfunc'] + return self["histfunc"] @histfunc.setter def histfunc(self, val): - self['histfunc'] = val + self["histfunc"] = val # histnorm # -------- @@ -55847,11 +55692,11 @@ def histnorm(self): ------- Any """ - return self['histnorm'] + return self["histnorm"] @histnorm.setter def histnorm(self, val): - self['histnorm'] = val + self["histnorm"] = val # hoverinfo # --------- @@ -55873,11 +55718,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -55893,11 +55738,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -55952,11 +55797,11 @@ def hoverlabel(self): ------- plotly.graph_objs.histogram2d.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -55988,11 +55833,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -56008,11 +55853,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # ids # --- @@ -56030,11 +55875,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -56050,11 +55895,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # marker # ------ @@ -56079,11 +55924,11 @@ def marker(self): ------- plotly.graph_objs.histogram2d.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -56107,11 +55952,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -56127,11 +55972,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -56149,11 +55994,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # nbinsx # ------ @@ -56173,11 +56018,11 @@ def nbinsx(self): ------- int """ - return self['nbinsx'] + return self["nbinsx"] @nbinsx.setter def nbinsx(self, val): - self['nbinsx'] = val + self["nbinsx"] = val # nbinsy # ------ @@ -56197,11 +56042,11 @@ def nbinsy(self): ------- int """ - return self['nbinsy'] + return self["nbinsy"] @nbinsy.setter def nbinsy(self, val): - self['nbinsy'] = val + self["nbinsy"] = val # opacity # ------- @@ -56217,11 +56062,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # reversescale # ------------ @@ -56239,11 +56084,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -56260,11 +56105,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # stream # ------ @@ -56293,11 +56138,11 @@ def stream(self): ------- plotly.graph_objs.histogram2d.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # uid # --- @@ -56315,11 +56160,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -56348,11 +56193,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -56371,11 +56216,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -56391,11 +56236,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xaxis # ----- @@ -56416,11 +56261,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # xbingroup # --------- @@ -56441,11 +56286,11 @@ def xbingroup(self): ------- str """ - return self['xbingroup'] + return self["xbingroup"] @xbingroup.setter def xbingroup(self, val): - self['xbingroup'] = val + self["xbingroup"] = val # xbins # ----- @@ -56499,11 +56344,11 @@ def xbins(self): ------- plotly.graph_objs.histogram2d.XBins """ - return self['xbins'] + return self["xbins"] @xbins.setter def xbins(self, val): - self['xbins'] = val + self["xbins"] = val # xcalendar # --------- @@ -56523,11 +56368,11 @@ def xcalendar(self): ------- Any """ - return self['xcalendar'] + return self["xcalendar"] @xcalendar.setter def xcalendar(self, val): - self['xcalendar'] = val + self["xcalendar"] = val # xgap # ---- @@ -56543,11 +56388,11 @@ def xgap(self): ------- int|float """ - return self['xgap'] + return self["xgap"] @xgap.setter def xgap(self, val): - self['xgap'] = val + self["xgap"] = val # xsrc # ---- @@ -56563,11 +56408,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -56583,11 +56428,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yaxis # ----- @@ -56608,11 +56453,11 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # ybingroup # --------- @@ -56633,11 +56478,11 @@ def ybingroup(self): ------- str """ - return self['ybingroup'] + return self["ybingroup"] @ybingroup.setter def ybingroup(self, val): - self['ybingroup'] = val + self["ybingroup"] = val # ybins # ----- @@ -56691,11 +56536,11 @@ def ybins(self): ------- plotly.graph_objs.histogram2d.YBins """ - return self['ybins'] + return self["ybins"] @ybins.setter def ybins(self, val): - self['ybins'] = val + self["ybins"] = val # ycalendar # --------- @@ -56715,11 +56560,11 @@ def ycalendar(self): ------- Any """ - return self['ycalendar'] + return self["ycalendar"] @ycalendar.setter def ycalendar(self, val): - self['ycalendar'] = val + self["ycalendar"] = val # ygap # ---- @@ -56735,11 +56580,11 @@ def ygap(self): ------- int|float """ - return self['ygap'] + return self["ygap"] @ygap.setter def ygap(self, val): - self['ygap'] = val + self["ygap"] = val # ysrc # ---- @@ -56755,11 +56600,11 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # z # - @@ -56775,11 +56620,11 @@ def z(self): ------- numpy.ndarray """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # zauto # ----- @@ -56798,11 +56643,11 @@ def zauto(self): ------- bool """ - return self['zauto'] + return self["zauto"] @zauto.setter def zauto(self, val): - self['zauto'] = val + self["zauto"] = val # zhoverformat # ------------ @@ -56821,11 +56666,11 @@ def zhoverformat(self): ------- str """ - return self['zhoverformat'] + return self["zhoverformat"] @zhoverformat.setter def zhoverformat(self, val): - self['zhoverformat'] = val + self["zhoverformat"] = val # zmax # ---- @@ -56842,11 +56687,11 @@ def zmax(self): ------- int|float """ - return self['zmax'] + return self["zmax"] @zmax.setter def zmax(self, val): - self['zmax'] = val + self["zmax"] = val # zmid # ---- @@ -56864,11 +56709,11 @@ def zmid(self): ------- int|float """ - return self['zmid'] + return self["zmid"] @zmid.setter def zmid(self, val): - self['zmid'] = val + self["zmid"] = val # zmin # ---- @@ -56885,11 +56730,11 @@ def zmin(self): ------- int|float """ - return self['zmin'] + return self["zmin"] @zmin.setter def zmin(self, val): - self['zmin'] = val + self["zmin"] = val # zsmooth # ------- @@ -56906,11 +56751,11 @@ def zsmooth(self): ------- Any """ - return self['zsmooth'] + return self["zsmooth"] @zsmooth.setter def zsmooth(self, val): - self['zsmooth'] = val + self["zsmooth"] = val # zsrc # ---- @@ -56926,23 +56771,23 @@ def zsrc(self): ------- str """ - return self['zsrc'] + return self["zsrc"] @zsrc.setter def zsrc(self, val): - self['zsrc'] = val + self["zsrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -57555,7 +57400,7 @@ def __init__( ------- Histogram2d """ - super(Histogram2d, self).__init__('histogram2d') + super(Histogram2d, self).__init__("histogram2d") # Validate arg # ------------ @@ -57575,196 +57420,188 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (histogram2d as v_histogram2d) + from plotly.validators import histogram2d as v_histogram2d # Initialize validators # --------------------- - self._validators['autobinx'] = v_histogram2d.AutobinxValidator() - self._validators['autobiny'] = v_histogram2d.AutobinyValidator() - self._validators['autocolorscale' - ] = v_histogram2d.AutocolorscaleValidator() - self._validators['bingroup'] = v_histogram2d.BingroupValidator() - self._validators['coloraxis'] = v_histogram2d.ColoraxisValidator() - self._validators['colorbar'] = v_histogram2d.ColorBarValidator() - self._validators['colorscale'] = v_histogram2d.ColorscaleValidator() - self._validators['customdata'] = v_histogram2d.CustomdataValidator() - self._validators['customdatasrc' - ] = v_histogram2d.CustomdatasrcValidator() - self._validators['histfunc'] = v_histogram2d.HistfuncValidator() - self._validators['histnorm'] = v_histogram2d.HistnormValidator() - self._validators['hoverinfo'] = v_histogram2d.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_histogram2d.HoverinfosrcValidator( - ) - self._validators['hoverlabel'] = v_histogram2d.HoverlabelValidator() - self._validators['hovertemplate' - ] = v_histogram2d.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_histogram2d.HovertemplatesrcValidator() - self._validators['ids'] = v_histogram2d.IdsValidator() - self._validators['idssrc'] = v_histogram2d.IdssrcValidator() - self._validators['marker'] = v_histogram2d.MarkerValidator() - self._validators['meta'] = v_histogram2d.MetaValidator() - self._validators['metasrc'] = v_histogram2d.MetasrcValidator() - self._validators['name'] = v_histogram2d.NameValidator() - self._validators['nbinsx'] = v_histogram2d.NbinsxValidator() - self._validators['nbinsy'] = v_histogram2d.NbinsyValidator() - self._validators['opacity'] = v_histogram2d.OpacityValidator() - self._validators['reversescale'] = v_histogram2d.ReversescaleValidator( - ) - self._validators['showscale'] = v_histogram2d.ShowscaleValidator() - self._validators['stream'] = v_histogram2d.StreamValidator() - self._validators['uid'] = v_histogram2d.UidValidator() - self._validators['uirevision'] = v_histogram2d.UirevisionValidator() - self._validators['visible'] = v_histogram2d.VisibleValidator() - self._validators['x'] = v_histogram2d.XValidator() - self._validators['xaxis'] = v_histogram2d.XAxisValidator() - self._validators['xbingroup'] = v_histogram2d.XbingroupValidator() - self._validators['xbins'] = v_histogram2d.XBinsValidator() - self._validators['xcalendar'] = v_histogram2d.XcalendarValidator() - self._validators['xgap'] = v_histogram2d.XgapValidator() - self._validators['xsrc'] = v_histogram2d.XsrcValidator() - self._validators['y'] = v_histogram2d.YValidator() - self._validators['yaxis'] = v_histogram2d.YAxisValidator() - self._validators['ybingroup'] = v_histogram2d.YbingroupValidator() - self._validators['ybins'] = v_histogram2d.YBinsValidator() - self._validators['ycalendar'] = v_histogram2d.YcalendarValidator() - self._validators['ygap'] = v_histogram2d.YgapValidator() - self._validators['ysrc'] = v_histogram2d.YsrcValidator() - self._validators['z'] = v_histogram2d.ZValidator() - self._validators['zauto'] = v_histogram2d.ZautoValidator() - self._validators['zhoverformat'] = v_histogram2d.ZhoverformatValidator( - ) - self._validators['zmax'] = v_histogram2d.ZmaxValidator() - self._validators['zmid'] = v_histogram2d.ZmidValidator() - self._validators['zmin'] = v_histogram2d.ZminValidator() - self._validators['zsmooth'] = v_histogram2d.ZsmoothValidator() - self._validators['zsrc'] = v_histogram2d.ZsrcValidator() + self._validators["autobinx"] = v_histogram2d.AutobinxValidator() + self._validators["autobiny"] = v_histogram2d.AutobinyValidator() + self._validators["autocolorscale"] = v_histogram2d.AutocolorscaleValidator() + self._validators["bingroup"] = v_histogram2d.BingroupValidator() + self._validators["coloraxis"] = v_histogram2d.ColoraxisValidator() + self._validators["colorbar"] = v_histogram2d.ColorBarValidator() + self._validators["colorscale"] = v_histogram2d.ColorscaleValidator() + self._validators["customdata"] = v_histogram2d.CustomdataValidator() + self._validators["customdatasrc"] = v_histogram2d.CustomdatasrcValidator() + self._validators["histfunc"] = v_histogram2d.HistfuncValidator() + self._validators["histnorm"] = v_histogram2d.HistnormValidator() + self._validators["hoverinfo"] = v_histogram2d.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_histogram2d.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_histogram2d.HoverlabelValidator() + self._validators["hovertemplate"] = v_histogram2d.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_histogram2d.HovertemplatesrcValidator() + self._validators["ids"] = v_histogram2d.IdsValidator() + self._validators["idssrc"] = v_histogram2d.IdssrcValidator() + self._validators["marker"] = v_histogram2d.MarkerValidator() + self._validators["meta"] = v_histogram2d.MetaValidator() + self._validators["metasrc"] = v_histogram2d.MetasrcValidator() + self._validators["name"] = v_histogram2d.NameValidator() + self._validators["nbinsx"] = v_histogram2d.NbinsxValidator() + self._validators["nbinsy"] = v_histogram2d.NbinsyValidator() + self._validators["opacity"] = v_histogram2d.OpacityValidator() + self._validators["reversescale"] = v_histogram2d.ReversescaleValidator() + self._validators["showscale"] = v_histogram2d.ShowscaleValidator() + self._validators["stream"] = v_histogram2d.StreamValidator() + self._validators["uid"] = v_histogram2d.UidValidator() + self._validators["uirevision"] = v_histogram2d.UirevisionValidator() + self._validators["visible"] = v_histogram2d.VisibleValidator() + self._validators["x"] = v_histogram2d.XValidator() + self._validators["xaxis"] = v_histogram2d.XAxisValidator() + self._validators["xbingroup"] = v_histogram2d.XbingroupValidator() + self._validators["xbins"] = v_histogram2d.XBinsValidator() + self._validators["xcalendar"] = v_histogram2d.XcalendarValidator() + self._validators["xgap"] = v_histogram2d.XgapValidator() + self._validators["xsrc"] = v_histogram2d.XsrcValidator() + self._validators["y"] = v_histogram2d.YValidator() + self._validators["yaxis"] = v_histogram2d.YAxisValidator() + self._validators["ybingroup"] = v_histogram2d.YbingroupValidator() + self._validators["ybins"] = v_histogram2d.YBinsValidator() + self._validators["ycalendar"] = v_histogram2d.YcalendarValidator() + self._validators["ygap"] = v_histogram2d.YgapValidator() + self._validators["ysrc"] = v_histogram2d.YsrcValidator() + self._validators["z"] = v_histogram2d.ZValidator() + self._validators["zauto"] = v_histogram2d.ZautoValidator() + self._validators["zhoverformat"] = v_histogram2d.ZhoverformatValidator() + self._validators["zmax"] = v_histogram2d.ZmaxValidator() + self._validators["zmid"] = v_histogram2d.ZmidValidator() + self._validators["zmin"] = v_histogram2d.ZminValidator() + self._validators["zsmooth"] = v_histogram2d.ZsmoothValidator() + self._validators["zsrc"] = v_histogram2d.ZsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autobinx', None) - self['autobinx'] = autobinx if autobinx is not None else _v - _v = arg.pop('autobiny', None) - self['autobiny'] = autobiny if autobiny is not None else _v - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('bingroup', None) - self['bingroup'] = bingroup if bingroup is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('histfunc', None) - self['histfunc'] = histfunc if histfunc is not None else _v - _v = arg.pop('histnorm', None) - self['histnorm'] = histnorm if histnorm is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('nbinsx', None) - self['nbinsx'] = nbinsx if nbinsx is not None else _v - _v = arg.pop('nbinsy', None) - self['nbinsy'] = nbinsy if nbinsy is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('xbingroup', None) - self['xbingroup'] = xbingroup if xbingroup is not None else _v - _v = arg.pop('xbins', None) - self['xbins'] = xbins if xbins is not None else _v - _v = arg.pop('xcalendar', None) - self['xcalendar'] = xcalendar if xcalendar is not None else _v - _v = arg.pop('xgap', None) - self['xgap'] = xgap if xgap is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v - _v = arg.pop('ybingroup', None) - self['ybingroup'] = ybingroup if ybingroup is not None else _v - _v = arg.pop('ybins', None) - self['ybins'] = ybins if ybins is not None else _v - _v = arg.pop('ycalendar', None) - self['ycalendar'] = ycalendar if ycalendar is not None else _v - _v = arg.pop('ygap', None) - self['ygap'] = ygap if ygap is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v - _v = arg.pop('zauto', None) - self['zauto'] = zauto if zauto is not None else _v - _v = arg.pop('zhoverformat', None) - self['zhoverformat'] = zhoverformat if zhoverformat is not None else _v - _v = arg.pop('zmax', None) - self['zmax'] = zmax if zmax is not None else _v - _v = arg.pop('zmid', None) - self['zmid'] = zmid if zmid is not None else _v - _v = arg.pop('zmin', None) - self['zmin'] = zmin if zmin is not None else _v - _v = arg.pop('zsmooth', None) - self['zsmooth'] = zsmooth if zsmooth is not None else _v - _v = arg.pop('zsrc', None) - self['zsrc'] = zsrc if zsrc is not None else _v + _v = arg.pop("autobinx", None) + self["autobinx"] = autobinx if autobinx is not None else _v + _v = arg.pop("autobiny", None) + self["autobiny"] = autobiny if autobiny is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("bingroup", None) + self["bingroup"] = bingroup if bingroup is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("histfunc", None) + self["histfunc"] = histfunc if histfunc is not None else _v + _v = arg.pop("histnorm", None) + self["histnorm"] = histnorm if histnorm is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("nbinsx", None) + self["nbinsx"] = nbinsx if nbinsx is not None else _v + _v = arg.pop("nbinsy", None) + self["nbinsy"] = nbinsy if nbinsy is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("xbingroup", None) + self["xbingroup"] = xbingroup if xbingroup is not None else _v + _v = arg.pop("xbins", None) + self["xbins"] = xbins if xbins is not None else _v + _v = arg.pop("xcalendar", None) + self["xcalendar"] = xcalendar if xcalendar is not None else _v + _v = arg.pop("xgap", None) + self["xgap"] = xgap if xgap is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v + _v = arg.pop("ybingroup", None) + self["ybingroup"] = ybingroup if ybingroup is not None else _v + _v = arg.pop("ybins", None) + self["ybins"] = ybins if ybins is not None else _v + _v = arg.pop("ycalendar", None) + self["ycalendar"] = ycalendar if ycalendar is not None else _v + _v = arg.pop("ygap", None) + self["ygap"] = ygap if ygap is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v + _v = arg.pop("zauto", None) + self["zauto"] = zauto if zauto is not None else _v + _v = arg.pop("zhoverformat", None) + self["zhoverformat"] = zhoverformat if zhoverformat is not None else _v + _v = arg.pop("zmax", None) + self["zmax"] = zmax if zmax is not None else _v + _v = arg.pop("zmid", None) + self["zmid"] = zmid if zmid is not None else _v + _v = arg.pop("zmin", None) + self["zmin"] = zmin if zmin is not None else _v + _v = arg.pop("zsmooth", None) + self["zsmooth"] = zsmooth if zsmooth is not None else _v + _v = arg.pop("zsrc", None) + self["zsrc"] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'histogram2d' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='histogram2d', val='histogram2d' + + self._props["type"] = "histogram2d" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="histogram2d", val="histogram2d" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -57798,11 +57635,11 @@ def alignmentgroup(self): ------- str """ - return self['alignmentgroup'] + return self["alignmentgroup"] @alignmentgroup.setter def alignmentgroup(self, val): - self['alignmentgroup'] = val + self["alignmentgroup"] = val # autobinx # -------- @@ -57821,11 +57658,11 @@ def autobinx(self): ------- bool """ - return self['autobinx'] + return self["autobinx"] @autobinx.setter def autobinx(self, val): - self['autobinx'] = val + self["autobinx"] = val # autobiny # -------- @@ -57844,11 +57681,11 @@ def autobiny(self): ------- bool """ - return self['autobiny'] + return self["autobiny"] @autobiny.setter def autobiny(self, val): - self['autobiny'] = val + self["autobiny"] = val # bingroup # -------- @@ -57871,11 +57708,11 @@ def bingroup(self): ------- str """ - return self['bingroup'] + return self["bingroup"] @bingroup.setter def bingroup(self, val): - self['bingroup'] = val + self["bingroup"] = val # cumulative # ---------- @@ -57921,11 +57758,11 @@ def cumulative(self): ------- plotly.graph_objs.histogram.Cumulative """ - return self['cumulative'] + return self["cumulative"] @cumulative.setter def cumulative(self, val): - self['cumulative'] = val + self["cumulative"] = val # customdata # ---------- @@ -57944,11 +57781,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -57964,11 +57801,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # error_x # ------- @@ -58045,11 +57882,11 @@ def error_x(self): ------- plotly.graph_objs.histogram.ErrorX """ - return self['error_x'] + return self["error_x"] @error_x.setter def error_x(self, val): - self['error_x'] = val + self["error_x"] = val # error_y # ------- @@ -58124,11 +57961,11 @@ def error_y(self): ------- plotly.graph_objs.histogram.ErrorY """ - return self['error_y'] + return self["error_y"] @error_y.setter def error_y(self, val): - self['error_y'] = val + self["error_y"] = val # histfunc # -------- @@ -58150,11 +57987,11 @@ def histfunc(self): ------- Any """ - return self['histfunc'] + return self["histfunc"] @histfunc.setter def histfunc(self, val): - self['histfunc'] = val + self["histfunc"] = val # histnorm # -------- @@ -58184,11 +58021,11 @@ def histnorm(self): ------- Any """ - return self['histnorm'] + return self["histnorm"] @histnorm.setter def histnorm(self, val): - self['histnorm'] = val + self["histnorm"] = val # hoverinfo # --------- @@ -58210,11 +58047,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -58230,11 +58067,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -58289,11 +58126,11 @@ def hoverlabel(self): ------- plotly.graph_objs.histogram.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -58325,11 +58162,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -58345,11 +58182,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -58367,11 +58204,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -58387,11 +58224,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -58409,11 +58246,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -58429,11 +58266,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # legendgroup # ----------- @@ -58452,11 +58289,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # marker # ------ @@ -58570,11 +58407,11 @@ def marker(self): ------- plotly.graph_objs.histogram.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -58598,11 +58435,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -58618,11 +58455,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -58640,11 +58477,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # nbinsx # ------ @@ -58664,11 +58501,11 @@ def nbinsx(self): ------- int """ - return self['nbinsx'] + return self["nbinsx"] @nbinsx.setter def nbinsx(self, val): - self['nbinsx'] = val + self["nbinsx"] = val # nbinsy # ------ @@ -58688,11 +58525,11 @@ def nbinsy(self): ------- int """ - return self['nbinsy'] + return self["nbinsy"] @nbinsy.setter def nbinsy(self, val): - self['nbinsy'] = val + self["nbinsy"] = val # offsetgroup # ----------- @@ -58711,11 +58548,11 @@ def offsetgroup(self): ------- str """ - return self['offsetgroup'] + return self["offsetgroup"] @offsetgroup.setter def offsetgroup(self, val): - self['offsetgroup'] = val + self["offsetgroup"] = val # opacity # ------- @@ -58731,11 +58568,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # orientation # ----------- @@ -58753,11 +58590,11 @@ def orientation(self): ------- Any """ - return self['orientation'] + return self["orientation"] @orientation.setter def orientation(self, val): - self['orientation'] = val + self["orientation"] = val # selected # -------- @@ -58783,11 +58620,11 @@ def selected(self): ------- plotly.graph_objs.histogram.Selected """ - return self['selected'] + return self["selected"] @selected.setter def selected(self, val): - self['selected'] = val + self["selected"] = val # selectedpoints # -------------- @@ -58807,11 +58644,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -58828,11 +58665,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -58861,11 +58698,11 @@ def stream(self): ------- plotly.graph_objs.histogram.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -58886,11 +58723,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -58906,11 +58743,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -58928,11 +58765,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -58961,11 +58798,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # unselected # ---------- @@ -58991,11 +58828,11 @@ def unselected(self): ------- plotly.graph_objs.histogram.Unselected """ - return self['unselected'] + return self["unselected"] @unselected.setter def unselected(self, val): - self['unselected'] = val + self["unselected"] = val # visible # ------- @@ -59014,11 +58851,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -59034,11 +58871,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xaxis # ----- @@ -59059,11 +58896,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # xbins # ----- @@ -59127,11 +58964,11 @@ def xbins(self): ------- plotly.graph_objs.histogram.XBins """ - return self['xbins'] + return self["xbins"] @xbins.setter def xbins(self, val): - self['xbins'] = val + self["xbins"] = val # xcalendar # --------- @@ -59151,11 +58988,11 @@ def xcalendar(self): ------- Any """ - return self['xcalendar'] + return self["xcalendar"] @xcalendar.setter def xcalendar(self, val): - self['xcalendar'] = val + self["xcalendar"] = val # xsrc # ---- @@ -59171,11 +59008,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -59191,11 +59028,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yaxis # ----- @@ -59216,11 +59053,11 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # ybins # ----- @@ -59284,11 +59121,11 @@ def ybins(self): ------- plotly.graph_objs.histogram.YBins """ - return self['ybins'] + return self["ybins"] @ybins.setter def ybins(self, val): - self['ybins'] = val + self["ybins"] = val # ycalendar # --------- @@ -59308,11 +59145,11 @@ def ycalendar(self): ------- Any """ - return self['ycalendar'] + return self["ycalendar"] @ycalendar.setter def ycalendar(self, val): - self['ycalendar'] = val + self["ycalendar"] = val # ysrc # ---- @@ -59328,23 +59165,23 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -59901,7 +59738,7 @@ def __init__( ------- Histogram """ - super(Histogram, self).__init__('histogram') + super(Histogram, self).__init__("histogram") # Validate arg # ------------ @@ -59921,186 +59758,179 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (histogram as v_histogram) + from plotly.validators import histogram as v_histogram # Initialize validators # --------------------- - self._validators['alignmentgroup' - ] = v_histogram.AlignmentgroupValidator() - self._validators['autobinx'] = v_histogram.AutobinxValidator() - self._validators['autobiny'] = v_histogram.AutobinyValidator() - self._validators['bingroup'] = v_histogram.BingroupValidator() - self._validators['cumulative'] = v_histogram.CumulativeValidator() - self._validators['customdata'] = v_histogram.CustomdataValidator() - self._validators['customdatasrc'] = v_histogram.CustomdatasrcValidator( - ) - self._validators['error_x'] = v_histogram.ErrorXValidator() - self._validators['error_y'] = v_histogram.ErrorYValidator() - self._validators['histfunc'] = v_histogram.HistfuncValidator() - self._validators['histnorm'] = v_histogram.HistnormValidator() - self._validators['hoverinfo'] = v_histogram.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_histogram.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_histogram.HoverlabelValidator() - self._validators['hovertemplate'] = v_histogram.HovertemplateValidator( - ) - self._validators['hovertemplatesrc' - ] = v_histogram.HovertemplatesrcValidator() - self._validators['hovertext'] = v_histogram.HovertextValidator() - self._validators['hovertextsrc'] = v_histogram.HovertextsrcValidator() - self._validators['ids'] = v_histogram.IdsValidator() - self._validators['idssrc'] = v_histogram.IdssrcValidator() - self._validators['legendgroup'] = v_histogram.LegendgroupValidator() - self._validators['marker'] = v_histogram.MarkerValidator() - self._validators['meta'] = v_histogram.MetaValidator() - self._validators['metasrc'] = v_histogram.MetasrcValidator() - self._validators['name'] = v_histogram.NameValidator() - self._validators['nbinsx'] = v_histogram.NbinsxValidator() - self._validators['nbinsy'] = v_histogram.NbinsyValidator() - self._validators['offsetgroup'] = v_histogram.OffsetgroupValidator() - self._validators['opacity'] = v_histogram.OpacityValidator() - self._validators['orientation'] = v_histogram.OrientationValidator() - self._validators['selected'] = v_histogram.SelectedValidator() - self._validators['selectedpoints' - ] = v_histogram.SelectedpointsValidator() - self._validators['showlegend'] = v_histogram.ShowlegendValidator() - self._validators['stream'] = v_histogram.StreamValidator() - self._validators['text'] = v_histogram.TextValidator() - self._validators['textsrc'] = v_histogram.TextsrcValidator() - self._validators['uid'] = v_histogram.UidValidator() - self._validators['uirevision'] = v_histogram.UirevisionValidator() - self._validators['unselected'] = v_histogram.UnselectedValidator() - self._validators['visible'] = v_histogram.VisibleValidator() - self._validators['x'] = v_histogram.XValidator() - self._validators['xaxis'] = v_histogram.XAxisValidator() - self._validators['xbins'] = v_histogram.XBinsValidator() - self._validators['xcalendar'] = v_histogram.XcalendarValidator() - self._validators['xsrc'] = v_histogram.XsrcValidator() - self._validators['y'] = v_histogram.YValidator() - self._validators['yaxis'] = v_histogram.YAxisValidator() - self._validators['ybins'] = v_histogram.YBinsValidator() - self._validators['ycalendar'] = v_histogram.YcalendarValidator() - self._validators['ysrc'] = v_histogram.YsrcValidator() + self._validators["alignmentgroup"] = v_histogram.AlignmentgroupValidator() + self._validators["autobinx"] = v_histogram.AutobinxValidator() + self._validators["autobiny"] = v_histogram.AutobinyValidator() + self._validators["bingroup"] = v_histogram.BingroupValidator() + self._validators["cumulative"] = v_histogram.CumulativeValidator() + self._validators["customdata"] = v_histogram.CustomdataValidator() + self._validators["customdatasrc"] = v_histogram.CustomdatasrcValidator() + self._validators["error_x"] = v_histogram.ErrorXValidator() + self._validators["error_y"] = v_histogram.ErrorYValidator() + self._validators["histfunc"] = v_histogram.HistfuncValidator() + self._validators["histnorm"] = v_histogram.HistnormValidator() + self._validators["hoverinfo"] = v_histogram.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_histogram.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_histogram.HoverlabelValidator() + self._validators["hovertemplate"] = v_histogram.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_histogram.HovertemplatesrcValidator() + self._validators["hovertext"] = v_histogram.HovertextValidator() + self._validators["hovertextsrc"] = v_histogram.HovertextsrcValidator() + self._validators["ids"] = v_histogram.IdsValidator() + self._validators["idssrc"] = v_histogram.IdssrcValidator() + self._validators["legendgroup"] = v_histogram.LegendgroupValidator() + self._validators["marker"] = v_histogram.MarkerValidator() + self._validators["meta"] = v_histogram.MetaValidator() + self._validators["metasrc"] = v_histogram.MetasrcValidator() + self._validators["name"] = v_histogram.NameValidator() + self._validators["nbinsx"] = v_histogram.NbinsxValidator() + self._validators["nbinsy"] = v_histogram.NbinsyValidator() + self._validators["offsetgroup"] = v_histogram.OffsetgroupValidator() + self._validators["opacity"] = v_histogram.OpacityValidator() + self._validators["orientation"] = v_histogram.OrientationValidator() + self._validators["selected"] = v_histogram.SelectedValidator() + self._validators["selectedpoints"] = v_histogram.SelectedpointsValidator() + self._validators["showlegend"] = v_histogram.ShowlegendValidator() + self._validators["stream"] = v_histogram.StreamValidator() + self._validators["text"] = v_histogram.TextValidator() + self._validators["textsrc"] = v_histogram.TextsrcValidator() + self._validators["uid"] = v_histogram.UidValidator() + self._validators["uirevision"] = v_histogram.UirevisionValidator() + self._validators["unselected"] = v_histogram.UnselectedValidator() + self._validators["visible"] = v_histogram.VisibleValidator() + self._validators["x"] = v_histogram.XValidator() + self._validators["xaxis"] = v_histogram.XAxisValidator() + self._validators["xbins"] = v_histogram.XBinsValidator() + self._validators["xcalendar"] = v_histogram.XcalendarValidator() + self._validators["xsrc"] = v_histogram.XsrcValidator() + self._validators["y"] = v_histogram.YValidator() + self._validators["yaxis"] = v_histogram.YAxisValidator() + self._validators["ybins"] = v_histogram.YBinsValidator() + self._validators["ycalendar"] = v_histogram.YcalendarValidator() + self._validators["ysrc"] = v_histogram.YsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('alignmentgroup', None) - self['alignmentgroup' - ] = alignmentgroup if alignmentgroup is not None else _v - _v = arg.pop('autobinx', None) - self['autobinx'] = autobinx if autobinx is not None else _v - _v = arg.pop('autobiny', None) - self['autobiny'] = autobiny if autobiny is not None else _v - _v = arg.pop('bingroup', None) - self['bingroup'] = bingroup if bingroup is not None else _v - _v = arg.pop('cumulative', None) - self['cumulative'] = cumulative if cumulative is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('error_x', None) - self['error_x'] = error_x if error_x is not None else _v - _v = arg.pop('error_y', None) - self['error_y'] = error_y if error_y is not None else _v - _v = arg.pop('histfunc', None) - self['histfunc'] = histfunc if histfunc is not None else _v - _v = arg.pop('histnorm', None) - self['histnorm'] = histnorm if histnorm is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('nbinsx', None) - self['nbinsx'] = nbinsx if nbinsx is not None else _v - _v = arg.pop('nbinsy', None) - self['nbinsy'] = nbinsy if nbinsy is not None else _v - _v = arg.pop('offsetgroup', None) - self['offsetgroup'] = offsetgroup if offsetgroup is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('orientation', None) - self['orientation'] = orientation if orientation is not None else _v - _v = arg.pop('selected', None) - self['selected'] = selected if selected is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('unselected', None) - self['unselected'] = unselected if unselected is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('xbins', None) - self['xbins'] = xbins if xbins is not None else _v - _v = arg.pop('xcalendar', None) - self['xcalendar'] = xcalendar if xcalendar is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v - _v = arg.pop('ybins', None) - self['ybins'] = ybins if ybins is not None else _v - _v = arg.pop('ycalendar', None) - self['ycalendar'] = ycalendar if ycalendar is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v + _v = arg.pop("alignmentgroup", None) + self["alignmentgroup"] = alignmentgroup if alignmentgroup is not None else _v + _v = arg.pop("autobinx", None) + self["autobinx"] = autobinx if autobinx is not None else _v + _v = arg.pop("autobiny", None) + self["autobiny"] = autobiny if autobiny is not None else _v + _v = arg.pop("bingroup", None) + self["bingroup"] = bingroup if bingroup is not None else _v + _v = arg.pop("cumulative", None) + self["cumulative"] = cumulative if cumulative is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("error_x", None) + self["error_x"] = error_x if error_x is not None else _v + _v = arg.pop("error_y", None) + self["error_y"] = error_y if error_y is not None else _v + _v = arg.pop("histfunc", None) + self["histfunc"] = histfunc if histfunc is not None else _v + _v = arg.pop("histnorm", None) + self["histnorm"] = histnorm if histnorm is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("nbinsx", None) + self["nbinsx"] = nbinsx if nbinsx is not None else _v + _v = arg.pop("nbinsy", None) + self["nbinsy"] = nbinsy if nbinsy is not None else _v + _v = arg.pop("offsetgroup", None) + self["offsetgroup"] = offsetgroup if offsetgroup is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("orientation", None) + self["orientation"] = orientation if orientation is not None else _v + _v = arg.pop("selected", None) + self["selected"] = selected if selected is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("unselected", None) + self["unselected"] = unselected if unselected is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("xbins", None) + self["xbins"] = xbins if xbins is not None else _v + _v = arg.pop("xcalendar", None) + self["xcalendar"] = xcalendar if xcalendar is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v + _v = arg.pop("ybins", None) + self["ybins"] = ybins if ybins is not None else _v + _v = arg.pop("ycalendar", None) + self["ycalendar"] = ycalendar if ycalendar is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'histogram' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='histogram', val='histogram' + + self._props["type"] = "histogram" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="histogram", val="histogram" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -60136,11 +59966,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # coloraxis # --------- @@ -60163,11 +59993,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -60396,11 +60226,11 @@ def colorbar(self): ------- plotly.graph_objs.heatmapgl.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -60433,11 +60263,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # customdata # ---------- @@ -60456,11 +60286,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -60476,11 +60306,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # dx # -- @@ -60496,11 +60326,11 @@ def dx(self): ------- int|float """ - return self['dx'] + return self["dx"] @dx.setter def dx(self, val): - self['dx'] = val + self["dx"] = val # dy # -- @@ -60516,11 +60346,11 @@ def dy(self): ------- int|float """ - return self['dy'] + return self["dy"] @dy.setter def dy(self, val): - self['dy'] = val + self["dy"] = val # hoverinfo # --------- @@ -60542,11 +60372,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -60562,11 +60392,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -60621,11 +60451,11 @@ def hoverlabel(self): ------- plotly.graph_objs.heatmapgl.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # ids # --- @@ -60643,11 +60473,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -60663,11 +60493,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # meta # ---- @@ -60691,11 +60521,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -60711,11 +60541,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -60733,11 +60563,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -60753,11 +60583,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # reversescale # ------------ @@ -60775,11 +60605,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -60796,11 +60626,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # stream # ------ @@ -60829,11 +60659,11 @@ def stream(self): ------- plotly.graph_objs.heatmapgl.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -60849,11 +60679,11 @@ def text(self): ------- numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -60869,11 +60699,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # transpose # --------- @@ -60889,11 +60719,11 @@ def transpose(self): ------- bool """ - return self['transpose'] + return self["transpose"] @transpose.setter def transpose(self, val): - self['transpose'] = val + self["transpose"] = val # uid # --- @@ -60911,11 +60741,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -60944,11 +60774,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -60967,11 +60797,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -60987,11 +60817,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # x0 # -- @@ -61008,11 +60838,11 @@ def x0(self): ------- Any """ - return self['x0'] + return self["x0"] @x0.setter def x0(self, val): - self['x0'] = val + self["x0"] = val # xaxis # ----- @@ -61033,11 +60863,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # xsrc # ---- @@ -61053,11 +60883,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # xtype # ----- @@ -61077,11 +60907,11 @@ def xtype(self): ------- Any """ - return self['xtype'] + return self["xtype"] @xtype.setter def xtype(self, val): - self['xtype'] = val + self["xtype"] = val # y # - @@ -61097,11 +60927,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # y0 # -- @@ -61118,11 +60948,11 @@ def y0(self): ------- Any """ - return self['y0'] + return self["y0"] @y0.setter def y0(self, val): - self['y0'] = val + self["y0"] = val # yaxis # ----- @@ -61143,11 +60973,11 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # ysrc # ---- @@ -61163,11 +60993,11 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # ytype # ----- @@ -61187,11 +61017,11 @@ def ytype(self): ------- Any """ - return self['ytype'] + return self["ytype"] @ytype.setter def ytype(self, val): - self['ytype'] = val + self["ytype"] = val # z # - @@ -61207,11 +61037,11 @@ def z(self): ------- numpy.ndarray """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # zauto # ----- @@ -61230,11 +61060,11 @@ def zauto(self): ------- bool """ - return self['zauto'] + return self["zauto"] @zauto.setter def zauto(self, val): - self['zauto'] = val + self["zauto"] = val # zmax # ---- @@ -61251,11 +61081,11 @@ def zmax(self): ------- int|float """ - return self['zmax'] + return self["zmax"] @zmax.setter def zmax(self, val): - self['zmax'] = val + self["zmax"] = val # zmid # ---- @@ -61273,11 +61103,11 @@ def zmid(self): ------- int|float """ - return self['zmid'] + return self["zmid"] @zmid.setter def zmid(self, val): - self['zmid'] = val + self["zmid"] = val # zmin # ---- @@ -61294,11 +61124,11 @@ def zmin(self): ------- int|float """ - return self['zmin'] + return self["zmin"] @zmin.setter def zmin(self, val): - self['zmin'] = val + self["zmin"] = val # zsrc # ---- @@ -61314,23 +61144,23 @@ def zsrc(self): ------- str """ - return self['zsrc'] + return self["zsrc"] @zsrc.setter def zsrc(self, val): - self['zsrc'] = val + self["zsrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -61759,7 +61589,7 @@ def __init__( ------- Heatmapgl """ - super(Heatmapgl, self).__init__('heatmapgl') + super(Heatmapgl, self).__init__("heatmapgl") # Validate arg # ------------ @@ -61779,156 +61609,153 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (heatmapgl as v_heatmapgl) + from plotly.validators import heatmapgl as v_heatmapgl # Initialize validators # --------------------- - self._validators['autocolorscale' - ] = v_heatmapgl.AutocolorscaleValidator() - self._validators['coloraxis'] = v_heatmapgl.ColoraxisValidator() - self._validators['colorbar'] = v_heatmapgl.ColorBarValidator() - self._validators['colorscale'] = v_heatmapgl.ColorscaleValidator() - self._validators['customdata'] = v_heatmapgl.CustomdataValidator() - self._validators['customdatasrc'] = v_heatmapgl.CustomdatasrcValidator( - ) - self._validators['dx'] = v_heatmapgl.DxValidator() - self._validators['dy'] = v_heatmapgl.DyValidator() - self._validators['hoverinfo'] = v_heatmapgl.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_heatmapgl.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_heatmapgl.HoverlabelValidator() - self._validators['ids'] = v_heatmapgl.IdsValidator() - self._validators['idssrc'] = v_heatmapgl.IdssrcValidator() - self._validators['meta'] = v_heatmapgl.MetaValidator() - self._validators['metasrc'] = v_heatmapgl.MetasrcValidator() - self._validators['name'] = v_heatmapgl.NameValidator() - self._validators['opacity'] = v_heatmapgl.OpacityValidator() - self._validators['reversescale'] = v_heatmapgl.ReversescaleValidator() - self._validators['showscale'] = v_heatmapgl.ShowscaleValidator() - self._validators['stream'] = v_heatmapgl.StreamValidator() - self._validators['text'] = v_heatmapgl.TextValidator() - self._validators['textsrc'] = v_heatmapgl.TextsrcValidator() - self._validators['transpose'] = v_heatmapgl.TransposeValidator() - self._validators['uid'] = v_heatmapgl.UidValidator() - self._validators['uirevision'] = v_heatmapgl.UirevisionValidator() - self._validators['visible'] = v_heatmapgl.VisibleValidator() - self._validators['x'] = v_heatmapgl.XValidator() - self._validators['x0'] = v_heatmapgl.X0Validator() - self._validators['xaxis'] = v_heatmapgl.XAxisValidator() - self._validators['xsrc'] = v_heatmapgl.XsrcValidator() - self._validators['xtype'] = v_heatmapgl.XtypeValidator() - self._validators['y'] = v_heatmapgl.YValidator() - self._validators['y0'] = v_heatmapgl.Y0Validator() - self._validators['yaxis'] = v_heatmapgl.YAxisValidator() - self._validators['ysrc'] = v_heatmapgl.YsrcValidator() - self._validators['ytype'] = v_heatmapgl.YtypeValidator() - self._validators['z'] = v_heatmapgl.ZValidator() - self._validators['zauto'] = v_heatmapgl.ZautoValidator() - self._validators['zmax'] = v_heatmapgl.ZmaxValidator() - self._validators['zmid'] = v_heatmapgl.ZmidValidator() - self._validators['zmin'] = v_heatmapgl.ZminValidator() - self._validators['zsrc'] = v_heatmapgl.ZsrcValidator() + self._validators["autocolorscale"] = v_heatmapgl.AutocolorscaleValidator() + self._validators["coloraxis"] = v_heatmapgl.ColoraxisValidator() + self._validators["colorbar"] = v_heatmapgl.ColorBarValidator() + self._validators["colorscale"] = v_heatmapgl.ColorscaleValidator() + self._validators["customdata"] = v_heatmapgl.CustomdataValidator() + self._validators["customdatasrc"] = v_heatmapgl.CustomdatasrcValidator() + self._validators["dx"] = v_heatmapgl.DxValidator() + self._validators["dy"] = v_heatmapgl.DyValidator() + self._validators["hoverinfo"] = v_heatmapgl.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_heatmapgl.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_heatmapgl.HoverlabelValidator() + self._validators["ids"] = v_heatmapgl.IdsValidator() + self._validators["idssrc"] = v_heatmapgl.IdssrcValidator() + self._validators["meta"] = v_heatmapgl.MetaValidator() + self._validators["metasrc"] = v_heatmapgl.MetasrcValidator() + self._validators["name"] = v_heatmapgl.NameValidator() + self._validators["opacity"] = v_heatmapgl.OpacityValidator() + self._validators["reversescale"] = v_heatmapgl.ReversescaleValidator() + self._validators["showscale"] = v_heatmapgl.ShowscaleValidator() + self._validators["stream"] = v_heatmapgl.StreamValidator() + self._validators["text"] = v_heatmapgl.TextValidator() + self._validators["textsrc"] = v_heatmapgl.TextsrcValidator() + self._validators["transpose"] = v_heatmapgl.TransposeValidator() + self._validators["uid"] = v_heatmapgl.UidValidator() + self._validators["uirevision"] = v_heatmapgl.UirevisionValidator() + self._validators["visible"] = v_heatmapgl.VisibleValidator() + self._validators["x"] = v_heatmapgl.XValidator() + self._validators["x0"] = v_heatmapgl.X0Validator() + self._validators["xaxis"] = v_heatmapgl.XAxisValidator() + self._validators["xsrc"] = v_heatmapgl.XsrcValidator() + self._validators["xtype"] = v_heatmapgl.XtypeValidator() + self._validators["y"] = v_heatmapgl.YValidator() + self._validators["y0"] = v_heatmapgl.Y0Validator() + self._validators["yaxis"] = v_heatmapgl.YAxisValidator() + self._validators["ysrc"] = v_heatmapgl.YsrcValidator() + self._validators["ytype"] = v_heatmapgl.YtypeValidator() + self._validators["z"] = v_heatmapgl.ZValidator() + self._validators["zauto"] = v_heatmapgl.ZautoValidator() + self._validators["zmax"] = v_heatmapgl.ZmaxValidator() + self._validators["zmid"] = v_heatmapgl.ZmidValidator() + self._validators["zmin"] = v_heatmapgl.ZminValidator() + self._validators["zsrc"] = v_heatmapgl.ZsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('dx', None) - self['dx'] = dx if dx is not None else _v - _v = arg.pop('dy', None) - self['dy'] = dy if dy is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('transpose', None) - self['transpose'] = transpose if transpose is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('x0', None) - self['x0'] = x0 if x0 is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('xtype', None) - self['xtype'] = xtype if xtype is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('y0', None) - self['y0'] = y0 if y0 is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v - _v = arg.pop('ytype', None) - self['ytype'] = ytype if ytype is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v - _v = arg.pop('zauto', None) - self['zauto'] = zauto if zauto is not None else _v - _v = arg.pop('zmax', None) - self['zmax'] = zmax if zmax is not None else _v - _v = arg.pop('zmid', None) - self['zmid'] = zmid if zmid is not None else _v - _v = arg.pop('zmin', None) - self['zmin'] = zmin if zmin is not None else _v - _v = arg.pop('zsrc', None) - self['zsrc'] = zsrc if zsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("dx", None) + self["dx"] = dx if dx is not None else _v + _v = arg.pop("dy", None) + self["dy"] = dy if dy is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("transpose", None) + self["transpose"] = transpose if transpose is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("x0", None) + self["x0"] = x0 if x0 is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("xtype", None) + self["xtype"] = xtype if xtype is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("y0", None) + self["y0"] = y0 if y0 is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v + _v = arg.pop("ytype", None) + self["ytype"] = ytype if ytype is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v + _v = arg.pop("zauto", None) + self["zauto"] = zauto if zauto is not None else _v + _v = arg.pop("zmax", None) + self["zmax"] = zmax if zmax is not None else _v + _v = arg.pop("zmid", None) + self["zmid"] = zmid if zmid is not None else _v + _v = arg.pop("zmin", None) + self["zmin"] = zmin if zmin is not None else _v + _v = arg.pop("zsrc", None) + self["zsrc"] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'heatmapgl' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='heatmapgl', val='heatmapgl' + + self._props["type"] = "heatmapgl" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="heatmapgl", val="heatmapgl" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -61964,11 +61791,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # coloraxis # --------- @@ -61991,11 +61818,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -62223,11 +62050,11 @@ def colorbar(self): ------- plotly.graph_objs.heatmap.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -62260,11 +62087,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # connectgaps # ----------- @@ -62281,11 +62108,11 @@ def connectgaps(self): ------- bool """ - return self['connectgaps'] + return self["connectgaps"] @connectgaps.setter def connectgaps(self, val): - self['connectgaps'] = val + self["connectgaps"] = val # customdata # ---------- @@ -62304,11 +62131,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -62324,11 +62151,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # dx # -- @@ -62344,11 +62171,11 @@ def dx(self): ------- int|float """ - return self['dx'] + return self["dx"] @dx.setter def dx(self, val): - self['dx'] = val + self["dx"] = val # dy # -- @@ -62364,11 +62191,11 @@ def dy(self): ------- int|float """ - return self['dy'] + return self["dy"] @dy.setter def dy(self, val): - self['dy'] = val + self["dy"] = val # hoverinfo # --------- @@ -62390,11 +62217,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -62410,11 +62237,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -62469,11 +62296,11 @@ def hoverlabel(self): ------- plotly.graph_objs.heatmap.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -62505,11 +62332,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -62525,11 +62352,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -62545,11 +62372,11 @@ def hovertext(self): ------- numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -62565,11 +62392,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -62587,11 +62414,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -62607,11 +62434,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # meta # ---- @@ -62635,11 +62462,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -62655,11 +62482,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -62677,11 +62504,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -62697,11 +62524,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # reversescale # ------------ @@ -62719,11 +62546,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -62740,11 +62567,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # stream # ------ @@ -62773,11 +62600,11 @@ def stream(self): ------- plotly.graph_objs.heatmap.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -62793,11 +62620,11 @@ def text(self): ------- numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -62813,11 +62640,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # transpose # --------- @@ -62833,11 +62660,11 @@ def transpose(self): ------- bool """ - return self['transpose'] + return self["transpose"] @transpose.setter def transpose(self, val): - self['transpose'] = val + self["transpose"] = val # uid # --- @@ -62855,11 +62682,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -62888,11 +62715,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -62911,11 +62738,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -62931,11 +62758,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # x0 # -- @@ -62952,11 +62779,11 @@ def x0(self): ------- Any """ - return self['x0'] + return self["x0"] @x0.setter def x0(self, val): - self['x0'] = val + self["x0"] = val # xaxis # ----- @@ -62977,11 +62804,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # xcalendar # --------- @@ -63001,11 +62828,11 @@ def xcalendar(self): ------- Any """ - return self['xcalendar'] + return self["xcalendar"] @xcalendar.setter def xcalendar(self, val): - self['xcalendar'] = val + self["xcalendar"] = val # xgap # ---- @@ -63021,11 +62848,11 @@ def xgap(self): ------- int|float """ - return self['xgap'] + return self["xgap"] @xgap.setter def xgap(self, val): - self['xgap'] = val + self["xgap"] = val # xsrc # ---- @@ -63041,11 +62868,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # xtype # ----- @@ -63065,11 +62892,11 @@ def xtype(self): ------- Any """ - return self['xtype'] + return self["xtype"] @xtype.setter def xtype(self, val): - self['xtype'] = val + self["xtype"] = val # y # - @@ -63085,11 +62912,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # y0 # -- @@ -63106,11 +62933,11 @@ def y0(self): ------- Any """ - return self['y0'] + return self["y0"] @y0.setter def y0(self, val): - self['y0'] = val + self["y0"] = val # yaxis # ----- @@ -63131,11 +62958,11 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # ycalendar # --------- @@ -63155,11 +62982,11 @@ def ycalendar(self): ------- Any """ - return self['ycalendar'] + return self["ycalendar"] @ycalendar.setter def ycalendar(self, val): - self['ycalendar'] = val + self["ycalendar"] = val # ygap # ---- @@ -63175,11 +63002,11 @@ def ygap(self): ------- int|float """ - return self['ygap'] + return self["ygap"] @ygap.setter def ygap(self, val): - self['ygap'] = val + self["ygap"] = val # ysrc # ---- @@ -63195,11 +63022,11 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # ytype # ----- @@ -63219,11 +63046,11 @@ def ytype(self): ------- Any """ - return self['ytype'] + return self["ytype"] @ytype.setter def ytype(self, val): - self['ytype'] = val + self["ytype"] = val # z # - @@ -63239,11 +63066,11 @@ def z(self): ------- numpy.ndarray """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # zauto # ----- @@ -63262,11 +63089,11 @@ def zauto(self): ------- bool """ - return self['zauto'] + return self["zauto"] @zauto.setter def zauto(self, val): - self['zauto'] = val + self["zauto"] = val # zhoverformat # ------------ @@ -63285,11 +63112,11 @@ def zhoverformat(self): ------- str """ - return self['zhoverformat'] + return self["zhoverformat"] @zhoverformat.setter def zhoverformat(self, val): - self['zhoverformat'] = val + self["zhoverformat"] = val # zmax # ---- @@ -63306,11 +63133,11 @@ def zmax(self): ------- int|float """ - return self['zmax'] + return self["zmax"] @zmax.setter def zmax(self, val): - self['zmax'] = val + self["zmax"] = val # zmid # ---- @@ -63328,11 +63155,11 @@ def zmid(self): ------- int|float """ - return self['zmid'] + return self["zmid"] @zmid.setter def zmid(self, val): - self['zmid'] = val + self["zmid"] = val # zmin # ---- @@ -63349,11 +63176,11 @@ def zmin(self): ------- int|float """ - return self['zmin'] + return self["zmin"] @zmin.setter def zmin(self, val): - self['zmin'] = val + self["zmin"] = val # zsmooth # ------- @@ -63370,11 +63197,11 @@ def zsmooth(self): ------- Any """ - return self['zsmooth'] + return self["zsmooth"] @zsmooth.setter def zsmooth(self, val): - self['zsmooth'] = val + self["zsmooth"] = val # zsrc # ---- @@ -63390,23 +63217,23 @@ def zsrc(self): ------- str """ - return self['zsrc'] + return self["zsrc"] @zsrc.setter def zsrc(self, val): - self['zsrc'] = val + self["zsrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -63948,7 +63775,7 @@ def __init__( ------- Heatmap """ - super(Heatmap, self).__init__('heatmap') + super(Heatmap, self).__init__("heatmap") # Validate arg # ------------ @@ -63968,191 +63795,188 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (heatmap as v_heatmap) + from plotly.validators import heatmap as v_heatmap # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_heatmap.AutocolorscaleValidator( - ) - self._validators['coloraxis'] = v_heatmap.ColoraxisValidator() - self._validators['colorbar'] = v_heatmap.ColorBarValidator() - self._validators['colorscale'] = v_heatmap.ColorscaleValidator() - self._validators['connectgaps'] = v_heatmap.ConnectgapsValidator() - self._validators['customdata'] = v_heatmap.CustomdataValidator() - self._validators['customdatasrc'] = v_heatmap.CustomdatasrcValidator() - self._validators['dx'] = v_heatmap.DxValidator() - self._validators['dy'] = v_heatmap.DyValidator() - self._validators['hoverinfo'] = v_heatmap.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_heatmap.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_heatmap.HoverlabelValidator() - self._validators['hovertemplate'] = v_heatmap.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_heatmap.HovertemplatesrcValidator() - self._validators['hovertext'] = v_heatmap.HovertextValidator() - self._validators['hovertextsrc'] = v_heatmap.HovertextsrcValidator() - self._validators['ids'] = v_heatmap.IdsValidator() - self._validators['idssrc'] = v_heatmap.IdssrcValidator() - self._validators['meta'] = v_heatmap.MetaValidator() - self._validators['metasrc'] = v_heatmap.MetasrcValidator() - self._validators['name'] = v_heatmap.NameValidator() - self._validators['opacity'] = v_heatmap.OpacityValidator() - self._validators['reversescale'] = v_heatmap.ReversescaleValidator() - self._validators['showscale'] = v_heatmap.ShowscaleValidator() - self._validators['stream'] = v_heatmap.StreamValidator() - self._validators['text'] = v_heatmap.TextValidator() - self._validators['textsrc'] = v_heatmap.TextsrcValidator() - self._validators['transpose'] = v_heatmap.TransposeValidator() - self._validators['uid'] = v_heatmap.UidValidator() - self._validators['uirevision'] = v_heatmap.UirevisionValidator() - self._validators['visible'] = v_heatmap.VisibleValidator() - self._validators['x'] = v_heatmap.XValidator() - self._validators['x0'] = v_heatmap.X0Validator() - self._validators['xaxis'] = v_heatmap.XAxisValidator() - self._validators['xcalendar'] = v_heatmap.XcalendarValidator() - self._validators['xgap'] = v_heatmap.XgapValidator() - self._validators['xsrc'] = v_heatmap.XsrcValidator() - self._validators['xtype'] = v_heatmap.XtypeValidator() - self._validators['y'] = v_heatmap.YValidator() - self._validators['y0'] = v_heatmap.Y0Validator() - self._validators['yaxis'] = v_heatmap.YAxisValidator() - self._validators['ycalendar'] = v_heatmap.YcalendarValidator() - self._validators['ygap'] = v_heatmap.YgapValidator() - self._validators['ysrc'] = v_heatmap.YsrcValidator() - self._validators['ytype'] = v_heatmap.YtypeValidator() - self._validators['z'] = v_heatmap.ZValidator() - self._validators['zauto'] = v_heatmap.ZautoValidator() - self._validators['zhoverformat'] = v_heatmap.ZhoverformatValidator() - self._validators['zmax'] = v_heatmap.ZmaxValidator() - self._validators['zmid'] = v_heatmap.ZmidValidator() - self._validators['zmin'] = v_heatmap.ZminValidator() - self._validators['zsmooth'] = v_heatmap.ZsmoothValidator() - self._validators['zsrc'] = v_heatmap.ZsrcValidator() + self._validators["autocolorscale"] = v_heatmap.AutocolorscaleValidator() + self._validators["coloraxis"] = v_heatmap.ColoraxisValidator() + self._validators["colorbar"] = v_heatmap.ColorBarValidator() + self._validators["colorscale"] = v_heatmap.ColorscaleValidator() + self._validators["connectgaps"] = v_heatmap.ConnectgapsValidator() + self._validators["customdata"] = v_heatmap.CustomdataValidator() + self._validators["customdatasrc"] = v_heatmap.CustomdatasrcValidator() + self._validators["dx"] = v_heatmap.DxValidator() + self._validators["dy"] = v_heatmap.DyValidator() + self._validators["hoverinfo"] = v_heatmap.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_heatmap.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_heatmap.HoverlabelValidator() + self._validators["hovertemplate"] = v_heatmap.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_heatmap.HovertemplatesrcValidator() + self._validators["hovertext"] = v_heatmap.HovertextValidator() + self._validators["hovertextsrc"] = v_heatmap.HovertextsrcValidator() + self._validators["ids"] = v_heatmap.IdsValidator() + self._validators["idssrc"] = v_heatmap.IdssrcValidator() + self._validators["meta"] = v_heatmap.MetaValidator() + self._validators["metasrc"] = v_heatmap.MetasrcValidator() + self._validators["name"] = v_heatmap.NameValidator() + self._validators["opacity"] = v_heatmap.OpacityValidator() + self._validators["reversescale"] = v_heatmap.ReversescaleValidator() + self._validators["showscale"] = v_heatmap.ShowscaleValidator() + self._validators["stream"] = v_heatmap.StreamValidator() + self._validators["text"] = v_heatmap.TextValidator() + self._validators["textsrc"] = v_heatmap.TextsrcValidator() + self._validators["transpose"] = v_heatmap.TransposeValidator() + self._validators["uid"] = v_heatmap.UidValidator() + self._validators["uirevision"] = v_heatmap.UirevisionValidator() + self._validators["visible"] = v_heatmap.VisibleValidator() + self._validators["x"] = v_heatmap.XValidator() + self._validators["x0"] = v_heatmap.X0Validator() + self._validators["xaxis"] = v_heatmap.XAxisValidator() + self._validators["xcalendar"] = v_heatmap.XcalendarValidator() + self._validators["xgap"] = v_heatmap.XgapValidator() + self._validators["xsrc"] = v_heatmap.XsrcValidator() + self._validators["xtype"] = v_heatmap.XtypeValidator() + self._validators["y"] = v_heatmap.YValidator() + self._validators["y0"] = v_heatmap.Y0Validator() + self._validators["yaxis"] = v_heatmap.YAxisValidator() + self._validators["ycalendar"] = v_heatmap.YcalendarValidator() + self._validators["ygap"] = v_heatmap.YgapValidator() + self._validators["ysrc"] = v_heatmap.YsrcValidator() + self._validators["ytype"] = v_heatmap.YtypeValidator() + self._validators["z"] = v_heatmap.ZValidator() + self._validators["zauto"] = v_heatmap.ZautoValidator() + self._validators["zhoverformat"] = v_heatmap.ZhoverformatValidator() + self._validators["zmax"] = v_heatmap.ZmaxValidator() + self._validators["zmid"] = v_heatmap.ZmidValidator() + self._validators["zmin"] = v_heatmap.ZminValidator() + self._validators["zsmooth"] = v_heatmap.ZsmoothValidator() + self._validators["zsrc"] = v_heatmap.ZsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('connectgaps', None) - self['connectgaps'] = connectgaps if connectgaps is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('dx', None) - self['dx'] = dx if dx is not None else _v - _v = arg.pop('dy', None) - self['dy'] = dy if dy is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('transpose', None) - self['transpose'] = transpose if transpose is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('x0', None) - self['x0'] = x0 if x0 is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('xcalendar', None) - self['xcalendar'] = xcalendar if xcalendar is not None else _v - _v = arg.pop('xgap', None) - self['xgap'] = xgap if xgap is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('xtype', None) - self['xtype'] = xtype if xtype is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('y0', None) - self['y0'] = y0 if y0 is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v - _v = arg.pop('ycalendar', None) - self['ycalendar'] = ycalendar if ycalendar is not None else _v - _v = arg.pop('ygap', None) - self['ygap'] = ygap if ygap is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v - _v = arg.pop('ytype', None) - self['ytype'] = ytype if ytype is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v - _v = arg.pop('zauto', None) - self['zauto'] = zauto if zauto is not None else _v - _v = arg.pop('zhoverformat', None) - self['zhoverformat'] = zhoverformat if zhoverformat is not None else _v - _v = arg.pop('zmax', None) - self['zmax'] = zmax if zmax is not None else _v - _v = arg.pop('zmid', None) - self['zmid'] = zmid if zmid is not None else _v - _v = arg.pop('zmin', None) - self['zmin'] = zmin if zmin is not None else _v - _v = arg.pop('zsmooth', None) - self['zsmooth'] = zsmooth if zsmooth is not None else _v - _v = arg.pop('zsrc', None) - self['zsrc'] = zsrc if zsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("connectgaps", None) + self["connectgaps"] = connectgaps if connectgaps is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("dx", None) + self["dx"] = dx if dx is not None else _v + _v = arg.pop("dy", None) + self["dy"] = dy if dy is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("transpose", None) + self["transpose"] = transpose if transpose is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("x0", None) + self["x0"] = x0 if x0 is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("xcalendar", None) + self["xcalendar"] = xcalendar if xcalendar is not None else _v + _v = arg.pop("xgap", None) + self["xgap"] = xgap if xgap is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("xtype", None) + self["xtype"] = xtype if xtype is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("y0", None) + self["y0"] = y0 if y0 is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v + _v = arg.pop("ycalendar", None) + self["ycalendar"] = ycalendar if ycalendar is not None else _v + _v = arg.pop("ygap", None) + self["ygap"] = ygap if ygap is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v + _v = arg.pop("ytype", None) + self["ytype"] = ytype if ytype is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v + _v = arg.pop("zauto", None) + self["zauto"] = zauto if zauto is not None else _v + _v = arg.pop("zhoverformat", None) + self["zhoverformat"] = zhoverformat if zhoverformat is not None else _v + _v = arg.pop("zmax", None) + self["zmax"] = zmax if zmax is not None else _v + _v = arg.pop("zmid", None) + self["zmid"] = zmid if zmid is not None else _v + _v = arg.pop("zmin", None) + self["zmin"] = zmin if zmin is not None else _v + _v = arg.pop("zsmooth", None) + self["zsmooth"] = zsmooth if zsmooth is not None else _v + _v = arg.pop("zsrc", None) + self["zsrc"] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'heatmap' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='heatmap', val='heatmap' + + self._props["type"] = "heatmap" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="heatmap", val="heatmap" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -64183,11 +64007,11 @@ def aspectratio(self): ------- int|float """ - return self['aspectratio'] + return self["aspectratio"] @aspectratio.setter def aspectratio(self, val): - self['aspectratio'] = val + self["aspectratio"] = val # baseratio # --------- @@ -64203,11 +64027,11 @@ def baseratio(self): ------- int|float """ - return self['baseratio'] + return self["baseratio"] @baseratio.setter def baseratio(self, val): - self['baseratio'] = val + self["baseratio"] = val # customdata # ---------- @@ -64226,11 +64050,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -64246,11 +64070,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # dlabel # ------ @@ -64266,11 +64090,11 @@ def dlabel(self): ------- int|float """ - return self['dlabel'] + return self["dlabel"] @dlabel.setter def dlabel(self, val): - self['dlabel'] = val + self["dlabel"] = val # domain # ------ @@ -64304,11 +64128,11 @@ def domain(self): ------- plotly.graph_objs.funnelarea.Domain """ - return self['domain'] + return self["domain"] @domain.setter def domain(self, val): - self['domain'] = val + self["domain"] = val # hoverinfo # --------- @@ -64330,11 +64154,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -64350,11 +64174,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -64409,11 +64233,11 @@ def hoverlabel(self): ------- plotly.graph_objs.funnelarea.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -64446,11 +64270,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -64466,11 +64290,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -64492,11 +64316,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -64512,11 +64336,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -64534,11 +64358,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -64554,11 +64378,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # insidetextfont # -------------- @@ -64609,11 +64433,11 @@ def insidetextfont(self): ------- plotly.graph_objs.funnelarea.Insidetextfont """ - return self['insidetextfont'] + return self["insidetextfont"] @insidetextfont.setter def insidetextfont(self, val): - self['insidetextfont'] = val + self["insidetextfont"] = val # label0 # ------ @@ -64631,11 +64455,11 @@ def label0(self): ------- int|float """ - return self['label0'] + return self["label0"] @label0.setter def label0(self, val): - self['label0'] = val + self["label0"] = val # labels # ------ @@ -64655,11 +64479,11 @@ def labels(self): ------- numpy.ndarray """ - return self['labels'] + return self["labels"] @labels.setter def labels(self, val): - self['labels'] = val + self["labels"] = val # labelssrc # --------- @@ -64675,11 +64499,11 @@ def labelssrc(self): ------- str """ - return self['labelssrc'] + return self["labelssrc"] @labelssrc.setter def labelssrc(self, val): - self['labelssrc'] = val + self["labelssrc"] = val # legendgroup # ----------- @@ -64698,11 +64522,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # marker # ------ @@ -64732,11 +64556,11 @@ def marker(self): ------- plotly.graph_objs.funnelarea.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -64760,11 +64584,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -64780,11 +64604,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -64802,11 +64626,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -64822,11 +64646,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # scalegroup # ---------- @@ -64845,11 +64669,11 @@ def scalegroup(self): ------- str """ - return self['scalegroup'] + return self["scalegroup"] @scalegroup.setter def scalegroup(self, val): - self['scalegroup'] = val + self["scalegroup"] = val # showlegend # ---------- @@ -64866,11 +64690,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -64899,11 +64723,11 @@ def stream(self): ------- plotly.graph_objs.funnelarea.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -64923,11 +64747,11 @@ def text(self): ------- numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textfont # -------- @@ -64978,11 +64802,11 @@ def textfont(self): ------- plotly.graph_objs.funnelarea.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # textinfo # -------- @@ -65001,11 +64825,11 @@ def textinfo(self): ------- Any """ - return self['textinfo'] + return self["textinfo"] @textinfo.setter def textinfo(self, val): - self['textinfo'] = val + self["textinfo"] = val # textposition # ------------ @@ -65023,11 +64847,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self['textposition'] + return self["textposition"] @textposition.setter def textposition(self, val): - self['textposition'] = val + self["textposition"] = val # textpositionsrc # --------------- @@ -65043,11 +64867,11 @@ def textpositionsrc(self): ------- str """ - return self['textpositionsrc'] + return self["textpositionsrc"] @textpositionsrc.setter def textpositionsrc(self, val): - self['textpositionsrc'] = val + self["textpositionsrc"] = val # textsrc # ------- @@ -65063,11 +64887,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # title # ----- @@ -65101,11 +64925,11 @@ def title(self): ------- plotly.graph_objs.funnelarea.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # uid # --- @@ -65123,11 +64947,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -65156,11 +64980,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # values # ------ @@ -65177,11 +65001,11 @@ def values(self): ------- numpy.ndarray """ - return self['values'] + return self["values"] @values.setter def values(self, val): - self['values'] = val + self["values"] = val # valuessrc # --------- @@ -65197,11 +65021,11 @@ def valuessrc(self): ------- str """ - return self['valuessrc'] + return self["valuessrc"] @valuessrc.setter def valuessrc(self, val): - self['valuessrc'] = val + self["valuessrc"] = val # visible # ------- @@ -65220,23 +65044,23 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -65647,7 +65471,7 @@ def __init__( ------- Funnelarea """ - super(Funnelarea, self).__init__('funnelarea') + super(Funnelarea, self).__init__("funnelarea") # Validate arg # ------------ @@ -65667,156 +65491,149 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (funnelarea as v_funnelarea) + from plotly.validators import funnelarea as v_funnelarea # Initialize validators # --------------------- - self._validators['aspectratio'] = v_funnelarea.AspectratioValidator() - self._validators['baseratio'] = v_funnelarea.BaseratioValidator() - self._validators['customdata'] = v_funnelarea.CustomdataValidator() - self._validators['customdatasrc' - ] = v_funnelarea.CustomdatasrcValidator() - self._validators['dlabel'] = v_funnelarea.DlabelValidator() - self._validators['domain'] = v_funnelarea.DomainValidator() - self._validators['hoverinfo'] = v_funnelarea.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_funnelarea.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_funnelarea.HoverlabelValidator() - self._validators['hovertemplate' - ] = v_funnelarea.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_funnelarea.HovertemplatesrcValidator() - self._validators['hovertext'] = v_funnelarea.HovertextValidator() - self._validators['hovertextsrc'] = v_funnelarea.HovertextsrcValidator() - self._validators['ids'] = v_funnelarea.IdsValidator() - self._validators['idssrc'] = v_funnelarea.IdssrcValidator() - self._validators['insidetextfont' - ] = v_funnelarea.InsidetextfontValidator() - self._validators['label0'] = v_funnelarea.Label0Validator() - self._validators['labels'] = v_funnelarea.LabelsValidator() - self._validators['labelssrc'] = v_funnelarea.LabelssrcValidator() - self._validators['legendgroup'] = v_funnelarea.LegendgroupValidator() - self._validators['marker'] = v_funnelarea.MarkerValidator() - self._validators['meta'] = v_funnelarea.MetaValidator() - self._validators['metasrc'] = v_funnelarea.MetasrcValidator() - self._validators['name'] = v_funnelarea.NameValidator() - self._validators['opacity'] = v_funnelarea.OpacityValidator() - self._validators['scalegroup'] = v_funnelarea.ScalegroupValidator() - self._validators['showlegend'] = v_funnelarea.ShowlegendValidator() - self._validators['stream'] = v_funnelarea.StreamValidator() - self._validators['text'] = v_funnelarea.TextValidator() - self._validators['textfont'] = v_funnelarea.TextfontValidator() - self._validators['textinfo'] = v_funnelarea.TextinfoValidator() - self._validators['textposition'] = v_funnelarea.TextpositionValidator() - self._validators['textpositionsrc' - ] = v_funnelarea.TextpositionsrcValidator() - self._validators['textsrc'] = v_funnelarea.TextsrcValidator() - self._validators['title'] = v_funnelarea.TitleValidator() - self._validators['uid'] = v_funnelarea.UidValidator() - self._validators['uirevision'] = v_funnelarea.UirevisionValidator() - self._validators['values'] = v_funnelarea.ValuesValidator() - self._validators['valuessrc'] = v_funnelarea.ValuessrcValidator() - self._validators['visible'] = v_funnelarea.VisibleValidator() + self._validators["aspectratio"] = v_funnelarea.AspectratioValidator() + self._validators["baseratio"] = v_funnelarea.BaseratioValidator() + self._validators["customdata"] = v_funnelarea.CustomdataValidator() + self._validators["customdatasrc"] = v_funnelarea.CustomdatasrcValidator() + self._validators["dlabel"] = v_funnelarea.DlabelValidator() + self._validators["domain"] = v_funnelarea.DomainValidator() + self._validators["hoverinfo"] = v_funnelarea.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_funnelarea.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_funnelarea.HoverlabelValidator() + self._validators["hovertemplate"] = v_funnelarea.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_funnelarea.HovertemplatesrcValidator() + self._validators["hovertext"] = v_funnelarea.HovertextValidator() + self._validators["hovertextsrc"] = v_funnelarea.HovertextsrcValidator() + self._validators["ids"] = v_funnelarea.IdsValidator() + self._validators["idssrc"] = v_funnelarea.IdssrcValidator() + self._validators["insidetextfont"] = v_funnelarea.InsidetextfontValidator() + self._validators["label0"] = v_funnelarea.Label0Validator() + self._validators["labels"] = v_funnelarea.LabelsValidator() + self._validators["labelssrc"] = v_funnelarea.LabelssrcValidator() + self._validators["legendgroup"] = v_funnelarea.LegendgroupValidator() + self._validators["marker"] = v_funnelarea.MarkerValidator() + self._validators["meta"] = v_funnelarea.MetaValidator() + self._validators["metasrc"] = v_funnelarea.MetasrcValidator() + self._validators["name"] = v_funnelarea.NameValidator() + self._validators["opacity"] = v_funnelarea.OpacityValidator() + self._validators["scalegroup"] = v_funnelarea.ScalegroupValidator() + self._validators["showlegend"] = v_funnelarea.ShowlegendValidator() + self._validators["stream"] = v_funnelarea.StreamValidator() + self._validators["text"] = v_funnelarea.TextValidator() + self._validators["textfont"] = v_funnelarea.TextfontValidator() + self._validators["textinfo"] = v_funnelarea.TextinfoValidator() + self._validators["textposition"] = v_funnelarea.TextpositionValidator() + self._validators["textpositionsrc"] = v_funnelarea.TextpositionsrcValidator() + self._validators["textsrc"] = v_funnelarea.TextsrcValidator() + self._validators["title"] = v_funnelarea.TitleValidator() + self._validators["uid"] = v_funnelarea.UidValidator() + self._validators["uirevision"] = v_funnelarea.UirevisionValidator() + self._validators["values"] = v_funnelarea.ValuesValidator() + self._validators["valuessrc"] = v_funnelarea.ValuessrcValidator() + self._validators["visible"] = v_funnelarea.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('aspectratio', None) - self['aspectratio'] = aspectratio if aspectratio is not None else _v - _v = arg.pop('baseratio', None) - self['baseratio'] = baseratio if baseratio is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('dlabel', None) - self['dlabel'] = dlabel if dlabel is not None else _v - _v = arg.pop('domain', None) - self['domain'] = domain if domain is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('insidetextfont', None) - self['insidetextfont' - ] = insidetextfont if insidetextfont is not None else _v - _v = arg.pop('label0', None) - self['label0'] = label0 if label0 is not None else _v - _v = arg.pop('labels', None) - self['labels'] = labels if labels is not None else _v - _v = arg.pop('labelssrc', None) - self['labelssrc'] = labelssrc if labelssrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('scalegroup', None) - self['scalegroup'] = scalegroup if scalegroup is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v - _v = arg.pop('textinfo', None) - self['textinfo'] = textinfo if textinfo is not None else _v - _v = arg.pop('textposition', None) - self['textposition'] = textposition if textposition is not None else _v - _v = arg.pop('textpositionsrc', None) - self['textpositionsrc' - ] = textpositionsrc if textpositionsrc is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('values', None) - self['values'] = values if values is not None else _v - _v = arg.pop('valuessrc', None) - self['valuessrc'] = valuessrc if valuessrc is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("aspectratio", None) + self["aspectratio"] = aspectratio if aspectratio is not None else _v + _v = arg.pop("baseratio", None) + self["baseratio"] = baseratio if baseratio is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("dlabel", None) + self["dlabel"] = dlabel if dlabel is not None else _v + _v = arg.pop("domain", None) + self["domain"] = domain if domain is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("insidetextfont", None) + self["insidetextfont"] = insidetextfont if insidetextfont is not None else _v + _v = arg.pop("label0", None) + self["label0"] = label0 if label0 is not None else _v + _v = arg.pop("labels", None) + self["labels"] = labels if labels is not None else _v + _v = arg.pop("labelssrc", None) + self["labelssrc"] = labelssrc if labelssrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("scalegroup", None) + self["scalegroup"] = scalegroup if scalegroup is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v + _v = arg.pop("textinfo", None) + self["textinfo"] = textinfo if textinfo is not None else _v + _v = arg.pop("textposition", None) + self["textposition"] = textposition if textposition is not None else _v + _v = arg.pop("textpositionsrc", None) + self["textpositionsrc"] = textpositionsrc if textpositionsrc is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("values", None) + self["values"] = values if values is not None else _v + _v = arg.pop("valuessrc", None) + self["valuessrc"] = valuessrc if valuessrc is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'funnelarea' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='funnelarea', val='funnelarea' + + self._props["type"] = "funnelarea" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="funnelarea", val="funnelarea" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -65850,11 +65667,11 @@ def alignmentgroup(self): ------- str """ - return self['alignmentgroup'] + return self["alignmentgroup"] @alignmentgroup.setter def alignmentgroup(self, val): - self['alignmentgroup'] = val + self["alignmentgroup"] = val # cliponaxis # ---------- @@ -65873,11 +65690,11 @@ def cliponaxis(self): ------- bool """ - return self['cliponaxis'] + return self["cliponaxis"] @cliponaxis.setter def cliponaxis(self, val): - self['cliponaxis'] = val + self["cliponaxis"] = val # connector # --------- @@ -65905,11 +65722,11 @@ def connector(self): ------- plotly.graph_objs.funnel.Connector """ - return self['connector'] + return self["connector"] @connector.setter def connector(self, val): - self['connector'] = val + self["connector"] = val # constraintext # ------------- @@ -65927,11 +65744,11 @@ def constraintext(self): ------- Any """ - return self['constraintext'] + return self["constraintext"] @constraintext.setter def constraintext(self, val): - self['constraintext'] = val + self["constraintext"] = val # customdata # ---------- @@ -65950,11 +65767,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -65970,11 +65787,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # dx # -- @@ -65990,11 +65807,11 @@ def dx(self): ------- int|float """ - return self['dx'] + return self["dx"] @dx.setter def dx(self, val): - self['dx'] = val + self["dx"] = val # dy # -- @@ -66010,11 +65827,11 @@ def dy(self): ------- int|float """ - return self['dy'] + return self["dy"] @dy.setter def dy(self, val): - self['dy'] = val + self["dy"] = val # hoverinfo # --------- @@ -66036,11 +65853,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -66056,11 +65873,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -66115,11 +65932,11 @@ def hoverlabel(self): ------- plotly.graph_objs.funnel.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -66151,11 +65968,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -66171,11 +65988,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -66197,11 +66014,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -66217,11 +66034,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -66239,11 +66056,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -66259,11 +66076,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # insidetextanchor # ---------------- @@ -66281,11 +66098,11 @@ def insidetextanchor(self): ------- Any """ - return self['insidetextanchor'] + return self["insidetextanchor"] @insidetextanchor.setter def insidetextanchor(self, val): - self['insidetextanchor'] = val + self["insidetextanchor"] = val # insidetextfont # -------------- @@ -66336,11 +66153,11 @@ def insidetextfont(self): ------- plotly.graph_objs.funnel.Insidetextfont """ - return self['insidetextfont'] + return self["insidetextfont"] @insidetextfont.setter def insidetextfont(self, val): - self['insidetextfont'] = val + self["insidetextfont"] = val # legendgroup # ----------- @@ -66359,11 +66176,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # marker # ------ @@ -66477,11 +66294,11 @@ def marker(self): ------- plotly.graph_objs.funnel.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -66505,11 +66322,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -66525,11 +66342,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -66547,11 +66364,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # offset # ------ @@ -66569,11 +66386,11 @@ def offset(self): ------- int|float """ - return self['offset'] + return self["offset"] @offset.setter def offset(self, val): - self['offset'] = val + self["offset"] = val # offsetgroup # ----------- @@ -66592,11 +66409,11 @@ def offsetgroup(self): ------- str """ - return self['offsetgroup'] + return self["offsetgroup"] @offsetgroup.setter def offsetgroup(self, val): - self['offsetgroup'] = val + self["offsetgroup"] = val # opacity # ------- @@ -66612,11 +66429,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # orientation # ----------- @@ -66638,11 +66455,11 @@ def orientation(self): ------- Any """ - return self['orientation'] + return self["orientation"] @orientation.setter def orientation(self, val): - self['orientation'] = val + self["orientation"] = val # outsidetextfont # --------------- @@ -66693,11 +66510,11 @@ def outsidetextfont(self): ------- plotly.graph_objs.funnel.Outsidetextfont """ - return self['outsidetextfont'] + return self["outsidetextfont"] @outsidetextfont.setter def outsidetextfont(self, val): - self['outsidetextfont'] = val + self["outsidetextfont"] = val # selectedpoints # -------------- @@ -66717,11 +66534,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -66738,11 +66555,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -66771,11 +66588,11 @@ def stream(self): ------- plotly.graph_objs.funnel.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -66798,11 +66615,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textangle # --------- @@ -66823,11 +66640,11 @@ def textangle(self): ------- int|float """ - return self['textangle'] + return self["textangle"] @textangle.setter def textangle(self, val): - self['textangle'] = val + self["textangle"] = val # textfont # -------- @@ -66878,11 +66695,11 @@ def textfont(self): ------- plotly.graph_objs.funnel.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # textinfo # -------- @@ -66903,11 +66720,11 @@ def textinfo(self): ------- Any """ - return self['textinfo'] + return self["textinfo"] @textinfo.setter def textinfo(self, val): - self['textinfo'] = val + self["textinfo"] = val # textposition # ------------ @@ -66931,11 +66748,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self['textposition'] + return self["textposition"] @textposition.setter def textposition(self, val): - self['textposition'] = val + self["textposition"] = val # textpositionsrc # --------------- @@ -66951,11 +66768,11 @@ def textpositionsrc(self): ------- str """ - return self['textpositionsrc'] + return self["textpositionsrc"] @textpositionsrc.setter def textpositionsrc(self, val): - self['textpositionsrc'] = val + self["textpositionsrc"] = val # textsrc # ------- @@ -66971,11 +66788,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -66993,11 +66810,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -67026,11 +66843,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -67049,11 +66866,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -67069,11 +66886,11 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # x # - @@ -67089,11 +66906,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # x0 # -- @@ -67110,11 +66927,11 @@ def x0(self): ------- Any """ - return self['x0'] + return self["x0"] @x0.setter def x0(self, val): - self['x0'] = val + self["x0"] = val # xaxis # ----- @@ -67135,11 +66952,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # xsrc # ---- @@ -67155,11 +66972,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -67175,11 +66992,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # y0 # -- @@ -67196,11 +67013,11 @@ def y0(self): ------- Any """ - return self['y0'] + return self["y0"] @y0.setter def y0(self, val): - self['y0'] = val + self["y0"] = val # yaxis # ----- @@ -67221,11 +67038,11 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # ysrc # ---- @@ -67241,23 +67058,23 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -67794,7 +67611,7 @@ def __init__( ------- Funnel """ - super(Funnel, self).__init__('funnel') + super(Funnel, self).__init__("funnel") # Validate arg # ------------ @@ -67814,193 +67631,184 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (funnel as v_funnel) + from plotly.validators import funnel as v_funnel # Initialize validators # --------------------- - self._validators['alignmentgroup'] = v_funnel.AlignmentgroupValidator() - self._validators['cliponaxis'] = v_funnel.CliponaxisValidator() - self._validators['connector'] = v_funnel.ConnectorValidator() - self._validators['constraintext'] = v_funnel.ConstraintextValidator() - self._validators['customdata'] = v_funnel.CustomdataValidator() - self._validators['customdatasrc'] = v_funnel.CustomdatasrcValidator() - self._validators['dx'] = v_funnel.DxValidator() - self._validators['dy'] = v_funnel.DyValidator() - self._validators['hoverinfo'] = v_funnel.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_funnel.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_funnel.HoverlabelValidator() - self._validators['hovertemplate'] = v_funnel.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_funnel.HovertemplatesrcValidator() - self._validators['hovertext'] = v_funnel.HovertextValidator() - self._validators['hovertextsrc'] = v_funnel.HovertextsrcValidator() - self._validators['ids'] = v_funnel.IdsValidator() - self._validators['idssrc'] = v_funnel.IdssrcValidator() - self._validators['insidetextanchor' - ] = v_funnel.InsidetextanchorValidator() - self._validators['insidetextfont'] = v_funnel.InsidetextfontValidator() - self._validators['legendgroup'] = v_funnel.LegendgroupValidator() - self._validators['marker'] = v_funnel.MarkerValidator() - self._validators['meta'] = v_funnel.MetaValidator() - self._validators['metasrc'] = v_funnel.MetasrcValidator() - self._validators['name'] = v_funnel.NameValidator() - self._validators['offset'] = v_funnel.OffsetValidator() - self._validators['offsetgroup'] = v_funnel.OffsetgroupValidator() - self._validators['opacity'] = v_funnel.OpacityValidator() - self._validators['orientation'] = v_funnel.OrientationValidator() - self._validators['outsidetextfont' - ] = v_funnel.OutsidetextfontValidator() - self._validators['selectedpoints'] = v_funnel.SelectedpointsValidator() - self._validators['showlegend'] = v_funnel.ShowlegendValidator() - self._validators['stream'] = v_funnel.StreamValidator() - self._validators['text'] = v_funnel.TextValidator() - self._validators['textangle'] = v_funnel.TextangleValidator() - self._validators['textfont'] = v_funnel.TextfontValidator() - self._validators['textinfo'] = v_funnel.TextinfoValidator() - self._validators['textposition'] = v_funnel.TextpositionValidator() - self._validators['textpositionsrc' - ] = v_funnel.TextpositionsrcValidator() - self._validators['textsrc'] = v_funnel.TextsrcValidator() - self._validators['uid'] = v_funnel.UidValidator() - self._validators['uirevision'] = v_funnel.UirevisionValidator() - self._validators['visible'] = v_funnel.VisibleValidator() - self._validators['width'] = v_funnel.WidthValidator() - self._validators['x'] = v_funnel.XValidator() - self._validators['x0'] = v_funnel.X0Validator() - self._validators['xaxis'] = v_funnel.XAxisValidator() - self._validators['xsrc'] = v_funnel.XsrcValidator() - self._validators['y'] = v_funnel.YValidator() - self._validators['y0'] = v_funnel.Y0Validator() - self._validators['yaxis'] = v_funnel.YAxisValidator() - self._validators['ysrc'] = v_funnel.YsrcValidator() + self._validators["alignmentgroup"] = v_funnel.AlignmentgroupValidator() + self._validators["cliponaxis"] = v_funnel.CliponaxisValidator() + self._validators["connector"] = v_funnel.ConnectorValidator() + self._validators["constraintext"] = v_funnel.ConstraintextValidator() + self._validators["customdata"] = v_funnel.CustomdataValidator() + self._validators["customdatasrc"] = v_funnel.CustomdatasrcValidator() + self._validators["dx"] = v_funnel.DxValidator() + self._validators["dy"] = v_funnel.DyValidator() + self._validators["hoverinfo"] = v_funnel.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_funnel.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_funnel.HoverlabelValidator() + self._validators["hovertemplate"] = v_funnel.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_funnel.HovertemplatesrcValidator() + self._validators["hovertext"] = v_funnel.HovertextValidator() + self._validators["hovertextsrc"] = v_funnel.HovertextsrcValidator() + self._validators["ids"] = v_funnel.IdsValidator() + self._validators["idssrc"] = v_funnel.IdssrcValidator() + self._validators["insidetextanchor"] = v_funnel.InsidetextanchorValidator() + self._validators["insidetextfont"] = v_funnel.InsidetextfontValidator() + self._validators["legendgroup"] = v_funnel.LegendgroupValidator() + self._validators["marker"] = v_funnel.MarkerValidator() + self._validators["meta"] = v_funnel.MetaValidator() + self._validators["metasrc"] = v_funnel.MetasrcValidator() + self._validators["name"] = v_funnel.NameValidator() + self._validators["offset"] = v_funnel.OffsetValidator() + self._validators["offsetgroup"] = v_funnel.OffsetgroupValidator() + self._validators["opacity"] = v_funnel.OpacityValidator() + self._validators["orientation"] = v_funnel.OrientationValidator() + self._validators["outsidetextfont"] = v_funnel.OutsidetextfontValidator() + self._validators["selectedpoints"] = v_funnel.SelectedpointsValidator() + self._validators["showlegend"] = v_funnel.ShowlegendValidator() + self._validators["stream"] = v_funnel.StreamValidator() + self._validators["text"] = v_funnel.TextValidator() + self._validators["textangle"] = v_funnel.TextangleValidator() + self._validators["textfont"] = v_funnel.TextfontValidator() + self._validators["textinfo"] = v_funnel.TextinfoValidator() + self._validators["textposition"] = v_funnel.TextpositionValidator() + self._validators["textpositionsrc"] = v_funnel.TextpositionsrcValidator() + self._validators["textsrc"] = v_funnel.TextsrcValidator() + self._validators["uid"] = v_funnel.UidValidator() + self._validators["uirevision"] = v_funnel.UirevisionValidator() + self._validators["visible"] = v_funnel.VisibleValidator() + self._validators["width"] = v_funnel.WidthValidator() + self._validators["x"] = v_funnel.XValidator() + self._validators["x0"] = v_funnel.X0Validator() + self._validators["xaxis"] = v_funnel.XAxisValidator() + self._validators["xsrc"] = v_funnel.XsrcValidator() + self._validators["y"] = v_funnel.YValidator() + self._validators["y0"] = v_funnel.Y0Validator() + self._validators["yaxis"] = v_funnel.YAxisValidator() + self._validators["ysrc"] = v_funnel.YsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('alignmentgroup', None) - self['alignmentgroup' - ] = alignmentgroup if alignmentgroup is not None else _v - _v = arg.pop('cliponaxis', None) - self['cliponaxis'] = cliponaxis if cliponaxis is not None else _v - _v = arg.pop('connector', None) - self['connector'] = connector if connector is not None else _v - _v = arg.pop('constraintext', None) - self['constraintext' - ] = constraintext if constraintext is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('dx', None) - self['dx'] = dx if dx is not None else _v - _v = arg.pop('dy', None) - self['dy'] = dy if dy is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('insidetextanchor', None) - self['insidetextanchor' - ] = insidetextanchor if insidetextanchor is not None else _v - _v = arg.pop('insidetextfont', None) - self['insidetextfont' - ] = insidetextfont if insidetextfont is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('offset', None) - self['offset'] = offset if offset is not None else _v - _v = arg.pop('offsetgroup', None) - self['offsetgroup'] = offsetgroup if offsetgroup is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('orientation', None) - self['orientation'] = orientation if orientation is not None else _v - _v = arg.pop('outsidetextfont', None) - self['outsidetextfont' - ] = outsidetextfont if outsidetextfont is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textangle', None) - self['textangle'] = textangle if textangle is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v - _v = arg.pop('textinfo', None) - self['textinfo'] = textinfo if textinfo is not None else _v - _v = arg.pop('textposition', None) - self['textposition'] = textposition if textposition is not None else _v - _v = arg.pop('textpositionsrc', None) - self['textpositionsrc' - ] = textpositionsrc if textpositionsrc is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('x0', None) - self['x0'] = x0 if x0 is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('y0', None) - self['y0'] = y0 if y0 is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v + _v = arg.pop("alignmentgroup", None) + self["alignmentgroup"] = alignmentgroup if alignmentgroup is not None else _v + _v = arg.pop("cliponaxis", None) + self["cliponaxis"] = cliponaxis if cliponaxis is not None else _v + _v = arg.pop("connector", None) + self["connector"] = connector if connector is not None else _v + _v = arg.pop("constraintext", None) + self["constraintext"] = constraintext if constraintext is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("dx", None) + self["dx"] = dx if dx is not None else _v + _v = arg.pop("dy", None) + self["dy"] = dy if dy is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("insidetextanchor", None) + self["insidetextanchor"] = ( + insidetextanchor if insidetextanchor is not None else _v + ) + _v = arg.pop("insidetextfont", None) + self["insidetextfont"] = insidetextfont if insidetextfont is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("offset", None) + self["offset"] = offset if offset is not None else _v + _v = arg.pop("offsetgroup", None) + self["offsetgroup"] = offsetgroup if offsetgroup is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("orientation", None) + self["orientation"] = orientation if orientation is not None else _v + _v = arg.pop("outsidetextfont", None) + self["outsidetextfont"] = outsidetextfont if outsidetextfont is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textangle", None) + self["textangle"] = textangle if textangle is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v + _v = arg.pop("textinfo", None) + self["textinfo"] = textinfo if textinfo is not None else _v + _v = arg.pop("textposition", None) + self["textposition"] = textposition if textposition is not None else _v + _v = arg.pop("textpositionsrc", None) + self["textpositionsrc"] = textpositionsrc if textpositionsrc is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("x0", None) + self["x0"] = x0 if x0 is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("y0", None) + self["y0"] = y0 if y0 is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'funnel' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='funnel', val='funnel' + + self._props["type"] = "funnel" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="funnel", val="funnel" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -68031,11 +67839,11 @@ def a(self): ------- numpy.ndarray """ - return self['a'] + return self["a"] @a.setter def a(self, val): - self['a'] = val + self["a"] = val # a0 # -- @@ -68052,11 +67860,11 @@ def a0(self): ------- Any """ - return self['a0'] + return self["a0"] @a0.setter def a0(self, val): - self['a0'] = val + self["a0"] = val # asrc # ---- @@ -68072,11 +67880,11 @@ def asrc(self): ------- str """ - return self['asrc'] + return self["asrc"] @asrc.setter def asrc(self, val): - self['asrc'] = val + self["asrc"] = val # atype # ----- @@ -68096,11 +67904,11 @@ def atype(self): ------- Any """ - return self['atype'] + return self["atype"] @atype.setter def atype(self, val): - self['atype'] = val + self["atype"] = val # autocolorscale # -------------- @@ -68121,11 +67929,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # autocontour # ----------- @@ -68144,11 +67952,11 @@ def autocontour(self): ------- bool """ - return self['autocontour'] + return self["autocontour"] @autocontour.setter def autocontour(self, val): - self['autocontour'] = val + self["autocontour"] = val # b # - @@ -68164,11 +67972,11 @@ def b(self): ------- numpy.ndarray """ - return self['b'] + return self["b"] @b.setter def b(self, val): - self['b'] = val + self["b"] = val # b0 # -- @@ -68185,11 +67993,11 @@ def b0(self): ------- Any """ - return self['b0'] + return self["b0"] @b0.setter def b0(self, val): - self['b0'] = val + self["b0"] = val # bsrc # ---- @@ -68205,11 +68013,11 @@ def bsrc(self): ------- str """ - return self['bsrc'] + return self["bsrc"] @bsrc.setter def bsrc(self, val): - self['bsrc'] = val + self["bsrc"] = val # btype # ----- @@ -68229,11 +68037,11 @@ def btype(self): ------- Any """ - return self['btype'] + return self["btype"] @btype.setter def btype(self, val): - self['btype'] = val + self["btype"] = val # carpet # ------ @@ -68251,11 +68059,11 @@ def carpet(self): ------- str """ - return self['carpet'] + return self["carpet"] @carpet.setter def carpet(self, val): - self['carpet'] = val + self["carpet"] = val # coloraxis # --------- @@ -68278,11 +68086,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -68512,11 +68320,11 @@ def colorbar(self): ------- plotly.graph_objs.contourcarpet.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -68549,11 +68357,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # contours # -------- @@ -68633,11 +68441,11 @@ def contours(self): ------- plotly.graph_objs.contourcarpet.Contours """ - return self['contours'] + return self["contours"] @contours.setter def contours(self, val): - self['contours'] = val + self["contours"] = val # customdata # ---------- @@ -68656,11 +68464,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -68676,11 +68484,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # da # -- @@ -68696,11 +68504,11 @@ def da(self): ------- int|float """ - return self['da'] + return self["da"] @da.setter def da(self, val): - self['da'] = val + self["da"] = val # db # -- @@ -68716,11 +68524,11 @@ def db(self): ------- int|float """ - return self['db'] + return self["db"] @db.setter def db(self, val): - self['db'] = val + self["db"] = val # fillcolor # --------- @@ -68779,11 +68587,11 @@ def fillcolor(self): ------- str """ - return self['fillcolor'] + return self["fillcolor"] @fillcolor.setter def fillcolor(self, val): - self['fillcolor'] = val + self["fillcolor"] = val # hoverinfo # --------- @@ -68805,11 +68613,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -68825,11 +68633,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -68884,11 +68692,11 @@ def hoverlabel(self): ------- plotly.graph_objs.contourcarpet.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertext # --------- @@ -68904,11 +68712,11 @@ def hovertext(self): ------- numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -68924,11 +68732,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -68946,11 +68754,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -68966,11 +68774,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # legendgroup # ----------- @@ -68989,11 +68797,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # line # ---- @@ -69026,11 +68834,11 @@ def line(self): ------- plotly.graph_objs.contourcarpet.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # meta # ---- @@ -69054,11 +68862,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -69074,11 +68882,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -69096,11 +68904,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # ncontours # --------- @@ -69120,11 +68928,11 @@ def ncontours(self): ------- int """ - return self['ncontours'] + return self["ncontours"] @ncontours.setter def ncontours(self, val): - self['ncontours'] = val + self["ncontours"] = val # opacity # ------- @@ -69140,11 +68948,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # reversescale # ------------ @@ -69162,11 +68970,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showlegend # ---------- @@ -69183,11 +68991,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # showscale # --------- @@ -69204,11 +69012,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # stream # ------ @@ -69237,11 +69045,11 @@ def stream(self): ------- plotly.graph_objs.contourcarpet.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -69257,11 +69065,11 @@ def text(self): ------- numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -69277,11 +69085,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # transpose # --------- @@ -69297,11 +69105,11 @@ def transpose(self): ------- bool """ - return self['transpose'] + return self["transpose"] @transpose.setter def transpose(self, val): - self['transpose'] = val + self["transpose"] = val # uid # --- @@ -69319,11 +69127,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -69352,11 +69160,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -69375,11 +69183,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # xaxis # ----- @@ -69400,11 +69208,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # yaxis # ----- @@ -69425,11 +69233,11 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # z # - @@ -69445,11 +69253,11 @@ def z(self): ------- numpy.ndarray """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # zauto # ----- @@ -69468,11 +69276,11 @@ def zauto(self): ------- bool """ - return self['zauto'] + return self["zauto"] @zauto.setter def zauto(self, val): - self['zauto'] = val + self["zauto"] = val # zmax # ---- @@ -69489,11 +69297,11 @@ def zmax(self): ------- int|float """ - return self['zmax'] + return self["zmax"] @zmax.setter def zmax(self, val): - self['zmax'] = val + self["zmax"] = val # zmid # ---- @@ -69511,11 +69319,11 @@ def zmid(self): ------- int|float """ - return self['zmid'] + return self["zmid"] @zmid.setter def zmid(self, val): - self['zmid'] = val + self["zmid"] = val # zmin # ---- @@ -69532,11 +69340,11 @@ def zmin(self): ------- int|float """ - return self['zmin'] + return self["zmin"] @zmin.setter def zmin(self, val): - self['zmin'] = val + self["zmin"] = val # zsrc # ---- @@ -69552,23 +69360,23 @@ def zsrc(self): ------- str """ - return self['zsrc'] + return self["zsrc"] @zsrc.setter def zsrc(self, val): - self['zsrc'] = val + self["zsrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -70081,7 +69889,7 @@ def __init__( ------- Contourcarpet """ - super(Contourcarpet, self).__init__('contourcarpet') + super(Contourcarpet, self).__init__("contourcarpet") # Validate arg # ------------ @@ -70101,193 +69909,183 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (contourcarpet as v_contourcarpet) + from plotly.validators import contourcarpet as v_contourcarpet # Initialize validators # --------------------- - self._validators['a'] = v_contourcarpet.AValidator() - self._validators['a0'] = v_contourcarpet.A0Validator() - self._validators['asrc'] = v_contourcarpet.AsrcValidator() - self._validators['atype'] = v_contourcarpet.AtypeValidator() - self._validators['autocolorscale' - ] = v_contourcarpet.AutocolorscaleValidator() - self._validators['autocontour'] = v_contourcarpet.AutocontourValidator( - ) - self._validators['b'] = v_contourcarpet.BValidator() - self._validators['b0'] = v_contourcarpet.B0Validator() - self._validators['bsrc'] = v_contourcarpet.BsrcValidator() - self._validators['btype'] = v_contourcarpet.BtypeValidator() - self._validators['carpet'] = v_contourcarpet.CarpetValidator() - self._validators['coloraxis'] = v_contourcarpet.ColoraxisValidator() - self._validators['colorbar'] = v_contourcarpet.ColorBarValidator() - self._validators['colorscale'] = v_contourcarpet.ColorscaleValidator() - self._validators['contours'] = v_contourcarpet.ContoursValidator() - self._validators['customdata'] = v_contourcarpet.CustomdataValidator() - self._validators['customdatasrc' - ] = v_contourcarpet.CustomdatasrcValidator() - self._validators['da'] = v_contourcarpet.DaValidator() - self._validators['db'] = v_contourcarpet.DbValidator() - self._validators['fillcolor'] = v_contourcarpet.FillcolorValidator() - self._validators['hoverinfo'] = v_contourcarpet.HoverinfoValidator() - self._validators['hoverinfosrc' - ] = v_contourcarpet.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_contourcarpet.HoverlabelValidator() - self._validators['hovertext'] = v_contourcarpet.HovertextValidator() - self._validators['hovertextsrc' - ] = v_contourcarpet.HovertextsrcValidator() - self._validators['ids'] = v_contourcarpet.IdsValidator() - self._validators['idssrc'] = v_contourcarpet.IdssrcValidator() - self._validators['legendgroup'] = v_contourcarpet.LegendgroupValidator( - ) - self._validators['line'] = v_contourcarpet.LineValidator() - self._validators['meta'] = v_contourcarpet.MetaValidator() - self._validators['metasrc'] = v_contourcarpet.MetasrcValidator() - self._validators['name'] = v_contourcarpet.NameValidator() - self._validators['ncontours'] = v_contourcarpet.NcontoursValidator() - self._validators['opacity'] = v_contourcarpet.OpacityValidator() - self._validators['reversescale' - ] = v_contourcarpet.ReversescaleValidator() - self._validators['showlegend'] = v_contourcarpet.ShowlegendValidator() - self._validators['showscale'] = v_contourcarpet.ShowscaleValidator() - self._validators['stream'] = v_contourcarpet.StreamValidator() - self._validators['text'] = v_contourcarpet.TextValidator() - self._validators['textsrc'] = v_contourcarpet.TextsrcValidator() - self._validators['transpose'] = v_contourcarpet.TransposeValidator() - self._validators['uid'] = v_contourcarpet.UidValidator() - self._validators['uirevision'] = v_contourcarpet.UirevisionValidator() - self._validators['visible'] = v_contourcarpet.VisibleValidator() - self._validators['xaxis'] = v_contourcarpet.XAxisValidator() - self._validators['yaxis'] = v_contourcarpet.YAxisValidator() - self._validators['z'] = v_contourcarpet.ZValidator() - self._validators['zauto'] = v_contourcarpet.ZautoValidator() - self._validators['zmax'] = v_contourcarpet.ZmaxValidator() - self._validators['zmid'] = v_contourcarpet.ZmidValidator() - self._validators['zmin'] = v_contourcarpet.ZminValidator() - self._validators['zsrc'] = v_contourcarpet.ZsrcValidator() + self._validators["a"] = v_contourcarpet.AValidator() + self._validators["a0"] = v_contourcarpet.A0Validator() + self._validators["asrc"] = v_contourcarpet.AsrcValidator() + self._validators["atype"] = v_contourcarpet.AtypeValidator() + self._validators["autocolorscale"] = v_contourcarpet.AutocolorscaleValidator() + self._validators["autocontour"] = v_contourcarpet.AutocontourValidator() + self._validators["b"] = v_contourcarpet.BValidator() + self._validators["b0"] = v_contourcarpet.B0Validator() + self._validators["bsrc"] = v_contourcarpet.BsrcValidator() + self._validators["btype"] = v_contourcarpet.BtypeValidator() + self._validators["carpet"] = v_contourcarpet.CarpetValidator() + self._validators["coloraxis"] = v_contourcarpet.ColoraxisValidator() + self._validators["colorbar"] = v_contourcarpet.ColorBarValidator() + self._validators["colorscale"] = v_contourcarpet.ColorscaleValidator() + self._validators["contours"] = v_contourcarpet.ContoursValidator() + self._validators["customdata"] = v_contourcarpet.CustomdataValidator() + self._validators["customdatasrc"] = v_contourcarpet.CustomdatasrcValidator() + self._validators["da"] = v_contourcarpet.DaValidator() + self._validators["db"] = v_contourcarpet.DbValidator() + self._validators["fillcolor"] = v_contourcarpet.FillcolorValidator() + self._validators["hoverinfo"] = v_contourcarpet.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_contourcarpet.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_contourcarpet.HoverlabelValidator() + self._validators["hovertext"] = v_contourcarpet.HovertextValidator() + self._validators["hovertextsrc"] = v_contourcarpet.HovertextsrcValidator() + self._validators["ids"] = v_contourcarpet.IdsValidator() + self._validators["idssrc"] = v_contourcarpet.IdssrcValidator() + self._validators["legendgroup"] = v_contourcarpet.LegendgroupValidator() + self._validators["line"] = v_contourcarpet.LineValidator() + self._validators["meta"] = v_contourcarpet.MetaValidator() + self._validators["metasrc"] = v_contourcarpet.MetasrcValidator() + self._validators["name"] = v_contourcarpet.NameValidator() + self._validators["ncontours"] = v_contourcarpet.NcontoursValidator() + self._validators["opacity"] = v_contourcarpet.OpacityValidator() + self._validators["reversescale"] = v_contourcarpet.ReversescaleValidator() + self._validators["showlegend"] = v_contourcarpet.ShowlegendValidator() + self._validators["showscale"] = v_contourcarpet.ShowscaleValidator() + self._validators["stream"] = v_contourcarpet.StreamValidator() + self._validators["text"] = v_contourcarpet.TextValidator() + self._validators["textsrc"] = v_contourcarpet.TextsrcValidator() + self._validators["transpose"] = v_contourcarpet.TransposeValidator() + self._validators["uid"] = v_contourcarpet.UidValidator() + self._validators["uirevision"] = v_contourcarpet.UirevisionValidator() + self._validators["visible"] = v_contourcarpet.VisibleValidator() + self._validators["xaxis"] = v_contourcarpet.XAxisValidator() + self._validators["yaxis"] = v_contourcarpet.YAxisValidator() + self._validators["z"] = v_contourcarpet.ZValidator() + self._validators["zauto"] = v_contourcarpet.ZautoValidator() + self._validators["zmax"] = v_contourcarpet.ZmaxValidator() + self._validators["zmid"] = v_contourcarpet.ZmidValidator() + self._validators["zmin"] = v_contourcarpet.ZminValidator() + self._validators["zsrc"] = v_contourcarpet.ZsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('a', None) - self['a'] = a if a is not None else _v - _v = arg.pop('a0', None) - self['a0'] = a0 if a0 is not None else _v - _v = arg.pop('asrc', None) - self['asrc'] = asrc if asrc is not None else _v - _v = arg.pop('atype', None) - self['atype'] = atype if atype is not None else _v - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('autocontour', None) - self['autocontour'] = autocontour if autocontour is not None else _v - _v = arg.pop('b', None) - self['b'] = b if b is not None else _v - _v = arg.pop('b0', None) - self['b0'] = b0 if b0 is not None else _v - _v = arg.pop('bsrc', None) - self['bsrc'] = bsrc if bsrc is not None else _v - _v = arg.pop('btype', None) - self['btype'] = btype if btype is not None else _v - _v = arg.pop('carpet', None) - self['carpet'] = carpet if carpet is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('contours', None) - self['contours'] = contours if contours is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('da', None) - self['da'] = da if da is not None else _v - _v = arg.pop('db', None) - self['db'] = db if db is not None else _v - _v = arg.pop('fillcolor', None) - self['fillcolor'] = fillcolor if fillcolor is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('ncontours', None) - self['ncontours'] = ncontours if ncontours is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('transpose', None) - self['transpose'] = transpose if transpose is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v - _v = arg.pop('zauto', None) - self['zauto'] = zauto if zauto is not None else _v - _v = arg.pop('zmax', None) - self['zmax'] = zmax if zmax is not None else _v - _v = arg.pop('zmid', None) - self['zmid'] = zmid if zmid is not None else _v - _v = arg.pop('zmin', None) - self['zmin'] = zmin if zmin is not None else _v - _v = arg.pop('zsrc', None) - self['zsrc'] = zsrc if zsrc is not None else _v + _v = arg.pop("a", None) + self["a"] = a if a is not None else _v + _v = arg.pop("a0", None) + self["a0"] = a0 if a0 is not None else _v + _v = arg.pop("asrc", None) + self["asrc"] = asrc if asrc is not None else _v + _v = arg.pop("atype", None) + self["atype"] = atype if atype is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("autocontour", None) + self["autocontour"] = autocontour if autocontour is not None else _v + _v = arg.pop("b", None) + self["b"] = b if b is not None else _v + _v = arg.pop("b0", None) + self["b0"] = b0 if b0 is not None else _v + _v = arg.pop("bsrc", None) + self["bsrc"] = bsrc if bsrc is not None else _v + _v = arg.pop("btype", None) + self["btype"] = btype if btype is not None else _v + _v = arg.pop("carpet", None) + self["carpet"] = carpet if carpet is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("contours", None) + self["contours"] = contours if contours is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("da", None) + self["da"] = da if da is not None else _v + _v = arg.pop("db", None) + self["db"] = db if db is not None else _v + _v = arg.pop("fillcolor", None) + self["fillcolor"] = fillcolor if fillcolor is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("ncontours", None) + self["ncontours"] = ncontours if ncontours is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("transpose", None) + self["transpose"] = transpose if transpose is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v + _v = arg.pop("zauto", None) + self["zauto"] = zauto if zauto is not None else _v + _v = arg.pop("zmax", None) + self["zmax"] = zmax if zmax is not None else _v + _v = arg.pop("zmid", None) + self["zmid"] = zmid if zmid is not None else _v + _v = arg.pop("zmin", None) + self["zmin"] = zmin if zmin is not None else _v + _v = arg.pop("zsrc", None) + self["zsrc"] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'contourcarpet' - self._validators['type'] = LiteralValidator( - plotly_name='type', - parent_name='contourcarpet', - val='contourcarpet' + + self._props["type"] = "contourcarpet" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="contourcarpet", val="contourcarpet" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -70323,11 +70121,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # autocontour # ----------- @@ -70346,11 +70144,11 @@ def autocontour(self): ------- bool """ - return self['autocontour'] + return self["autocontour"] @autocontour.setter def autocontour(self, val): - self['autocontour'] = val + self["autocontour"] = val # coloraxis # --------- @@ -70373,11 +70171,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -70605,11 +70403,11 @@ def colorbar(self): ------- plotly.graph_objs.contour.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -70642,11 +70440,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # connectgaps # ----------- @@ -70663,11 +70461,11 @@ def connectgaps(self): ------- bool """ - return self['connectgaps'] + return self["connectgaps"] @connectgaps.setter def connectgaps(self, val): - self['connectgaps'] = val + self["connectgaps"] = val # contours # -------- @@ -70749,11 +70547,11 @@ def contours(self): ------- plotly.graph_objs.contour.Contours """ - return self['contours'] + return self["contours"] @contours.setter def contours(self, val): - self['contours'] = val + self["contours"] = val # customdata # ---------- @@ -70772,11 +70570,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -70792,11 +70590,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # dx # -- @@ -70812,11 +70610,11 @@ def dx(self): ------- int|float """ - return self['dx'] + return self["dx"] @dx.setter def dx(self, val): - self['dx'] = val + self["dx"] = val # dy # -- @@ -70832,11 +70630,11 @@ def dy(self): ------- int|float """ - return self['dy'] + return self["dy"] @dy.setter def dy(self, val): - self['dy'] = val + self["dy"] = val # fillcolor # --------- @@ -70895,11 +70693,11 @@ def fillcolor(self): ------- str """ - return self['fillcolor'] + return self["fillcolor"] @fillcolor.setter def fillcolor(self, val): - self['fillcolor'] = val + self["fillcolor"] = val # hoverinfo # --------- @@ -70921,11 +70719,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -70941,11 +70739,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -71000,11 +70798,11 @@ def hoverlabel(self): ------- plotly.graph_objs.contour.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -71036,11 +70834,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -71056,11 +70854,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -71076,11 +70874,11 @@ def hovertext(self): ------- numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -71096,11 +70894,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -71118,11 +70916,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -71138,11 +70936,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # legendgroup # ----------- @@ -71161,11 +70959,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # line # ---- @@ -71199,11 +70997,11 @@ def line(self): ------- plotly.graph_objs.contour.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # meta # ---- @@ -71227,11 +71025,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -71247,11 +71045,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -71269,11 +71067,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # ncontours # --------- @@ -71293,11 +71091,11 @@ def ncontours(self): ------- int """ - return self['ncontours'] + return self["ncontours"] @ncontours.setter def ncontours(self, val): - self['ncontours'] = val + self["ncontours"] = val # opacity # ------- @@ -71313,11 +71111,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # reversescale # ------------ @@ -71335,11 +71133,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showlegend # ---------- @@ -71356,11 +71154,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # showscale # --------- @@ -71377,11 +71175,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # stream # ------ @@ -71410,11 +71208,11 @@ def stream(self): ------- plotly.graph_objs.contour.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -71430,11 +71228,11 @@ def text(self): ------- numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -71450,11 +71248,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # transpose # --------- @@ -71470,11 +71268,11 @@ def transpose(self): ------- bool """ - return self['transpose'] + return self["transpose"] @transpose.setter def transpose(self, val): - self['transpose'] = val + self["transpose"] = val # uid # --- @@ -71492,11 +71290,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -71525,11 +71323,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -71548,11 +71346,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -71568,11 +71366,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # x0 # -- @@ -71589,11 +71387,11 @@ def x0(self): ------- Any """ - return self['x0'] + return self["x0"] @x0.setter def x0(self, val): - self['x0'] = val + self["x0"] = val # xaxis # ----- @@ -71614,11 +71412,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # xcalendar # --------- @@ -71638,11 +71436,11 @@ def xcalendar(self): ------- Any """ - return self['xcalendar'] + return self["xcalendar"] @xcalendar.setter def xcalendar(self, val): - self['xcalendar'] = val + self["xcalendar"] = val # xsrc # ---- @@ -71658,11 +71456,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # xtype # ----- @@ -71682,11 +71480,11 @@ def xtype(self): ------- Any """ - return self['xtype'] + return self["xtype"] @xtype.setter def xtype(self, val): - self['xtype'] = val + self["xtype"] = val # y # - @@ -71702,11 +71500,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # y0 # -- @@ -71723,11 +71521,11 @@ def y0(self): ------- Any """ - return self['y0'] + return self["y0"] @y0.setter def y0(self, val): - self['y0'] = val + self["y0"] = val # yaxis # ----- @@ -71748,11 +71546,11 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # ycalendar # --------- @@ -71772,11 +71570,11 @@ def ycalendar(self): ------- Any """ - return self['ycalendar'] + return self["ycalendar"] @ycalendar.setter def ycalendar(self, val): - self['ycalendar'] = val + self["ycalendar"] = val # ysrc # ---- @@ -71792,11 +71590,11 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # ytype # ----- @@ -71816,11 +71614,11 @@ def ytype(self): ------- Any """ - return self['ytype'] + return self["ytype"] @ytype.setter def ytype(self, val): - self['ytype'] = val + self["ytype"] = val # z # - @@ -71836,11 +71634,11 @@ def z(self): ------- numpy.ndarray """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # zauto # ----- @@ -71859,11 +71657,11 @@ def zauto(self): ------- bool """ - return self['zauto'] + return self["zauto"] @zauto.setter def zauto(self, val): - self['zauto'] = val + self["zauto"] = val # zhoverformat # ------------ @@ -71882,11 +71680,11 @@ def zhoverformat(self): ------- str """ - return self['zhoverformat'] + return self["zhoverformat"] @zhoverformat.setter def zhoverformat(self, val): - self['zhoverformat'] = val + self["zhoverformat"] = val # zmax # ---- @@ -71903,11 +71701,11 @@ def zmax(self): ------- int|float """ - return self['zmax'] + return self["zmax"] @zmax.setter def zmax(self, val): - self['zmax'] = val + self["zmax"] = val # zmid # ---- @@ -71925,11 +71723,11 @@ def zmid(self): ------- int|float """ - return self['zmid'] + return self["zmid"] @zmid.setter def zmid(self, val): - self['zmid'] = val + self["zmid"] = val # zmin # ---- @@ -71946,11 +71744,11 @@ def zmin(self): ------- int|float """ - return self['zmin'] + return self["zmin"] @zmin.setter def zmin(self, val): - self['zmin'] = val + self["zmin"] = val # zsrc # ---- @@ -71966,23 +71764,23 @@ def zsrc(self): ------- str """ - return self['zsrc'] + return self["zsrc"] @zsrc.setter def zsrc(self, val): - self['zsrc'] = val + self["zsrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -72564,7 +72362,7 @@ def __init__( ------- Contour """ - super(Contour, self).__init__('contour') + super(Contour, self).__init__("contour") # Validate arg # ------------ @@ -72584,203 +72382,200 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (contour as v_contour) + from plotly.validators import contour as v_contour # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_contour.AutocolorscaleValidator( - ) - self._validators['autocontour'] = v_contour.AutocontourValidator() - self._validators['coloraxis'] = v_contour.ColoraxisValidator() - self._validators['colorbar'] = v_contour.ColorBarValidator() - self._validators['colorscale'] = v_contour.ColorscaleValidator() - self._validators['connectgaps'] = v_contour.ConnectgapsValidator() - self._validators['contours'] = v_contour.ContoursValidator() - self._validators['customdata'] = v_contour.CustomdataValidator() - self._validators['customdatasrc'] = v_contour.CustomdatasrcValidator() - self._validators['dx'] = v_contour.DxValidator() - self._validators['dy'] = v_contour.DyValidator() - self._validators['fillcolor'] = v_contour.FillcolorValidator() - self._validators['hoverinfo'] = v_contour.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_contour.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_contour.HoverlabelValidator() - self._validators['hovertemplate'] = v_contour.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_contour.HovertemplatesrcValidator() - self._validators['hovertext'] = v_contour.HovertextValidator() - self._validators['hovertextsrc'] = v_contour.HovertextsrcValidator() - self._validators['ids'] = v_contour.IdsValidator() - self._validators['idssrc'] = v_contour.IdssrcValidator() - self._validators['legendgroup'] = v_contour.LegendgroupValidator() - self._validators['line'] = v_contour.LineValidator() - self._validators['meta'] = v_contour.MetaValidator() - self._validators['metasrc'] = v_contour.MetasrcValidator() - self._validators['name'] = v_contour.NameValidator() - self._validators['ncontours'] = v_contour.NcontoursValidator() - self._validators['opacity'] = v_contour.OpacityValidator() - self._validators['reversescale'] = v_contour.ReversescaleValidator() - self._validators['showlegend'] = v_contour.ShowlegendValidator() - self._validators['showscale'] = v_contour.ShowscaleValidator() - self._validators['stream'] = v_contour.StreamValidator() - self._validators['text'] = v_contour.TextValidator() - self._validators['textsrc'] = v_contour.TextsrcValidator() - self._validators['transpose'] = v_contour.TransposeValidator() - self._validators['uid'] = v_contour.UidValidator() - self._validators['uirevision'] = v_contour.UirevisionValidator() - self._validators['visible'] = v_contour.VisibleValidator() - self._validators['x'] = v_contour.XValidator() - self._validators['x0'] = v_contour.X0Validator() - self._validators['xaxis'] = v_contour.XAxisValidator() - self._validators['xcalendar'] = v_contour.XcalendarValidator() - self._validators['xsrc'] = v_contour.XsrcValidator() - self._validators['xtype'] = v_contour.XtypeValidator() - self._validators['y'] = v_contour.YValidator() - self._validators['y0'] = v_contour.Y0Validator() - self._validators['yaxis'] = v_contour.YAxisValidator() - self._validators['ycalendar'] = v_contour.YcalendarValidator() - self._validators['ysrc'] = v_contour.YsrcValidator() - self._validators['ytype'] = v_contour.YtypeValidator() - self._validators['z'] = v_contour.ZValidator() - self._validators['zauto'] = v_contour.ZautoValidator() - self._validators['zhoverformat'] = v_contour.ZhoverformatValidator() - self._validators['zmax'] = v_contour.ZmaxValidator() - self._validators['zmid'] = v_contour.ZmidValidator() - self._validators['zmin'] = v_contour.ZminValidator() - self._validators['zsrc'] = v_contour.ZsrcValidator() + self._validators["autocolorscale"] = v_contour.AutocolorscaleValidator() + self._validators["autocontour"] = v_contour.AutocontourValidator() + self._validators["coloraxis"] = v_contour.ColoraxisValidator() + self._validators["colorbar"] = v_contour.ColorBarValidator() + self._validators["colorscale"] = v_contour.ColorscaleValidator() + self._validators["connectgaps"] = v_contour.ConnectgapsValidator() + self._validators["contours"] = v_contour.ContoursValidator() + self._validators["customdata"] = v_contour.CustomdataValidator() + self._validators["customdatasrc"] = v_contour.CustomdatasrcValidator() + self._validators["dx"] = v_contour.DxValidator() + self._validators["dy"] = v_contour.DyValidator() + self._validators["fillcolor"] = v_contour.FillcolorValidator() + self._validators["hoverinfo"] = v_contour.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_contour.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_contour.HoverlabelValidator() + self._validators["hovertemplate"] = v_contour.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_contour.HovertemplatesrcValidator() + self._validators["hovertext"] = v_contour.HovertextValidator() + self._validators["hovertextsrc"] = v_contour.HovertextsrcValidator() + self._validators["ids"] = v_contour.IdsValidator() + self._validators["idssrc"] = v_contour.IdssrcValidator() + self._validators["legendgroup"] = v_contour.LegendgroupValidator() + self._validators["line"] = v_contour.LineValidator() + self._validators["meta"] = v_contour.MetaValidator() + self._validators["metasrc"] = v_contour.MetasrcValidator() + self._validators["name"] = v_contour.NameValidator() + self._validators["ncontours"] = v_contour.NcontoursValidator() + self._validators["opacity"] = v_contour.OpacityValidator() + self._validators["reversescale"] = v_contour.ReversescaleValidator() + self._validators["showlegend"] = v_contour.ShowlegendValidator() + self._validators["showscale"] = v_contour.ShowscaleValidator() + self._validators["stream"] = v_contour.StreamValidator() + self._validators["text"] = v_contour.TextValidator() + self._validators["textsrc"] = v_contour.TextsrcValidator() + self._validators["transpose"] = v_contour.TransposeValidator() + self._validators["uid"] = v_contour.UidValidator() + self._validators["uirevision"] = v_contour.UirevisionValidator() + self._validators["visible"] = v_contour.VisibleValidator() + self._validators["x"] = v_contour.XValidator() + self._validators["x0"] = v_contour.X0Validator() + self._validators["xaxis"] = v_contour.XAxisValidator() + self._validators["xcalendar"] = v_contour.XcalendarValidator() + self._validators["xsrc"] = v_contour.XsrcValidator() + self._validators["xtype"] = v_contour.XtypeValidator() + self._validators["y"] = v_contour.YValidator() + self._validators["y0"] = v_contour.Y0Validator() + self._validators["yaxis"] = v_contour.YAxisValidator() + self._validators["ycalendar"] = v_contour.YcalendarValidator() + self._validators["ysrc"] = v_contour.YsrcValidator() + self._validators["ytype"] = v_contour.YtypeValidator() + self._validators["z"] = v_contour.ZValidator() + self._validators["zauto"] = v_contour.ZautoValidator() + self._validators["zhoverformat"] = v_contour.ZhoverformatValidator() + self._validators["zmax"] = v_contour.ZmaxValidator() + self._validators["zmid"] = v_contour.ZmidValidator() + self._validators["zmin"] = v_contour.ZminValidator() + self._validators["zsrc"] = v_contour.ZsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('autocontour', None) - self['autocontour'] = autocontour if autocontour is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('connectgaps', None) - self['connectgaps'] = connectgaps if connectgaps is not None else _v - _v = arg.pop('contours', None) - self['contours'] = contours if contours is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('dx', None) - self['dx'] = dx if dx is not None else _v - _v = arg.pop('dy', None) - self['dy'] = dy if dy is not None else _v - _v = arg.pop('fillcolor', None) - self['fillcolor'] = fillcolor if fillcolor is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('ncontours', None) - self['ncontours'] = ncontours if ncontours is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('transpose', None) - self['transpose'] = transpose if transpose is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('x0', None) - self['x0'] = x0 if x0 is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('xcalendar', None) - self['xcalendar'] = xcalendar if xcalendar is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('xtype', None) - self['xtype'] = xtype if xtype is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('y0', None) - self['y0'] = y0 if y0 is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v - _v = arg.pop('ycalendar', None) - self['ycalendar'] = ycalendar if ycalendar is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v - _v = arg.pop('ytype', None) - self['ytype'] = ytype if ytype is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v - _v = arg.pop('zauto', None) - self['zauto'] = zauto if zauto is not None else _v - _v = arg.pop('zhoverformat', None) - self['zhoverformat'] = zhoverformat if zhoverformat is not None else _v - _v = arg.pop('zmax', None) - self['zmax'] = zmax if zmax is not None else _v - _v = arg.pop('zmid', None) - self['zmid'] = zmid if zmid is not None else _v - _v = arg.pop('zmin', None) - self['zmin'] = zmin if zmin is not None else _v - _v = arg.pop('zsrc', None) - self['zsrc'] = zsrc if zsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("autocontour", None) + self["autocontour"] = autocontour if autocontour is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("connectgaps", None) + self["connectgaps"] = connectgaps if connectgaps is not None else _v + _v = arg.pop("contours", None) + self["contours"] = contours if contours is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("dx", None) + self["dx"] = dx if dx is not None else _v + _v = arg.pop("dy", None) + self["dy"] = dy if dy is not None else _v + _v = arg.pop("fillcolor", None) + self["fillcolor"] = fillcolor if fillcolor is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("ncontours", None) + self["ncontours"] = ncontours if ncontours is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("transpose", None) + self["transpose"] = transpose if transpose is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("x0", None) + self["x0"] = x0 if x0 is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("xcalendar", None) + self["xcalendar"] = xcalendar if xcalendar is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("xtype", None) + self["xtype"] = xtype if xtype is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("y0", None) + self["y0"] = y0 if y0 is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v + _v = arg.pop("ycalendar", None) + self["ycalendar"] = ycalendar if ycalendar is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v + _v = arg.pop("ytype", None) + self["ytype"] = ytype if ytype is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v + _v = arg.pop("zauto", None) + self["zauto"] = zauto if zauto is not None else _v + _v = arg.pop("zhoverformat", None) + self["zhoverformat"] = zhoverformat if zhoverformat is not None else _v + _v = arg.pop("zmax", None) + self["zmax"] = zmax if zmax is not None else _v + _v = arg.pop("zmid", None) + self["zmid"] = zmid if zmid is not None else _v + _v = arg.pop("zmin", None) + self["zmin"] = zmin if zmin is not None else _v + _v = arg.pop("zsrc", None) + self["zsrc"] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'contour' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='contour', val='contour' + + self._props["type"] = "contour" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="contour", val="contour" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -72814,11 +72609,11 @@ def anchor(self): ------- Any """ - return self['anchor'] + return self["anchor"] @anchor.setter def anchor(self, val): - self['anchor'] = val + self["anchor"] = val # autocolorscale # -------------- @@ -72839,11 +72634,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -72862,11 +72657,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -72884,11 +72679,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -72907,11 +72702,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -72929,11 +72724,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # coloraxis # --------- @@ -72956,11 +72751,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -73186,11 +72981,11 @@ def colorbar(self): ------- plotly.graph_objs.cone.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -73223,11 +73018,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # customdata # ---------- @@ -73246,11 +73041,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -73266,11 +73061,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # hoverinfo # --------- @@ -73292,11 +73087,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -73312,11 +73107,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -73371,11 +73166,11 @@ def hoverlabel(self): ------- plotly.graph_objs.cone.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -73407,11 +73202,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -73427,11 +73222,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -73449,11 +73244,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -73469,11 +73264,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -73491,11 +73286,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -73511,11 +73306,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # lighting # -------- @@ -73559,11 +73354,11 @@ def lighting(self): ------- plotly.graph_objs.cone.Lighting """ - return self['lighting'] + return self["lighting"] @lighting.setter def lighting(self, val): - self['lighting'] = val + self["lighting"] = val # lightposition # ------------- @@ -73592,11 +73387,11 @@ def lightposition(self): ------- plotly.graph_objs.cone.Lightposition """ - return self['lightposition'] + return self["lightposition"] @lightposition.setter def lightposition(self, val): - self['lightposition'] = val + self["lightposition"] = val # meta # ---- @@ -73620,11 +73415,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -73640,11 +73435,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -73662,11 +73457,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -73687,11 +73482,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # reversescale # ------------ @@ -73709,11 +73504,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # scene # ----- @@ -73734,11 +73529,11 @@ def scene(self): ------- str """ - return self['scene'] + return self["scene"] @scene.setter def scene(self, val): - self['scene'] = val + self["scene"] = val # showscale # --------- @@ -73755,11 +73550,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # sizemode # -------- @@ -73779,11 +73574,11 @@ def sizemode(self): ------- Any """ - return self['sizemode'] + return self["sizemode"] @sizemode.setter def sizemode(self, val): - self['sizemode'] = val + self["sizemode"] = val # sizeref # ------- @@ -73808,11 +73603,11 @@ def sizeref(self): ------- int|float """ - return self['sizeref'] + return self["sizeref"] @sizeref.setter def sizeref(self, val): - self['sizeref'] = val + self["sizeref"] = val # stream # ------ @@ -73841,11 +73636,11 @@ def stream(self): ------- plotly.graph_objs.cone.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -73865,11 +73660,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -73885,11 +73680,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # u # - @@ -73905,11 +73700,11 @@ def u(self): ------- numpy.ndarray """ - return self['u'] + return self["u"] @u.setter def u(self, val): - self['u'] = val + self["u"] = val # uid # --- @@ -73927,11 +73722,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -73960,11 +73755,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # usrc # ---- @@ -73980,11 +73775,11 @@ def usrc(self): ------- str """ - return self['usrc'] + return self["usrc"] @usrc.setter def usrc(self, val): - self['usrc'] = val + self["usrc"] = val # v # - @@ -74000,11 +73795,11 @@ def v(self): ------- numpy.ndarray """ - return self['v'] + return self["v"] @v.setter def v(self, val): - self['v'] = val + self["v"] = val # visible # ------- @@ -74023,11 +73818,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # vsrc # ---- @@ -74043,11 +73838,11 @@ def vsrc(self): ------- str """ - return self['vsrc'] + return self["vsrc"] @vsrc.setter def vsrc(self, val): - self['vsrc'] = val + self["vsrc"] = val # w # - @@ -74063,11 +73858,11 @@ def w(self): ------- numpy.ndarray """ - return self['w'] + return self["w"] @w.setter def w(self, val): - self['w'] = val + self["w"] = val # wsrc # ---- @@ -74083,11 +73878,11 @@ def wsrc(self): ------- str """ - return self['wsrc'] + return self["wsrc"] @wsrc.setter def wsrc(self, val): - self['wsrc'] = val + self["wsrc"] = val # x # - @@ -74104,11 +73899,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xsrc # ---- @@ -74124,11 +73919,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -74145,11 +73940,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # ysrc # ---- @@ -74165,11 +73960,11 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # z # - @@ -74186,11 +73981,11 @@ def z(self): ------- numpy.ndarray """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # zsrc # ---- @@ -74206,23 +74001,23 @@ def zsrc(self): ------- str """ - return self['zsrc'] + return self["zsrc"] @zsrc.setter def zsrc(self, val): - self['zsrc'] = val + self["zsrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -74755,7 +74550,7 @@ def __init__( ------- Cone """ - super(Cone, self).__init__('cone') + super(Cone, self).__init__("cone") # Validate arg # ------------ @@ -74775,179 +74570,176 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (cone as v_cone) + from plotly.validators import cone as v_cone # Initialize validators # --------------------- - self._validators['anchor'] = v_cone.AnchorValidator() - self._validators['autocolorscale'] = v_cone.AutocolorscaleValidator() - self._validators['cauto'] = v_cone.CautoValidator() - self._validators['cmax'] = v_cone.CmaxValidator() - self._validators['cmid'] = v_cone.CmidValidator() - self._validators['cmin'] = v_cone.CminValidator() - self._validators['coloraxis'] = v_cone.ColoraxisValidator() - self._validators['colorbar'] = v_cone.ColorBarValidator() - self._validators['colorscale'] = v_cone.ColorscaleValidator() - self._validators['customdata'] = v_cone.CustomdataValidator() - self._validators['customdatasrc'] = v_cone.CustomdatasrcValidator() - self._validators['hoverinfo'] = v_cone.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_cone.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_cone.HoverlabelValidator() - self._validators['hovertemplate'] = v_cone.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_cone.HovertemplatesrcValidator() - self._validators['hovertext'] = v_cone.HovertextValidator() - self._validators['hovertextsrc'] = v_cone.HovertextsrcValidator() - self._validators['ids'] = v_cone.IdsValidator() - self._validators['idssrc'] = v_cone.IdssrcValidator() - self._validators['lighting'] = v_cone.LightingValidator() - self._validators['lightposition'] = v_cone.LightpositionValidator() - self._validators['meta'] = v_cone.MetaValidator() - self._validators['metasrc'] = v_cone.MetasrcValidator() - self._validators['name'] = v_cone.NameValidator() - self._validators['opacity'] = v_cone.OpacityValidator() - self._validators['reversescale'] = v_cone.ReversescaleValidator() - self._validators['scene'] = v_cone.SceneValidator() - self._validators['showscale'] = v_cone.ShowscaleValidator() - self._validators['sizemode'] = v_cone.SizemodeValidator() - self._validators['sizeref'] = v_cone.SizerefValidator() - self._validators['stream'] = v_cone.StreamValidator() - self._validators['text'] = v_cone.TextValidator() - self._validators['textsrc'] = v_cone.TextsrcValidator() - self._validators['u'] = v_cone.UValidator() - self._validators['uid'] = v_cone.UidValidator() - self._validators['uirevision'] = v_cone.UirevisionValidator() - self._validators['usrc'] = v_cone.UsrcValidator() - self._validators['v'] = v_cone.VValidator() - self._validators['visible'] = v_cone.VisibleValidator() - self._validators['vsrc'] = v_cone.VsrcValidator() - self._validators['w'] = v_cone.WValidator() - self._validators['wsrc'] = v_cone.WsrcValidator() - self._validators['x'] = v_cone.XValidator() - self._validators['xsrc'] = v_cone.XsrcValidator() - self._validators['y'] = v_cone.YValidator() - self._validators['ysrc'] = v_cone.YsrcValidator() - self._validators['z'] = v_cone.ZValidator() - self._validators['zsrc'] = v_cone.ZsrcValidator() + self._validators["anchor"] = v_cone.AnchorValidator() + self._validators["autocolorscale"] = v_cone.AutocolorscaleValidator() + self._validators["cauto"] = v_cone.CautoValidator() + self._validators["cmax"] = v_cone.CmaxValidator() + self._validators["cmid"] = v_cone.CmidValidator() + self._validators["cmin"] = v_cone.CminValidator() + self._validators["coloraxis"] = v_cone.ColoraxisValidator() + self._validators["colorbar"] = v_cone.ColorBarValidator() + self._validators["colorscale"] = v_cone.ColorscaleValidator() + self._validators["customdata"] = v_cone.CustomdataValidator() + self._validators["customdatasrc"] = v_cone.CustomdatasrcValidator() + self._validators["hoverinfo"] = v_cone.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_cone.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_cone.HoverlabelValidator() + self._validators["hovertemplate"] = v_cone.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_cone.HovertemplatesrcValidator() + self._validators["hovertext"] = v_cone.HovertextValidator() + self._validators["hovertextsrc"] = v_cone.HovertextsrcValidator() + self._validators["ids"] = v_cone.IdsValidator() + self._validators["idssrc"] = v_cone.IdssrcValidator() + self._validators["lighting"] = v_cone.LightingValidator() + self._validators["lightposition"] = v_cone.LightpositionValidator() + self._validators["meta"] = v_cone.MetaValidator() + self._validators["metasrc"] = v_cone.MetasrcValidator() + self._validators["name"] = v_cone.NameValidator() + self._validators["opacity"] = v_cone.OpacityValidator() + self._validators["reversescale"] = v_cone.ReversescaleValidator() + self._validators["scene"] = v_cone.SceneValidator() + self._validators["showscale"] = v_cone.ShowscaleValidator() + self._validators["sizemode"] = v_cone.SizemodeValidator() + self._validators["sizeref"] = v_cone.SizerefValidator() + self._validators["stream"] = v_cone.StreamValidator() + self._validators["text"] = v_cone.TextValidator() + self._validators["textsrc"] = v_cone.TextsrcValidator() + self._validators["u"] = v_cone.UValidator() + self._validators["uid"] = v_cone.UidValidator() + self._validators["uirevision"] = v_cone.UirevisionValidator() + self._validators["usrc"] = v_cone.UsrcValidator() + self._validators["v"] = v_cone.VValidator() + self._validators["visible"] = v_cone.VisibleValidator() + self._validators["vsrc"] = v_cone.VsrcValidator() + self._validators["w"] = v_cone.WValidator() + self._validators["wsrc"] = v_cone.WsrcValidator() + self._validators["x"] = v_cone.XValidator() + self._validators["xsrc"] = v_cone.XsrcValidator() + self._validators["y"] = v_cone.YValidator() + self._validators["ysrc"] = v_cone.YsrcValidator() + self._validators["z"] = v_cone.ZValidator() + self._validators["zsrc"] = v_cone.ZsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('anchor', None) - self['anchor'] = anchor if anchor is not None else _v - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('lighting', None) - self['lighting'] = lighting if lighting is not None else _v - _v = arg.pop('lightposition', None) - self['lightposition' - ] = lightposition if lightposition is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('scene', None) - self['scene'] = scene if scene is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('sizemode', None) - self['sizemode'] = sizemode if sizemode is not None else _v - _v = arg.pop('sizeref', None) - self['sizeref'] = sizeref if sizeref is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('u', None) - self['u'] = u if u is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('usrc', None) - self['usrc'] = usrc if usrc is not None else _v - _v = arg.pop('v', None) - self['v'] = v if v is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('vsrc', None) - self['vsrc'] = vsrc if vsrc is not None else _v - _v = arg.pop('w', None) - self['w'] = w if w is not None else _v - _v = arg.pop('wsrc', None) - self['wsrc'] = wsrc if wsrc is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v - _v = arg.pop('zsrc', None) - self['zsrc'] = zsrc if zsrc is not None else _v + _v = arg.pop("anchor", None) + self["anchor"] = anchor if anchor is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("lighting", None) + self["lighting"] = lighting if lighting is not None else _v + _v = arg.pop("lightposition", None) + self["lightposition"] = lightposition if lightposition is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("scene", None) + self["scene"] = scene if scene is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("sizemode", None) + self["sizemode"] = sizemode if sizemode is not None else _v + _v = arg.pop("sizeref", None) + self["sizeref"] = sizeref if sizeref is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("u", None) + self["u"] = u if u is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("usrc", None) + self["usrc"] = usrc if usrc is not None else _v + _v = arg.pop("v", None) + self["v"] = v if v is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("vsrc", None) + self["vsrc"] = vsrc if vsrc is not None else _v + _v = arg.pop("w", None) + self["w"] = w if w is not None else _v + _v = arg.pop("wsrc", None) + self["wsrc"] = wsrc if wsrc is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v + _v = arg.pop("zsrc", None) + self["zsrc"] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'cone' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='cone', val='cone' + + self._props["type"] = "cone" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="cone", val="cone" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -74983,11 +74775,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # coloraxis # --------- @@ -75010,11 +74802,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -75243,11 +75035,11 @@ def colorbar(self): ------- plotly.graph_objs.choropleth.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -75280,11 +75072,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # customdata # ---------- @@ -75303,11 +75095,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -75323,11 +75115,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # geo # --- @@ -75348,11 +75140,11 @@ def geo(self): ------- str """ - return self['geo'] + return self["geo"] @geo.setter def geo(self, val): - self['geo'] = val + self["geo"] = val # hoverinfo # --------- @@ -75374,11 +75166,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -75394,11 +75186,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -75453,11 +75245,11 @@ def hoverlabel(self): ------- plotly.graph_objs.choropleth.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -75489,11 +75281,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -75509,11 +75301,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -75531,11 +75323,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -75551,11 +75343,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -75573,11 +75365,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -75593,11 +75385,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # locationmode # ------------ @@ -75615,11 +75407,11 @@ def locationmode(self): ------- Any """ - return self['locationmode'] + return self["locationmode"] @locationmode.setter def locationmode(self, val): - self['locationmode'] = val + self["locationmode"] = val # locations # --------- @@ -75636,11 +75428,11 @@ def locations(self): ------- numpy.ndarray """ - return self['locations'] + return self["locations"] @locations.setter def locations(self, val): - self['locations'] = val + self["locations"] = val # locationssrc # ------------ @@ -75656,11 +75448,11 @@ def locationssrc(self): ------- str """ - return self['locationssrc'] + return self["locationssrc"] @locationssrc.setter def locationssrc(self, val): - self['locationssrc'] = val + self["locationssrc"] = val # marker # ------ @@ -75688,11 +75480,11 @@ def marker(self): ------- plotly.graph_objs.choropleth.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -75716,11 +75508,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -75736,11 +75528,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -75758,11 +75550,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # reversescale # ------------ @@ -75780,11 +75572,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # selected # -------- @@ -75807,11 +75599,11 @@ def selected(self): ------- plotly.graph_objs.choropleth.Selected """ - return self['selected'] + return self["selected"] @selected.setter def selected(self, val): - self['selected'] = val + self["selected"] = val # selectedpoints # -------------- @@ -75831,11 +75623,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showscale # --------- @@ -75852,11 +75644,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # stream # ------ @@ -75885,11 +75677,11 @@ def stream(self): ------- plotly.graph_objs.choropleth.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -75907,11 +75699,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -75927,11 +75719,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -75949,11 +75741,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -75982,11 +75774,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # unselected # ---------- @@ -76009,11 +75801,11 @@ def unselected(self): ------- plotly.graph_objs.choropleth.Unselected """ - return self['unselected'] + return self["unselected"] @unselected.setter def unselected(self, val): - self['unselected'] = val + self["unselected"] = val # visible # ------- @@ -76032,11 +75824,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # z # - @@ -76052,11 +75844,11 @@ def z(self): ------- numpy.ndarray """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # zauto # ----- @@ -76075,11 +75867,11 @@ def zauto(self): ------- bool """ - return self['zauto'] + return self["zauto"] @zauto.setter def zauto(self, val): - self['zauto'] = val + self["zauto"] = val # zmax # ---- @@ -76096,11 +75888,11 @@ def zmax(self): ------- int|float """ - return self['zmax'] + return self["zmax"] @zmax.setter def zmax(self, val): - self['zmax'] = val + self["zmax"] = val # zmid # ---- @@ -76118,11 +75910,11 @@ def zmid(self): ------- int|float """ - return self['zmid'] + return self["zmid"] @zmid.setter def zmid(self, val): - self['zmid'] = val + self["zmid"] = val # zmin # ---- @@ -76139,11 +75931,11 @@ def zmin(self): ------- int|float """ - return self['zmin'] + return self["zmin"] @zmin.setter def zmin(self, val): - self['zmin'] = val + self["zmin"] = val # zsrc # ---- @@ -76159,23 +75951,23 @@ def zsrc(self): ------- str """ - return self['zsrc'] + return self["zsrc"] @zsrc.setter def zsrc(self, val): - self['zsrc'] = val + self["zsrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -76622,7 +76414,7 @@ def __init__( ------- Choropleth """ - super(Choropleth, self).__init__('choropleth') + super(Choropleth, self).__init__("choropleth") # Validate arg # ------------ @@ -76642,156 +76434,149 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (choropleth as v_choropleth) + from plotly.validators import choropleth as v_choropleth # Initialize validators # --------------------- - self._validators['autocolorscale' - ] = v_choropleth.AutocolorscaleValidator() - self._validators['coloraxis'] = v_choropleth.ColoraxisValidator() - self._validators['colorbar'] = v_choropleth.ColorBarValidator() - self._validators['colorscale'] = v_choropleth.ColorscaleValidator() - self._validators['customdata'] = v_choropleth.CustomdataValidator() - self._validators['customdatasrc' - ] = v_choropleth.CustomdatasrcValidator() - self._validators['geo'] = v_choropleth.GeoValidator() - self._validators['hoverinfo'] = v_choropleth.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_choropleth.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_choropleth.HoverlabelValidator() - self._validators['hovertemplate' - ] = v_choropleth.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_choropleth.HovertemplatesrcValidator() - self._validators['hovertext'] = v_choropleth.HovertextValidator() - self._validators['hovertextsrc'] = v_choropleth.HovertextsrcValidator() - self._validators['ids'] = v_choropleth.IdsValidator() - self._validators['idssrc'] = v_choropleth.IdssrcValidator() - self._validators['locationmode'] = v_choropleth.LocationmodeValidator() - self._validators['locations'] = v_choropleth.LocationsValidator() - self._validators['locationssrc'] = v_choropleth.LocationssrcValidator() - self._validators['marker'] = v_choropleth.MarkerValidator() - self._validators['meta'] = v_choropleth.MetaValidator() - self._validators['metasrc'] = v_choropleth.MetasrcValidator() - self._validators['name'] = v_choropleth.NameValidator() - self._validators['reversescale'] = v_choropleth.ReversescaleValidator() - self._validators['selected'] = v_choropleth.SelectedValidator() - self._validators['selectedpoints' - ] = v_choropleth.SelectedpointsValidator() - self._validators['showscale'] = v_choropleth.ShowscaleValidator() - self._validators['stream'] = v_choropleth.StreamValidator() - self._validators['text'] = v_choropleth.TextValidator() - self._validators['textsrc'] = v_choropleth.TextsrcValidator() - self._validators['uid'] = v_choropleth.UidValidator() - self._validators['uirevision'] = v_choropleth.UirevisionValidator() - self._validators['unselected'] = v_choropleth.UnselectedValidator() - self._validators['visible'] = v_choropleth.VisibleValidator() - self._validators['z'] = v_choropleth.ZValidator() - self._validators['zauto'] = v_choropleth.ZautoValidator() - self._validators['zmax'] = v_choropleth.ZmaxValidator() - self._validators['zmid'] = v_choropleth.ZmidValidator() - self._validators['zmin'] = v_choropleth.ZminValidator() - self._validators['zsrc'] = v_choropleth.ZsrcValidator() + self._validators["autocolorscale"] = v_choropleth.AutocolorscaleValidator() + self._validators["coloraxis"] = v_choropleth.ColoraxisValidator() + self._validators["colorbar"] = v_choropleth.ColorBarValidator() + self._validators["colorscale"] = v_choropleth.ColorscaleValidator() + self._validators["customdata"] = v_choropleth.CustomdataValidator() + self._validators["customdatasrc"] = v_choropleth.CustomdatasrcValidator() + self._validators["geo"] = v_choropleth.GeoValidator() + self._validators["hoverinfo"] = v_choropleth.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_choropleth.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_choropleth.HoverlabelValidator() + self._validators["hovertemplate"] = v_choropleth.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_choropleth.HovertemplatesrcValidator() + self._validators["hovertext"] = v_choropleth.HovertextValidator() + self._validators["hovertextsrc"] = v_choropleth.HovertextsrcValidator() + self._validators["ids"] = v_choropleth.IdsValidator() + self._validators["idssrc"] = v_choropleth.IdssrcValidator() + self._validators["locationmode"] = v_choropleth.LocationmodeValidator() + self._validators["locations"] = v_choropleth.LocationsValidator() + self._validators["locationssrc"] = v_choropleth.LocationssrcValidator() + self._validators["marker"] = v_choropleth.MarkerValidator() + self._validators["meta"] = v_choropleth.MetaValidator() + self._validators["metasrc"] = v_choropleth.MetasrcValidator() + self._validators["name"] = v_choropleth.NameValidator() + self._validators["reversescale"] = v_choropleth.ReversescaleValidator() + self._validators["selected"] = v_choropleth.SelectedValidator() + self._validators["selectedpoints"] = v_choropleth.SelectedpointsValidator() + self._validators["showscale"] = v_choropleth.ShowscaleValidator() + self._validators["stream"] = v_choropleth.StreamValidator() + self._validators["text"] = v_choropleth.TextValidator() + self._validators["textsrc"] = v_choropleth.TextsrcValidator() + self._validators["uid"] = v_choropleth.UidValidator() + self._validators["uirevision"] = v_choropleth.UirevisionValidator() + self._validators["unselected"] = v_choropleth.UnselectedValidator() + self._validators["visible"] = v_choropleth.VisibleValidator() + self._validators["z"] = v_choropleth.ZValidator() + self._validators["zauto"] = v_choropleth.ZautoValidator() + self._validators["zmax"] = v_choropleth.ZmaxValidator() + self._validators["zmid"] = v_choropleth.ZmidValidator() + self._validators["zmin"] = v_choropleth.ZminValidator() + self._validators["zsrc"] = v_choropleth.ZsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('geo', None) - self['geo'] = geo if geo is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('locationmode', None) - self['locationmode'] = locationmode if locationmode is not None else _v - _v = arg.pop('locations', None) - self['locations'] = locations if locations is not None else _v - _v = arg.pop('locationssrc', None) - self['locationssrc'] = locationssrc if locationssrc is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('selected', None) - self['selected'] = selected if selected is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('unselected', None) - self['unselected'] = unselected if unselected is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v - _v = arg.pop('zauto', None) - self['zauto'] = zauto if zauto is not None else _v - _v = arg.pop('zmax', None) - self['zmax'] = zmax if zmax is not None else _v - _v = arg.pop('zmid', None) - self['zmid'] = zmid if zmid is not None else _v - _v = arg.pop('zmin', None) - self['zmin'] = zmin if zmin is not None else _v - _v = arg.pop('zsrc', None) - self['zsrc'] = zsrc if zsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("geo", None) + self["geo"] = geo if geo is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("locationmode", None) + self["locationmode"] = locationmode if locationmode is not None else _v + _v = arg.pop("locations", None) + self["locations"] = locations if locations is not None else _v + _v = arg.pop("locationssrc", None) + self["locationssrc"] = locationssrc if locationssrc is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("selected", None) + self["selected"] = selected if selected is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("unselected", None) + self["unselected"] = unselected if unselected is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v + _v = arg.pop("zauto", None) + self["zauto"] = zauto if zauto is not None else _v + _v = arg.pop("zmax", None) + self["zmax"] = zmax if zmax is not None else _v + _v = arg.pop("zmid", None) + self["zmid"] = zmid if zmid is not None else _v + _v = arg.pop("zmin", None) + self["zmin"] = zmin if zmin is not None else _v + _v = arg.pop("zsrc", None) + self["zsrc"] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'choropleth' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='choropleth', val='choropleth' + + self._props["type"] = "choropleth" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="choropleth", val="choropleth" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -76822,11 +76607,11 @@ def a(self): ------- numpy.ndarray """ - return self['a'] + return self["a"] @a.setter def a(self, val): - self['a'] = val + self["a"] = val # a0 # -- @@ -76844,11 +76629,11 @@ def a0(self): ------- int|float """ - return self['a0'] + return self["a0"] @a0.setter def a0(self, val): - self['a0'] = val + self["a0"] = val # aaxis # ----- @@ -77080,11 +76865,11 @@ def aaxis(self): ------- plotly.graph_objs.carpet.Aaxis """ - return self['aaxis'] + return self["aaxis"] @aaxis.setter def aaxis(self, val): - self['aaxis'] = val + self["aaxis"] = val # asrc # ---- @@ -77100,11 +76885,11 @@ def asrc(self): ------- str """ - return self['asrc'] + return self["asrc"] @asrc.setter def asrc(self, val): - self['asrc'] = val + self["asrc"] = val # b # - @@ -77120,11 +76905,11 @@ def b(self): ------- numpy.ndarray """ - return self['b'] + return self["b"] @b.setter def b(self, val): - self['b'] = val + self["b"] = val # b0 # -- @@ -77142,11 +76927,11 @@ def b0(self): ------- int|float """ - return self['b0'] + return self["b0"] @b0.setter def b0(self, val): - self['b0'] = val + self["b0"] = val # baxis # ----- @@ -77378,11 +77163,11 @@ def baxis(self): ------- plotly.graph_objs.carpet.Baxis """ - return self['baxis'] + return self["baxis"] @baxis.setter def baxis(self, val): - self['baxis'] = val + self["baxis"] = val # bsrc # ---- @@ -77398,11 +77183,11 @@ def bsrc(self): ------- str """ - return self['bsrc'] + return self["bsrc"] @bsrc.setter def bsrc(self, val): - self['bsrc'] = val + self["bsrc"] = val # carpet # ------ @@ -77421,11 +77206,11 @@ def carpet(self): ------- str """ - return self['carpet'] + return self["carpet"] @carpet.setter def carpet(self, val): - self['carpet'] = val + self["carpet"] = val # cheaterslope # ------------ @@ -77442,11 +77227,11 @@ def cheaterslope(self): ------- int|float """ - return self['cheaterslope'] + return self["cheaterslope"] @cheaterslope.setter def cheaterslope(self, val): - self['cheaterslope'] = val + self["cheaterslope"] = val # color # ----- @@ -77504,11 +77289,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # customdata # ---------- @@ -77527,11 +77312,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -77547,11 +77332,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # da # -- @@ -77567,11 +77352,11 @@ def da(self): ------- int|float """ - return self['da'] + return self["da"] @da.setter def da(self, val): - self['da'] = val + self["da"] = val # db # -- @@ -77587,11 +77372,11 @@ def db(self): ------- int|float """ - return self['db'] + return self["db"] @db.setter def db(self, val): - self['db'] = val + self["db"] = val # font # ---- @@ -77632,11 +77417,11 @@ def font(self): ------- plotly.graph_objs.carpet.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # hoverinfo # --------- @@ -77658,11 +77443,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -77678,11 +77463,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -77737,11 +77522,11 @@ def hoverlabel(self): ------- plotly.graph_objs.carpet.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # ids # --- @@ -77759,11 +77544,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -77779,11 +77564,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # meta # ---- @@ -77807,11 +77592,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -77827,11 +77612,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -77849,11 +77634,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -77869,11 +77654,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # stream # ------ @@ -77902,11 +77687,11 @@ def stream(self): ------- plotly.graph_objs.carpet.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # uid # --- @@ -77924,11 +77709,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -77957,11 +77742,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -77980,11 +77765,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -78002,11 +77787,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xaxis # ----- @@ -78027,11 +77812,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # xsrc # ---- @@ -78047,11 +77832,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -78067,11 +77852,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yaxis # ----- @@ -78092,11 +77877,11 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # ysrc # ---- @@ -78112,23 +77897,23 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -78471,7 +78256,7 @@ def __init__( ------- Carpet """ - super(Carpet, self).__init__('carpet') + super(Carpet, self).__init__("carpet") # Validate arg # ------------ @@ -78491,132 +78276,132 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (carpet as v_carpet) + from plotly.validators import carpet as v_carpet # Initialize validators # --------------------- - self._validators['a'] = v_carpet.AValidator() - self._validators['a0'] = v_carpet.A0Validator() - self._validators['aaxis'] = v_carpet.AaxisValidator() - self._validators['asrc'] = v_carpet.AsrcValidator() - self._validators['b'] = v_carpet.BValidator() - self._validators['b0'] = v_carpet.B0Validator() - self._validators['baxis'] = v_carpet.BaxisValidator() - self._validators['bsrc'] = v_carpet.BsrcValidator() - self._validators['carpet'] = v_carpet.CarpetValidator() - self._validators['cheaterslope'] = v_carpet.CheaterslopeValidator() - self._validators['color'] = v_carpet.ColorValidator() - self._validators['customdata'] = v_carpet.CustomdataValidator() - self._validators['customdatasrc'] = v_carpet.CustomdatasrcValidator() - self._validators['da'] = v_carpet.DaValidator() - self._validators['db'] = v_carpet.DbValidator() - self._validators['font'] = v_carpet.FontValidator() - self._validators['hoverinfo'] = v_carpet.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_carpet.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_carpet.HoverlabelValidator() - self._validators['ids'] = v_carpet.IdsValidator() - self._validators['idssrc'] = v_carpet.IdssrcValidator() - self._validators['meta'] = v_carpet.MetaValidator() - self._validators['metasrc'] = v_carpet.MetasrcValidator() - self._validators['name'] = v_carpet.NameValidator() - self._validators['opacity'] = v_carpet.OpacityValidator() - self._validators['stream'] = v_carpet.StreamValidator() - self._validators['uid'] = v_carpet.UidValidator() - self._validators['uirevision'] = v_carpet.UirevisionValidator() - self._validators['visible'] = v_carpet.VisibleValidator() - self._validators['x'] = v_carpet.XValidator() - self._validators['xaxis'] = v_carpet.XAxisValidator() - self._validators['xsrc'] = v_carpet.XsrcValidator() - self._validators['y'] = v_carpet.YValidator() - self._validators['yaxis'] = v_carpet.YAxisValidator() - self._validators['ysrc'] = v_carpet.YsrcValidator() + self._validators["a"] = v_carpet.AValidator() + self._validators["a0"] = v_carpet.A0Validator() + self._validators["aaxis"] = v_carpet.AaxisValidator() + self._validators["asrc"] = v_carpet.AsrcValidator() + self._validators["b"] = v_carpet.BValidator() + self._validators["b0"] = v_carpet.B0Validator() + self._validators["baxis"] = v_carpet.BaxisValidator() + self._validators["bsrc"] = v_carpet.BsrcValidator() + self._validators["carpet"] = v_carpet.CarpetValidator() + self._validators["cheaterslope"] = v_carpet.CheaterslopeValidator() + self._validators["color"] = v_carpet.ColorValidator() + self._validators["customdata"] = v_carpet.CustomdataValidator() + self._validators["customdatasrc"] = v_carpet.CustomdatasrcValidator() + self._validators["da"] = v_carpet.DaValidator() + self._validators["db"] = v_carpet.DbValidator() + self._validators["font"] = v_carpet.FontValidator() + self._validators["hoverinfo"] = v_carpet.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_carpet.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_carpet.HoverlabelValidator() + self._validators["ids"] = v_carpet.IdsValidator() + self._validators["idssrc"] = v_carpet.IdssrcValidator() + self._validators["meta"] = v_carpet.MetaValidator() + self._validators["metasrc"] = v_carpet.MetasrcValidator() + self._validators["name"] = v_carpet.NameValidator() + self._validators["opacity"] = v_carpet.OpacityValidator() + self._validators["stream"] = v_carpet.StreamValidator() + self._validators["uid"] = v_carpet.UidValidator() + self._validators["uirevision"] = v_carpet.UirevisionValidator() + self._validators["visible"] = v_carpet.VisibleValidator() + self._validators["x"] = v_carpet.XValidator() + self._validators["xaxis"] = v_carpet.XAxisValidator() + self._validators["xsrc"] = v_carpet.XsrcValidator() + self._validators["y"] = v_carpet.YValidator() + self._validators["yaxis"] = v_carpet.YAxisValidator() + self._validators["ysrc"] = v_carpet.YsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('a', None) - self['a'] = a if a is not None else _v - _v = arg.pop('a0', None) - self['a0'] = a0 if a0 is not None else _v - _v = arg.pop('aaxis', None) - self['aaxis'] = aaxis if aaxis is not None else _v - _v = arg.pop('asrc', None) - self['asrc'] = asrc if asrc is not None else _v - _v = arg.pop('b', None) - self['b'] = b if b is not None else _v - _v = arg.pop('b0', None) - self['b0'] = b0 if b0 is not None else _v - _v = arg.pop('baxis', None) - self['baxis'] = baxis if baxis is not None else _v - _v = arg.pop('bsrc', None) - self['bsrc'] = bsrc if bsrc is not None else _v - _v = arg.pop('carpet', None) - self['carpet'] = carpet if carpet is not None else _v - _v = arg.pop('cheaterslope', None) - self['cheaterslope'] = cheaterslope if cheaterslope is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('da', None) - self['da'] = da if da is not None else _v - _v = arg.pop('db', None) - self['db'] = db if db is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v + _v = arg.pop("a", None) + self["a"] = a if a is not None else _v + _v = arg.pop("a0", None) + self["a0"] = a0 if a0 is not None else _v + _v = arg.pop("aaxis", None) + self["aaxis"] = aaxis if aaxis is not None else _v + _v = arg.pop("asrc", None) + self["asrc"] = asrc if asrc is not None else _v + _v = arg.pop("b", None) + self["b"] = b if b is not None else _v + _v = arg.pop("b0", None) + self["b0"] = b0 if b0 is not None else _v + _v = arg.pop("baxis", None) + self["baxis"] = baxis if baxis is not None else _v + _v = arg.pop("bsrc", None) + self["bsrc"] = bsrc if bsrc is not None else _v + _v = arg.pop("carpet", None) + self["carpet"] = carpet if carpet is not None else _v + _v = arg.pop("cheaterslope", None) + self["cheaterslope"] = cheaterslope if cheaterslope is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("da", None) + self["da"] = da if da is not None else _v + _v = arg.pop("db", None) + self["db"] = db if db is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'carpet' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='carpet', val='carpet' + + self._props["type"] = "carpet" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="carpet", val="carpet" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -78647,11 +78432,11 @@ def close(self): ------- numpy.ndarray """ - return self['close'] + return self["close"] @close.setter def close(self, val): - self['close'] = val + self["close"] = val # closesrc # -------- @@ -78667,11 +78452,11 @@ def closesrc(self): ------- str """ - return self['closesrc'] + return self["closesrc"] @closesrc.setter def closesrc(self, val): - self['closesrc'] = val + self["closesrc"] = val # customdata # ---------- @@ -78690,11 +78475,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -78710,11 +78495,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # decreasing # ---------- @@ -78742,11 +78527,11 @@ def decreasing(self): ------- plotly.graph_objs.candlestick.Decreasing """ - return self['decreasing'] + return self["decreasing"] @decreasing.setter def decreasing(self, val): - self['decreasing'] = val + self["decreasing"] = val # high # ---- @@ -78762,11 +78547,11 @@ def high(self): ------- numpy.ndarray """ - return self['high'] + return self["high"] @high.setter def high(self, val): - self['high'] = val + self["high"] = val # highsrc # ------- @@ -78782,11 +78567,11 @@ def highsrc(self): ------- str """ - return self['highsrc'] + return self["highsrc"] @highsrc.setter def highsrc(self, val): - self['highsrc'] = val + self["highsrc"] = val # hoverinfo # --------- @@ -78808,11 +78593,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -78828,11 +78613,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -78890,11 +78675,11 @@ def hoverlabel(self): ------- plotly.graph_objs.candlestick.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertext # --------- @@ -78912,11 +78697,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -78932,11 +78717,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -78954,11 +78739,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -78974,11 +78759,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # increasing # ---------- @@ -79006,11 +78791,11 @@ def increasing(self): ------- plotly.graph_objs.candlestick.Increasing """ - return self['increasing'] + return self["increasing"] @increasing.setter def increasing(self, val): - self['increasing'] = val + self["increasing"] = val # legendgroup # ----------- @@ -79029,11 +78814,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # line # ---- @@ -79059,11 +78844,11 @@ def line(self): ------- plotly.graph_objs.candlestick.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # low # --- @@ -79079,11 +78864,11 @@ def low(self): ------- numpy.ndarray """ - return self['low'] + return self["low"] @low.setter def low(self, val): - self['low'] = val + self["low"] = val # lowsrc # ------ @@ -79099,11 +78884,11 @@ def lowsrc(self): ------- str """ - return self['lowsrc'] + return self["lowsrc"] @lowsrc.setter def lowsrc(self, val): - self['lowsrc'] = val + self["lowsrc"] = val # meta # ---- @@ -79127,11 +78912,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -79147,11 +78932,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -79169,11 +78954,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -79189,11 +78974,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # open # ---- @@ -79209,11 +78994,11 @@ def open(self): ------- numpy.ndarray """ - return self['open'] + return self["open"] @open.setter def open(self, val): - self['open'] = val + self["open"] = val # opensrc # ------- @@ -79229,11 +79014,11 @@ def opensrc(self): ------- str """ - return self['opensrc'] + return self["opensrc"] @opensrc.setter def opensrc(self, val): - self['opensrc'] = val + self["opensrc"] = val # selectedpoints # -------------- @@ -79253,11 +79038,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -79274,11 +79059,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -79307,11 +79092,11 @@ def stream(self): ------- plotly.graph_objs.candlestick.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -79332,11 +79117,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -79352,11 +79137,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -79374,11 +79159,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -79407,11 +79192,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -79430,11 +79215,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # whiskerwidth # ------------ @@ -79451,11 +79236,11 @@ def whiskerwidth(self): ------- int|float """ - return self['whiskerwidth'] + return self["whiskerwidth"] @whiskerwidth.setter def whiskerwidth(self, val): - self['whiskerwidth'] = val + self["whiskerwidth"] = val # x # - @@ -79472,11 +79257,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xaxis # ----- @@ -79497,11 +79282,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # xcalendar # --------- @@ -79521,11 +79306,11 @@ def xcalendar(self): ------- Any """ - return self['xcalendar'] + return self["xcalendar"] @xcalendar.setter def xcalendar(self, val): - self['xcalendar'] = val + self["xcalendar"] = val # xsrc # ---- @@ -79541,11 +79326,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # yaxis # ----- @@ -79566,23 +79351,23 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -79945,7 +79730,7 @@ def __init__( ------- Candlestick """ - super(Candlestick, self).__init__('candlestick') + super(Candlestick, self).__init__("candlestick") # Validate arg # ------------ @@ -79965,150 +79750,144 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (candlestick as v_candlestick) + from plotly.validators import candlestick as v_candlestick # Initialize validators # --------------------- - self._validators['close'] = v_candlestick.CloseValidator() - self._validators['closesrc'] = v_candlestick.ClosesrcValidator() - self._validators['customdata'] = v_candlestick.CustomdataValidator() - self._validators['customdatasrc' - ] = v_candlestick.CustomdatasrcValidator() - self._validators['decreasing'] = v_candlestick.DecreasingValidator() - self._validators['high'] = v_candlestick.HighValidator() - self._validators['highsrc'] = v_candlestick.HighsrcValidator() - self._validators['hoverinfo'] = v_candlestick.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_candlestick.HoverinfosrcValidator( - ) - self._validators['hoverlabel'] = v_candlestick.HoverlabelValidator() - self._validators['hovertext'] = v_candlestick.HovertextValidator() - self._validators['hovertextsrc'] = v_candlestick.HovertextsrcValidator( - ) - self._validators['ids'] = v_candlestick.IdsValidator() - self._validators['idssrc'] = v_candlestick.IdssrcValidator() - self._validators['increasing'] = v_candlestick.IncreasingValidator() - self._validators['legendgroup'] = v_candlestick.LegendgroupValidator() - self._validators['line'] = v_candlestick.LineValidator() - self._validators['low'] = v_candlestick.LowValidator() - self._validators['lowsrc'] = v_candlestick.LowsrcValidator() - self._validators['meta'] = v_candlestick.MetaValidator() - self._validators['metasrc'] = v_candlestick.MetasrcValidator() - self._validators['name'] = v_candlestick.NameValidator() - self._validators['opacity'] = v_candlestick.OpacityValidator() - self._validators['open'] = v_candlestick.OpenValidator() - self._validators['opensrc'] = v_candlestick.OpensrcValidator() - self._validators['selectedpoints' - ] = v_candlestick.SelectedpointsValidator() - self._validators['showlegend'] = v_candlestick.ShowlegendValidator() - self._validators['stream'] = v_candlestick.StreamValidator() - self._validators['text'] = v_candlestick.TextValidator() - self._validators['textsrc'] = v_candlestick.TextsrcValidator() - self._validators['uid'] = v_candlestick.UidValidator() - self._validators['uirevision'] = v_candlestick.UirevisionValidator() - self._validators['visible'] = v_candlestick.VisibleValidator() - self._validators['whiskerwidth'] = v_candlestick.WhiskerwidthValidator( - ) - self._validators['x'] = v_candlestick.XValidator() - self._validators['xaxis'] = v_candlestick.XAxisValidator() - self._validators['xcalendar'] = v_candlestick.XcalendarValidator() - self._validators['xsrc'] = v_candlestick.XsrcValidator() - self._validators['yaxis'] = v_candlestick.YAxisValidator() + self._validators["close"] = v_candlestick.CloseValidator() + self._validators["closesrc"] = v_candlestick.ClosesrcValidator() + self._validators["customdata"] = v_candlestick.CustomdataValidator() + self._validators["customdatasrc"] = v_candlestick.CustomdatasrcValidator() + self._validators["decreasing"] = v_candlestick.DecreasingValidator() + self._validators["high"] = v_candlestick.HighValidator() + self._validators["highsrc"] = v_candlestick.HighsrcValidator() + self._validators["hoverinfo"] = v_candlestick.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_candlestick.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_candlestick.HoverlabelValidator() + self._validators["hovertext"] = v_candlestick.HovertextValidator() + self._validators["hovertextsrc"] = v_candlestick.HovertextsrcValidator() + self._validators["ids"] = v_candlestick.IdsValidator() + self._validators["idssrc"] = v_candlestick.IdssrcValidator() + self._validators["increasing"] = v_candlestick.IncreasingValidator() + self._validators["legendgroup"] = v_candlestick.LegendgroupValidator() + self._validators["line"] = v_candlestick.LineValidator() + self._validators["low"] = v_candlestick.LowValidator() + self._validators["lowsrc"] = v_candlestick.LowsrcValidator() + self._validators["meta"] = v_candlestick.MetaValidator() + self._validators["metasrc"] = v_candlestick.MetasrcValidator() + self._validators["name"] = v_candlestick.NameValidator() + self._validators["opacity"] = v_candlestick.OpacityValidator() + self._validators["open"] = v_candlestick.OpenValidator() + self._validators["opensrc"] = v_candlestick.OpensrcValidator() + self._validators["selectedpoints"] = v_candlestick.SelectedpointsValidator() + self._validators["showlegend"] = v_candlestick.ShowlegendValidator() + self._validators["stream"] = v_candlestick.StreamValidator() + self._validators["text"] = v_candlestick.TextValidator() + self._validators["textsrc"] = v_candlestick.TextsrcValidator() + self._validators["uid"] = v_candlestick.UidValidator() + self._validators["uirevision"] = v_candlestick.UirevisionValidator() + self._validators["visible"] = v_candlestick.VisibleValidator() + self._validators["whiskerwidth"] = v_candlestick.WhiskerwidthValidator() + self._validators["x"] = v_candlestick.XValidator() + self._validators["xaxis"] = v_candlestick.XAxisValidator() + self._validators["xcalendar"] = v_candlestick.XcalendarValidator() + self._validators["xsrc"] = v_candlestick.XsrcValidator() + self._validators["yaxis"] = v_candlestick.YAxisValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('close', None) - self['close'] = close if close is not None else _v - _v = arg.pop('closesrc', None) - self['closesrc'] = closesrc if closesrc is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('decreasing', None) - self['decreasing'] = decreasing if decreasing is not None else _v - _v = arg.pop('high', None) - self['high'] = high if high is not None else _v - _v = arg.pop('highsrc', None) - self['highsrc'] = highsrc if highsrc is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('increasing', None) - self['increasing'] = increasing if increasing is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('low', None) - self['low'] = low if low is not None else _v - _v = arg.pop('lowsrc', None) - self['lowsrc'] = lowsrc if lowsrc is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('open', None) - self['open'] = open if open is not None else _v - _v = arg.pop('opensrc', None) - self['opensrc'] = opensrc if opensrc is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('whiskerwidth', None) - self['whiskerwidth'] = whiskerwidth if whiskerwidth is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('xcalendar', None) - self['xcalendar'] = xcalendar if xcalendar is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v + _v = arg.pop("close", None) + self["close"] = close if close is not None else _v + _v = arg.pop("closesrc", None) + self["closesrc"] = closesrc if closesrc is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("decreasing", None) + self["decreasing"] = decreasing if decreasing is not None else _v + _v = arg.pop("high", None) + self["high"] = high if high is not None else _v + _v = arg.pop("highsrc", None) + self["highsrc"] = highsrc if highsrc is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("increasing", None) + self["increasing"] = increasing if increasing is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("low", None) + self["low"] = low if low is not None else _v + _v = arg.pop("lowsrc", None) + self["lowsrc"] = lowsrc if lowsrc is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("open", None) + self["open"] = open if open is not None else _v + _v = arg.pop("opensrc", None) + self["opensrc"] = opensrc if opensrc is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("whiskerwidth", None) + self["whiskerwidth"] = whiskerwidth if whiskerwidth is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("xcalendar", None) + self["xcalendar"] = xcalendar if xcalendar is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'candlestick' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='candlestick', val='candlestick' + + self._props["type"] = "candlestick" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="candlestick", val="candlestick" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -80142,11 +79921,11 @@ def alignmentgroup(self): ------- str """ - return self['alignmentgroup'] + return self["alignmentgroup"] @alignmentgroup.setter def alignmentgroup(self, val): - self['alignmentgroup'] = val + self["alignmentgroup"] = val # boxmean # ------- @@ -80165,11 +79944,11 @@ def boxmean(self): ------- Any """ - return self['boxmean'] + return self["boxmean"] @boxmean.setter def boxmean(self, val): - self['boxmean'] = val + self["boxmean"] = val # boxpoints # --------- @@ -80191,11 +79970,11 @@ def boxpoints(self): ------- Any """ - return self['boxpoints'] + return self["boxpoints"] @boxpoints.setter def boxpoints(self, val): - self['boxpoints'] = val + self["boxpoints"] = val # customdata # ---------- @@ -80214,11 +79993,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -80234,11 +80013,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # fillcolor # --------- @@ -80295,11 +80074,11 @@ def fillcolor(self): ------- str """ - return self['fillcolor'] + return self["fillcolor"] @fillcolor.setter def fillcolor(self, val): - self['fillcolor'] = val + self["fillcolor"] = val # hoverinfo # --------- @@ -80321,11 +80100,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -80341,11 +80120,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -80400,11 +80179,11 @@ def hoverlabel(self): ------- plotly.graph_objs.box.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hoveron # ------- @@ -80423,11 +80202,11 @@ def hoveron(self): ------- Any """ - return self['hoveron'] + return self["hoveron"] @hoveron.setter def hoveron(self, val): - self['hoveron'] = val + self["hoveron"] = val # hovertemplate # ------------- @@ -80459,11 +80238,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -80479,11 +80258,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -80501,11 +80280,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -80521,11 +80300,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -80543,11 +80322,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -80563,11 +80342,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # jitter # ------ @@ -80586,11 +80365,11 @@ def jitter(self): ------- int|float """ - return self['jitter'] + return self["jitter"] @jitter.setter def jitter(self, val): - self['jitter'] = val + self["jitter"] = val # legendgroup # ----------- @@ -80609,11 +80388,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # line # ---- @@ -80638,11 +80417,11 @@ def line(self): ------- plotly.graph_objs.box.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # marker # ------ @@ -80684,11 +80463,11 @@ def marker(self): ------- plotly.graph_objs.box.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -80712,11 +80491,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -80732,11 +80511,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -80756,11 +80535,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # notched # ------- @@ -80776,11 +80555,11 @@ def notched(self): ------- bool """ - return self['notched'] + return self["notched"] @notched.setter def notched(self, val): - self['notched'] = val + self["notched"] = val # notchwidth # ---------- @@ -80797,11 +80576,11 @@ def notchwidth(self): ------- int|float """ - return self['notchwidth'] + return self["notchwidth"] @notchwidth.setter def notchwidth(self, val): - self['notchwidth'] = val + self["notchwidth"] = val # offsetgroup # ----------- @@ -80820,11 +80599,11 @@ def offsetgroup(self): ------- str """ - return self['offsetgroup'] + return self["offsetgroup"] @offsetgroup.setter def offsetgroup(self, val): - self['offsetgroup'] = val + self["offsetgroup"] = val # opacity # ------- @@ -80840,11 +80619,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # orientation # ----------- @@ -80862,11 +80641,11 @@ def orientation(self): ------- Any """ - return self['orientation'] + return self["orientation"] @orientation.setter def orientation(self, val): - self['orientation'] = val + self["orientation"] = val # pointpos # -------- @@ -80886,11 +80665,11 @@ def pointpos(self): ------- int|float """ - return self['pointpos'] + return self["pointpos"] @pointpos.setter def pointpos(self, val): - self['pointpos'] = val + self["pointpos"] = val # selected # -------- @@ -80913,11 +80692,11 @@ def selected(self): ------- plotly.graph_objs.box.Selected """ - return self['selected'] + return self["selected"] @selected.setter def selected(self, val): - self['selected'] = val + self["selected"] = val # selectedpoints # -------------- @@ -80937,11 +80716,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -80958,11 +80737,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -80991,11 +80770,11 @@ def stream(self): ------- plotly.graph_objs.box.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # text # ---- @@ -81017,11 +80796,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -81037,11 +80816,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # uid # --- @@ -81059,11 +80838,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -81092,11 +80871,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # unselected # ---------- @@ -81119,11 +80898,11 @@ def unselected(self): ------- plotly.graph_objs.box.Unselected """ - return self['unselected'] + return self["unselected"] @unselected.setter def unselected(self, val): - self['unselected'] = val + self["unselected"] = val # visible # ------- @@ -81142,11 +80921,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # whiskerwidth # ------------ @@ -81163,11 +80942,11 @@ def whiskerwidth(self): ------- int|float """ - return self['whiskerwidth'] + return self["whiskerwidth"] @whiskerwidth.setter def whiskerwidth(self, val): - self['whiskerwidth'] = val + self["whiskerwidth"] = val # width # ----- @@ -81185,11 +80964,11 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # x # - @@ -81206,11 +80985,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # x0 # -- @@ -81225,11 +81004,11 @@ def x0(self): ------- Any """ - return self['x0'] + return self["x0"] @x0.setter def x0(self, val): - self['x0'] = val + self["x0"] = val # xaxis # ----- @@ -81250,11 +81029,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # xcalendar # --------- @@ -81274,11 +81053,11 @@ def xcalendar(self): ------- Any """ - return self['xcalendar'] + return self["xcalendar"] @xcalendar.setter def xcalendar(self, val): - self['xcalendar'] = val + self["xcalendar"] = val # xsrc # ---- @@ -81294,11 +81073,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -81315,11 +81094,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # y0 # -- @@ -81334,11 +81113,11 @@ def y0(self): ------- Any """ - return self['y0'] + return self["y0"] @y0.setter def y0(self, val): - self['y0'] = val + self["y0"] = val # yaxis # ----- @@ -81359,11 +81138,11 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # ycalendar # --------- @@ -81383,11 +81162,11 @@ def ycalendar(self): ------- Any """ - return self['ycalendar'] + return self["ycalendar"] @ycalendar.setter def ycalendar(self, val): - self['ycalendar'] = val + self["ycalendar"] = val # ysrc # ---- @@ -81403,23 +81182,23 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -81956,7 +81735,7 @@ def __init__( ------- Box """ - super(Box, self).__init__('box') + super(Box, self).__init__("box") # Validate arg # ------------ @@ -81976,185 +81755,182 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (box as v_box) + from plotly.validators import box as v_box # Initialize validators # --------------------- - self._validators['alignmentgroup'] = v_box.AlignmentgroupValidator() - self._validators['boxmean'] = v_box.BoxmeanValidator() - self._validators['boxpoints'] = v_box.BoxpointsValidator() - self._validators['customdata'] = v_box.CustomdataValidator() - self._validators['customdatasrc'] = v_box.CustomdatasrcValidator() - self._validators['fillcolor'] = v_box.FillcolorValidator() - self._validators['hoverinfo'] = v_box.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_box.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_box.HoverlabelValidator() - self._validators['hoveron'] = v_box.HoveronValidator() - self._validators['hovertemplate'] = v_box.HovertemplateValidator() - self._validators['hovertemplatesrc'] = v_box.HovertemplatesrcValidator( - ) - self._validators['hovertext'] = v_box.HovertextValidator() - self._validators['hovertextsrc'] = v_box.HovertextsrcValidator() - self._validators['ids'] = v_box.IdsValidator() - self._validators['idssrc'] = v_box.IdssrcValidator() - self._validators['jitter'] = v_box.JitterValidator() - self._validators['legendgroup'] = v_box.LegendgroupValidator() - self._validators['line'] = v_box.LineValidator() - self._validators['marker'] = v_box.MarkerValidator() - self._validators['meta'] = v_box.MetaValidator() - self._validators['metasrc'] = v_box.MetasrcValidator() - self._validators['name'] = v_box.NameValidator() - self._validators['notched'] = v_box.NotchedValidator() - self._validators['notchwidth'] = v_box.NotchwidthValidator() - self._validators['offsetgroup'] = v_box.OffsetgroupValidator() - self._validators['opacity'] = v_box.OpacityValidator() - self._validators['orientation'] = v_box.OrientationValidator() - self._validators['pointpos'] = v_box.PointposValidator() - self._validators['selected'] = v_box.SelectedValidator() - self._validators['selectedpoints'] = v_box.SelectedpointsValidator() - self._validators['showlegend'] = v_box.ShowlegendValidator() - self._validators['stream'] = v_box.StreamValidator() - self._validators['text'] = v_box.TextValidator() - self._validators['textsrc'] = v_box.TextsrcValidator() - self._validators['uid'] = v_box.UidValidator() - self._validators['uirevision'] = v_box.UirevisionValidator() - self._validators['unselected'] = v_box.UnselectedValidator() - self._validators['visible'] = v_box.VisibleValidator() - self._validators['whiskerwidth'] = v_box.WhiskerwidthValidator() - self._validators['width'] = v_box.WidthValidator() - self._validators['x'] = v_box.XValidator() - self._validators['x0'] = v_box.X0Validator() - self._validators['xaxis'] = v_box.XAxisValidator() - self._validators['xcalendar'] = v_box.XcalendarValidator() - self._validators['xsrc'] = v_box.XsrcValidator() - self._validators['y'] = v_box.YValidator() - self._validators['y0'] = v_box.Y0Validator() - self._validators['yaxis'] = v_box.YAxisValidator() - self._validators['ycalendar'] = v_box.YcalendarValidator() - self._validators['ysrc'] = v_box.YsrcValidator() + self._validators["alignmentgroup"] = v_box.AlignmentgroupValidator() + self._validators["boxmean"] = v_box.BoxmeanValidator() + self._validators["boxpoints"] = v_box.BoxpointsValidator() + self._validators["customdata"] = v_box.CustomdataValidator() + self._validators["customdatasrc"] = v_box.CustomdatasrcValidator() + self._validators["fillcolor"] = v_box.FillcolorValidator() + self._validators["hoverinfo"] = v_box.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_box.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_box.HoverlabelValidator() + self._validators["hoveron"] = v_box.HoveronValidator() + self._validators["hovertemplate"] = v_box.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_box.HovertemplatesrcValidator() + self._validators["hovertext"] = v_box.HovertextValidator() + self._validators["hovertextsrc"] = v_box.HovertextsrcValidator() + self._validators["ids"] = v_box.IdsValidator() + self._validators["idssrc"] = v_box.IdssrcValidator() + self._validators["jitter"] = v_box.JitterValidator() + self._validators["legendgroup"] = v_box.LegendgroupValidator() + self._validators["line"] = v_box.LineValidator() + self._validators["marker"] = v_box.MarkerValidator() + self._validators["meta"] = v_box.MetaValidator() + self._validators["metasrc"] = v_box.MetasrcValidator() + self._validators["name"] = v_box.NameValidator() + self._validators["notched"] = v_box.NotchedValidator() + self._validators["notchwidth"] = v_box.NotchwidthValidator() + self._validators["offsetgroup"] = v_box.OffsetgroupValidator() + self._validators["opacity"] = v_box.OpacityValidator() + self._validators["orientation"] = v_box.OrientationValidator() + self._validators["pointpos"] = v_box.PointposValidator() + self._validators["selected"] = v_box.SelectedValidator() + self._validators["selectedpoints"] = v_box.SelectedpointsValidator() + self._validators["showlegend"] = v_box.ShowlegendValidator() + self._validators["stream"] = v_box.StreamValidator() + self._validators["text"] = v_box.TextValidator() + self._validators["textsrc"] = v_box.TextsrcValidator() + self._validators["uid"] = v_box.UidValidator() + self._validators["uirevision"] = v_box.UirevisionValidator() + self._validators["unselected"] = v_box.UnselectedValidator() + self._validators["visible"] = v_box.VisibleValidator() + self._validators["whiskerwidth"] = v_box.WhiskerwidthValidator() + self._validators["width"] = v_box.WidthValidator() + self._validators["x"] = v_box.XValidator() + self._validators["x0"] = v_box.X0Validator() + self._validators["xaxis"] = v_box.XAxisValidator() + self._validators["xcalendar"] = v_box.XcalendarValidator() + self._validators["xsrc"] = v_box.XsrcValidator() + self._validators["y"] = v_box.YValidator() + self._validators["y0"] = v_box.Y0Validator() + self._validators["yaxis"] = v_box.YAxisValidator() + self._validators["ycalendar"] = v_box.YcalendarValidator() + self._validators["ysrc"] = v_box.YsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('alignmentgroup', None) - self['alignmentgroup' - ] = alignmentgroup if alignmentgroup is not None else _v - _v = arg.pop('boxmean', None) - self['boxmean'] = boxmean if boxmean is not None else _v - _v = arg.pop('boxpoints', None) - self['boxpoints'] = boxpoints if boxpoints is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('fillcolor', None) - self['fillcolor'] = fillcolor if fillcolor is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hoveron', None) - self['hoveron'] = hoveron if hoveron is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('jitter', None) - self['jitter'] = jitter if jitter is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('notched', None) - self['notched'] = notched if notched is not None else _v - _v = arg.pop('notchwidth', None) - self['notchwidth'] = notchwidth if notchwidth is not None else _v - _v = arg.pop('offsetgroup', None) - self['offsetgroup'] = offsetgroup if offsetgroup is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('orientation', None) - self['orientation'] = orientation if orientation is not None else _v - _v = arg.pop('pointpos', None) - self['pointpos'] = pointpos if pointpos is not None else _v - _v = arg.pop('selected', None) - self['selected'] = selected if selected is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('unselected', None) - self['unselected'] = unselected if unselected is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('whiskerwidth', None) - self['whiskerwidth'] = whiskerwidth if whiskerwidth is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('x0', None) - self['x0'] = x0 if x0 is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('xcalendar', None) - self['xcalendar'] = xcalendar if xcalendar is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('y0', None) - self['y0'] = y0 if y0 is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v - _v = arg.pop('ycalendar', None) - self['ycalendar'] = ycalendar if ycalendar is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v + _v = arg.pop("alignmentgroup", None) + self["alignmentgroup"] = alignmentgroup if alignmentgroup is not None else _v + _v = arg.pop("boxmean", None) + self["boxmean"] = boxmean if boxmean is not None else _v + _v = arg.pop("boxpoints", None) + self["boxpoints"] = boxpoints if boxpoints is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("fillcolor", None) + self["fillcolor"] = fillcolor if fillcolor is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hoveron", None) + self["hoveron"] = hoveron if hoveron is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("jitter", None) + self["jitter"] = jitter if jitter is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("notched", None) + self["notched"] = notched if notched is not None else _v + _v = arg.pop("notchwidth", None) + self["notchwidth"] = notchwidth if notchwidth is not None else _v + _v = arg.pop("offsetgroup", None) + self["offsetgroup"] = offsetgroup if offsetgroup is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("orientation", None) + self["orientation"] = orientation if orientation is not None else _v + _v = arg.pop("pointpos", None) + self["pointpos"] = pointpos if pointpos is not None else _v + _v = arg.pop("selected", None) + self["selected"] = selected if selected is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("unselected", None) + self["unselected"] = unselected if unselected is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("whiskerwidth", None) + self["whiskerwidth"] = whiskerwidth if whiskerwidth is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("x0", None) + self["x0"] = x0 if x0 is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("xcalendar", None) + self["xcalendar"] = xcalendar if xcalendar is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("y0", None) + self["y0"] = y0 if y0 is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v + _v = arg.pop("ycalendar", None) + self["ycalendar"] = ycalendar if ycalendar is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'box' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='box', val='box' + + self._props["type"] = "box" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="box", val="box" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -82186,11 +81962,11 @@ def base(self): ------- Any|numpy.ndarray """ - return self['base'] + return self["base"] @base.setter def base(self, val): - self['base'] = val + self["base"] = val # basesrc # ------- @@ -82206,11 +81982,11 @@ def basesrc(self): ------- str """ - return self['basesrc'] + return self["basesrc"] @basesrc.setter def basesrc(self, val): - self['basesrc'] = val + self["basesrc"] = val # customdata # ---------- @@ -82229,11 +82005,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -82249,11 +82025,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # dr # -- @@ -82269,11 +82045,11 @@ def dr(self): ------- int|float """ - return self['dr'] + return self["dr"] @dr.setter def dr(self, val): - self['dr'] = val + self["dr"] = val # dtheta # ------ @@ -82291,11 +82067,11 @@ def dtheta(self): ------- int|float """ - return self['dtheta'] + return self["dtheta"] @dtheta.setter def dtheta(self, val): - self['dtheta'] = val + self["dtheta"] = val # hoverinfo # --------- @@ -82317,11 +82093,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -82337,11 +82113,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -82396,11 +82172,11 @@ def hoverlabel(self): ------- plotly.graph_objs.barpolar.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -82432,11 +82208,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -82452,11 +82228,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -82474,11 +82250,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -82494,11 +82270,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -82516,11 +82292,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -82536,11 +82312,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # legendgroup # ----------- @@ -82559,11 +82335,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # marker # ------ @@ -82677,11 +82453,11 @@ def marker(self): ------- plotly.graph_objs.barpolar.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -82705,11 +82481,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -82725,11 +82501,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -82747,11 +82523,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # offset # ------ @@ -82769,11 +82545,11 @@ def offset(self): ------- int|float|numpy.ndarray """ - return self['offset'] + return self["offset"] @offset.setter def offset(self, val): - self['offset'] = val + self["offset"] = val # offsetsrc # --------- @@ -82789,11 +82565,11 @@ def offsetsrc(self): ------- str """ - return self['offsetsrc'] + return self["offsetsrc"] @offsetsrc.setter def offsetsrc(self, val): - self['offsetsrc'] = val + self["offsetsrc"] = val # opacity # ------- @@ -82809,11 +82585,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # r # - @@ -82829,11 +82605,11 @@ def r(self): ------- numpy.ndarray """ - return self['r'] + return self["r"] @r.setter def r(self, val): - self['r'] = val + self["r"] = val # r0 # -- @@ -82850,11 +82626,11 @@ def r0(self): ------- Any """ - return self['r0'] + return self["r0"] @r0.setter def r0(self, val): - self['r0'] = val + self["r0"] = val # rsrc # ---- @@ -82870,11 +82646,11 @@ def rsrc(self): ------- str """ - return self['rsrc'] + return self["rsrc"] @rsrc.setter def rsrc(self, val): - self['rsrc'] = val + self["rsrc"] = val # selected # -------- @@ -82900,11 +82676,11 @@ def selected(self): ------- plotly.graph_objs.barpolar.Selected """ - return self['selected'] + return self["selected"] @selected.setter def selected(self, val): - self['selected'] = val + self["selected"] = val # selectedpoints # -------------- @@ -82924,11 +82700,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -82945,11 +82721,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -82978,11 +82754,11 @@ def stream(self): ------- plotly.graph_objs.barpolar.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # subplot # ------- @@ -83003,11 +82779,11 @@ def subplot(self): ------- str """ - return self['subplot'] + return self["subplot"] @subplot.setter def subplot(self, val): - self['subplot'] = val + self["subplot"] = val # text # ---- @@ -83028,11 +82804,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textsrc # ------- @@ -83048,11 +82824,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # theta # ----- @@ -83068,11 +82844,11 @@ def theta(self): ------- numpy.ndarray """ - return self['theta'] + return self["theta"] @theta.setter def theta(self, val): - self['theta'] = val + self["theta"] = val # theta0 # ------ @@ -83089,11 +82865,11 @@ def theta0(self): ------- Any """ - return self['theta0'] + return self["theta0"] @theta0.setter def theta0(self, val): - self['theta0'] = val + self["theta0"] = val # thetasrc # -------- @@ -83109,11 +82885,11 @@ def thetasrc(self): ------- str """ - return self['thetasrc'] + return self["thetasrc"] @thetasrc.setter def thetasrc(self, val): - self['thetasrc'] = val + self["thetasrc"] = val # thetaunit # --------- @@ -83131,11 +82907,11 @@ def thetaunit(self): ------- Any """ - return self['thetaunit'] + return self["thetaunit"] @thetaunit.setter def thetaunit(self, val): - self['thetaunit'] = val + self["thetaunit"] = val # uid # --- @@ -83153,11 +82929,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -83186,11 +82962,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # unselected # ---------- @@ -83216,11 +82992,11 @@ def unselected(self): ------- plotly.graph_objs.barpolar.Unselected """ - return self['unselected'] + return self["unselected"] @unselected.setter def unselected(self, val): - self['unselected'] = val + self["unselected"] = val # visible # ------- @@ -83239,11 +83015,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -83260,11 +83036,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -83280,23 +83056,23 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -83715,7 +83491,7 @@ def __init__( ------- Barpolar """ - super(Barpolar, self).__init__('barpolar') + super(Barpolar, self).__init__("barpolar") # Validate arg # ------------ @@ -83735,161 +83511,158 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (barpolar as v_barpolar) + from plotly.validators import barpolar as v_barpolar # Initialize validators # --------------------- - self._validators['base'] = v_barpolar.BaseValidator() - self._validators['basesrc'] = v_barpolar.BasesrcValidator() - self._validators['customdata'] = v_barpolar.CustomdataValidator() - self._validators['customdatasrc'] = v_barpolar.CustomdatasrcValidator() - self._validators['dr'] = v_barpolar.DrValidator() - self._validators['dtheta'] = v_barpolar.DthetaValidator() - self._validators['hoverinfo'] = v_barpolar.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_barpolar.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_barpolar.HoverlabelValidator() - self._validators['hovertemplate'] = v_barpolar.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_barpolar.HovertemplatesrcValidator() - self._validators['hovertext'] = v_barpolar.HovertextValidator() - self._validators['hovertextsrc'] = v_barpolar.HovertextsrcValidator() - self._validators['ids'] = v_barpolar.IdsValidator() - self._validators['idssrc'] = v_barpolar.IdssrcValidator() - self._validators['legendgroup'] = v_barpolar.LegendgroupValidator() - self._validators['marker'] = v_barpolar.MarkerValidator() - self._validators['meta'] = v_barpolar.MetaValidator() - self._validators['metasrc'] = v_barpolar.MetasrcValidator() - self._validators['name'] = v_barpolar.NameValidator() - self._validators['offset'] = v_barpolar.OffsetValidator() - self._validators['offsetsrc'] = v_barpolar.OffsetsrcValidator() - self._validators['opacity'] = v_barpolar.OpacityValidator() - self._validators['r'] = v_barpolar.RValidator() - self._validators['r0'] = v_barpolar.R0Validator() - self._validators['rsrc'] = v_barpolar.RsrcValidator() - self._validators['selected'] = v_barpolar.SelectedValidator() - self._validators['selectedpoints' - ] = v_barpolar.SelectedpointsValidator() - self._validators['showlegend'] = v_barpolar.ShowlegendValidator() - self._validators['stream'] = v_barpolar.StreamValidator() - self._validators['subplot'] = v_barpolar.SubplotValidator() - self._validators['text'] = v_barpolar.TextValidator() - self._validators['textsrc'] = v_barpolar.TextsrcValidator() - self._validators['theta'] = v_barpolar.ThetaValidator() - self._validators['theta0'] = v_barpolar.Theta0Validator() - self._validators['thetasrc'] = v_barpolar.ThetasrcValidator() - self._validators['thetaunit'] = v_barpolar.ThetaunitValidator() - self._validators['uid'] = v_barpolar.UidValidator() - self._validators['uirevision'] = v_barpolar.UirevisionValidator() - self._validators['unselected'] = v_barpolar.UnselectedValidator() - self._validators['visible'] = v_barpolar.VisibleValidator() - self._validators['width'] = v_barpolar.WidthValidator() - self._validators['widthsrc'] = v_barpolar.WidthsrcValidator() + self._validators["base"] = v_barpolar.BaseValidator() + self._validators["basesrc"] = v_barpolar.BasesrcValidator() + self._validators["customdata"] = v_barpolar.CustomdataValidator() + self._validators["customdatasrc"] = v_barpolar.CustomdatasrcValidator() + self._validators["dr"] = v_barpolar.DrValidator() + self._validators["dtheta"] = v_barpolar.DthetaValidator() + self._validators["hoverinfo"] = v_barpolar.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_barpolar.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_barpolar.HoverlabelValidator() + self._validators["hovertemplate"] = v_barpolar.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_barpolar.HovertemplatesrcValidator() + self._validators["hovertext"] = v_barpolar.HovertextValidator() + self._validators["hovertextsrc"] = v_barpolar.HovertextsrcValidator() + self._validators["ids"] = v_barpolar.IdsValidator() + self._validators["idssrc"] = v_barpolar.IdssrcValidator() + self._validators["legendgroup"] = v_barpolar.LegendgroupValidator() + self._validators["marker"] = v_barpolar.MarkerValidator() + self._validators["meta"] = v_barpolar.MetaValidator() + self._validators["metasrc"] = v_barpolar.MetasrcValidator() + self._validators["name"] = v_barpolar.NameValidator() + self._validators["offset"] = v_barpolar.OffsetValidator() + self._validators["offsetsrc"] = v_barpolar.OffsetsrcValidator() + self._validators["opacity"] = v_barpolar.OpacityValidator() + self._validators["r"] = v_barpolar.RValidator() + self._validators["r0"] = v_barpolar.R0Validator() + self._validators["rsrc"] = v_barpolar.RsrcValidator() + self._validators["selected"] = v_barpolar.SelectedValidator() + self._validators["selectedpoints"] = v_barpolar.SelectedpointsValidator() + self._validators["showlegend"] = v_barpolar.ShowlegendValidator() + self._validators["stream"] = v_barpolar.StreamValidator() + self._validators["subplot"] = v_barpolar.SubplotValidator() + self._validators["text"] = v_barpolar.TextValidator() + self._validators["textsrc"] = v_barpolar.TextsrcValidator() + self._validators["theta"] = v_barpolar.ThetaValidator() + self._validators["theta0"] = v_barpolar.Theta0Validator() + self._validators["thetasrc"] = v_barpolar.ThetasrcValidator() + self._validators["thetaunit"] = v_barpolar.ThetaunitValidator() + self._validators["uid"] = v_barpolar.UidValidator() + self._validators["uirevision"] = v_barpolar.UirevisionValidator() + self._validators["unselected"] = v_barpolar.UnselectedValidator() + self._validators["visible"] = v_barpolar.VisibleValidator() + self._validators["width"] = v_barpolar.WidthValidator() + self._validators["widthsrc"] = v_barpolar.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('base', None) - self['base'] = base if base is not None else _v - _v = arg.pop('basesrc', None) - self['basesrc'] = basesrc if basesrc is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('dr', None) - self['dr'] = dr if dr is not None else _v - _v = arg.pop('dtheta', None) - self['dtheta'] = dtheta if dtheta is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('offset', None) - self['offset'] = offset if offset is not None else _v - _v = arg.pop('offsetsrc', None) - self['offsetsrc'] = offsetsrc if offsetsrc is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('r', None) - self['r'] = r if r is not None else _v - _v = arg.pop('r0', None) - self['r0'] = r0 if r0 is not None else _v - _v = arg.pop('rsrc', None) - self['rsrc'] = rsrc if rsrc is not None else _v - _v = arg.pop('selected', None) - self['selected'] = selected if selected is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('subplot', None) - self['subplot'] = subplot if subplot is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('theta', None) - self['theta'] = theta if theta is not None else _v - _v = arg.pop('theta0', None) - self['theta0'] = theta0 if theta0 is not None else _v - _v = arg.pop('thetasrc', None) - self['thetasrc'] = thetasrc if thetasrc is not None else _v - _v = arg.pop('thetaunit', None) - self['thetaunit'] = thetaunit if thetaunit is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('unselected', None) - self['unselected'] = unselected if unselected is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("base", None) + self["base"] = base if base is not None else _v + _v = arg.pop("basesrc", None) + self["basesrc"] = basesrc if basesrc is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("dr", None) + self["dr"] = dr if dr is not None else _v + _v = arg.pop("dtheta", None) + self["dtheta"] = dtheta if dtheta is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("offset", None) + self["offset"] = offset if offset is not None else _v + _v = arg.pop("offsetsrc", None) + self["offsetsrc"] = offsetsrc if offsetsrc is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("r", None) + self["r"] = r if r is not None else _v + _v = arg.pop("r0", None) + self["r0"] = r0 if r0 is not None else _v + _v = arg.pop("rsrc", None) + self["rsrc"] = rsrc if rsrc is not None else _v + _v = arg.pop("selected", None) + self["selected"] = selected if selected is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("subplot", None) + self["subplot"] = subplot if subplot is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("theta", None) + self["theta"] = theta if theta is not None else _v + _v = arg.pop("theta0", None) + self["theta0"] = theta0 if theta0 is not None else _v + _v = arg.pop("thetasrc", None) + self["thetasrc"] = thetasrc if thetasrc is not None else _v + _v = arg.pop("thetaunit", None) + self["thetaunit"] = thetaunit if thetaunit is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("unselected", None) + self["unselected"] = unselected if unselected is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'barpolar' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='barpolar', val='barpolar' + + self._props["type"] = "barpolar" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="barpolar", val="barpolar" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -83923,11 +83696,11 @@ def alignmentgroup(self): ------- str """ - return self['alignmentgroup'] + return self["alignmentgroup"] @alignmentgroup.setter def alignmentgroup(self, val): - self['alignmentgroup'] = val + self["alignmentgroup"] = val # base # ---- @@ -83944,11 +83717,11 @@ def base(self): ------- Any|numpy.ndarray """ - return self['base'] + return self["base"] @base.setter def base(self, val): - self['base'] = val + self["base"] = val # basesrc # ------- @@ -83964,11 +83737,11 @@ def basesrc(self): ------- str """ - return self['basesrc'] + return self["basesrc"] @basesrc.setter def basesrc(self, val): - self['basesrc'] = val + self["basesrc"] = val # cliponaxis # ---------- @@ -83987,11 +83760,11 @@ def cliponaxis(self): ------- bool """ - return self['cliponaxis'] + return self["cliponaxis"] @cliponaxis.setter def cliponaxis(self, val): - self['cliponaxis'] = val + self["cliponaxis"] = val # constraintext # ------------- @@ -84009,11 +83782,11 @@ def constraintext(self): ------- Any """ - return self['constraintext'] + return self["constraintext"] @constraintext.setter def constraintext(self, val): - self['constraintext'] = val + self["constraintext"] = val # customdata # ---------- @@ -84032,11 +83805,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -84052,11 +83825,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # dx # -- @@ -84072,11 +83845,11 @@ def dx(self): ------- int|float """ - return self['dx'] + return self["dx"] @dx.setter def dx(self, val): - self['dx'] = val + self["dx"] = val # dy # -- @@ -84092,11 +83865,11 @@ def dy(self): ------- int|float """ - return self['dy'] + return self["dy"] @dy.setter def dy(self, val): - self['dy'] = val + self["dy"] = val # error_x # ------- @@ -84173,11 +83946,11 @@ def error_x(self): ------- plotly.graph_objs.bar.ErrorX """ - return self['error_x'] + return self["error_x"] @error_x.setter def error_x(self, val): - self['error_x'] = val + self["error_x"] = val # error_y # ------- @@ -84252,11 +84025,11 @@ def error_y(self): ------- plotly.graph_objs.bar.ErrorY """ - return self['error_y'] + return self["error_y"] @error_y.setter def error_y(self, val): - self['error_y'] = val + self["error_y"] = val # hoverinfo # --------- @@ -84278,11 +84051,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -84298,11 +84071,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -84357,11 +84130,11 @@ def hoverlabel(self): ------- plotly.graph_objs.bar.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -84393,11 +84166,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -84413,11 +84186,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # hovertext # --------- @@ -84439,11 +84212,11 @@ def hovertext(self): ------- str|numpy.ndarray """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # hovertextsrc # ------------ @@ -84459,11 +84232,11 @@ def hovertextsrc(self): ------- str """ - return self['hovertextsrc'] + return self["hovertextsrc"] @hovertextsrc.setter def hovertextsrc(self, val): - self['hovertextsrc'] = val + self["hovertextsrc"] = val # ids # --- @@ -84481,11 +84254,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -84501,11 +84274,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # insidetextanchor # ---------------- @@ -84523,11 +84296,11 @@ def insidetextanchor(self): ------- Any """ - return self['insidetextanchor'] + return self["insidetextanchor"] @insidetextanchor.setter def insidetextanchor(self, val): - self['insidetextanchor'] = val + self["insidetextanchor"] = val # insidetextfont # -------------- @@ -84578,11 +84351,11 @@ def insidetextfont(self): ------- plotly.graph_objs.bar.Insidetextfont """ - return self['insidetextfont'] + return self["insidetextfont"] @insidetextfont.setter def insidetextfont(self, val): - self['insidetextfont'] = val + self["insidetextfont"] = val # legendgroup # ----------- @@ -84601,11 +84374,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # marker # ------ @@ -84719,11 +84492,11 @@ def marker(self): ------- plotly.graph_objs.bar.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -84747,11 +84520,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -84767,11 +84540,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -84789,11 +84562,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # offset # ------ @@ -84812,11 +84585,11 @@ def offset(self): ------- int|float|numpy.ndarray """ - return self['offset'] + return self["offset"] @offset.setter def offset(self, val): - self['offset'] = val + self["offset"] = val # offsetgroup # ----------- @@ -84835,11 +84608,11 @@ def offsetgroup(self): ------- str """ - return self['offsetgroup'] + return self["offsetgroup"] @offsetgroup.setter def offsetgroup(self, val): - self['offsetgroup'] = val + self["offsetgroup"] = val # offsetsrc # --------- @@ -84855,11 +84628,11 @@ def offsetsrc(self): ------- str """ - return self['offsetsrc'] + return self["offsetsrc"] @offsetsrc.setter def offsetsrc(self, val): - self['offsetsrc'] = val + self["offsetsrc"] = val # opacity # ------- @@ -84875,11 +84648,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # orientation # ----------- @@ -84897,11 +84670,11 @@ def orientation(self): ------- Any """ - return self['orientation'] + return self["orientation"] @orientation.setter def orientation(self, val): - self['orientation'] = val + self["orientation"] = val # outsidetextfont # --------------- @@ -84952,11 +84725,11 @@ def outsidetextfont(self): ------- plotly.graph_objs.bar.Outsidetextfont """ - return self['outsidetextfont'] + return self["outsidetextfont"] @outsidetextfont.setter def outsidetextfont(self, val): - self['outsidetextfont'] = val + self["outsidetextfont"] = val # r # - @@ -84974,11 +84747,11 @@ def r(self): ------- numpy.ndarray """ - return self['r'] + return self["r"] @r.setter def r(self, val): - self['r'] = val + self["r"] = val # rsrc # ---- @@ -84994,11 +84767,11 @@ def rsrc(self): ------- str """ - return self['rsrc'] + return self["rsrc"] @rsrc.setter def rsrc(self, val): - self['rsrc'] = val + self["rsrc"] = val # selected # -------- @@ -85024,11 +84797,11 @@ def selected(self): ------- plotly.graph_objs.bar.Selected """ - return self['selected'] + return self["selected"] @selected.setter def selected(self, val): - self['selected'] = val + self["selected"] = val # selectedpoints # -------------- @@ -85048,11 +84821,11 @@ def selectedpoints(self): ------- Any """ - return self['selectedpoints'] + return self["selectedpoints"] @selectedpoints.setter def selectedpoints(self, val): - self['selectedpoints'] = val + self["selectedpoints"] = val # showlegend # ---------- @@ -85069,11 +84842,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -85102,11 +84875,11 @@ def stream(self): ------- plotly.graph_objs.bar.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # t # - @@ -85124,11 +84897,11 @@ def t(self): ------- numpy.ndarray """ - return self['t'] + return self["t"] @t.setter def t(self, val): - self['t'] = val + self["t"] = val # text # ---- @@ -85151,11 +84924,11 @@ def text(self): ------- str|numpy.ndarray """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textangle # --------- @@ -85176,11 +84949,11 @@ def textangle(self): ------- int|float """ - return self['textangle'] + return self["textangle"] @textangle.setter def textangle(self, val): - self['textangle'] = val + self["textangle"] = val # textfont # -------- @@ -85231,11 +85004,11 @@ def textfont(self): ------- plotly.graph_objs.bar.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # textposition # ------------ @@ -85259,11 +85032,11 @@ def textposition(self): ------- Any|numpy.ndarray """ - return self['textposition'] + return self["textposition"] @textposition.setter def textposition(self, val): - self['textposition'] = val + self["textposition"] = val # textpositionsrc # --------------- @@ -85279,11 +85052,11 @@ def textpositionsrc(self): ------- str """ - return self['textpositionsrc'] + return self["textpositionsrc"] @textpositionsrc.setter def textpositionsrc(self, val): - self['textpositionsrc'] = val + self["textpositionsrc"] = val # textsrc # ------- @@ -85299,11 +85072,11 @@ def textsrc(self): ------- str """ - return self['textsrc'] + return self["textsrc"] @textsrc.setter def textsrc(self, val): - self['textsrc'] = val + self["textsrc"] = val # tsrc # ---- @@ -85319,11 +85092,11 @@ def tsrc(self): ------- str """ - return self['tsrc'] + return self["tsrc"] @tsrc.setter def tsrc(self, val): - self['tsrc'] = val + self["tsrc"] = val # uid # --- @@ -85341,11 +85114,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -85374,11 +85147,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # unselected # ---------- @@ -85404,11 +85177,11 @@ def unselected(self): ------- plotly.graph_objs.bar.Unselected """ - return self['unselected'] + return self["unselected"] @unselected.setter def unselected(self, val): - self['unselected'] = val + self["unselected"] = val # visible # ------- @@ -85427,11 +85200,11 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -85448,11 +85221,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -85468,11 +85241,11 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # x # - @@ -85488,11 +85261,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # x0 # -- @@ -85509,11 +85282,11 @@ def x0(self): ------- Any """ - return self['x0'] + return self["x0"] @x0.setter def x0(self, val): - self['x0'] = val + self["x0"] = val # xaxis # ----- @@ -85534,11 +85307,11 @@ def xaxis(self): ------- str """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # xcalendar # --------- @@ -85558,11 +85331,11 @@ def xcalendar(self): ------- Any """ - return self['xcalendar'] + return self["xcalendar"] @xcalendar.setter def xcalendar(self, val): - self['xcalendar'] = val + self["xcalendar"] = val # xsrc # ---- @@ -85578,11 +85351,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -85598,11 +85371,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # y0 # -- @@ -85619,11 +85392,11 @@ def y0(self): ------- Any """ - return self['y0'] + return self["y0"] @y0.setter def y0(self, val): - self['y0'] = val + self["y0"] = val # yaxis # ----- @@ -85644,11 +85417,11 @@ def yaxis(self): ------- str """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # ycalendar # --------- @@ -85668,11 +85441,11 @@ def ycalendar(self): ------- Any """ - return self['ycalendar'] + return self["ycalendar"] @ycalendar.setter def ycalendar(self, val): - self['ycalendar'] = val + self["ycalendar"] = val # ysrc # ---- @@ -85688,23 +85461,23 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -86307,7 +86080,7 @@ def __init__( ------- Bar """ - super(Bar, self).__init__('bar') + super(Bar, self).__init__("bar") # Validate arg # ------------ @@ -86327,227 +86100,220 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (bar as v_bar) + from plotly.validators import bar as v_bar # Initialize validators # --------------------- - self._validators['alignmentgroup'] = v_bar.AlignmentgroupValidator() - self._validators['base'] = v_bar.BaseValidator() - self._validators['basesrc'] = v_bar.BasesrcValidator() - self._validators['cliponaxis'] = v_bar.CliponaxisValidator() - self._validators['constraintext'] = v_bar.ConstraintextValidator() - self._validators['customdata'] = v_bar.CustomdataValidator() - self._validators['customdatasrc'] = v_bar.CustomdatasrcValidator() - self._validators['dx'] = v_bar.DxValidator() - self._validators['dy'] = v_bar.DyValidator() - self._validators['error_x'] = v_bar.ErrorXValidator() - self._validators['error_y'] = v_bar.ErrorYValidator() - self._validators['hoverinfo'] = v_bar.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_bar.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_bar.HoverlabelValidator() - self._validators['hovertemplate'] = v_bar.HovertemplateValidator() - self._validators['hovertemplatesrc'] = v_bar.HovertemplatesrcValidator( - ) - self._validators['hovertext'] = v_bar.HovertextValidator() - self._validators['hovertextsrc'] = v_bar.HovertextsrcValidator() - self._validators['ids'] = v_bar.IdsValidator() - self._validators['idssrc'] = v_bar.IdssrcValidator() - self._validators['insidetextanchor'] = v_bar.InsidetextanchorValidator( - ) - self._validators['insidetextfont'] = v_bar.InsidetextfontValidator() - self._validators['legendgroup'] = v_bar.LegendgroupValidator() - self._validators['marker'] = v_bar.MarkerValidator() - self._validators['meta'] = v_bar.MetaValidator() - self._validators['metasrc'] = v_bar.MetasrcValidator() - self._validators['name'] = v_bar.NameValidator() - self._validators['offset'] = v_bar.OffsetValidator() - self._validators['offsetgroup'] = v_bar.OffsetgroupValidator() - self._validators['offsetsrc'] = v_bar.OffsetsrcValidator() - self._validators['opacity'] = v_bar.OpacityValidator() - self._validators['orientation'] = v_bar.OrientationValidator() - self._validators['outsidetextfont'] = v_bar.OutsidetextfontValidator() - self._validators['r'] = v_bar.RValidator() - self._validators['rsrc'] = v_bar.RsrcValidator() - self._validators['selected'] = v_bar.SelectedValidator() - self._validators['selectedpoints'] = v_bar.SelectedpointsValidator() - self._validators['showlegend'] = v_bar.ShowlegendValidator() - self._validators['stream'] = v_bar.StreamValidator() - self._validators['t'] = v_bar.TValidator() - self._validators['text'] = v_bar.TextValidator() - self._validators['textangle'] = v_bar.TextangleValidator() - self._validators['textfont'] = v_bar.TextfontValidator() - self._validators['textposition'] = v_bar.TextpositionValidator() - self._validators['textpositionsrc'] = v_bar.TextpositionsrcValidator() - self._validators['textsrc'] = v_bar.TextsrcValidator() - self._validators['tsrc'] = v_bar.TsrcValidator() - self._validators['uid'] = v_bar.UidValidator() - self._validators['uirevision'] = v_bar.UirevisionValidator() - self._validators['unselected'] = v_bar.UnselectedValidator() - self._validators['visible'] = v_bar.VisibleValidator() - self._validators['width'] = v_bar.WidthValidator() - self._validators['widthsrc'] = v_bar.WidthsrcValidator() - self._validators['x'] = v_bar.XValidator() - self._validators['x0'] = v_bar.X0Validator() - self._validators['xaxis'] = v_bar.XAxisValidator() - self._validators['xcalendar'] = v_bar.XcalendarValidator() - self._validators['xsrc'] = v_bar.XsrcValidator() - self._validators['y'] = v_bar.YValidator() - self._validators['y0'] = v_bar.Y0Validator() - self._validators['yaxis'] = v_bar.YAxisValidator() - self._validators['ycalendar'] = v_bar.YcalendarValidator() - self._validators['ysrc'] = v_bar.YsrcValidator() + self._validators["alignmentgroup"] = v_bar.AlignmentgroupValidator() + self._validators["base"] = v_bar.BaseValidator() + self._validators["basesrc"] = v_bar.BasesrcValidator() + self._validators["cliponaxis"] = v_bar.CliponaxisValidator() + self._validators["constraintext"] = v_bar.ConstraintextValidator() + self._validators["customdata"] = v_bar.CustomdataValidator() + self._validators["customdatasrc"] = v_bar.CustomdatasrcValidator() + self._validators["dx"] = v_bar.DxValidator() + self._validators["dy"] = v_bar.DyValidator() + self._validators["error_x"] = v_bar.ErrorXValidator() + self._validators["error_y"] = v_bar.ErrorYValidator() + self._validators["hoverinfo"] = v_bar.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_bar.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_bar.HoverlabelValidator() + self._validators["hovertemplate"] = v_bar.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_bar.HovertemplatesrcValidator() + self._validators["hovertext"] = v_bar.HovertextValidator() + self._validators["hovertextsrc"] = v_bar.HovertextsrcValidator() + self._validators["ids"] = v_bar.IdsValidator() + self._validators["idssrc"] = v_bar.IdssrcValidator() + self._validators["insidetextanchor"] = v_bar.InsidetextanchorValidator() + self._validators["insidetextfont"] = v_bar.InsidetextfontValidator() + self._validators["legendgroup"] = v_bar.LegendgroupValidator() + self._validators["marker"] = v_bar.MarkerValidator() + self._validators["meta"] = v_bar.MetaValidator() + self._validators["metasrc"] = v_bar.MetasrcValidator() + self._validators["name"] = v_bar.NameValidator() + self._validators["offset"] = v_bar.OffsetValidator() + self._validators["offsetgroup"] = v_bar.OffsetgroupValidator() + self._validators["offsetsrc"] = v_bar.OffsetsrcValidator() + self._validators["opacity"] = v_bar.OpacityValidator() + self._validators["orientation"] = v_bar.OrientationValidator() + self._validators["outsidetextfont"] = v_bar.OutsidetextfontValidator() + self._validators["r"] = v_bar.RValidator() + self._validators["rsrc"] = v_bar.RsrcValidator() + self._validators["selected"] = v_bar.SelectedValidator() + self._validators["selectedpoints"] = v_bar.SelectedpointsValidator() + self._validators["showlegend"] = v_bar.ShowlegendValidator() + self._validators["stream"] = v_bar.StreamValidator() + self._validators["t"] = v_bar.TValidator() + self._validators["text"] = v_bar.TextValidator() + self._validators["textangle"] = v_bar.TextangleValidator() + self._validators["textfont"] = v_bar.TextfontValidator() + self._validators["textposition"] = v_bar.TextpositionValidator() + self._validators["textpositionsrc"] = v_bar.TextpositionsrcValidator() + self._validators["textsrc"] = v_bar.TextsrcValidator() + self._validators["tsrc"] = v_bar.TsrcValidator() + self._validators["uid"] = v_bar.UidValidator() + self._validators["uirevision"] = v_bar.UirevisionValidator() + self._validators["unselected"] = v_bar.UnselectedValidator() + self._validators["visible"] = v_bar.VisibleValidator() + self._validators["width"] = v_bar.WidthValidator() + self._validators["widthsrc"] = v_bar.WidthsrcValidator() + self._validators["x"] = v_bar.XValidator() + self._validators["x0"] = v_bar.X0Validator() + self._validators["xaxis"] = v_bar.XAxisValidator() + self._validators["xcalendar"] = v_bar.XcalendarValidator() + self._validators["xsrc"] = v_bar.XsrcValidator() + self._validators["y"] = v_bar.YValidator() + self._validators["y0"] = v_bar.Y0Validator() + self._validators["yaxis"] = v_bar.YAxisValidator() + self._validators["ycalendar"] = v_bar.YcalendarValidator() + self._validators["ysrc"] = v_bar.YsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('alignmentgroup', None) - self['alignmentgroup' - ] = alignmentgroup if alignmentgroup is not None else _v - _v = arg.pop('base', None) - self['base'] = base if base is not None else _v - _v = arg.pop('basesrc', None) - self['basesrc'] = basesrc if basesrc is not None else _v - _v = arg.pop('cliponaxis', None) - self['cliponaxis'] = cliponaxis if cliponaxis is not None else _v - _v = arg.pop('constraintext', None) - self['constraintext' - ] = constraintext if constraintext is not None else _v - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('dx', None) - self['dx'] = dx if dx is not None else _v - _v = arg.pop('dy', None) - self['dy'] = dy if dy is not None else _v - _v = arg.pop('error_x', None) - self['error_x'] = error_x if error_x is not None else _v - _v = arg.pop('error_y', None) - self['error_y'] = error_y if error_y is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('hovertextsrc', None) - self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('insidetextanchor', None) - self['insidetextanchor' - ] = insidetextanchor if insidetextanchor is not None else _v - _v = arg.pop('insidetextfont', None) - self['insidetextfont' - ] = insidetextfont if insidetextfont is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('offset', None) - self['offset'] = offset if offset is not None else _v - _v = arg.pop('offsetgroup', None) - self['offsetgroup'] = offsetgroup if offsetgroup is not None else _v - _v = arg.pop('offsetsrc', None) - self['offsetsrc'] = offsetsrc if offsetsrc is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('orientation', None) - self['orientation'] = orientation if orientation is not None else _v - _v = arg.pop('outsidetextfont', None) - self['outsidetextfont' - ] = outsidetextfont if outsidetextfont is not None else _v - _v = arg.pop('r', None) - self['r'] = r if r is not None else _v - _v = arg.pop('rsrc', None) - self['rsrc'] = rsrc if rsrc is not None else _v - _v = arg.pop('selected', None) - self['selected'] = selected if selected is not None else _v - _v = arg.pop('selectedpoints', None) - self['selectedpoints' - ] = selectedpoints if selectedpoints is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('t', None) - self['t'] = t if t is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textangle', None) - self['textangle'] = textangle if textangle is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v - _v = arg.pop('textposition', None) - self['textposition'] = textposition if textposition is not None else _v - _v = arg.pop('textpositionsrc', None) - self['textpositionsrc' - ] = textpositionsrc if textpositionsrc is not None else _v - _v = arg.pop('textsrc', None) - self['textsrc'] = textsrc if textsrc is not None else _v - _v = arg.pop('tsrc', None) - self['tsrc'] = tsrc if tsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('unselected', None) - self['unselected'] = unselected if unselected is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('x0', None) - self['x0'] = x0 if x0 is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('xcalendar', None) - self['xcalendar'] = xcalendar if xcalendar is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('y0', None) - self['y0'] = y0 if y0 is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v - _v = arg.pop('ycalendar', None) - self['ycalendar'] = ycalendar if ycalendar is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v + _v = arg.pop("alignmentgroup", None) + self["alignmentgroup"] = alignmentgroup if alignmentgroup is not None else _v + _v = arg.pop("base", None) + self["base"] = base if base is not None else _v + _v = arg.pop("basesrc", None) + self["basesrc"] = basesrc if basesrc is not None else _v + _v = arg.pop("cliponaxis", None) + self["cliponaxis"] = cliponaxis if cliponaxis is not None else _v + _v = arg.pop("constraintext", None) + self["constraintext"] = constraintext if constraintext is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("dx", None) + self["dx"] = dx if dx is not None else _v + _v = arg.pop("dy", None) + self["dy"] = dy if dy is not None else _v + _v = arg.pop("error_x", None) + self["error_x"] = error_x if error_x is not None else _v + _v = arg.pop("error_y", None) + self["error_y"] = error_y if error_y is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("hovertextsrc", None) + self["hovertextsrc"] = hovertextsrc if hovertextsrc is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("insidetextanchor", None) + self["insidetextanchor"] = ( + insidetextanchor if insidetextanchor is not None else _v + ) + _v = arg.pop("insidetextfont", None) + self["insidetextfont"] = insidetextfont if insidetextfont is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("offset", None) + self["offset"] = offset if offset is not None else _v + _v = arg.pop("offsetgroup", None) + self["offsetgroup"] = offsetgroup if offsetgroup is not None else _v + _v = arg.pop("offsetsrc", None) + self["offsetsrc"] = offsetsrc if offsetsrc is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("orientation", None) + self["orientation"] = orientation if orientation is not None else _v + _v = arg.pop("outsidetextfont", None) + self["outsidetextfont"] = outsidetextfont if outsidetextfont is not None else _v + _v = arg.pop("r", None) + self["r"] = r if r is not None else _v + _v = arg.pop("rsrc", None) + self["rsrc"] = rsrc if rsrc is not None else _v + _v = arg.pop("selected", None) + self["selected"] = selected if selected is not None else _v + _v = arg.pop("selectedpoints", None) + self["selectedpoints"] = selectedpoints if selectedpoints is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("t", None) + self["t"] = t if t is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textangle", None) + self["textangle"] = textangle if textangle is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v + _v = arg.pop("textposition", None) + self["textposition"] = textposition if textposition is not None else _v + _v = arg.pop("textpositionsrc", None) + self["textpositionsrc"] = textpositionsrc if textpositionsrc is not None else _v + _v = arg.pop("textsrc", None) + self["textsrc"] = textsrc if textsrc is not None else _v + _v = arg.pop("tsrc", None) + self["tsrc"] = tsrc if tsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("unselected", None) + self["unselected"] = unselected if unselected is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("x0", None) + self["x0"] = x0 if x0 is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("xcalendar", None) + self["xcalendar"] = xcalendar if xcalendar is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("y0", None) + self["y0"] = y0 if y0 is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v + _v = arg.pop("ycalendar", None) + self["ycalendar"] = ycalendar if ycalendar is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'bar' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='bar', val='bar' + + self._props["type"] = "bar" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="bar", val="bar" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -86581,11 +86347,11 @@ def customdata(self): ------- numpy.ndarray """ - return self['customdata'] + return self["customdata"] @customdata.setter def customdata(self, val): - self['customdata'] = val + self["customdata"] = val # customdatasrc # ------------- @@ -86601,11 +86367,11 @@ def customdatasrc(self): ------- str """ - return self['customdatasrc'] + return self["customdatasrc"] @customdatasrc.setter def customdatasrc(self, val): - self['customdatasrc'] = val + self["customdatasrc"] = val # hoverinfo # --------- @@ -86627,11 +86393,11 @@ def hoverinfo(self): ------- Any|numpy.ndarray """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverinfosrc # ------------ @@ -86647,11 +86413,11 @@ def hoverinfosrc(self): ------- str """ - return self['hoverinfosrc'] + return self["hoverinfosrc"] @hoverinfosrc.setter def hoverinfosrc(self, val): - self['hoverinfosrc'] = val + self["hoverinfosrc"] = val # hoverlabel # ---------- @@ -86706,11 +86472,11 @@ def hoverlabel(self): ------- plotly.graph_objs.area.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # ids # --- @@ -86728,11 +86494,11 @@ def ids(self): ------- numpy.ndarray """ - return self['ids'] + return self["ids"] @ids.setter def ids(self, val): - self['ids'] = val + self["ids"] = val # idssrc # ------ @@ -86748,11 +86514,11 @@ def idssrc(self): ------- str """ - return self['idssrc'] + return self["idssrc"] @idssrc.setter def idssrc(self, val): - self['idssrc'] = val + self["idssrc"] = val # legendgroup # ----------- @@ -86771,11 +86537,11 @@ def legendgroup(self): ------- str """ - return self['legendgroup'] + return self["legendgroup"] @legendgroup.setter def legendgroup(self, val): - self['legendgroup'] = val + self["legendgroup"] = val # marker # ------ @@ -86831,11 +86597,11 @@ def marker(self): ------- plotly.graph_objs.area.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # meta # ---- @@ -86859,11 +86625,11 @@ def meta(self): ------- Any|numpy.ndarray """ - return self['meta'] + return self["meta"] @meta.setter def meta(self, val): - self['meta'] = val + self["meta"] = val # metasrc # ------- @@ -86879,11 +86645,11 @@ def metasrc(self): ------- str """ - return self['metasrc'] + return self["metasrc"] @metasrc.setter def metasrc(self, val): - self['metasrc'] = val + self["metasrc"] = val # name # ---- @@ -86901,11 +86667,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -86921,11 +86687,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # r # - @@ -86943,11 +86709,11 @@ def r(self): ------- numpy.ndarray """ - return self['r'] + return self["r"] @r.setter def r(self, val): - self['r'] = val + self["r"] = val # rsrc # ---- @@ -86963,11 +86729,11 @@ def rsrc(self): ------- str """ - return self['rsrc'] + return self["rsrc"] @rsrc.setter def rsrc(self, val): - self['rsrc'] = val + self["rsrc"] = val # showlegend # ---------- @@ -86984,11 +86750,11 @@ def showlegend(self): ------- bool """ - return self['showlegend'] + return self["showlegend"] @showlegend.setter def showlegend(self, val): - self['showlegend'] = val + self["showlegend"] = val # stream # ------ @@ -87017,11 +86783,11 @@ def stream(self): ------- plotly.graph_objs.area.Stream """ - return self['stream'] + return self["stream"] @stream.setter def stream(self, val): - self['stream'] = val + self["stream"] = val # t # - @@ -87039,11 +86805,11 @@ def t(self): ------- numpy.ndarray """ - return self['t'] + return self["t"] @t.setter def t(self, val): - self['t'] = val + self["t"] = val # tsrc # ---- @@ -87059,11 +86825,11 @@ def tsrc(self): ------- str """ - return self['tsrc'] + return self["tsrc"] @tsrc.setter def tsrc(self, val): - self['tsrc'] = val + self["tsrc"] = val # uid # --- @@ -87081,11 +86847,11 @@ def uid(self): ------- str """ - return self['uid'] + return self["uid"] @uid.setter def uid(self, val): - self['uid'] = val + self["uid"] = val # uirevision # ---------- @@ -87114,11 +86880,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -87137,23 +86903,23 @@ def visible(self): ------- Any """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # type # ---- @property def type(self): - return self._props['type'] + return self._props["type"] # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -87392,7 +87158,7 @@ def __init__( ------- Area """ - super(Area, self).__init__('area') + super(Area, self).__init__("area") # Validate arg # ------------ @@ -87412,93 +87178,93 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (area as v_area) + from plotly.validators import area as v_area # Initialize validators # --------------------- - self._validators['customdata'] = v_area.CustomdataValidator() - self._validators['customdatasrc'] = v_area.CustomdatasrcValidator() - self._validators['hoverinfo'] = v_area.HoverinfoValidator() - self._validators['hoverinfosrc'] = v_area.HoverinfosrcValidator() - self._validators['hoverlabel'] = v_area.HoverlabelValidator() - self._validators['ids'] = v_area.IdsValidator() - self._validators['idssrc'] = v_area.IdssrcValidator() - self._validators['legendgroup'] = v_area.LegendgroupValidator() - self._validators['marker'] = v_area.MarkerValidator() - self._validators['meta'] = v_area.MetaValidator() - self._validators['metasrc'] = v_area.MetasrcValidator() - self._validators['name'] = v_area.NameValidator() - self._validators['opacity'] = v_area.OpacityValidator() - self._validators['r'] = v_area.RValidator() - self._validators['rsrc'] = v_area.RsrcValidator() - self._validators['showlegend'] = v_area.ShowlegendValidator() - self._validators['stream'] = v_area.StreamValidator() - self._validators['t'] = v_area.TValidator() - self._validators['tsrc'] = v_area.TsrcValidator() - self._validators['uid'] = v_area.UidValidator() - self._validators['uirevision'] = v_area.UirevisionValidator() - self._validators['visible'] = v_area.VisibleValidator() + self._validators["customdata"] = v_area.CustomdataValidator() + self._validators["customdatasrc"] = v_area.CustomdatasrcValidator() + self._validators["hoverinfo"] = v_area.HoverinfoValidator() + self._validators["hoverinfosrc"] = v_area.HoverinfosrcValidator() + self._validators["hoverlabel"] = v_area.HoverlabelValidator() + self._validators["ids"] = v_area.IdsValidator() + self._validators["idssrc"] = v_area.IdssrcValidator() + self._validators["legendgroup"] = v_area.LegendgroupValidator() + self._validators["marker"] = v_area.MarkerValidator() + self._validators["meta"] = v_area.MetaValidator() + self._validators["metasrc"] = v_area.MetasrcValidator() + self._validators["name"] = v_area.NameValidator() + self._validators["opacity"] = v_area.OpacityValidator() + self._validators["r"] = v_area.RValidator() + self._validators["rsrc"] = v_area.RsrcValidator() + self._validators["showlegend"] = v_area.ShowlegendValidator() + self._validators["stream"] = v_area.StreamValidator() + self._validators["t"] = v_area.TValidator() + self._validators["tsrc"] = v_area.TsrcValidator() + self._validators["uid"] = v_area.UidValidator() + self._validators["uirevision"] = v_area.UirevisionValidator() + self._validators["visible"] = v_area.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('customdata', None) - self['customdata'] = customdata if customdata is not None else _v - _v = arg.pop('customdatasrc', None) - self['customdatasrc' - ] = customdatasrc if customdatasrc is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverinfosrc', None) - self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('ids', None) - self['ids'] = ids if ids is not None else _v - _v = arg.pop('idssrc', None) - self['idssrc'] = idssrc if idssrc is not None else _v - _v = arg.pop('legendgroup', None) - self['legendgroup'] = legendgroup if legendgroup is not None else _v - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('meta', None) - self['meta'] = meta if meta is not None else _v - _v = arg.pop('metasrc', None) - self['metasrc'] = metasrc if metasrc is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('r', None) - self['r'] = r if r is not None else _v - _v = arg.pop('rsrc', None) - self['rsrc'] = rsrc if rsrc is not None else _v - _v = arg.pop('showlegend', None) - self['showlegend'] = showlegend if showlegend is not None else _v - _v = arg.pop('stream', None) - self['stream'] = stream if stream is not None else _v - _v = arg.pop('t', None) - self['t'] = t if t is not None else _v - _v = arg.pop('tsrc', None) - self['tsrc'] = tsrc if tsrc is not None else _v - _v = arg.pop('uid', None) - self['uid'] = uid if uid is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("customdata", None) + self["customdata"] = customdata if customdata is not None else _v + _v = arg.pop("customdatasrc", None) + self["customdatasrc"] = customdatasrc if customdatasrc is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverinfosrc", None) + self["hoverinfosrc"] = hoverinfosrc if hoverinfosrc is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("ids", None) + self["ids"] = ids if ids is not None else _v + _v = arg.pop("idssrc", None) + self["idssrc"] = idssrc if idssrc is not None else _v + _v = arg.pop("legendgroup", None) + self["legendgroup"] = legendgroup if legendgroup is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("meta", None) + self["meta"] = meta if meta is not None else _v + _v = arg.pop("metasrc", None) + self["metasrc"] = metasrc if metasrc is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("r", None) + self["r"] = r if r is not None else _v + _v = arg.pop("rsrc", None) + self["rsrc"] = rsrc if rsrc is not None else _v + _v = arg.pop("showlegend", None) + self["showlegend"] = showlegend if showlegend is not None else _v + _v = arg.pop("stream", None) + self["stream"] = stream if stream is not None else _v + _v = arg.pop("t", None) + self["t"] = t if t is not None else _v + _v = arg.pop("tsrc", None) + self["tsrc"] = tsrc if tsrc is not None else _v + _v = arg.pop("uid", None) + self["uid"] = uid if uid is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Read-only literals # ------------------ from _plotly_utils.basevalidators import LiteralValidator - self._props['type'] = 'area' - self._validators['type'] = LiteralValidator( - plotly_name='type', parent_name='area', val='area' + + self._props["type"] = "area" + self._validators["type"] = LiteralValidator( + plotly_name="type", parent_name="area", val="area" ) - arg.pop('type', None) + arg.pop("type", None) # Process unknown kwargs # ---------------------- @@ -87533,11 +87299,11 @@ def baseframe(self): ------- str """ - return self['baseframe'] + return self["baseframe"] @baseframe.setter def baseframe(self, val): - self['baseframe'] = val + self["baseframe"] = val # data # ---- @@ -87551,11 +87317,11 @@ def data(self): ------- Any """ - return self['data'] + return self["data"] @data.setter def data(self, val): - self['data'] = val + self["data"] = val # group # ----- @@ -87573,11 +87339,11 @@ def group(self): ------- str """ - return self['group'] + return self["group"] @group.setter def group(self, val): - self['group'] = val + self["group"] = val # layout # ------ @@ -87591,11 +87357,11 @@ def layout(self): ------- Any """ - return self['layout'] + return self["layout"] @layout.setter def layout(self, val): - self['layout'] = val + self["layout"] = val # name # ---- @@ -87612,11 +87378,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # traces # ------ @@ -87632,17 +87398,17 @@ def traces(self): ------- Any """ - return self['traces'] + return self["traces"] @traces.setter def traces(self, val): - self['traces'] = val + self["traces"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return '' + return "" # Self properties description # --------------------------- @@ -87715,7 +87481,7 @@ def __init__( ------- Frame """ - super(Frame, self).__init__('frames') + super(Frame, self).__init__("frames") # Validate arg # ------------ @@ -87735,35 +87501,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators import (frame as v_frame) + from plotly.validators import frame as v_frame # Initialize validators # --------------------- - self._validators['baseframe'] = v_frame.BaseframeValidator() - self._validators['data'] = v_frame.DataValidator() - self._validators['group'] = v_frame.GroupValidator() - self._validators['layout'] = v_frame.LayoutValidator() - self._validators['name'] = v_frame.NameValidator() - self._validators['traces'] = v_frame.TracesValidator() + self._validators["baseframe"] = v_frame.BaseframeValidator() + self._validators["data"] = v_frame.DataValidator() + self._validators["group"] = v_frame.GroupValidator() + self._validators["layout"] = v_frame.LayoutValidator() + self._validators["name"] = v_frame.NameValidator() + self._validators["traces"] = v_frame.TracesValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('baseframe', None) - self['baseframe'] = baseframe if baseframe is not None else _v - _v = arg.pop('data', None) - self['data'] = data if data is not None else _v - _v = arg.pop('group', None) - self['group'] = group if group is not None else _v - _v = arg.pop('layout', None) - self['layout'] = layout if layout is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('traces', None) - self['traces'] = traces if traces is not None else _v + _v = arg.pop("baseframe", None) + self["baseframe"] = baseframe if baseframe is not None else _v + _v = arg.pop("data", None) + self["data"] = data if data is not None else _v + _v = arg.pop("group", None) + self["group"] = group if group is not None else _v + _v = arg.pop("layout", None) + self["layout"] = layout if layout is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("traces", None) + self["traces"] = traces if traces is not None else _v # Process unknown kwargs # ---------------------- @@ -87822,14 +87588,37 @@ def __init__( try: import ipywidgets from distutils.version import LooseVersion - if LooseVersion(ipywidgets.__version__) >= LooseVersion('7.0.0'): + + if LooseVersion(ipywidgets.__version__) >= LooseVersion("7.0.0"): from ._figurewidget import FigureWidget del LooseVersion del ipywidgets except ImportError: pass from ._deprecations import ( - Data, Annotations, Frames, AngularAxis, Annotation, ColorBar, Contours, - ErrorX, ErrorY, ErrorZ, Font, Legend, Line, Margin, Marker, RadialAxis, - Scene, Stream, XAxis, YAxis, ZAxis, XBins, YBins, Trace, Histogram2dcontour + Data, + Annotations, + Frames, + AngularAxis, + Annotation, + ColorBar, + Contours, + ErrorX, + ErrorY, + ErrorZ, + Font, + Legend, + Line, + Margin, + Marker, + RadialAxis, + Scene, + Stream, + XAxis, + YAxis, + ZAxis, + XBins, + YBins, + Trace, + Histogram2dcontour, ) diff --git a/packages/python/plotly/plotly/graph_objs/_deprecations.py b/packages/python/plotly/plotly/graph_objs/_deprecations.py index 0cbfe3cf6fb..a57224c6c81 100644 --- a/packages/python/plotly/plotly/graph_objs/_deprecations.py +++ b/packages/python/plotly/plotly/graph_objs/_deprecations.py @@ -1,7 +1,7 @@ import warnings warnings.filterwarnings( - 'default', r'plotly\.graph_objs\.\w+ is deprecated', DeprecationWarning + "default", r"plotly\.graph_objs\.\w+ is deprecated", DeprecationWarning ) @@ -36,7 +36,8 @@ def __init__(self, *args, **kwargs): - plotly.graph_objs.Area - plotly.graph_objs.Histogram - etc. -""", DeprecationWarning +""", + DeprecationWarning, ) super(Data, self).__init__(*args, **kwargs) @@ -63,7 +64,8 @@ def __init__(self, *args, **kwargs): Please replace it with a list or tuple of instances of the following types - plotly.graph_objs.layout.Annotation - plotly.graph_objs.layout.scene.Annotation -""", DeprecationWarning +""", + DeprecationWarning, ) super(Annotations, self).__init__(*args, **kwargs) @@ -87,7 +89,8 @@ def __init__(self, *args, **kwargs): """plotly.graph_objs.Frames is deprecated. Please replace it with a list or tuple of instances of the following types - plotly.graph_objs.Frame -""", DeprecationWarning +""", + DeprecationWarning, ) super(Frames, self).__init__(*args, **kwargs) @@ -114,7 +117,8 @@ def __init__(self, *args, **kwargs): Please replace it with one of the following more specific types - plotly.graph_objs.layout.AngularAxis - plotly.graph_objs.layout.polar.AngularAxis -""", DeprecationWarning +""", + DeprecationWarning, ) super(AngularAxis, self).__init__(*args, **kwargs) @@ -141,7 +145,8 @@ def __init__(self, *args, **kwargs): Please replace it with one of the following more specific types - plotly.graph_objs.layout.Annotation - plotly.graph_objs.layout.scene.Annotation -""", DeprecationWarning +""", + DeprecationWarning, ) super(Annotation, self).__init__(*args, **kwargs) @@ -171,7 +176,8 @@ def __init__(self, *args, **kwargs): - plotly.graph_objs.scatter.marker.ColorBar - plotly.graph_objs.surface.ColorBar - etc. -""", DeprecationWarning +""", + DeprecationWarning, ) super(ColorBar, self).__init__(*args, **kwargs) @@ -201,7 +207,8 @@ def __init__(self, *args, **kwargs): - plotly.graph_objs.contour.Contours - plotly.graph_objs.surface.Contours - etc. -""", DeprecationWarning +""", + DeprecationWarning, ) super(Contours, self).__init__(*args, **kwargs) @@ -231,7 +238,8 @@ def __init__(self, *args, **kwargs): - plotly.graph_objs.scatter.ErrorX - plotly.graph_objs.histogram.ErrorX - etc. -""", DeprecationWarning +""", + DeprecationWarning, ) super(ErrorX, self).__init__(*args, **kwargs) @@ -261,7 +269,8 @@ def __init__(self, *args, **kwargs): - plotly.graph_objs.scatter.ErrorY - plotly.graph_objs.histogram.ErrorY - etc. -""", DeprecationWarning +""", + DeprecationWarning, ) super(ErrorY, self).__init__(*args, **kwargs) @@ -285,7 +294,8 @@ def __init__(self, *args, **kwargs): """plotly.graph_objs.ErrorZ is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.scatter3d.ErrorZ -""", DeprecationWarning +""", + DeprecationWarning, ) super(ErrorZ, self).__init__(*args, **kwargs) @@ -315,7 +325,8 @@ def __init__(self, *args, **kwargs): - plotly.graph_objs.layout.Font - plotly.graph_objs.layout.hoverlabel.Font - etc. -""", DeprecationWarning +""", + DeprecationWarning, ) super(Font, self).__init__(*args, **kwargs) @@ -339,7 +350,8 @@ def __init__(self, *args, **kwargs): """plotly.graph_objs.Legend is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.layout.Legend -""", DeprecationWarning +""", + DeprecationWarning, ) super(Legend, self).__init__(*args, **kwargs) @@ -369,7 +381,8 @@ def __init__(self, *args, **kwargs): - plotly.graph_objs.scatter.Line - plotly.graph_objs.layout.shape.Line - etc. -""", DeprecationWarning +""", + DeprecationWarning, ) super(Line, self).__init__(*args, **kwargs) @@ -393,7 +406,8 @@ def __init__(self, *args, **kwargs): """plotly.graph_objs.Margin is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.layout.Margin -""", DeprecationWarning +""", + DeprecationWarning, ) super(Margin, self).__init__(*args, **kwargs) @@ -423,7 +437,8 @@ def __init__(self, *args, **kwargs): - plotly.graph_objs.scatter.Marker - plotly.graph_objs.histogram.selected.Marker - etc. -""", DeprecationWarning +""", + DeprecationWarning, ) super(Marker, self).__init__(*args, **kwargs) @@ -450,7 +465,8 @@ def __init__(self, *args, **kwargs): Please replace it with one of the following more specific types - plotly.graph_objs.layout.RadialAxis - plotly.graph_objs.layout.polar.RadialAxis -""", DeprecationWarning +""", + DeprecationWarning, ) super(RadialAxis, self).__init__(*args, **kwargs) @@ -474,7 +490,8 @@ def __init__(self, *args, **kwargs): """plotly.graph_objs.Scene is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.Scene -""", DeprecationWarning +""", + DeprecationWarning, ) super(Scene, self).__init__(*args, **kwargs) @@ -501,7 +518,8 @@ def __init__(self, *args, **kwargs): Please replace it with one of the following more specific types - plotly.graph_objs.scatter.Stream - plotly.graph_objs.area.Stream -""", DeprecationWarning +""", + DeprecationWarning, ) super(Stream, self).__init__(*args, **kwargs) @@ -528,7 +546,8 @@ def __init__(self, *args, **kwargs): Please replace it with one of the following more specific types - plotly.graph_objs.layout.XAxis - plotly.graph_objs.layout.scene.XAxis -""", DeprecationWarning +""", + DeprecationWarning, ) super(XAxis, self).__init__(*args, **kwargs) @@ -555,7 +574,8 @@ def __init__(self, *args, **kwargs): Please replace it with one of the following more specific types - plotly.graph_objs.layout.YAxis - plotly.graph_objs.layout.scene.YAxis -""", DeprecationWarning +""", + DeprecationWarning, ) super(YAxis, self).__init__(*args, **kwargs) @@ -579,7 +599,8 @@ def __init__(self, *args, **kwargs): """plotly.graph_objs.ZAxis is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.layout.scene.ZAxis -""", DeprecationWarning +""", + DeprecationWarning, ) super(ZAxis, self).__init__(*args, **kwargs) @@ -606,7 +627,8 @@ def __init__(self, *args, **kwargs): Please replace it with one of the following more specific types - plotly.graph_objs.histogram.XBins - plotly.graph_objs.histogram2d.XBins -""", DeprecationWarning +""", + DeprecationWarning, ) super(XBins, self).__init__(*args, **kwargs) @@ -633,7 +655,8 @@ def __init__(self, *args, **kwargs): Please replace it with one of the following more specific types - plotly.graph_objs.histogram.YBins - plotly.graph_objs.histogram2d.YBins -""", DeprecationWarning +""", + DeprecationWarning, ) super(YBins, self).__init__(*args, **kwargs) @@ -669,7 +692,8 @@ def __init__(self, *args, **kwargs): - plotly.graph_objs.Area - plotly.graph_objs.Histogram - etc. -""", DeprecationWarning +""", + DeprecationWarning, ) super(Trace, self).__init__(*args, **kwargs) @@ -693,6 +717,7 @@ def __init__(self, *args, **kwargs): """plotly.graph_objs.Histogram2dcontour is deprecated. Please replace it with one of the following more specific types - plotly.graph_objs.Histogram2dContour -""", DeprecationWarning +""", + DeprecationWarning, ) super(Histogram2dcontour, self).__init__(*args, **kwargs) diff --git a/packages/python/plotly/plotly/graph_objs/_figure.py b/packages/python/plotly/plotly/graph_objs/_figure.py index d6b085b63b9..64a3c3446f5 100644 --- a/packages/python/plotly/plotly/graph_objs/_figure.py +++ b/packages/python/plotly/plotly/graph_objs/_figure.py @@ -1,24 +1,53 @@ from plotly.basedatatypes import BaseFigure from plotly.graph_objs import ( - Area, Bar, Barpolar, Box, Candlestick, Carpet, Choropleth, Cone, Contour, - Contourcarpet, Funnel, Funnelarea, Heatmap, Heatmapgl, Histogram, - Histogram2d, Histogram2dContour, Isosurface, Mesh3d, Ohlc, Parcats, - Parcoords, Pie, Pointcloud, Sankey, Scatter, Scatter3d, Scattercarpet, - Scattergeo, Scattergl, Scattermapbox, Scatterpolar, Scatterpolargl, - Scatterternary, Splom, Streamtube, Sunburst, Surface, Table, Violin, - Volume, Waterfall + Area, + Bar, + Barpolar, + Box, + Candlestick, + Carpet, + Choropleth, + Cone, + Contour, + Contourcarpet, + Funnel, + Funnelarea, + Heatmap, + Heatmapgl, + Histogram, + Histogram2d, + Histogram2dContour, + Isosurface, + Mesh3d, + Ohlc, + Parcats, + Parcoords, + Pie, + Pointcloud, + Sankey, + Scatter, + Scatter3d, + Scattercarpet, + Scattergeo, + Scattergl, + Scattermapbox, + Scatterpolar, + Scatterpolargl, + Scatterternary, + Splom, + Streamtube, + Sunburst, + Surface, + Table, + Violin, + Volume, + Waterfall, ) class Figure(BaseFigure): - def __init__( - self, - data=None, - layout=None, - frames=None, - skip_invalid=False, - **kwargs + self, data=None, layout=None, frames=None, skip_invalid=False, **kwargs ): """ Create a new Figure instance @@ -549,8 +578,7 @@ def __init__( if a property in the specification of data, layout, or frames is invalid AND skip_invalid is False """ - super(Figure, - self).__init__(data, layout, frames, skip_invalid, **kwargs) + super(Figure, self).__init__(data, layout, frames, skip_invalid, **kwargs) def add_area( self, @@ -1143,9 +1171,7 @@ def add_bar( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_barpolar( self, @@ -1813,9 +1839,7 @@ def add_box( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_candlestick( self, @@ -2086,9 +2110,7 @@ def add_candlestick( yaxis=yaxis, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_carpet( self, @@ -2342,9 +2364,7 @@ def add_carpet( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_choropleth( self, @@ -3410,9 +3430,7 @@ def add_contour( zsrc=zsrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_contourcarpet( self, @@ -3775,9 +3793,7 @@ def add_contourcarpet( zsrc=zsrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_funnel( self, @@ -4152,9 +4168,7 @@ def add_funnel( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_funnelarea( self, @@ -4824,9 +4838,7 @@ def add_heatmap( zsrc=zsrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_heatmapgl( self, @@ -5131,9 +5143,7 @@ def add_heatmapgl( zsrc=zsrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_histogram( self, @@ -5516,9 +5526,7 @@ def add_histogram( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_histogram2d( self, @@ -5934,9 +5942,7 @@ def add_histogram2d( zsrc=zsrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_histogram2dcontour( self, @@ -6376,9 +6382,7 @@ def add_histogram2dcontour( zsrc=zsrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_isosurface( self, @@ -7440,9 +7444,7 @@ def add_ohlc( yaxis=yaxis, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_parcats( self, @@ -8361,9 +8363,7 @@ def add_pointcloud( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_sankey( self, @@ -9002,9 +9002,7 @@ def add_scatter( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_scatter3d( self, @@ -9647,9 +9645,7 @@ def add_scattercarpet( yaxis=yaxis, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_scattergeo( self, @@ -10321,9 +10317,7 @@ def add_scattergl( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_scattermapbox( self, @@ -13440,9 +13434,7 @@ def add_violin( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_volume( self, @@ -14213,9 +14205,7 @@ def add_waterfall( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def select_coloraxes(self, selector=None, row=None, col=None): """ @@ -14243,9 +14233,7 @@ def select_coloraxes(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix( - 'coloraxis', selector, row, col - ) + return self._select_layout_subplots_by_prefix("coloraxis", selector, row, col) def for_each_coloraxis(self, fn, selector=None, row=None, col=None): """ @@ -14277,9 +14265,7 @@ def for_each_coloraxis(self, fn, selector=None, row=None, col=None): return self - def update_coloraxes( - self, patch=None, selector=None, row=None, col=None, **kwargs - ): + def update_coloraxes(self, patch=None, selector=None, row=None, col=None, **kwargs): """ Perform a property update operation on all coloraxis objects that satisfy the specified selection criteria @@ -14341,9 +14327,7 @@ def select_geos(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix( - 'geo', selector, row, col - ) + return self._select_layout_subplots_by_prefix("geo", selector, row, col) def for_each_geo(self, fn, selector=None, row=None, col=None): """ @@ -14375,9 +14359,7 @@ def for_each_geo(self, fn, selector=None, row=None, col=None): return self - def update_geos( - self, patch=None, selector=None, row=None, col=None, **kwargs - ): + def update_geos(self, patch=None, selector=None, row=None, col=None, **kwargs): """ Perform a property update operation on all geo objects that satisfy the specified selection criteria @@ -14439,9 +14421,7 @@ def select_mapboxes(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix( - 'mapbox', selector, row, col - ) + return self._select_layout_subplots_by_prefix("mapbox", selector, row, col) def for_each_mapbox(self, fn, selector=None, row=None, col=None): """ @@ -14473,9 +14453,7 @@ def for_each_mapbox(self, fn, selector=None, row=None, col=None): return self - def update_mapboxes( - self, patch=None, selector=None, row=None, col=None, **kwargs - ): + def update_mapboxes(self, patch=None, selector=None, row=None, col=None, **kwargs): """ Perform a property update operation on all mapbox objects that satisfy the specified selection criteria @@ -14537,9 +14515,7 @@ def select_polars(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix( - 'polar', selector, row, col - ) + return self._select_layout_subplots_by_prefix("polar", selector, row, col) def for_each_polar(self, fn, selector=None, row=None, col=None): """ @@ -14571,9 +14547,7 @@ def for_each_polar(self, fn, selector=None, row=None, col=None): return self - def update_polars( - self, patch=None, selector=None, row=None, col=None, **kwargs - ): + def update_polars(self, patch=None, selector=None, row=None, col=None, **kwargs): """ Perform a property update operation on all polar objects that satisfy the specified selection criteria @@ -14635,9 +14609,7 @@ def select_scenes(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix( - 'scene', selector, row, col - ) + return self._select_layout_subplots_by_prefix("scene", selector, row, col) def for_each_scene(self, fn, selector=None, row=None, col=None): """ @@ -14669,9 +14641,7 @@ def for_each_scene(self, fn, selector=None, row=None, col=None): return self - def update_scenes( - self, patch=None, selector=None, row=None, col=None, **kwargs - ): + def update_scenes(self, patch=None, selector=None, row=None, col=None, **kwargs): """ Perform a property update operation on all scene objects that satisfy the specified selection criteria @@ -14733,9 +14703,7 @@ def select_ternaries(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix( - 'ternary', selector, row, col - ) + return self._select_layout_subplots_by_prefix("ternary", selector, row, col) def for_each_ternary(self, fn, selector=None, row=None, col=None): """ @@ -14767,9 +14735,7 @@ def for_each_ternary(self, fn, selector=None, row=None, col=None): return self - def update_ternaries( - self, patch=None, selector=None, row=None, col=None, **kwargs - ): + def update_ternaries(self, patch=None, selector=None, row=None, col=None, **kwargs): """ Perform a property update operation on all ternary objects that satisfy the specified selection criteria @@ -14831,9 +14797,7 @@ def select_xaxes(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix( - 'xaxis', selector, row, col - ) + return self._select_layout_subplots_by_prefix("xaxis", selector, row, col) def for_each_xaxis(self, fn, selector=None, row=None, col=None): """ @@ -14865,9 +14829,7 @@ def for_each_xaxis(self, fn, selector=None, row=None, col=None): return self - def update_xaxes( - self, patch=None, selector=None, row=None, col=None, **kwargs - ): + def update_xaxes(self, patch=None, selector=None, row=None, col=None, **kwargs): """ Perform a property update operation on all xaxis objects that satisfy the specified selection criteria @@ -14903,9 +14865,7 @@ def update_xaxes( return self - def select_yaxes( - self, selector=None, row=None, col=None, secondary_y=None - ): + def select_yaxes(self, selector=None, row=None, col=None, secondary_y=None): """ Select yaxis subplot objects from a particular subplot cell and/or yaxis subplot objects that satisfy custom selection @@ -14944,12 +14904,10 @@ def select_yaxes( """ return self._select_layout_subplots_by_prefix( - 'yaxis', selector, row, col, secondary_y=secondary_y + "yaxis", selector, row, col, secondary_y=secondary_y ) - def for_each_yaxis( - self, fn, selector=None, row=None, col=None, secondary_y=None - ): + def for_each_yaxis(self, fn, selector=None, row=None, col=None, secondary_y=None): """ Apply a function to all yaxis objects that satisfy the specified selection criteria @@ -14994,13 +14952,7 @@ def for_each_yaxis( return self def update_yaxes( - self, - patch=None, - selector=None, - row=None, - col=None, - secondary_y=None, - **kwargs + self, patch=None, selector=None, row=None, col=None, secondary_y=None, **kwargs ): """ Perform a property update operation on all yaxis objects diff --git a/packages/python/plotly/plotly/graph_objs/_figurewidget.py b/packages/python/plotly/plotly/graph_objs/_figurewidget.py index 3a151a723f7..35fa1440bf6 100644 --- a/packages/python/plotly/plotly/graph_objs/_figurewidget.py +++ b/packages/python/plotly/plotly/graph_objs/_figurewidget.py @@ -1,24 +1,53 @@ from plotly.basewidget import BaseFigureWidget from plotly.graph_objs import ( - Area, Bar, Barpolar, Box, Candlestick, Carpet, Choropleth, Cone, Contour, - Contourcarpet, Funnel, Funnelarea, Heatmap, Heatmapgl, Histogram, - Histogram2d, Histogram2dContour, Isosurface, Mesh3d, Ohlc, Parcats, - Parcoords, Pie, Pointcloud, Sankey, Scatter, Scatter3d, Scattercarpet, - Scattergeo, Scattergl, Scattermapbox, Scatterpolar, Scatterpolargl, - Scatterternary, Splom, Streamtube, Sunburst, Surface, Table, Violin, - Volume, Waterfall + Area, + Bar, + Barpolar, + Box, + Candlestick, + Carpet, + Choropleth, + Cone, + Contour, + Contourcarpet, + Funnel, + Funnelarea, + Heatmap, + Heatmapgl, + Histogram, + Histogram2d, + Histogram2dContour, + Isosurface, + Mesh3d, + Ohlc, + Parcats, + Parcoords, + Pie, + Pointcloud, + Sankey, + Scatter, + Scatter3d, + Scattercarpet, + Scattergeo, + Scattergl, + Scattermapbox, + Scatterpolar, + Scatterpolargl, + Scatterternary, + Splom, + Streamtube, + Sunburst, + Surface, + Table, + Violin, + Volume, + Waterfall, ) class FigureWidget(BaseFigureWidget): - def __init__( - self, - data=None, - layout=None, - frames=None, - skip_invalid=False, - **kwargs + self, data=None, layout=None, frames=None, skip_invalid=False, **kwargs ): """ Create a new FigureWidget instance @@ -549,8 +578,7 @@ def __init__( if a property in the specification of data, layout, or frames is invalid AND skip_invalid is False """ - super(FigureWidget, - self).__init__(data, layout, frames, skip_invalid, **kwargs) + super(FigureWidget, self).__init__(data, layout, frames, skip_invalid, **kwargs) def add_area( self, @@ -1143,9 +1171,7 @@ def add_bar( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_barpolar( self, @@ -1813,9 +1839,7 @@ def add_box( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_candlestick( self, @@ -2086,9 +2110,7 @@ def add_candlestick( yaxis=yaxis, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_carpet( self, @@ -2342,9 +2364,7 @@ def add_carpet( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_choropleth( self, @@ -3410,9 +3430,7 @@ def add_contour( zsrc=zsrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_contourcarpet( self, @@ -3775,9 +3793,7 @@ def add_contourcarpet( zsrc=zsrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_funnel( self, @@ -4152,9 +4168,7 @@ def add_funnel( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_funnelarea( self, @@ -4824,9 +4838,7 @@ def add_heatmap( zsrc=zsrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_heatmapgl( self, @@ -5131,9 +5143,7 @@ def add_heatmapgl( zsrc=zsrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_histogram( self, @@ -5516,9 +5526,7 @@ def add_histogram( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_histogram2d( self, @@ -5934,9 +5942,7 @@ def add_histogram2d( zsrc=zsrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_histogram2dcontour( self, @@ -6376,9 +6382,7 @@ def add_histogram2dcontour( zsrc=zsrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_isosurface( self, @@ -7440,9 +7444,7 @@ def add_ohlc( yaxis=yaxis, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_parcats( self, @@ -8361,9 +8363,7 @@ def add_pointcloud( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_sankey( self, @@ -9002,9 +9002,7 @@ def add_scatter( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_scatter3d( self, @@ -9647,9 +9645,7 @@ def add_scattercarpet( yaxis=yaxis, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_scattergeo( self, @@ -10321,9 +10317,7 @@ def add_scattergl( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_scattermapbox( self, @@ -13440,9 +13434,7 @@ def add_violin( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def add_volume( self, @@ -14213,9 +14205,7 @@ def add_waterfall( ysrc=ysrc, **kwargs ) - return self.add_trace( - new_trace, row=row, col=col, secondary_y=secondary_y - ) + return self.add_trace(new_trace, row=row, col=col, secondary_y=secondary_y) def select_coloraxes(self, selector=None, row=None, col=None): """ @@ -14243,9 +14233,7 @@ def select_coloraxes(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix( - 'coloraxis', selector, row, col - ) + return self._select_layout_subplots_by_prefix("coloraxis", selector, row, col) def for_each_coloraxis(self, fn, selector=None, row=None, col=None): """ @@ -14277,9 +14265,7 @@ def for_each_coloraxis(self, fn, selector=None, row=None, col=None): return self - def update_coloraxes( - self, patch=None, selector=None, row=None, col=None, **kwargs - ): + def update_coloraxes(self, patch=None, selector=None, row=None, col=None, **kwargs): """ Perform a property update operation on all coloraxis objects that satisfy the specified selection criteria @@ -14341,9 +14327,7 @@ def select_geos(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix( - 'geo', selector, row, col - ) + return self._select_layout_subplots_by_prefix("geo", selector, row, col) def for_each_geo(self, fn, selector=None, row=None, col=None): """ @@ -14375,9 +14359,7 @@ def for_each_geo(self, fn, selector=None, row=None, col=None): return self - def update_geos( - self, patch=None, selector=None, row=None, col=None, **kwargs - ): + def update_geos(self, patch=None, selector=None, row=None, col=None, **kwargs): """ Perform a property update operation on all geo objects that satisfy the specified selection criteria @@ -14439,9 +14421,7 @@ def select_mapboxes(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix( - 'mapbox', selector, row, col - ) + return self._select_layout_subplots_by_prefix("mapbox", selector, row, col) def for_each_mapbox(self, fn, selector=None, row=None, col=None): """ @@ -14473,9 +14453,7 @@ def for_each_mapbox(self, fn, selector=None, row=None, col=None): return self - def update_mapboxes( - self, patch=None, selector=None, row=None, col=None, **kwargs - ): + def update_mapboxes(self, patch=None, selector=None, row=None, col=None, **kwargs): """ Perform a property update operation on all mapbox objects that satisfy the specified selection criteria @@ -14537,9 +14515,7 @@ def select_polars(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix( - 'polar', selector, row, col - ) + return self._select_layout_subplots_by_prefix("polar", selector, row, col) def for_each_polar(self, fn, selector=None, row=None, col=None): """ @@ -14571,9 +14547,7 @@ def for_each_polar(self, fn, selector=None, row=None, col=None): return self - def update_polars( - self, patch=None, selector=None, row=None, col=None, **kwargs - ): + def update_polars(self, patch=None, selector=None, row=None, col=None, **kwargs): """ Perform a property update operation on all polar objects that satisfy the specified selection criteria @@ -14635,9 +14609,7 @@ def select_scenes(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix( - 'scene', selector, row, col - ) + return self._select_layout_subplots_by_prefix("scene", selector, row, col) def for_each_scene(self, fn, selector=None, row=None, col=None): """ @@ -14669,9 +14641,7 @@ def for_each_scene(self, fn, selector=None, row=None, col=None): return self - def update_scenes( - self, patch=None, selector=None, row=None, col=None, **kwargs - ): + def update_scenes(self, patch=None, selector=None, row=None, col=None, **kwargs): """ Perform a property update operation on all scene objects that satisfy the specified selection criteria @@ -14733,9 +14703,7 @@ def select_ternaries(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix( - 'ternary', selector, row, col - ) + return self._select_layout_subplots_by_prefix("ternary", selector, row, col) def for_each_ternary(self, fn, selector=None, row=None, col=None): """ @@ -14767,9 +14735,7 @@ def for_each_ternary(self, fn, selector=None, row=None, col=None): return self - def update_ternaries( - self, patch=None, selector=None, row=None, col=None, **kwargs - ): + def update_ternaries(self, patch=None, selector=None, row=None, col=None, **kwargs): """ Perform a property update operation on all ternary objects that satisfy the specified selection criteria @@ -14831,9 +14797,7 @@ def select_xaxes(self, selector=None, row=None, col=None): objects that satisfy all of the specified selection criteria """ - return self._select_layout_subplots_by_prefix( - 'xaxis', selector, row, col - ) + return self._select_layout_subplots_by_prefix("xaxis", selector, row, col) def for_each_xaxis(self, fn, selector=None, row=None, col=None): """ @@ -14865,9 +14829,7 @@ def for_each_xaxis(self, fn, selector=None, row=None, col=None): return self - def update_xaxes( - self, patch=None, selector=None, row=None, col=None, **kwargs - ): + def update_xaxes(self, patch=None, selector=None, row=None, col=None, **kwargs): """ Perform a property update operation on all xaxis objects that satisfy the specified selection criteria @@ -14903,9 +14865,7 @@ def update_xaxes( return self - def select_yaxes( - self, selector=None, row=None, col=None, secondary_y=None - ): + def select_yaxes(self, selector=None, row=None, col=None, secondary_y=None): """ Select yaxis subplot objects from a particular subplot cell and/or yaxis subplot objects that satisfy custom selection @@ -14944,12 +14904,10 @@ def select_yaxes( """ return self._select_layout_subplots_by_prefix( - 'yaxis', selector, row, col, secondary_y=secondary_y + "yaxis", selector, row, col, secondary_y=secondary_y ) - def for_each_yaxis( - self, fn, selector=None, row=None, col=None, secondary_y=None - ): + def for_each_yaxis(self, fn, selector=None, row=None, col=None, secondary_y=None): """ Apply a function to all yaxis objects that satisfy the specified selection criteria @@ -14994,13 +14952,7 @@ def for_each_yaxis( return self def update_yaxes( - self, - patch=None, - selector=None, - row=None, - col=None, - secondary_y=None, - **kwargs + self, patch=None, selector=None, row=None, col=None, secondary_y=None, **kwargs ): """ Perform a property update operation on all yaxis objects diff --git a/packages/python/plotly/plotly/graph_objs/area/__init__.py b/packages/python/plotly/plotly/graph_objs/area/__init__.py index 5322bd3a662..3fb2762e303 100644 --- a/packages/python/plotly/plotly/graph_objs/area/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/area/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -22,11 +20,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -43,17 +41,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'area' + return "area" # Self properties description # --------------------------- @@ -94,7 +92,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -114,23 +112,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.area import (stream as v_stream) + from plotly.validators.area import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -205,11 +203,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -225,11 +223,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # opacity # ------- @@ -247,11 +245,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # opacitysrc # ---------- @@ -267,11 +265,11 @@ def opacitysrc(self): ------- str """ - return self['opacitysrc'] + return self["opacitysrc"] @opacitysrc.setter def opacitysrc(self, val): - self['opacitysrc'] = val + self["opacitysrc"] = val # size # ---- @@ -289,11 +287,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -309,11 +307,11 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # symbol # ------ @@ -396,11 +394,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self['symbol'] + return self["symbol"] @symbol.setter def symbol(self, val): - self['symbol'] = val + self["symbol"] = val # symbolsrc # --------- @@ -416,17 +414,17 @@ def symbolsrc(self): ------- str """ - return self['symbolsrc'] + return self["symbolsrc"] @symbolsrc.setter def symbolsrc(self, val): - self['symbolsrc'] = val + self["symbolsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'area' + return "area" # Self properties description # --------------------------- @@ -517,7 +515,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -537,41 +535,41 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.area import (marker as v_marker) + from plotly.validators.area import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['colorsrc'] = v_marker.ColorsrcValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['opacitysrc'] = v_marker.OpacitysrcValidator() - self._validators['size'] = v_marker.SizeValidator() - self._validators['sizesrc'] = v_marker.SizesrcValidator() - self._validators['symbol'] = v_marker.SymbolValidator() - self._validators['symbolsrc'] = v_marker.SymbolsrcValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["colorsrc"] = v_marker.ColorsrcValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["opacitysrc"] = v_marker.OpacitysrcValidator() + self._validators["size"] = v_marker.SizeValidator() + self._validators["sizesrc"] = v_marker.SizesrcValidator() + self._validators["symbol"] = v_marker.SymbolValidator() + self._validators["symbolsrc"] = v_marker.SymbolsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('opacitysrc', None) - self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v - _v = arg.pop('symbol', None) - self['symbol'] = symbol if symbol is not None else _v - _v = arg.pop('symbolsrc', None) - self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("opacitysrc", None) + self["opacitysrc"] = opacitysrc if opacitysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v + _v = arg.pop("symbol", None) + self["symbol"] = symbol if symbol is not None else _v + _v = arg.pop("symbolsrc", None) + self["symbolsrc"] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -606,11 +604,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -626,11 +624,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -686,11 +684,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -706,11 +704,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -766,11 +764,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -786,11 +784,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -841,11 +839,11 @@ def font(self): ------- plotly.graph_objs.area.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -868,11 +866,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -888,17 +886,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'area' + return "area" # Self properties description # --------------------------- @@ -990,7 +988,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -1010,48 +1008,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.area import (hoverlabel as v_hoverlabel) + from plotly.validators.area import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/area/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/area/hoverlabel/__init__.py index fc3a516acf6..0614408a1e8 100644 --- a/packages/python/plotly/plotly/graph_objs/area/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/area/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'area.hoverlabel' + return "area.hoverlabel" # Self properties description # --------------------------- @@ -262,7 +260,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -282,35 +280,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.area.hoverlabel import (font as v_font) + from plotly.validators.area.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/__init__.py b/packages/python/plotly/plotly/graph_objs/bar/__init__.py index c5ec1ec0205..56c58ec5d94 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/bar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -30,11 +28,11 @@ def marker(self): ------- plotly.graph_objs.bar.unselected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -57,17 +55,17 @@ def textfont(self): ------- plotly.graph_objs.bar.unselected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar' + return "bar" # Self properties description # --------------------------- @@ -102,7 +100,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__('unselected') + super(Unselected, self).__init__("unselected") # Validate arg # ------------ @@ -122,23 +120,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar import (unselected as v_unselected) + from plotly.validators.bar import unselected as v_unselected # Initialize validators # --------------------- - self._validators['marker'] = v_unselected.MarkerValidator() - self._validators['textfont'] = v_unselected.TextfontValidator() + self._validators["marker"] = v_unselected.MarkerValidator() + self._validators["textfont"] = v_unselected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -207,11 +205,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -227,11 +225,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -259,11 +257,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -279,11 +277,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -298,11 +296,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -318,17 +316,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar' + return "bar" # Self properties description # --------------------------- @@ -411,7 +409,7 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -431,35 +429,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar import (textfont as v_textfont) + from plotly.validators.bar import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() - self._validators['colorsrc'] = v_textfont.ColorsrcValidator() - self._validators['family'] = v_textfont.FamilyValidator() - self._validators['familysrc'] = v_textfont.FamilysrcValidator() - self._validators['size'] = v_textfont.SizeValidator() - self._validators['sizesrc'] = v_textfont.SizesrcValidator() + self._validators["color"] = v_textfont.ColorValidator() + self._validators["colorsrc"] = v_textfont.ColorsrcValidator() + self._validators["family"] = v_textfont.FamilyValidator() + self._validators["familysrc"] = v_textfont.FamilysrcValidator() + self._validators["size"] = v_textfont.SizeValidator() + self._validators["sizesrc"] = v_textfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -492,11 +490,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -513,17 +511,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar' + return "bar" # Self properties description # --------------------------- @@ -564,7 +562,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -584,23 +582,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar import (stream as v_stream) + from plotly.validators.bar import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -639,11 +637,11 @@ def marker(self): ------- plotly.graph_objs.bar.selected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -665,17 +663,17 @@ def textfont(self): ------- plotly.graph_objs.bar.selected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar' + return "bar" # Self properties description # --------------------------- @@ -710,7 +708,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__('selected') + super(Selected, self).__init__("selected") # Validate arg # ------------ @@ -730,23 +728,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar import (selected as v_selected) + from plotly.validators.bar import selected as v_selected # Initialize validators # --------------------- - self._validators['marker'] = v_selected.MarkerValidator() - self._validators['textfont'] = v_selected.TextfontValidator() + self._validators["marker"] = v_selected.MarkerValidator() + self._validators["textfont"] = v_selected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -815,11 +813,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -835,11 +833,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -867,11 +865,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -887,11 +885,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -906,11 +904,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -926,17 +924,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar' + return "bar" # Self properties description # --------------------------- @@ -1019,7 +1017,7 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__('outsidetextfont') + super(Outsidetextfont, self).__init__("outsidetextfont") # Validate arg # ------------ @@ -1039,37 +1037,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar import ( - outsidetextfont as v_outsidetextfont - ) + from plotly.validators.bar import outsidetextfont as v_outsidetextfont # Initialize validators # --------------------- - self._validators['color'] = v_outsidetextfont.ColorValidator() - self._validators['colorsrc'] = v_outsidetextfont.ColorsrcValidator() - self._validators['family'] = v_outsidetextfont.FamilyValidator() - self._validators['familysrc'] = v_outsidetextfont.FamilysrcValidator() - self._validators['size'] = v_outsidetextfont.SizeValidator() - self._validators['sizesrc'] = v_outsidetextfont.SizesrcValidator() + self._validators["color"] = v_outsidetextfont.ColorValidator() + self._validators["colorsrc"] = v_outsidetextfont.ColorsrcValidator() + self._validators["family"] = v_outsidetextfont.FamilyValidator() + self._validators["familysrc"] = v_outsidetextfont.FamilysrcValidator() + self._validators["size"] = v_outsidetextfont.SizeValidator() + self._validators["sizesrc"] = v_outsidetextfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1106,11 +1102,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -1131,11 +1127,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -1154,11 +1150,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -1178,11 +1174,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -1201,11 +1197,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -1266,11 +1262,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -1293,11 +1289,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -1526,11 +1522,11 @@ def colorbar(self): ------- plotly.graph_objs.bar.marker.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -1564,11 +1560,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -1584,11 +1580,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # line # ---- @@ -1696,11 +1692,11 @@ def line(self): ------- plotly.graph_objs.bar.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # opacity # ------- @@ -1717,11 +1713,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # opacitysrc # ---------- @@ -1737,11 +1733,11 @@ def opacitysrc(self): ------- str """ - return self['opacitysrc'] + return self["opacitysrc"] @opacitysrc.setter def opacitysrc(self, val): - self['opacitysrc'] = val + self["opacitysrc"] = val # reversescale # ------------ @@ -1760,11 +1756,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -1782,17 +1778,17 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar' + return "bar" # Self properties description # --------------------------- @@ -1998,7 +1994,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -2018,63 +2014,62 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar import (marker as v_marker) + from plotly.validators.bar import marker as v_marker # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_marker.AutocolorscaleValidator() - self._validators['cauto'] = v_marker.CautoValidator() - self._validators['cmax'] = v_marker.CmaxValidator() - self._validators['cmid'] = v_marker.CmidValidator() - self._validators['cmin'] = v_marker.CminValidator() - self._validators['color'] = v_marker.ColorValidator() - self._validators['coloraxis'] = v_marker.ColoraxisValidator() - self._validators['colorbar'] = v_marker.ColorBarValidator() - self._validators['colorscale'] = v_marker.ColorscaleValidator() - self._validators['colorsrc'] = v_marker.ColorsrcValidator() - self._validators['line'] = v_marker.LineValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['opacitysrc'] = v_marker.OpacitysrcValidator() - self._validators['reversescale'] = v_marker.ReversescaleValidator() - self._validators['showscale'] = v_marker.ShowscaleValidator() + self._validators["autocolorscale"] = v_marker.AutocolorscaleValidator() + self._validators["cauto"] = v_marker.CautoValidator() + self._validators["cmax"] = v_marker.CmaxValidator() + self._validators["cmid"] = v_marker.CmidValidator() + self._validators["cmin"] = v_marker.CminValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["coloraxis"] = v_marker.ColoraxisValidator() + self._validators["colorbar"] = v_marker.ColorBarValidator() + self._validators["colorscale"] = v_marker.ColorscaleValidator() + self._validators["colorsrc"] = v_marker.ColorsrcValidator() + self._validators["line"] = v_marker.LineValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["opacitysrc"] = v_marker.OpacitysrcValidator() + self._validators["reversescale"] = v_marker.ReversescaleValidator() + self._validators["showscale"] = v_marker.ShowscaleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('opacitysrc', None) - self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("opacitysrc", None) + self["opacitysrc"] = opacitysrc if opacitysrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v # Process unknown kwargs # ---------------------- @@ -2143,11 +2138,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -2163,11 +2158,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -2195,11 +2190,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -2215,11 +2210,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -2234,11 +2229,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -2254,17 +2249,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar' + return "bar" # Self properties description # --------------------------- @@ -2347,7 +2342,7 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__('insidetextfont') + super(Insidetextfont, self).__init__("insidetextfont") # Validate arg # ------------ @@ -2367,35 +2362,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar import (insidetextfont as v_insidetextfont) + from plotly.validators.bar import insidetextfont as v_insidetextfont # Initialize validators # --------------------- - self._validators['color'] = v_insidetextfont.ColorValidator() - self._validators['colorsrc'] = v_insidetextfont.ColorsrcValidator() - self._validators['family'] = v_insidetextfont.FamilyValidator() - self._validators['familysrc'] = v_insidetextfont.FamilysrcValidator() - self._validators['size'] = v_insidetextfont.SizeValidator() - self._validators['sizesrc'] = v_insidetextfont.SizesrcValidator() + self._validators["color"] = v_insidetextfont.ColorValidator() + self._validators["colorsrc"] = v_insidetextfont.ColorsrcValidator() + self._validators["family"] = v_insidetextfont.FamilyValidator() + self._validators["familysrc"] = v_insidetextfont.FamilysrcValidator() + self._validators["size"] = v_insidetextfont.SizeValidator() + self._validators["sizesrc"] = v_insidetextfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -2430,11 +2425,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -2450,11 +2445,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -2510,11 +2505,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -2530,11 +2525,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -2590,11 +2585,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -2610,11 +2605,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -2665,11 +2660,11 @@ def font(self): ------- plotly.graph_objs.bar.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -2692,11 +2687,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -2712,17 +2707,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar' + return "bar" # Self properties description # --------------------------- @@ -2814,7 +2809,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -2834,48 +2829,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar import (hoverlabel as v_hoverlabel) + from plotly.validators.bar import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -2907,11 +2898,11 @@ def array(self): ------- numpy.ndarray """ - return self['array'] + return self["array"] @array.setter def array(self, val): - self['array'] = val + self["array"] = val # arrayminus # ---------- @@ -2929,11 +2920,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self['arrayminus'] + return self["arrayminus"] @arrayminus.setter def arrayminus(self, val): - self['arrayminus'] = val + self["arrayminus"] = val # arrayminussrc # ------------- @@ -2949,11 +2940,11 @@ def arrayminussrc(self): ------- str """ - return self['arrayminussrc'] + return self["arrayminussrc"] @arrayminussrc.setter def arrayminussrc(self, val): - self['arrayminussrc'] = val + self["arrayminussrc"] = val # arraysrc # -------- @@ -2969,11 +2960,11 @@ def arraysrc(self): ------- str """ - return self['arraysrc'] + return self["arraysrc"] @arraysrc.setter def arraysrc(self, val): - self['arraysrc'] = val + self["arraysrc"] = val # color # ----- @@ -3028,11 +3019,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # symmetric # --------- @@ -3050,11 +3041,11 @@ def symmetric(self): ------- bool """ - return self['symmetric'] + return self["symmetric"] @symmetric.setter def symmetric(self, val): - self['symmetric'] = val + self["symmetric"] = val # thickness # --------- @@ -3070,11 +3061,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # traceref # -------- @@ -3089,11 +3080,11 @@ def traceref(self): ------- int """ - return self['traceref'] + return self["traceref"] @traceref.setter def traceref(self, val): - self['traceref'] = val + self["traceref"] = val # tracerefminus # ------------- @@ -3108,11 +3099,11 @@ def tracerefminus(self): ------- int """ - return self['tracerefminus'] + return self["tracerefminus"] @tracerefminus.setter def tracerefminus(self, val): - self['tracerefminus'] = val + self["tracerefminus"] = val # type # ---- @@ -3135,11 +3126,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # value # ----- @@ -3157,11 +3148,11 @@ def value(self): ------- int|float """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # valueminus # ---------- @@ -3180,11 +3171,11 @@ def valueminus(self): ------- int|float """ - return self['valueminus'] + return self["valueminus"] @valueminus.setter def valueminus(self, val): - self['valueminus'] = val + self["valueminus"] = val # visible # ------- @@ -3200,11 +3191,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -3221,17 +3212,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar' + return "bar" # Self properties description # --------------------------- @@ -3374,7 +3365,7 @@ def __init__( ------- ErrorY """ - super(ErrorY, self).__init__('error_y') + super(ErrorY, self).__init__("error_y") # Validate arg # ------------ @@ -3394,61 +3385,59 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar import (error_y as v_error_y) + from plotly.validators.bar import error_y as v_error_y # Initialize validators # --------------------- - self._validators['array'] = v_error_y.ArrayValidator() - self._validators['arrayminus'] = v_error_y.ArrayminusValidator() - self._validators['arrayminussrc'] = v_error_y.ArrayminussrcValidator() - self._validators['arraysrc'] = v_error_y.ArraysrcValidator() - self._validators['color'] = v_error_y.ColorValidator() - self._validators['symmetric'] = v_error_y.SymmetricValidator() - self._validators['thickness'] = v_error_y.ThicknessValidator() - self._validators['traceref'] = v_error_y.TracerefValidator() - self._validators['tracerefminus'] = v_error_y.TracerefminusValidator() - self._validators['type'] = v_error_y.TypeValidator() - self._validators['value'] = v_error_y.ValueValidator() - self._validators['valueminus'] = v_error_y.ValueminusValidator() - self._validators['visible'] = v_error_y.VisibleValidator() - self._validators['width'] = v_error_y.WidthValidator() + self._validators["array"] = v_error_y.ArrayValidator() + self._validators["arrayminus"] = v_error_y.ArrayminusValidator() + self._validators["arrayminussrc"] = v_error_y.ArrayminussrcValidator() + self._validators["arraysrc"] = v_error_y.ArraysrcValidator() + self._validators["color"] = v_error_y.ColorValidator() + self._validators["symmetric"] = v_error_y.SymmetricValidator() + self._validators["thickness"] = v_error_y.ThicknessValidator() + self._validators["traceref"] = v_error_y.TracerefValidator() + self._validators["tracerefminus"] = v_error_y.TracerefminusValidator() + self._validators["type"] = v_error_y.TypeValidator() + self._validators["value"] = v_error_y.ValueValidator() + self._validators["valueminus"] = v_error_y.ValueminusValidator() + self._validators["visible"] = v_error_y.VisibleValidator() + self._validators["width"] = v_error_y.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('array', None) - self['array'] = array if array is not None else _v - _v = arg.pop('arrayminus', None) - self['arrayminus'] = arrayminus if arrayminus is not None else _v - _v = arg.pop('arrayminussrc', None) - self['arrayminussrc' - ] = arrayminussrc if arrayminussrc is not None else _v - _v = arg.pop('arraysrc', None) - self['arraysrc'] = arraysrc if arraysrc is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('symmetric', None) - self['symmetric'] = symmetric if symmetric is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('traceref', None) - self['traceref'] = traceref if traceref is not None else _v - _v = arg.pop('tracerefminus', None) - self['tracerefminus' - ] = tracerefminus if tracerefminus is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v - _v = arg.pop('valueminus', None) - self['valueminus'] = valueminus if valueminus is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("array", None) + self["array"] = array if array is not None else _v + _v = arg.pop("arrayminus", None) + self["arrayminus"] = arrayminus if arrayminus is not None else _v + _v = arg.pop("arrayminussrc", None) + self["arrayminussrc"] = arrayminussrc if arrayminussrc is not None else _v + _v = arg.pop("arraysrc", None) + self["arraysrc"] = arraysrc if arraysrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("symmetric", None) + self["symmetric"] = symmetric if symmetric is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("traceref", None) + self["traceref"] = traceref if traceref is not None else _v + _v = arg.pop("tracerefminus", None) + self["tracerefminus"] = tracerefminus if tracerefminus is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v + _v = arg.pop("valueminus", None) + self["valueminus"] = valueminus if valueminus is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -3480,11 +3469,11 @@ def array(self): ------- numpy.ndarray """ - return self['array'] + return self["array"] @array.setter def array(self, val): - self['array'] = val + self["array"] = val # arrayminus # ---------- @@ -3502,11 +3491,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self['arrayminus'] + return self["arrayminus"] @arrayminus.setter def arrayminus(self, val): - self['arrayminus'] = val + self["arrayminus"] = val # arrayminussrc # ------------- @@ -3522,11 +3511,11 @@ def arrayminussrc(self): ------- str """ - return self['arrayminussrc'] + return self["arrayminussrc"] @arrayminussrc.setter def arrayminussrc(self, val): - self['arrayminussrc'] = val + self["arrayminussrc"] = val # arraysrc # -------- @@ -3542,11 +3531,11 @@ def arraysrc(self): ------- str """ - return self['arraysrc'] + return self["arraysrc"] @arraysrc.setter def arraysrc(self, val): - self['arraysrc'] = val + self["arraysrc"] = val # color # ----- @@ -3601,11 +3590,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # copy_ystyle # ----------- @@ -3619,11 +3608,11 @@ def copy_ystyle(self): ------- bool """ - return self['copy_ystyle'] + return self["copy_ystyle"] @copy_ystyle.setter def copy_ystyle(self, val): - self['copy_ystyle'] = val + self["copy_ystyle"] = val # symmetric # --------- @@ -3641,11 +3630,11 @@ def symmetric(self): ------- bool """ - return self['symmetric'] + return self["symmetric"] @symmetric.setter def symmetric(self, val): - self['symmetric'] = val + self["symmetric"] = val # thickness # --------- @@ -3661,11 +3650,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # traceref # -------- @@ -3680,11 +3669,11 @@ def traceref(self): ------- int """ - return self['traceref'] + return self["traceref"] @traceref.setter def traceref(self, val): - self['traceref'] = val + self["traceref"] = val # tracerefminus # ------------- @@ -3699,11 +3688,11 @@ def tracerefminus(self): ------- int """ - return self['tracerefminus'] + return self["tracerefminus"] @tracerefminus.setter def tracerefminus(self, val): - self['tracerefminus'] = val + self["tracerefminus"] = val # type # ---- @@ -3726,11 +3715,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # value # ----- @@ -3748,11 +3737,11 @@ def value(self): ------- int|float """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # valueminus # ---------- @@ -3771,11 +3760,11 @@ def valueminus(self): ------- int|float """ - return self['valueminus'] + return self["valueminus"] @valueminus.setter def valueminus(self, val): - self['valueminus'] = val + self["valueminus"] = val # visible # ------- @@ -3791,11 +3780,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -3812,17 +3801,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar' + return "bar" # Self properties description # --------------------------- @@ -3970,7 +3959,7 @@ def __init__( ------- ErrorX """ - super(ErrorX, self).__init__('error_x') + super(ErrorX, self).__init__("error_x") # Validate arg # ------------ @@ -3990,64 +3979,62 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar import (error_x as v_error_x) + from plotly.validators.bar import error_x as v_error_x # Initialize validators # --------------------- - self._validators['array'] = v_error_x.ArrayValidator() - self._validators['arrayminus'] = v_error_x.ArrayminusValidator() - self._validators['arrayminussrc'] = v_error_x.ArrayminussrcValidator() - self._validators['arraysrc'] = v_error_x.ArraysrcValidator() - self._validators['color'] = v_error_x.ColorValidator() - self._validators['copy_ystyle'] = v_error_x.CopyYstyleValidator() - self._validators['symmetric'] = v_error_x.SymmetricValidator() - self._validators['thickness'] = v_error_x.ThicknessValidator() - self._validators['traceref'] = v_error_x.TracerefValidator() - self._validators['tracerefminus'] = v_error_x.TracerefminusValidator() - self._validators['type'] = v_error_x.TypeValidator() - self._validators['value'] = v_error_x.ValueValidator() - self._validators['valueminus'] = v_error_x.ValueminusValidator() - self._validators['visible'] = v_error_x.VisibleValidator() - self._validators['width'] = v_error_x.WidthValidator() + self._validators["array"] = v_error_x.ArrayValidator() + self._validators["arrayminus"] = v_error_x.ArrayminusValidator() + self._validators["arrayminussrc"] = v_error_x.ArrayminussrcValidator() + self._validators["arraysrc"] = v_error_x.ArraysrcValidator() + self._validators["color"] = v_error_x.ColorValidator() + self._validators["copy_ystyle"] = v_error_x.CopyYstyleValidator() + self._validators["symmetric"] = v_error_x.SymmetricValidator() + self._validators["thickness"] = v_error_x.ThicknessValidator() + self._validators["traceref"] = v_error_x.TracerefValidator() + self._validators["tracerefminus"] = v_error_x.TracerefminusValidator() + self._validators["type"] = v_error_x.TypeValidator() + self._validators["value"] = v_error_x.ValueValidator() + self._validators["valueminus"] = v_error_x.ValueminusValidator() + self._validators["visible"] = v_error_x.VisibleValidator() + self._validators["width"] = v_error_x.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('array', None) - self['array'] = array if array is not None else _v - _v = arg.pop('arrayminus', None) - self['arrayminus'] = arrayminus if arrayminus is not None else _v - _v = arg.pop('arrayminussrc', None) - self['arrayminussrc' - ] = arrayminussrc if arrayminussrc is not None else _v - _v = arg.pop('arraysrc', None) - self['arraysrc'] = arraysrc if arraysrc is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('copy_ystyle', None) - self['copy_ystyle'] = copy_ystyle if copy_ystyle is not None else _v - _v = arg.pop('symmetric', None) - self['symmetric'] = symmetric if symmetric is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('traceref', None) - self['traceref'] = traceref if traceref is not None else _v - _v = arg.pop('tracerefminus', None) - self['tracerefminus' - ] = tracerefminus if tracerefminus is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v - _v = arg.pop('valueminus', None) - self['valueminus'] = valueminus if valueminus is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("array", None) + self["array"] = array if array is not None else _v + _v = arg.pop("arrayminus", None) + self["arrayminus"] = arrayminus if arrayminus is not None else _v + _v = arg.pop("arrayminussrc", None) + self["arrayminussrc"] = arrayminussrc if arrayminussrc is not None else _v + _v = arg.pop("arraysrc", None) + self["arraysrc"] = arraysrc if arraysrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("copy_ystyle", None) + self["copy_ystyle"] = copy_ystyle if copy_ystyle is not None else _v + _v = arg.pop("symmetric", None) + self["symmetric"] = symmetric if symmetric is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("traceref", None) + self["traceref"] = traceref if traceref is not None else _v + _v = arg.pop("tracerefminus", None) + self["tracerefminus"] = tracerefminus if tracerefminus is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v + _v = arg.pop("valueminus", None) + self["valueminus"] = valueminus if valueminus is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/bar/hoverlabel/__init__.py index 92bbf93d5c7..af1ef0ee3c9 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/bar/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar.hoverlabel' + return "bar.hoverlabel" # Self properties description # --------------------------- @@ -262,7 +260,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -282,35 +280,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar.hoverlabel import (font as v_font) + from plotly.validators.bar.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/bar/marker/__init__.py index 64395c0604f..4a463815b78 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/bar/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -26,11 +24,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -51,11 +49,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -74,11 +72,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -99,11 +97,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -122,11 +120,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -187,11 +185,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -214,11 +212,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorscale # ---------- @@ -253,11 +251,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -273,11 +271,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # reversescale # ------------ @@ -297,11 +295,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # width # ----- @@ -318,11 +316,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -338,17 +336,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar.marker' + return "bar.marker" # Self properties description # --------------------------- @@ -541,7 +539,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -561,54 +559,53 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar.marker import (line as v_line) + from plotly.validators.bar.marker import line as v_line # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_line.AutocolorscaleValidator() - self._validators['cauto'] = v_line.CautoValidator() - self._validators['cmax'] = v_line.CmaxValidator() - self._validators['cmid'] = v_line.CmidValidator() - self._validators['cmin'] = v_line.CminValidator() - self._validators['color'] = v_line.ColorValidator() - self._validators['coloraxis'] = v_line.ColoraxisValidator() - self._validators['colorscale'] = v_line.ColorscaleValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['reversescale'] = v_line.ReversescaleValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["autocolorscale"] = v_line.AutocolorscaleValidator() + self._validators["cauto"] = v_line.CautoValidator() + self._validators["cmax"] = v_line.CmaxValidator() + self._validators["cmid"] = v_line.CmidValidator() + self._validators["cmin"] = v_line.CminValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["coloraxis"] = v_line.ColoraxisValidator() + self._validators["colorscale"] = v_line.ColorscaleValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["reversescale"] = v_line.ReversescaleValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -678,11 +675,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -737,11 +734,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -757,11 +754,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -795,11 +792,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -820,11 +817,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -842,11 +839,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -865,11 +862,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -889,11 +886,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -948,11 +945,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -968,11 +965,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -988,11 +985,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1012,11 +1009,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1032,11 +1029,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1056,11 +1053,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1077,11 +1074,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1098,11 +1095,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1121,11 +1118,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1148,11 +1145,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1172,11 +1169,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1231,11 +1228,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1276,11 +1273,11 @@ def tickfont(self): ------- plotly.graph_objs.bar.marker.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1305,11 +1302,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1362,11 +1359,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.bar.marker.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1389,11 +1386,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.bar.marker.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1409,11 +1406,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1436,11 +1433,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1457,11 +1454,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1480,11 +1477,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1501,11 +1498,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1523,11 +1520,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1543,11 +1540,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1564,11 +1561,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1584,11 +1581,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1604,11 +1601,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1643,11 +1640,11 @@ def title(self): ------- plotly.graph_objs.bar.marker.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1690,11 +1687,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1714,11 +1711,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1734,11 +1731,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1757,11 +1754,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -1777,11 +1774,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -1797,11 +1794,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -1820,11 +1817,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -1840,17 +1837,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar.marker' + return "bar.marker" # Self properties description # --------------------------- @@ -2045,8 +2042,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2295,7 +2292,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2315,164 +2312,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar.marker import (colorbar as v_colorbar) + from plotly.validators.bar.marker import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/__init__.py index 66d2df5344c..a5db25f5bb9 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.bar.marker.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar.marker.colorbar' + return "bar.marker.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,26 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar.marker.colorbar import (title as v_title) + from plotly.validators.bar.marker.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -229,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -250,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -277,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -305,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -327,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar.marker.colorbar' + return "bar.marker.colorbar" # Self properties description # --------------------------- @@ -430,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -450,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.bar.marker.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -547,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -578,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -596,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar.marker.colorbar' + return "bar.marker.colorbar" # Self properties description # --------------------------- @@ -668,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -688,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar.marker.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.bar.marker.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/title/__init__.py index b45676419af..c8e8aa84472 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/bar/marker/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar.marker.colorbar.title' + return "bar.marker.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar.marker.colorbar.title import ( - font as v_font - ) + from plotly.validators.bar.marker.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/bar/selected/__init__.py index bb957242060..3039352d0c5 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/bar/selected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,17 +57,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar.selected' + return "bar.selected" # Self properties description # --------------------------- @@ -96,7 +94,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -116,20 +114,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar.selected import (textfont as v_textfont) + from plotly.validators.bar.selected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -199,11 +197,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -219,17 +217,17 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar.selected' + return "bar.selected" # Self properties description # --------------------------- @@ -260,7 +258,7 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -280,23 +278,23 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar.selected import (marker as v_marker) + from plotly.validators.bar.selected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/bar/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/bar/unselected/__init__.py index ded33040b2e..6919b9ab914 100644 --- a/packages/python/plotly/plotly/graph_objs/bar/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/bar/unselected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,17 +58,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar.unselected' + return "bar.unselected" # Self properties description # --------------------------- @@ -100,7 +98,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -120,20 +118,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar.unselected import (textfont as v_textfont) + from plotly.validators.bar.unselected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -204,11 +202,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -225,17 +223,17 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'bar.unselected' + return "bar.unselected" # Self properties description # --------------------------- @@ -270,7 +268,7 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -290,23 +288,23 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.bar.unselected import (marker as v_marker) + from plotly.validators.bar.unselected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/__init__.py b/packages/python/plotly/plotly/graph_objs/barpolar/__init__.py index a053c025bf5..986babae785 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -30,11 +28,11 @@ def marker(self): ------- plotly.graph_objs.barpolar.unselected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -57,17 +55,17 @@ def textfont(self): ------- plotly.graph_objs.barpolar.unselected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'barpolar' + return "barpolar" # Self properties description # --------------------------- @@ -102,7 +100,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__('unselected') + super(Unselected, self).__init__("unselected") # Validate arg # ------------ @@ -122,23 +120,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.barpolar import (unselected as v_unselected) + from plotly.validators.barpolar import unselected as v_unselected # Initialize validators # --------------------- - self._validators['marker'] = v_unselected.MarkerValidator() - self._validators['textfont'] = v_unselected.TextfontValidator() + self._validators["marker"] = v_unselected.MarkerValidator() + self._validators["textfont"] = v_unselected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -171,11 +169,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -192,17 +190,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'barpolar' + return "barpolar" # Self properties description # --------------------------- @@ -243,7 +241,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -263,23 +261,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.barpolar import (stream as v_stream) + from plotly.validators.barpolar import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -318,11 +316,11 @@ def marker(self): ------- plotly.graph_objs.barpolar.selected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -344,17 +342,17 @@ def textfont(self): ------- plotly.graph_objs.barpolar.selected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'barpolar' + return "barpolar" # Self properties description # --------------------------- @@ -389,7 +387,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__('selected') + super(Selected, self).__init__("selected") # Validate arg # ------------ @@ -409,23 +407,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.barpolar import (selected as v_selected) + from plotly.validators.barpolar import selected as v_selected # Initialize validators # --------------------- - self._validators['marker'] = v_selected.MarkerValidator() - self._validators['textfont'] = v_selected.TextfontValidator() + self._validators["marker"] = v_selected.MarkerValidator() + self._validators["textfont"] = v_selected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -462,11 +460,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -487,11 +485,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -510,11 +508,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -534,11 +532,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -557,11 +555,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -622,11 +620,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -649,11 +647,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -883,11 +881,11 @@ def colorbar(self): ------- plotly.graph_objs.barpolar.marker.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -921,11 +919,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -941,11 +939,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # line # ---- @@ -1053,11 +1051,11 @@ def line(self): ------- plotly.graph_objs.barpolar.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # opacity # ------- @@ -1074,11 +1072,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # opacitysrc # ---------- @@ -1094,11 +1092,11 @@ def opacitysrc(self): ------- str """ - return self['opacitysrc'] + return self["opacitysrc"] @opacitysrc.setter def opacitysrc(self, val): - self['opacitysrc'] = val + self["opacitysrc"] = val # reversescale # ------------ @@ -1117,11 +1115,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -1139,17 +1137,17 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'barpolar' + return "barpolar" # Self properties description # --------------------------- @@ -1355,7 +1353,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -1375,63 +1373,62 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.barpolar import (marker as v_marker) + from plotly.validators.barpolar import marker as v_marker # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_marker.AutocolorscaleValidator() - self._validators['cauto'] = v_marker.CautoValidator() - self._validators['cmax'] = v_marker.CmaxValidator() - self._validators['cmid'] = v_marker.CmidValidator() - self._validators['cmin'] = v_marker.CminValidator() - self._validators['color'] = v_marker.ColorValidator() - self._validators['coloraxis'] = v_marker.ColoraxisValidator() - self._validators['colorbar'] = v_marker.ColorBarValidator() - self._validators['colorscale'] = v_marker.ColorscaleValidator() - self._validators['colorsrc'] = v_marker.ColorsrcValidator() - self._validators['line'] = v_marker.LineValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['opacitysrc'] = v_marker.OpacitysrcValidator() - self._validators['reversescale'] = v_marker.ReversescaleValidator() - self._validators['showscale'] = v_marker.ShowscaleValidator() + self._validators["autocolorscale"] = v_marker.AutocolorscaleValidator() + self._validators["cauto"] = v_marker.CautoValidator() + self._validators["cmax"] = v_marker.CmaxValidator() + self._validators["cmid"] = v_marker.CmidValidator() + self._validators["cmin"] = v_marker.CminValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["coloraxis"] = v_marker.ColoraxisValidator() + self._validators["colorbar"] = v_marker.ColorBarValidator() + self._validators["colorscale"] = v_marker.ColorscaleValidator() + self._validators["colorsrc"] = v_marker.ColorsrcValidator() + self._validators["line"] = v_marker.LineValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["opacitysrc"] = v_marker.OpacitysrcValidator() + self._validators["reversescale"] = v_marker.ReversescaleValidator() + self._validators["showscale"] = v_marker.ShowscaleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('opacitysrc', None) - self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("opacitysrc", None) + self["opacitysrc"] = opacitysrc if opacitysrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v # Process unknown kwargs # ---------------------- @@ -1466,11 +1463,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -1486,11 +1483,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -1546,11 +1543,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -1566,11 +1563,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -1626,11 +1623,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -1646,11 +1643,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -1701,11 +1698,11 @@ def font(self): ------- plotly.graph_objs.barpolar.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -1728,11 +1725,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -1748,17 +1745,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'barpolar' + return "barpolar" # Self properties description # --------------------------- @@ -1850,7 +1847,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -1870,48 +1867,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.barpolar import (hoverlabel as v_hoverlabel) + from plotly.validators.barpolar import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/barpolar/hoverlabel/__init__.py index fc12d8e3a83..6a3c27148a1 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'barpolar.hoverlabel' + return "barpolar.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.barpolar.hoverlabel import (font as v_font) + from plotly.validators.barpolar.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/barpolar/marker/__init__.py index b943671698d..d7cc2d717ea 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -26,11 +24,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -51,11 +49,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -74,11 +72,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -99,11 +97,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -122,11 +120,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -187,11 +185,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -214,11 +212,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorscale # ---------- @@ -253,11 +251,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -273,11 +271,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # reversescale # ------------ @@ -297,11 +295,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # width # ----- @@ -318,11 +316,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -338,17 +336,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'barpolar.marker' + return "barpolar.marker" # Self properties description # --------------------------- @@ -541,7 +539,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -561,54 +559,53 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.barpolar.marker import (line as v_line) + from plotly.validators.barpolar.marker import line as v_line # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_line.AutocolorscaleValidator() - self._validators['cauto'] = v_line.CautoValidator() - self._validators['cmax'] = v_line.CmaxValidator() - self._validators['cmid'] = v_line.CmidValidator() - self._validators['cmin'] = v_line.CminValidator() - self._validators['color'] = v_line.ColorValidator() - self._validators['coloraxis'] = v_line.ColoraxisValidator() - self._validators['colorscale'] = v_line.ColorscaleValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['reversescale'] = v_line.ReversescaleValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["autocolorscale"] = v_line.AutocolorscaleValidator() + self._validators["cauto"] = v_line.CautoValidator() + self._validators["cmax"] = v_line.CmaxValidator() + self._validators["cmid"] = v_line.CmidValidator() + self._validators["cmin"] = v_line.CminValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["coloraxis"] = v_line.ColoraxisValidator() + self._validators["colorscale"] = v_line.ColorscaleValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["reversescale"] = v_line.ReversescaleValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -678,11 +675,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -737,11 +734,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -757,11 +754,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -795,11 +792,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -820,11 +817,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -842,11 +839,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -865,11 +862,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -889,11 +886,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -948,11 +945,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -968,11 +965,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -988,11 +985,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1012,11 +1009,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1032,11 +1029,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1056,11 +1053,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1077,11 +1074,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1098,11 +1095,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1121,11 +1118,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1148,11 +1145,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1172,11 +1169,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1231,11 +1228,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1276,11 +1273,11 @@ def tickfont(self): ------- plotly.graph_objs.barpolar.marker.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1305,11 +1302,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1362,11 +1359,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.barpolar.marker.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1390,11 +1387,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.barpolar.marker.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1410,11 +1407,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1437,11 +1434,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1458,11 +1455,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1481,11 +1478,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1502,11 +1499,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1524,11 +1521,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1544,11 +1541,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1565,11 +1562,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1585,11 +1582,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1605,11 +1602,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1644,11 +1641,11 @@ def title(self): ------- plotly.graph_objs.barpolar.marker.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1692,11 +1689,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1716,11 +1713,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1736,11 +1733,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1759,11 +1756,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -1779,11 +1776,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -1799,11 +1796,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -1822,11 +1819,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -1842,17 +1839,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'barpolar.marker' + return "barpolar.marker" # Self properties description # --------------------------- @@ -2047,8 +2044,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2298,7 +2295,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2318,164 +2315,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.barpolar.marker import (colorbar as v_colorbar) + from plotly.validators.barpolar.marker import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/__init__.py index d9215ea65ac..422e78b7511 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.barpolar.marker.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'barpolar.marker.colorbar' + return "barpolar.marker.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,28 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.barpolar.marker.colorbar import ( - title as v_title - ) + from plotly.validators.barpolar.marker.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -231,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -252,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -279,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -307,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -329,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'barpolar.marker.colorbar' + return "barpolar.marker.colorbar" # Self properties description # --------------------------- @@ -432,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -452,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.barpolar.marker.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -549,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -580,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -598,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'barpolar.marker.colorbar' + return "barpolar.marker.colorbar" # Self properties description # --------------------------- @@ -670,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -690,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.barpolar.marker.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.barpolar.marker.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/title/__init__.py index 45c958fa308..a8e55a2e7c0 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/marker/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'barpolar.marker.colorbar.title' + return "barpolar.marker.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.barpolar.marker.colorbar.title import ( - font as v_font - ) + from plotly.validators.barpolar.marker.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/barpolar/selected/__init__.py index d6f726b86b5..3b7c637eccb 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/selected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,17 +57,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'barpolar.selected' + return "barpolar.selected" # Self properties description # --------------------------- @@ -97,7 +95,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -117,22 +115,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.barpolar.selected import ( - textfont as v_textfont - ) + from plotly.validators.barpolar.selected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -202,11 +198,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -222,17 +218,17 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'barpolar.selected' + return "barpolar.selected" # Self properties description # --------------------------- @@ -264,7 +260,7 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -284,23 +280,23 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.barpolar.selected import (marker as v_marker) + from plotly.validators.barpolar.selected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/barpolar/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/barpolar/unselected/__init__.py index 03861d4cd47..b931774bf9b 100644 --- a/packages/python/plotly/plotly/graph_objs/barpolar/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/barpolar/unselected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,17 +58,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'barpolar.unselected' + return "barpolar.unselected" # Self properties description # --------------------------- @@ -100,7 +98,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -120,22 +118,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.barpolar.unselected import ( - textfont as v_textfont - ) + from plotly.validators.barpolar.unselected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -206,11 +202,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -227,17 +223,17 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'barpolar.unselected' + return "barpolar.unselected" # Self properties description # --------------------------- @@ -273,7 +269,7 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -293,23 +289,23 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.barpolar.unselected import (marker as v_marker) + from plotly.validators.barpolar.unselected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/box/__init__.py b/packages/python/plotly/plotly/graph_objs/box/__init__.py index c5e7b7e80d4..06cfe1823cc 100644 --- a/packages/python/plotly/plotly/graph_objs/box/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/box/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -33,17 +31,17 @@ def marker(self): ------- plotly.graph_objs.box.unselected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'box' + return "box" # Self properties description # --------------------------- @@ -72,7 +70,7 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__('unselected') + super(Unselected, self).__init__("unselected") # Validate arg # ------------ @@ -92,20 +90,20 @@ def __init__(self, arg=None, marker=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.box import (unselected as v_unselected) + from plotly.validators.box import unselected as v_unselected # Initialize validators # --------------------- - self._validators['marker'] = v_unselected.MarkerValidator() + self._validators["marker"] = v_unselected.MarkerValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- @@ -138,11 +136,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -159,17 +157,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'box' + return "box" # Self properties description # --------------------------- @@ -210,7 +208,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -230,23 +228,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.box import (stream as v_stream) + from plotly.validators.box import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -287,17 +285,17 @@ def marker(self): ------- plotly.graph_objs.box.selected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'box' + return "box" # Self properties description # --------------------------- @@ -326,7 +324,7 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__('selected') + super(Selected, self).__init__("selected") # Validate arg # ------------ @@ -346,20 +344,20 @@ def __init__(self, arg=None, marker=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.box import (selected as v_selected) + from plotly.validators.box import selected as v_selected # Initialize validators # --------------------- - self._validators['marker'] = v_selected.MarkerValidator() + self._validators["marker"] = v_selected.MarkerValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- @@ -432,11 +430,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # line # ---- @@ -472,11 +470,11 @@ def line(self): ------- plotly.graph_objs.box.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # opacity # ------- @@ -492,11 +490,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # outliercolor # ------------ @@ -551,11 +549,11 @@ def outliercolor(self): ------- str """ - return self['outliercolor'] + return self["outliercolor"] @outliercolor.setter def outliercolor(self, val): - self['outliercolor'] = val + self["outliercolor"] = val # size # ---- @@ -571,11 +569,11 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # symbol # ------ @@ -655,17 +653,17 @@ def symbol(self): ------- Any """ - return self['symbol'] + return self["symbol"] @symbol.setter def symbol(self, val): - self['symbol'] = val + self["symbol"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'box' + return "box" # Self properties description # --------------------------- @@ -740,7 +738,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -760,35 +758,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.box import (marker as v_marker) + from plotly.validators.box import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['line'] = v_marker.LineValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['outliercolor'] = v_marker.OutliercolorValidator() - self._validators['size'] = v_marker.SizeValidator() - self._validators['symbol'] = v_marker.SymbolValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["line"] = v_marker.LineValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["outliercolor"] = v_marker.OutliercolorValidator() + self._validators["size"] = v_marker.SizeValidator() + self._validators["symbol"] = v_marker.SymbolValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('outliercolor', None) - self['outliercolor'] = outliercolor if outliercolor is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('symbol', None) - self['symbol'] = symbol if symbol is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("outliercolor", None) + self["outliercolor"] = outliercolor if outliercolor is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("symbol", None) + self["symbol"] = symbol if symbol is not None else _v # Process unknown kwargs # ---------------------- @@ -858,11 +856,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # width # ----- @@ -878,17 +876,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'box' + return "box" # Self properties description # --------------------------- @@ -919,7 +917,7 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -939,23 +937,23 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.box import (line as v_line) + from plotly.validators.box import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -990,11 +988,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -1010,11 +1008,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -1070,11 +1068,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -1090,11 +1088,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -1150,11 +1148,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -1170,11 +1168,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -1225,11 +1223,11 @@ def font(self): ------- plotly.graph_objs.box.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -1252,11 +1250,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -1272,17 +1270,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'box' + return "box" # Self properties description # --------------------------- @@ -1374,7 +1372,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -1394,48 +1392,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.box import (hoverlabel as v_hoverlabel) + from plotly.validators.box import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/box/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/box/hoverlabel/__init__.py index a2d9a9c90c3..8986d616d52 100644 --- a/packages/python/plotly/plotly/graph_objs/box/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/box/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'box.hoverlabel' + return "box.hoverlabel" # Self properties description # --------------------------- @@ -262,7 +260,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -282,35 +280,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.box.hoverlabel import (font as v_font) + from plotly.validators.box.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/box/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/box/marker/__init__.py index c3df8028ffb..b5f18dba5bf 100644 --- a/packages/python/plotly/plotly/graph_objs/box/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/box/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -62,11 +60,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # outliercolor # ------------ @@ -122,11 +120,11 @@ def outliercolor(self): ------- str """ - return self['outliercolor'] + return self["outliercolor"] @outliercolor.setter def outliercolor(self, val): - self['outliercolor'] = val + self["outliercolor"] = val # outlierwidth # ------------ @@ -143,11 +141,11 @@ def outlierwidth(self): ------- int|float """ - return self['outlierwidth'] + return self["outlierwidth"] @outlierwidth.setter def outlierwidth(self, val): - self['outlierwidth'] = val + self["outlierwidth"] = val # width # ----- @@ -163,17 +161,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'box.marker' + return "box.marker" # Self properties description # --------------------------- @@ -234,7 +232,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -254,29 +252,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.box.marker import (line as v_line) + from plotly.validators.box.marker import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['outliercolor'] = v_line.OutliercolorValidator() - self._validators['outlierwidth'] = v_line.OutlierwidthValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["outliercolor"] = v_line.OutliercolorValidator() + self._validators["outlierwidth"] = v_line.OutlierwidthValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('outliercolor', None) - self['outliercolor'] = outliercolor if outliercolor is not None else _v - _v = arg.pop('outlierwidth', None) - self['outlierwidth'] = outlierwidth if outlierwidth is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("outliercolor", None) + self["outliercolor"] = outliercolor if outliercolor is not None else _v + _v = arg.pop("outlierwidth", None) + self["outlierwidth"] = outlierwidth if outlierwidth is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/box/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/box/selected/__init__.py index 91918fe1ff5..ddc5da8e7cb 100644 --- a/packages/python/plotly/plotly/graph_objs/box/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/box/selected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -79,11 +77,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -99,17 +97,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'box.selected' + return "box.selected" # Self properties description # --------------------------- @@ -124,9 +122,7 @@ def _prop_descriptions(self): Sets the marker size of selected points. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -146,7 +142,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -166,26 +162,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.box.selected import (marker as v_marker) + from plotly.validators.box.selected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/box/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/box/unselected/__init__.py index 2b2c927a866..e7bc1ca7d44 100644 --- a/packages/python/plotly/plotly/graph_objs/box/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/box/unselected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,11 +58,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -81,11 +79,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -102,17 +100,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'box.unselected' + return "box.unselected" # Self properties description # --------------------------- @@ -130,9 +128,7 @@ def _prop_descriptions(self): when a selection exists. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -155,7 +151,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -175,26 +171,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.box.unselected import (marker as v_marker) + from plotly.validators.box.unselected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/__init__.py b/packages/python/plotly/plotly/graph_objs/candlestick/__init__.py index 43de172dd85..2f4edd510aa 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -22,11 +20,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -43,17 +41,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'candlestick' + return "candlestick" # Self properties description # --------------------------- @@ -94,7 +92,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -114,23 +112,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.candlestick import (stream as v_stream) + from plotly.validators.candlestick import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -163,17 +161,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'candlestick' + return "candlestick" # Self properties description # --------------------------- @@ -206,7 +204,7 @@ def __init__(self, arg=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -226,20 +224,20 @@ def __init__(self, arg=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.candlestick import (line as v_line) + from plotly.validators.candlestick import line as v_line # Initialize validators # --------------------- - self._validators['width'] = v_line.WidthValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -311,11 +309,11 @@ def fillcolor(self): ------- str """ - return self['fillcolor'] + return self["fillcolor"] @fillcolor.setter def fillcolor(self, val): - self['fillcolor'] = val + self["fillcolor"] = val # line # ---- @@ -340,17 +338,17 @@ def line(self): ------- plotly.graph_objs.candlestick.increasing.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'candlestick' + return "candlestick" # Self properties description # --------------------------- @@ -387,7 +385,7 @@ def __init__(self, arg=None, fillcolor=None, line=None, **kwargs): ------- Increasing """ - super(Increasing, self).__init__('increasing') + super(Increasing, self).__init__("increasing") # Validate arg # ------------ @@ -407,23 +405,23 @@ def __init__(self, arg=None, fillcolor=None, line=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.candlestick import (increasing as v_increasing) + from plotly.validators.candlestick import increasing as v_increasing # Initialize validators # --------------------- - self._validators['fillcolor'] = v_increasing.FillcolorValidator() - self._validators['line'] = v_increasing.LineValidator() + self._validators["fillcolor"] = v_increasing.FillcolorValidator() + self._validators["line"] = v_increasing.LineValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fillcolor', None) - self['fillcolor'] = fillcolor if fillcolor is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v + _v = arg.pop("fillcolor", None) + self["fillcolor"] = fillcolor if fillcolor is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v # Process unknown kwargs # ---------------------- @@ -458,11 +456,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -478,11 +476,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -538,11 +536,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -558,11 +556,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -618,11 +616,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -638,11 +636,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -693,11 +691,11 @@ def font(self): ------- plotly.graph_objs.candlestick.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -720,11 +718,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -740,11 +738,11 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # split # ----- @@ -761,17 +759,17 @@ def split(self): ------- bool """ - return self['split'] + return self["split"] @split.setter def split(self, val): - self['split'] = val + self["split"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'candlestick' + return "candlestick" # Self properties description # --------------------------- @@ -870,7 +868,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -890,51 +888,47 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.candlestick import (hoverlabel as v_hoverlabel) + from plotly.validators.candlestick import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() - self._validators['split'] = v_hoverlabel.SplitValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() + self._validators["split"] = v_hoverlabel.SplitValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v - _v = arg.pop('split', None) - self['split'] = split if split is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("split", None) + self["split"] = split if split is not None else _v # Process unknown kwargs # ---------------------- @@ -1006,11 +1000,11 @@ def fillcolor(self): ------- str """ - return self['fillcolor'] + return self["fillcolor"] @fillcolor.setter def fillcolor(self, val): - self['fillcolor'] = val + self["fillcolor"] = val # line # ---- @@ -1035,17 +1029,17 @@ def line(self): ------- plotly.graph_objs.candlestick.decreasing.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'candlestick' + return "candlestick" # Self properties description # --------------------------- @@ -1082,7 +1076,7 @@ def __init__(self, arg=None, fillcolor=None, line=None, **kwargs): ------- Decreasing """ - super(Decreasing, self).__init__('decreasing') + super(Decreasing, self).__init__("decreasing") # Validate arg # ------------ @@ -1102,23 +1096,23 @@ def __init__(self, arg=None, fillcolor=None, line=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.candlestick import (decreasing as v_decreasing) + from plotly.validators.candlestick import decreasing as v_decreasing # Initialize validators # --------------------- - self._validators['fillcolor'] = v_decreasing.FillcolorValidator() - self._validators['line'] = v_decreasing.LineValidator() + self._validators["fillcolor"] = v_decreasing.FillcolorValidator() + self._validators["line"] = v_decreasing.LineValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fillcolor', None) - self['fillcolor'] = fillcolor if fillcolor is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v + _v = arg.pop("fillcolor", None) + self["fillcolor"] = fillcolor if fillcolor is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/decreasing/__init__.py b/packages/python/plotly/plotly/graph_objs/candlestick/decreasing/__init__.py index 8b6e29e4970..59b2214b244 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/decreasing/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/decreasing/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # width # ----- @@ -79,17 +77,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'candlestick.decreasing' + return "candlestick.decreasing" # Self properties description # --------------------------- @@ -121,7 +119,7 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -141,23 +139,23 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.candlestick.decreasing import (line as v_line) + from plotly.validators.candlestick.decreasing import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/candlestick/hoverlabel/__init__.py index 8629cef74af..2cedfe23377 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'candlestick.hoverlabel' + return "candlestick.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.candlestick.hoverlabel import (font as v_font) + from plotly.validators.candlestick.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/candlestick/increasing/__init__.py b/packages/python/plotly/plotly/graph_objs/candlestick/increasing/__init__.py index e98a02b2d0a..f45d6c8543a 100644 --- a/packages/python/plotly/plotly/graph_objs/candlestick/increasing/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/candlestick/increasing/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # width # ----- @@ -79,17 +77,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'candlestick.increasing' + return "candlestick.increasing" # Self properties description # --------------------------- @@ -121,7 +119,7 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -141,23 +139,23 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.candlestick.increasing import (line as v_line) + from plotly.validators.candlestick.increasing import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/__init__.py b/packages/python/plotly/plotly/graph_objs/carpet/__init__.py index 5042c49fc1c..ef43a067191 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -22,11 +20,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -43,17 +41,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'carpet' + return "carpet" # Self properties description # --------------------------- @@ -94,7 +92,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -114,23 +112,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.carpet import (stream as v_stream) + from plotly.validators.carpet import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -165,11 +163,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -185,11 +183,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -245,11 +243,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -265,11 +263,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -325,11 +323,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -345,11 +343,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -400,11 +398,11 @@ def font(self): ------- plotly.graph_objs.carpet.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -427,11 +425,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -447,17 +445,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'carpet' + return "carpet" # Self properties description # --------------------------- @@ -549,7 +547,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -569,48 +567,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.carpet import (hoverlabel as v_hoverlabel) + from plotly.validators.carpet import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -678,11 +672,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -709,11 +703,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -727,17 +721,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'carpet' + return "carpet" # Self properties description # --------------------------- @@ -798,7 +792,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -818,26 +812,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.carpet import (font as v_font) + from plotly.validators.carpet import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- @@ -869,11 +863,11 @@ def arraydtick(self): ------- int """ - return self['arraydtick'] + return self["arraydtick"] @arraydtick.setter def arraydtick(self, val): - self['arraydtick'] = val + self["arraydtick"] = val # arraytick0 # ---------- @@ -890,11 +884,11 @@ def arraytick0(self): ------- int """ - return self['arraytick0'] + return self["arraytick0"] @arraytick0.setter def arraytick0(self, val): - self['arraytick0'] = val + self["arraytick0"] = val # autorange # --------- @@ -913,11 +907,11 @@ def autorange(self): ------- Any """ - return self['autorange'] + return self["autorange"] @autorange.setter def autorange(self, val): - self['autorange'] = val + self["autorange"] = val # categoryarray # ------------- @@ -935,11 +929,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self['categoryarray'] + return self["categoryarray"] @categoryarray.setter def categoryarray(self, val): - self['categoryarray'] = val + self["categoryarray"] = val # categoryarraysrc # ---------------- @@ -955,11 +949,11 @@ def categoryarraysrc(self): ------- str """ - return self['categoryarraysrc'] + return self["categoryarraysrc"] @categoryarraysrc.setter def categoryarraysrc(self, val): - self['categoryarraysrc'] = val + self["categoryarraysrc"] = val # categoryorder # ------------- @@ -987,11 +981,11 @@ def categoryorder(self): ------- Any """ - return self['categoryorder'] + return self["categoryorder"] @categoryorder.setter def categoryorder(self, val): - self['categoryorder'] = val + self["categoryorder"] = val # cheatertype # ----------- @@ -1006,11 +1000,11 @@ def cheatertype(self): ------- Any """ - return self['cheatertype'] + return self["cheatertype"] @cheatertype.setter def cheatertype(self, val): - self['cheatertype'] = val + self["cheatertype"] = val # color # ----- @@ -1068,11 +1062,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dtick # ----- @@ -1088,11 +1082,11 @@ def dtick(self): ------- int|float """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # endline # ------- @@ -1110,11 +1104,11 @@ def endline(self): ------- bool """ - return self['endline'] + return self["endline"] @endline.setter def endline(self, val): - self['endline'] = val + self["endline"] = val # endlinecolor # ------------ @@ -1169,11 +1163,11 @@ def endlinecolor(self): ------- str """ - return self['endlinecolor'] + return self["endlinecolor"] @endlinecolor.setter def endlinecolor(self, val): - self['endlinecolor'] = val + self["endlinecolor"] = val # endlinewidth # ------------ @@ -1189,11 +1183,11 @@ def endlinewidth(self): ------- int|float """ - return self['endlinewidth'] + return self["endlinewidth"] @endlinewidth.setter def endlinewidth(self, val): - self['endlinewidth'] = val + self["endlinewidth"] = val # exponentformat # -------------- @@ -1214,11 +1208,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # fixedrange # ---------- @@ -1235,11 +1229,11 @@ def fixedrange(self): ------- bool """ - return self['fixedrange'] + return self["fixedrange"] @fixedrange.setter def fixedrange(self, val): - self['fixedrange'] = val + self["fixedrange"] = val # gridcolor # --------- @@ -1294,11 +1288,11 @@ def gridcolor(self): ------- str """ - return self['gridcolor'] + return self["gridcolor"] @gridcolor.setter def gridcolor(self, val): - self['gridcolor'] = val + self["gridcolor"] = val # gridwidth # --------- @@ -1314,11 +1308,11 @@ def gridwidth(self): ------- int|float """ - return self['gridwidth'] + return self["gridwidth"] @gridwidth.setter def gridwidth(self, val): - self['gridwidth'] = val + self["gridwidth"] = val # labelpadding # ------------ @@ -1334,11 +1328,11 @@ def labelpadding(self): ------- int """ - return self['labelpadding'] + return self["labelpadding"] @labelpadding.setter def labelpadding(self, val): - self['labelpadding'] = val + self["labelpadding"] = val # labelprefix # ----------- @@ -1355,11 +1349,11 @@ def labelprefix(self): ------- str """ - return self['labelprefix'] + return self["labelprefix"] @labelprefix.setter def labelprefix(self, val): - self['labelprefix'] = val + self["labelprefix"] = val # labelsuffix # ----------- @@ -1376,11 +1370,11 @@ def labelsuffix(self): ------- str """ - return self['labelsuffix'] + return self["labelsuffix"] @labelsuffix.setter def labelsuffix(self, val): - self['labelsuffix'] = val + self["labelsuffix"] = val # linecolor # --------- @@ -1435,11 +1429,11 @@ def linecolor(self): ------- str """ - return self['linecolor'] + return self["linecolor"] @linecolor.setter def linecolor(self, val): - self['linecolor'] = val + self["linecolor"] = val # linewidth # --------- @@ -1455,11 +1449,11 @@ def linewidth(self): ------- int|float """ - return self['linewidth'] + return self["linewidth"] @linewidth.setter def linewidth(self, val): - self['linewidth'] = val + self["linewidth"] = val # minorgridcolor # -------------- @@ -1514,11 +1508,11 @@ def minorgridcolor(self): ------- str """ - return self['minorgridcolor'] + return self["minorgridcolor"] @minorgridcolor.setter def minorgridcolor(self, val): - self['minorgridcolor'] = val + self["minorgridcolor"] = val # minorgridcount # -------------- @@ -1535,11 +1529,11 @@ def minorgridcount(self): ------- int """ - return self['minorgridcount'] + return self["minorgridcount"] @minorgridcount.setter def minorgridcount(self, val): - self['minorgridcount'] = val + self["minorgridcount"] = val # minorgridwidth # -------------- @@ -1555,11 +1549,11 @@ def minorgridwidth(self): ------- int|float """ - return self['minorgridwidth'] + return self["minorgridwidth"] @minorgridwidth.setter def minorgridwidth(self, val): - self['minorgridwidth'] = val + self["minorgridwidth"] = val # nticks # ------ @@ -1579,11 +1573,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # range # ----- @@ -1609,11 +1603,11 @@ def range(self): ------- list """ - return self['range'] + return self["range"] @range.setter def range(self, val): - self['range'] = val + self["range"] = val # rangemode # --------- @@ -1633,11 +1627,11 @@ def rangemode(self): ------- Any """ - return self['rangemode'] + return self["rangemode"] @rangemode.setter def rangemode(self, val): - self['rangemode'] = val + self["rangemode"] = val # separatethousands # ----------------- @@ -1653,11 +1647,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1677,11 +1671,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showgrid # -------- @@ -1698,11 +1692,11 @@ def showgrid(self): ------- bool """ - return self['showgrid'] + return self["showgrid"] @showgrid.setter def showgrid(self, val): - self['showgrid'] = val + self["showgrid"] = val # showline # -------- @@ -1718,11 +1712,11 @@ def showline(self): ------- bool """ - return self['showline'] + return self["showline"] @showline.setter def showline(self, val): - self['showline'] = val + self["showline"] = val # showticklabels # -------------- @@ -1740,11 +1734,11 @@ def showticklabels(self): ------- Any """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1764,11 +1758,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1785,11 +1779,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # smoothing # --------- @@ -1803,11 +1797,11 @@ def smoothing(self): ------- int|float """ - return self['smoothing'] + return self["smoothing"] @smoothing.setter def smoothing(self, val): - self['smoothing'] = val + self["smoothing"] = val # startline # --------- @@ -1825,11 +1819,11 @@ def startline(self): ------- bool """ - return self['startline'] + return self["startline"] @startline.setter def startline(self, val): - self['startline'] = val + self["startline"] = val # startlinecolor # -------------- @@ -1884,11 +1878,11 @@ def startlinecolor(self): ------- str """ - return self['startlinecolor'] + return self["startlinecolor"] @startlinecolor.setter def startlinecolor(self, val): - self['startlinecolor'] = val + self["startlinecolor"] = val # startlinewidth # -------------- @@ -1904,11 +1898,11 @@ def startlinewidth(self): ------- int|float """ - return self['startlinewidth'] + return self["startlinewidth"] @startlinewidth.setter def startlinewidth(self, val): - self['startlinewidth'] = val + self["startlinewidth"] = val # tick0 # ----- @@ -1924,11 +1918,11 @@ def tick0(self): ------- int|float """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1948,11 +1942,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickfont # -------- @@ -1993,11 +1987,11 @@ def tickfont(self): ------- plotly.graph_objs.carpet.baxis.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -2022,11 +2016,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -2079,11 +2073,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.carpet.baxis.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -2107,11 +2101,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.carpet.baxis.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # tickmode # -------- @@ -2126,11 +2120,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -2147,11 +2141,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticksuffix # ---------- @@ -2168,11 +2162,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -2190,11 +2184,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -2210,11 +2204,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -2231,11 +2225,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -2251,11 +2245,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # title # ----- @@ -2290,11 +2284,11 @@ def title(self): ------- plotly.graph_objs.carpet.baxis.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -2337,11 +2331,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleoffset # ----------- @@ -2360,11 +2354,11 @@ def titleoffset(self): ------- """ - return self['titleoffset'] + return self["titleoffset"] @titleoffset.setter def titleoffset(self, val): - self['titleoffset'] = val + self["titleoffset"] = val # type # ---- @@ -2383,17 +2377,17 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'carpet' + return "carpet" # Self properties description # --------------------------- @@ -2597,8 +2591,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleoffset': ('title', 'offset') + "titlefont": ("title", "font"), + "titleoffset": ("title", "offset"), } def __init__( @@ -2868,7 +2862,7 @@ def __init__( ------- Baxis """ - super(Baxis, self).__init__('baxis') + super(Baxis, self).__init__("baxis") # Validate arg # ------------ @@ -2888,204 +2882,190 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.carpet import (baxis as v_baxis) + from plotly.validators.carpet import baxis as v_baxis # Initialize validators # --------------------- - self._validators['arraydtick'] = v_baxis.ArraydtickValidator() - self._validators['arraytick0'] = v_baxis.Arraytick0Validator() - self._validators['autorange'] = v_baxis.AutorangeValidator() - self._validators['categoryarray'] = v_baxis.CategoryarrayValidator() - self._validators['categoryarraysrc' - ] = v_baxis.CategoryarraysrcValidator() - self._validators['categoryorder'] = v_baxis.CategoryorderValidator() - self._validators['cheatertype'] = v_baxis.CheatertypeValidator() - self._validators['color'] = v_baxis.ColorValidator() - self._validators['dtick'] = v_baxis.DtickValidator() - self._validators['endline'] = v_baxis.EndlineValidator() - self._validators['endlinecolor'] = v_baxis.EndlinecolorValidator() - self._validators['endlinewidth'] = v_baxis.EndlinewidthValidator() - self._validators['exponentformat'] = v_baxis.ExponentformatValidator() - self._validators['fixedrange'] = v_baxis.FixedrangeValidator() - self._validators['gridcolor'] = v_baxis.GridcolorValidator() - self._validators['gridwidth'] = v_baxis.GridwidthValidator() - self._validators['labelpadding'] = v_baxis.LabelpaddingValidator() - self._validators['labelprefix'] = v_baxis.LabelprefixValidator() - self._validators['labelsuffix'] = v_baxis.LabelsuffixValidator() - self._validators['linecolor'] = v_baxis.LinecolorValidator() - self._validators['linewidth'] = v_baxis.LinewidthValidator() - self._validators['minorgridcolor'] = v_baxis.MinorgridcolorValidator() - self._validators['minorgridcount'] = v_baxis.MinorgridcountValidator() - self._validators['minorgridwidth'] = v_baxis.MinorgridwidthValidator() - self._validators['nticks'] = v_baxis.NticksValidator() - self._validators['range'] = v_baxis.RangeValidator() - self._validators['rangemode'] = v_baxis.RangemodeValidator() - self._validators['separatethousands' - ] = v_baxis.SeparatethousandsValidator() - self._validators['showexponent'] = v_baxis.ShowexponentValidator() - self._validators['showgrid'] = v_baxis.ShowgridValidator() - self._validators['showline'] = v_baxis.ShowlineValidator() - self._validators['showticklabels'] = v_baxis.ShowticklabelsValidator() - self._validators['showtickprefix'] = v_baxis.ShowtickprefixValidator() - self._validators['showticksuffix'] = v_baxis.ShowticksuffixValidator() - self._validators['smoothing'] = v_baxis.SmoothingValidator() - self._validators['startline'] = v_baxis.StartlineValidator() - self._validators['startlinecolor'] = v_baxis.StartlinecolorValidator() - self._validators['startlinewidth'] = v_baxis.StartlinewidthValidator() - self._validators['tick0'] = v_baxis.Tick0Validator() - self._validators['tickangle'] = v_baxis.TickangleValidator() - self._validators['tickfont'] = v_baxis.TickfontValidator() - self._validators['tickformat'] = v_baxis.TickformatValidator() - self._validators['tickformatstops'] = v_baxis.TickformatstopsValidator( - ) - self._validators['tickformatstopdefaults' - ] = v_baxis.TickformatstopValidator() - self._validators['tickmode'] = v_baxis.TickmodeValidator() - self._validators['tickprefix'] = v_baxis.TickprefixValidator() - self._validators['ticksuffix'] = v_baxis.TicksuffixValidator() - self._validators['ticktext'] = v_baxis.TicktextValidator() - self._validators['ticktextsrc'] = v_baxis.TicktextsrcValidator() - self._validators['tickvals'] = v_baxis.TickvalsValidator() - self._validators['tickvalssrc'] = v_baxis.TickvalssrcValidator() - self._validators['title'] = v_baxis.TitleValidator() - self._validators['type'] = v_baxis.TypeValidator() + self._validators["arraydtick"] = v_baxis.ArraydtickValidator() + self._validators["arraytick0"] = v_baxis.Arraytick0Validator() + self._validators["autorange"] = v_baxis.AutorangeValidator() + self._validators["categoryarray"] = v_baxis.CategoryarrayValidator() + self._validators["categoryarraysrc"] = v_baxis.CategoryarraysrcValidator() + self._validators["categoryorder"] = v_baxis.CategoryorderValidator() + self._validators["cheatertype"] = v_baxis.CheatertypeValidator() + self._validators["color"] = v_baxis.ColorValidator() + self._validators["dtick"] = v_baxis.DtickValidator() + self._validators["endline"] = v_baxis.EndlineValidator() + self._validators["endlinecolor"] = v_baxis.EndlinecolorValidator() + self._validators["endlinewidth"] = v_baxis.EndlinewidthValidator() + self._validators["exponentformat"] = v_baxis.ExponentformatValidator() + self._validators["fixedrange"] = v_baxis.FixedrangeValidator() + self._validators["gridcolor"] = v_baxis.GridcolorValidator() + self._validators["gridwidth"] = v_baxis.GridwidthValidator() + self._validators["labelpadding"] = v_baxis.LabelpaddingValidator() + self._validators["labelprefix"] = v_baxis.LabelprefixValidator() + self._validators["labelsuffix"] = v_baxis.LabelsuffixValidator() + self._validators["linecolor"] = v_baxis.LinecolorValidator() + self._validators["linewidth"] = v_baxis.LinewidthValidator() + self._validators["minorgridcolor"] = v_baxis.MinorgridcolorValidator() + self._validators["minorgridcount"] = v_baxis.MinorgridcountValidator() + self._validators["minorgridwidth"] = v_baxis.MinorgridwidthValidator() + self._validators["nticks"] = v_baxis.NticksValidator() + self._validators["range"] = v_baxis.RangeValidator() + self._validators["rangemode"] = v_baxis.RangemodeValidator() + self._validators["separatethousands"] = v_baxis.SeparatethousandsValidator() + self._validators["showexponent"] = v_baxis.ShowexponentValidator() + self._validators["showgrid"] = v_baxis.ShowgridValidator() + self._validators["showline"] = v_baxis.ShowlineValidator() + self._validators["showticklabels"] = v_baxis.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_baxis.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_baxis.ShowticksuffixValidator() + self._validators["smoothing"] = v_baxis.SmoothingValidator() + self._validators["startline"] = v_baxis.StartlineValidator() + self._validators["startlinecolor"] = v_baxis.StartlinecolorValidator() + self._validators["startlinewidth"] = v_baxis.StartlinewidthValidator() + self._validators["tick0"] = v_baxis.Tick0Validator() + self._validators["tickangle"] = v_baxis.TickangleValidator() + self._validators["tickfont"] = v_baxis.TickfontValidator() + self._validators["tickformat"] = v_baxis.TickformatValidator() + self._validators["tickformatstops"] = v_baxis.TickformatstopsValidator() + self._validators["tickformatstopdefaults"] = v_baxis.TickformatstopValidator() + self._validators["tickmode"] = v_baxis.TickmodeValidator() + self._validators["tickprefix"] = v_baxis.TickprefixValidator() + self._validators["ticksuffix"] = v_baxis.TicksuffixValidator() + self._validators["ticktext"] = v_baxis.TicktextValidator() + self._validators["ticktextsrc"] = v_baxis.TicktextsrcValidator() + self._validators["tickvals"] = v_baxis.TickvalsValidator() + self._validators["tickvalssrc"] = v_baxis.TickvalssrcValidator() + self._validators["title"] = v_baxis.TitleValidator() + self._validators["type"] = v_baxis.TypeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('arraydtick', None) - self['arraydtick'] = arraydtick if arraydtick is not None else _v - _v = arg.pop('arraytick0', None) - self['arraytick0'] = arraytick0 if arraytick0 is not None else _v - _v = arg.pop('autorange', None) - self['autorange'] = autorange if autorange is not None else _v - _v = arg.pop('categoryarray', None) - self['categoryarray' - ] = categoryarray if categoryarray is not None else _v - _v = arg.pop('categoryarraysrc', None) - self['categoryarraysrc' - ] = categoryarraysrc if categoryarraysrc is not None else _v - _v = arg.pop('categoryorder', None) - self['categoryorder' - ] = categoryorder if categoryorder is not None else _v - _v = arg.pop('cheatertype', None) - self['cheatertype'] = cheatertype if cheatertype is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('endline', None) - self['endline'] = endline if endline is not None else _v - _v = arg.pop('endlinecolor', None) - self['endlinecolor'] = endlinecolor if endlinecolor is not None else _v - _v = arg.pop('endlinewidth', None) - self['endlinewidth'] = endlinewidth if endlinewidth is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('fixedrange', None) - self['fixedrange'] = fixedrange if fixedrange is not None else _v - _v = arg.pop('gridcolor', None) - self['gridcolor'] = gridcolor if gridcolor is not None else _v - _v = arg.pop('gridwidth', None) - self['gridwidth'] = gridwidth if gridwidth is not None else _v - _v = arg.pop('labelpadding', None) - self['labelpadding'] = labelpadding if labelpadding is not None else _v - _v = arg.pop('labelprefix', None) - self['labelprefix'] = labelprefix if labelprefix is not None else _v - _v = arg.pop('labelsuffix', None) - self['labelsuffix'] = labelsuffix if labelsuffix is not None else _v - _v = arg.pop('linecolor', None) - self['linecolor'] = linecolor if linecolor is not None else _v - _v = arg.pop('linewidth', None) - self['linewidth'] = linewidth if linewidth is not None else _v - _v = arg.pop('minorgridcolor', None) - self['minorgridcolor' - ] = minorgridcolor if minorgridcolor is not None else _v - _v = arg.pop('minorgridcount', None) - self['minorgridcount' - ] = minorgridcount if minorgridcount is not None else _v - _v = arg.pop('minorgridwidth', None) - self['minorgridwidth' - ] = minorgridwidth if minorgridwidth is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('range', None) - self['range'] = range if range is not None else _v - _v = arg.pop('rangemode', None) - self['rangemode'] = rangemode if rangemode is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showgrid', None) - self['showgrid'] = showgrid if showgrid is not None else _v - _v = arg.pop('showline', None) - self['showline'] = showline if showline is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('smoothing', None) - self['smoothing'] = smoothing if smoothing is not None else _v - _v = arg.pop('startline', None) - self['startline'] = startline if startline is not None else _v - _v = arg.pop('startlinecolor', None) - self['startlinecolor' - ] = startlinecolor if startlinecolor is not None else _v - _v = arg.pop('startlinewidth', None) - self['startlinewidth' - ] = startlinewidth if startlinewidth is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("arraydtick", None) + self["arraydtick"] = arraydtick if arraydtick is not None else _v + _v = arg.pop("arraytick0", None) + self["arraytick0"] = arraytick0 if arraytick0 is not None else _v + _v = arg.pop("autorange", None) + self["autorange"] = autorange if autorange is not None else _v + _v = arg.pop("categoryarray", None) + self["categoryarray"] = categoryarray if categoryarray is not None else _v + _v = arg.pop("categoryarraysrc", None) + self["categoryarraysrc"] = ( + categoryarraysrc if categoryarraysrc is not None else _v + ) + _v = arg.pop("categoryorder", None) + self["categoryorder"] = categoryorder if categoryorder is not None else _v + _v = arg.pop("cheatertype", None) + self["cheatertype"] = cheatertype if cheatertype is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("endline", None) + self["endline"] = endline if endline is not None else _v + _v = arg.pop("endlinecolor", None) + self["endlinecolor"] = endlinecolor if endlinecolor is not None else _v + _v = arg.pop("endlinewidth", None) + self["endlinewidth"] = endlinewidth if endlinewidth is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("fixedrange", None) + self["fixedrange"] = fixedrange if fixedrange is not None else _v + _v = arg.pop("gridcolor", None) + self["gridcolor"] = gridcolor if gridcolor is not None else _v + _v = arg.pop("gridwidth", None) + self["gridwidth"] = gridwidth if gridwidth is not None else _v + _v = arg.pop("labelpadding", None) + self["labelpadding"] = labelpadding if labelpadding is not None else _v + _v = arg.pop("labelprefix", None) + self["labelprefix"] = labelprefix if labelprefix is not None else _v + _v = arg.pop("labelsuffix", None) + self["labelsuffix"] = labelsuffix if labelsuffix is not None else _v + _v = arg.pop("linecolor", None) + self["linecolor"] = linecolor if linecolor is not None else _v + _v = arg.pop("linewidth", None) + self["linewidth"] = linewidth if linewidth is not None else _v + _v = arg.pop("minorgridcolor", None) + self["minorgridcolor"] = minorgridcolor if minorgridcolor is not None else _v + _v = arg.pop("minorgridcount", None) + self["minorgridcount"] = minorgridcount if minorgridcount is not None else _v + _v = arg.pop("minorgridwidth", None) + self["minorgridwidth"] = minorgridwidth if minorgridwidth is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("range", None) + self["range"] = range if range is not None else _v + _v = arg.pop("rangemode", None) + self["rangemode"] = rangemode if rangemode is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showgrid", None) + self["showgrid"] = showgrid if showgrid is not None else _v + _v = arg.pop("showline", None) + self["showline"] = showline if showline is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("smoothing", None) + self["smoothing"] = smoothing if smoothing is not None else _v + _v = arg.pop("startline", None) + self["startline"] = startline if startline is not None else _v + _v = arg.pop("startlinecolor", None) + self["startlinecolor"] = startlinecolor if startlinecolor is not None else _v + _v = arg.pop("startlinewidth", None) + self["startlinewidth"] = startlinewidth if startlinewidth is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleoffset', None) + self["titlefont"] = _v + _v = arg.pop("titleoffset", None) _v = titleoffset if titleoffset is not None else _v if _v is not None: - self['titleoffset'] = _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v + self["titleoffset"] = _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v # Process unknown kwargs # ---------------------- @@ -3117,11 +3097,11 @@ def arraydtick(self): ------- int """ - return self['arraydtick'] + return self["arraydtick"] @arraydtick.setter def arraydtick(self, val): - self['arraydtick'] = val + self["arraydtick"] = val # arraytick0 # ---------- @@ -3138,11 +3118,11 @@ def arraytick0(self): ------- int """ - return self['arraytick0'] + return self["arraytick0"] @arraytick0.setter def arraytick0(self, val): - self['arraytick0'] = val + self["arraytick0"] = val # autorange # --------- @@ -3161,11 +3141,11 @@ def autorange(self): ------- Any """ - return self['autorange'] + return self["autorange"] @autorange.setter def autorange(self, val): - self['autorange'] = val + self["autorange"] = val # categoryarray # ------------- @@ -3183,11 +3163,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self['categoryarray'] + return self["categoryarray"] @categoryarray.setter def categoryarray(self, val): - self['categoryarray'] = val + self["categoryarray"] = val # categoryarraysrc # ---------------- @@ -3203,11 +3183,11 @@ def categoryarraysrc(self): ------- str """ - return self['categoryarraysrc'] + return self["categoryarraysrc"] @categoryarraysrc.setter def categoryarraysrc(self, val): - self['categoryarraysrc'] = val + self["categoryarraysrc"] = val # categoryorder # ------------- @@ -3235,11 +3215,11 @@ def categoryorder(self): ------- Any """ - return self['categoryorder'] + return self["categoryorder"] @categoryorder.setter def categoryorder(self, val): - self['categoryorder'] = val + self["categoryorder"] = val # cheatertype # ----------- @@ -3254,11 +3234,11 @@ def cheatertype(self): ------- Any """ - return self['cheatertype'] + return self["cheatertype"] @cheatertype.setter def cheatertype(self, val): - self['cheatertype'] = val + self["cheatertype"] = val # color # ----- @@ -3316,11 +3296,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dtick # ----- @@ -3336,11 +3316,11 @@ def dtick(self): ------- int|float """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # endline # ------- @@ -3358,11 +3338,11 @@ def endline(self): ------- bool """ - return self['endline'] + return self["endline"] @endline.setter def endline(self, val): - self['endline'] = val + self["endline"] = val # endlinecolor # ------------ @@ -3417,11 +3397,11 @@ def endlinecolor(self): ------- str """ - return self['endlinecolor'] + return self["endlinecolor"] @endlinecolor.setter def endlinecolor(self, val): - self['endlinecolor'] = val + self["endlinecolor"] = val # endlinewidth # ------------ @@ -3437,11 +3417,11 @@ def endlinewidth(self): ------- int|float """ - return self['endlinewidth'] + return self["endlinewidth"] @endlinewidth.setter def endlinewidth(self, val): - self['endlinewidth'] = val + self["endlinewidth"] = val # exponentformat # -------------- @@ -3462,11 +3442,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # fixedrange # ---------- @@ -3483,11 +3463,11 @@ def fixedrange(self): ------- bool """ - return self['fixedrange'] + return self["fixedrange"] @fixedrange.setter def fixedrange(self, val): - self['fixedrange'] = val + self["fixedrange"] = val # gridcolor # --------- @@ -3542,11 +3522,11 @@ def gridcolor(self): ------- str """ - return self['gridcolor'] + return self["gridcolor"] @gridcolor.setter def gridcolor(self, val): - self['gridcolor'] = val + self["gridcolor"] = val # gridwidth # --------- @@ -3562,11 +3542,11 @@ def gridwidth(self): ------- int|float """ - return self['gridwidth'] + return self["gridwidth"] @gridwidth.setter def gridwidth(self, val): - self['gridwidth'] = val + self["gridwidth"] = val # labelpadding # ------------ @@ -3582,11 +3562,11 @@ def labelpadding(self): ------- int """ - return self['labelpadding'] + return self["labelpadding"] @labelpadding.setter def labelpadding(self, val): - self['labelpadding'] = val + self["labelpadding"] = val # labelprefix # ----------- @@ -3603,11 +3583,11 @@ def labelprefix(self): ------- str """ - return self['labelprefix'] + return self["labelprefix"] @labelprefix.setter def labelprefix(self, val): - self['labelprefix'] = val + self["labelprefix"] = val # labelsuffix # ----------- @@ -3624,11 +3604,11 @@ def labelsuffix(self): ------- str """ - return self['labelsuffix'] + return self["labelsuffix"] @labelsuffix.setter def labelsuffix(self, val): - self['labelsuffix'] = val + self["labelsuffix"] = val # linecolor # --------- @@ -3683,11 +3663,11 @@ def linecolor(self): ------- str """ - return self['linecolor'] + return self["linecolor"] @linecolor.setter def linecolor(self, val): - self['linecolor'] = val + self["linecolor"] = val # linewidth # --------- @@ -3703,11 +3683,11 @@ def linewidth(self): ------- int|float """ - return self['linewidth'] + return self["linewidth"] @linewidth.setter def linewidth(self, val): - self['linewidth'] = val + self["linewidth"] = val # minorgridcolor # -------------- @@ -3762,11 +3742,11 @@ def minorgridcolor(self): ------- str """ - return self['minorgridcolor'] + return self["minorgridcolor"] @minorgridcolor.setter def minorgridcolor(self, val): - self['minorgridcolor'] = val + self["minorgridcolor"] = val # minorgridcount # -------------- @@ -3783,11 +3763,11 @@ def minorgridcount(self): ------- int """ - return self['minorgridcount'] + return self["minorgridcount"] @minorgridcount.setter def minorgridcount(self, val): - self['minorgridcount'] = val + self["minorgridcount"] = val # minorgridwidth # -------------- @@ -3803,11 +3783,11 @@ def minorgridwidth(self): ------- int|float """ - return self['minorgridwidth'] + return self["minorgridwidth"] @minorgridwidth.setter def minorgridwidth(self, val): - self['minorgridwidth'] = val + self["minorgridwidth"] = val # nticks # ------ @@ -3827,11 +3807,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # range # ----- @@ -3857,11 +3837,11 @@ def range(self): ------- list """ - return self['range'] + return self["range"] @range.setter def range(self, val): - self['range'] = val + self["range"] = val # rangemode # --------- @@ -3881,11 +3861,11 @@ def rangemode(self): ------- Any """ - return self['rangemode'] + return self["rangemode"] @rangemode.setter def rangemode(self, val): - self['rangemode'] = val + self["rangemode"] = val # separatethousands # ----------------- @@ -3901,11 +3881,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -3925,11 +3905,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showgrid # -------- @@ -3946,11 +3926,11 @@ def showgrid(self): ------- bool """ - return self['showgrid'] + return self["showgrid"] @showgrid.setter def showgrid(self, val): - self['showgrid'] = val + self["showgrid"] = val # showline # -------- @@ -3966,11 +3946,11 @@ def showline(self): ------- bool """ - return self['showline'] + return self["showline"] @showline.setter def showline(self, val): - self['showline'] = val + self["showline"] = val # showticklabels # -------------- @@ -3988,11 +3968,11 @@ def showticklabels(self): ------- Any """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -4012,11 +3992,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -4033,11 +4013,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # smoothing # --------- @@ -4051,11 +4031,11 @@ def smoothing(self): ------- int|float """ - return self['smoothing'] + return self["smoothing"] @smoothing.setter def smoothing(self, val): - self['smoothing'] = val + self["smoothing"] = val # startline # --------- @@ -4073,11 +4053,11 @@ def startline(self): ------- bool """ - return self['startline'] + return self["startline"] @startline.setter def startline(self, val): - self['startline'] = val + self["startline"] = val # startlinecolor # -------------- @@ -4132,11 +4112,11 @@ def startlinecolor(self): ------- str """ - return self['startlinecolor'] + return self["startlinecolor"] @startlinecolor.setter def startlinecolor(self, val): - self['startlinecolor'] = val + self["startlinecolor"] = val # startlinewidth # -------------- @@ -4152,11 +4132,11 @@ def startlinewidth(self): ------- int|float """ - return self['startlinewidth'] + return self["startlinewidth"] @startlinewidth.setter def startlinewidth(self, val): - self['startlinewidth'] = val + self["startlinewidth"] = val # tick0 # ----- @@ -4172,11 +4152,11 @@ def tick0(self): ------- int|float """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -4196,11 +4176,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickfont # -------- @@ -4241,11 +4221,11 @@ def tickfont(self): ------- plotly.graph_objs.carpet.aaxis.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -4270,11 +4250,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -4327,11 +4307,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.carpet.aaxis.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -4355,11 +4335,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.carpet.aaxis.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # tickmode # -------- @@ -4374,11 +4354,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -4395,11 +4375,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticksuffix # ---------- @@ -4416,11 +4396,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -4438,11 +4418,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -4458,11 +4438,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -4479,11 +4459,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -4499,11 +4479,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # title # ----- @@ -4538,11 +4518,11 @@ def title(self): ------- plotly.graph_objs.carpet.aaxis.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -4585,11 +4565,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleoffset # ----------- @@ -4608,11 +4588,11 @@ def titleoffset(self): ------- """ - return self['titleoffset'] + return self["titleoffset"] @titleoffset.setter def titleoffset(self, val): - self['titleoffset'] = val + self["titleoffset"] = val # type # ---- @@ -4631,17 +4611,17 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'carpet' + return "carpet" # Self properties description # --------------------------- @@ -4845,8 +4825,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleoffset': ('title', 'offset') + "titlefont": ("title", "font"), + "titleoffset": ("title", "offset"), } def __init__( @@ -5116,7 +5096,7 @@ def __init__( ------- Aaxis """ - super(Aaxis, self).__init__('aaxis') + super(Aaxis, self).__init__("aaxis") # Validate arg # ------------ @@ -5136,204 +5116,190 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.carpet import (aaxis as v_aaxis) + from plotly.validators.carpet import aaxis as v_aaxis # Initialize validators # --------------------- - self._validators['arraydtick'] = v_aaxis.ArraydtickValidator() - self._validators['arraytick0'] = v_aaxis.Arraytick0Validator() - self._validators['autorange'] = v_aaxis.AutorangeValidator() - self._validators['categoryarray'] = v_aaxis.CategoryarrayValidator() - self._validators['categoryarraysrc' - ] = v_aaxis.CategoryarraysrcValidator() - self._validators['categoryorder'] = v_aaxis.CategoryorderValidator() - self._validators['cheatertype'] = v_aaxis.CheatertypeValidator() - self._validators['color'] = v_aaxis.ColorValidator() - self._validators['dtick'] = v_aaxis.DtickValidator() - self._validators['endline'] = v_aaxis.EndlineValidator() - self._validators['endlinecolor'] = v_aaxis.EndlinecolorValidator() - self._validators['endlinewidth'] = v_aaxis.EndlinewidthValidator() - self._validators['exponentformat'] = v_aaxis.ExponentformatValidator() - self._validators['fixedrange'] = v_aaxis.FixedrangeValidator() - self._validators['gridcolor'] = v_aaxis.GridcolorValidator() - self._validators['gridwidth'] = v_aaxis.GridwidthValidator() - self._validators['labelpadding'] = v_aaxis.LabelpaddingValidator() - self._validators['labelprefix'] = v_aaxis.LabelprefixValidator() - self._validators['labelsuffix'] = v_aaxis.LabelsuffixValidator() - self._validators['linecolor'] = v_aaxis.LinecolorValidator() - self._validators['linewidth'] = v_aaxis.LinewidthValidator() - self._validators['minorgridcolor'] = v_aaxis.MinorgridcolorValidator() - self._validators['minorgridcount'] = v_aaxis.MinorgridcountValidator() - self._validators['minorgridwidth'] = v_aaxis.MinorgridwidthValidator() - self._validators['nticks'] = v_aaxis.NticksValidator() - self._validators['range'] = v_aaxis.RangeValidator() - self._validators['rangemode'] = v_aaxis.RangemodeValidator() - self._validators['separatethousands' - ] = v_aaxis.SeparatethousandsValidator() - self._validators['showexponent'] = v_aaxis.ShowexponentValidator() - self._validators['showgrid'] = v_aaxis.ShowgridValidator() - self._validators['showline'] = v_aaxis.ShowlineValidator() - self._validators['showticklabels'] = v_aaxis.ShowticklabelsValidator() - self._validators['showtickprefix'] = v_aaxis.ShowtickprefixValidator() - self._validators['showticksuffix'] = v_aaxis.ShowticksuffixValidator() - self._validators['smoothing'] = v_aaxis.SmoothingValidator() - self._validators['startline'] = v_aaxis.StartlineValidator() - self._validators['startlinecolor'] = v_aaxis.StartlinecolorValidator() - self._validators['startlinewidth'] = v_aaxis.StartlinewidthValidator() - self._validators['tick0'] = v_aaxis.Tick0Validator() - self._validators['tickangle'] = v_aaxis.TickangleValidator() - self._validators['tickfont'] = v_aaxis.TickfontValidator() - self._validators['tickformat'] = v_aaxis.TickformatValidator() - self._validators['tickformatstops'] = v_aaxis.TickformatstopsValidator( - ) - self._validators['tickformatstopdefaults' - ] = v_aaxis.TickformatstopValidator() - self._validators['tickmode'] = v_aaxis.TickmodeValidator() - self._validators['tickprefix'] = v_aaxis.TickprefixValidator() - self._validators['ticksuffix'] = v_aaxis.TicksuffixValidator() - self._validators['ticktext'] = v_aaxis.TicktextValidator() - self._validators['ticktextsrc'] = v_aaxis.TicktextsrcValidator() - self._validators['tickvals'] = v_aaxis.TickvalsValidator() - self._validators['tickvalssrc'] = v_aaxis.TickvalssrcValidator() - self._validators['title'] = v_aaxis.TitleValidator() - self._validators['type'] = v_aaxis.TypeValidator() + self._validators["arraydtick"] = v_aaxis.ArraydtickValidator() + self._validators["arraytick0"] = v_aaxis.Arraytick0Validator() + self._validators["autorange"] = v_aaxis.AutorangeValidator() + self._validators["categoryarray"] = v_aaxis.CategoryarrayValidator() + self._validators["categoryarraysrc"] = v_aaxis.CategoryarraysrcValidator() + self._validators["categoryorder"] = v_aaxis.CategoryorderValidator() + self._validators["cheatertype"] = v_aaxis.CheatertypeValidator() + self._validators["color"] = v_aaxis.ColorValidator() + self._validators["dtick"] = v_aaxis.DtickValidator() + self._validators["endline"] = v_aaxis.EndlineValidator() + self._validators["endlinecolor"] = v_aaxis.EndlinecolorValidator() + self._validators["endlinewidth"] = v_aaxis.EndlinewidthValidator() + self._validators["exponentformat"] = v_aaxis.ExponentformatValidator() + self._validators["fixedrange"] = v_aaxis.FixedrangeValidator() + self._validators["gridcolor"] = v_aaxis.GridcolorValidator() + self._validators["gridwidth"] = v_aaxis.GridwidthValidator() + self._validators["labelpadding"] = v_aaxis.LabelpaddingValidator() + self._validators["labelprefix"] = v_aaxis.LabelprefixValidator() + self._validators["labelsuffix"] = v_aaxis.LabelsuffixValidator() + self._validators["linecolor"] = v_aaxis.LinecolorValidator() + self._validators["linewidth"] = v_aaxis.LinewidthValidator() + self._validators["minorgridcolor"] = v_aaxis.MinorgridcolorValidator() + self._validators["minorgridcount"] = v_aaxis.MinorgridcountValidator() + self._validators["minorgridwidth"] = v_aaxis.MinorgridwidthValidator() + self._validators["nticks"] = v_aaxis.NticksValidator() + self._validators["range"] = v_aaxis.RangeValidator() + self._validators["rangemode"] = v_aaxis.RangemodeValidator() + self._validators["separatethousands"] = v_aaxis.SeparatethousandsValidator() + self._validators["showexponent"] = v_aaxis.ShowexponentValidator() + self._validators["showgrid"] = v_aaxis.ShowgridValidator() + self._validators["showline"] = v_aaxis.ShowlineValidator() + self._validators["showticklabels"] = v_aaxis.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_aaxis.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_aaxis.ShowticksuffixValidator() + self._validators["smoothing"] = v_aaxis.SmoothingValidator() + self._validators["startline"] = v_aaxis.StartlineValidator() + self._validators["startlinecolor"] = v_aaxis.StartlinecolorValidator() + self._validators["startlinewidth"] = v_aaxis.StartlinewidthValidator() + self._validators["tick0"] = v_aaxis.Tick0Validator() + self._validators["tickangle"] = v_aaxis.TickangleValidator() + self._validators["tickfont"] = v_aaxis.TickfontValidator() + self._validators["tickformat"] = v_aaxis.TickformatValidator() + self._validators["tickformatstops"] = v_aaxis.TickformatstopsValidator() + self._validators["tickformatstopdefaults"] = v_aaxis.TickformatstopValidator() + self._validators["tickmode"] = v_aaxis.TickmodeValidator() + self._validators["tickprefix"] = v_aaxis.TickprefixValidator() + self._validators["ticksuffix"] = v_aaxis.TicksuffixValidator() + self._validators["ticktext"] = v_aaxis.TicktextValidator() + self._validators["ticktextsrc"] = v_aaxis.TicktextsrcValidator() + self._validators["tickvals"] = v_aaxis.TickvalsValidator() + self._validators["tickvalssrc"] = v_aaxis.TickvalssrcValidator() + self._validators["title"] = v_aaxis.TitleValidator() + self._validators["type"] = v_aaxis.TypeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('arraydtick', None) - self['arraydtick'] = arraydtick if arraydtick is not None else _v - _v = arg.pop('arraytick0', None) - self['arraytick0'] = arraytick0 if arraytick0 is not None else _v - _v = arg.pop('autorange', None) - self['autorange'] = autorange if autorange is not None else _v - _v = arg.pop('categoryarray', None) - self['categoryarray' - ] = categoryarray if categoryarray is not None else _v - _v = arg.pop('categoryarraysrc', None) - self['categoryarraysrc' - ] = categoryarraysrc if categoryarraysrc is not None else _v - _v = arg.pop('categoryorder', None) - self['categoryorder' - ] = categoryorder if categoryorder is not None else _v - _v = arg.pop('cheatertype', None) - self['cheatertype'] = cheatertype if cheatertype is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('endline', None) - self['endline'] = endline if endline is not None else _v - _v = arg.pop('endlinecolor', None) - self['endlinecolor'] = endlinecolor if endlinecolor is not None else _v - _v = arg.pop('endlinewidth', None) - self['endlinewidth'] = endlinewidth if endlinewidth is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('fixedrange', None) - self['fixedrange'] = fixedrange if fixedrange is not None else _v - _v = arg.pop('gridcolor', None) - self['gridcolor'] = gridcolor if gridcolor is not None else _v - _v = arg.pop('gridwidth', None) - self['gridwidth'] = gridwidth if gridwidth is not None else _v - _v = arg.pop('labelpadding', None) - self['labelpadding'] = labelpadding if labelpadding is not None else _v - _v = arg.pop('labelprefix', None) - self['labelprefix'] = labelprefix if labelprefix is not None else _v - _v = arg.pop('labelsuffix', None) - self['labelsuffix'] = labelsuffix if labelsuffix is not None else _v - _v = arg.pop('linecolor', None) - self['linecolor'] = linecolor if linecolor is not None else _v - _v = arg.pop('linewidth', None) - self['linewidth'] = linewidth if linewidth is not None else _v - _v = arg.pop('minorgridcolor', None) - self['minorgridcolor' - ] = minorgridcolor if minorgridcolor is not None else _v - _v = arg.pop('minorgridcount', None) - self['minorgridcount' - ] = minorgridcount if minorgridcount is not None else _v - _v = arg.pop('minorgridwidth', None) - self['minorgridwidth' - ] = minorgridwidth if minorgridwidth is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('range', None) - self['range'] = range if range is not None else _v - _v = arg.pop('rangemode', None) - self['rangemode'] = rangemode if rangemode is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showgrid', None) - self['showgrid'] = showgrid if showgrid is not None else _v - _v = arg.pop('showline', None) - self['showline'] = showline if showline is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('smoothing', None) - self['smoothing'] = smoothing if smoothing is not None else _v - _v = arg.pop('startline', None) - self['startline'] = startline if startline is not None else _v - _v = arg.pop('startlinecolor', None) - self['startlinecolor' - ] = startlinecolor if startlinecolor is not None else _v - _v = arg.pop('startlinewidth', None) - self['startlinewidth' - ] = startlinewidth if startlinewidth is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("arraydtick", None) + self["arraydtick"] = arraydtick if arraydtick is not None else _v + _v = arg.pop("arraytick0", None) + self["arraytick0"] = arraytick0 if arraytick0 is not None else _v + _v = arg.pop("autorange", None) + self["autorange"] = autorange if autorange is not None else _v + _v = arg.pop("categoryarray", None) + self["categoryarray"] = categoryarray if categoryarray is not None else _v + _v = arg.pop("categoryarraysrc", None) + self["categoryarraysrc"] = ( + categoryarraysrc if categoryarraysrc is not None else _v + ) + _v = arg.pop("categoryorder", None) + self["categoryorder"] = categoryorder if categoryorder is not None else _v + _v = arg.pop("cheatertype", None) + self["cheatertype"] = cheatertype if cheatertype is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("endline", None) + self["endline"] = endline if endline is not None else _v + _v = arg.pop("endlinecolor", None) + self["endlinecolor"] = endlinecolor if endlinecolor is not None else _v + _v = arg.pop("endlinewidth", None) + self["endlinewidth"] = endlinewidth if endlinewidth is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("fixedrange", None) + self["fixedrange"] = fixedrange if fixedrange is not None else _v + _v = arg.pop("gridcolor", None) + self["gridcolor"] = gridcolor if gridcolor is not None else _v + _v = arg.pop("gridwidth", None) + self["gridwidth"] = gridwidth if gridwidth is not None else _v + _v = arg.pop("labelpadding", None) + self["labelpadding"] = labelpadding if labelpadding is not None else _v + _v = arg.pop("labelprefix", None) + self["labelprefix"] = labelprefix if labelprefix is not None else _v + _v = arg.pop("labelsuffix", None) + self["labelsuffix"] = labelsuffix if labelsuffix is not None else _v + _v = arg.pop("linecolor", None) + self["linecolor"] = linecolor if linecolor is not None else _v + _v = arg.pop("linewidth", None) + self["linewidth"] = linewidth if linewidth is not None else _v + _v = arg.pop("minorgridcolor", None) + self["minorgridcolor"] = minorgridcolor if minorgridcolor is not None else _v + _v = arg.pop("minorgridcount", None) + self["minorgridcount"] = minorgridcount if minorgridcount is not None else _v + _v = arg.pop("minorgridwidth", None) + self["minorgridwidth"] = minorgridwidth if minorgridwidth is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("range", None) + self["range"] = range if range is not None else _v + _v = arg.pop("rangemode", None) + self["rangemode"] = rangemode if rangemode is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showgrid", None) + self["showgrid"] = showgrid if showgrid is not None else _v + _v = arg.pop("showline", None) + self["showline"] = showline if showline is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("smoothing", None) + self["smoothing"] = smoothing if smoothing is not None else _v + _v = arg.pop("startline", None) + self["startline"] = startline if startline is not None else _v + _v = arg.pop("startlinecolor", None) + self["startlinecolor"] = startlinecolor if startlinecolor is not None else _v + _v = arg.pop("startlinewidth", None) + self["startlinewidth"] = startlinewidth if startlinewidth is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleoffset', None) + self["titlefont"] = _v + _v = arg.pop("titleoffset", None) _v = titleoffset if titleoffset is not None else _v if _v is not None: - self['titleoffset'] = _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v + self["titleoffset"] = _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/aaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/carpet/aaxis/__init__.py index 4c9959f25b6..dbb1e787a37 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/aaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/aaxis/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.carpet.aaxis.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # offset # ------ @@ -68,11 +66,11 @@ def offset(self): ------- int|float """ - return self['offset'] + return self["offset"] @offset.setter def offset(self, val): - self['offset'] = val + self["offset"] = val # text # ---- @@ -91,17 +89,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'carpet.aaxis' + return "carpet.aaxis" # Self properties description # --------------------------- @@ -152,7 +150,7 @@ def __init__(self, arg=None, font=None, offset=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -172,26 +170,26 @@ def __init__(self, arg=None, font=None, offset=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.carpet.aaxis import (title as v_title) + from plotly.validators.carpet.aaxis import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['offset'] = v_title.OffsetValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["offset"] = v_title.OffsetValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('offset', None) - self['offset'] = offset if offset is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("offset", None) + self["offset"] = offset if offset is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -227,11 +225,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -248,11 +246,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -275,11 +273,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -303,11 +301,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -325,17 +323,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'carpet.aaxis' + return "carpet.aaxis" # Self properties description # --------------------------- @@ -428,7 +426,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -448,36 +446,36 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.carpet.aaxis import ( - tickformatstop as v_tickformatstop - ) + from plotly.validators.carpet.aaxis import tickformatstop as v_tickformatstop # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -545,11 +543,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -576,11 +574,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -594,17 +592,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'carpet.aaxis' + return "carpet.aaxis" # Self properties description # --------------------------- @@ -665,7 +663,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -685,26 +683,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.carpet.aaxis import (tickfont as v_tickfont) + from plotly.validators.carpet.aaxis import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/aaxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/carpet/aaxis/title/__init__.py index 008243e3d8a..b9f4fdf6511 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/aaxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/aaxis/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'carpet.aaxis.title' + return "carpet.aaxis.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,26 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.carpet.aaxis.title import (font as v_font) + from plotly.validators.carpet.aaxis.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/baxis/__init__.py b/packages/python/plotly/plotly/graph_objs/carpet/baxis/__init__.py index 1a55cd6cc1a..1609410b8dc 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/baxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/baxis/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.carpet.baxis.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # offset # ------ @@ -68,11 +66,11 @@ def offset(self): ------- int|float """ - return self['offset'] + return self["offset"] @offset.setter def offset(self, val): - self['offset'] = val + self["offset"] = val # text # ---- @@ -91,17 +89,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'carpet.baxis' + return "carpet.baxis" # Self properties description # --------------------------- @@ -152,7 +150,7 @@ def __init__(self, arg=None, font=None, offset=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -172,26 +170,26 @@ def __init__(self, arg=None, font=None, offset=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.carpet.baxis import (title as v_title) + from plotly.validators.carpet.baxis import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['offset'] = v_title.OffsetValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["offset"] = v_title.OffsetValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('offset', None) - self['offset'] = offset if offset is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("offset", None) + self["offset"] = offset if offset is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -227,11 +225,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -248,11 +246,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -275,11 +273,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -303,11 +301,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -325,17 +323,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'carpet.baxis' + return "carpet.baxis" # Self properties description # --------------------------- @@ -428,7 +426,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -448,36 +446,36 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.carpet.baxis import ( - tickformatstop as v_tickformatstop - ) + from plotly.validators.carpet.baxis import tickformatstop as v_tickformatstop # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -545,11 +543,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -576,11 +574,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -594,17 +592,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'carpet.baxis' + return "carpet.baxis" # Self properties description # --------------------------- @@ -665,7 +663,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -685,26 +683,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.carpet.baxis import (tickfont as v_tickfont) + from plotly.validators.carpet.baxis import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/baxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/carpet/baxis/title/__init__.py index 73e71cf9325..60cba6e9251 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/baxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/baxis/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'carpet.baxis.title' + return "carpet.baxis.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,26 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.carpet.baxis.title import (font as v_font) + from plotly.validators.carpet.baxis.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/carpet/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/carpet/hoverlabel/__init__.py index 6b1cb7c60f8..1add7cbaf9a 100644 --- a/packages/python/plotly/plotly/graph_objs/carpet/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/carpet/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'carpet.hoverlabel' + return "carpet.hoverlabel" # Self properties description # --------------------------- @@ -262,7 +260,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -282,35 +280,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.carpet.hoverlabel import (font as v_font) + from plotly.validators.carpet.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/__init__.py b/packages/python/plotly/plotly/graph_objs/choropleth/__init__.py index f4c3025f8d8..020f7c51f48 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -27,17 +25,17 @@ def marker(self): ------- plotly.graph_objs.choropleth.unselected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'choropleth' + return "choropleth" # Self properties description # --------------------------- @@ -66,7 +64,7 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__('unselected') + super(Unselected, self).__init__("unselected") # Validate arg # ------------ @@ -86,20 +84,20 @@ def __init__(self, arg=None, marker=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.choropleth import (unselected as v_unselected) + from plotly.validators.choropleth import unselected as v_unselected # Initialize validators # --------------------- - self._validators['marker'] = v_unselected.MarkerValidator() + self._validators["marker"] = v_unselected.MarkerValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- @@ -132,11 +130,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -153,17 +151,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'choropleth' + return "choropleth" # Self properties description # --------------------------- @@ -204,7 +202,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -224,23 +222,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.choropleth import (stream as v_stream) + from plotly.validators.choropleth import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -277,17 +275,17 @@ def marker(self): ------- plotly.graph_objs.choropleth.selected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'choropleth' + return "choropleth" # Self properties description # --------------------------- @@ -316,7 +314,7 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__('selected') + super(Selected, self).__init__("selected") # Validate arg # ------------ @@ -336,20 +334,20 @@ def __init__(self, arg=None, marker=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.choropleth import (selected as v_selected) + from plotly.validators.choropleth import selected as v_selected # Initialize validators # --------------------- - self._validators['marker'] = v_selected.MarkerValidator() + self._validators["marker"] = v_selected.MarkerValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- @@ -400,11 +398,11 @@ def line(self): ------- plotly.graph_objs.choropleth.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # opacity # ------- @@ -421,11 +419,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # opacitysrc # ---------- @@ -441,17 +439,17 @@ def opacitysrc(self): ------- str """ - return self['opacitysrc'] + return self["opacitysrc"] @opacitysrc.setter def opacitysrc(self, val): - self['opacitysrc'] = val + self["opacitysrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'choropleth' + return "choropleth" # Self properties description # --------------------------- @@ -467,9 +465,7 @@ def _prop_descriptions(self): Sets the source reference on plot.ly for opacity . """ - def __init__( - self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs - ): + def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs): """ Construct a new Marker object @@ -490,7 +486,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -510,26 +506,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.choropleth import (marker as v_marker) + from plotly.validators.choropleth import marker as v_marker # Initialize validators # --------------------- - self._validators['line'] = v_marker.LineValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['opacitysrc'] = v_marker.OpacitysrcValidator() + self._validators["line"] = v_marker.LineValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["opacitysrc"] = v_marker.OpacitysrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('opacitysrc', None) - self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("opacitysrc", None) + self["opacitysrc"] = opacitysrc if opacitysrc is not None else _v # Process unknown kwargs # ---------------------- @@ -564,11 +560,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -584,11 +580,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -644,11 +640,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -664,11 +660,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -724,11 +720,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -744,11 +740,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -799,11 +795,11 @@ def font(self): ------- plotly.graph_objs.choropleth.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -826,11 +822,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -846,17 +842,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'choropleth' + return "choropleth" # Self properties description # --------------------------- @@ -948,7 +944,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -968,48 +964,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.choropleth import (hoverlabel as v_hoverlabel) + from plotly.validators.choropleth import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1079,11 +1071,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -1138,11 +1130,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -1158,11 +1150,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -1196,11 +1188,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -1221,11 +1213,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -1243,11 +1235,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -1266,11 +1258,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -1290,11 +1282,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -1349,11 +1341,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -1369,11 +1361,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -1389,11 +1381,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1413,11 +1405,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1433,11 +1425,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1457,11 +1449,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1478,11 +1470,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1499,11 +1491,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1522,11 +1514,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1549,11 +1541,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1573,11 +1565,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1632,11 +1624,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1677,11 +1669,11 @@ def tickfont(self): ------- plotly.graph_objs.choropleth.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1706,11 +1698,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1763,11 +1755,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.choropleth.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1790,11 +1782,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.choropleth.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1810,11 +1802,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1837,11 +1829,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1858,11 +1850,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1881,11 +1873,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1902,11 +1894,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1924,11 +1916,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1944,11 +1936,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1965,11 +1957,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1985,11 +1977,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -2005,11 +1997,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -2044,11 +2036,11 @@ def title(self): ------- plotly.graph_objs.choropleth.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -2091,11 +2083,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -2115,11 +2107,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -2135,11 +2127,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -2158,11 +2150,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -2178,11 +2170,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -2198,11 +2190,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -2221,11 +2213,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -2241,17 +2233,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'choropleth' + return "choropleth" # Self properties description # --------------------------- @@ -2446,8 +2438,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2696,7 +2688,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2716,164 +2708,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.choropleth import (colorbar as v_colorbar) + from plotly.validators.choropleth import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/__init__.py index 27f274da85d..a464cd368be 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.choropleth.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'choropleth.colorbar' + return "choropleth.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,26 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.choropleth.colorbar import (title as v_title) + from plotly.validators.choropleth.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -229,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -250,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -277,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -305,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -327,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'choropleth.colorbar' + return "choropleth.colorbar" # Self properties description # --------------------------- @@ -430,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -450,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.choropleth.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -547,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -578,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -596,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'choropleth.colorbar' + return "choropleth.colorbar" # Self properties description # --------------------------- @@ -668,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -688,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.choropleth.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.choropleth.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/title/__init__.py index c819235765d..c0f5326ff76 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'choropleth.colorbar.title' + return "choropleth.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.choropleth.colorbar.title import ( - font as v_font - ) + from plotly.validators.choropleth.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/choropleth/hoverlabel/__init__.py index ca7676771ac..1be7f9ee444 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'choropleth.hoverlabel' + return "choropleth.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.choropleth.hoverlabel import (font as v_font) + from plotly.validators.choropleth.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/choropleth/marker/__init__.py index d6ac63db9a3..be697354ba7 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -63,11 +61,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -83,11 +81,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # width # ----- @@ -104,11 +102,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -124,17 +122,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'choropleth.marker' + return "choropleth.marker" # Self properties description # --------------------------- @@ -157,13 +155,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - colorsrc=None, - width=None, - widthsrc=None, - **kwargs + self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs ): """ Construct a new Line object @@ -191,7 +183,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -211,29 +203,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.choropleth.marker import (line as v_line) + from plotly.validators.choropleth.marker import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/choropleth/selected/__init__.py index 184e03682ec..2de1b3fd6ed 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/selected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -20,17 +18,17 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'choropleth.selected' + return "choropleth.selected" # Self properties description # --------------------------- @@ -58,7 +56,7 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -78,20 +76,20 @@ def __init__(self, arg=None, opacity=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.choropleth.selected import (marker as v_marker) + from plotly.validators.choropleth.selected import marker as v_marker # Initialize validators # --------------------- - self._validators['opacity'] = v_marker.OpacityValidator() + self._validators["opacity"] = v_marker.OpacityValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/choropleth/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/choropleth/unselected/__init__.py index 98a71dbfe9d..03c70617472 100644 --- a/packages/python/plotly/plotly/graph_objs/choropleth/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/choropleth/unselected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -21,17 +19,17 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'choropleth.unselected' + return "choropleth.unselected" # Self properties description # --------------------------- @@ -61,7 +59,7 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -81,22 +79,20 @@ def __init__(self, arg=None, opacity=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.choropleth.unselected import ( - marker as v_marker - ) + from plotly.validators.choropleth.unselected import marker as v_marker # Initialize validators # --------------------- - self._validators['opacity'] = v_marker.OpacityValidator() + self._validators["opacity"] = v_marker.OpacityValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/cone/__init__.py b/packages/python/plotly/plotly/graph_objs/cone/__init__.py index 5a2f3717981..b50d83390c2 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/cone/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -22,11 +20,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -43,17 +41,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'cone' + return "cone" # Self properties description # --------------------------- @@ -94,7 +92,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -114,23 +112,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.cone import (stream as v_stream) + from plotly.validators.cone import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -161,11 +159,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -181,11 +179,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -201,17 +199,17 @@ def z(self): ------- int|float """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'cone' + return "cone" # Self properties description # --------------------------- @@ -252,7 +250,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__('lightposition') + super(Lightposition, self).__init__("lightposition") # Validate arg # ------------ @@ -272,26 +270,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.cone import (lightposition as v_lightposition) + from plotly.validators.cone import lightposition as v_lightposition # Initialize validators # --------------------- - self._validators['x'] = v_lightposition.XValidator() - self._validators['y'] = v_lightposition.YValidator() - self._validators['z'] = v_lightposition.ZValidator() + self._validators["x"] = v_lightposition.XValidator() + self._validators["y"] = v_lightposition.YValidator() + self._validators["z"] = v_lightposition.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- @@ -323,11 +321,11 @@ def ambient(self): ------- int|float """ - return self['ambient'] + return self["ambient"] @ambient.setter def ambient(self, val): - self['ambient'] = val + self["ambient"] = val # diffuse # ------- @@ -344,11 +342,11 @@ def diffuse(self): ------- int|float """ - return self['diffuse'] + return self["diffuse"] @diffuse.setter def diffuse(self, val): - self['diffuse'] = val + self["diffuse"] = val # facenormalsepsilon # ------------------ @@ -365,11 +363,11 @@ def facenormalsepsilon(self): ------- int|float """ - return self['facenormalsepsilon'] + return self["facenormalsepsilon"] @facenormalsepsilon.setter def facenormalsepsilon(self, val): - self['facenormalsepsilon'] = val + self["facenormalsepsilon"] = val # fresnel # ------- @@ -387,11 +385,11 @@ def fresnel(self): ------- int|float """ - return self['fresnel'] + return self["fresnel"] @fresnel.setter def fresnel(self, val): - self['fresnel'] = val + self["fresnel"] = val # roughness # --------- @@ -408,11 +406,11 @@ def roughness(self): ------- int|float """ - return self['roughness'] + return self["roughness"] @roughness.setter def roughness(self, val): - self['roughness'] = val + self["roughness"] = val # specular # -------- @@ -429,11 +427,11 @@ def specular(self): ------- int|float """ - return self['specular'] + return self["specular"] @specular.setter def specular(self, val): - self['specular'] = val + self["specular"] = val # vertexnormalsepsilon # -------------------- @@ -450,17 +448,17 @@ def vertexnormalsepsilon(self): ------- int|float """ - return self['vertexnormalsepsilon'] + return self["vertexnormalsepsilon"] @vertexnormalsepsilon.setter def vertexnormalsepsilon(self, val): - self['vertexnormalsepsilon'] = val + self["vertexnormalsepsilon"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'cone' + return "cone" # Self properties description # --------------------------- @@ -540,7 +538,7 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__('lighting') + super(Lighting, self).__init__("lighting") # Validate arg # ------------ @@ -560,43 +558,46 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.cone import (lighting as v_lighting) + from plotly.validators.cone import lighting as v_lighting # Initialize validators # --------------------- - self._validators['ambient'] = v_lighting.AmbientValidator() - self._validators['diffuse'] = v_lighting.DiffuseValidator() - self._validators['facenormalsepsilon' - ] = v_lighting.FacenormalsepsilonValidator() - self._validators['fresnel'] = v_lighting.FresnelValidator() - self._validators['roughness'] = v_lighting.RoughnessValidator() - self._validators['specular'] = v_lighting.SpecularValidator() - self._validators['vertexnormalsepsilon' - ] = v_lighting.VertexnormalsepsilonValidator() + self._validators["ambient"] = v_lighting.AmbientValidator() + self._validators["diffuse"] = v_lighting.DiffuseValidator() + self._validators[ + "facenormalsepsilon" + ] = v_lighting.FacenormalsepsilonValidator() + self._validators["fresnel"] = v_lighting.FresnelValidator() + self._validators["roughness"] = v_lighting.RoughnessValidator() + self._validators["specular"] = v_lighting.SpecularValidator() + self._validators[ + "vertexnormalsepsilon" + ] = v_lighting.VertexnormalsepsilonValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('ambient', None) - self['ambient'] = ambient if ambient is not None else _v - _v = arg.pop('diffuse', None) - self['diffuse'] = diffuse if diffuse is not None else _v - _v = arg.pop('facenormalsepsilon', None) - self['facenormalsepsilon' - ] = facenormalsepsilon if facenormalsepsilon is not None else _v - _v = arg.pop('fresnel', None) - self['fresnel'] = fresnel if fresnel is not None else _v - _v = arg.pop('roughness', None) - self['roughness'] = roughness if roughness is not None else _v - _v = arg.pop('specular', None) - self['specular'] = specular if specular is not None else _v - _v = arg.pop('vertexnormalsepsilon', None) - self[ - 'vertexnormalsepsilon' - ] = vertexnormalsepsilon if vertexnormalsepsilon is not None else _v + _v = arg.pop("ambient", None) + self["ambient"] = ambient if ambient is not None else _v + _v = arg.pop("diffuse", None) + self["diffuse"] = diffuse if diffuse is not None else _v + _v = arg.pop("facenormalsepsilon", None) + self["facenormalsepsilon"] = ( + facenormalsepsilon if facenormalsepsilon is not None else _v + ) + _v = arg.pop("fresnel", None) + self["fresnel"] = fresnel if fresnel is not None else _v + _v = arg.pop("roughness", None) + self["roughness"] = roughness if roughness is not None else _v + _v = arg.pop("specular", None) + self["specular"] = specular if specular is not None else _v + _v = arg.pop("vertexnormalsepsilon", None) + self["vertexnormalsepsilon"] = ( + vertexnormalsepsilon if vertexnormalsepsilon is not None else _v + ) # Process unknown kwargs # ---------------------- @@ -631,11 +632,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -651,11 +652,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -711,11 +712,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -731,11 +732,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -791,11 +792,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -811,11 +812,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -866,11 +867,11 @@ def font(self): ------- plotly.graph_objs.cone.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -893,11 +894,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -913,17 +914,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'cone' + return "cone" # Self properties description # --------------------------- @@ -1015,7 +1016,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -1035,48 +1036,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.cone import (hoverlabel as v_hoverlabel) + from plotly.validators.cone import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1146,11 +1143,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -1205,11 +1202,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -1225,11 +1222,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -1263,11 +1260,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -1288,11 +1285,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -1310,11 +1307,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -1333,11 +1330,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -1357,11 +1354,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -1416,11 +1413,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -1436,11 +1433,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -1456,11 +1453,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1480,11 +1477,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1500,11 +1497,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1524,11 +1521,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1545,11 +1542,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1566,11 +1563,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1589,11 +1586,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1616,11 +1613,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1640,11 +1637,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1699,11 +1696,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1744,11 +1741,11 @@ def tickfont(self): ------- plotly.graph_objs.cone.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1773,11 +1770,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1830,11 +1827,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.cone.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1858,11 +1855,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.cone.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1878,11 +1875,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1905,11 +1902,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1926,11 +1923,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1949,11 +1946,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1970,11 +1967,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1992,11 +1989,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -2012,11 +2009,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -2033,11 +2030,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -2053,11 +2050,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -2073,11 +2070,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -2112,11 +2109,11 @@ def title(self): ------- plotly.graph_objs.cone.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -2159,11 +2156,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -2183,11 +2180,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -2203,11 +2200,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -2226,11 +2223,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -2246,11 +2243,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -2266,11 +2263,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -2289,11 +2286,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -2309,17 +2306,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'cone' + return "cone" # Self properties description # --------------------------- @@ -2514,8 +2511,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2764,7 +2761,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2784,164 +2781,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.cone import (colorbar as v_colorbar) + from plotly.validators.cone import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/cone/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/cone/colorbar/__init__.py index 93a90c439ff..5879f72521b 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/cone/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.cone.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'cone.colorbar' + return "cone.colorbar" # Self properties description # --------------------------- @@ -153,7 +151,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -173,26 +171,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.cone.colorbar import (title as v_title) + from plotly.validators.cone.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -228,11 +226,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -249,11 +247,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -276,11 +274,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -304,11 +302,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -326,17 +324,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'cone.colorbar' + return "cone.colorbar" # Self properties description # --------------------------- @@ -429,7 +427,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -449,36 +447,36 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.cone.colorbar import ( - tickformatstop as v_tickformatstop - ) + from plotly.validators.cone.colorbar import tickformatstop as v_tickformatstop # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -546,11 +544,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -577,11 +575,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -595,17 +593,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'cone.colorbar' + return "cone.colorbar" # Self properties description # --------------------------- @@ -666,7 +664,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -686,26 +684,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.cone.colorbar import (tickfont as v_tickfont) + from plotly.validators.cone.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/cone/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/cone/colorbar/title/__init__.py index 14f6ff61a9f..5e845f3cead 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/cone/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'cone.colorbar.title' + return "cone.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,26 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.cone.colorbar.title import (font as v_font) + from plotly.validators.cone.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/cone/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/cone/hoverlabel/__init__.py index b9d86aa282e..a9e9a18fc4a 100644 --- a/packages/python/plotly/plotly/graph_objs/cone/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/cone/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'cone.hoverlabel' + return "cone.hoverlabel" # Self properties description # --------------------------- @@ -262,7 +260,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -282,35 +280,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.cone.hoverlabel import (font as v_font) + from plotly.validators.cone.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/__init__.py b/packages/python/plotly/plotly/graph_objs/contour/__init__.py index bdac64234e2..1986359d847 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contour/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -22,11 +20,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -43,17 +41,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contour' + return "contour" # Self properties description # --------------------------- @@ -94,7 +92,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -114,23 +112,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contour import (stream as v_stream) + from plotly.validators.contour import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -201,11 +199,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dash # ---- @@ -227,11 +225,11 @@ def dash(self): ------- str """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # smoothing # --------- @@ -248,11 +246,11 @@ def smoothing(self): ------- int|float """ - return self['smoothing'] + return self["smoothing"] @smoothing.setter def smoothing(self, val): - self['smoothing'] = val + self["smoothing"] = val # width # ----- @@ -268,17 +266,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contour' + return "contour" # Self properties description # --------------------------- @@ -301,13 +299,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - dash=None, - smoothing=None, - width=None, - **kwargs + self, arg=None, color=None, dash=None, smoothing=None, width=None, **kwargs ): """ Construct a new Line object @@ -335,7 +327,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -355,29 +347,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contour import (line as v_line) + from plotly.validators.contour import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['dash'] = v_line.DashValidator() - self._validators['smoothing'] = v_line.SmoothingValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["smoothing"] = v_line.SmoothingValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('smoothing', None) - self['smoothing'] = smoothing if smoothing is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("smoothing", None) + self["smoothing"] = smoothing if smoothing is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -412,11 +404,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -432,11 +424,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -492,11 +484,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -512,11 +504,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -572,11 +564,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -592,11 +584,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -647,11 +639,11 @@ def font(self): ------- plotly.graph_objs.contour.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -674,11 +666,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -694,17 +686,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contour' + return "contour" # Self properties description # --------------------------- @@ -796,7 +788,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -816,48 +808,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contour import (hoverlabel as v_hoverlabel) + from plotly.validators.contour import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -893,11 +881,11 @@ def coloring(self): ------- Any """ - return self['coloring'] + return self["coloring"] @coloring.setter def coloring(self, val): - self['coloring'] = val + self["coloring"] = val # end # --- @@ -914,11 +902,11 @@ def end(self): ------- int|float """ - return self['end'] + return self["end"] @end.setter def end(self, val): - self['end'] = val + self["end"] = val # labelfont # --------- @@ -961,11 +949,11 @@ def labelfont(self): ------- plotly.graph_objs.contour.contours.Labelfont """ - return self['labelfont'] + return self["labelfont"] @labelfont.setter def labelfont(self, val): - self['labelfont'] = val + self["labelfont"] = val # labelformat # ----------- @@ -984,11 +972,11 @@ def labelformat(self): ------- str """ - return self['labelformat'] + return self["labelformat"] @labelformat.setter def labelformat(self, val): - self['labelformat'] = val + self["labelformat"] = val # operation # --------- @@ -1013,11 +1001,11 @@ def operation(self): ------- Any """ - return self['operation'] + return self["operation"] @operation.setter def operation(self, val): - self['operation'] = val + self["operation"] = val # showlabels # ---------- @@ -1034,11 +1022,11 @@ def showlabels(self): ------- bool """ - return self['showlabels'] + return self["showlabels"] @showlabels.setter def showlabels(self, val): - self['showlabels'] = val + self["showlabels"] = val # showlines # --------- @@ -1055,11 +1043,11 @@ def showlines(self): ------- bool """ - return self['showlines'] + return self["showlines"] @showlines.setter def showlines(self, val): - self['showlines'] = val + self["showlines"] = val # size # ---- @@ -1075,11 +1063,11 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # start # ----- @@ -1096,11 +1084,11 @@ def start(self): ------- int|float """ - return self['start'] + return self["start"] @start.setter def start(self, val): - self['start'] = val + self["start"] = val # type # ---- @@ -1120,11 +1108,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # value # ----- @@ -1145,17 +1133,17 @@ def value(self): ------- Any """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contour' + return "contour" # Self properties description # --------------------------- @@ -1303,7 +1291,7 @@ def __init__( ------- Contours """ - super(Contours, self).__init__('contours') + super(Contours, self).__init__("contours") # Validate arg # ------------ @@ -1323,50 +1311,50 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contour import (contours as v_contours) + from plotly.validators.contour import contours as v_contours # Initialize validators # --------------------- - self._validators['coloring'] = v_contours.ColoringValidator() - self._validators['end'] = v_contours.EndValidator() - self._validators['labelfont'] = v_contours.LabelfontValidator() - self._validators['labelformat'] = v_contours.LabelformatValidator() - self._validators['operation'] = v_contours.OperationValidator() - self._validators['showlabels'] = v_contours.ShowlabelsValidator() - self._validators['showlines'] = v_contours.ShowlinesValidator() - self._validators['size'] = v_contours.SizeValidator() - self._validators['start'] = v_contours.StartValidator() - self._validators['type'] = v_contours.TypeValidator() - self._validators['value'] = v_contours.ValueValidator() + self._validators["coloring"] = v_contours.ColoringValidator() + self._validators["end"] = v_contours.EndValidator() + self._validators["labelfont"] = v_contours.LabelfontValidator() + self._validators["labelformat"] = v_contours.LabelformatValidator() + self._validators["operation"] = v_contours.OperationValidator() + self._validators["showlabels"] = v_contours.ShowlabelsValidator() + self._validators["showlines"] = v_contours.ShowlinesValidator() + self._validators["size"] = v_contours.SizeValidator() + self._validators["start"] = v_contours.StartValidator() + self._validators["type"] = v_contours.TypeValidator() + self._validators["value"] = v_contours.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('coloring', None) - self['coloring'] = coloring if coloring is not None else _v - _v = arg.pop('end', None) - self['end'] = end if end is not None else _v - _v = arg.pop('labelfont', None) - self['labelfont'] = labelfont if labelfont is not None else _v - _v = arg.pop('labelformat', None) - self['labelformat'] = labelformat if labelformat is not None else _v - _v = arg.pop('operation', None) - self['operation'] = operation if operation is not None else _v - _v = arg.pop('showlabels', None) - self['showlabels'] = showlabels if showlabels is not None else _v - _v = arg.pop('showlines', None) - self['showlines'] = showlines if showlines is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('start', None) - self['start'] = start if start is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("coloring", None) + self["coloring"] = coloring if coloring is not None else _v + _v = arg.pop("end", None) + self["end"] = end if end is not None else _v + _v = arg.pop("labelfont", None) + self["labelfont"] = labelfont if labelfont is not None else _v + _v = arg.pop("labelformat", None) + self["labelformat"] = labelformat if labelformat is not None else _v + _v = arg.pop("operation", None) + self["operation"] = operation if operation is not None else _v + _v = arg.pop("showlabels", None) + self["showlabels"] = showlabels if showlabels is not None else _v + _v = arg.pop("showlines", None) + self["showlines"] = showlines if showlines is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("start", None) + self["start"] = start if start is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -1436,11 +1424,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -1495,11 +1483,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -1515,11 +1503,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -1553,11 +1541,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -1578,11 +1566,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -1600,11 +1588,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -1623,11 +1611,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -1647,11 +1635,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -1706,11 +1694,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -1726,11 +1714,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -1746,11 +1734,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1770,11 +1758,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1790,11 +1778,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1814,11 +1802,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1835,11 +1823,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1856,11 +1844,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1879,11 +1867,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1906,11 +1894,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1930,11 +1918,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1989,11 +1977,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -2034,11 +2022,11 @@ def tickfont(self): ------- plotly.graph_objs.contour.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -2063,11 +2051,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -2120,11 +2108,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.contour.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -2148,11 +2136,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.contour.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -2168,11 +2156,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -2195,11 +2183,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -2216,11 +2204,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -2239,11 +2227,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -2260,11 +2248,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -2282,11 +2270,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -2302,11 +2290,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -2323,11 +2311,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -2343,11 +2331,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -2363,11 +2351,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -2402,11 +2390,11 @@ def title(self): ------- plotly.graph_objs.contour.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -2449,11 +2437,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -2473,11 +2461,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -2493,11 +2481,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -2516,11 +2504,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -2536,11 +2524,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -2556,11 +2544,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -2579,11 +2567,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -2599,17 +2587,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contour' + return "contour" # Self properties description # --------------------------- @@ -2804,8 +2792,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -3054,7 +3042,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -3074,164 +3062,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contour import (colorbar as v_colorbar) + from plotly.validators.contour import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/contour/colorbar/__init__.py index 960e50d4f12..9e5074127b6 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contour/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.contour.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contour.colorbar' + return "contour.colorbar" # Self properties description # --------------------------- @@ -153,7 +151,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -173,26 +171,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contour.colorbar import (title as v_title) + from plotly.validators.contour.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -228,11 +226,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -249,11 +247,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -276,11 +274,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -304,11 +302,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -326,17 +324,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contour.colorbar' + return "contour.colorbar" # Self properties description # --------------------------- @@ -429,7 +427,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -449,36 +447,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.contour.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -546,11 +546,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -577,11 +577,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -595,17 +595,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contour.colorbar' + return "contour.colorbar" # Self properties description # --------------------------- @@ -667,7 +667,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -687,26 +687,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contour.colorbar import (tickfont as v_tickfont) + from plotly.validators.contour.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/contour/colorbar/title/__init__.py index 4e65e065d36..7229715251c 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contour/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contour.colorbar.title' + return "contour.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,26 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contour.colorbar.title import (font as v_font) + from plotly.validators.contour.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/contours/__init__.py b/packages/python/plotly/plotly/graph_objs/contour/contours/__init__.py index ab83eb6b7d6..e9aea853420 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/contours/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contour/contours/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contour.contours' + return "contour.contours" # Self properties description # --------------------------- @@ -180,7 +178,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Labelfont """ - super(Labelfont, self).__init__('labelfont') + super(Labelfont, self).__init__("labelfont") # Validate arg # ------------ @@ -200,28 +198,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contour.contours import ( - labelfont as v_labelfont - ) + from plotly.validators.contour.contours import labelfont as v_labelfont # Initialize validators # --------------------- - self._validators['color'] = v_labelfont.ColorValidator() - self._validators['family'] = v_labelfont.FamilyValidator() - self._validators['size'] = v_labelfont.SizeValidator() + self._validators["color"] = v_labelfont.ColorValidator() + self._validators["family"] = v_labelfont.FamilyValidator() + self._validators["size"] = v_labelfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contour/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/contour/hoverlabel/__init__.py index 44c4cecfe68..81113e2685c 100644 --- a/packages/python/plotly/plotly/graph_objs/contour/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contour/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contour.hoverlabel' + return "contour.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contour.hoverlabel import (font as v_font) + from plotly.validators.contour.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/__init__.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/__init__.py index 86d51a77ba4..b84c83c3ba1 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -22,11 +20,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -43,17 +41,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contourcarpet' + return "contourcarpet" # Self properties description # --------------------------- @@ -94,7 +92,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -114,23 +112,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contourcarpet import (stream as v_stream) + from plotly.validators.contourcarpet import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -201,11 +199,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dash # ---- @@ -227,11 +225,11 @@ def dash(self): ------- str """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # smoothing # --------- @@ -248,11 +246,11 @@ def smoothing(self): ------- int|float """ - return self['smoothing'] + return self["smoothing"] @smoothing.setter def smoothing(self, val): - self['smoothing'] = val + self["smoothing"] = val # width # ----- @@ -268,17 +266,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contourcarpet' + return "contourcarpet" # Self properties description # --------------------------- @@ -301,13 +299,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - dash=None, - smoothing=None, - width=None, - **kwargs + self, arg=None, color=None, dash=None, smoothing=None, width=None, **kwargs ): """ Construct a new Line object @@ -335,7 +327,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -355,29 +347,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contourcarpet import (line as v_line) + from plotly.validators.contourcarpet import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['dash'] = v_line.DashValidator() - self._validators['smoothing'] = v_line.SmoothingValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["smoothing"] = v_line.SmoothingValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('smoothing', None) - self['smoothing'] = smoothing if smoothing is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("smoothing", None) + self["smoothing"] = smoothing if smoothing is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -412,11 +404,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -432,11 +424,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -492,11 +484,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -512,11 +504,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -572,11 +564,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -592,11 +584,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -647,11 +639,11 @@ def font(self): ------- plotly.graph_objs.contourcarpet.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -674,11 +666,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -694,17 +686,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contourcarpet' + return "contourcarpet" # Self properties description # --------------------------- @@ -797,7 +789,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -817,50 +809,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contourcarpet import ( - hoverlabel as v_hoverlabel - ) + from plotly.validators.contourcarpet import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -895,11 +881,11 @@ def coloring(self): ------- Any """ - return self['coloring'] + return self["coloring"] @coloring.setter def coloring(self, val): - self['coloring'] = val + self["coloring"] = val # end # --- @@ -916,11 +902,11 @@ def end(self): ------- int|float """ - return self['end'] + return self["end"] @end.setter def end(self, val): - self['end'] = val + self["end"] = val # labelfont # --------- @@ -963,11 +949,11 @@ def labelfont(self): ------- plotly.graph_objs.contourcarpet.contours.Labelfont """ - return self['labelfont'] + return self["labelfont"] @labelfont.setter def labelfont(self, val): - self['labelfont'] = val + self["labelfont"] = val # labelformat # ----------- @@ -986,11 +972,11 @@ def labelformat(self): ------- str """ - return self['labelformat'] + return self["labelformat"] @labelformat.setter def labelformat(self, val): - self['labelformat'] = val + self["labelformat"] = val # operation # --------- @@ -1015,11 +1001,11 @@ def operation(self): ------- Any """ - return self['operation'] + return self["operation"] @operation.setter def operation(self, val): - self['operation'] = val + self["operation"] = val # showlabels # ---------- @@ -1036,11 +1022,11 @@ def showlabels(self): ------- bool """ - return self['showlabels'] + return self["showlabels"] @showlabels.setter def showlabels(self, val): - self['showlabels'] = val + self["showlabels"] = val # showlines # --------- @@ -1057,11 +1043,11 @@ def showlines(self): ------- bool """ - return self['showlines'] + return self["showlines"] @showlines.setter def showlines(self, val): - self['showlines'] = val + self["showlines"] = val # size # ---- @@ -1077,11 +1063,11 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # start # ----- @@ -1098,11 +1084,11 @@ def start(self): ------- int|float """ - return self['start'] + return self["start"] @start.setter def start(self, val): - self['start'] = val + self["start"] = val # type # ---- @@ -1122,11 +1108,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # value # ----- @@ -1147,17 +1133,17 @@ def value(self): ------- Any """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contourcarpet' + return "contourcarpet" # Self properties description # --------------------------- @@ -1303,7 +1289,7 @@ def __init__( ------- Contours """ - super(Contours, self).__init__('contours') + super(Contours, self).__init__("contours") # Validate arg # ------------ @@ -1323,50 +1309,50 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contourcarpet import (contours as v_contours) + from plotly.validators.contourcarpet import contours as v_contours # Initialize validators # --------------------- - self._validators['coloring'] = v_contours.ColoringValidator() - self._validators['end'] = v_contours.EndValidator() - self._validators['labelfont'] = v_contours.LabelfontValidator() - self._validators['labelformat'] = v_contours.LabelformatValidator() - self._validators['operation'] = v_contours.OperationValidator() - self._validators['showlabels'] = v_contours.ShowlabelsValidator() - self._validators['showlines'] = v_contours.ShowlinesValidator() - self._validators['size'] = v_contours.SizeValidator() - self._validators['start'] = v_contours.StartValidator() - self._validators['type'] = v_contours.TypeValidator() - self._validators['value'] = v_contours.ValueValidator() + self._validators["coloring"] = v_contours.ColoringValidator() + self._validators["end"] = v_contours.EndValidator() + self._validators["labelfont"] = v_contours.LabelfontValidator() + self._validators["labelformat"] = v_contours.LabelformatValidator() + self._validators["operation"] = v_contours.OperationValidator() + self._validators["showlabels"] = v_contours.ShowlabelsValidator() + self._validators["showlines"] = v_contours.ShowlinesValidator() + self._validators["size"] = v_contours.SizeValidator() + self._validators["start"] = v_contours.StartValidator() + self._validators["type"] = v_contours.TypeValidator() + self._validators["value"] = v_contours.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('coloring', None) - self['coloring'] = coloring if coloring is not None else _v - _v = arg.pop('end', None) - self['end'] = end if end is not None else _v - _v = arg.pop('labelfont', None) - self['labelfont'] = labelfont if labelfont is not None else _v - _v = arg.pop('labelformat', None) - self['labelformat'] = labelformat if labelformat is not None else _v - _v = arg.pop('operation', None) - self['operation'] = operation if operation is not None else _v - _v = arg.pop('showlabels', None) - self['showlabels'] = showlabels if showlabels is not None else _v - _v = arg.pop('showlines', None) - self['showlines'] = showlines if showlines is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('start', None) - self['start'] = start if start is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("coloring", None) + self["coloring"] = coloring if coloring is not None else _v + _v = arg.pop("end", None) + self["end"] = end if end is not None else _v + _v = arg.pop("labelfont", None) + self["labelfont"] = labelfont if labelfont is not None else _v + _v = arg.pop("labelformat", None) + self["labelformat"] = labelformat if labelformat is not None else _v + _v = arg.pop("operation", None) + self["operation"] = operation if operation is not None else _v + _v = arg.pop("showlabels", None) + self["showlabels"] = showlabels if showlabels is not None else _v + _v = arg.pop("showlines", None) + self["showlines"] = showlines if showlines is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("start", None) + self["start"] = start if start is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -1436,11 +1422,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -1495,11 +1481,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -1515,11 +1501,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -1553,11 +1539,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -1578,11 +1564,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -1600,11 +1586,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -1623,11 +1609,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -1647,11 +1633,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -1706,11 +1692,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -1726,11 +1712,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -1746,11 +1732,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1770,11 +1756,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1790,11 +1776,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1814,11 +1800,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1835,11 +1821,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1856,11 +1842,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1879,11 +1865,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1906,11 +1892,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1930,11 +1916,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1989,11 +1975,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -2034,11 +2020,11 @@ def tickfont(self): ------- plotly.graph_objs.contourcarpet.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -2063,11 +2049,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -2120,11 +2106,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.contourcarpet.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -2148,11 +2134,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.contourcarpet.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -2168,11 +2154,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -2195,11 +2181,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -2216,11 +2202,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -2239,11 +2225,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -2260,11 +2246,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -2282,11 +2268,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -2302,11 +2288,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -2323,11 +2309,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -2343,11 +2329,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -2363,11 +2349,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -2402,11 +2388,11 @@ def title(self): ------- plotly.graph_objs.contourcarpet.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -2450,11 +2436,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -2474,11 +2460,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -2494,11 +2480,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -2517,11 +2503,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -2537,11 +2523,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -2557,11 +2543,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -2580,11 +2566,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -2600,17 +2586,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contourcarpet' + return "contourcarpet" # Self properties description # --------------------------- @@ -2805,8 +2791,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -3055,7 +3041,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -3075,164 +3061,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contourcarpet import (colorbar as v_colorbar) + from plotly.validators.contourcarpet import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/__init__.py index a3fa7a996b2..aa45e609b48 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.contourcarpet.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contourcarpet.colorbar' + return "contourcarpet.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,26 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contourcarpet.colorbar import (title as v_title) + from plotly.validators.contourcarpet.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -229,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -250,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -277,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -305,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -327,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contourcarpet.colorbar' + return "contourcarpet.colorbar" # Self properties description # --------------------------- @@ -430,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -450,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.contourcarpet.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -547,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -578,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -596,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contourcarpet.colorbar' + return "contourcarpet.colorbar" # Self properties description # --------------------------- @@ -668,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -688,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contourcarpet.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.contourcarpet.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/title/__init__.py index c84a111fbd7..663d25344a4 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contourcarpet.colorbar.title' + return "contourcarpet.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contourcarpet.colorbar.title import ( - font as v_font - ) + from plotly.validators.contourcarpet.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/contours/__init__.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/contours/__init__.py index 77e95221092..569f6dc54ef 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/contours/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/contours/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contourcarpet.contours' + return "contourcarpet.contours" # Self properties description # --------------------------- @@ -180,7 +178,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Labelfont """ - super(Labelfont, self).__init__('labelfont') + super(Labelfont, self).__init__("labelfont") # Validate arg # ------------ @@ -200,28 +198,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contourcarpet.contours import ( - labelfont as v_labelfont - ) + from plotly.validators.contourcarpet.contours import labelfont as v_labelfont # Initialize validators # --------------------- - self._validators['color'] = v_labelfont.ColorValidator() - self._validators['family'] = v_labelfont.FamilyValidator() - self._validators['size'] = v_labelfont.SizeValidator() + self._validators["color"] = v_labelfont.ColorValidator() + self._validators["family"] = v_labelfont.FamilyValidator() + self._validators["size"] = v_labelfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/contourcarpet/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/contourcarpet/hoverlabel/__init__.py index 95f942f49ca..2e564d5e29e 100644 --- a/packages/python/plotly/plotly/graph_objs/contourcarpet/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/contourcarpet/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'contourcarpet.hoverlabel' + return "contourcarpet.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.contourcarpet.hoverlabel import (font as v_font) + from plotly.validators.contourcarpet.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/__init__.py b/packages/python/plotly/plotly/graph_objs/funnel/__init__.py index ff91a287e8b..4b98f16dba1 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnel' + return "funnel" # Self properties description # --------------------------- @@ -262,7 +260,7 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -282,35 +280,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnel import (textfont as v_textfont) + from plotly.validators.funnel import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() - self._validators['colorsrc'] = v_textfont.ColorsrcValidator() - self._validators['family'] = v_textfont.FamilyValidator() - self._validators['familysrc'] = v_textfont.FamilysrcValidator() - self._validators['size'] = v_textfont.SizeValidator() - self._validators['sizesrc'] = v_textfont.SizesrcValidator() + self._validators["color"] = v_textfont.ColorValidator() + self._validators["colorsrc"] = v_textfont.ColorsrcValidator() + self._validators["family"] = v_textfont.FamilyValidator() + self._validators["familysrc"] = v_textfont.FamilysrcValidator() + self._validators["size"] = v_textfont.SizeValidator() + self._validators["sizesrc"] = v_textfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -343,11 +341,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -364,17 +362,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnel' + return "funnel" # Self properties description # --------------------------- @@ -415,7 +413,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -435,23 +433,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnel import (stream as v_stream) + from plotly.validators.funnel import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -520,11 +518,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -540,11 +538,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -572,11 +570,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -592,11 +590,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -611,11 +609,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -631,17 +629,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnel' + return "funnel" # Self properties description # --------------------------- @@ -724,7 +722,7 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__('outsidetextfont') + super(Outsidetextfont, self).__init__("outsidetextfont") # Validate arg # ------------ @@ -744,37 +742,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnel import ( - outsidetextfont as v_outsidetextfont - ) + from plotly.validators.funnel import outsidetextfont as v_outsidetextfont # Initialize validators # --------------------- - self._validators['color'] = v_outsidetextfont.ColorValidator() - self._validators['colorsrc'] = v_outsidetextfont.ColorsrcValidator() - self._validators['family'] = v_outsidetextfont.FamilyValidator() - self._validators['familysrc'] = v_outsidetextfont.FamilysrcValidator() - self._validators['size'] = v_outsidetextfont.SizeValidator() - self._validators['sizesrc'] = v_outsidetextfont.SizesrcValidator() + self._validators["color"] = v_outsidetextfont.ColorValidator() + self._validators["colorsrc"] = v_outsidetextfont.ColorsrcValidator() + self._validators["family"] = v_outsidetextfont.FamilyValidator() + self._validators["familysrc"] = v_outsidetextfont.FamilysrcValidator() + self._validators["size"] = v_outsidetextfont.SizeValidator() + self._validators["sizesrc"] = v_outsidetextfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -811,11 +807,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -836,11 +832,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -859,11 +855,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -883,11 +879,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -906,11 +902,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -971,11 +967,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -998,11 +994,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -1232,11 +1228,11 @@ def colorbar(self): ------- plotly.graph_objs.funnel.marker.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -1270,11 +1266,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -1290,11 +1286,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # line # ---- @@ -1402,11 +1398,11 @@ def line(self): ------- plotly.graph_objs.funnel.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # opacity # ------- @@ -1423,11 +1419,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # opacitysrc # ---------- @@ -1443,11 +1439,11 @@ def opacitysrc(self): ------- str """ - return self['opacitysrc'] + return self["opacitysrc"] @opacitysrc.setter def opacitysrc(self, val): - self['opacitysrc'] = val + self["opacitysrc"] = val # reversescale # ------------ @@ -1466,11 +1462,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -1488,17 +1484,17 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnel' + return "funnel" # Self properties description # --------------------------- @@ -1704,7 +1700,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -1724,63 +1720,62 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnel import (marker as v_marker) + from plotly.validators.funnel import marker as v_marker # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_marker.AutocolorscaleValidator() - self._validators['cauto'] = v_marker.CautoValidator() - self._validators['cmax'] = v_marker.CmaxValidator() - self._validators['cmid'] = v_marker.CmidValidator() - self._validators['cmin'] = v_marker.CminValidator() - self._validators['color'] = v_marker.ColorValidator() - self._validators['coloraxis'] = v_marker.ColoraxisValidator() - self._validators['colorbar'] = v_marker.ColorBarValidator() - self._validators['colorscale'] = v_marker.ColorscaleValidator() - self._validators['colorsrc'] = v_marker.ColorsrcValidator() - self._validators['line'] = v_marker.LineValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['opacitysrc'] = v_marker.OpacitysrcValidator() - self._validators['reversescale'] = v_marker.ReversescaleValidator() - self._validators['showscale'] = v_marker.ShowscaleValidator() + self._validators["autocolorscale"] = v_marker.AutocolorscaleValidator() + self._validators["cauto"] = v_marker.CautoValidator() + self._validators["cmax"] = v_marker.CmaxValidator() + self._validators["cmid"] = v_marker.CmidValidator() + self._validators["cmin"] = v_marker.CminValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["coloraxis"] = v_marker.ColoraxisValidator() + self._validators["colorbar"] = v_marker.ColorBarValidator() + self._validators["colorscale"] = v_marker.ColorscaleValidator() + self._validators["colorsrc"] = v_marker.ColorsrcValidator() + self._validators["line"] = v_marker.LineValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["opacitysrc"] = v_marker.OpacitysrcValidator() + self._validators["reversescale"] = v_marker.ReversescaleValidator() + self._validators["showscale"] = v_marker.ShowscaleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('opacitysrc', None) - self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("opacitysrc", None) + self["opacitysrc"] = opacitysrc if opacitysrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v # Process unknown kwargs # ---------------------- @@ -1849,11 +1844,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -1869,11 +1864,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -1901,11 +1896,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -1921,11 +1916,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -1940,11 +1935,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -1960,17 +1955,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnel' + return "funnel" # Self properties description # --------------------------- @@ -2053,7 +2048,7 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__('insidetextfont') + super(Insidetextfont, self).__init__("insidetextfont") # Validate arg # ------------ @@ -2073,37 +2068,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnel import ( - insidetextfont as v_insidetextfont - ) + from plotly.validators.funnel import insidetextfont as v_insidetextfont # Initialize validators # --------------------- - self._validators['color'] = v_insidetextfont.ColorValidator() - self._validators['colorsrc'] = v_insidetextfont.ColorsrcValidator() - self._validators['family'] = v_insidetextfont.FamilyValidator() - self._validators['familysrc'] = v_insidetextfont.FamilysrcValidator() - self._validators['size'] = v_insidetextfont.SizeValidator() - self._validators['sizesrc'] = v_insidetextfont.SizesrcValidator() + self._validators["color"] = v_insidetextfont.ColorValidator() + self._validators["colorsrc"] = v_insidetextfont.ColorsrcValidator() + self._validators["family"] = v_insidetextfont.FamilyValidator() + self._validators["familysrc"] = v_insidetextfont.FamilysrcValidator() + self._validators["size"] = v_insidetextfont.SizeValidator() + self._validators["sizesrc"] = v_insidetextfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -2138,11 +2131,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -2158,11 +2151,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -2218,11 +2211,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -2238,11 +2231,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -2298,11 +2291,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -2318,11 +2311,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -2373,11 +2366,11 @@ def font(self): ------- plotly.graph_objs.funnel.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -2400,11 +2393,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -2420,17 +2413,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnel' + return "funnel" # Self properties description # --------------------------- @@ -2522,7 +2515,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -2542,48 +2535,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnel import (hoverlabel as v_hoverlabel) + from plotly.validators.funnel import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -2653,11 +2642,11 @@ def fillcolor(self): ------- str """ - return self['fillcolor'] + return self["fillcolor"] @fillcolor.setter def fillcolor(self, val): - self['fillcolor'] = val + self["fillcolor"] = val # line # ---- @@ -2686,11 +2675,11 @@ def line(self): ------- plotly.graph_objs.funnel.connector.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # visible # ------- @@ -2706,17 +2695,17 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnel' + return "funnel" # Self properties description # --------------------------- @@ -2732,9 +2721,7 @@ def _prop_descriptions(self): Determines if connector regions and lines are drawn. """ - def __init__( - self, arg=None, fillcolor=None, line=None, visible=None, **kwargs - ): + def __init__(self, arg=None, fillcolor=None, line=None, visible=None, **kwargs): """ Construct a new Connector object @@ -2755,7 +2742,7 @@ def __init__( ------- Connector """ - super(Connector, self).__init__('connector') + super(Connector, self).__init__("connector") # Validate arg # ------------ @@ -2775,26 +2762,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnel import (connector as v_connector) + from plotly.validators.funnel import connector as v_connector # Initialize validators # --------------------- - self._validators['fillcolor'] = v_connector.FillcolorValidator() - self._validators['line'] = v_connector.LineValidator() - self._validators['visible'] = v_connector.VisibleValidator() + self._validators["fillcolor"] = v_connector.FillcolorValidator() + self._validators["line"] = v_connector.LineValidator() + self._validators["visible"] = v_connector.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fillcolor', None) - self['fillcolor'] = fillcolor if fillcolor is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("fillcolor", None) + self["fillcolor"] = fillcolor if fillcolor is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/connector/__init__.py b/packages/python/plotly/plotly/graph_objs/funnel/connector/__init__.py index a347edcd50b..6c2084ce73b 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/connector/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/connector/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dash # ---- @@ -85,11 +83,11 @@ def dash(self): ------- str """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # width # ----- @@ -105,17 +103,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnel.connector' + return "funnel.connector" # Self properties description # --------------------------- @@ -156,7 +154,7 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -176,26 +174,26 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnel.connector import (line as v_line) + from plotly.validators.funnel.connector import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['dash'] = v_line.DashValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/funnel/hoverlabel/__init__.py index 9ed10b83f63..540cd010db1 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnel.hoverlabel' + return "funnel.hoverlabel" # Self properties description # --------------------------- @@ -262,7 +260,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -282,35 +280,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnel.hoverlabel import (font as v_font) + from plotly.validators.funnel.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/funnel/marker/__init__.py index fdffa0bdb12..abc637b02ab 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -26,11 +24,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -51,11 +49,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -74,11 +72,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -99,11 +97,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -122,11 +120,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -187,11 +185,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -214,11 +212,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorscale # ---------- @@ -253,11 +251,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -273,11 +271,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # reversescale # ------------ @@ -297,11 +295,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # width # ----- @@ -318,11 +316,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -338,17 +336,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnel.marker' + return "funnel.marker" # Self properties description # --------------------------- @@ -541,7 +539,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -561,54 +559,53 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnel.marker import (line as v_line) + from plotly.validators.funnel.marker import line as v_line # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_line.AutocolorscaleValidator() - self._validators['cauto'] = v_line.CautoValidator() - self._validators['cmax'] = v_line.CmaxValidator() - self._validators['cmid'] = v_line.CmidValidator() - self._validators['cmin'] = v_line.CminValidator() - self._validators['color'] = v_line.ColorValidator() - self._validators['coloraxis'] = v_line.ColoraxisValidator() - self._validators['colorscale'] = v_line.ColorscaleValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['reversescale'] = v_line.ReversescaleValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["autocolorscale"] = v_line.AutocolorscaleValidator() + self._validators["cauto"] = v_line.CautoValidator() + self._validators["cmax"] = v_line.CmaxValidator() + self._validators["cmid"] = v_line.CmidValidator() + self._validators["cmin"] = v_line.CminValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["coloraxis"] = v_line.ColoraxisValidator() + self._validators["colorscale"] = v_line.ColorscaleValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["reversescale"] = v_line.ReversescaleValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -678,11 +675,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -737,11 +734,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -757,11 +754,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -795,11 +792,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -820,11 +817,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -842,11 +839,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -865,11 +862,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -889,11 +886,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -948,11 +945,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -968,11 +965,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -988,11 +985,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1012,11 +1009,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1032,11 +1029,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1056,11 +1053,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1077,11 +1074,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1098,11 +1095,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1121,11 +1118,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1148,11 +1145,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1172,11 +1169,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1231,11 +1228,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1276,11 +1273,11 @@ def tickfont(self): ------- plotly.graph_objs.funnel.marker.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1305,11 +1302,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1362,11 +1359,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.funnel.marker.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1390,11 +1387,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.funnel.marker.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1410,11 +1407,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1437,11 +1434,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1458,11 +1455,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1481,11 +1478,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1502,11 +1499,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1524,11 +1521,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1544,11 +1541,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1565,11 +1562,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1585,11 +1582,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1605,11 +1602,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1644,11 +1641,11 @@ def title(self): ------- plotly.graph_objs.funnel.marker.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1692,11 +1689,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1716,11 +1713,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1736,11 +1733,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1759,11 +1756,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -1779,11 +1776,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -1799,11 +1796,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -1822,11 +1819,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -1842,17 +1839,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnel.marker' + return "funnel.marker" # Self properties description # --------------------------- @@ -2047,8 +2044,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2297,7 +2294,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2317,164 +2314,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnel.marker import (colorbar as v_colorbar) + from plotly.validators.funnel.marker import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/__init__.py index 565ce725af6..9c4866e7707 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.funnel.marker.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnel.marker.colorbar' + return "funnel.marker.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,26 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnel.marker.colorbar import (title as v_title) + from plotly.validators.funnel.marker.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -229,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -250,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -277,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -305,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -327,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnel.marker.colorbar' + return "funnel.marker.colorbar" # Self properties description # --------------------------- @@ -430,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -450,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.funnel.marker.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -547,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -578,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -596,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnel.marker.colorbar' + return "funnel.marker.colorbar" # Self properties description # --------------------------- @@ -668,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -688,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnel.marker.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.funnel.marker.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/title/__init__.py index fc416cde01e..e0e429d2f10 100644 --- a/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnel/marker/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnel.marker.colorbar.title' + return "funnel.marker.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnel.marker.colorbar.title import ( - font as v_font - ) + from plotly.validators.funnel.marker.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/__init__.py b/packages/python/plotly/plotly/graph_objs/funnelarea/__init__.py index 1d50afd8acb..6b3ae75ab6d 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -56,11 +54,11 @@ def font(self): ------- plotly.graph_objs.funnelarea.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # position # -------- @@ -79,11 +77,11 @@ def position(self): ------- Any """ - return self['position'] + return self["position"] @position.setter def position(self, val): - self['position'] = val + self["position"] = val # text # ---- @@ -103,17 +101,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnelarea' + return "funnelarea" # Self properties description # --------------------------- @@ -136,9 +134,7 @@ def _prop_descriptions(self): deprecated. """ - def __init__( - self, arg=None, font=None, position=None, text=None, **kwargs - ): + def __init__(self, arg=None, font=None, position=None, text=None, **kwargs): """ Construct a new Title object @@ -166,7 +162,7 @@ def __init__( ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -186,26 +182,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnelarea import (title as v_title) + from plotly.validators.funnelarea import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['position'] = v_title.PositionValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["position"] = v_title.PositionValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('position', None) - self['position'] = position if position is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("position", None) + self["position"] = position if position is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -274,11 +270,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -294,11 +290,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -326,11 +322,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -346,11 +342,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -365,11 +361,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -385,17 +381,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnelarea' + return "funnelarea" # Self properties description # --------------------------- @@ -478,7 +474,7 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -498,35 +494,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnelarea import (textfont as v_textfont) + from plotly.validators.funnelarea import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() - self._validators['colorsrc'] = v_textfont.ColorsrcValidator() - self._validators['family'] = v_textfont.FamilyValidator() - self._validators['familysrc'] = v_textfont.FamilysrcValidator() - self._validators['size'] = v_textfont.SizeValidator() - self._validators['sizesrc'] = v_textfont.SizesrcValidator() + self._validators["color"] = v_textfont.ColorValidator() + self._validators["colorsrc"] = v_textfont.ColorsrcValidator() + self._validators["family"] = v_textfont.FamilyValidator() + self._validators["familysrc"] = v_textfont.FamilysrcValidator() + self._validators["size"] = v_textfont.SizeValidator() + self._validators["sizesrc"] = v_textfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -559,11 +555,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -580,17 +576,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnelarea' + return "funnelarea" # Self properties description # --------------------------- @@ -631,7 +627,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -651,23 +647,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnelarea import (stream as v_stream) + from plotly.validators.funnelarea import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -699,11 +695,11 @@ def colors(self): ------- numpy.ndarray """ - return self['colors'] + return self["colors"] @colors.setter def colors(self, val): - self['colors'] = val + self["colors"] = val # colorssrc # --------- @@ -719,11 +715,11 @@ def colorssrc(self): ------- str """ - return self['colorssrc'] + return self["colorssrc"] @colorssrc.setter def colorssrc(self, val): - self['colorssrc'] = val + self["colorssrc"] = val # line # ---- @@ -755,17 +751,17 @@ def line(self): ------- plotly.graph_objs.funnelarea.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnelarea' + return "funnelarea" # Self properties description # --------------------------- @@ -783,9 +779,7 @@ def _prop_descriptions(self): dict with compatible properties """ - def __init__( - self, arg=None, colors=None, colorssrc=None, line=None, **kwargs - ): + def __init__(self, arg=None, colors=None, colorssrc=None, line=None, **kwargs): """ Construct a new Marker object @@ -808,7 +802,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -828,26 +822,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnelarea import (marker as v_marker) + from plotly.validators.funnelarea import marker as v_marker # Initialize validators # --------------------- - self._validators['colors'] = v_marker.ColorsValidator() - self._validators['colorssrc'] = v_marker.ColorssrcValidator() - self._validators['line'] = v_marker.LineValidator() + self._validators["colors"] = v_marker.ColorsValidator() + self._validators["colorssrc"] = v_marker.ColorssrcValidator() + self._validators["line"] = v_marker.LineValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('colors', None) - self['colors'] = colors if colors is not None else _v - _v = arg.pop('colorssrc', None) - self['colorssrc'] = colorssrc if colorssrc is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v + _v = arg.pop("colors", None) + self["colors"] = colors if colors is not None else _v + _v = arg.pop("colorssrc", None) + self["colorssrc"] = colorssrc if colorssrc is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v # Process unknown kwargs # ---------------------- @@ -916,11 +910,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -936,11 +930,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -968,11 +962,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -988,11 +982,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -1007,11 +1001,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -1027,17 +1021,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnelarea' + return "funnelarea" # Self properties description # --------------------------- @@ -1121,7 +1115,7 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__('insidetextfont') + super(Insidetextfont, self).__init__("insidetextfont") # Validate arg # ------------ @@ -1141,37 +1135,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnelarea import ( - insidetextfont as v_insidetextfont - ) + from plotly.validators.funnelarea import insidetextfont as v_insidetextfont # Initialize validators # --------------------- - self._validators['color'] = v_insidetextfont.ColorValidator() - self._validators['colorsrc'] = v_insidetextfont.ColorsrcValidator() - self._validators['family'] = v_insidetextfont.FamilyValidator() - self._validators['familysrc'] = v_insidetextfont.FamilysrcValidator() - self._validators['size'] = v_insidetextfont.SizeValidator() - self._validators['sizesrc'] = v_insidetextfont.SizesrcValidator() + self._validators["color"] = v_insidetextfont.ColorValidator() + self._validators["colorsrc"] = v_insidetextfont.ColorsrcValidator() + self._validators["family"] = v_insidetextfont.FamilyValidator() + self._validators["familysrc"] = v_insidetextfont.FamilysrcValidator() + self._validators["size"] = v_insidetextfont.SizeValidator() + self._validators["sizesrc"] = v_insidetextfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1206,11 +1198,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -1226,11 +1218,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -1286,11 +1278,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -1306,11 +1298,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -1366,11 +1358,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -1386,11 +1378,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -1441,11 +1433,11 @@ def font(self): ------- plotly.graph_objs.funnelarea.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -1468,11 +1460,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -1488,17 +1480,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnelarea' + return "funnelarea" # Self properties description # --------------------------- @@ -1590,7 +1582,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -1610,48 +1602,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnelarea import (hoverlabel as v_hoverlabel) + from plotly.validators.funnelarea import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1684,11 +1672,11 @@ def column(self): ------- int """ - return self['column'] + return self["column"] @column.setter def column(self, val): - self['column'] = val + self["column"] = val # row # --- @@ -1706,11 +1694,11 @@ def row(self): ------- int """ - return self['row'] + return self["row"] @row.setter def row(self, val): - self['row'] = val + self["row"] = val # x # - @@ -1732,11 +1720,11 @@ def x(self): ------- list """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -1758,17 +1746,17 @@ def y(self): ------- list """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnelarea' + return "funnelarea" # Self properties description # --------------------------- @@ -1789,9 +1777,7 @@ def _prop_descriptions(self): plot fraction). """ - def __init__( - self, arg=None, column=None, row=None, x=None, y=None, **kwargs - ): + def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): """ Construct a new Domain object @@ -1817,7 +1803,7 @@ def __init__( ------- Domain """ - super(Domain, self).__init__('domain') + super(Domain, self).__init__("domain") # Validate arg # ------------ @@ -1837,29 +1823,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnelarea import (domain as v_domain) + from plotly.validators.funnelarea import domain as v_domain # Initialize validators # --------------------- - self._validators['column'] = v_domain.ColumnValidator() - self._validators['row'] = v_domain.RowValidator() - self._validators['x'] = v_domain.XValidator() - self._validators['y'] = v_domain.YValidator() + self._validators["column"] = v_domain.ColumnValidator() + self._validators["row"] = v_domain.RowValidator() + self._validators["x"] = v_domain.XValidator() + self._validators["y"] = v_domain.YValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('column', None) - self['column'] = column if column is not None else _v - _v = arg.pop('row', None) - self['row'] = row if row is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v + _v = arg.pop("column", None) + self["column"] = column if column is not None else _v + _v = arg.pop("row", None) + self["row"] = row if row is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/funnelarea/hoverlabel/__init__.py index e33a7fd0835..e8e79a433f8 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnelarea.hoverlabel' + return "funnelarea.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnelarea.hoverlabel import (font as v_font) + from plotly.validators.funnelarea.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/funnelarea/marker/__init__.py index cb50447ff76..1c123334542 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -61,11 +59,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -81,11 +79,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # width # ----- @@ -102,11 +100,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -122,17 +120,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnelarea.marker' + return "funnelarea.marker" # Self properties description # --------------------------- @@ -152,13 +150,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - colorsrc=None, - width=None, - widthsrc=None, - **kwargs + self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs ): """ Construct a new Line object @@ -183,7 +175,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -203,29 +195,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnelarea.marker import (line as v_line) + from plotly.validators.funnelarea.marker import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/funnelarea/title/__init__.py b/packages/python/plotly/plotly/graph_objs/funnelarea/title/__init__.py index 4514fcfcf14..19a1b284273 100644 --- a/packages/python/plotly/plotly/graph_objs/funnelarea/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/funnelarea/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'funnelarea.title' + return "funnelarea.title" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.funnelarea.title import (font as v_font) + from plotly.validators.funnelarea.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/__init__.py b/packages/python/plotly/plotly/graph_objs/heatmap/__init__.py index df994db3206..6029321f05d 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -22,11 +20,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -43,17 +41,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'heatmap' + return "heatmap" # Self properties description # --------------------------- @@ -94,7 +92,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -114,23 +112,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.heatmap import (stream as v_stream) + from plotly.validators.heatmap import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -165,11 +163,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -185,11 +183,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -245,11 +243,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -265,11 +263,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -325,11 +323,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -345,11 +343,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -400,11 +398,11 @@ def font(self): ------- plotly.graph_objs.heatmap.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -427,11 +425,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -447,17 +445,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'heatmap' + return "heatmap" # Self properties description # --------------------------- @@ -549,7 +547,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -569,48 +567,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.heatmap import (hoverlabel as v_hoverlabel) + from plotly.validators.heatmap import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -680,11 +674,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -739,11 +733,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -759,11 +753,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -797,11 +791,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -822,11 +816,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -844,11 +838,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -867,11 +861,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -891,11 +885,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -950,11 +944,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -970,11 +964,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -990,11 +984,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1014,11 +1008,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1034,11 +1028,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1058,11 +1052,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1079,11 +1073,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1100,11 +1094,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1123,11 +1117,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1150,11 +1144,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1174,11 +1168,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1233,11 +1227,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1278,11 +1272,11 @@ def tickfont(self): ------- plotly.graph_objs.heatmap.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1307,11 +1301,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1364,11 +1358,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.heatmap.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1392,11 +1386,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.heatmap.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1412,11 +1406,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1439,11 +1433,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1460,11 +1454,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1483,11 +1477,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1504,11 +1498,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1526,11 +1520,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1546,11 +1540,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1567,11 +1561,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1587,11 +1581,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1607,11 +1601,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1646,11 +1640,11 @@ def title(self): ------- plotly.graph_objs.heatmap.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1693,11 +1687,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1717,11 +1711,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1737,11 +1731,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1760,11 +1754,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -1780,11 +1774,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -1800,11 +1794,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -1823,11 +1817,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -1843,17 +1837,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'heatmap' + return "heatmap" # Self properties description # --------------------------- @@ -2048,8 +2042,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2298,7 +2292,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2318,164 +2312,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.heatmap import (colorbar as v_colorbar) + from plotly.validators.heatmap import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/__init__.py index 312689c28b8..49ab091f59a 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.heatmap.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'heatmap.colorbar' + return "heatmap.colorbar" # Self properties description # --------------------------- @@ -153,7 +151,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -173,26 +171,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.heatmap.colorbar import (title as v_title) + from plotly.validators.heatmap.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -228,11 +226,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -249,11 +247,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -276,11 +274,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -304,11 +302,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -326,17 +324,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'heatmap.colorbar' + return "heatmap.colorbar" # Self properties description # --------------------------- @@ -429,7 +427,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -449,36 +447,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.heatmap.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -546,11 +546,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -577,11 +577,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -595,17 +595,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'heatmap.colorbar' + return "heatmap.colorbar" # Self properties description # --------------------------- @@ -667,7 +667,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -687,26 +687,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.heatmap.colorbar import (tickfont as v_tickfont) + from plotly.validators.heatmap.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/title/__init__.py index 4b45529e837..af89b3fcd17 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'heatmap.colorbar.title' + return "heatmap.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,26 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.heatmap.colorbar.title import (font as v_font) + from plotly.validators.heatmap.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmap/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/heatmap/hoverlabel/__init__.py index 77fdebf414f..69feb09995a 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmap/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/heatmap/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'heatmap.hoverlabel' + return "heatmap.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.heatmap.hoverlabel import (font as v_font) + from plotly.validators.heatmap.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmapgl/__init__.py b/packages/python/plotly/plotly/graph_objs/heatmapgl/__init__.py index 276fa170931..064262bae2e 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmapgl/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/heatmapgl/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -22,11 +20,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -43,17 +41,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'heatmapgl' + return "heatmapgl" # Self properties description # --------------------------- @@ -94,7 +92,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -114,23 +112,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.heatmapgl import (stream as v_stream) + from plotly.validators.heatmapgl import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -165,11 +163,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -185,11 +183,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -245,11 +243,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -265,11 +263,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -325,11 +323,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -345,11 +343,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -400,11 +398,11 @@ def font(self): ------- plotly.graph_objs.heatmapgl.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -427,11 +425,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -447,17 +445,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'heatmapgl' + return "heatmapgl" # Self properties description # --------------------------- @@ -549,7 +547,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -569,48 +567,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.heatmapgl import (hoverlabel as v_hoverlabel) + from plotly.validators.heatmapgl import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -680,11 +674,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -739,11 +733,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -759,11 +753,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -797,11 +791,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -822,11 +816,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -844,11 +838,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -867,11 +861,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -891,11 +885,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -950,11 +944,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -970,11 +964,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -990,11 +984,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1014,11 +1008,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1034,11 +1028,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1058,11 +1052,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1079,11 +1073,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1100,11 +1094,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1123,11 +1117,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1150,11 +1144,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1174,11 +1168,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1233,11 +1227,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1278,11 +1272,11 @@ def tickfont(self): ------- plotly.graph_objs.heatmapgl.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1307,11 +1301,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1364,11 +1358,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.heatmapgl.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1391,11 +1385,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.heatmapgl.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1411,11 +1405,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1438,11 +1432,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1459,11 +1453,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1482,11 +1476,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1503,11 +1497,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1525,11 +1519,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1545,11 +1539,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1566,11 +1560,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1586,11 +1580,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1606,11 +1600,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1645,11 +1639,11 @@ def title(self): ------- plotly.graph_objs.heatmapgl.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1692,11 +1686,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1716,11 +1710,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1736,11 +1730,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1759,11 +1753,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -1779,11 +1773,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -1799,11 +1793,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -1822,11 +1816,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -1842,17 +1836,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'heatmapgl' + return "heatmapgl" # Self properties description # --------------------------- @@ -2047,8 +2041,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2297,7 +2291,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2317,164 +2311,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.heatmapgl import (colorbar as v_colorbar) + from plotly.validators.heatmapgl import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmapgl/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/heatmapgl/colorbar/__init__.py index 2b1f6f31ad8..cb054c8f70f 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmapgl/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/heatmapgl/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.heatmapgl.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'heatmapgl.colorbar' + return "heatmapgl.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,26 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.heatmapgl.colorbar import (title as v_title) + from plotly.validators.heatmapgl.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -229,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -250,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -277,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -305,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -327,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'heatmapgl.colorbar' + return "heatmapgl.colorbar" # Self properties description # --------------------------- @@ -430,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -450,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.heatmapgl.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -547,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -578,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -596,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'heatmapgl.colorbar' + return "heatmapgl.colorbar" # Self properties description # --------------------------- @@ -668,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -688,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.heatmapgl.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.heatmapgl.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmapgl/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/heatmapgl/colorbar/title/__init__.py index cde0ac806b5..35b5a87b387 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmapgl/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/heatmapgl/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'heatmapgl.colorbar.title' + return "heatmapgl.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,26 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.heatmapgl.colorbar.title import (font as v_font) + from plotly.validators.heatmapgl.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/heatmapgl/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/heatmapgl/hoverlabel/__init__.py index 4a2721b5a7b..13708dd4287 100644 --- a/packages/python/plotly/plotly/graph_objs/heatmapgl/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/heatmapgl/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'heatmapgl.hoverlabel' + return "heatmapgl.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.heatmapgl.hoverlabel import (font as v_font) + from plotly.validators.heatmapgl.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram/__init__.py index 440ccd5fcde..ce1721504ad 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -24,11 +22,11 @@ def end(self): ------- Any """ - return self['end'] + return self["end"] @end.setter def end(self, val): - self['end'] = val + self["end"] = val # size # ---- @@ -54,11 +52,11 @@ def size(self): ------- Any """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # start # ----- @@ -85,17 +83,17 @@ def start(self): ------- Any """ - return self['start'] + return self["start"] @start.setter def start(self, val): - self['start'] = val + self["start"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram' + return "histogram" # Self properties description # --------------------------- @@ -192,7 +190,7 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- YBins """ - super(YBins, self).__init__('ybins') + super(YBins, self).__init__("ybins") # Validate arg # ------------ @@ -212,26 +210,26 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram import (ybins as v_ybins) + from plotly.validators.histogram import ybins as v_ybins # Initialize validators # --------------------- - self._validators['end'] = v_ybins.EndValidator() - self._validators['size'] = v_ybins.SizeValidator() - self._validators['start'] = v_ybins.StartValidator() + self._validators["end"] = v_ybins.EndValidator() + self._validators["size"] = v_ybins.SizeValidator() + self._validators["start"] = v_ybins.StartValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('end', None) - self['end'] = end if end is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('start', None) - self['start'] = start if start is not None else _v + _v = arg.pop("end", None) + self["end"] = end if end is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("start", None) + self["start"] = start if start is not None else _v # Process unknown kwargs # ---------------------- @@ -266,11 +264,11 @@ def end(self): ------- Any """ - return self['end'] + return self["end"] @end.setter def end(self, val): - self['end'] = val + self["end"] = val # size # ---- @@ -296,11 +294,11 @@ def size(self): ------- Any """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # start # ----- @@ -327,17 +325,17 @@ def start(self): ------- Any """ - return self['start'] + return self["start"] @start.setter def start(self, val): - self['start'] = val + self["start"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram' + return "histogram" # Self properties description # --------------------------- @@ -434,7 +432,7 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- XBins """ - super(XBins, self).__init__('xbins') + super(XBins, self).__init__("xbins") # Validate arg # ------------ @@ -454,26 +452,26 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram import (xbins as v_xbins) + from plotly.validators.histogram import xbins as v_xbins # Initialize validators # --------------------- - self._validators['end'] = v_xbins.EndValidator() - self._validators['size'] = v_xbins.SizeValidator() - self._validators['start'] = v_xbins.StartValidator() + self._validators["end"] = v_xbins.EndValidator() + self._validators["size"] = v_xbins.SizeValidator() + self._validators["start"] = v_xbins.StartValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('end', None) - self['end'] = end if end is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('start', None) - self['start'] = start if start is not None else _v + _v = arg.pop("end", None) + self["end"] = end if end is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("start", None) + self["start"] = start if start is not None else _v # Process unknown kwargs # ---------------------- @@ -514,11 +512,11 @@ def marker(self): ------- plotly.graph_objs.histogram.unselected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -541,17 +539,17 @@ def textfont(self): ------- plotly.graph_objs.histogram.unselected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram' + return "histogram" # Self properties description # --------------------------- @@ -586,7 +584,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__('unselected') + super(Unselected, self).__init__("unselected") # Validate arg # ------------ @@ -606,23 +604,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram import (unselected as v_unselected) + from plotly.validators.histogram import unselected as v_unselected # Initialize validators # --------------------- - self._validators['marker'] = v_unselected.MarkerValidator() - self._validators['textfont'] = v_unselected.TextfontValidator() + self._validators["marker"] = v_unselected.MarkerValidator() + self._validators["textfont"] = v_unselected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -655,11 +653,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -676,17 +674,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram' + return "histogram" # Self properties description # --------------------------- @@ -727,7 +725,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -747,23 +745,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram import (stream as v_stream) + from plotly.validators.histogram import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -802,11 +800,11 @@ def marker(self): ------- plotly.graph_objs.histogram.selected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -828,17 +826,17 @@ def textfont(self): ------- plotly.graph_objs.histogram.selected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram' + return "histogram" # Self properties description # --------------------------- @@ -873,7 +871,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__('selected') + super(Selected, self).__init__("selected") # Validate arg # ------------ @@ -893,23 +891,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram import (selected as v_selected) + from plotly.validators.histogram import selected as v_selected # Initialize validators # --------------------- - self._validators['marker'] = v_selected.MarkerValidator() - self._validators['textfont'] = v_selected.TextfontValidator() + self._validators["marker"] = v_selected.MarkerValidator() + self._validators["textfont"] = v_selected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -946,11 +944,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -971,11 +969,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -994,11 +992,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -1018,11 +1016,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -1041,11 +1039,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -1106,11 +1104,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -1133,11 +1131,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -1367,11 +1365,11 @@ def colorbar(self): ------- plotly.graph_objs.histogram.marker.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -1405,11 +1403,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -1425,11 +1423,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # line # ---- @@ -1537,11 +1535,11 @@ def line(self): ------- plotly.graph_objs.histogram.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # opacity # ------- @@ -1558,11 +1556,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # opacitysrc # ---------- @@ -1578,11 +1576,11 @@ def opacitysrc(self): ------- str """ - return self['opacitysrc'] + return self["opacitysrc"] @opacitysrc.setter def opacitysrc(self, val): - self['opacitysrc'] = val + self["opacitysrc"] = val # reversescale # ------------ @@ -1601,11 +1599,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -1623,17 +1621,17 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram' + return "histogram" # Self properties description # --------------------------- @@ -1839,7 +1837,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -1859,63 +1857,62 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram import (marker as v_marker) + from plotly.validators.histogram import marker as v_marker # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_marker.AutocolorscaleValidator() - self._validators['cauto'] = v_marker.CautoValidator() - self._validators['cmax'] = v_marker.CmaxValidator() - self._validators['cmid'] = v_marker.CmidValidator() - self._validators['cmin'] = v_marker.CminValidator() - self._validators['color'] = v_marker.ColorValidator() - self._validators['coloraxis'] = v_marker.ColoraxisValidator() - self._validators['colorbar'] = v_marker.ColorBarValidator() - self._validators['colorscale'] = v_marker.ColorscaleValidator() - self._validators['colorsrc'] = v_marker.ColorsrcValidator() - self._validators['line'] = v_marker.LineValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['opacitysrc'] = v_marker.OpacitysrcValidator() - self._validators['reversescale'] = v_marker.ReversescaleValidator() - self._validators['showscale'] = v_marker.ShowscaleValidator() + self._validators["autocolorscale"] = v_marker.AutocolorscaleValidator() + self._validators["cauto"] = v_marker.CautoValidator() + self._validators["cmax"] = v_marker.CmaxValidator() + self._validators["cmid"] = v_marker.CmidValidator() + self._validators["cmin"] = v_marker.CminValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["coloraxis"] = v_marker.ColoraxisValidator() + self._validators["colorbar"] = v_marker.ColorBarValidator() + self._validators["colorscale"] = v_marker.ColorscaleValidator() + self._validators["colorsrc"] = v_marker.ColorsrcValidator() + self._validators["line"] = v_marker.LineValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["opacitysrc"] = v_marker.OpacitysrcValidator() + self._validators["reversescale"] = v_marker.ReversescaleValidator() + self._validators["showscale"] = v_marker.ShowscaleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('opacitysrc', None) - self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("opacitysrc", None) + self["opacitysrc"] = opacitysrc if opacitysrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v # Process unknown kwargs # ---------------------- @@ -1950,11 +1947,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -1970,11 +1967,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -2030,11 +2027,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -2050,11 +2047,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -2110,11 +2107,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -2130,11 +2127,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -2185,11 +2182,11 @@ def font(self): ------- plotly.graph_objs.histogram.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -2212,11 +2209,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -2232,17 +2229,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram' + return "histogram" # Self properties description # --------------------------- @@ -2334,7 +2331,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -2354,48 +2351,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram import (hoverlabel as v_hoverlabel) + from plotly.validators.histogram import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -2427,11 +2420,11 @@ def array(self): ------- numpy.ndarray """ - return self['array'] + return self["array"] @array.setter def array(self, val): - self['array'] = val + self["array"] = val # arrayminus # ---------- @@ -2449,11 +2442,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self['arrayminus'] + return self["arrayminus"] @arrayminus.setter def arrayminus(self, val): - self['arrayminus'] = val + self["arrayminus"] = val # arrayminussrc # ------------- @@ -2469,11 +2462,11 @@ def arrayminussrc(self): ------- str """ - return self['arrayminussrc'] + return self["arrayminussrc"] @arrayminussrc.setter def arrayminussrc(self, val): - self['arrayminussrc'] = val + self["arrayminussrc"] = val # arraysrc # -------- @@ -2489,11 +2482,11 @@ def arraysrc(self): ------- str """ - return self['arraysrc'] + return self["arraysrc"] @arraysrc.setter def arraysrc(self, val): - self['arraysrc'] = val + self["arraysrc"] = val # color # ----- @@ -2548,11 +2541,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # symmetric # --------- @@ -2570,11 +2563,11 @@ def symmetric(self): ------- bool """ - return self['symmetric'] + return self["symmetric"] @symmetric.setter def symmetric(self, val): - self['symmetric'] = val + self["symmetric"] = val # thickness # --------- @@ -2590,11 +2583,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # traceref # -------- @@ -2609,11 +2602,11 @@ def traceref(self): ------- int """ - return self['traceref'] + return self["traceref"] @traceref.setter def traceref(self, val): - self['traceref'] = val + self["traceref"] = val # tracerefminus # ------------- @@ -2628,11 +2621,11 @@ def tracerefminus(self): ------- int """ - return self['tracerefminus'] + return self["tracerefminus"] @tracerefminus.setter def tracerefminus(self, val): - self['tracerefminus'] = val + self["tracerefminus"] = val # type # ---- @@ -2655,11 +2648,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # value # ----- @@ -2677,11 +2670,11 @@ def value(self): ------- int|float """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # valueminus # ---------- @@ -2700,11 +2693,11 @@ def valueminus(self): ------- int|float """ - return self['valueminus'] + return self["valueminus"] @valueminus.setter def valueminus(self, val): - self['valueminus'] = val + self["valueminus"] = val # visible # ------- @@ -2720,11 +2713,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -2741,17 +2734,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram' + return "histogram" # Self properties description # --------------------------- @@ -2894,7 +2887,7 @@ def __init__( ------- ErrorY """ - super(ErrorY, self).__init__('error_y') + super(ErrorY, self).__init__("error_y") # Validate arg # ------------ @@ -2914,61 +2907,59 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram import (error_y as v_error_y) + from plotly.validators.histogram import error_y as v_error_y # Initialize validators # --------------------- - self._validators['array'] = v_error_y.ArrayValidator() - self._validators['arrayminus'] = v_error_y.ArrayminusValidator() - self._validators['arrayminussrc'] = v_error_y.ArrayminussrcValidator() - self._validators['arraysrc'] = v_error_y.ArraysrcValidator() - self._validators['color'] = v_error_y.ColorValidator() - self._validators['symmetric'] = v_error_y.SymmetricValidator() - self._validators['thickness'] = v_error_y.ThicknessValidator() - self._validators['traceref'] = v_error_y.TracerefValidator() - self._validators['tracerefminus'] = v_error_y.TracerefminusValidator() - self._validators['type'] = v_error_y.TypeValidator() - self._validators['value'] = v_error_y.ValueValidator() - self._validators['valueminus'] = v_error_y.ValueminusValidator() - self._validators['visible'] = v_error_y.VisibleValidator() - self._validators['width'] = v_error_y.WidthValidator() + self._validators["array"] = v_error_y.ArrayValidator() + self._validators["arrayminus"] = v_error_y.ArrayminusValidator() + self._validators["arrayminussrc"] = v_error_y.ArrayminussrcValidator() + self._validators["arraysrc"] = v_error_y.ArraysrcValidator() + self._validators["color"] = v_error_y.ColorValidator() + self._validators["symmetric"] = v_error_y.SymmetricValidator() + self._validators["thickness"] = v_error_y.ThicknessValidator() + self._validators["traceref"] = v_error_y.TracerefValidator() + self._validators["tracerefminus"] = v_error_y.TracerefminusValidator() + self._validators["type"] = v_error_y.TypeValidator() + self._validators["value"] = v_error_y.ValueValidator() + self._validators["valueminus"] = v_error_y.ValueminusValidator() + self._validators["visible"] = v_error_y.VisibleValidator() + self._validators["width"] = v_error_y.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('array', None) - self['array'] = array if array is not None else _v - _v = arg.pop('arrayminus', None) - self['arrayminus'] = arrayminus if arrayminus is not None else _v - _v = arg.pop('arrayminussrc', None) - self['arrayminussrc' - ] = arrayminussrc if arrayminussrc is not None else _v - _v = arg.pop('arraysrc', None) - self['arraysrc'] = arraysrc if arraysrc is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('symmetric', None) - self['symmetric'] = symmetric if symmetric is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('traceref', None) - self['traceref'] = traceref if traceref is not None else _v - _v = arg.pop('tracerefminus', None) - self['tracerefminus' - ] = tracerefminus if tracerefminus is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v - _v = arg.pop('valueminus', None) - self['valueminus'] = valueminus if valueminus is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("array", None) + self["array"] = array if array is not None else _v + _v = arg.pop("arrayminus", None) + self["arrayminus"] = arrayminus if arrayminus is not None else _v + _v = arg.pop("arrayminussrc", None) + self["arrayminussrc"] = arrayminussrc if arrayminussrc is not None else _v + _v = arg.pop("arraysrc", None) + self["arraysrc"] = arraysrc if arraysrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("symmetric", None) + self["symmetric"] = symmetric if symmetric is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("traceref", None) + self["traceref"] = traceref if traceref is not None else _v + _v = arg.pop("tracerefminus", None) + self["tracerefminus"] = tracerefminus if tracerefminus is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v + _v = arg.pop("valueminus", None) + self["valueminus"] = valueminus if valueminus is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -3000,11 +2991,11 @@ def array(self): ------- numpy.ndarray """ - return self['array'] + return self["array"] @array.setter def array(self, val): - self['array'] = val + self["array"] = val # arrayminus # ---------- @@ -3022,11 +3013,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self['arrayminus'] + return self["arrayminus"] @arrayminus.setter def arrayminus(self, val): - self['arrayminus'] = val + self["arrayminus"] = val # arrayminussrc # ------------- @@ -3042,11 +3033,11 @@ def arrayminussrc(self): ------- str """ - return self['arrayminussrc'] + return self["arrayminussrc"] @arrayminussrc.setter def arrayminussrc(self, val): - self['arrayminussrc'] = val + self["arrayminussrc"] = val # arraysrc # -------- @@ -3062,11 +3053,11 @@ def arraysrc(self): ------- str """ - return self['arraysrc'] + return self["arraysrc"] @arraysrc.setter def arraysrc(self, val): - self['arraysrc'] = val + self["arraysrc"] = val # color # ----- @@ -3121,11 +3112,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # copy_ystyle # ----------- @@ -3139,11 +3130,11 @@ def copy_ystyle(self): ------- bool """ - return self['copy_ystyle'] + return self["copy_ystyle"] @copy_ystyle.setter def copy_ystyle(self, val): - self['copy_ystyle'] = val + self["copy_ystyle"] = val # symmetric # --------- @@ -3161,11 +3152,11 @@ def symmetric(self): ------- bool """ - return self['symmetric'] + return self["symmetric"] @symmetric.setter def symmetric(self, val): - self['symmetric'] = val + self["symmetric"] = val # thickness # --------- @@ -3181,11 +3172,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # traceref # -------- @@ -3200,11 +3191,11 @@ def traceref(self): ------- int """ - return self['traceref'] + return self["traceref"] @traceref.setter def traceref(self, val): - self['traceref'] = val + self["traceref"] = val # tracerefminus # ------------- @@ -3219,11 +3210,11 @@ def tracerefminus(self): ------- int """ - return self['tracerefminus'] + return self["tracerefminus"] @tracerefminus.setter def tracerefminus(self, val): - self['tracerefminus'] = val + self["tracerefminus"] = val # type # ---- @@ -3246,11 +3237,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # value # ----- @@ -3268,11 +3259,11 @@ def value(self): ------- int|float """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # valueminus # ---------- @@ -3291,11 +3282,11 @@ def valueminus(self): ------- int|float """ - return self['valueminus'] + return self["valueminus"] @valueminus.setter def valueminus(self, val): - self['valueminus'] = val + self["valueminus"] = val # visible # ------- @@ -3311,11 +3302,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -3332,17 +3323,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram' + return "histogram" # Self properties description # --------------------------- @@ -3490,7 +3481,7 @@ def __init__( ------- ErrorX """ - super(ErrorX, self).__init__('error_x') + super(ErrorX, self).__init__("error_x") # Validate arg # ------------ @@ -3510,64 +3501,62 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram import (error_x as v_error_x) + from plotly.validators.histogram import error_x as v_error_x # Initialize validators # --------------------- - self._validators['array'] = v_error_x.ArrayValidator() - self._validators['arrayminus'] = v_error_x.ArrayminusValidator() - self._validators['arrayminussrc'] = v_error_x.ArrayminussrcValidator() - self._validators['arraysrc'] = v_error_x.ArraysrcValidator() - self._validators['color'] = v_error_x.ColorValidator() - self._validators['copy_ystyle'] = v_error_x.CopyYstyleValidator() - self._validators['symmetric'] = v_error_x.SymmetricValidator() - self._validators['thickness'] = v_error_x.ThicknessValidator() - self._validators['traceref'] = v_error_x.TracerefValidator() - self._validators['tracerefminus'] = v_error_x.TracerefminusValidator() - self._validators['type'] = v_error_x.TypeValidator() - self._validators['value'] = v_error_x.ValueValidator() - self._validators['valueminus'] = v_error_x.ValueminusValidator() - self._validators['visible'] = v_error_x.VisibleValidator() - self._validators['width'] = v_error_x.WidthValidator() + self._validators["array"] = v_error_x.ArrayValidator() + self._validators["arrayminus"] = v_error_x.ArrayminusValidator() + self._validators["arrayminussrc"] = v_error_x.ArrayminussrcValidator() + self._validators["arraysrc"] = v_error_x.ArraysrcValidator() + self._validators["color"] = v_error_x.ColorValidator() + self._validators["copy_ystyle"] = v_error_x.CopyYstyleValidator() + self._validators["symmetric"] = v_error_x.SymmetricValidator() + self._validators["thickness"] = v_error_x.ThicknessValidator() + self._validators["traceref"] = v_error_x.TracerefValidator() + self._validators["tracerefminus"] = v_error_x.TracerefminusValidator() + self._validators["type"] = v_error_x.TypeValidator() + self._validators["value"] = v_error_x.ValueValidator() + self._validators["valueminus"] = v_error_x.ValueminusValidator() + self._validators["visible"] = v_error_x.VisibleValidator() + self._validators["width"] = v_error_x.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('array', None) - self['array'] = array if array is not None else _v - _v = arg.pop('arrayminus', None) - self['arrayminus'] = arrayminus if arrayminus is not None else _v - _v = arg.pop('arrayminussrc', None) - self['arrayminussrc' - ] = arrayminussrc if arrayminussrc is not None else _v - _v = arg.pop('arraysrc', None) - self['arraysrc'] = arraysrc if arraysrc is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('copy_ystyle', None) - self['copy_ystyle'] = copy_ystyle if copy_ystyle is not None else _v - _v = arg.pop('symmetric', None) - self['symmetric'] = symmetric if symmetric is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('traceref', None) - self['traceref'] = traceref if traceref is not None else _v - _v = arg.pop('tracerefminus', None) - self['tracerefminus' - ] = tracerefminus if tracerefminus is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v - _v = arg.pop('valueminus', None) - self['valueminus'] = valueminus if valueminus is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("array", None) + self["array"] = array if array is not None else _v + _v = arg.pop("arrayminus", None) + self["arrayminus"] = arrayminus if arrayminus is not None else _v + _v = arg.pop("arrayminussrc", None) + self["arrayminussrc"] = arrayminussrc if arrayminussrc is not None else _v + _v = arg.pop("arraysrc", None) + self["arraysrc"] = arraysrc if arraysrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("copy_ystyle", None) + self["copy_ystyle"] = copy_ystyle if copy_ystyle is not None else _v + _v = arg.pop("symmetric", None) + self["symmetric"] = symmetric if symmetric is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("traceref", None) + self["traceref"] = traceref if traceref is not None else _v + _v = arg.pop("tracerefminus", None) + self["tracerefminus"] = tracerefminus if tracerefminus is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v + _v = arg.pop("valueminus", None) + self["valueminus"] = valueminus if valueminus is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -3604,11 +3593,11 @@ def currentbin(self): ------- Any """ - return self['currentbin'] + return self["currentbin"] @currentbin.setter def currentbin(self, val): - self['currentbin'] = val + self["currentbin"] = val # direction # --------- @@ -3628,11 +3617,11 @@ def direction(self): ------- Any """ - return self['direction'] + return self["direction"] @direction.setter def direction(self, val): - self['direction'] = val + self["direction"] = val # enabled # ------- @@ -3654,17 +3643,17 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram' + return "histogram" # Self properties description # --------------------------- @@ -3696,12 +3685,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - currentbin=None, - direction=None, - enabled=None, - **kwargs + self, arg=None, currentbin=None, direction=None, enabled=None, **kwargs ): """ Construct a new Cumulative object @@ -3738,7 +3722,7 @@ def __init__( ------- Cumulative """ - super(Cumulative, self).__init__('cumulative') + super(Cumulative, self).__init__("cumulative") # Validate arg # ------------ @@ -3758,26 +3742,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram import (cumulative as v_cumulative) + from plotly.validators.histogram import cumulative as v_cumulative # Initialize validators # --------------------- - self._validators['currentbin'] = v_cumulative.CurrentbinValidator() - self._validators['direction'] = v_cumulative.DirectionValidator() - self._validators['enabled'] = v_cumulative.EnabledValidator() + self._validators["currentbin"] = v_cumulative.CurrentbinValidator() + self._validators["direction"] = v_cumulative.DirectionValidator() + self._validators["enabled"] = v_cumulative.EnabledValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('currentbin', None) - self['currentbin'] = currentbin if currentbin is not None else _v - _v = arg.pop('direction', None) - self['direction'] = direction if direction is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v + _v = arg.pop("currentbin", None) + self["currentbin"] = currentbin if currentbin is not None else _v + _v = arg.pop("direction", None) + self["direction"] = direction if direction is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram/hoverlabel/__init__.py index 4341c54f649..60cb4a36ac9 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram.hoverlabel' + return "histogram.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram.hoverlabel import (font as v_font) + from plotly.validators.histogram.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram/marker/__init__.py index 29d975b149c..da8881e58e0 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -26,11 +24,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -51,11 +49,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -74,11 +72,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -99,11 +97,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -122,11 +120,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -187,11 +185,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -214,11 +212,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorscale # ---------- @@ -253,11 +251,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -273,11 +271,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # reversescale # ------------ @@ -297,11 +295,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # width # ----- @@ -318,11 +316,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -338,17 +336,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram.marker' + return "histogram.marker" # Self properties description # --------------------------- @@ -541,7 +539,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -561,54 +559,53 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram.marker import (line as v_line) + from plotly.validators.histogram.marker import line as v_line # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_line.AutocolorscaleValidator() - self._validators['cauto'] = v_line.CautoValidator() - self._validators['cmax'] = v_line.CmaxValidator() - self._validators['cmid'] = v_line.CmidValidator() - self._validators['cmin'] = v_line.CminValidator() - self._validators['color'] = v_line.ColorValidator() - self._validators['coloraxis'] = v_line.ColoraxisValidator() - self._validators['colorscale'] = v_line.ColorscaleValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['reversescale'] = v_line.ReversescaleValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["autocolorscale"] = v_line.AutocolorscaleValidator() + self._validators["cauto"] = v_line.CautoValidator() + self._validators["cmax"] = v_line.CmaxValidator() + self._validators["cmid"] = v_line.CmidValidator() + self._validators["cmin"] = v_line.CminValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["coloraxis"] = v_line.ColoraxisValidator() + self._validators["colorscale"] = v_line.ColorscaleValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["reversescale"] = v_line.ReversescaleValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -678,11 +675,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -737,11 +734,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -757,11 +754,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -795,11 +792,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -820,11 +817,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -842,11 +839,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -865,11 +862,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -889,11 +886,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -948,11 +945,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -968,11 +965,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -988,11 +985,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1012,11 +1009,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1032,11 +1029,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1056,11 +1053,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1077,11 +1074,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1098,11 +1095,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1121,11 +1118,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1148,11 +1145,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1172,11 +1169,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1231,11 +1228,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1276,11 +1273,11 @@ def tickfont(self): ------- plotly.graph_objs.histogram.marker.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1305,11 +1302,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1362,11 +1359,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.histogram.marker.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1390,11 +1387,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.histogram.marker.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1410,11 +1407,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1437,11 +1434,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1458,11 +1455,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1481,11 +1478,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1502,11 +1499,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1524,11 +1521,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1544,11 +1541,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1565,11 +1562,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1585,11 +1582,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1605,11 +1602,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1644,11 +1641,11 @@ def title(self): ------- plotly.graph_objs.histogram.marker.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1692,11 +1689,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1716,11 +1713,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1736,11 +1733,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1759,11 +1756,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -1779,11 +1776,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -1799,11 +1796,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -1822,11 +1819,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -1842,17 +1839,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram.marker' + return "histogram.marker" # Self properties description # --------------------------- @@ -2048,8 +2045,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2300,7 +2297,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2320,164 +2317,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram.marker import (colorbar as v_colorbar) + from plotly.validators.histogram.marker import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/__init__.py index 4677f34798b..29bfd480ad7 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.histogram.marker.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram.marker.colorbar' + return "histogram.marker.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,28 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram.marker.colorbar import ( - title as v_title - ) + from plotly.validators.histogram.marker.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -231,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -252,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -279,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -307,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -329,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram.marker.colorbar' + return "histogram.marker.colorbar" # Self properties description # --------------------------- @@ -432,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -452,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.histogram.marker.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -549,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -580,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -598,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram.marker.colorbar' + return "histogram.marker.colorbar" # Self properties description # --------------------------- @@ -670,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -690,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram.marker.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.histogram.marker.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/title/__init__.py index 253bda34afc..9c265447faa 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/marker/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram.marker.colorbar.title' + return "histogram.marker.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram.marker.colorbar.title import ( - font as v_font - ) + from plotly.validators.histogram.marker.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram/selected/__init__.py index 881f1e25b20..595799cf314 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/selected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,17 +57,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram.selected' + return "histogram.selected" # Self properties description # --------------------------- @@ -97,7 +95,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -117,22 +115,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram.selected import ( - textfont as v_textfont - ) + from plotly.validators.histogram.selected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -202,11 +198,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -222,17 +218,17 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram.selected' + return "histogram.selected" # Self properties description # --------------------------- @@ -264,7 +260,7 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -284,23 +280,23 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram.selected import (marker as v_marker) + from plotly.validators.histogram.selected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram/unselected/__init__.py index fed743532bc..025a9d8420e 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram/unselected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,17 +58,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram.unselected' + return "histogram.unselected" # Self properties description # --------------------------- @@ -100,7 +98,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -120,22 +118,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram.unselected import ( - textfont as v_textfont - ) + from plotly.validators.histogram.unselected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -206,11 +202,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -227,17 +223,17 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram.unselected' + return "histogram.unselected" # Self properties description # --------------------------- @@ -273,7 +269,7 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -293,23 +289,23 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram.unselected import (marker as v_marker) + from plotly.validators.histogram.unselected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2d/__init__.py index f429705eeb5..49acc1413db 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -24,11 +22,11 @@ def end(self): ------- Any """ - return self['end'] + return self["end"] @end.setter def end(self, val): - self['end'] = val + self["end"] = val # size # ---- @@ -50,11 +48,11 @@ def size(self): ------- Any """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # start # ----- @@ -78,17 +76,17 @@ def start(self): ------- Any """ - return self['start'] + return self["start"] @start.setter def start(self, val): - self['start'] = val + self["start"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2d' + return "histogram2d" # Self properties description # --------------------------- @@ -169,7 +167,7 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- YBins """ - super(YBins, self).__init__('ybins') + super(YBins, self).__init__("ybins") # Validate arg # ------------ @@ -189,26 +187,26 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2d import (ybins as v_ybins) + from plotly.validators.histogram2d import ybins as v_ybins # Initialize validators # --------------------- - self._validators['end'] = v_ybins.EndValidator() - self._validators['size'] = v_ybins.SizeValidator() - self._validators['start'] = v_ybins.StartValidator() + self._validators["end"] = v_ybins.EndValidator() + self._validators["size"] = v_ybins.SizeValidator() + self._validators["start"] = v_ybins.StartValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('end', None) - self['end'] = end if end is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('start', None) - self['start'] = start if start is not None else _v + _v = arg.pop("end", None) + self["end"] = end if end is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("start", None) + self["start"] = start if start is not None else _v # Process unknown kwargs # ---------------------- @@ -243,11 +241,11 @@ def end(self): ------- Any """ - return self['end'] + return self["end"] @end.setter def end(self, val): - self['end'] = val + self["end"] = val # size # ---- @@ -269,11 +267,11 @@ def size(self): ------- Any """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # start # ----- @@ -297,17 +295,17 @@ def start(self): ------- Any """ - return self['start'] + return self["start"] @start.setter def start(self, val): - self['start'] = val + self["start"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2d' + return "histogram2d" # Self properties description # --------------------------- @@ -388,7 +386,7 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- XBins """ - super(XBins, self).__init__('xbins') + super(XBins, self).__init__("xbins") # Validate arg # ------------ @@ -408,26 +406,26 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2d import (xbins as v_xbins) + from plotly.validators.histogram2d import xbins as v_xbins # Initialize validators # --------------------- - self._validators['end'] = v_xbins.EndValidator() - self._validators['size'] = v_xbins.SizeValidator() - self._validators['start'] = v_xbins.StartValidator() + self._validators["end"] = v_xbins.EndValidator() + self._validators["size"] = v_xbins.SizeValidator() + self._validators["start"] = v_xbins.StartValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('end', None) - self['end'] = end if end is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('start', None) - self['start'] = start if start is not None else _v + _v = arg.pop("end", None) + self["end"] = end if end is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("start", None) + self["start"] = start if start is not None else _v # Process unknown kwargs # ---------------------- @@ -460,11 +458,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -481,17 +479,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2d' + return "histogram2d" # Self properties description # --------------------------- @@ -532,7 +530,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -552,23 +550,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2d import (stream as v_stream) + from plotly.validators.histogram2d import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -599,11 +597,11 @@ def color(self): ------- numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -619,17 +617,17 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2d' + return "histogram2d" # Self properties description # --------------------------- @@ -660,7 +658,7 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -680,23 +678,23 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2d import (marker as v_marker) + from plotly.validators.histogram2d import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['colorsrc'] = v_marker.ColorsrcValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["colorsrc"] = v_marker.ColorsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -731,11 +729,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -751,11 +749,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -811,11 +809,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -831,11 +829,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -891,11 +889,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -911,11 +909,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -966,11 +964,11 @@ def font(self): ------- plotly.graph_objs.histogram2d.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -993,11 +991,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -1013,17 +1011,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2d' + return "histogram2d" # Self properties description # --------------------------- @@ -1115,7 +1113,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -1135,48 +1133,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2d import (hoverlabel as v_hoverlabel) + from plotly.validators.histogram2d import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1246,11 +1240,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -1305,11 +1299,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -1325,11 +1319,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -1363,11 +1357,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -1388,11 +1382,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -1410,11 +1404,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -1433,11 +1427,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -1457,11 +1451,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -1516,11 +1510,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -1536,11 +1530,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -1556,11 +1550,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1580,11 +1574,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1600,11 +1594,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1624,11 +1618,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1645,11 +1639,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1666,11 +1660,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1689,11 +1683,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1716,11 +1710,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1740,11 +1734,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1799,11 +1793,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1844,11 +1838,11 @@ def tickfont(self): ------- plotly.graph_objs.histogram2d.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1873,11 +1867,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1930,11 +1924,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.histogram2d.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1958,11 +1952,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.histogram2d.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1978,11 +1972,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -2005,11 +1999,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -2026,11 +2020,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -2049,11 +2043,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -2070,11 +2064,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -2092,11 +2086,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -2112,11 +2106,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -2133,11 +2127,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -2153,11 +2147,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -2173,11 +2167,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -2212,11 +2206,11 @@ def title(self): ------- plotly.graph_objs.histogram2d.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -2259,11 +2253,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -2283,11 +2277,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -2303,11 +2297,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -2326,11 +2320,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -2346,11 +2340,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -2366,11 +2360,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -2389,11 +2383,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -2409,17 +2403,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2d' + return "histogram2d" # Self properties description # --------------------------- @@ -2614,8 +2608,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2864,7 +2858,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2884,164 +2878,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2d import (colorbar as v_colorbar) + from plotly.validators.histogram2d import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/__init__.py index 62ae35a8672..5f45b8e5e79 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.histogram2d.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2d.colorbar' + return "histogram2d.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,26 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2d.colorbar import (title as v_title) + from plotly.validators.histogram2d.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -229,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -250,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -277,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -305,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -327,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2d.colorbar' + return "histogram2d.colorbar" # Self properties description # --------------------------- @@ -430,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -450,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.histogram2d.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -547,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -578,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -596,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2d.colorbar' + return "histogram2d.colorbar" # Self properties description # --------------------------- @@ -668,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -688,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2d.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.histogram2d.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/title/__init__.py index e2eb2849562..b493e01b916 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2d.colorbar.title' + return "histogram2d.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2d.colorbar.title import ( - font as v_font - ) + from plotly.validators.histogram2d.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2d/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2d/hoverlabel/__init__.py index baff5de899d..9a80a00da6e 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2d/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2d/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2d.hoverlabel' + return "histogram2d.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2d.hoverlabel import (font as v_font) + from plotly.validators.histogram2d.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/__init__.py index a9b01226abd..dc50f3176af 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -24,11 +22,11 @@ def end(self): ------- Any """ - return self['end'] + return self["end"] @end.setter def end(self, val): - self['end'] = val + self["end"] = val # size # ---- @@ -50,11 +48,11 @@ def size(self): ------- Any """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # start # ----- @@ -78,17 +76,17 @@ def start(self): ------- Any """ - return self['start'] + return self["start"] @start.setter def start(self, val): - self['start'] = val + self["start"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2dcontour' + return "histogram2dcontour" # Self properties description # --------------------------- @@ -170,7 +168,7 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- YBins """ - super(YBins, self).__init__('ybins') + super(YBins, self).__init__("ybins") # Validate arg # ------------ @@ -190,26 +188,26 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2dcontour import (ybins as v_ybins) + from plotly.validators.histogram2dcontour import ybins as v_ybins # Initialize validators # --------------------- - self._validators['end'] = v_ybins.EndValidator() - self._validators['size'] = v_ybins.SizeValidator() - self._validators['start'] = v_ybins.StartValidator() + self._validators["end"] = v_ybins.EndValidator() + self._validators["size"] = v_ybins.SizeValidator() + self._validators["start"] = v_ybins.StartValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('end', None) - self['end'] = end if end is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('start', None) - self['start'] = start if start is not None else _v + _v = arg.pop("end", None) + self["end"] = end if end is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("start", None) + self["start"] = start if start is not None else _v # Process unknown kwargs # ---------------------- @@ -244,11 +242,11 @@ def end(self): ------- Any """ - return self['end'] + return self["end"] @end.setter def end(self, val): - self['end'] = val + self["end"] = val # size # ---- @@ -270,11 +268,11 @@ def size(self): ------- Any """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # start # ----- @@ -298,17 +296,17 @@ def start(self): ------- Any """ - return self['start'] + return self["start"] @start.setter def start(self, val): - self['start'] = val + self["start"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2dcontour' + return "histogram2dcontour" # Self properties description # --------------------------- @@ -390,7 +388,7 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- XBins """ - super(XBins, self).__init__('xbins') + super(XBins, self).__init__("xbins") # Validate arg # ------------ @@ -410,26 +408,26 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2dcontour import (xbins as v_xbins) + from plotly.validators.histogram2dcontour import xbins as v_xbins # Initialize validators # --------------------- - self._validators['end'] = v_xbins.EndValidator() - self._validators['size'] = v_xbins.SizeValidator() - self._validators['start'] = v_xbins.StartValidator() + self._validators["end"] = v_xbins.EndValidator() + self._validators["size"] = v_xbins.SizeValidator() + self._validators["start"] = v_xbins.StartValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('end', None) - self['end'] = end if end is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('start', None) - self['start'] = start if start is not None else _v + _v = arg.pop("end", None) + self["end"] = end if end is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("start", None) + self["start"] = start if start is not None else _v # Process unknown kwargs # ---------------------- @@ -462,11 +460,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -483,17 +481,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2dcontour' + return "histogram2dcontour" # Self properties description # --------------------------- @@ -535,7 +533,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -555,23 +553,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2dcontour import (stream as v_stream) + from plotly.validators.histogram2dcontour import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -602,11 +600,11 @@ def color(self): ------- numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -622,17 +620,17 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2dcontour' + return "histogram2dcontour" # Self properties description # --------------------------- @@ -664,7 +662,7 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -684,23 +682,23 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2dcontour import (marker as v_marker) + from plotly.validators.histogram2dcontour import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['colorsrc'] = v_marker.ColorsrcValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["colorsrc"] = v_marker.ColorsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -771,11 +769,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dash # ---- @@ -797,11 +795,11 @@ def dash(self): ------- str """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # smoothing # --------- @@ -818,11 +816,11 @@ def smoothing(self): ------- int|float """ - return self['smoothing'] + return self["smoothing"] @smoothing.setter def smoothing(self, val): - self['smoothing'] = val + self["smoothing"] = val # width # ----- @@ -838,17 +836,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2dcontour' + return "histogram2dcontour" # Self properties description # --------------------------- @@ -871,13 +869,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - dash=None, - smoothing=None, - width=None, - **kwargs + self, arg=None, color=None, dash=None, smoothing=None, width=None, **kwargs ): """ Construct a new Line object @@ -906,7 +898,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -926,29 +918,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2dcontour import (line as v_line) + from plotly.validators.histogram2dcontour import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['dash'] = v_line.DashValidator() - self._validators['smoothing'] = v_line.SmoothingValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["smoothing"] = v_line.SmoothingValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('smoothing', None) - self['smoothing'] = smoothing if smoothing is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("smoothing", None) + self["smoothing"] = smoothing if smoothing is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -983,11 +975,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -1003,11 +995,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -1063,11 +1055,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -1083,11 +1075,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -1143,11 +1135,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -1163,11 +1155,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -1218,11 +1210,11 @@ def font(self): ------- plotly.graph_objs.histogram2dcontour.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -1245,11 +1237,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -1265,17 +1257,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2dcontour' + return "histogram2dcontour" # Self properties description # --------------------------- @@ -1368,7 +1360,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -1388,50 +1380,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2dcontour import ( - hoverlabel as v_hoverlabel - ) + from plotly.validators.histogram2dcontour import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1467,11 +1453,11 @@ def coloring(self): ------- Any """ - return self['coloring'] + return self["coloring"] @coloring.setter def coloring(self, val): - self['coloring'] = val + self["coloring"] = val # end # --- @@ -1488,11 +1474,11 @@ def end(self): ------- int|float """ - return self['end'] + return self["end"] @end.setter def end(self, val): - self['end'] = val + self["end"] = val # labelfont # --------- @@ -1535,11 +1521,11 @@ def labelfont(self): ------- plotly.graph_objs.histogram2dcontour.contours.Labelfont """ - return self['labelfont'] + return self["labelfont"] @labelfont.setter def labelfont(self, val): - self['labelfont'] = val + self["labelfont"] = val # labelformat # ----------- @@ -1558,11 +1544,11 @@ def labelformat(self): ------- str """ - return self['labelformat'] + return self["labelformat"] @labelformat.setter def labelformat(self, val): - self['labelformat'] = val + self["labelformat"] = val # operation # --------- @@ -1587,11 +1573,11 @@ def operation(self): ------- Any """ - return self['operation'] + return self["operation"] @operation.setter def operation(self, val): - self['operation'] = val + self["operation"] = val # showlabels # ---------- @@ -1608,11 +1594,11 @@ def showlabels(self): ------- bool """ - return self['showlabels'] + return self["showlabels"] @showlabels.setter def showlabels(self, val): - self['showlabels'] = val + self["showlabels"] = val # showlines # --------- @@ -1629,11 +1615,11 @@ def showlines(self): ------- bool """ - return self['showlines'] + return self["showlines"] @showlines.setter def showlines(self, val): - self['showlines'] = val + self["showlines"] = val # size # ---- @@ -1649,11 +1635,11 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # start # ----- @@ -1670,11 +1656,11 @@ def start(self): ------- int|float """ - return self['start'] + return self["start"] @start.setter def start(self, val): - self['start'] = val + self["start"] = val # type # ---- @@ -1694,11 +1680,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # value # ----- @@ -1719,17 +1705,17 @@ def value(self): ------- Any """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2dcontour' + return "histogram2dcontour" # Self properties description # --------------------------- @@ -1878,7 +1864,7 @@ def __init__( ------- Contours """ - super(Contours, self).__init__('contours') + super(Contours, self).__init__("contours") # Validate arg # ------------ @@ -1898,52 +1884,50 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2dcontour import ( - contours as v_contours - ) + from plotly.validators.histogram2dcontour import contours as v_contours # Initialize validators # --------------------- - self._validators['coloring'] = v_contours.ColoringValidator() - self._validators['end'] = v_contours.EndValidator() - self._validators['labelfont'] = v_contours.LabelfontValidator() - self._validators['labelformat'] = v_contours.LabelformatValidator() - self._validators['operation'] = v_contours.OperationValidator() - self._validators['showlabels'] = v_contours.ShowlabelsValidator() - self._validators['showlines'] = v_contours.ShowlinesValidator() - self._validators['size'] = v_contours.SizeValidator() - self._validators['start'] = v_contours.StartValidator() - self._validators['type'] = v_contours.TypeValidator() - self._validators['value'] = v_contours.ValueValidator() + self._validators["coloring"] = v_contours.ColoringValidator() + self._validators["end"] = v_contours.EndValidator() + self._validators["labelfont"] = v_contours.LabelfontValidator() + self._validators["labelformat"] = v_contours.LabelformatValidator() + self._validators["operation"] = v_contours.OperationValidator() + self._validators["showlabels"] = v_contours.ShowlabelsValidator() + self._validators["showlines"] = v_contours.ShowlinesValidator() + self._validators["size"] = v_contours.SizeValidator() + self._validators["start"] = v_contours.StartValidator() + self._validators["type"] = v_contours.TypeValidator() + self._validators["value"] = v_contours.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('coloring', None) - self['coloring'] = coloring if coloring is not None else _v - _v = arg.pop('end', None) - self['end'] = end if end is not None else _v - _v = arg.pop('labelfont', None) - self['labelfont'] = labelfont if labelfont is not None else _v - _v = arg.pop('labelformat', None) - self['labelformat'] = labelformat if labelformat is not None else _v - _v = arg.pop('operation', None) - self['operation'] = operation if operation is not None else _v - _v = arg.pop('showlabels', None) - self['showlabels'] = showlabels if showlabels is not None else _v - _v = arg.pop('showlines', None) - self['showlines'] = showlines if showlines is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('start', None) - self['start'] = start if start is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("coloring", None) + self["coloring"] = coloring if coloring is not None else _v + _v = arg.pop("end", None) + self["end"] = end if end is not None else _v + _v = arg.pop("labelfont", None) + self["labelfont"] = labelfont if labelfont is not None else _v + _v = arg.pop("labelformat", None) + self["labelformat"] = labelformat if labelformat is not None else _v + _v = arg.pop("operation", None) + self["operation"] = operation if operation is not None else _v + _v = arg.pop("showlabels", None) + self["showlabels"] = showlabels if showlabels is not None else _v + _v = arg.pop("showlines", None) + self["showlines"] = showlines if showlines is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("start", None) + self["start"] = start if start is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -2013,11 +1997,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -2072,11 +2056,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -2092,11 +2076,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -2130,11 +2114,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -2155,11 +2139,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -2177,11 +2161,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -2200,11 +2184,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -2224,11 +2208,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -2283,11 +2267,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -2303,11 +2287,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -2323,11 +2307,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -2347,11 +2331,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -2367,11 +2351,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -2391,11 +2375,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -2412,11 +2396,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -2433,11 +2417,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -2456,11 +2440,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -2483,11 +2467,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -2507,11 +2491,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -2566,11 +2550,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -2611,11 +2595,11 @@ def tickfont(self): ------- plotly.graph_objs.histogram2dcontour.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -2640,11 +2624,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -2697,11 +2681,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.histogram2dcontour.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -2725,11 +2709,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.histogram2dcontour.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -2745,11 +2729,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -2772,11 +2756,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -2793,11 +2777,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -2816,11 +2800,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -2837,11 +2821,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -2859,11 +2843,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -2879,11 +2863,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -2900,11 +2884,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -2920,11 +2904,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -2940,11 +2924,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -2979,11 +2963,11 @@ def title(self): ------- plotly.graph_objs.histogram2dcontour.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -3027,11 +3011,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -3051,11 +3035,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -3071,11 +3055,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -3094,11 +3078,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -3114,11 +3098,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -3134,11 +3118,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -3157,11 +3141,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -3177,17 +3161,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2dcontour' + return "histogram2dcontour" # Self properties description # --------------------------- @@ -3384,8 +3368,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -3637,7 +3621,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -3657,166 +3641,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2dcontour import ( - colorbar as v_colorbar - ) + from plotly.validators.histogram2dcontour import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/__init__.py index fd4459c9925..823f7795926 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.histogram2dcontour.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2dcontour.colorbar' + return "histogram2dcontour.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,28 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2dcontour.colorbar import ( - title as v_title - ) + from plotly.validators.histogram2dcontour.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -231,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -252,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -279,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -307,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -329,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2dcontour.colorbar' + return "histogram2dcontour.colorbar" # Self properties description # --------------------------- @@ -432,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -452,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.histogram2dcontour.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -549,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -580,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -598,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2dcontour.colorbar' + return "histogram2dcontour.colorbar" # Self properties description # --------------------------- @@ -670,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -690,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2dcontour.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.histogram2dcontour.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/title/__init__.py index 14312351aea..b55d561ebed 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2dcontour.colorbar.title' + return "histogram2dcontour.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2dcontour.colorbar.title import ( - font as v_font - ) + from plotly.validators.histogram2dcontour.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/contours/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/contours/__init__.py index 7e38abdd8c1..74a6953008e 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/contours/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/contours/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2dcontour.contours' + return "histogram2dcontour.contours" # Self properties description # --------------------------- @@ -180,7 +178,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Labelfont """ - super(Labelfont, self).__init__('labelfont') + super(Labelfont, self).__init__("labelfont") # Validate arg # ------------ @@ -200,28 +198,28 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.histogram2dcontour.contours import ( - labelfont as v_labelfont + labelfont as v_labelfont, ) # Initialize validators # --------------------- - self._validators['color'] = v_labelfont.ColorValidator() - self._validators['family'] = v_labelfont.FamilyValidator() - self._validators['size'] = v_labelfont.SizeValidator() + self._validators["color"] = v_labelfont.ColorValidator() + self._validators["family"] = v_labelfont.FamilyValidator() + self._validators["size"] = v_labelfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/hoverlabel/__init__.py index 73b7994690d..42f408bd6c0 100644 --- a/packages/python/plotly/plotly/graph_objs/histogram2dcontour/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/histogram2dcontour/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'histogram2dcontour.hoverlabel' + return "histogram2dcontour.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,37 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.histogram2dcontour.hoverlabel import ( - font as v_font - ) + from plotly.validators.histogram2dcontour.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/__init__.py b/packages/python/plotly/plotly/graph_objs/isosurface/__init__.py index 641825ef79e..89c6e68fc32 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -23,11 +21,11 @@ def count(self): ------- int """ - return self['count'] + return self["count"] @count.setter def count(self, val): - self['count'] = val + self["count"] = val # fill # ---- @@ -46,11 +44,11 @@ def fill(self): ------- int|float """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # pattern # ------- @@ -75,11 +73,11 @@ def pattern(self): ------- Any """ - return self['pattern'] + return self["pattern"] @pattern.setter def pattern(self, val): - self['pattern'] = val + self["pattern"] = val # show # ---- @@ -95,17 +93,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface' + return "isosurface" # Self properties description # --------------------------- @@ -138,13 +136,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - count=None, - fill=None, - pattern=None, - show=None, - **kwargs + self, arg=None, count=None, fill=None, pattern=None, show=None, **kwargs ): """ Construct a new Surface object @@ -182,7 +174,7 @@ def __init__( ------- Surface """ - super(Surface, self).__init__('surface') + super(Surface, self).__init__("surface") # Validate arg # ------------ @@ -202,29 +194,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface import (surface as v_surface) + from plotly.validators.isosurface import surface as v_surface # Initialize validators # --------------------- - self._validators['count'] = v_surface.CountValidator() - self._validators['fill'] = v_surface.FillValidator() - self._validators['pattern'] = v_surface.PatternValidator() - self._validators['show'] = v_surface.ShowValidator() + self._validators["count"] = v_surface.CountValidator() + self._validators["fill"] = v_surface.FillValidator() + self._validators["pattern"] = v_surface.PatternValidator() + self._validators["show"] = v_surface.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('count', None) - self['count'] = count if count is not None else _v - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('pattern', None) - self['pattern'] = pattern if pattern is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("count", None) + self["count"] = count if count is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("pattern", None) + self["pattern"] = pattern if pattern is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- @@ -257,11 +249,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -278,17 +270,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface' + return "isosurface" # Self properties description # --------------------------- @@ -329,7 +321,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -349,23 +341,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface import (stream as v_stream) + from plotly.validators.isosurface import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -400,11 +392,11 @@ def fill(self): ------- int|float """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # show # ---- @@ -422,17 +414,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface' + return "isosurface" # Self properties description # --------------------------- @@ -479,7 +471,7 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Spaceframe """ - super(Spaceframe, self).__init__('spaceframe') + super(Spaceframe, self).__init__("spaceframe") # Validate arg # ------------ @@ -499,23 +491,23 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface import (spaceframe as v_spaceframe) + from plotly.validators.isosurface import spaceframe as v_spaceframe # Initialize validators # --------------------- - self._validators['fill'] = v_spaceframe.FillValidator() - self._validators['show'] = v_spaceframe.ShowValidator() + self._validators["fill"] = v_spaceframe.FillValidator() + self._validators["show"] = v_spaceframe.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- @@ -568,11 +560,11 @@ def x(self): ------- plotly.graph_objs.isosurface.slices.X """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -610,11 +602,11 @@ def y(self): ------- plotly.graph_objs.isosurface.slices.Y """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -652,17 +644,17 @@ def z(self): ------- plotly.graph_objs.isosurface.slices.Z """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface' + return "isosurface" # Self properties description # --------------------------- @@ -703,7 +695,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Slices """ - super(Slices, self).__init__('slices') + super(Slices, self).__init__("slices") # Validate arg # ------------ @@ -723,26 +715,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface import (slices as v_slices) + from plotly.validators.isosurface import slices as v_slices # Initialize validators # --------------------- - self._validators['x'] = v_slices.XValidator() - self._validators['y'] = v_slices.YValidator() - self._validators['z'] = v_slices.ZValidator() + self._validators["x"] = v_slices.XValidator() + self._validators["y"] = v_slices.YValidator() + self._validators["z"] = v_slices.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- @@ -773,11 +765,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -793,11 +785,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -813,17 +805,17 @@ def z(self): ------- int|float """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface' + return "isosurface" # Self properties description # --------------------------- @@ -865,7 +857,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__('lightposition') + super(Lightposition, self).__init__("lightposition") # Validate arg # ------------ @@ -885,28 +877,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface import ( - lightposition as v_lightposition - ) + from plotly.validators.isosurface import lightposition as v_lightposition # Initialize validators # --------------------- - self._validators['x'] = v_lightposition.XValidator() - self._validators['y'] = v_lightposition.YValidator() - self._validators['z'] = v_lightposition.ZValidator() + self._validators["x"] = v_lightposition.XValidator() + self._validators["y"] = v_lightposition.YValidator() + self._validators["z"] = v_lightposition.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- @@ -938,11 +928,11 @@ def ambient(self): ------- int|float """ - return self['ambient'] + return self["ambient"] @ambient.setter def ambient(self, val): - self['ambient'] = val + self["ambient"] = val # diffuse # ------- @@ -959,11 +949,11 @@ def diffuse(self): ------- int|float """ - return self['diffuse'] + return self["diffuse"] @diffuse.setter def diffuse(self, val): - self['diffuse'] = val + self["diffuse"] = val # facenormalsepsilon # ------------------ @@ -980,11 +970,11 @@ def facenormalsepsilon(self): ------- int|float """ - return self['facenormalsepsilon'] + return self["facenormalsepsilon"] @facenormalsepsilon.setter def facenormalsepsilon(self, val): - self['facenormalsepsilon'] = val + self["facenormalsepsilon"] = val # fresnel # ------- @@ -1002,11 +992,11 @@ def fresnel(self): ------- int|float """ - return self['fresnel'] + return self["fresnel"] @fresnel.setter def fresnel(self, val): - self['fresnel'] = val + self["fresnel"] = val # roughness # --------- @@ -1023,11 +1013,11 @@ def roughness(self): ------- int|float """ - return self['roughness'] + return self["roughness"] @roughness.setter def roughness(self, val): - self['roughness'] = val + self["roughness"] = val # specular # -------- @@ -1044,11 +1034,11 @@ def specular(self): ------- int|float """ - return self['specular'] + return self["specular"] @specular.setter def specular(self, val): - self['specular'] = val + self["specular"] = val # vertexnormalsepsilon # -------------------- @@ -1065,17 +1055,17 @@ def vertexnormalsepsilon(self): ------- int|float """ - return self['vertexnormalsepsilon'] + return self["vertexnormalsepsilon"] @vertexnormalsepsilon.setter def vertexnormalsepsilon(self, val): - self['vertexnormalsepsilon'] = val + self["vertexnormalsepsilon"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface' + return "isosurface" # Self properties description # --------------------------- @@ -1155,7 +1145,7 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__('lighting') + super(Lighting, self).__init__("lighting") # Validate arg # ------------ @@ -1175,43 +1165,46 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface import (lighting as v_lighting) + from plotly.validators.isosurface import lighting as v_lighting # Initialize validators # --------------------- - self._validators['ambient'] = v_lighting.AmbientValidator() - self._validators['diffuse'] = v_lighting.DiffuseValidator() - self._validators['facenormalsepsilon' - ] = v_lighting.FacenormalsepsilonValidator() - self._validators['fresnel'] = v_lighting.FresnelValidator() - self._validators['roughness'] = v_lighting.RoughnessValidator() - self._validators['specular'] = v_lighting.SpecularValidator() - self._validators['vertexnormalsepsilon' - ] = v_lighting.VertexnormalsepsilonValidator() + self._validators["ambient"] = v_lighting.AmbientValidator() + self._validators["diffuse"] = v_lighting.DiffuseValidator() + self._validators[ + "facenormalsepsilon" + ] = v_lighting.FacenormalsepsilonValidator() + self._validators["fresnel"] = v_lighting.FresnelValidator() + self._validators["roughness"] = v_lighting.RoughnessValidator() + self._validators["specular"] = v_lighting.SpecularValidator() + self._validators[ + "vertexnormalsepsilon" + ] = v_lighting.VertexnormalsepsilonValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('ambient', None) - self['ambient'] = ambient if ambient is not None else _v - _v = arg.pop('diffuse', None) - self['diffuse'] = diffuse if diffuse is not None else _v - _v = arg.pop('facenormalsepsilon', None) - self['facenormalsepsilon' - ] = facenormalsepsilon if facenormalsepsilon is not None else _v - _v = arg.pop('fresnel', None) - self['fresnel'] = fresnel if fresnel is not None else _v - _v = arg.pop('roughness', None) - self['roughness'] = roughness if roughness is not None else _v - _v = arg.pop('specular', None) - self['specular'] = specular if specular is not None else _v - _v = arg.pop('vertexnormalsepsilon', None) - self[ - 'vertexnormalsepsilon' - ] = vertexnormalsepsilon if vertexnormalsepsilon is not None else _v + _v = arg.pop("ambient", None) + self["ambient"] = ambient if ambient is not None else _v + _v = arg.pop("diffuse", None) + self["diffuse"] = diffuse if diffuse is not None else _v + _v = arg.pop("facenormalsepsilon", None) + self["facenormalsepsilon"] = ( + facenormalsepsilon if facenormalsepsilon is not None else _v + ) + _v = arg.pop("fresnel", None) + self["fresnel"] = fresnel if fresnel is not None else _v + _v = arg.pop("roughness", None) + self["roughness"] = roughness if roughness is not None else _v + _v = arg.pop("specular", None) + self["specular"] = specular if specular is not None else _v + _v = arg.pop("vertexnormalsepsilon", None) + self["vertexnormalsepsilon"] = ( + vertexnormalsepsilon if vertexnormalsepsilon is not None else _v + ) # Process unknown kwargs # ---------------------- @@ -1246,11 +1239,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -1266,11 +1259,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -1326,11 +1319,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -1346,11 +1339,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -1406,11 +1399,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -1426,11 +1419,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -1481,11 +1474,11 @@ def font(self): ------- plotly.graph_objs.isosurface.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -1508,11 +1501,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -1528,17 +1521,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface' + return "isosurface" # Self properties description # --------------------------- @@ -1630,7 +1623,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -1650,48 +1643,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface import (hoverlabel as v_hoverlabel) + from plotly.validators.isosurface import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1761,11 +1750,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # show # ---- @@ -1781,11 +1770,11 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # width # ----- @@ -1801,17 +1790,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface' + return "isosurface" # Self properties description # --------------------------- @@ -1846,7 +1835,7 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): ------- Contour """ - super(Contour, self).__init__('contour') + super(Contour, self).__init__("contour") # Validate arg # ------------ @@ -1866,26 +1855,26 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface import (contour as v_contour) + from plotly.validators.isosurface import contour as v_contour # Initialize validators # --------------------- - self._validators['color'] = v_contour.ColorValidator() - self._validators['show'] = v_contour.ShowValidator() - self._validators['width'] = v_contour.WidthValidator() + self._validators["color"] = v_contour.ColorValidator() + self._validators["show"] = v_contour.ShowValidator() + self._validators["width"] = v_contour.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -1955,11 +1944,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -2014,11 +2003,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -2034,11 +2023,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -2072,11 +2061,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -2097,11 +2086,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -2119,11 +2108,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -2142,11 +2131,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -2166,11 +2155,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -2225,11 +2214,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -2245,11 +2234,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -2265,11 +2254,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -2289,11 +2278,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -2309,11 +2298,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -2333,11 +2322,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -2354,11 +2343,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -2375,11 +2364,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -2398,11 +2387,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -2425,11 +2414,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -2449,11 +2438,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -2508,11 +2497,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -2553,11 +2542,11 @@ def tickfont(self): ------- plotly.graph_objs.isosurface.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -2582,11 +2571,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -2639,11 +2628,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.isosurface.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -2666,11 +2655,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.isosurface.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -2686,11 +2675,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -2713,11 +2702,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -2734,11 +2723,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -2757,11 +2746,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -2778,11 +2767,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -2800,11 +2789,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -2820,11 +2809,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -2841,11 +2830,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -2861,11 +2850,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -2881,11 +2870,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -2920,11 +2909,11 @@ def title(self): ------- plotly.graph_objs.isosurface.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -2967,11 +2956,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -2991,11 +2980,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -3011,11 +3000,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -3034,11 +3023,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -3054,11 +3043,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -3074,11 +3063,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -3097,11 +3086,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -3117,17 +3106,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface' + return "isosurface" # Self properties description # --------------------------- @@ -3322,8 +3311,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -3572,7 +3561,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -3592,164 +3581,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface import (colorbar as v_colorbar) + from plotly.validators.isosurface import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- @@ -3797,11 +3776,11 @@ def x(self): ------- plotly.graph_objs.isosurface.caps.X """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -3834,11 +3813,11 @@ def y(self): ------- plotly.graph_objs.isosurface.caps.Y """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -3871,17 +3850,17 @@ def z(self): ------- plotly.graph_objs.isosurface.caps.Z """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface' + return "isosurface" # Self properties description # --------------------------- @@ -3922,7 +3901,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Caps """ - super(Caps, self).__init__('caps') + super(Caps, self).__init__("caps") # Validate arg # ------------ @@ -3942,26 +3921,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface import (caps as v_caps) + from plotly.validators.isosurface import caps as v_caps # Initialize validators # --------------------- - self._validators['x'] = v_caps.XValidator() - self._validators['y'] = v_caps.YValidator() - self._validators['z'] = v_caps.ZValidator() + self._validators["x"] = v_caps.XValidator() + self._validators["y"] = v_caps.YValidator() + self._validators["z"] = v_caps.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/caps/__init__.py b/packages/python/plotly/plotly/graph_objs/isosurface/caps/__init__.py index 1013cb6dc97..6ad4cab33dc 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/caps/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/caps/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -23,11 +21,11 @@ def fill(self): ------- int|float """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # show # ---- @@ -46,17 +44,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface.caps' + return "isosurface.caps" # Self properties description # --------------------------- @@ -103,7 +101,7 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Z """ - super(Z, self).__init__('z') + super(Z, self).__init__("z") # Validate arg # ------------ @@ -123,23 +121,23 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface.caps import (z as v_z) + from plotly.validators.isosurface.caps import z as v_z # Initialize validators # --------------------- - self._validators['fill'] = v_z.FillValidator() - self._validators['show'] = v_z.ShowValidator() + self._validators["fill"] = v_z.FillValidator() + self._validators["show"] = v_z.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- @@ -173,11 +171,11 @@ def fill(self): ------- int|float """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # show # ---- @@ -196,17 +194,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface.caps' + return "isosurface.caps" # Self properties description # --------------------------- @@ -253,7 +251,7 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Y """ - super(Y, self).__init__('y') + super(Y, self).__init__("y") # Validate arg # ------------ @@ -273,23 +271,23 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface.caps import (y as v_y) + from plotly.validators.isosurface.caps import y as v_y # Initialize validators # --------------------- - self._validators['fill'] = v_y.FillValidator() - self._validators['show'] = v_y.ShowValidator() + self._validators["fill"] = v_y.FillValidator() + self._validators["show"] = v_y.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- @@ -323,11 +321,11 @@ def fill(self): ------- int|float """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # show # ---- @@ -346,17 +344,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface.caps' + return "isosurface.caps" # Self properties description # --------------------------- @@ -403,7 +401,7 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- X """ - super(X, self).__init__('x') + super(X, self).__init__("x") # Validate arg # ------------ @@ -423,23 +421,23 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface.caps import (x as v_x) + from plotly.validators.isosurface.caps import x as v_x # Initialize validators # --------------------- - self._validators['fill'] = v_x.FillValidator() - self._validators['show'] = v_x.ShowValidator() + self._validators["fill"] = v_x.FillValidator() + self._validators["show"] = v_x.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/__init__.py index c1da8c53e1e..4df529c3262 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.isosurface.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface.colorbar' + return "isosurface.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,26 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface.colorbar import (title as v_title) + from plotly.validators.isosurface.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -229,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -250,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -277,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -305,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -327,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface.colorbar' + return "isosurface.colorbar" # Self properties description # --------------------------- @@ -430,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -450,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.isosurface.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -547,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -578,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -596,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface.colorbar' + return "isosurface.colorbar" # Self properties description # --------------------------- @@ -668,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -688,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.isosurface.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/title/__init__.py index efc5048b3eb..6c008db918b 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface.colorbar.title' + return "isosurface.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface.colorbar.title import ( - font as v_font - ) + from plotly.validators.isosurface.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/isosurface/hoverlabel/__init__.py index 95e924ac452..a72c01fc9af 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface.hoverlabel' + return "isosurface.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface.hoverlabel import (font as v_font) + from plotly.validators.isosurface.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/isosurface/slices/__init__.py b/packages/python/plotly/plotly/graph_objs/isosurface/slices/__init__.py index 3257cdb6488..2dca7297384 100644 --- a/packages/python/plotly/plotly/graph_objs/isosurface/slices/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/isosurface/slices/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -23,11 +21,11 @@ def fill(self): ------- int|float """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # locations # --------- @@ -45,11 +43,11 @@ def locations(self): ------- numpy.ndarray """ - return self['locations'] + return self["locations"] @locations.setter def locations(self, val): - self['locations'] = val + self["locations"] = val # locationssrc # ------------ @@ -65,11 +63,11 @@ def locationssrc(self): ------- str """ - return self['locationssrc'] + return self["locationssrc"] @locationssrc.setter def locationssrc(self, val): - self['locationssrc'] = val + self["locationssrc"] = val # show # ---- @@ -86,17 +84,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface.slices' + return "isosurface.slices" # Self properties description # --------------------------- @@ -157,7 +155,7 @@ def __init__( ------- Z """ - super(Z, self).__init__('z') + super(Z, self).__init__("z") # Validate arg # ------------ @@ -177,29 +175,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface.slices import (z as v_z) + from plotly.validators.isosurface.slices import z as v_z # Initialize validators # --------------------- - self._validators['fill'] = v_z.FillValidator() - self._validators['locations'] = v_z.LocationsValidator() - self._validators['locationssrc'] = v_z.LocationssrcValidator() - self._validators['show'] = v_z.ShowValidator() + self._validators["fill"] = v_z.FillValidator() + self._validators["locations"] = v_z.LocationsValidator() + self._validators["locationssrc"] = v_z.LocationssrcValidator() + self._validators["show"] = v_z.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('locations', None) - self['locations'] = locations if locations is not None else _v - _v = arg.pop('locationssrc', None) - self['locationssrc'] = locationssrc if locationssrc is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("locations", None) + self["locations"] = locations if locations is not None else _v + _v = arg.pop("locationssrc", None) + self["locationssrc"] = locationssrc if locationssrc is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- @@ -233,11 +231,11 @@ def fill(self): ------- int|float """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # locations # --------- @@ -255,11 +253,11 @@ def locations(self): ------- numpy.ndarray """ - return self['locations'] + return self["locations"] @locations.setter def locations(self, val): - self['locations'] = val + self["locations"] = val # locationssrc # ------------ @@ -275,11 +273,11 @@ def locationssrc(self): ------- str """ - return self['locationssrc'] + return self["locationssrc"] @locationssrc.setter def locationssrc(self, val): - self['locationssrc'] = val + self["locationssrc"] = val # show # ---- @@ -296,17 +294,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface.slices' + return "isosurface.slices" # Self properties description # --------------------------- @@ -367,7 +365,7 @@ def __init__( ------- Y """ - super(Y, self).__init__('y') + super(Y, self).__init__("y") # Validate arg # ------------ @@ -387,29 +385,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface.slices import (y as v_y) + from plotly.validators.isosurface.slices import y as v_y # Initialize validators # --------------------- - self._validators['fill'] = v_y.FillValidator() - self._validators['locations'] = v_y.LocationsValidator() - self._validators['locationssrc'] = v_y.LocationssrcValidator() - self._validators['show'] = v_y.ShowValidator() + self._validators["fill"] = v_y.FillValidator() + self._validators["locations"] = v_y.LocationsValidator() + self._validators["locationssrc"] = v_y.LocationssrcValidator() + self._validators["show"] = v_y.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('locations', None) - self['locations'] = locations if locations is not None else _v - _v = arg.pop('locationssrc', None) - self['locationssrc'] = locationssrc if locationssrc is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("locations", None) + self["locations"] = locations if locations is not None else _v + _v = arg.pop("locationssrc", None) + self["locationssrc"] = locationssrc if locationssrc is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- @@ -443,11 +441,11 @@ def fill(self): ------- int|float """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # locations # --------- @@ -465,11 +463,11 @@ def locations(self): ------- numpy.ndarray """ - return self['locations'] + return self["locations"] @locations.setter def locations(self, val): - self['locations'] = val + self["locations"] = val # locationssrc # ------------ @@ -485,11 +483,11 @@ def locationssrc(self): ------- str """ - return self['locationssrc'] + return self["locationssrc"] @locationssrc.setter def locationssrc(self, val): - self['locationssrc'] = val + self["locationssrc"] = val # show # ---- @@ -506,17 +504,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'isosurface.slices' + return "isosurface.slices" # Self properties description # --------------------------- @@ -577,7 +575,7 @@ def __init__( ------- X """ - super(X, self).__init__('x') + super(X, self).__init__("x") # Validate arg # ------------ @@ -597,29 +595,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.isosurface.slices import (x as v_x) + from plotly.validators.isosurface.slices import x as v_x # Initialize validators # --------------------- - self._validators['fill'] = v_x.FillValidator() - self._validators['locations'] = v_x.LocationsValidator() - self._validators['locationssrc'] = v_x.LocationssrcValidator() - self._validators['show'] = v_x.ShowValidator() + self._validators["fill"] = v_x.FillValidator() + self._validators["locations"] = v_x.LocationsValidator() + self._validators["locationssrc"] = v_x.LocationssrcValidator() + self._validators["show"] = v_x.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('locations', None) - self['locations'] = locations if locations is not None else _v - _v = arg.pop('locationssrc', None) - self['locationssrc'] = locationssrc if locationssrc is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("locations", None) + self["locations"] = locations if locations is not None else _v + _v = arg.pop("locationssrc", None) + self["locationssrc"] = locationssrc if locationssrc is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/__init__.py index 63601333c3b..d519eb63df4 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -25,11 +23,11 @@ def anchor(self): ------- Any """ - return self['anchor'] + return self["anchor"] @anchor.setter def anchor(self, val): - self['anchor'] = val + self["anchor"] = val # automargin # ---------- @@ -46,11 +44,11 @@ def automargin(self): ------- bool """ - return self['automargin'] + return self["automargin"] @automargin.setter def automargin(self, val): - self['automargin'] = val + self["automargin"] = val # autorange # --------- @@ -69,11 +67,11 @@ def autorange(self): ------- Any """ - return self['autorange'] + return self["autorange"] @autorange.setter def autorange(self, val): - self['autorange'] = val + self["autorange"] = val # calendar # -------- @@ -96,11 +94,11 @@ def calendar(self): ------- Any """ - return self['calendar'] + return self["calendar"] @calendar.setter def calendar(self, val): - self['calendar'] = val + self["calendar"] = val # categoryarray # ------------- @@ -118,11 +116,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self['categoryarray'] + return self["categoryarray"] @categoryarray.setter def categoryarray(self, val): - self['categoryarray'] = val + self["categoryarray"] = val # categoryarraysrc # ---------------- @@ -138,11 +136,11 @@ def categoryarraysrc(self): ------- str """ - return self['categoryarraysrc'] + return self["categoryarraysrc"] @categoryarraysrc.setter def categoryarraysrc(self, val): - self['categoryarraysrc'] = val + self["categoryarraysrc"] = val # categoryorder # ------------- @@ -178,11 +176,11 @@ def categoryorder(self): ------- Any """ - return self['categoryorder'] + return self["categoryorder"] @categoryorder.setter def categoryorder(self, val): - self['categoryorder'] = val + self["categoryorder"] = val # color # ----- @@ -240,11 +238,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # constrain # --------- @@ -264,11 +262,11 @@ def constrain(self): ------- Any """ - return self['constrain'] + return self["constrain"] @constrain.setter def constrain(self, val): - self['constrain'] = val + self["constrain"] = val # constraintoward # --------------- @@ -290,11 +288,11 @@ def constraintoward(self): ------- Any """ - return self['constraintoward'] + return self["constraintoward"] @constraintoward.setter def constraintoward(self, val): - self['constraintoward'] = val + self["constraintoward"] = val # dividercolor # ------------ @@ -350,11 +348,11 @@ def dividercolor(self): ------- str """ - return self['dividercolor'] + return self["dividercolor"] @dividercolor.setter def dividercolor(self, val): - self['dividercolor'] = val + self["dividercolor"] = val # dividerwidth # ------------ @@ -371,11 +369,11 @@ def dividerwidth(self): ------- int|float """ - return self['dividerwidth'] + return self["dividerwidth"] @dividerwidth.setter def dividerwidth(self, val): - self['dividerwidth'] = val + self["dividerwidth"] = val # domain # ------ @@ -396,11 +394,11 @@ def domain(self): ------- list """ - return self['domain'] + return self["domain"] @domain.setter def domain(self, val): - self['domain'] = val + self["domain"] = val # dtick # ----- @@ -434,11 +432,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -459,11 +457,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # fixedrange # ---------- @@ -480,11 +478,11 @@ def fixedrange(self): ------- bool """ - return self['fixedrange'] + return self["fixedrange"] @fixedrange.setter def fixedrange(self, val): - self['fixedrange'] = val + self["fixedrange"] = val # gridcolor # --------- @@ -539,11 +537,11 @@ def gridcolor(self): ------- str """ - return self['gridcolor'] + return self["gridcolor"] @gridcolor.setter def gridcolor(self, val): - self['gridcolor'] = val + self["gridcolor"] = val # gridwidth # --------- @@ -559,11 +557,11 @@ def gridwidth(self): ------- int|float """ - return self['gridwidth'] + return self["gridwidth"] @gridwidth.setter def gridwidth(self, val): - self['gridwidth'] = val + self["gridwidth"] = val # hoverformat # ----------- @@ -588,11 +586,11 @@ def hoverformat(self): ------- str """ - return self['hoverformat'] + return self["hoverformat"] @hoverformat.setter def hoverformat(self, val): - self['hoverformat'] = val + self["hoverformat"] = val # layer # ----- @@ -614,11 +612,11 @@ def layer(self): ------- Any """ - return self['layer'] + return self["layer"] @layer.setter def layer(self, val): - self['layer'] = val + self["layer"] = val # linecolor # --------- @@ -673,11 +671,11 @@ def linecolor(self): ------- str """ - return self['linecolor'] + return self["linecolor"] @linecolor.setter def linecolor(self, val): - self['linecolor'] = val + self["linecolor"] = val # linewidth # --------- @@ -693,11 +691,11 @@ def linewidth(self): ------- int|float """ - return self['linewidth'] + return self["linewidth"] @linewidth.setter def linewidth(self, val): - self['linewidth'] = val + self["linewidth"] = val # matches # ------- @@ -720,11 +718,11 @@ def matches(self): ------- Any """ - return self['matches'] + return self["matches"] @matches.setter def matches(self, val): - self['matches'] = val + self["matches"] = val # mirror # ------ @@ -746,11 +744,11 @@ def mirror(self): ------- Any """ - return self['mirror'] + return self["mirror"] @mirror.setter def mirror(self, val): - self['mirror'] = val + self["mirror"] = val # nticks # ------ @@ -770,11 +768,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # overlaying # ---------- @@ -797,11 +795,11 @@ def overlaying(self): ------- Any """ - return self['overlaying'] + return self["overlaying"] @overlaying.setter def overlaying(self, val): - self['overlaying'] = val + self["overlaying"] = val # position # -------- @@ -819,11 +817,11 @@ def position(self): ------- int|float """ - return self['position'] + return self["position"] @position.setter def position(self, val): - self['position'] = val + self["position"] = val # range # ----- @@ -849,11 +847,11 @@ def range(self): ------- list """ - return self['range'] + return self["range"] @range.setter def range(self, val): - self['range'] = val + self["range"] = val # rangemode # --------- @@ -874,11 +872,11 @@ def rangemode(self): ------- Any """ - return self['rangemode'] + return self["rangemode"] @rangemode.setter def rangemode(self, val): - self['rangemode'] = val + self["rangemode"] = val # scaleanchor # ----------- @@ -910,11 +908,11 @@ def scaleanchor(self): ------- Any """ - return self['scaleanchor'] + return self["scaleanchor"] @scaleanchor.setter def scaleanchor(self, val): - self['scaleanchor'] = val + self["scaleanchor"] = val # scaleratio # ---------- @@ -935,11 +933,11 @@ def scaleratio(self): ------- int|float """ - return self['scaleratio'] + return self["scaleratio"] @scaleratio.setter def scaleratio(self, val): - self['scaleratio'] = val + self["scaleratio"] = val # separatethousands # ----------------- @@ -955,11 +953,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showdividers # ------------ @@ -977,11 +975,11 @@ def showdividers(self): ------- bool """ - return self['showdividers'] + return self["showdividers"] @showdividers.setter def showdividers(self, val): - self['showdividers'] = val + self["showdividers"] = val # showexponent # ------------ @@ -1001,11 +999,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showgrid # -------- @@ -1022,11 +1020,11 @@ def showgrid(self): ------- bool """ - return self['showgrid'] + return self["showgrid"] @showgrid.setter def showgrid(self, val): - self['showgrid'] = val + self["showgrid"] = val # showline # -------- @@ -1042,11 +1040,11 @@ def showline(self): ------- bool """ - return self['showline'] + return self["showline"] @showline.setter def showline(self, val): - self['showline'] = val + self["showline"] = val # showspikes # ---------- @@ -1064,11 +1062,11 @@ def showspikes(self): ------- bool """ - return self['showspikes'] + return self["showspikes"] @showspikes.setter def showspikes(self, val): - self['showspikes'] = val + self["showspikes"] = val # showticklabels # -------------- @@ -1084,11 +1082,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1108,11 +1106,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1129,11 +1127,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # side # ---- @@ -1151,11 +1149,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # spikecolor # ---------- @@ -1210,11 +1208,11 @@ def spikecolor(self): ------- str """ - return self['spikecolor'] + return self["spikecolor"] @spikecolor.setter def spikecolor(self, val): - self['spikecolor'] = val + self["spikecolor"] = val # spikedash # --------- @@ -1236,11 +1234,11 @@ def spikedash(self): ------- str """ - return self['spikedash'] + return self["spikedash"] @spikedash.setter def spikedash(self, val): - self['spikedash'] = val + self["spikedash"] = val # spikemode # --------- @@ -1262,11 +1260,11 @@ def spikemode(self): ------- Any """ - return self['spikemode'] + return self["spikemode"] @spikemode.setter def spikemode(self, val): - self['spikemode'] = val + self["spikemode"] = val # spikesnap # --------- @@ -1284,11 +1282,11 @@ def spikesnap(self): ------- Any """ - return self['spikesnap'] + return self["spikesnap"] @spikesnap.setter def spikesnap(self, val): - self['spikesnap'] = val + self["spikesnap"] = val # spikethickness # -------------- @@ -1304,11 +1302,11 @@ def spikethickness(self): ------- int|float """ - return self['spikethickness'] + return self["spikethickness"] @spikethickness.setter def spikethickness(self, val): - self['spikethickness'] = val + self["spikethickness"] = val # tick0 # ----- @@ -1331,11 +1329,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1355,11 +1353,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1414,11 +1412,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1459,11 +1457,11 @@ def tickfont(self): ------- plotly.graph_objs.layout.yaxis.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1488,11 +1486,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1545,11 +1543,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.layout.yaxis.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1573,11 +1571,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.layout.yaxis.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1593,11 +1591,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1620,11 +1618,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1641,11 +1639,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1664,11 +1662,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # tickson # ------- @@ -1689,11 +1687,11 @@ def tickson(self): ------- Any """ - return self['tickson'] + return self["tickson"] @tickson.setter def tickson(self, val): - self['tickson'] = val + self["tickson"] = val # ticksuffix # ---------- @@ -1710,11 +1708,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1732,11 +1730,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1752,11 +1750,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1773,11 +1771,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1793,11 +1791,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1813,11 +1811,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1847,11 +1845,11 @@ def title(self): ------- plotly.graph_objs.layout.yaxis.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1894,11 +1892,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # type # ---- @@ -1918,11 +1916,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # uirevision # ---------- @@ -1939,11 +1937,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -1961,11 +1959,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # zeroline # -------- @@ -1983,11 +1981,11 @@ def zeroline(self): ------- bool """ - return self['zeroline'] + return self["zeroline"] @zeroline.setter def zeroline(self, val): - self['zeroline'] = val + self["zeroline"] = val # zerolinecolor # ------------- @@ -2042,11 +2040,11 @@ def zerolinecolor(self): ------- str """ - return self['zerolinecolor'] + return self["zerolinecolor"] @zerolinecolor.setter def zerolinecolor(self, val): - self['zerolinecolor'] = val + self["zerolinecolor"] = val # zerolinewidth # ------------- @@ -2062,17 +2060,17 @@ def zerolinewidth(self): ------- int|float """ - return self['zerolinewidth'] + return self["zerolinewidth"] @zerolinewidth.setter def zerolinewidth(self, val): - self['zerolinewidth'] = val + self["zerolinewidth"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -2448,7 +2446,7 @@ def _prop_descriptions(self): Sets the width (in px) of the zero line. """ - _mapped_properties = {'titlefont': ('title', 'font')} + _mapped_properties = {"titlefont": ("title", "font")} def __init__( self, @@ -2907,7 +2905,7 @@ def __init__( ------- YAxis """ - super(YAxis, self).__init__('yaxis') + super(YAxis, self).__init__("yaxis") # Validate arg # ------------ @@ -2927,254 +2925,240 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (yaxis as v_yaxis) + from plotly.validators.layout import yaxis as v_yaxis # Initialize validators # --------------------- - self._validators['anchor'] = v_yaxis.AnchorValidator() - self._validators['automargin'] = v_yaxis.AutomarginValidator() - self._validators['autorange'] = v_yaxis.AutorangeValidator() - self._validators['calendar'] = v_yaxis.CalendarValidator() - self._validators['categoryarray'] = v_yaxis.CategoryarrayValidator() - self._validators['categoryarraysrc' - ] = v_yaxis.CategoryarraysrcValidator() - self._validators['categoryorder'] = v_yaxis.CategoryorderValidator() - self._validators['color'] = v_yaxis.ColorValidator() - self._validators['constrain'] = v_yaxis.ConstrainValidator() - self._validators['constraintoward'] = v_yaxis.ConstraintowardValidator( - ) - self._validators['dividercolor'] = v_yaxis.DividercolorValidator() - self._validators['dividerwidth'] = v_yaxis.DividerwidthValidator() - self._validators['domain'] = v_yaxis.DomainValidator() - self._validators['dtick'] = v_yaxis.DtickValidator() - self._validators['exponentformat'] = v_yaxis.ExponentformatValidator() - self._validators['fixedrange'] = v_yaxis.FixedrangeValidator() - self._validators['gridcolor'] = v_yaxis.GridcolorValidator() - self._validators['gridwidth'] = v_yaxis.GridwidthValidator() - self._validators['hoverformat'] = v_yaxis.HoverformatValidator() - self._validators['layer'] = v_yaxis.LayerValidator() - self._validators['linecolor'] = v_yaxis.LinecolorValidator() - self._validators['linewidth'] = v_yaxis.LinewidthValidator() - self._validators['matches'] = v_yaxis.MatchesValidator() - self._validators['mirror'] = v_yaxis.MirrorValidator() - self._validators['nticks'] = v_yaxis.NticksValidator() - self._validators['overlaying'] = v_yaxis.OverlayingValidator() - self._validators['position'] = v_yaxis.PositionValidator() - self._validators['range'] = v_yaxis.RangeValidator() - self._validators['rangemode'] = v_yaxis.RangemodeValidator() - self._validators['scaleanchor'] = v_yaxis.ScaleanchorValidator() - self._validators['scaleratio'] = v_yaxis.ScaleratioValidator() - self._validators['separatethousands' - ] = v_yaxis.SeparatethousandsValidator() - self._validators['showdividers'] = v_yaxis.ShowdividersValidator() - self._validators['showexponent'] = v_yaxis.ShowexponentValidator() - self._validators['showgrid'] = v_yaxis.ShowgridValidator() - self._validators['showline'] = v_yaxis.ShowlineValidator() - self._validators['showspikes'] = v_yaxis.ShowspikesValidator() - self._validators['showticklabels'] = v_yaxis.ShowticklabelsValidator() - self._validators['showtickprefix'] = v_yaxis.ShowtickprefixValidator() - self._validators['showticksuffix'] = v_yaxis.ShowticksuffixValidator() - self._validators['side'] = v_yaxis.SideValidator() - self._validators['spikecolor'] = v_yaxis.SpikecolorValidator() - self._validators['spikedash'] = v_yaxis.SpikedashValidator() - self._validators['spikemode'] = v_yaxis.SpikemodeValidator() - self._validators['spikesnap'] = v_yaxis.SpikesnapValidator() - self._validators['spikethickness'] = v_yaxis.SpikethicknessValidator() - self._validators['tick0'] = v_yaxis.Tick0Validator() - self._validators['tickangle'] = v_yaxis.TickangleValidator() - self._validators['tickcolor'] = v_yaxis.TickcolorValidator() - self._validators['tickfont'] = v_yaxis.TickfontValidator() - self._validators['tickformat'] = v_yaxis.TickformatValidator() - self._validators['tickformatstops'] = v_yaxis.TickformatstopsValidator( - ) - self._validators['tickformatstopdefaults' - ] = v_yaxis.TickformatstopValidator() - self._validators['ticklen'] = v_yaxis.TicklenValidator() - self._validators['tickmode'] = v_yaxis.TickmodeValidator() - self._validators['tickprefix'] = v_yaxis.TickprefixValidator() - self._validators['ticks'] = v_yaxis.TicksValidator() - self._validators['tickson'] = v_yaxis.TicksonValidator() - self._validators['ticksuffix'] = v_yaxis.TicksuffixValidator() - self._validators['ticktext'] = v_yaxis.TicktextValidator() - self._validators['ticktextsrc'] = v_yaxis.TicktextsrcValidator() - self._validators['tickvals'] = v_yaxis.TickvalsValidator() - self._validators['tickvalssrc'] = v_yaxis.TickvalssrcValidator() - self._validators['tickwidth'] = v_yaxis.TickwidthValidator() - self._validators['title'] = v_yaxis.TitleValidator() - self._validators['type'] = v_yaxis.TypeValidator() - self._validators['uirevision'] = v_yaxis.UirevisionValidator() - self._validators['visible'] = v_yaxis.VisibleValidator() - self._validators['zeroline'] = v_yaxis.ZerolineValidator() - self._validators['zerolinecolor'] = v_yaxis.ZerolinecolorValidator() - self._validators['zerolinewidth'] = v_yaxis.ZerolinewidthValidator() + self._validators["anchor"] = v_yaxis.AnchorValidator() + self._validators["automargin"] = v_yaxis.AutomarginValidator() + self._validators["autorange"] = v_yaxis.AutorangeValidator() + self._validators["calendar"] = v_yaxis.CalendarValidator() + self._validators["categoryarray"] = v_yaxis.CategoryarrayValidator() + self._validators["categoryarraysrc"] = v_yaxis.CategoryarraysrcValidator() + self._validators["categoryorder"] = v_yaxis.CategoryorderValidator() + self._validators["color"] = v_yaxis.ColorValidator() + self._validators["constrain"] = v_yaxis.ConstrainValidator() + self._validators["constraintoward"] = v_yaxis.ConstraintowardValidator() + self._validators["dividercolor"] = v_yaxis.DividercolorValidator() + self._validators["dividerwidth"] = v_yaxis.DividerwidthValidator() + self._validators["domain"] = v_yaxis.DomainValidator() + self._validators["dtick"] = v_yaxis.DtickValidator() + self._validators["exponentformat"] = v_yaxis.ExponentformatValidator() + self._validators["fixedrange"] = v_yaxis.FixedrangeValidator() + self._validators["gridcolor"] = v_yaxis.GridcolorValidator() + self._validators["gridwidth"] = v_yaxis.GridwidthValidator() + self._validators["hoverformat"] = v_yaxis.HoverformatValidator() + self._validators["layer"] = v_yaxis.LayerValidator() + self._validators["linecolor"] = v_yaxis.LinecolorValidator() + self._validators["linewidth"] = v_yaxis.LinewidthValidator() + self._validators["matches"] = v_yaxis.MatchesValidator() + self._validators["mirror"] = v_yaxis.MirrorValidator() + self._validators["nticks"] = v_yaxis.NticksValidator() + self._validators["overlaying"] = v_yaxis.OverlayingValidator() + self._validators["position"] = v_yaxis.PositionValidator() + self._validators["range"] = v_yaxis.RangeValidator() + self._validators["rangemode"] = v_yaxis.RangemodeValidator() + self._validators["scaleanchor"] = v_yaxis.ScaleanchorValidator() + self._validators["scaleratio"] = v_yaxis.ScaleratioValidator() + self._validators["separatethousands"] = v_yaxis.SeparatethousandsValidator() + self._validators["showdividers"] = v_yaxis.ShowdividersValidator() + self._validators["showexponent"] = v_yaxis.ShowexponentValidator() + self._validators["showgrid"] = v_yaxis.ShowgridValidator() + self._validators["showline"] = v_yaxis.ShowlineValidator() + self._validators["showspikes"] = v_yaxis.ShowspikesValidator() + self._validators["showticklabels"] = v_yaxis.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_yaxis.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_yaxis.ShowticksuffixValidator() + self._validators["side"] = v_yaxis.SideValidator() + self._validators["spikecolor"] = v_yaxis.SpikecolorValidator() + self._validators["spikedash"] = v_yaxis.SpikedashValidator() + self._validators["spikemode"] = v_yaxis.SpikemodeValidator() + self._validators["spikesnap"] = v_yaxis.SpikesnapValidator() + self._validators["spikethickness"] = v_yaxis.SpikethicknessValidator() + self._validators["tick0"] = v_yaxis.Tick0Validator() + self._validators["tickangle"] = v_yaxis.TickangleValidator() + self._validators["tickcolor"] = v_yaxis.TickcolorValidator() + self._validators["tickfont"] = v_yaxis.TickfontValidator() + self._validators["tickformat"] = v_yaxis.TickformatValidator() + self._validators["tickformatstops"] = v_yaxis.TickformatstopsValidator() + self._validators["tickformatstopdefaults"] = v_yaxis.TickformatstopValidator() + self._validators["ticklen"] = v_yaxis.TicklenValidator() + self._validators["tickmode"] = v_yaxis.TickmodeValidator() + self._validators["tickprefix"] = v_yaxis.TickprefixValidator() + self._validators["ticks"] = v_yaxis.TicksValidator() + self._validators["tickson"] = v_yaxis.TicksonValidator() + self._validators["ticksuffix"] = v_yaxis.TicksuffixValidator() + self._validators["ticktext"] = v_yaxis.TicktextValidator() + self._validators["ticktextsrc"] = v_yaxis.TicktextsrcValidator() + self._validators["tickvals"] = v_yaxis.TickvalsValidator() + self._validators["tickvalssrc"] = v_yaxis.TickvalssrcValidator() + self._validators["tickwidth"] = v_yaxis.TickwidthValidator() + self._validators["title"] = v_yaxis.TitleValidator() + self._validators["type"] = v_yaxis.TypeValidator() + self._validators["uirevision"] = v_yaxis.UirevisionValidator() + self._validators["visible"] = v_yaxis.VisibleValidator() + self._validators["zeroline"] = v_yaxis.ZerolineValidator() + self._validators["zerolinecolor"] = v_yaxis.ZerolinecolorValidator() + self._validators["zerolinewidth"] = v_yaxis.ZerolinewidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('anchor', None) - self['anchor'] = anchor if anchor is not None else _v - _v = arg.pop('automargin', None) - self['automargin'] = automargin if automargin is not None else _v - _v = arg.pop('autorange', None) - self['autorange'] = autorange if autorange is not None else _v - _v = arg.pop('calendar', None) - self['calendar'] = calendar if calendar is not None else _v - _v = arg.pop('categoryarray', None) - self['categoryarray' - ] = categoryarray if categoryarray is not None else _v - _v = arg.pop('categoryarraysrc', None) - self['categoryarraysrc' - ] = categoryarraysrc if categoryarraysrc is not None else _v - _v = arg.pop('categoryorder', None) - self['categoryorder' - ] = categoryorder if categoryorder is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('constrain', None) - self['constrain'] = constrain if constrain is not None else _v - _v = arg.pop('constraintoward', None) - self['constraintoward' - ] = constraintoward if constraintoward is not None else _v - _v = arg.pop('dividercolor', None) - self['dividercolor'] = dividercolor if dividercolor is not None else _v - _v = arg.pop('dividerwidth', None) - self['dividerwidth'] = dividerwidth if dividerwidth is not None else _v - _v = arg.pop('domain', None) - self['domain'] = domain if domain is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('fixedrange', None) - self['fixedrange'] = fixedrange if fixedrange is not None else _v - _v = arg.pop('gridcolor', None) - self['gridcolor'] = gridcolor if gridcolor is not None else _v - _v = arg.pop('gridwidth', None) - self['gridwidth'] = gridwidth if gridwidth is not None else _v - _v = arg.pop('hoverformat', None) - self['hoverformat'] = hoverformat if hoverformat is not None else _v - _v = arg.pop('layer', None) - self['layer'] = layer if layer is not None else _v - _v = arg.pop('linecolor', None) - self['linecolor'] = linecolor if linecolor is not None else _v - _v = arg.pop('linewidth', None) - self['linewidth'] = linewidth if linewidth is not None else _v - _v = arg.pop('matches', None) - self['matches'] = matches if matches is not None else _v - _v = arg.pop('mirror', None) - self['mirror'] = mirror if mirror is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('overlaying', None) - self['overlaying'] = overlaying if overlaying is not None else _v - _v = arg.pop('position', None) - self['position'] = position if position is not None else _v - _v = arg.pop('range', None) - self['range'] = range if range is not None else _v - _v = arg.pop('rangemode', None) - self['rangemode'] = rangemode if rangemode is not None else _v - _v = arg.pop('scaleanchor', None) - self['scaleanchor'] = scaleanchor if scaleanchor is not None else _v - _v = arg.pop('scaleratio', None) - self['scaleratio'] = scaleratio if scaleratio is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showdividers', None) - self['showdividers'] = showdividers if showdividers is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showgrid', None) - self['showgrid'] = showgrid if showgrid is not None else _v - _v = arg.pop('showline', None) - self['showline'] = showline if showline is not None else _v - _v = arg.pop('showspikes', None) - self['showspikes'] = showspikes if showspikes is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('spikecolor', None) - self['spikecolor'] = spikecolor if spikecolor is not None else _v - _v = arg.pop('spikedash', None) - self['spikedash'] = spikedash if spikedash is not None else _v - _v = arg.pop('spikemode', None) - self['spikemode'] = spikemode if spikemode is not None else _v - _v = arg.pop('spikesnap', None) - self['spikesnap'] = spikesnap if spikesnap is not None else _v - _v = arg.pop('spikethickness', None) - self['spikethickness' - ] = spikethickness if spikethickness is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('tickson', None) - self['tickson'] = tickson if tickson is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("anchor", None) + self["anchor"] = anchor if anchor is not None else _v + _v = arg.pop("automargin", None) + self["automargin"] = automargin if automargin is not None else _v + _v = arg.pop("autorange", None) + self["autorange"] = autorange if autorange is not None else _v + _v = arg.pop("calendar", None) + self["calendar"] = calendar if calendar is not None else _v + _v = arg.pop("categoryarray", None) + self["categoryarray"] = categoryarray if categoryarray is not None else _v + _v = arg.pop("categoryarraysrc", None) + self["categoryarraysrc"] = ( + categoryarraysrc if categoryarraysrc is not None else _v + ) + _v = arg.pop("categoryorder", None) + self["categoryorder"] = categoryorder if categoryorder is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("constrain", None) + self["constrain"] = constrain if constrain is not None else _v + _v = arg.pop("constraintoward", None) + self["constraintoward"] = constraintoward if constraintoward is not None else _v + _v = arg.pop("dividercolor", None) + self["dividercolor"] = dividercolor if dividercolor is not None else _v + _v = arg.pop("dividerwidth", None) + self["dividerwidth"] = dividerwidth if dividerwidth is not None else _v + _v = arg.pop("domain", None) + self["domain"] = domain if domain is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("fixedrange", None) + self["fixedrange"] = fixedrange if fixedrange is not None else _v + _v = arg.pop("gridcolor", None) + self["gridcolor"] = gridcolor if gridcolor is not None else _v + _v = arg.pop("gridwidth", None) + self["gridwidth"] = gridwidth if gridwidth is not None else _v + _v = arg.pop("hoverformat", None) + self["hoverformat"] = hoverformat if hoverformat is not None else _v + _v = arg.pop("layer", None) + self["layer"] = layer if layer is not None else _v + _v = arg.pop("linecolor", None) + self["linecolor"] = linecolor if linecolor is not None else _v + _v = arg.pop("linewidth", None) + self["linewidth"] = linewidth if linewidth is not None else _v + _v = arg.pop("matches", None) + self["matches"] = matches if matches is not None else _v + _v = arg.pop("mirror", None) + self["mirror"] = mirror if mirror is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("overlaying", None) + self["overlaying"] = overlaying if overlaying is not None else _v + _v = arg.pop("position", None) + self["position"] = position if position is not None else _v + _v = arg.pop("range", None) + self["range"] = range if range is not None else _v + _v = arg.pop("rangemode", None) + self["rangemode"] = rangemode if rangemode is not None else _v + _v = arg.pop("scaleanchor", None) + self["scaleanchor"] = scaleanchor if scaleanchor is not None else _v + _v = arg.pop("scaleratio", None) + self["scaleratio"] = scaleratio if scaleratio is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showdividers", None) + self["showdividers"] = showdividers if showdividers is not None else _v + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showgrid", None) + self["showgrid"] = showgrid if showgrid is not None else _v + _v = arg.pop("showline", None) + self["showline"] = showline if showline is not None else _v + _v = arg.pop("showspikes", None) + self["showspikes"] = showspikes if showspikes is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("spikecolor", None) + self["spikecolor"] = spikecolor if spikecolor is not None else _v + _v = arg.pop("spikedash", None) + self["spikedash"] = spikedash if spikedash is not None else _v + _v = arg.pop("spikemode", None) + self["spikemode"] = spikemode if spikemode is not None else _v + _v = arg.pop("spikesnap", None) + self["spikesnap"] = spikesnap if spikesnap is not None else _v + _v = arg.pop("spikethickness", None) + self["spikethickness"] = spikethickness if spikethickness is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("tickson", None) + self["tickson"] = tickson if tickson is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('zeroline', None) - self['zeroline'] = zeroline if zeroline is not None else _v - _v = arg.pop('zerolinecolor', None) - self['zerolinecolor' - ] = zerolinecolor if zerolinecolor is not None else _v - _v = arg.pop('zerolinewidth', None) - self['zerolinewidth' - ] = zerolinewidth if zerolinewidth is not None else _v + self["titlefont"] = _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("zeroline", None) + self["zeroline"] = zeroline if zeroline is not None else _v + _v = arg.pop("zerolinecolor", None) + self["zerolinecolor"] = zerolinecolor if zerolinecolor is not None else _v + _v = arg.pop("zerolinewidth", None) + self["zerolinewidth"] = zerolinewidth if zerolinewidth is not None else _v # Process unknown kwargs # ---------------------- @@ -3210,11 +3194,11 @@ def anchor(self): ------- Any """ - return self['anchor'] + return self["anchor"] @anchor.setter def anchor(self, val): - self['anchor'] = val + self["anchor"] = val # automargin # ---------- @@ -3231,11 +3215,11 @@ def automargin(self): ------- bool """ - return self['automargin'] + return self["automargin"] @automargin.setter def automargin(self, val): - self['automargin'] = val + self["automargin"] = val # autorange # --------- @@ -3254,11 +3238,11 @@ def autorange(self): ------- Any """ - return self['autorange'] + return self["autorange"] @autorange.setter def autorange(self, val): - self['autorange'] = val + self["autorange"] = val # calendar # -------- @@ -3281,11 +3265,11 @@ def calendar(self): ------- Any """ - return self['calendar'] + return self["calendar"] @calendar.setter def calendar(self, val): - self['calendar'] = val + self["calendar"] = val # categoryarray # ------------- @@ -3303,11 +3287,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self['categoryarray'] + return self["categoryarray"] @categoryarray.setter def categoryarray(self, val): - self['categoryarray'] = val + self["categoryarray"] = val # categoryarraysrc # ---------------- @@ -3323,11 +3307,11 @@ def categoryarraysrc(self): ------- str """ - return self['categoryarraysrc'] + return self["categoryarraysrc"] @categoryarraysrc.setter def categoryarraysrc(self, val): - self['categoryarraysrc'] = val + self["categoryarraysrc"] = val # categoryorder # ------------- @@ -3363,11 +3347,11 @@ def categoryorder(self): ------- Any """ - return self['categoryorder'] + return self["categoryorder"] @categoryorder.setter def categoryorder(self, val): - self['categoryorder'] = val + self["categoryorder"] = val # color # ----- @@ -3425,11 +3409,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # constrain # --------- @@ -3449,11 +3433,11 @@ def constrain(self): ------- Any """ - return self['constrain'] + return self["constrain"] @constrain.setter def constrain(self, val): - self['constrain'] = val + self["constrain"] = val # constraintoward # --------------- @@ -3475,11 +3459,11 @@ def constraintoward(self): ------- Any """ - return self['constraintoward'] + return self["constraintoward"] @constraintoward.setter def constraintoward(self, val): - self['constraintoward'] = val + self["constraintoward"] = val # dividercolor # ------------ @@ -3535,11 +3519,11 @@ def dividercolor(self): ------- str """ - return self['dividercolor'] + return self["dividercolor"] @dividercolor.setter def dividercolor(self, val): - self['dividercolor'] = val + self["dividercolor"] = val # dividerwidth # ------------ @@ -3556,11 +3540,11 @@ def dividerwidth(self): ------- int|float """ - return self['dividerwidth'] + return self["dividerwidth"] @dividerwidth.setter def dividerwidth(self, val): - self['dividerwidth'] = val + self["dividerwidth"] = val # domain # ------ @@ -3581,11 +3565,11 @@ def domain(self): ------- list """ - return self['domain'] + return self["domain"] @domain.setter def domain(self, val): - self['domain'] = val + self["domain"] = val # dtick # ----- @@ -3619,11 +3603,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -3644,11 +3628,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # fixedrange # ---------- @@ -3665,11 +3649,11 @@ def fixedrange(self): ------- bool """ - return self['fixedrange'] + return self["fixedrange"] @fixedrange.setter def fixedrange(self, val): - self['fixedrange'] = val + self["fixedrange"] = val # gridcolor # --------- @@ -3724,11 +3708,11 @@ def gridcolor(self): ------- str """ - return self['gridcolor'] + return self["gridcolor"] @gridcolor.setter def gridcolor(self, val): - self['gridcolor'] = val + self["gridcolor"] = val # gridwidth # --------- @@ -3744,11 +3728,11 @@ def gridwidth(self): ------- int|float """ - return self['gridwidth'] + return self["gridwidth"] @gridwidth.setter def gridwidth(self, val): - self['gridwidth'] = val + self["gridwidth"] = val # hoverformat # ----------- @@ -3773,11 +3757,11 @@ def hoverformat(self): ------- str """ - return self['hoverformat'] + return self["hoverformat"] @hoverformat.setter def hoverformat(self, val): - self['hoverformat'] = val + self["hoverformat"] = val # layer # ----- @@ -3799,11 +3783,11 @@ def layer(self): ------- Any """ - return self['layer'] + return self["layer"] @layer.setter def layer(self, val): - self['layer'] = val + self["layer"] = val # linecolor # --------- @@ -3858,11 +3842,11 @@ def linecolor(self): ------- str """ - return self['linecolor'] + return self["linecolor"] @linecolor.setter def linecolor(self, val): - self['linecolor'] = val + self["linecolor"] = val # linewidth # --------- @@ -3878,11 +3862,11 @@ def linewidth(self): ------- int|float """ - return self['linewidth'] + return self["linewidth"] @linewidth.setter def linewidth(self, val): - self['linewidth'] = val + self["linewidth"] = val # matches # ------- @@ -3905,11 +3889,11 @@ def matches(self): ------- Any """ - return self['matches'] + return self["matches"] @matches.setter def matches(self, val): - self['matches'] = val + self["matches"] = val # mirror # ------ @@ -3931,11 +3915,11 @@ def mirror(self): ------- Any """ - return self['mirror'] + return self["mirror"] @mirror.setter def mirror(self, val): - self['mirror'] = val + self["mirror"] = val # nticks # ------ @@ -3955,11 +3939,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # overlaying # ---------- @@ -3982,11 +3966,11 @@ def overlaying(self): ------- Any """ - return self['overlaying'] + return self["overlaying"] @overlaying.setter def overlaying(self, val): - self['overlaying'] = val + self["overlaying"] = val # position # -------- @@ -4004,11 +3988,11 @@ def position(self): ------- int|float """ - return self['position'] + return self["position"] @position.setter def position(self, val): - self['position'] = val + self["position"] = val # range # ----- @@ -4034,11 +4018,11 @@ def range(self): ------- list """ - return self['range'] + return self["range"] @range.setter def range(self, val): - self['range'] = val + self["range"] = val # rangemode # --------- @@ -4059,11 +4043,11 @@ def rangemode(self): ------- Any """ - return self['rangemode'] + return self["rangemode"] @rangemode.setter def rangemode(self, val): - self['rangemode'] = val + self["rangemode"] = val # rangeselector # ------------- @@ -4128,11 +4112,11 @@ def rangeselector(self): ------- plotly.graph_objs.layout.xaxis.Rangeselector """ - return self['rangeselector'] + return self["rangeselector"] @rangeselector.setter def rangeselector(self, val): - self['rangeselector'] = val + self["rangeselector"] = val # rangeslider # ----------- @@ -4185,11 +4169,11 @@ def rangeslider(self): ------- plotly.graph_objs.layout.xaxis.Rangeslider """ - return self['rangeslider'] + return self["rangeslider"] @rangeslider.setter def rangeslider(self, val): - self['rangeslider'] = val + self["rangeslider"] = val # scaleanchor # ----------- @@ -4221,11 +4205,11 @@ def scaleanchor(self): ------- Any """ - return self['scaleanchor'] + return self["scaleanchor"] @scaleanchor.setter def scaleanchor(self, val): - self['scaleanchor'] = val + self["scaleanchor"] = val # scaleratio # ---------- @@ -4246,11 +4230,11 @@ def scaleratio(self): ------- int|float """ - return self['scaleratio'] + return self["scaleratio"] @scaleratio.setter def scaleratio(self, val): - self['scaleratio'] = val + self["scaleratio"] = val # separatethousands # ----------------- @@ -4266,11 +4250,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showdividers # ------------ @@ -4288,11 +4272,11 @@ def showdividers(self): ------- bool """ - return self['showdividers'] + return self["showdividers"] @showdividers.setter def showdividers(self, val): - self['showdividers'] = val + self["showdividers"] = val # showexponent # ------------ @@ -4312,11 +4296,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showgrid # -------- @@ -4333,11 +4317,11 @@ def showgrid(self): ------- bool """ - return self['showgrid'] + return self["showgrid"] @showgrid.setter def showgrid(self, val): - self['showgrid'] = val + self["showgrid"] = val # showline # -------- @@ -4353,11 +4337,11 @@ def showline(self): ------- bool """ - return self['showline'] + return self["showline"] @showline.setter def showline(self, val): - self['showline'] = val + self["showline"] = val # showspikes # ---------- @@ -4375,11 +4359,11 @@ def showspikes(self): ------- bool """ - return self['showspikes'] + return self["showspikes"] @showspikes.setter def showspikes(self, val): - self['showspikes'] = val + self["showspikes"] = val # showticklabels # -------------- @@ -4395,11 +4379,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -4419,11 +4403,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -4440,11 +4424,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # side # ---- @@ -4462,11 +4446,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # spikecolor # ---------- @@ -4521,11 +4505,11 @@ def spikecolor(self): ------- str """ - return self['spikecolor'] + return self["spikecolor"] @spikecolor.setter def spikecolor(self, val): - self['spikecolor'] = val + self["spikecolor"] = val # spikedash # --------- @@ -4547,11 +4531,11 @@ def spikedash(self): ------- str """ - return self['spikedash'] + return self["spikedash"] @spikedash.setter def spikedash(self, val): - self['spikedash'] = val + self["spikedash"] = val # spikemode # --------- @@ -4573,11 +4557,11 @@ def spikemode(self): ------- Any """ - return self['spikemode'] + return self["spikemode"] @spikemode.setter def spikemode(self, val): - self['spikemode'] = val + self["spikemode"] = val # spikesnap # --------- @@ -4595,11 +4579,11 @@ def spikesnap(self): ------- Any """ - return self['spikesnap'] + return self["spikesnap"] @spikesnap.setter def spikesnap(self, val): - self['spikesnap'] = val + self["spikesnap"] = val # spikethickness # -------------- @@ -4615,11 +4599,11 @@ def spikethickness(self): ------- int|float """ - return self['spikethickness'] + return self["spikethickness"] @spikethickness.setter def spikethickness(self, val): - self['spikethickness'] = val + self["spikethickness"] = val # tick0 # ----- @@ -4642,11 +4626,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -4666,11 +4650,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -4725,11 +4709,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -4770,11 +4754,11 @@ def tickfont(self): ------- plotly.graph_objs.layout.xaxis.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -4799,11 +4783,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -4856,11 +4840,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.layout.xaxis.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -4884,11 +4868,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.layout.xaxis.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -4904,11 +4888,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -4931,11 +4915,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -4952,11 +4936,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -4975,11 +4959,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # tickson # ------- @@ -5000,11 +4984,11 @@ def tickson(self): ------- Any """ - return self['tickson'] + return self["tickson"] @tickson.setter def tickson(self, val): - self['tickson'] = val + self["tickson"] = val # ticksuffix # ---------- @@ -5021,11 +5005,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -5043,11 +5027,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -5063,11 +5047,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -5084,11 +5068,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -5104,11 +5088,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -5124,11 +5108,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -5158,11 +5142,11 @@ def title(self): ------- plotly.graph_objs.layout.xaxis.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -5205,11 +5189,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # type # ---- @@ -5229,11 +5213,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # uirevision # ---------- @@ -5250,11 +5234,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -5272,11 +5256,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # zeroline # -------- @@ -5294,11 +5278,11 @@ def zeroline(self): ------- bool """ - return self['zeroline'] + return self["zeroline"] @zeroline.setter def zeroline(self, val): - self['zeroline'] = val + self["zeroline"] = val # zerolinecolor # ------------- @@ -5353,11 +5337,11 @@ def zerolinecolor(self): ------- str """ - return self['zerolinecolor'] + return self["zerolinecolor"] @zerolinecolor.setter def zerolinecolor(self, val): - self['zerolinecolor'] = val + self["zerolinecolor"] = val # zerolinewidth # ------------- @@ -5373,17 +5357,17 @@ def zerolinewidth(self): ------- int|float """ - return self['zerolinewidth'] + return self["zerolinewidth"] @zerolinewidth.setter def zerolinewidth(self, val): - self['zerolinewidth'] = val + self["zerolinewidth"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -5765,7 +5749,7 @@ def _prop_descriptions(self): Sets the width (in px) of the zero line. """ - _mapped_properties = {'titlefont': ('title', 'font')} + _mapped_properties = {"titlefont": ("title", "font")} def __init__( self, @@ -6232,7 +6216,7 @@ def __init__( ------- XAxis """ - super(XAxis, self).__init__('xaxis') + super(XAxis, self).__init__("xaxis") # Validate arg # ------------ @@ -6252,261 +6236,246 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (xaxis as v_xaxis) + from plotly.validators.layout import xaxis as v_xaxis # Initialize validators # --------------------- - self._validators['anchor'] = v_xaxis.AnchorValidator() - self._validators['automargin'] = v_xaxis.AutomarginValidator() - self._validators['autorange'] = v_xaxis.AutorangeValidator() - self._validators['calendar'] = v_xaxis.CalendarValidator() - self._validators['categoryarray'] = v_xaxis.CategoryarrayValidator() - self._validators['categoryarraysrc' - ] = v_xaxis.CategoryarraysrcValidator() - self._validators['categoryorder'] = v_xaxis.CategoryorderValidator() - self._validators['color'] = v_xaxis.ColorValidator() - self._validators['constrain'] = v_xaxis.ConstrainValidator() - self._validators['constraintoward'] = v_xaxis.ConstraintowardValidator( - ) - self._validators['dividercolor'] = v_xaxis.DividercolorValidator() - self._validators['dividerwidth'] = v_xaxis.DividerwidthValidator() - self._validators['domain'] = v_xaxis.DomainValidator() - self._validators['dtick'] = v_xaxis.DtickValidator() - self._validators['exponentformat'] = v_xaxis.ExponentformatValidator() - self._validators['fixedrange'] = v_xaxis.FixedrangeValidator() - self._validators['gridcolor'] = v_xaxis.GridcolorValidator() - self._validators['gridwidth'] = v_xaxis.GridwidthValidator() - self._validators['hoverformat'] = v_xaxis.HoverformatValidator() - self._validators['layer'] = v_xaxis.LayerValidator() - self._validators['linecolor'] = v_xaxis.LinecolorValidator() - self._validators['linewidth'] = v_xaxis.LinewidthValidator() - self._validators['matches'] = v_xaxis.MatchesValidator() - self._validators['mirror'] = v_xaxis.MirrorValidator() - self._validators['nticks'] = v_xaxis.NticksValidator() - self._validators['overlaying'] = v_xaxis.OverlayingValidator() - self._validators['position'] = v_xaxis.PositionValidator() - self._validators['range'] = v_xaxis.RangeValidator() - self._validators['rangemode'] = v_xaxis.RangemodeValidator() - self._validators['rangeselector'] = v_xaxis.RangeselectorValidator() - self._validators['rangeslider'] = v_xaxis.RangesliderValidator() - self._validators['scaleanchor'] = v_xaxis.ScaleanchorValidator() - self._validators['scaleratio'] = v_xaxis.ScaleratioValidator() - self._validators['separatethousands' - ] = v_xaxis.SeparatethousandsValidator() - self._validators['showdividers'] = v_xaxis.ShowdividersValidator() - self._validators['showexponent'] = v_xaxis.ShowexponentValidator() - self._validators['showgrid'] = v_xaxis.ShowgridValidator() - self._validators['showline'] = v_xaxis.ShowlineValidator() - self._validators['showspikes'] = v_xaxis.ShowspikesValidator() - self._validators['showticklabels'] = v_xaxis.ShowticklabelsValidator() - self._validators['showtickprefix'] = v_xaxis.ShowtickprefixValidator() - self._validators['showticksuffix'] = v_xaxis.ShowticksuffixValidator() - self._validators['side'] = v_xaxis.SideValidator() - self._validators['spikecolor'] = v_xaxis.SpikecolorValidator() - self._validators['spikedash'] = v_xaxis.SpikedashValidator() - self._validators['spikemode'] = v_xaxis.SpikemodeValidator() - self._validators['spikesnap'] = v_xaxis.SpikesnapValidator() - self._validators['spikethickness'] = v_xaxis.SpikethicknessValidator() - self._validators['tick0'] = v_xaxis.Tick0Validator() - self._validators['tickangle'] = v_xaxis.TickangleValidator() - self._validators['tickcolor'] = v_xaxis.TickcolorValidator() - self._validators['tickfont'] = v_xaxis.TickfontValidator() - self._validators['tickformat'] = v_xaxis.TickformatValidator() - self._validators['tickformatstops'] = v_xaxis.TickformatstopsValidator( - ) - self._validators['tickformatstopdefaults' - ] = v_xaxis.TickformatstopValidator() - self._validators['ticklen'] = v_xaxis.TicklenValidator() - self._validators['tickmode'] = v_xaxis.TickmodeValidator() - self._validators['tickprefix'] = v_xaxis.TickprefixValidator() - self._validators['ticks'] = v_xaxis.TicksValidator() - self._validators['tickson'] = v_xaxis.TicksonValidator() - self._validators['ticksuffix'] = v_xaxis.TicksuffixValidator() - self._validators['ticktext'] = v_xaxis.TicktextValidator() - self._validators['ticktextsrc'] = v_xaxis.TicktextsrcValidator() - self._validators['tickvals'] = v_xaxis.TickvalsValidator() - self._validators['tickvalssrc'] = v_xaxis.TickvalssrcValidator() - self._validators['tickwidth'] = v_xaxis.TickwidthValidator() - self._validators['title'] = v_xaxis.TitleValidator() - self._validators['type'] = v_xaxis.TypeValidator() - self._validators['uirevision'] = v_xaxis.UirevisionValidator() - self._validators['visible'] = v_xaxis.VisibleValidator() - self._validators['zeroline'] = v_xaxis.ZerolineValidator() - self._validators['zerolinecolor'] = v_xaxis.ZerolinecolorValidator() - self._validators['zerolinewidth'] = v_xaxis.ZerolinewidthValidator() + self._validators["anchor"] = v_xaxis.AnchorValidator() + self._validators["automargin"] = v_xaxis.AutomarginValidator() + self._validators["autorange"] = v_xaxis.AutorangeValidator() + self._validators["calendar"] = v_xaxis.CalendarValidator() + self._validators["categoryarray"] = v_xaxis.CategoryarrayValidator() + self._validators["categoryarraysrc"] = v_xaxis.CategoryarraysrcValidator() + self._validators["categoryorder"] = v_xaxis.CategoryorderValidator() + self._validators["color"] = v_xaxis.ColorValidator() + self._validators["constrain"] = v_xaxis.ConstrainValidator() + self._validators["constraintoward"] = v_xaxis.ConstraintowardValidator() + self._validators["dividercolor"] = v_xaxis.DividercolorValidator() + self._validators["dividerwidth"] = v_xaxis.DividerwidthValidator() + self._validators["domain"] = v_xaxis.DomainValidator() + self._validators["dtick"] = v_xaxis.DtickValidator() + self._validators["exponentformat"] = v_xaxis.ExponentformatValidator() + self._validators["fixedrange"] = v_xaxis.FixedrangeValidator() + self._validators["gridcolor"] = v_xaxis.GridcolorValidator() + self._validators["gridwidth"] = v_xaxis.GridwidthValidator() + self._validators["hoverformat"] = v_xaxis.HoverformatValidator() + self._validators["layer"] = v_xaxis.LayerValidator() + self._validators["linecolor"] = v_xaxis.LinecolorValidator() + self._validators["linewidth"] = v_xaxis.LinewidthValidator() + self._validators["matches"] = v_xaxis.MatchesValidator() + self._validators["mirror"] = v_xaxis.MirrorValidator() + self._validators["nticks"] = v_xaxis.NticksValidator() + self._validators["overlaying"] = v_xaxis.OverlayingValidator() + self._validators["position"] = v_xaxis.PositionValidator() + self._validators["range"] = v_xaxis.RangeValidator() + self._validators["rangemode"] = v_xaxis.RangemodeValidator() + self._validators["rangeselector"] = v_xaxis.RangeselectorValidator() + self._validators["rangeslider"] = v_xaxis.RangesliderValidator() + self._validators["scaleanchor"] = v_xaxis.ScaleanchorValidator() + self._validators["scaleratio"] = v_xaxis.ScaleratioValidator() + self._validators["separatethousands"] = v_xaxis.SeparatethousandsValidator() + self._validators["showdividers"] = v_xaxis.ShowdividersValidator() + self._validators["showexponent"] = v_xaxis.ShowexponentValidator() + self._validators["showgrid"] = v_xaxis.ShowgridValidator() + self._validators["showline"] = v_xaxis.ShowlineValidator() + self._validators["showspikes"] = v_xaxis.ShowspikesValidator() + self._validators["showticklabels"] = v_xaxis.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_xaxis.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_xaxis.ShowticksuffixValidator() + self._validators["side"] = v_xaxis.SideValidator() + self._validators["spikecolor"] = v_xaxis.SpikecolorValidator() + self._validators["spikedash"] = v_xaxis.SpikedashValidator() + self._validators["spikemode"] = v_xaxis.SpikemodeValidator() + self._validators["spikesnap"] = v_xaxis.SpikesnapValidator() + self._validators["spikethickness"] = v_xaxis.SpikethicknessValidator() + self._validators["tick0"] = v_xaxis.Tick0Validator() + self._validators["tickangle"] = v_xaxis.TickangleValidator() + self._validators["tickcolor"] = v_xaxis.TickcolorValidator() + self._validators["tickfont"] = v_xaxis.TickfontValidator() + self._validators["tickformat"] = v_xaxis.TickformatValidator() + self._validators["tickformatstops"] = v_xaxis.TickformatstopsValidator() + self._validators["tickformatstopdefaults"] = v_xaxis.TickformatstopValidator() + self._validators["ticklen"] = v_xaxis.TicklenValidator() + self._validators["tickmode"] = v_xaxis.TickmodeValidator() + self._validators["tickprefix"] = v_xaxis.TickprefixValidator() + self._validators["ticks"] = v_xaxis.TicksValidator() + self._validators["tickson"] = v_xaxis.TicksonValidator() + self._validators["ticksuffix"] = v_xaxis.TicksuffixValidator() + self._validators["ticktext"] = v_xaxis.TicktextValidator() + self._validators["ticktextsrc"] = v_xaxis.TicktextsrcValidator() + self._validators["tickvals"] = v_xaxis.TickvalsValidator() + self._validators["tickvalssrc"] = v_xaxis.TickvalssrcValidator() + self._validators["tickwidth"] = v_xaxis.TickwidthValidator() + self._validators["title"] = v_xaxis.TitleValidator() + self._validators["type"] = v_xaxis.TypeValidator() + self._validators["uirevision"] = v_xaxis.UirevisionValidator() + self._validators["visible"] = v_xaxis.VisibleValidator() + self._validators["zeroline"] = v_xaxis.ZerolineValidator() + self._validators["zerolinecolor"] = v_xaxis.ZerolinecolorValidator() + self._validators["zerolinewidth"] = v_xaxis.ZerolinewidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('anchor', None) - self['anchor'] = anchor if anchor is not None else _v - _v = arg.pop('automargin', None) - self['automargin'] = automargin if automargin is not None else _v - _v = arg.pop('autorange', None) - self['autorange'] = autorange if autorange is not None else _v - _v = arg.pop('calendar', None) - self['calendar'] = calendar if calendar is not None else _v - _v = arg.pop('categoryarray', None) - self['categoryarray' - ] = categoryarray if categoryarray is not None else _v - _v = arg.pop('categoryarraysrc', None) - self['categoryarraysrc' - ] = categoryarraysrc if categoryarraysrc is not None else _v - _v = arg.pop('categoryorder', None) - self['categoryorder' - ] = categoryorder if categoryorder is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('constrain', None) - self['constrain'] = constrain if constrain is not None else _v - _v = arg.pop('constraintoward', None) - self['constraintoward' - ] = constraintoward if constraintoward is not None else _v - _v = arg.pop('dividercolor', None) - self['dividercolor'] = dividercolor if dividercolor is not None else _v - _v = arg.pop('dividerwidth', None) - self['dividerwidth'] = dividerwidth if dividerwidth is not None else _v - _v = arg.pop('domain', None) - self['domain'] = domain if domain is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('fixedrange', None) - self['fixedrange'] = fixedrange if fixedrange is not None else _v - _v = arg.pop('gridcolor', None) - self['gridcolor'] = gridcolor if gridcolor is not None else _v - _v = arg.pop('gridwidth', None) - self['gridwidth'] = gridwidth if gridwidth is not None else _v - _v = arg.pop('hoverformat', None) - self['hoverformat'] = hoverformat if hoverformat is not None else _v - _v = arg.pop('layer', None) - self['layer'] = layer if layer is not None else _v - _v = arg.pop('linecolor', None) - self['linecolor'] = linecolor if linecolor is not None else _v - _v = arg.pop('linewidth', None) - self['linewidth'] = linewidth if linewidth is not None else _v - _v = arg.pop('matches', None) - self['matches'] = matches if matches is not None else _v - _v = arg.pop('mirror', None) - self['mirror'] = mirror if mirror is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('overlaying', None) - self['overlaying'] = overlaying if overlaying is not None else _v - _v = arg.pop('position', None) - self['position'] = position if position is not None else _v - _v = arg.pop('range', None) - self['range'] = range if range is not None else _v - _v = arg.pop('rangemode', None) - self['rangemode'] = rangemode if rangemode is not None else _v - _v = arg.pop('rangeselector', None) - self['rangeselector' - ] = rangeselector if rangeselector is not None else _v - _v = arg.pop('rangeslider', None) - self['rangeslider'] = rangeslider if rangeslider is not None else _v - _v = arg.pop('scaleanchor', None) - self['scaleanchor'] = scaleanchor if scaleanchor is not None else _v - _v = arg.pop('scaleratio', None) - self['scaleratio'] = scaleratio if scaleratio is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showdividers', None) - self['showdividers'] = showdividers if showdividers is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showgrid', None) - self['showgrid'] = showgrid if showgrid is not None else _v - _v = arg.pop('showline', None) - self['showline'] = showline if showline is not None else _v - _v = arg.pop('showspikes', None) - self['showspikes'] = showspikes if showspikes is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('spikecolor', None) - self['spikecolor'] = spikecolor if spikecolor is not None else _v - _v = arg.pop('spikedash', None) - self['spikedash'] = spikedash if spikedash is not None else _v - _v = arg.pop('spikemode', None) - self['spikemode'] = spikemode if spikemode is not None else _v - _v = arg.pop('spikesnap', None) - self['spikesnap'] = spikesnap if spikesnap is not None else _v - _v = arg.pop('spikethickness', None) - self['spikethickness' - ] = spikethickness if spikethickness is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('tickson', None) - self['tickson'] = tickson if tickson is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("anchor", None) + self["anchor"] = anchor if anchor is not None else _v + _v = arg.pop("automargin", None) + self["automargin"] = automargin if automargin is not None else _v + _v = arg.pop("autorange", None) + self["autorange"] = autorange if autorange is not None else _v + _v = arg.pop("calendar", None) + self["calendar"] = calendar if calendar is not None else _v + _v = arg.pop("categoryarray", None) + self["categoryarray"] = categoryarray if categoryarray is not None else _v + _v = arg.pop("categoryarraysrc", None) + self["categoryarraysrc"] = ( + categoryarraysrc if categoryarraysrc is not None else _v + ) + _v = arg.pop("categoryorder", None) + self["categoryorder"] = categoryorder if categoryorder is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("constrain", None) + self["constrain"] = constrain if constrain is not None else _v + _v = arg.pop("constraintoward", None) + self["constraintoward"] = constraintoward if constraintoward is not None else _v + _v = arg.pop("dividercolor", None) + self["dividercolor"] = dividercolor if dividercolor is not None else _v + _v = arg.pop("dividerwidth", None) + self["dividerwidth"] = dividerwidth if dividerwidth is not None else _v + _v = arg.pop("domain", None) + self["domain"] = domain if domain is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("fixedrange", None) + self["fixedrange"] = fixedrange if fixedrange is not None else _v + _v = arg.pop("gridcolor", None) + self["gridcolor"] = gridcolor if gridcolor is not None else _v + _v = arg.pop("gridwidth", None) + self["gridwidth"] = gridwidth if gridwidth is not None else _v + _v = arg.pop("hoverformat", None) + self["hoverformat"] = hoverformat if hoverformat is not None else _v + _v = arg.pop("layer", None) + self["layer"] = layer if layer is not None else _v + _v = arg.pop("linecolor", None) + self["linecolor"] = linecolor if linecolor is not None else _v + _v = arg.pop("linewidth", None) + self["linewidth"] = linewidth if linewidth is not None else _v + _v = arg.pop("matches", None) + self["matches"] = matches if matches is not None else _v + _v = arg.pop("mirror", None) + self["mirror"] = mirror if mirror is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("overlaying", None) + self["overlaying"] = overlaying if overlaying is not None else _v + _v = arg.pop("position", None) + self["position"] = position if position is not None else _v + _v = arg.pop("range", None) + self["range"] = range if range is not None else _v + _v = arg.pop("rangemode", None) + self["rangemode"] = rangemode if rangemode is not None else _v + _v = arg.pop("rangeselector", None) + self["rangeselector"] = rangeselector if rangeselector is not None else _v + _v = arg.pop("rangeslider", None) + self["rangeslider"] = rangeslider if rangeslider is not None else _v + _v = arg.pop("scaleanchor", None) + self["scaleanchor"] = scaleanchor if scaleanchor is not None else _v + _v = arg.pop("scaleratio", None) + self["scaleratio"] = scaleratio if scaleratio is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showdividers", None) + self["showdividers"] = showdividers if showdividers is not None else _v + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showgrid", None) + self["showgrid"] = showgrid if showgrid is not None else _v + _v = arg.pop("showline", None) + self["showline"] = showline if showline is not None else _v + _v = arg.pop("showspikes", None) + self["showspikes"] = showspikes if showspikes is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("spikecolor", None) + self["spikecolor"] = spikecolor if spikecolor is not None else _v + _v = arg.pop("spikedash", None) + self["spikedash"] = spikedash if spikedash is not None else _v + _v = arg.pop("spikemode", None) + self["spikemode"] = spikemode if spikemode is not None else _v + _v = arg.pop("spikesnap", None) + self["spikesnap"] = spikesnap if spikesnap is not None else _v + _v = arg.pop("spikethickness", None) + self["spikethickness"] = spikethickness if spikethickness is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("tickson", None) + self["tickson"] = tickson if tickson is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('zeroline', None) - self['zeroline'] = zeroline if zeroline is not None else _v - _v = arg.pop('zerolinecolor', None) - self['zerolinecolor' - ] = zerolinecolor if zerolinecolor is not None else _v - _v = arg.pop('zerolinewidth', None) - self['zerolinewidth' - ] = zerolinewidth if zerolinewidth is not None else _v + self["titlefont"] = _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("zeroline", None) + self["zeroline"] = zeroline if zeroline is not None else _v + _v = arg.pop("zerolinecolor", None) + self["zerolinecolor"] = zerolinecolor if zerolinecolor is not None else _v + _v = arg.pop("zerolinewidth", None) + self["zerolinewidth"] = zerolinewidth if zerolinewidth is not None else _v # Process unknown kwargs # ---------------------- @@ -6539,11 +6508,11 @@ def active(self): ------- int """ - return self['active'] + return self["active"] @active.setter def active(self, val): - self['active'] = val + self["active"] = val # bgcolor # ------- @@ -6598,11 +6567,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -6657,11 +6626,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -6677,11 +6646,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # buttons # ------- @@ -6748,11 +6717,11 @@ def buttons(self): ------- tuple[plotly.graph_objs.layout.updatemenu.Button] """ - return self['buttons'] + return self["buttons"] @buttons.setter def buttons(self, val): - self['buttons'] = val + self["buttons"] = val # buttondefaults # -------------- @@ -6776,11 +6745,11 @@ def buttondefaults(self): ------- plotly.graph_objs.layout.updatemenu.Button """ - return self['buttondefaults'] + return self["buttondefaults"] @buttondefaults.setter def buttondefaults(self, val): - self['buttondefaults'] = val + self["buttondefaults"] = val # direction # --------- @@ -6800,11 +6769,11 @@ def direction(self): ------- Any """ - return self['direction'] + return self["direction"] @direction.setter def direction(self, val): - self['direction'] = val + self["direction"] = val # font # ---- @@ -6845,11 +6814,11 @@ def font(self): ------- plotly.graph_objs.layout.updatemenu.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # name # ---- @@ -6872,11 +6841,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # pad # --- @@ -6910,11 +6879,11 @@ def pad(self): ------- plotly.graph_objs.layout.updatemenu.Pad """ - return self['pad'] + return self["pad"] @pad.setter def pad(self, val): - self['pad'] = val + self["pad"] = val # showactive # ---------- @@ -6930,11 +6899,11 @@ def showactive(self): ------- bool """ - return self['showactive'] + return self["showactive"] @showactive.setter def showactive(self, val): - self['showactive'] = val + self["showactive"] = val # templateitemname # ---------------- @@ -6958,11 +6927,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # type # ---- @@ -6981,11 +6950,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # visible # ------- @@ -7001,11 +6970,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -7022,11 +6991,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -7045,11 +7014,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # y # - @@ -7066,11 +7035,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -7089,17 +7058,17 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -7284,7 +7253,7 @@ def __init__( ------- Updatemenu """ - super(Updatemenu, self).__init__('updatemenus') + super(Updatemenu, self).__init__("updatemenus") # Validate arg # ------------ @@ -7304,74 +7273,73 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (updatemenu as v_updatemenu) + from plotly.validators.layout import updatemenu as v_updatemenu # Initialize validators # --------------------- - self._validators['active'] = v_updatemenu.ActiveValidator() - self._validators['bgcolor'] = v_updatemenu.BgcolorValidator() - self._validators['bordercolor'] = v_updatemenu.BordercolorValidator() - self._validators['borderwidth'] = v_updatemenu.BorderwidthValidator() - self._validators['buttons'] = v_updatemenu.ButtonsValidator() - self._validators['buttondefaults'] = v_updatemenu.ButtonValidator() - self._validators['direction'] = v_updatemenu.DirectionValidator() - self._validators['font'] = v_updatemenu.FontValidator() - self._validators['name'] = v_updatemenu.NameValidator() - self._validators['pad'] = v_updatemenu.PadValidator() - self._validators['showactive'] = v_updatemenu.ShowactiveValidator() - self._validators['templateitemname' - ] = v_updatemenu.TemplateitemnameValidator() - self._validators['type'] = v_updatemenu.TypeValidator() - self._validators['visible'] = v_updatemenu.VisibleValidator() - self._validators['x'] = v_updatemenu.XValidator() - self._validators['xanchor'] = v_updatemenu.XanchorValidator() - self._validators['y'] = v_updatemenu.YValidator() - self._validators['yanchor'] = v_updatemenu.YanchorValidator() + self._validators["active"] = v_updatemenu.ActiveValidator() + self._validators["bgcolor"] = v_updatemenu.BgcolorValidator() + self._validators["bordercolor"] = v_updatemenu.BordercolorValidator() + self._validators["borderwidth"] = v_updatemenu.BorderwidthValidator() + self._validators["buttons"] = v_updatemenu.ButtonsValidator() + self._validators["buttondefaults"] = v_updatemenu.ButtonValidator() + self._validators["direction"] = v_updatemenu.DirectionValidator() + self._validators["font"] = v_updatemenu.FontValidator() + self._validators["name"] = v_updatemenu.NameValidator() + self._validators["pad"] = v_updatemenu.PadValidator() + self._validators["showactive"] = v_updatemenu.ShowactiveValidator() + self._validators["templateitemname"] = v_updatemenu.TemplateitemnameValidator() + self._validators["type"] = v_updatemenu.TypeValidator() + self._validators["visible"] = v_updatemenu.VisibleValidator() + self._validators["x"] = v_updatemenu.XValidator() + self._validators["xanchor"] = v_updatemenu.XanchorValidator() + self._validators["y"] = v_updatemenu.YValidator() + self._validators["yanchor"] = v_updatemenu.YanchorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('active', None) - self['active'] = active if active is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('buttons', None) - self['buttons'] = buttons if buttons is not None else _v - _v = arg.pop('buttondefaults', None) - self['buttondefaults' - ] = buttondefaults if buttondefaults is not None else _v - _v = arg.pop('direction', None) - self['direction'] = direction if direction is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('pad', None) - self['pad'] = pad if pad is not None else _v - _v = arg.pop('showactive', None) - self['showactive'] = showactive if showactive is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v + _v = arg.pop("active", None) + self["active"] = active if active is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("buttons", None) + self["buttons"] = buttons if buttons is not None else _v + _v = arg.pop("buttondefaults", None) + self["buttondefaults"] = buttondefaults if buttondefaults is not None else _v + _v = arg.pop("direction", None) + self["direction"] = direction if direction is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("pad", None) + self["pad"] = pad if pad is not None else _v + _v = arg.pop("showactive", None) + self["showactive"] = showactive if showactive is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v # Process unknown kwargs # ---------------------- @@ -7403,11 +7371,11 @@ def duration(self): ------- int|float """ - return self['duration'] + return self["duration"] @duration.setter def duration(self, val): - self['duration'] = val + self["duration"] = val # easing # ------ @@ -7432,11 +7400,11 @@ def easing(self): ------- Any """ - return self['easing'] + return self["easing"] @easing.setter def easing(self, val): - self['easing'] = val + self["easing"] = val # ordering # -------- @@ -7455,17 +7423,17 @@ def ordering(self): ------- Any """ - return self['ordering'] + return self["ordering"] @ordering.setter def ordering(self, val): - self['ordering'] = val + self["ordering"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -7483,9 +7451,7 @@ def _prop_descriptions(self): traces and layout change. """ - def __init__( - self, arg=None, duration=None, easing=None, ordering=None, **kwargs - ): + def __init__(self, arg=None, duration=None, easing=None, ordering=None, **kwargs): """ Construct a new Transition object @@ -7510,7 +7476,7 @@ def __init__( ------- Transition """ - super(Transition, self).__init__('transition') + super(Transition, self).__init__("transition") # Validate arg # ------------ @@ -7530,26 +7496,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (transition as v_transition) + from plotly.validators.layout import transition as v_transition # Initialize validators # --------------------- - self._validators['duration'] = v_transition.DurationValidator() - self._validators['easing'] = v_transition.EasingValidator() - self._validators['ordering'] = v_transition.OrderingValidator() + self._validators["duration"] = v_transition.DurationValidator() + self._validators["easing"] = v_transition.EasingValidator() + self._validators["ordering"] = v_transition.OrderingValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('duration', None) - self['duration'] = duration if duration is not None else _v - _v = arg.pop('easing', None) - self['easing'] = easing if easing is not None else _v - _v = arg.pop('ordering', None) - self['ordering'] = ordering if ordering is not None else _v + _v = arg.pop("duration", None) + self["duration"] = duration if duration is not None else _v + _v = arg.pop("easing", None) + self["easing"] = easing if easing is not None else _v + _v = arg.pop("ordering", None) + self["ordering"] = ordering if ordering is not None else _v # Process unknown kwargs # ---------------------- @@ -7606,11 +7572,11 @@ def font(self): ------- plotly.graph_objs.layout.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # pad # --- @@ -7649,11 +7615,11 @@ def pad(self): ------- plotly.graph_objs.layout.title.Pad """ - return self['pad'] + return self["pad"] @pad.setter def pad(self, val): - self['pad'] = val + self["pad"] = val # text # ---- @@ -7672,11 +7638,11 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # x # - @@ -7693,11 +7659,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -7719,11 +7685,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xref # ---- @@ -7742,11 +7708,11 @@ def xref(self): ------- Any """ - return self['xref'] + return self["xref"] @xref.setter def xref(self, val): - self['xref'] = val + self["xref"] = val # y # - @@ -7765,11 +7731,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -7791,11 +7757,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # yref # ---- @@ -7814,17 +7780,17 @@ def yref(self): ------- Any """ - return self['yref'] + return self["yref"] @yref.setter def yref(self, val): - self['yref'] = val + self["yref"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -7954,7 +7920,7 @@ def __init__( ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -7974,44 +7940,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (title as v_title) + from plotly.validators.layout import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['pad'] = v_title.PadValidator() - self._validators['text'] = v_title.TextValidator() - self._validators['x'] = v_title.XValidator() - self._validators['xanchor'] = v_title.XanchorValidator() - self._validators['xref'] = v_title.XrefValidator() - self._validators['y'] = v_title.YValidator() - self._validators['yanchor'] = v_title.YanchorValidator() - self._validators['yref'] = v_title.YrefValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["pad"] = v_title.PadValidator() + self._validators["text"] = v_title.TextValidator() + self._validators["x"] = v_title.XValidator() + self._validators["xanchor"] = v_title.XanchorValidator() + self._validators["xref"] = v_title.XrefValidator() + self._validators["y"] = v_title.YValidator() + self._validators["yanchor"] = v_title.YanchorValidator() + self._validators["yref"] = v_title.YrefValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('pad', None) - self['pad'] = pad if pad is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xref', None) - self['xref'] = xref if xref is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('yref', None) - self['yref'] = yref if yref is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("pad", None) + self["pad"] = pad if pad is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xref", None) + self["xref"] = xref if xref is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("yref", None) + self["yref"] = yref if yref is not None else _v # Process unknown kwargs # ---------------------- @@ -8249,11 +8215,11 @@ def aaxis(self): ------- plotly.graph_objs.layout.ternary.Aaxis """ - return self['aaxis'] + return self["aaxis"] @aaxis.setter def aaxis(self, val): - self['aaxis'] = val + self["aaxis"] = val # baxis # ----- @@ -8476,11 +8442,11 @@ def baxis(self): ------- plotly.graph_objs.layout.ternary.Baxis """ - return self['baxis'] + return self["baxis"] @baxis.setter def baxis(self, val): - self['baxis'] = val + self["baxis"] = val # bgcolor # ------- @@ -8535,11 +8501,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # caxis # ----- @@ -8762,11 +8728,11 @@ def caxis(self): ------- plotly.graph_objs.layout.ternary.Caxis """ - return self['caxis'] + return self["caxis"] @caxis.setter def caxis(self, val): - self['caxis'] = val + self["caxis"] = val # domain # ------ @@ -8799,11 +8765,11 @@ def domain(self): ------- plotly.graph_objs.layout.ternary.Domain """ - return self['domain'] + return self["domain"] @domain.setter def domain(self, val): - self['domain'] = val + self["domain"] = val # sum # --- @@ -8820,11 +8786,11 @@ def sum(self): ------- int|float """ - return self['sum'] + return self["sum"] @sum.setter def sum(self, val): - self['sum'] = val + self["sum"] = val # uirevision # ---------- @@ -8841,17 +8807,17 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -8927,7 +8893,7 @@ def __init__( ------- Ternary """ - super(Ternary, self).__init__('ternary') + super(Ternary, self).__init__("ternary") # Validate arg # ------------ @@ -8947,38 +8913,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (ternary as v_ternary) + from plotly.validators.layout import ternary as v_ternary # Initialize validators # --------------------- - self._validators['aaxis'] = v_ternary.AaxisValidator() - self._validators['baxis'] = v_ternary.BaxisValidator() - self._validators['bgcolor'] = v_ternary.BgcolorValidator() - self._validators['caxis'] = v_ternary.CaxisValidator() - self._validators['domain'] = v_ternary.DomainValidator() - self._validators['sum'] = v_ternary.SumValidator() - self._validators['uirevision'] = v_ternary.UirevisionValidator() + self._validators["aaxis"] = v_ternary.AaxisValidator() + self._validators["baxis"] = v_ternary.BaxisValidator() + self._validators["bgcolor"] = v_ternary.BgcolorValidator() + self._validators["caxis"] = v_ternary.CaxisValidator() + self._validators["domain"] = v_ternary.DomainValidator() + self._validators["sum"] = v_ternary.SumValidator() + self._validators["uirevision"] = v_ternary.UirevisionValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('aaxis', None) - self['aaxis'] = aaxis if aaxis is not None else _v - _v = arg.pop('baxis', None) - self['baxis'] = baxis if baxis is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('caxis', None) - self['caxis'] = caxis if caxis is not None else _v - _v = arg.pop('domain', None) - self['domain'] = domain if domain is not None else _v - _v = arg.pop('sum', None) - self['sum'] = sum if sum is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v + _v = arg.pop("aaxis", None) + self["aaxis"] = aaxis if aaxis is not None else _v + _v = arg.pop("baxis", None) + self["baxis"] = baxis if baxis is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("caxis", None) + self["caxis"] = caxis if caxis is not None else _v + _v = arg.pop("domain", None) + self["domain"] = domain if domain is not None else _v + _v = arg.pop("sum", None) + self["sum"] = sum if sum is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v # Process unknown kwargs # ---------------------- @@ -9146,11 +9112,11 @@ def data(self): ------- plotly.graph_objs.layout.template.Data """ - return self['data'] + return self["data"] @data.setter def data(self, val): - self['data'] = val + self["data"] = val # layout # ------ @@ -9169,17 +9135,17 @@ def layout(self): ------- plotly.graph_objs.layout.template.Layout """ - return self['layout'] + return self["layout"] @layout.setter def layout(self, val): - self['layout'] = val + self["layout"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -9234,7 +9200,7 @@ def __init__(self, arg=None, data=None, layout=None, **kwargs): ------- Template """ - super(Template, self).__init__('template') + super(Template, self).__init__("template") # Validate arg # ------------ @@ -9254,23 +9220,23 @@ def __init__(self, arg=None, data=None, layout=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (template as v_template) + from plotly.validators.layout import template as v_template # Initialize validators # --------------------- - self._validators['data'] = v_template.DataValidator() - self._validators['layout'] = v_template.LayoutValidator() + self._validators["data"] = v_template.DataValidator() + self._validators["layout"] = v_template.LayoutValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('data', None) - self['data'] = data if data is not None else _v - _v = arg.pop('layout', None) - self['layout'] = layout if layout is not None else _v + _v = arg.pop("data", None) + self["data"] = data if data is not None else _v + _v = arg.pop("layout", None) + self["layout"] = layout if layout is not None else _v # Process unknown kwargs # ---------------------- @@ -9302,11 +9268,11 @@ def active(self): ------- int|float """ - return self['active'] + return self["active"] @active.setter def active(self, val): - self['active'] = val + self["active"] = val # activebgcolor # ------------- @@ -9361,11 +9327,11 @@ def activebgcolor(self): ------- str """ - return self['activebgcolor'] + return self["activebgcolor"] @activebgcolor.setter def activebgcolor(self, val): - self['activebgcolor'] = val + self["activebgcolor"] = val # bgcolor # ------- @@ -9420,11 +9386,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -9479,11 +9445,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -9499,11 +9465,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # currentvalue # ------------ @@ -9540,11 +9506,11 @@ def currentvalue(self): ------- plotly.graph_objs.layout.slider.Currentvalue """ - return self['currentvalue'] + return self["currentvalue"] @currentvalue.setter def currentvalue(self, val): - self['currentvalue'] = val + self["currentvalue"] = val # font # ---- @@ -9585,11 +9551,11 @@ def font(self): ------- plotly.graph_objs.layout.slider.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # len # --- @@ -9607,11 +9573,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -9629,11 +9595,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # minorticklen # ------------ @@ -9649,11 +9615,11 @@ def minorticklen(self): ------- int|float """ - return self['minorticklen'] + return self["minorticklen"] @minorticklen.setter def minorticklen(self, val): - self['minorticklen'] = val + self["minorticklen"] = val # name # ---- @@ -9676,11 +9642,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # pad # --- @@ -9714,11 +9680,11 @@ def pad(self): ------- plotly.graph_objs.layout.slider.Pad """ - return self['pad'] + return self["pad"] @pad.setter def pad(self, val): - self['pad'] = val + self["pad"] = val # steps # ----- @@ -9789,11 +9755,11 @@ def steps(self): ------- tuple[plotly.graph_objs.layout.slider.Step] """ - return self['steps'] + return self["steps"] @steps.setter def steps(self, val): - self['steps'] = val + self["steps"] = val # stepdefaults # ------------ @@ -9816,11 +9782,11 @@ def stepdefaults(self): ------- plotly.graph_objs.layout.slider.Step """ - return self['stepdefaults'] + return self["stepdefaults"] @stepdefaults.setter def stepdefaults(self, val): - self['stepdefaults'] = val + self["stepdefaults"] = val # templateitemname # ---------------- @@ -9844,11 +9810,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # tickcolor # --------- @@ -9903,11 +9869,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # ticklen # ------- @@ -9923,11 +9889,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickwidth # --------- @@ -9943,11 +9909,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # transition # ---------- @@ -9972,11 +9938,11 @@ def transition(self): ------- plotly.graph_objs.layout.slider.Transition """ - return self['transition'] + return self["transition"] @transition.setter def transition(self, val): - self['transition'] = val + self["transition"] = val # visible # ------- @@ -9992,11 +9958,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -10012,11 +9978,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -10035,11 +10001,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # y # - @@ -10055,11 +10021,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -10078,17 +10044,17 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -10305,7 +10271,7 @@ def __init__( ------- Slider """ - super(Slider, self).__init__('sliders') + super(Slider, self).__init__("sliders") # Validate arg # ------------ @@ -10325,92 +10291,91 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (slider as v_slider) + from plotly.validators.layout import slider as v_slider # Initialize validators # --------------------- - self._validators['active'] = v_slider.ActiveValidator() - self._validators['activebgcolor'] = v_slider.ActivebgcolorValidator() - self._validators['bgcolor'] = v_slider.BgcolorValidator() - self._validators['bordercolor'] = v_slider.BordercolorValidator() - self._validators['borderwidth'] = v_slider.BorderwidthValidator() - self._validators['currentvalue'] = v_slider.CurrentvalueValidator() - self._validators['font'] = v_slider.FontValidator() - self._validators['len'] = v_slider.LenValidator() - self._validators['lenmode'] = v_slider.LenmodeValidator() - self._validators['minorticklen'] = v_slider.MinorticklenValidator() - self._validators['name'] = v_slider.NameValidator() - self._validators['pad'] = v_slider.PadValidator() - self._validators['steps'] = v_slider.StepsValidator() - self._validators['stepdefaults'] = v_slider.StepValidator() - self._validators['templateitemname' - ] = v_slider.TemplateitemnameValidator() - self._validators['tickcolor'] = v_slider.TickcolorValidator() - self._validators['ticklen'] = v_slider.TicklenValidator() - self._validators['tickwidth'] = v_slider.TickwidthValidator() - self._validators['transition'] = v_slider.TransitionValidator() - self._validators['visible'] = v_slider.VisibleValidator() - self._validators['x'] = v_slider.XValidator() - self._validators['xanchor'] = v_slider.XanchorValidator() - self._validators['y'] = v_slider.YValidator() - self._validators['yanchor'] = v_slider.YanchorValidator() + self._validators["active"] = v_slider.ActiveValidator() + self._validators["activebgcolor"] = v_slider.ActivebgcolorValidator() + self._validators["bgcolor"] = v_slider.BgcolorValidator() + self._validators["bordercolor"] = v_slider.BordercolorValidator() + self._validators["borderwidth"] = v_slider.BorderwidthValidator() + self._validators["currentvalue"] = v_slider.CurrentvalueValidator() + self._validators["font"] = v_slider.FontValidator() + self._validators["len"] = v_slider.LenValidator() + self._validators["lenmode"] = v_slider.LenmodeValidator() + self._validators["minorticklen"] = v_slider.MinorticklenValidator() + self._validators["name"] = v_slider.NameValidator() + self._validators["pad"] = v_slider.PadValidator() + self._validators["steps"] = v_slider.StepsValidator() + self._validators["stepdefaults"] = v_slider.StepValidator() + self._validators["templateitemname"] = v_slider.TemplateitemnameValidator() + self._validators["tickcolor"] = v_slider.TickcolorValidator() + self._validators["ticklen"] = v_slider.TicklenValidator() + self._validators["tickwidth"] = v_slider.TickwidthValidator() + self._validators["transition"] = v_slider.TransitionValidator() + self._validators["visible"] = v_slider.VisibleValidator() + self._validators["x"] = v_slider.XValidator() + self._validators["xanchor"] = v_slider.XanchorValidator() + self._validators["y"] = v_slider.YValidator() + self._validators["yanchor"] = v_slider.YanchorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('active', None) - self['active'] = active if active is not None else _v - _v = arg.pop('activebgcolor', None) - self['activebgcolor' - ] = activebgcolor if activebgcolor is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('currentvalue', None) - self['currentvalue'] = currentvalue if currentvalue is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('minorticklen', None) - self['minorticklen'] = minorticklen if minorticklen is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('pad', None) - self['pad'] = pad if pad is not None else _v - _v = arg.pop('steps', None) - self['steps'] = steps if steps is not None else _v - _v = arg.pop('stepdefaults', None) - self['stepdefaults'] = stepdefaults if stepdefaults is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('transition', None) - self['transition'] = transition if transition is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v + _v = arg.pop("active", None) + self["active"] = active if active is not None else _v + _v = arg.pop("activebgcolor", None) + self["activebgcolor"] = activebgcolor if activebgcolor is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("currentvalue", None) + self["currentvalue"] = currentvalue if currentvalue is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("minorticklen", None) + self["minorticklen"] = minorticklen if minorticklen is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("pad", None) + self["pad"] = pad if pad is not None else _v + _v = arg.pop("steps", None) + self["steps"] = steps if steps is not None else _v + _v = arg.pop("stepdefaults", None) + self["stepdefaults"] = stepdefaults if stepdefaults is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("transition", None) + self["transition"] = transition if transition is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v # Process unknown kwargs # ---------------------- @@ -10480,11 +10445,11 @@ def fillcolor(self): ------- str """ - return self['fillcolor'] + return self["fillcolor"] @fillcolor.setter def fillcolor(self, val): - self['fillcolor'] = val + self["fillcolor"] = val # layer # ----- @@ -10501,11 +10466,11 @@ def layer(self): ------- Any """ - return self['layer'] + return self["layer"] @layer.setter def layer(self, val): - self['layer'] = val + self["layer"] = val # line # ---- @@ -10534,11 +10499,11 @@ def line(self): ------- plotly.graph_objs.layout.shape.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # name # ---- @@ -10561,11 +10526,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -10581,11 +10546,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # path # ---- @@ -10620,11 +10585,11 @@ def path(self): ------- str """ - return self['path'] + return self["path"] @path.setter def path(self, val): - self['path'] = val + self["path"] = val # templateitemname # ---------------- @@ -10648,11 +10613,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # type # ---- @@ -10677,11 +10642,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # visible # ------- @@ -10697,11 +10662,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x0 # -- @@ -10717,11 +10682,11 @@ def x0(self): ------- Any """ - return self['x0'] + return self["x0"] @x0.setter def x0(self, val): - self['x0'] = val + self["x0"] = val # x1 # -- @@ -10737,11 +10702,11 @@ def x1(self): ------- Any """ - return self['x1'] + return self["x1"] @x1.setter def x1(self, val): - self['x1'] = val + self["x1"] = val # xanchor # ------- @@ -10760,11 +10725,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xref # ---- @@ -10790,11 +10755,11 @@ def xref(self): ------- Any """ - return self['xref'] + return self["xref"] @xref.setter def xref(self, val): - self['xref'] = val + self["xref"] = val # xsizemode # --------- @@ -10818,11 +10783,11 @@ def xsizemode(self): ------- Any """ - return self['xsizemode'] + return self["xsizemode"] @xsizemode.setter def xsizemode(self, val): - self['xsizemode'] = val + self["xsizemode"] = val # y0 # -- @@ -10838,11 +10803,11 @@ def y0(self): ------- Any """ - return self['y0'] + return self["y0"] @y0.setter def y0(self, val): - self['y0'] = val + self["y0"] = val # y1 # -- @@ -10858,11 +10823,11 @@ def y1(self): ------- Any """ - return self['y1'] + return self["y1"] @y1.setter def y1(self, val): - self['y1'] = val + self["y1"] = val # yanchor # ------- @@ -10881,11 +10846,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # yref # ---- @@ -10908,11 +10873,11 @@ def yref(self): ------- Any """ - return self['yref'] + return self["yref"] @yref.setter def yref(self, val): - self['yref'] = val + self["yref"] = val # ysizemode # --------- @@ -10936,17 +10901,17 @@ def ysizemode(self): ------- Any """ - return self['ysizemode'] + return self["ysizemode"] @ysizemode.setter def ysizemode(self, val): - self['ysizemode'] = val + self["ysizemode"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -11252,7 +11217,7 @@ def __init__( ------- Shape """ - super(Shape, self).__init__('shapes') + super(Shape, self).__init__("shapes") # Validate arg # ------------ @@ -11272,76 +11237,76 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (shape as v_shape) + from plotly.validators.layout import shape as v_shape # Initialize validators # --------------------- - self._validators['fillcolor'] = v_shape.FillcolorValidator() - self._validators['layer'] = v_shape.LayerValidator() - self._validators['line'] = v_shape.LineValidator() - self._validators['name'] = v_shape.NameValidator() - self._validators['opacity'] = v_shape.OpacityValidator() - self._validators['path'] = v_shape.PathValidator() - self._validators['templateitemname' - ] = v_shape.TemplateitemnameValidator() - self._validators['type'] = v_shape.TypeValidator() - self._validators['visible'] = v_shape.VisibleValidator() - self._validators['x0'] = v_shape.X0Validator() - self._validators['x1'] = v_shape.X1Validator() - self._validators['xanchor'] = v_shape.XanchorValidator() - self._validators['xref'] = v_shape.XrefValidator() - self._validators['xsizemode'] = v_shape.XsizemodeValidator() - self._validators['y0'] = v_shape.Y0Validator() - self._validators['y1'] = v_shape.Y1Validator() - self._validators['yanchor'] = v_shape.YanchorValidator() - self._validators['yref'] = v_shape.YrefValidator() - self._validators['ysizemode'] = v_shape.YsizemodeValidator() + self._validators["fillcolor"] = v_shape.FillcolorValidator() + self._validators["layer"] = v_shape.LayerValidator() + self._validators["line"] = v_shape.LineValidator() + self._validators["name"] = v_shape.NameValidator() + self._validators["opacity"] = v_shape.OpacityValidator() + self._validators["path"] = v_shape.PathValidator() + self._validators["templateitemname"] = v_shape.TemplateitemnameValidator() + self._validators["type"] = v_shape.TypeValidator() + self._validators["visible"] = v_shape.VisibleValidator() + self._validators["x0"] = v_shape.X0Validator() + self._validators["x1"] = v_shape.X1Validator() + self._validators["xanchor"] = v_shape.XanchorValidator() + self._validators["xref"] = v_shape.XrefValidator() + self._validators["xsizemode"] = v_shape.XsizemodeValidator() + self._validators["y0"] = v_shape.Y0Validator() + self._validators["y1"] = v_shape.Y1Validator() + self._validators["yanchor"] = v_shape.YanchorValidator() + self._validators["yref"] = v_shape.YrefValidator() + self._validators["ysizemode"] = v_shape.YsizemodeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fillcolor', None) - self['fillcolor'] = fillcolor if fillcolor is not None else _v - _v = arg.pop('layer', None) - self['layer'] = layer if layer is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('path', None) - self['path'] = path if path is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x0', None) - self['x0'] = x0 if x0 is not None else _v - _v = arg.pop('x1', None) - self['x1'] = x1 if x1 is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xref', None) - self['xref'] = xref if xref is not None else _v - _v = arg.pop('xsizemode', None) - self['xsizemode'] = xsizemode if xsizemode is not None else _v - _v = arg.pop('y0', None) - self['y0'] = y0 if y0 is not None else _v - _v = arg.pop('y1', None) - self['y1'] = y1 if y1 is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('yref', None) - self['yref'] = yref if yref is not None else _v - _v = arg.pop('ysizemode', None) - self['ysizemode'] = ysizemode if ysizemode is not None else _v + _v = arg.pop("fillcolor", None) + self["fillcolor"] = fillcolor if fillcolor is not None else _v + _v = arg.pop("layer", None) + self["layer"] = layer if layer is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("path", None) + self["path"] = path if path is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x0", None) + self["x0"] = x0 if x0 is not None else _v + _v = arg.pop("x1", None) + self["x1"] = x1 if x1 is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xref", None) + self["xref"] = xref if xref is not None else _v + _v = arg.pop("xsizemode", None) + self["xsizemode"] = xsizemode if xsizemode is not None else _v + _v = arg.pop("y0", None) + self["y0"] = y0 if y0 is not None else _v + _v = arg.pop("y1", None) + self["y1"] = y1 if y1 is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("yref", None) + self["yref"] = yref if yref is not None else _v + _v = arg.pop("ysizemode", None) + self["ysizemode"] = ysizemode if ysizemode is not None else _v # Process unknown kwargs # ---------------------- @@ -11553,11 +11518,11 @@ def annotations(self): ------- tuple[plotly.graph_objs.layout.scene.Annotation] """ - return self['annotations'] + return self["annotations"] @annotations.setter def annotations(self, val): - self['annotations'] = val + self["annotations"] = val # annotationdefaults # ------------------ @@ -11581,11 +11546,11 @@ def annotationdefaults(self): ------- plotly.graph_objs.layout.scene.Annotation """ - return self['annotationdefaults'] + return self["annotationdefaults"] @annotationdefaults.setter def annotationdefaults(self, val): - self['annotationdefaults'] = val + self["annotationdefaults"] = val # aspectmode # ---------- @@ -11609,11 +11574,11 @@ def aspectmode(self): ------- Any """ - return self['aspectmode'] + return self["aspectmode"] @aspectmode.setter def aspectmode(self, val): - self['aspectmode'] = val + self["aspectmode"] = val # aspectratio # ----------- @@ -11640,11 +11605,11 @@ def aspectratio(self): ------- plotly.graph_objs.layout.scene.Aspectratio """ - return self['aspectratio'] + return self["aspectratio"] @aspectratio.setter def aspectratio(self, val): - self['aspectratio'] = val + self["aspectratio"] = val # bgcolor # ------- @@ -11697,11 +11662,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # camera # ------ @@ -11740,11 +11705,11 @@ def camera(self): ------- plotly.graph_objs.layout.scene.Camera """ - return self['camera'] + return self["camera"] @camera.setter def camera(self, val): - self['camera'] = val + self["camera"] = val # domain # ------ @@ -11777,11 +11742,11 @@ def domain(self): ------- plotly.graph_objs.layout.scene.Domain """ - return self['domain'] + return self["domain"] @domain.setter def domain(self, val): - self['domain'] = val + self["domain"] = val # dragmode # -------- @@ -11798,11 +11763,11 @@ def dragmode(self): ------- Any """ - return self['dragmode'] + return self["dragmode"] @dragmode.setter def dragmode(self, val): - self['dragmode'] = val + self["dragmode"] = val # hovermode # --------- @@ -11819,11 +11784,11 @@ def hovermode(self): ------- Any """ - return self['hovermode'] + return self["hovermode"] @hovermode.setter def hovermode(self, val): - self['hovermode'] = val + self["hovermode"] = val # uirevision # ---------- @@ -11839,11 +11804,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # xaxis # ----- @@ -12149,11 +12114,11 @@ def xaxis(self): ------- plotly.graph_objs.layout.scene.XAxis """ - return self['xaxis'] + return self["xaxis"] @xaxis.setter def xaxis(self, val): - self['xaxis'] = val + self["xaxis"] = val # yaxis # ----- @@ -12459,11 +12424,11 @@ def yaxis(self): ------- plotly.graph_objs.layout.scene.YAxis """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # zaxis # ----- @@ -12769,17 +12734,17 @@ def zaxis(self): ------- plotly.graph_objs.layout.scene.ZAxis """ - return self['zaxis'] + return self["zaxis"] @zaxis.setter def zaxis(self, val): - self['zaxis'] = val + self["zaxis"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -12913,7 +12878,7 @@ def __init__( ------- Scene """ - super(Scene, self).__init__('scene') + super(Scene, self).__init__("scene") # Validate arg # ------------ @@ -12933,57 +12898,58 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (scene as v_scene) + from plotly.validators.layout import scene as v_scene # Initialize validators # --------------------- - self._validators['annotations'] = v_scene.AnnotationsValidator() - self._validators['annotationdefaults'] = v_scene.AnnotationValidator() - self._validators['aspectmode'] = v_scene.AspectmodeValidator() - self._validators['aspectratio'] = v_scene.AspectratioValidator() - self._validators['bgcolor'] = v_scene.BgcolorValidator() - self._validators['camera'] = v_scene.CameraValidator() - self._validators['domain'] = v_scene.DomainValidator() - self._validators['dragmode'] = v_scene.DragmodeValidator() - self._validators['hovermode'] = v_scene.HovermodeValidator() - self._validators['uirevision'] = v_scene.UirevisionValidator() - self._validators['xaxis'] = v_scene.XAxisValidator() - self._validators['yaxis'] = v_scene.YAxisValidator() - self._validators['zaxis'] = v_scene.ZAxisValidator() + self._validators["annotations"] = v_scene.AnnotationsValidator() + self._validators["annotationdefaults"] = v_scene.AnnotationValidator() + self._validators["aspectmode"] = v_scene.AspectmodeValidator() + self._validators["aspectratio"] = v_scene.AspectratioValidator() + self._validators["bgcolor"] = v_scene.BgcolorValidator() + self._validators["camera"] = v_scene.CameraValidator() + self._validators["domain"] = v_scene.DomainValidator() + self._validators["dragmode"] = v_scene.DragmodeValidator() + self._validators["hovermode"] = v_scene.HovermodeValidator() + self._validators["uirevision"] = v_scene.UirevisionValidator() + self._validators["xaxis"] = v_scene.XAxisValidator() + self._validators["yaxis"] = v_scene.YAxisValidator() + self._validators["zaxis"] = v_scene.ZAxisValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('annotations', None) - self['annotations'] = annotations if annotations is not None else _v - _v = arg.pop('annotationdefaults', None) - self['annotationdefaults' - ] = annotationdefaults if annotationdefaults is not None else _v - _v = arg.pop('aspectmode', None) - self['aspectmode'] = aspectmode if aspectmode is not None else _v - _v = arg.pop('aspectratio', None) - self['aspectratio'] = aspectratio if aspectratio is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('camera', None) - self['camera'] = camera if camera is not None else _v - _v = arg.pop('domain', None) - self['domain'] = domain if domain is not None else _v - _v = arg.pop('dragmode', None) - self['dragmode'] = dragmode if dragmode is not None else _v - _v = arg.pop('hovermode', None) - self['hovermode'] = hovermode if hovermode is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('xaxis', None) - self['xaxis'] = xaxis if xaxis is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v - _v = arg.pop('zaxis', None) - self['zaxis'] = zaxis if zaxis is not None else _v + _v = arg.pop("annotations", None) + self["annotations"] = annotations if annotations is not None else _v + _v = arg.pop("annotationdefaults", None) + self["annotationdefaults"] = ( + annotationdefaults if annotationdefaults is not None else _v + ) + _v = arg.pop("aspectmode", None) + self["aspectmode"] = aspectmode if aspectmode is not None else _v + _v = arg.pop("aspectratio", None) + self["aspectratio"] = aspectratio if aspectratio is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("camera", None) + self["camera"] = camera if camera is not None else _v + _v = arg.pop("domain", None) + self["domain"] = domain if domain is not None else _v + _v = arg.pop("dragmode", None) + self["dragmode"] = dragmode if dragmode is not None else _v + _v = arg.pop("hovermode", None) + self["hovermode"] = hovermode if hovermode is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("xaxis", None) + self["xaxis"] = xaxis if xaxis is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v + _v = arg.pop("zaxis", None) + self["zaxis"] = zaxis if zaxis is not None else _v # Process unknown kwargs # ---------------------- @@ -13020,11 +12986,11 @@ def domain(self): ------- list """ - return self['domain'] + return self["domain"] @domain.setter def domain(self, val): - self['domain'] = val + self["domain"] = val # endpadding # ---------- @@ -13041,11 +13007,11 @@ def endpadding(self): ------- int|float """ - return self['endpadding'] + return self["endpadding"] @endpadding.setter def endpadding(self, val): - self['endpadding'] = val + self["endpadding"] = val # orientation # ----------- @@ -13063,11 +13029,11 @@ def orientation(self): ------- int|float """ - return self['orientation'] + return self["orientation"] @orientation.setter def orientation(self, val): - self['orientation'] = val + self["orientation"] = val # range # ----- @@ -13089,11 +13055,11 @@ def range(self): ------- list """ - return self['range'] + return self["range"] @range.setter def range(self, val): - self['range'] = val + self["range"] = val # showline # -------- @@ -13111,11 +13077,11 @@ def showline(self): ------- bool """ - return self['showline'] + return self["showline"] @showline.setter def showline(self, val): - self['showline'] = val + self["showline"] = val # showticklabels # -------------- @@ -13133,11 +13099,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # tickcolor # --------- @@ -13193,11 +13159,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # ticklen # ------- @@ -13215,11 +13181,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickorientation # --------------- @@ -13238,11 +13204,11 @@ def tickorientation(self): ------- Any """ - return self['tickorientation'] + return self["tickorientation"] @tickorientation.setter def tickorientation(self, val): - self['tickorientation'] = val + self["tickorientation"] = val # ticksuffix # ---------- @@ -13261,11 +13227,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # visible # ------- @@ -13282,17 +13248,17 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -13414,7 +13380,7 @@ def __init__( ------- RadialAxis """ - super(RadialAxis, self).__init__('radialaxis') + super(RadialAxis, self).__init__("radialaxis") # Validate arg # ------------ @@ -13434,54 +13400,50 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (radialaxis as v_radialaxis) + from plotly.validators.layout import radialaxis as v_radialaxis # Initialize validators # --------------------- - self._validators['domain'] = v_radialaxis.DomainValidator() - self._validators['endpadding'] = v_radialaxis.EndpaddingValidator() - self._validators['orientation'] = v_radialaxis.OrientationValidator() - self._validators['range'] = v_radialaxis.RangeValidator() - self._validators['showline'] = v_radialaxis.ShowlineValidator() - self._validators['showticklabels' - ] = v_radialaxis.ShowticklabelsValidator() - self._validators['tickcolor'] = v_radialaxis.TickcolorValidator() - self._validators['ticklen'] = v_radialaxis.TicklenValidator() - self._validators['tickorientation' - ] = v_radialaxis.TickorientationValidator() - self._validators['ticksuffix'] = v_radialaxis.TicksuffixValidator() - self._validators['visible'] = v_radialaxis.VisibleValidator() + self._validators["domain"] = v_radialaxis.DomainValidator() + self._validators["endpadding"] = v_radialaxis.EndpaddingValidator() + self._validators["orientation"] = v_radialaxis.OrientationValidator() + self._validators["range"] = v_radialaxis.RangeValidator() + self._validators["showline"] = v_radialaxis.ShowlineValidator() + self._validators["showticklabels"] = v_radialaxis.ShowticklabelsValidator() + self._validators["tickcolor"] = v_radialaxis.TickcolorValidator() + self._validators["ticklen"] = v_radialaxis.TicklenValidator() + self._validators["tickorientation"] = v_radialaxis.TickorientationValidator() + self._validators["ticksuffix"] = v_radialaxis.TicksuffixValidator() + self._validators["visible"] = v_radialaxis.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('domain', None) - self['domain'] = domain if domain is not None else _v - _v = arg.pop('endpadding', None) - self['endpadding'] = endpadding if endpadding is not None else _v - _v = arg.pop('orientation', None) - self['orientation'] = orientation if orientation is not None else _v - _v = arg.pop('range', None) - self['range'] = range if range is not None else _v - _v = arg.pop('showline', None) - self['showline'] = showline if showline is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickorientation', None) - self['tickorientation' - ] = tickorientation if tickorientation is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("domain", None) + self["domain"] = domain if domain is not None else _v + _v = arg.pop("endpadding", None) + self["endpadding"] = endpadding if endpadding is not None else _v + _v = arg.pop("orientation", None) + self["orientation"] = orientation if orientation is not None else _v + _v = arg.pop("range", None) + self["range"] = range if range is not None else _v + _v = arg.pop("showline", None) + self["showline"] = showline if showline is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickorientation", None) + self["tickorientation"] = tickorientation if tickorientation is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- @@ -13762,11 +13724,11 @@ def angularaxis(self): ------- plotly.graph_objs.layout.polar.AngularAxis """ - return self['angularaxis'] + return self["angularaxis"] @angularaxis.setter def angularaxis(self, val): - self['angularaxis'] = val + self["angularaxis"] = val # bargap # ------ @@ -13784,11 +13746,11 @@ def bargap(self): ------- int|float """ - return self['bargap'] + return self["bargap"] @bargap.setter def bargap(self, val): - self['bargap'] = val + self["bargap"] = val # barmode # ------- @@ -13809,11 +13771,11 @@ def barmode(self): ------- Any """ - return self['barmode'] + return self["barmode"] @barmode.setter def barmode(self, val): - self['barmode'] = val + self["barmode"] = val # bgcolor # ------- @@ -13868,11 +13830,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # domain # ------ @@ -13905,11 +13867,11 @@ def domain(self): ------- plotly.graph_objs.layout.polar.Domain """ - return self['domain'] + return self["domain"] @domain.setter def domain(self, val): - self['domain'] = val + self["domain"] = val # gridshape # --------- @@ -13931,11 +13893,11 @@ def gridshape(self): ------- Any """ - return self['gridshape'] + return self["gridshape"] @gridshape.setter def gridshape(self, val): - self['gridshape'] = val + self["gridshape"] = val # hole # ---- @@ -13952,11 +13914,11 @@ def hole(self): ------- int|float """ - return self['hole'] + return self["hole"] @hole.setter def hole(self, val): - self['hole'] = val + self["hole"] = val # radialaxis # ---------- @@ -14252,11 +14214,11 @@ def radialaxis(self): ------- plotly.graph_objs.layout.polar.RadialAxis """ - return self['radialaxis'] + return self["radialaxis"] @radialaxis.setter def radialaxis(self, val): - self['radialaxis'] = val + self["radialaxis"] = val # sector # ------ @@ -14280,11 +14242,11 @@ def sector(self): ------- list """ - return self['sector'] + return self["sector"] @sector.setter def sector(self, val): - self['sector'] = val + self["sector"] = val # uirevision # ---------- @@ -14301,17 +14263,17 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -14432,7 +14394,7 @@ def __init__( ------- Polar """ - super(Polar, self).__init__('polar') + super(Polar, self).__init__("polar") # Validate arg # ------------ @@ -14452,47 +14414,47 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (polar as v_polar) + from plotly.validators.layout import polar as v_polar # Initialize validators # --------------------- - self._validators['angularaxis'] = v_polar.AngularAxisValidator() - self._validators['bargap'] = v_polar.BargapValidator() - self._validators['barmode'] = v_polar.BarmodeValidator() - self._validators['bgcolor'] = v_polar.BgcolorValidator() - self._validators['domain'] = v_polar.DomainValidator() - self._validators['gridshape'] = v_polar.GridshapeValidator() - self._validators['hole'] = v_polar.HoleValidator() - self._validators['radialaxis'] = v_polar.RadialAxisValidator() - self._validators['sector'] = v_polar.SectorValidator() - self._validators['uirevision'] = v_polar.UirevisionValidator() + self._validators["angularaxis"] = v_polar.AngularAxisValidator() + self._validators["bargap"] = v_polar.BargapValidator() + self._validators["barmode"] = v_polar.BarmodeValidator() + self._validators["bgcolor"] = v_polar.BgcolorValidator() + self._validators["domain"] = v_polar.DomainValidator() + self._validators["gridshape"] = v_polar.GridshapeValidator() + self._validators["hole"] = v_polar.HoleValidator() + self._validators["radialaxis"] = v_polar.RadialAxisValidator() + self._validators["sector"] = v_polar.SectorValidator() + self._validators["uirevision"] = v_polar.UirevisionValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('angularaxis', None) - self['angularaxis'] = angularaxis if angularaxis is not None else _v - _v = arg.pop('bargap', None) - self['bargap'] = bargap if bargap is not None else _v - _v = arg.pop('barmode', None) - self['barmode'] = barmode if barmode is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('domain', None) - self['domain'] = domain if domain is not None else _v - _v = arg.pop('gridshape', None) - self['gridshape'] = gridshape if gridshape is not None else _v - _v = arg.pop('hole', None) - self['hole'] = hole if hole is not None else _v - _v = arg.pop('radialaxis', None) - self['radialaxis'] = radialaxis if radialaxis is not None else _v - _v = arg.pop('sector', None) - self['sector'] = sector if sector is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v + _v = arg.pop("angularaxis", None) + self["angularaxis"] = angularaxis if angularaxis is not None else _v + _v = arg.pop("bargap", None) + self["bargap"] = bargap if bargap is not None else _v + _v = arg.pop("barmode", None) + self["barmode"] = barmode if barmode is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("domain", None) + self["domain"] = domain if domain is not None else _v + _v = arg.pop("gridshape", None) + self["gridshape"] = gridshape if gridshape is not None else _v + _v = arg.pop("hole", None) + self["hole"] = hole if hole is not None else _v + _v = arg.pop("radialaxis", None) + self["radialaxis"] = radialaxis if radialaxis is not None else _v + _v = arg.pop("sector", None) + self["sector"] = sector if sector is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v # Process unknown kwargs # ---------------------- @@ -14563,11 +14525,11 @@ def activecolor(self): ------- str """ - return self['activecolor'] + return self["activecolor"] @activecolor.setter def activecolor(self, val): - self['activecolor'] = val + self["activecolor"] = val # bgcolor # ------- @@ -14622,11 +14584,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # color # ----- @@ -14681,11 +14643,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # orientation # ----------- @@ -14702,11 +14664,11 @@ def orientation(self): ------- Any """ - return self['orientation'] + return self["orientation"] @orientation.setter def orientation(self, val): - self['orientation'] = val + self["orientation"] = val # uirevision # ---------- @@ -14724,17 +14686,17 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -14794,7 +14756,7 @@ def __init__( ------- Modebar """ - super(Modebar, self).__init__('modebar') + super(Modebar, self).__init__("modebar") # Validate arg # ------------ @@ -14814,32 +14776,32 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (modebar as v_modebar) + from plotly.validators.layout import modebar as v_modebar # Initialize validators # --------------------- - self._validators['activecolor'] = v_modebar.ActivecolorValidator() - self._validators['bgcolor'] = v_modebar.BgcolorValidator() - self._validators['color'] = v_modebar.ColorValidator() - self._validators['orientation'] = v_modebar.OrientationValidator() - self._validators['uirevision'] = v_modebar.UirevisionValidator() + self._validators["activecolor"] = v_modebar.ActivecolorValidator() + self._validators["bgcolor"] = v_modebar.BgcolorValidator() + self._validators["color"] = v_modebar.ColorValidator() + self._validators["orientation"] = v_modebar.OrientationValidator() + self._validators["uirevision"] = v_modebar.UirevisionValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('activecolor', None) - self['activecolor'] = activecolor if activecolor is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('orientation', None) - self['orientation'] = orientation if orientation is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v + _v = arg.pop("activecolor", None) + self["activecolor"] = activecolor if activecolor is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("orientation", None) + self["orientation"] = orientation if orientation is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v # Process unknown kwargs # ---------------------- @@ -14868,11 +14830,11 @@ def autoexpand(self): ------- bool """ - return self['autoexpand'] + return self["autoexpand"] @autoexpand.setter def autoexpand(self, val): - self['autoexpand'] = val + self["autoexpand"] = val # b # - @@ -14888,11 +14850,11 @@ def b(self): ------- int|float """ - return self['b'] + return self["b"] @b.setter def b(self, val): - self['b'] = val + self["b"] = val # l # - @@ -14908,11 +14870,11 @@ def l(self): ------- int|float """ - return self['l'] + return self["l"] @l.setter def l(self, val): - self['l'] = val + self["l"] = val # pad # --- @@ -14929,11 +14891,11 @@ def pad(self): ------- int|float """ - return self['pad'] + return self["pad"] @pad.setter def pad(self, val): - self['pad'] = val + self["pad"] = val # r # - @@ -14949,11 +14911,11 @@ def r(self): ------- int|float """ - return self['r'] + return self["r"] @r.setter def r(self, val): - self['r'] = val + self["r"] = val # t # - @@ -14969,17 +14931,17 @@ def t(self): ------- int|float """ - return self['t'] + return self["t"] @t.setter def t(self, val): - self['t'] = val + self["t"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -15038,7 +15000,7 @@ def __init__( ------- Margin """ - super(Margin, self).__init__('margin') + super(Margin, self).__init__("margin") # Validate arg # ------------ @@ -15058,35 +15020,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (margin as v_margin) + from plotly.validators.layout import margin as v_margin # Initialize validators # --------------------- - self._validators['autoexpand'] = v_margin.AutoexpandValidator() - self._validators['b'] = v_margin.BValidator() - self._validators['l'] = v_margin.LValidator() - self._validators['pad'] = v_margin.PadValidator() - self._validators['r'] = v_margin.RValidator() - self._validators['t'] = v_margin.TValidator() + self._validators["autoexpand"] = v_margin.AutoexpandValidator() + self._validators["b"] = v_margin.BValidator() + self._validators["l"] = v_margin.LValidator() + self._validators["pad"] = v_margin.PadValidator() + self._validators["r"] = v_margin.RValidator() + self._validators["t"] = v_margin.TValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autoexpand', None) - self['autoexpand'] = autoexpand if autoexpand is not None else _v - _v = arg.pop('b', None) - self['b'] = b if b is not None else _v - _v = arg.pop('l', None) - self['l'] = l if l is not None else _v - _v = arg.pop('pad', None) - self['pad'] = pad if pad is not None else _v - _v = arg.pop('r', None) - self['r'] = r if r is not None else _v - _v = arg.pop('t', None) - self['t'] = t if t is not None else _v + _v = arg.pop("autoexpand", None) + self["autoexpand"] = autoexpand if autoexpand is not None else _v + _v = arg.pop("b", None) + self["b"] = b if b is not None else _v + _v = arg.pop("l", None) + self["l"] = l if l is not None else _v + _v = arg.pop("pad", None) + self["pad"] = pad if pad is not None else _v + _v = arg.pop("r", None) + self["r"] = r if r is not None else _v + _v = arg.pop("t", None) + self["t"] = t if t is not None else _v # Process unknown kwargs # ---------------------- @@ -15119,11 +15081,11 @@ def accesstoken(self): ------- str """ - return self['accesstoken'] + return self["accesstoken"] @accesstoken.setter def accesstoken(self, val): - self['accesstoken'] = val + self["accesstoken"] = val # bearing # ------- @@ -15140,11 +15102,11 @@ def bearing(self): ------- int|float """ - return self['bearing'] + return self["bearing"] @bearing.setter def bearing(self, val): - self['bearing'] = val + self["bearing"] = val # center # ------ @@ -15170,11 +15132,11 @@ def center(self): ------- plotly.graph_objs.layout.mapbox.Center """ - return self['center'] + return self["center"] @center.setter def center(self, val): - self['center'] = val + self["center"] = val # domain # ------ @@ -15207,11 +15169,11 @@ def domain(self): ------- plotly.graph_objs.layout.mapbox.Domain """ - return self['domain'] + return self["domain"] @domain.setter def domain(self, val): - self['domain'] = val + self["domain"] = val # layers # ------ @@ -15321,11 +15283,11 @@ def layers(self): ------- tuple[plotly.graph_objs.layout.mapbox.Layer] """ - return self['layers'] + return self["layers"] @layers.setter def layers(self, val): - self['layers'] = val + self["layers"] = val # layerdefaults # ------------- @@ -15348,11 +15310,11 @@ def layerdefaults(self): ------- plotly.graph_objs.layout.mapbox.Layer """ - return self['layerdefaults'] + return self["layerdefaults"] @layerdefaults.setter def layerdefaults(self, val): - self['layerdefaults'] = val + self["layerdefaults"] = val # pitch # ----- @@ -15369,11 +15331,11 @@ def pitch(self): ------- int|float """ - return self['pitch'] + return self["pitch"] @pitch.setter def pitch(self, val): - self['pitch'] = val + self["pitch"] = val # style # ----- @@ -15390,11 +15352,11 @@ def style(self): ------- Any """ - return self['style'] + return self["style"] @style.setter def style(self, val): - self['style'] = val + self["style"] = val # uirevision # ---------- @@ -15411,11 +15373,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # zoom # ---- @@ -15431,17 +15393,17 @@ def zoom(self): ------- int|float """ - return self['zoom'] + return self["zoom"] @zoom.setter def zoom(self, val): - self['zoom'] = val + self["zoom"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -15548,7 +15510,7 @@ def __init__( ------- Mapbox """ - super(Mapbox, self).__init__('mapbox') + super(Mapbox, self).__init__("mapbox") # Validate arg # ------------ @@ -15568,48 +15530,47 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (mapbox as v_mapbox) + from plotly.validators.layout import mapbox as v_mapbox # Initialize validators # --------------------- - self._validators['accesstoken'] = v_mapbox.AccesstokenValidator() - self._validators['bearing'] = v_mapbox.BearingValidator() - self._validators['center'] = v_mapbox.CenterValidator() - self._validators['domain'] = v_mapbox.DomainValidator() - self._validators['layers'] = v_mapbox.LayersValidator() - self._validators['layerdefaults'] = v_mapbox.LayerValidator() - self._validators['pitch'] = v_mapbox.PitchValidator() - self._validators['style'] = v_mapbox.StyleValidator() - self._validators['uirevision'] = v_mapbox.UirevisionValidator() - self._validators['zoom'] = v_mapbox.ZoomValidator() + self._validators["accesstoken"] = v_mapbox.AccesstokenValidator() + self._validators["bearing"] = v_mapbox.BearingValidator() + self._validators["center"] = v_mapbox.CenterValidator() + self._validators["domain"] = v_mapbox.DomainValidator() + self._validators["layers"] = v_mapbox.LayersValidator() + self._validators["layerdefaults"] = v_mapbox.LayerValidator() + self._validators["pitch"] = v_mapbox.PitchValidator() + self._validators["style"] = v_mapbox.StyleValidator() + self._validators["uirevision"] = v_mapbox.UirevisionValidator() + self._validators["zoom"] = v_mapbox.ZoomValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('accesstoken', None) - self['accesstoken'] = accesstoken if accesstoken is not None else _v - _v = arg.pop('bearing', None) - self['bearing'] = bearing if bearing is not None else _v - _v = arg.pop('center', None) - self['center'] = center if center is not None else _v - _v = arg.pop('domain', None) - self['domain'] = domain if domain is not None else _v - _v = arg.pop('layers', None) - self['layers'] = layers if layers is not None else _v - _v = arg.pop('layerdefaults', None) - self['layerdefaults' - ] = layerdefaults if layerdefaults is not None else _v - _v = arg.pop('pitch', None) - self['pitch'] = pitch if pitch is not None else _v - _v = arg.pop('style', None) - self['style'] = style if style is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('zoom', None) - self['zoom'] = zoom if zoom is not None else _v + _v = arg.pop("accesstoken", None) + self["accesstoken"] = accesstoken if accesstoken is not None else _v + _v = arg.pop("bearing", None) + self["bearing"] = bearing if bearing is not None else _v + _v = arg.pop("center", None) + self["center"] = center if center is not None else _v + _v = arg.pop("domain", None) + self["domain"] = domain if domain is not None else _v + _v = arg.pop("layers", None) + self["layers"] = layers if layers is not None else _v + _v = arg.pop("layerdefaults", None) + self["layerdefaults"] = layerdefaults if layerdefaults is not None else _v + _v = arg.pop("pitch", None) + self["pitch"] = pitch if pitch is not None else _v + _v = arg.pop("style", None) + self["style"] = style if style is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("zoom", None) + self["zoom"] = zoom if zoom is not None else _v # Process unknown kwargs # ---------------------- @@ -15679,11 +15640,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -15738,11 +15699,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -15758,11 +15719,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # font # ---- @@ -15803,11 +15764,11 @@ def font(self): ------- plotly.graph_objs.layout.legend.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # itemclick # --------- @@ -15827,11 +15788,11 @@ def itemclick(self): ------- Any """ - return self['itemclick'] + return self["itemclick"] @itemclick.setter def itemclick(self, val): - self['itemclick'] = val + self["itemclick"] = val # itemdoubleclick # --------------- @@ -15851,11 +15812,11 @@ def itemdoubleclick(self): ------- Any """ - return self['itemdoubleclick'] + return self["itemdoubleclick"] @itemdoubleclick.setter def itemdoubleclick(self, val): - self['itemdoubleclick'] = val + self["itemdoubleclick"] = val # itemsizing # ---------- @@ -15874,11 +15835,11 @@ def itemsizing(self): ------- Any """ - return self['itemsizing'] + return self["itemsizing"] @itemsizing.setter def itemsizing(self, val): - self['itemsizing'] = val + self["itemsizing"] = val # orientation # ----------- @@ -15895,11 +15856,11 @@ def orientation(self): ------- Any """ - return self['orientation'] + return self["orientation"] @orientation.setter def orientation(self, val): - self['orientation'] = val + self["orientation"] = val # tracegroupgap # ------------- @@ -15916,11 +15877,11 @@ def tracegroupgap(self): ------- int|float """ - return self['tracegroupgap'] + return self["tracegroupgap"] @tracegroupgap.setter def tracegroupgap(self, val): - self['tracegroupgap'] = val + self["tracegroupgap"] = val # traceorder # ---------- @@ -15945,11 +15906,11 @@ def traceorder(self): ------- Any """ - return self['traceorder'] + return self["traceorder"] @traceorder.setter def traceorder(self, val): - self['traceorder'] = val + self["traceorder"] = val # uirevision # ---------- @@ -15965,11 +15926,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # valign # ------ @@ -15987,11 +15948,11 @@ def valign(self): ------- Any """ - return self['valign'] + return self["valign"] @valign.setter def valign(self, val): - self['valign'] = val + self["valign"] = val # x # - @@ -16007,11 +15968,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -16030,11 +15991,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # y # - @@ -16050,11 +16011,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -16073,17 +16034,17 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -16246,7 +16207,7 @@ def __init__( ------- Legend """ - super(Legend, self).__init__('legend') + super(Legend, self).__init__("legend") # Validate arg # ------------ @@ -16266,68 +16227,65 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (legend as v_legend) + from plotly.validators.layout import legend as v_legend # Initialize validators # --------------------- - self._validators['bgcolor'] = v_legend.BgcolorValidator() - self._validators['bordercolor'] = v_legend.BordercolorValidator() - self._validators['borderwidth'] = v_legend.BorderwidthValidator() - self._validators['font'] = v_legend.FontValidator() - self._validators['itemclick'] = v_legend.ItemclickValidator() - self._validators['itemdoubleclick' - ] = v_legend.ItemdoubleclickValidator() - self._validators['itemsizing'] = v_legend.ItemsizingValidator() - self._validators['orientation'] = v_legend.OrientationValidator() - self._validators['tracegroupgap'] = v_legend.TracegroupgapValidator() - self._validators['traceorder'] = v_legend.TraceorderValidator() - self._validators['uirevision'] = v_legend.UirevisionValidator() - self._validators['valign'] = v_legend.ValignValidator() - self._validators['x'] = v_legend.XValidator() - self._validators['xanchor'] = v_legend.XanchorValidator() - self._validators['y'] = v_legend.YValidator() - self._validators['yanchor'] = v_legend.YanchorValidator() + self._validators["bgcolor"] = v_legend.BgcolorValidator() + self._validators["bordercolor"] = v_legend.BordercolorValidator() + self._validators["borderwidth"] = v_legend.BorderwidthValidator() + self._validators["font"] = v_legend.FontValidator() + self._validators["itemclick"] = v_legend.ItemclickValidator() + self._validators["itemdoubleclick"] = v_legend.ItemdoubleclickValidator() + self._validators["itemsizing"] = v_legend.ItemsizingValidator() + self._validators["orientation"] = v_legend.OrientationValidator() + self._validators["tracegroupgap"] = v_legend.TracegroupgapValidator() + self._validators["traceorder"] = v_legend.TraceorderValidator() + self._validators["uirevision"] = v_legend.UirevisionValidator() + self._validators["valign"] = v_legend.ValignValidator() + self._validators["x"] = v_legend.XValidator() + self._validators["xanchor"] = v_legend.XanchorValidator() + self._validators["y"] = v_legend.YValidator() + self._validators["yanchor"] = v_legend.YanchorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('itemclick', None) - self['itemclick'] = itemclick if itemclick is not None else _v - _v = arg.pop('itemdoubleclick', None) - self['itemdoubleclick' - ] = itemdoubleclick if itemdoubleclick is not None else _v - _v = arg.pop('itemsizing', None) - self['itemsizing'] = itemsizing if itemsizing is not None else _v - _v = arg.pop('orientation', None) - self['orientation'] = orientation if orientation is not None else _v - _v = arg.pop('tracegroupgap', None) - self['tracegroupgap' - ] = tracegroupgap if tracegroupgap is not None else _v - _v = arg.pop('traceorder', None) - self['traceorder'] = traceorder if traceorder is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('valign', None) - self['valign'] = valign if valign is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("itemclick", None) + self["itemclick"] = itemclick if itemclick is not None else _v + _v = arg.pop("itemdoubleclick", None) + self["itemdoubleclick"] = itemdoubleclick if itemdoubleclick is not None else _v + _v = arg.pop("itemsizing", None) + self["itemsizing"] = itemsizing if itemsizing is not None else _v + _v = arg.pop("orientation", None) + self["orientation"] = orientation if orientation is not None else _v + _v = arg.pop("tracegroupgap", None) + self["tracegroupgap"] = tracegroupgap if tracegroupgap is not None else _v + _v = arg.pop("traceorder", None) + self["traceorder"] = traceorder if traceorder is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("valign", None) + self["valign"] = valign if valign is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v # Process unknown kwargs # ---------------------- @@ -16361,11 +16319,11 @@ def layer(self): ------- Any """ - return self['layer'] + return self["layer"] @layer.setter def layer(self, val): - self['layer'] = val + self["layer"] = val # name # ---- @@ -16388,11 +16346,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -16408,11 +16366,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # sizex # ----- @@ -16430,11 +16388,11 @@ def sizex(self): ------- int|float """ - return self['sizex'] + return self["sizex"] @sizex.setter def sizex(self, val): - self['sizex'] = val + self["sizex"] = val # sizey # ----- @@ -16452,11 +16410,11 @@ def sizey(self): ------- int|float """ - return self['sizey'] + return self["sizey"] @sizey.setter def sizey(self, val): - self['sizey'] = val + self["sizey"] = val # sizing # ------ @@ -16473,11 +16431,11 @@ def sizing(self): ------- Any """ - return self['sizing'] + return self["sizing"] @sizing.setter def sizing(self, val): - self['sizing'] = val + self["sizing"] = val # source # ------ @@ -16501,11 +16459,11 @@ def source(self): ------- str """ - return self['source'] + return self["source"] @source.setter def source(self, val): - self['source'] = val + self["source"] = val # templateitemname # ---------------- @@ -16529,11 +16487,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # visible # ------- @@ -16549,11 +16507,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -16570,11 +16528,11 @@ def x(self): ------- Any """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -16591,11 +16549,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xref # ---- @@ -16618,11 +16576,11 @@ def xref(self): ------- Any """ - return self['xref'] + return self["xref"] @xref.setter def xref(self, val): - self['xref'] = val + self["xref"] = val # y # - @@ -16639,11 +16597,11 @@ def y(self): ------- Any """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -16660,11 +16618,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # yref # ---- @@ -16687,17 +16645,17 @@ def yref(self): ------- Any """ - return self['yref'] + return self["yref"] @yref.setter def yref(self, val): - self['yref'] = val + self["yref"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -16877,7 +16835,7 @@ def __init__( ------- Image """ - super(Image, self).__init__('images') + super(Image, self).__init__("images") # Validate arg # ------------ @@ -16897,64 +16855,64 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (image as v_image) + from plotly.validators.layout import image as v_image # Initialize validators # --------------------- - self._validators['layer'] = v_image.LayerValidator() - self._validators['name'] = v_image.NameValidator() - self._validators['opacity'] = v_image.OpacityValidator() - self._validators['sizex'] = v_image.SizexValidator() - self._validators['sizey'] = v_image.SizeyValidator() - self._validators['sizing'] = v_image.SizingValidator() - self._validators['source'] = v_image.SourceValidator() - self._validators['templateitemname' - ] = v_image.TemplateitemnameValidator() - self._validators['visible'] = v_image.VisibleValidator() - self._validators['x'] = v_image.XValidator() - self._validators['xanchor'] = v_image.XanchorValidator() - self._validators['xref'] = v_image.XrefValidator() - self._validators['y'] = v_image.YValidator() - self._validators['yanchor'] = v_image.YanchorValidator() - self._validators['yref'] = v_image.YrefValidator() + self._validators["layer"] = v_image.LayerValidator() + self._validators["name"] = v_image.NameValidator() + self._validators["opacity"] = v_image.OpacityValidator() + self._validators["sizex"] = v_image.SizexValidator() + self._validators["sizey"] = v_image.SizeyValidator() + self._validators["sizing"] = v_image.SizingValidator() + self._validators["source"] = v_image.SourceValidator() + self._validators["templateitemname"] = v_image.TemplateitemnameValidator() + self._validators["visible"] = v_image.VisibleValidator() + self._validators["x"] = v_image.XValidator() + self._validators["xanchor"] = v_image.XanchorValidator() + self._validators["xref"] = v_image.XrefValidator() + self._validators["y"] = v_image.YValidator() + self._validators["yanchor"] = v_image.YanchorValidator() + self._validators["yref"] = v_image.YrefValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('layer', None) - self['layer'] = layer if layer is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('sizex', None) - self['sizex'] = sizex if sizex is not None else _v - _v = arg.pop('sizey', None) - self['sizey'] = sizey if sizey is not None else _v - _v = arg.pop('sizing', None) - self['sizing'] = sizing if sizing is not None else _v - _v = arg.pop('source', None) - self['source'] = source if source is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xref', None) - self['xref'] = xref if xref is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('yref', None) - self['yref'] = yref if yref is not None else _v + _v = arg.pop("layer", None) + self["layer"] = layer if layer is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("sizex", None) + self["sizex"] = sizex if sizex is not None else _v + _v = arg.pop("sizey", None) + self["sizey"] = sizey if sizey is not None else _v + _v = arg.pop("sizing", None) + self["sizing"] = sizing if sizing is not None else _v + _v = arg.pop("source", None) + self["source"] = source if source is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xref", None) + self["xref"] = xref if xref is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("yref", None) + self["yref"] = yref if yref is not None else _v # Process unknown kwargs # ---------------------- @@ -16988,11 +16946,11 @@ def align(self): ------- Any """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # bgcolor # ------- @@ -17047,11 +17005,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -17106,11 +17064,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # font # ---- @@ -17152,11 +17110,11 @@ def font(self): ------- plotly.graph_objs.layout.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -17178,17 +17136,17 @@ def namelength(self): ------- int """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -17258,7 +17216,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -17278,32 +17236,32 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (hoverlabel as v_hoverlabel) + from plotly.validators.layout import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v # Process unknown kwargs # ---------------------- @@ -17340,11 +17298,11 @@ def columns(self): ------- int """ - return self['columns'] + return self["columns"] @columns.setter def columns(self, val): - self['columns'] = val + self["columns"] = val # domain # ------ @@ -17374,11 +17332,11 @@ def domain(self): ------- plotly.graph_objs.layout.grid.Domain """ - return self['domain'] + return self["domain"] @domain.setter def domain(self, val): - self['domain'] = val + self["domain"] = val # pattern # ------- @@ -17400,11 +17358,11 @@ def pattern(self): ------- Any """ - return self['pattern'] + return self["pattern"] @pattern.setter def pattern(self, val): - self['pattern'] = val + self["pattern"] = val # roworder # -------- @@ -17422,11 +17380,11 @@ def roworder(self): ------- Any """ - return self['roworder'] + return self["roworder"] @roworder.setter def roworder(self, val): - self['roworder'] = val + self["roworder"] = val # rows # ---- @@ -17446,11 +17404,11 @@ def rows(self): ------- int """ - return self['rows'] + return self["rows"] @rows.setter def rows(self, val): - self['rows'] = val + self["rows"] = val # subplots # -------- @@ -17477,11 +17435,11 @@ def subplots(self): ------- list """ - return self['subplots'] + return self["subplots"] @subplots.setter def subplots(self, val): - self['subplots'] = val + self["subplots"] = val # xaxes # ----- @@ -17507,11 +17465,11 @@ def xaxes(self): ------- list """ - return self['xaxes'] + return self["xaxes"] @xaxes.setter def xaxes(self, val): - self['xaxes'] = val + self["xaxes"] = val # xgap # ---- @@ -17529,11 +17487,11 @@ def xgap(self): ------- int|float """ - return self['xgap'] + return self["xgap"] @xgap.setter def xgap(self, val): - self['xgap'] = val + self["xgap"] = val # xside # ----- @@ -17552,11 +17510,11 @@ def xside(self): ------- Any """ - return self['xside'] + return self["xside"] @xside.setter def xside(self, val): - self['xside'] = val + self["xside"] = val # yaxes # ----- @@ -17582,11 +17540,11 @@ def yaxes(self): ------- list """ - return self['yaxes'] + return self["yaxes"] @yaxes.setter def yaxes(self, val): - self['yaxes'] = val + self["yaxes"] = val # ygap # ---- @@ -17604,11 +17562,11 @@ def ygap(self): ------- int|float """ - return self['ygap'] + return self["ygap"] @ygap.setter def ygap(self, val): - self['ygap'] = val + self["ygap"] = val # yside # ----- @@ -17628,17 +17586,17 @@ def yside(self): ------- Any """ - return self['yside'] + return self["yside"] @yside.setter def yside(self, val): - self['yside'] = val + self["yside"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -17817,7 +17775,7 @@ def __init__( ------- Grid """ - super(Grid, self).__init__('grid') + super(Grid, self).__init__("grid") # Validate arg # ------------ @@ -17837,53 +17795,53 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (grid as v_grid) + from plotly.validators.layout import grid as v_grid # Initialize validators # --------------------- - self._validators['columns'] = v_grid.ColumnsValidator() - self._validators['domain'] = v_grid.DomainValidator() - self._validators['pattern'] = v_grid.PatternValidator() - self._validators['roworder'] = v_grid.RoworderValidator() - self._validators['rows'] = v_grid.RowsValidator() - self._validators['subplots'] = v_grid.SubplotsValidator() - self._validators['xaxes'] = v_grid.XaxesValidator() - self._validators['xgap'] = v_grid.XgapValidator() - self._validators['xside'] = v_grid.XsideValidator() - self._validators['yaxes'] = v_grid.YaxesValidator() - self._validators['ygap'] = v_grid.YgapValidator() - self._validators['yside'] = v_grid.YsideValidator() + self._validators["columns"] = v_grid.ColumnsValidator() + self._validators["domain"] = v_grid.DomainValidator() + self._validators["pattern"] = v_grid.PatternValidator() + self._validators["roworder"] = v_grid.RoworderValidator() + self._validators["rows"] = v_grid.RowsValidator() + self._validators["subplots"] = v_grid.SubplotsValidator() + self._validators["xaxes"] = v_grid.XaxesValidator() + self._validators["xgap"] = v_grid.XgapValidator() + self._validators["xside"] = v_grid.XsideValidator() + self._validators["yaxes"] = v_grid.YaxesValidator() + self._validators["ygap"] = v_grid.YgapValidator() + self._validators["yside"] = v_grid.YsideValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('columns', None) - self['columns'] = columns if columns is not None else _v - _v = arg.pop('domain', None) - self['domain'] = domain if domain is not None else _v - _v = arg.pop('pattern', None) - self['pattern'] = pattern if pattern is not None else _v - _v = arg.pop('roworder', None) - self['roworder'] = roworder if roworder is not None else _v - _v = arg.pop('rows', None) - self['rows'] = rows if rows is not None else _v - _v = arg.pop('subplots', None) - self['subplots'] = subplots if subplots is not None else _v - _v = arg.pop('xaxes', None) - self['xaxes'] = xaxes if xaxes is not None else _v - _v = arg.pop('xgap', None) - self['xgap'] = xgap if xgap is not None else _v - _v = arg.pop('xside', None) - self['xside'] = xside if xside is not None else _v - _v = arg.pop('yaxes', None) - self['yaxes'] = yaxes if yaxes is not None else _v - _v = arg.pop('ygap', None) - self['ygap'] = ygap if ygap is not None else _v - _v = arg.pop('yside', None) - self['yside'] = yside if yside is not None else _v + _v = arg.pop("columns", None) + self["columns"] = columns if columns is not None else _v + _v = arg.pop("domain", None) + self["domain"] = domain if domain is not None else _v + _v = arg.pop("pattern", None) + self["pattern"] = pattern if pattern is not None else _v + _v = arg.pop("roworder", None) + self["roworder"] = roworder if roworder is not None else _v + _v = arg.pop("rows", None) + self["rows"] = rows if rows is not None else _v + _v = arg.pop("subplots", None) + self["subplots"] = subplots if subplots is not None else _v + _v = arg.pop("xaxes", None) + self["xaxes"] = xaxes if xaxes is not None else _v + _v = arg.pop("xgap", None) + self["xgap"] = xgap if xgap is not None else _v + _v = arg.pop("xside", None) + self["xside"] = xside if xside is not None else _v + _v = arg.pop("yaxes", None) + self["yaxes"] = yaxes if yaxes is not None else _v + _v = arg.pop("ygap", None) + self["ygap"] = ygap if ygap is not None else _v + _v = arg.pop("yside", None) + self["yside"] = yside if yside is not None else _v # Process unknown kwargs # ---------------------- @@ -17953,11 +17911,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # center # ------ @@ -17988,11 +17946,11 @@ def center(self): ------- plotly.graph_objs.layout.geo.Center """ - return self['center'] + return self["center"] @center.setter def center(self, val): - self['center'] = val + self["center"] = val # coastlinecolor # -------------- @@ -18047,11 +18005,11 @@ def coastlinecolor(self): ------- str """ - return self['coastlinecolor'] + return self["coastlinecolor"] @coastlinecolor.setter def coastlinecolor(self, val): - self['coastlinecolor'] = val + self["coastlinecolor"] = val # coastlinewidth # -------------- @@ -18067,11 +18025,11 @@ def coastlinewidth(self): ------- int|float """ - return self['coastlinewidth'] + return self["coastlinewidth"] @coastlinewidth.setter def coastlinewidth(self, val): - self['coastlinewidth'] = val + self["coastlinewidth"] = val # countrycolor # ------------ @@ -18126,11 +18084,11 @@ def countrycolor(self): ------- str """ - return self['countrycolor'] + return self["countrycolor"] @countrycolor.setter def countrycolor(self, val): - self['countrycolor'] = val + self["countrycolor"] = val # countrywidth # ------------ @@ -18146,11 +18104,11 @@ def countrywidth(self): ------- int|float """ - return self['countrywidth'] + return self["countrywidth"] @countrywidth.setter def countrywidth(self, val): - self['countrywidth'] = val + self["countrywidth"] = val # domain # ------ @@ -18196,11 +18154,11 @@ def domain(self): ------- plotly.graph_objs.layout.geo.Domain """ - return self['domain'] + return self["domain"] @domain.setter def domain(self, val): - self['domain'] = val + self["domain"] = val # framecolor # ---------- @@ -18255,11 +18213,11 @@ def framecolor(self): ------- str """ - return self['framecolor'] + return self["framecolor"] @framecolor.setter def framecolor(self, val): - self['framecolor'] = val + self["framecolor"] = val # framewidth # ---------- @@ -18275,11 +18233,11 @@ def framewidth(self): ------- int|float """ - return self['framewidth'] + return self["framewidth"] @framewidth.setter def framewidth(self, val): - self['framewidth'] = val + self["framewidth"] = val # lakecolor # --------- @@ -18334,11 +18292,11 @@ def lakecolor(self): ------- str """ - return self['lakecolor'] + return self["lakecolor"] @lakecolor.setter def lakecolor(self, val): - self['lakecolor'] = val + self["lakecolor"] = val # landcolor # --------- @@ -18393,11 +18351,11 @@ def landcolor(self): ------- str """ - return self['landcolor'] + return self["landcolor"] @landcolor.setter def landcolor(self, val): - self['landcolor'] = val + self["landcolor"] = val # lataxis # ------- @@ -18433,11 +18391,11 @@ def lataxis(self): ------- plotly.graph_objs.layout.geo.Lataxis """ - return self['lataxis'] + return self["lataxis"] @lataxis.setter def lataxis(self, val): - self['lataxis'] = val + self["lataxis"] = val # lonaxis # ------- @@ -18473,11 +18431,11 @@ def lonaxis(self): ------- plotly.graph_objs.layout.geo.Lonaxis """ - return self['lonaxis'] + return self["lonaxis"] @lonaxis.setter def lonaxis(self, val): - self['lonaxis'] = val + self["lonaxis"] = val # oceancolor # ---------- @@ -18532,11 +18490,11 @@ def oceancolor(self): ------- str """ - return self['oceancolor'] + return self["oceancolor"] @oceancolor.setter def oceancolor(self, val): - self['oceancolor'] = val + self["oceancolor"] = val # projection # ---------- @@ -18569,11 +18527,11 @@ def projection(self): ------- plotly.graph_objs.layout.geo.Projection """ - return self['projection'] + return self["projection"] @projection.setter def projection(self, val): - self['projection'] = val + self["projection"] = val # resolution # ---------- @@ -18592,11 +18550,11 @@ def resolution(self): ------- Any """ - return self['resolution'] + return self["resolution"] @resolution.setter def resolution(self, val): - self['resolution'] = val + self["resolution"] = val # rivercolor # ---------- @@ -18651,11 +18609,11 @@ def rivercolor(self): ------- str """ - return self['rivercolor'] + return self["rivercolor"] @rivercolor.setter def rivercolor(self, val): - self['rivercolor'] = val + self["rivercolor"] = val # riverwidth # ---------- @@ -18671,11 +18629,11 @@ def riverwidth(self): ------- int|float """ - return self['riverwidth'] + return self["riverwidth"] @riverwidth.setter def riverwidth(self, val): - self['riverwidth'] = val + self["riverwidth"] = val # scope # ----- @@ -18693,11 +18651,11 @@ def scope(self): ------- Any """ - return self['scope'] + return self["scope"] @scope.setter def scope(self, val): - self['scope'] = val + self["scope"] = val # showcoastlines # -------------- @@ -18713,11 +18671,11 @@ def showcoastlines(self): ------- bool """ - return self['showcoastlines'] + return self["showcoastlines"] @showcoastlines.setter def showcoastlines(self, val): - self['showcoastlines'] = val + self["showcoastlines"] = val # showcountries # ------------- @@ -18733,11 +18691,11 @@ def showcountries(self): ------- bool """ - return self['showcountries'] + return self["showcountries"] @showcountries.setter def showcountries(self, val): - self['showcountries'] = val + self["showcountries"] = val # showframe # --------- @@ -18753,11 +18711,11 @@ def showframe(self): ------- bool """ - return self['showframe'] + return self["showframe"] @showframe.setter def showframe(self, val): - self['showframe'] = val + self["showframe"] = val # showlakes # --------- @@ -18773,11 +18731,11 @@ def showlakes(self): ------- bool """ - return self['showlakes'] + return self["showlakes"] @showlakes.setter def showlakes(self, val): - self['showlakes'] = val + self["showlakes"] = val # showland # -------- @@ -18793,11 +18751,11 @@ def showland(self): ------- bool """ - return self['showland'] + return self["showland"] @showland.setter def showland(self, val): - self['showland'] = val + self["showland"] = val # showocean # --------- @@ -18813,11 +18771,11 @@ def showocean(self): ------- bool """ - return self['showocean'] + return self["showocean"] @showocean.setter def showocean(self, val): - self['showocean'] = val + self["showocean"] = val # showrivers # ---------- @@ -18833,11 +18791,11 @@ def showrivers(self): ------- bool """ - return self['showrivers'] + return self["showrivers"] @showrivers.setter def showrivers(self, val): - self['showrivers'] = val + self["showrivers"] = val # showsubunits # ------------ @@ -18854,11 +18812,11 @@ def showsubunits(self): ------- bool """ - return self['showsubunits'] + return self["showsubunits"] @showsubunits.setter def showsubunits(self, val): - self['showsubunits'] = val + self["showsubunits"] = val # subunitcolor # ------------ @@ -18913,11 +18871,11 @@ def subunitcolor(self): ------- str """ - return self['subunitcolor'] + return self["subunitcolor"] @subunitcolor.setter def subunitcolor(self, val): - self['subunitcolor'] = val + self["subunitcolor"] = val # subunitwidth # ------------ @@ -18933,11 +18891,11 @@ def subunitwidth(self): ------- int|float """ - return self['subunitwidth'] + return self["subunitwidth"] @subunitwidth.setter def subunitwidth(self, val): - self['subunitwidth'] = val + self["subunitwidth"] = val # uirevision # ---------- @@ -18953,17 +18911,17 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -19162,7 +19120,7 @@ def __init__( ------- Geo """ - super(Geo, self).__init__('geo') + super(Geo, self).__init__("geo") # Validate arg # ------------ @@ -19182,111 +19140,107 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (geo as v_geo) + from plotly.validators.layout import geo as v_geo # Initialize validators # --------------------- - self._validators['bgcolor'] = v_geo.BgcolorValidator() - self._validators['center'] = v_geo.CenterValidator() - self._validators['coastlinecolor'] = v_geo.CoastlinecolorValidator() - self._validators['coastlinewidth'] = v_geo.CoastlinewidthValidator() - self._validators['countrycolor'] = v_geo.CountrycolorValidator() - self._validators['countrywidth'] = v_geo.CountrywidthValidator() - self._validators['domain'] = v_geo.DomainValidator() - self._validators['framecolor'] = v_geo.FramecolorValidator() - self._validators['framewidth'] = v_geo.FramewidthValidator() - self._validators['lakecolor'] = v_geo.LakecolorValidator() - self._validators['landcolor'] = v_geo.LandcolorValidator() - self._validators['lataxis'] = v_geo.LataxisValidator() - self._validators['lonaxis'] = v_geo.LonaxisValidator() - self._validators['oceancolor'] = v_geo.OceancolorValidator() - self._validators['projection'] = v_geo.ProjectionValidator() - self._validators['resolution'] = v_geo.ResolutionValidator() - self._validators['rivercolor'] = v_geo.RivercolorValidator() - self._validators['riverwidth'] = v_geo.RiverwidthValidator() - self._validators['scope'] = v_geo.ScopeValidator() - self._validators['showcoastlines'] = v_geo.ShowcoastlinesValidator() - self._validators['showcountries'] = v_geo.ShowcountriesValidator() - self._validators['showframe'] = v_geo.ShowframeValidator() - self._validators['showlakes'] = v_geo.ShowlakesValidator() - self._validators['showland'] = v_geo.ShowlandValidator() - self._validators['showocean'] = v_geo.ShowoceanValidator() - self._validators['showrivers'] = v_geo.ShowriversValidator() - self._validators['showsubunits'] = v_geo.ShowsubunitsValidator() - self._validators['subunitcolor'] = v_geo.SubunitcolorValidator() - self._validators['subunitwidth'] = v_geo.SubunitwidthValidator() - self._validators['uirevision'] = v_geo.UirevisionValidator() + self._validators["bgcolor"] = v_geo.BgcolorValidator() + self._validators["center"] = v_geo.CenterValidator() + self._validators["coastlinecolor"] = v_geo.CoastlinecolorValidator() + self._validators["coastlinewidth"] = v_geo.CoastlinewidthValidator() + self._validators["countrycolor"] = v_geo.CountrycolorValidator() + self._validators["countrywidth"] = v_geo.CountrywidthValidator() + self._validators["domain"] = v_geo.DomainValidator() + self._validators["framecolor"] = v_geo.FramecolorValidator() + self._validators["framewidth"] = v_geo.FramewidthValidator() + self._validators["lakecolor"] = v_geo.LakecolorValidator() + self._validators["landcolor"] = v_geo.LandcolorValidator() + self._validators["lataxis"] = v_geo.LataxisValidator() + self._validators["lonaxis"] = v_geo.LonaxisValidator() + self._validators["oceancolor"] = v_geo.OceancolorValidator() + self._validators["projection"] = v_geo.ProjectionValidator() + self._validators["resolution"] = v_geo.ResolutionValidator() + self._validators["rivercolor"] = v_geo.RivercolorValidator() + self._validators["riverwidth"] = v_geo.RiverwidthValidator() + self._validators["scope"] = v_geo.ScopeValidator() + self._validators["showcoastlines"] = v_geo.ShowcoastlinesValidator() + self._validators["showcountries"] = v_geo.ShowcountriesValidator() + self._validators["showframe"] = v_geo.ShowframeValidator() + self._validators["showlakes"] = v_geo.ShowlakesValidator() + self._validators["showland"] = v_geo.ShowlandValidator() + self._validators["showocean"] = v_geo.ShowoceanValidator() + self._validators["showrivers"] = v_geo.ShowriversValidator() + self._validators["showsubunits"] = v_geo.ShowsubunitsValidator() + self._validators["subunitcolor"] = v_geo.SubunitcolorValidator() + self._validators["subunitwidth"] = v_geo.SubunitwidthValidator() + self._validators["uirevision"] = v_geo.UirevisionValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('center', None) - self['center'] = center if center is not None else _v - _v = arg.pop('coastlinecolor', None) - self['coastlinecolor' - ] = coastlinecolor if coastlinecolor is not None else _v - _v = arg.pop('coastlinewidth', None) - self['coastlinewidth' - ] = coastlinewidth if coastlinewidth is not None else _v - _v = arg.pop('countrycolor', None) - self['countrycolor'] = countrycolor if countrycolor is not None else _v - _v = arg.pop('countrywidth', None) - self['countrywidth'] = countrywidth if countrywidth is not None else _v - _v = arg.pop('domain', None) - self['domain'] = domain if domain is not None else _v - _v = arg.pop('framecolor', None) - self['framecolor'] = framecolor if framecolor is not None else _v - _v = arg.pop('framewidth', None) - self['framewidth'] = framewidth if framewidth is not None else _v - _v = arg.pop('lakecolor', None) - self['lakecolor'] = lakecolor if lakecolor is not None else _v - _v = arg.pop('landcolor', None) - self['landcolor'] = landcolor if landcolor is not None else _v - _v = arg.pop('lataxis', None) - self['lataxis'] = lataxis if lataxis is not None else _v - _v = arg.pop('lonaxis', None) - self['lonaxis'] = lonaxis if lonaxis is not None else _v - _v = arg.pop('oceancolor', None) - self['oceancolor'] = oceancolor if oceancolor is not None else _v - _v = arg.pop('projection', None) - self['projection'] = projection if projection is not None else _v - _v = arg.pop('resolution', None) - self['resolution'] = resolution if resolution is not None else _v - _v = arg.pop('rivercolor', None) - self['rivercolor'] = rivercolor if rivercolor is not None else _v - _v = arg.pop('riverwidth', None) - self['riverwidth'] = riverwidth if riverwidth is not None else _v - _v = arg.pop('scope', None) - self['scope'] = scope if scope is not None else _v - _v = arg.pop('showcoastlines', None) - self['showcoastlines' - ] = showcoastlines if showcoastlines is not None else _v - _v = arg.pop('showcountries', None) - self['showcountries' - ] = showcountries if showcountries is not None else _v - _v = arg.pop('showframe', None) - self['showframe'] = showframe if showframe is not None else _v - _v = arg.pop('showlakes', None) - self['showlakes'] = showlakes if showlakes is not None else _v - _v = arg.pop('showland', None) - self['showland'] = showland if showland is not None else _v - _v = arg.pop('showocean', None) - self['showocean'] = showocean if showocean is not None else _v - _v = arg.pop('showrivers', None) - self['showrivers'] = showrivers if showrivers is not None else _v - _v = arg.pop('showsubunits', None) - self['showsubunits'] = showsubunits if showsubunits is not None else _v - _v = arg.pop('subunitcolor', None) - self['subunitcolor'] = subunitcolor if subunitcolor is not None else _v - _v = arg.pop('subunitwidth', None) - self['subunitwidth'] = subunitwidth if subunitwidth is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("center", None) + self["center"] = center if center is not None else _v + _v = arg.pop("coastlinecolor", None) + self["coastlinecolor"] = coastlinecolor if coastlinecolor is not None else _v + _v = arg.pop("coastlinewidth", None) + self["coastlinewidth"] = coastlinewidth if coastlinewidth is not None else _v + _v = arg.pop("countrycolor", None) + self["countrycolor"] = countrycolor if countrycolor is not None else _v + _v = arg.pop("countrywidth", None) + self["countrywidth"] = countrywidth if countrywidth is not None else _v + _v = arg.pop("domain", None) + self["domain"] = domain if domain is not None else _v + _v = arg.pop("framecolor", None) + self["framecolor"] = framecolor if framecolor is not None else _v + _v = arg.pop("framewidth", None) + self["framewidth"] = framewidth if framewidth is not None else _v + _v = arg.pop("lakecolor", None) + self["lakecolor"] = lakecolor if lakecolor is not None else _v + _v = arg.pop("landcolor", None) + self["landcolor"] = landcolor if landcolor is not None else _v + _v = arg.pop("lataxis", None) + self["lataxis"] = lataxis if lataxis is not None else _v + _v = arg.pop("lonaxis", None) + self["lonaxis"] = lonaxis if lonaxis is not None else _v + _v = arg.pop("oceancolor", None) + self["oceancolor"] = oceancolor if oceancolor is not None else _v + _v = arg.pop("projection", None) + self["projection"] = projection if projection is not None else _v + _v = arg.pop("resolution", None) + self["resolution"] = resolution if resolution is not None else _v + _v = arg.pop("rivercolor", None) + self["rivercolor"] = rivercolor if rivercolor is not None else _v + _v = arg.pop("riverwidth", None) + self["riverwidth"] = riverwidth if riverwidth is not None else _v + _v = arg.pop("scope", None) + self["scope"] = scope if scope is not None else _v + _v = arg.pop("showcoastlines", None) + self["showcoastlines"] = showcoastlines if showcoastlines is not None else _v + _v = arg.pop("showcountries", None) + self["showcountries"] = showcountries if showcountries is not None else _v + _v = arg.pop("showframe", None) + self["showframe"] = showframe if showframe is not None else _v + _v = arg.pop("showlakes", None) + self["showlakes"] = showlakes if showlakes is not None else _v + _v = arg.pop("showland", None) + self["showland"] = showland if showland is not None else _v + _v = arg.pop("showocean", None) + self["showocean"] = showocean if showocean is not None else _v + _v = arg.pop("showrivers", None) + self["showrivers"] = showrivers if showrivers is not None else _v + _v = arg.pop("showsubunits", None) + self["showsubunits"] = showsubunits if showsubunits is not None else _v + _v = arg.pop("subunitcolor", None) + self["subunitcolor"] = subunitcolor if subunitcolor is not None else _v + _v = arg.pop("subunitwidth", None) + self["subunitwidth"] = subunitwidth if subunitwidth is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v # Process unknown kwargs # ---------------------- @@ -19354,11 +19308,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -19385,11 +19339,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -19403,17 +19357,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -19475,7 +19429,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -19495,26 +19449,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (font as v_font) + from plotly.validators.layout import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- @@ -19554,11 +19508,11 @@ def diverging(self): ------- str """ - return self['diverging'] + return self["diverging"] @diverging.setter def diverging(self, val): - self['diverging'] = val + self["diverging"] = val # sequential # ---------- @@ -19584,11 +19538,11 @@ def sequential(self): ------- str """ - return self['sequential'] + return self["sequential"] @sequential.setter def sequential(self, val): - self['sequential'] = val + self["sequential"] = val # sequentialminus # --------------- @@ -19614,17 +19568,17 @@ def sequentialminus(self): ------- str """ - return self['sequentialminus'] + return self["sequentialminus"] @sequentialminus.setter def sequentialminus(self, val): - self['sequentialminus'] = val + self["sequentialminus"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -19646,12 +19600,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - diverging=None, - sequential=None, - sequentialminus=None, - **kwargs + self, arg=None, diverging=None, sequential=None, sequentialminus=None, **kwargs ): """ Construct a new Colorscale object @@ -19678,7 +19627,7 @@ def __init__( ------- Colorscale """ - super(Colorscale, self).__init__('colorscale') + super(Colorscale, self).__init__("colorscale") # Validate arg # ------------ @@ -19698,28 +19647,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (colorscale as v_colorscale) + from plotly.validators.layout import colorscale as v_colorscale # Initialize validators # --------------------- - self._validators['diverging'] = v_colorscale.DivergingValidator() - self._validators['sequential'] = v_colorscale.SequentialValidator() - self._validators['sequentialminus' - ] = v_colorscale.SequentialminusValidator() + self._validators["diverging"] = v_colorscale.DivergingValidator() + self._validators["sequential"] = v_colorscale.SequentialValidator() + self._validators["sequentialminus"] = v_colorscale.SequentialminusValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('diverging', None) - self['diverging'] = diverging if diverging is not None else _v - _v = arg.pop('sequential', None) - self['sequential'] = sequential if sequential is not None else _v - _v = arg.pop('sequentialminus', None) - self['sequentialminus' - ] = sequentialminus if sequentialminus is not None else _v + _v = arg.pop("diverging", None) + self["diverging"] = diverging if diverging is not None else _v + _v = arg.pop("sequential", None) + self["sequential"] = sequential if sequential is not None else _v + _v = arg.pop("sequentialminus", None) + self["sequentialminus"] = sequentialminus if sequentialminus is not None else _v # Process unknown kwargs # ---------------------- @@ -19755,11 +19702,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -19778,11 +19725,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -19800,11 +19747,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -19823,11 +19770,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -19845,11 +19792,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # colorbar # -------- @@ -20079,11 +20026,11 @@ def colorbar(self): ------- plotly.graph_objs.layout.coloraxis.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -20116,11 +20063,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # reversescale # ------------ @@ -20138,11 +20085,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -20159,17 +20106,17 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -20301,7 +20248,7 @@ def __init__( ------- Coloraxis """ - super(Coloraxis, self).__init__('coloraxis') + super(Coloraxis, self).__init__("coloraxis") # Validate arg # ------------ @@ -20321,46 +20268,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (coloraxis as v_coloraxis) + from plotly.validators.layout import coloraxis as v_coloraxis # Initialize validators # --------------------- - self._validators['autocolorscale' - ] = v_coloraxis.AutocolorscaleValidator() - self._validators['cauto'] = v_coloraxis.CautoValidator() - self._validators['cmax'] = v_coloraxis.CmaxValidator() - self._validators['cmid'] = v_coloraxis.CmidValidator() - self._validators['cmin'] = v_coloraxis.CminValidator() - self._validators['colorbar'] = v_coloraxis.ColorBarValidator() - self._validators['colorscale'] = v_coloraxis.ColorscaleValidator() - self._validators['reversescale'] = v_coloraxis.ReversescaleValidator() - self._validators['showscale'] = v_coloraxis.ShowscaleValidator() + self._validators["autocolorscale"] = v_coloraxis.AutocolorscaleValidator() + self._validators["cauto"] = v_coloraxis.CautoValidator() + self._validators["cmax"] = v_coloraxis.CmaxValidator() + self._validators["cmid"] = v_coloraxis.CmidValidator() + self._validators["cmin"] = v_coloraxis.CminValidator() + self._validators["colorbar"] = v_coloraxis.ColorBarValidator() + self._validators["colorscale"] = v_coloraxis.ColorscaleValidator() + self._validators["reversescale"] = v_coloraxis.ReversescaleValidator() + self._validators["showscale"] = v_coloraxis.ShowscaleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v # Process unknown kwargs # ---------------------- @@ -20395,11 +20340,11 @@ def align(self): ------- Any """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # arrowcolor # ---------- @@ -20454,11 +20399,11 @@ def arrowcolor(self): ------- str """ - return self['arrowcolor'] + return self["arrowcolor"] @arrowcolor.setter def arrowcolor(self, val): - self['arrowcolor'] = val + self["arrowcolor"] = val # arrowhead # --------- @@ -20475,11 +20420,11 @@ def arrowhead(self): ------- int """ - return self['arrowhead'] + return self["arrowhead"] @arrowhead.setter def arrowhead(self, val): - self['arrowhead'] = val + self["arrowhead"] = val # arrowside # --------- @@ -20498,11 +20443,11 @@ def arrowside(self): ------- Any """ - return self['arrowside'] + return self["arrowside"] @arrowside.setter def arrowside(self, val): - self['arrowside'] = val + self["arrowside"] = val # arrowsize # --------- @@ -20520,11 +20465,11 @@ def arrowsize(self): ------- int|float """ - return self['arrowsize'] + return self["arrowsize"] @arrowsize.setter def arrowsize(self, val): - self['arrowsize'] = val + self["arrowsize"] = val # arrowwidth # ---------- @@ -20540,11 +20485,11 @@ def arrowwidth(self): ------- int|float """ - return self['arrowwidth'] + return self["arrowwidth"] @arrowwidth.setter def arrowwidth(self, val): - self['arrowwidth'] = val + self["arrowwidth"] = val # ax # -- @@ -20563,11 +20508,11 @@ def ax(self): ------- Any """ - return self['ax'] + return self["ax"] @ax.setter def ax(self, val): - self['ax'] = val + self["ax"] = val # axref # ----- @@ -20591,11 +20536,11 @@ def axref(self): ------- Any """ - return self['axref'] + return self["axref"] @axref.setter def axref(self, val): - self['axref'] = val + self["axref"] = val # ay # -- @@ -20614,11 +20559,11 @@ def ay(self): ------- Any """ - return self['ay'] + return self["ay"] @ay.setter def ay(self, val): - self['ay'] = val + self["ay"] = val # ayref # ----- @@ -20642,11 +20587,11 @@ def ayref(self): ------- Any """ - return self['ayref'] + return self["ayref"] @ayref.setter def ayref(self, val): - self['ayref'] = val + self["ayref"] = val # bgcolor # ------- @@ -20701,11 +20646,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -20760,11 +20705,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderpad # --------- @@ -20781,11 +20726,11 @@ def borderpad(self): ------- int|float """ - return self['borderpad'] + return self["borderpad"] @borderpad.setter def borderpad(self, val): - self['borderpad'] = val + self["borderpad"] = val # borderwidth # ----------- @@ -20802,11 +20747,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # captureevents # ------------- @@ -20827,11 +20772,11 @@ def captureevents(self): ------- bool """ - return self['captureevents'] + return self["captureevents"] @captureevents.setter def captureevents(self, val): - self['captureevents'] = val + self["captureevents"] = val # clicktoshow # ----------- @@ -20859,11 +20804,11 @@ def clicktoshow(self): ------- Any """ - return self['clicktoshow'] + return self["clicktoshow"] @clicktoshow.setter def clicktoshow(self, val): - self['clicktoshow'] = val + self["clicktoshow"] = val # font # ---- @@ -20904,11 +20849,11 @@ def font(self): ------- plotly.graph_objs.layout.annotation.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # height # ------ @@ -20925,11 +20870,11 @@ def height(self): ------- int|float """ - return self['height'] + return self["height"] @height.setter def height(self, val): - self['height'] = val + self["height"] = val # hoverlabel # ---------- @@ -20961,11 +20906,11 @@ def hoverlabel(self): ------- plotly.graph_objs.layout.annotation.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertext # --------- @@ -20983,11 +20928,11 @@ def hovertext(self): ------- str """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # name # ---- @@ -21010,11 +20955,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -21030,11 +20975,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # showarrow # --------- @@ -21052,11 +20997,11 @@ def showarrow(self): ------- bool """ - return self['showarrow'] + return self["showarrow"] @showarrow.setter def showarrow(self, val): - self['showarrow'] = val + self["showarrow"] = val # standoff # -------- @@ -21076,11 +21021,11 @@ def standoff(self): ------- int|float """ - return self['standoff'] + return self["standoff"] @standoff.setter def standoff(self, val): - self['standoff'] = val + self["standoff"] = val # startarrowhead # -------------- @@ -21097,11 +21042,11 @@ def startarrowhead(self): ------- int """ - return self['startarrowhead'] + return self["startarrowhead"] @startarrowhead.setter def startarrowhead(self, val): - self['startarrowhead'] = val + self["startarrowhead"] = val # startarrowsize # -------------- @@ -21119,11 +21064,11 @@ def startarrowsize(self): ------- int|float """ - return self['startarrowsize'] + return self["startarrowsize"] @startarrowsize.setter def startarrowsize(self, val): - self['startarrowsize'] = val + self["startarrowsize"] = val # startstandoff # ------------- @@ -21143,11 +21088,11 @@ def startstandoff(self): ------- int|float """ - return self['startstandoff'] + return self["startstandoff"] @startstandoff.setter def startstandoff(self, val): - self['startstandoff'] = val + self["startstandoff"] = val # templateitemname # ---------------- @@ -21171,11 +21116,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # text # ---- @@ -21195,11 +21140,11 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textangle # --------- @@ -21218,11 +21163,11 @@ def textangle(self): ------- int|float """ - return self['textangle'] + return self["textangle"] @textangle.setter def textangle(self, val): - self['textangle'] = val + self["textangle"] = val # valign # ------ @@ -21241,11 +21186,11 @@ def valign(self): ------- Any """ - return self['valign'] + return self["valign"] @valign.setter def valign(self, val): - self['valign'] = val + self["valign"] = val # visible # ------- @@ -21261,11 +21206,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -21283,11 +21228,11 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # x # - @@ -21308,11 +21253,11 @@ def x(self): ------- Any """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -21337,11 +21282,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xclick # ------ @@ -21357,11 +21302,11 @@ def xclick(self): ------- Any """ - return self['xclick'] + return self["xclick"] @xclick.setter def xclick(self, val): - self['xclick'] = val + self["xclick"] = val # xref # ---- @@ -21384,11 +21329,11 @@ def xref(self): ------- Any """ - return self['xref'] + return self["xref"] @xref.setter def xref(self, val): - self['xref'] = val + self["xref"] = val # xshift # ------ @@ -21405,11 +21350,11 @@ def xshift(self): ------- int|float """ - return self['xshift'] + return self["xshift"] @xshift.setter def xshift(self, val): - self['xshift'] = val + self["xshift"] = val # y # - @@ -21430,11 +21375,11 @@ def y(self): ------- Any """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -21459,11 +21404,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # yclick # ------ @@ -21479,11 +21424,11 @@ def yclick(self): ------- Any """ - return self['yclick'] + return self["yclick"] @yclick.setter def yclick(self, val): - self['yclick'] = val + self["yclick"] = val # yref # ---- @@ -21506,11 +21451,11 @@ def yref(self): ------- Any """ - return self['yref'] + return self["yref"] @yref.setter def yref(self, val): - self['yref'] = val + self["yref"] = val # yshift # ------ @@ -21527,17 +21472,17 @@ def yshift(self): ------- int|float """ - return self['yshift'] + return self["yshift"] @yshift.setter def yshift(self, val): - self['yshift'] = val + self["yshift"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -22063,7 +22008,7 @@ def __init__( ------- Annotation """ - super(Annotation, self).__init__('annotations') + super(Annotation, self).__init__("annotations") # Validate arg # ------------ @@ -22083,156 +22028,148 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (annotation as v_annotation) + from plotly.validators.layout import annotation as v_annotation # Initialize validators # --------------------- - self._validators['align'] = v_annotation.AlignValidator() - self._validators['arrowcolor'] = v_annotation.ArrowcolorValidator() - self._validators['arrowhead'] = v_annotation.ArrowheadValidator() - self._validators['arrowside'] = v_annotation.ArrowsideValidator() - self._validators['arrowsize'] = v_annotation.ArrowsizeValidator() - self._validators['arrowwidth'] = v_annotation.ArrowwidthValidator() - self._validators['ax'] = v_annotation.AxValidator() - self._validators['axref'] = v_annotation.AxrefValidator() - self._validators['ay'] = v_annotation.AyValidator() - self._validators['ayref'] = v_annotation.AyrefValidator() - self._validators['bgcolor'] = v_annotation.BgcolorValidator() - self._validators['bordercolor'] = v_annotation.BordercolorValidator() - self._validators['borderpad'] = v_annotation.BorderpadValidator() - self._validators['borderwidth'] = v_annotation.BorderwidthValidator() - self._validators['captureevents' - ] = v_annotation.CaptureeventsValidator() - self._validators['clicktoshow'] = v_annotation.ClicktoshowValidator() - self._validators['font'] = v_annotation.FontValidator() - self._validators['height'] = v_annotation.HeightValidator() - self._validators['hoverlabel'] = v_annotation.HoverlabelValidator() - self._validators['hovertext'] = v_annotation.HovertextValidator() - self._validators['name'] = v_annotation.NameValidator() - self._validators['opacity'] = v_annotation.OpacityValidator() - self._validators['showarrow'] = v_annotation.ShowarrowValidator() - self._validators['standoff'] = v_annotation.StandoffValidator() - self._validators['startarrowhead' - ] = v_annotation.StartarrowheadValidator() - self._validators['startarrowsize' - ] = v_annotation.StartarrowsizeValidator() - self._validators['startstandoff' - ] = v_annotation.StartstandoffValidator() - self._validators['templateitemname' - ] = v_annotation.TemplateitemnameValidator() - self._validators['text'] = v_annotation.TextValidator() - self._validators['textangle'] = v_annotation.TextangleValidator() - self._validators['valign'] = v_annotation.ValignValidator() - self._validators['visible'] = v_annotation.VisibleValidator() - self._validators['width'] = v_annotation.WidthValidator() - self._validators['x'] = v_annotation.XValidator() - self._validators['xanchor'] = v_annotation.XanchorValidator() - self._validators['xclick'] = v_annotation.XclickValidator() - self._validators['xref'] = v_annotation.XrefValidator() - self._validators['xshift'] = v_annotation.XshiftValidator() - self._validators['y'] = v_annotation.YValidator() - self._validators['yanchor'] = v_annotation.YanchorValidator() - self._validators['yclick'] = v_annotation.YclickValidator() - self._validators['yref'] = v_annotation.YrefValidator() - self._validators['yshift'] = v_annotation.YshiftValidator() + self._validators["align"] = v_annotation.AlignValidator() + self._validators["arrowcolor"] = v_annotation.ArrowcolorValidator() + self._validators["arrowhead"] = v_annotation.ArrowheadValidator() + self._validators["arrowside"] = v_annotation.ArrowsideValidator() + self._validators["arrowsize"] = v_annotation.ArrowsizeValidator() + self._validators["arrowwidth"] = v_annotation.ArrowwidthValidator() + self._validators["ax"] = v_annotation.AxValidator() + self._validators["axref"] = v_annotation.AxrefValidator() + self._validators["ay"] = v_annotation.AyValidator() + self._validators["ayref"] = v_annotation.AyrefValidator() + self._validators["bgcolor"] = v_annotation.BgcolorValidator() + self._validators["bordercolor"] = v_annotation.BordercolorValidator() + self._validators["borderpad"] = v_annotation.BorderpadValidator() + self._validators["borderwidth"] = v_annotation.BorderwidthValidator() + self._validators["captureevents"] = v_annotation.CaptureeventsValidator() + self._validators["clicktoshow"] = v_annotation.ClicktoshowValidator() + self._validators["font"] = v_annotation.FontValidator() + self._validators["height"] = v_annotation.HeightValidator() + self._validators["hoverlabel"] = v_annotation.HoverlabelValidator() + self._validators["hovertext"] = v_annotation.HovertextValidator() + self._validators["name"] = v_annotation.NameValidator() + self._validators["opacity"] = v_annotation.OpacityValidator() + self._validators["showarrow"] = v_annotation.ShowarrowValidator() + self._validators["standoff"] = v_annotation.StandoffValidator() + self._validators["startarrowhead"] = v_annotation.StartarrowheadValidator() + self._validators["startarrowsize"] = v_annotation.StartarrowsizeValidator() + self._validators["startstandoff"] = v_annotation.StartstandoffValidator() + self._validators["templateitemname"] = v_annotation.TemplateitemnameValidator() + self._validators["text"] = v_annotation.TextValidator() + self._validators["textangle"] = v_annotation.TextangleValidator() + self._validators["valign"] = v_annotation.ValignValidator() + self._validators["visible"] = v_annotation.VisibleValidator() + self._validators["width"] = v_annotation.WidthValidator() + self._validators["x"] = v_annotation.XValidator() + self._validators["xanchor"] = v_annotation.XanchorValidator() + self._validators["xclick"] = v_annotation.XclickValidator() + self._validators["xref"] = v_annotation.XrefValidator() + self._validators["xshift"] = v_annotation.XshiftValidator() + self._validators["y"] = v_annotation.YValidator() + self._validators["yanchor"] = v_annotation.YanchorValidator() + self._validators["yclick"] = v_annotation.YclickValidator() + self._validators["yref"] = v_annotation.YrefValidator() + self._validators["yshift"] = v_annotation.YshiftValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('arrowcolor', None) - self['arrowcolor'] = arrowcolor if arrowcolor is not None else _v - _v = arg.pop('arrowhead', None) - self['arrowhead'] = arrowhead if arrowhead is not None else _v - _v = arg.pop('arrowside', None) - self['arrowside'] = arrowside if arrowside is not None else _v - _v = arg.pop('arrowsize', None) - self['arrowsize'] = arrowsize if arrowsize is not None else _v - _v = arg.pop('arrowwidth', None) - self['arrowwidth'] = arrowwidth if arrowwidth is not None else _v - _v = arg.pop('ax', None) - self['ax'] = ax if ax is not None else _v - _v = arg.pop('axref', None) - self['axref'] = axref if axref is not None else _v - _v = arg.pop('ay', None) - self['ay'] = ay if ay is not None else _v - _v = arg.pop('ayref', None) - self['ayref'] = ayref if ayref is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderpad', None) - self['borderpad'] = borderpad if borderpad is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('captureevents', None) - self['captureevents' - ] = captureevents if captureevents is not None else _v - _v = arg.pop('clicktoshow', None) - self['clicktoshow'] = clicktoshow if clicktoshow is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('height', None) - self['height'] = height if height is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('showarrow', None) - self['showarrow'] = showarrow if showarrow is not None else _v - _v = arg.pop('standoff', None) - self['standoff'] = standoff if standoff is not None else _v - _v = arg.pop('startarrowhead', None) - self['startarrowhead' - ] = startarrowhead if startarrowhead is not None else _v - _v = arg.pop('startarrowsize', None) - self['startarrowsize' - ] = startarrowsize if startarrowsize is not None else _v - _v = arg.pop('startstandoff', None) - self['startstandoff' - ] = startstandoff if startstandoff is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textangle', None) - self['textangle'] = textangle if textangle is not None else _v - _v = arg.pop('valign', None) - self['valign'] = valign if valign is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xclick', None) - self['xclick'] = xclick if xclick is not None else _v - _v = arg.pop('xref', None) - self['xref'] = xref if xref is not None else _v - _v = arg.pop('xshift', None) - self['xshift'] = xshift if xshift is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('yclick', None) - self['yclick'] = yclick if yclick is not None else _v - _v = arg.pop('yref', None) - self['yref'] = yref if yref is not None else _v - _v = arg.pop('yshift', None) - self['yshift'] = yshift if yshift is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("arrowcolor", None) + self["arrowcolor"] = arrowcolor if arrowcolor is not None else _v + _v = arg.pop("arrowhead", None) + self["arrowhead"] = arrowhead if arrowhead is not None else _v + _v = arg.pop("arrowside", None) + self["arrowside"] = arrowside if arrowside is not None else _v + _v = arg.pop("arrowsize", None) + self["arrowsize"] = arrowsize if arrowsize is not None else _v + _v = arg.pop("arrowwidth", None) + self["arrowwidth"] = arrowwidth if arrowwidth is not None else _v + _v = arg.pop("ax", None) + self["ax"] = ax if ax is not None else _v + _v = arg.pop("axref", None) + self["axref"] = axref if axref is not None else _v + _v = arg.pop("ay", None) + self["ay"] = ay if ay is not None else _v + _v = arg.pop("ayref", None) + self["ayref"] = ayref if ayref is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderpad", None) + self["borderpad"] = borderpad if borderpad is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("captureevents", None) + self["captureevents"] = captureevents if captureevents is not None else _v + _v = arg.pop("clicktoshow", None) + self["clicktoshow"] = clicktoshow if clicktoshow is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("height", None) + self["height"] = height if height is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("showarrow", None) + self["showarrow"] = showarrow if showarrow is not None else _v + _v = arg.pop("standoff", None) + self["standoff"] = standoff if standoff is not None else _v + _v = arg.pop("startarrowhead", None) + self["startarrowhead"] = startarrowhead if startarrowhead is not None else _v + _v = arg.pop("startarrowsize", None) + self["startarrowsize"] = startarrowsize if startarrowsize is not None else _v + _v = arg.pop("startstandoff", None) + self["startstandoff"] = startstandoff if startstandoff is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textangle", None) + self["textangle"] = textangle if textangle is not None else _v + _v = arg.pop("valign", None) + self["valign"] = valign if valign is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xclick", None) + self["xclick"] = xclick if xclick is not None else _v + _v = arg.pop("xref", None) + self["xref"] = xref if xref is not None else _v + _v = arg.pop("xshift", None) + self["xshift"] = xshift if xshift is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("yclick", None) + self["yclick"] = yclick if yclick is not None else _v + _v = arg.pop("yref", None) + self["yref"] = yref if yref is not None else _v + _v = arg.pop("yshift", None) + self["yshift"] = yshift if yshift is not None else _v # Process unknown kwargs # ---------------------- @@ -22269,11 +22206,11 @@ def domain(self): ------- list """ - return self['domain'] + return self["domain"] @domain.setter def domain(self, val): - self['domain'] = val + self["domain"] = val # endpadding # ---------- @@ -22290,11 +22227,11 @@ def endpadding(self): ------- int|float """ - return self['endpadding'] + return self["endpadding"] @endpadding.setter def endpadding(self, val): - self['endpadding'] = val + self["endpadding"] = val # range # ----- @@ -22316,11 +22253,11 @@ def range(self): ------- list """ - return self['range'] + return self["range"] @range.setter def range(self, val): - self['range'] = val + self["range"] = val # showline # -------- @@ -22338,11 +22275,11 @@ def showline(self): ------- bool """ - return self['showline'] + return self["showline"] @showline.setter def showline(self, val): - self['showline'] = val + self["showline"] = val # showticklabels # -------------- @@ -22360,11 +22297,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # tickcolor # --------- @@ -22421,11 +22358,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # ticklen # ------- @@ -22443,11 +22380,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickorientation # --------------- @@ -22466,11 +22403,11 @@ def tickorientation(self): ------- Any """ - return self['tickorientation'] + return self["tickorientation"] @tickorientation.setter def tickorientation(self, val): - self['tickorientation'] = val + self["tickorientation"] = val # ticksuffix # ---------- @@ -22489,11 +22426,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # visible # ------- @@ -22510,17 +22447,17 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout' + return "layout" # Self properties description # --------------------------- @@ -22633,7 +22570,7 @@ def __init__( ------- AngularAxis """ - super(AngularAxis, self).__init__('angularaxis') + super(AngularAxis, self).__init__("angularaxis") # Validate arg # ------------ @@ -22653,51 +22590,47 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout import (angularaxis as v_angularaxis) + from plotly.validators.layout import angularaxis as v_angularaxis # Initialize validators # --------------------- - self._validators['domain'] = v_angularaxis.DomainValidator() - self._validators['endpadding'] = v_angularaxis.EndpaddingValidator() - self._validators['range'] = v_angularaxis.RangeValidator() - self._validators['showline'] = v_angularaxis.ShowlineValidator() - self._validators['showticklabels' - ] = v_angularaxis.ShowticklabelsValidator() - self._validators['tickcolor'] = v_angularaxis.TickcolorValidator() - self._validators['ticklen'] = v_angularaxis.TicklenValidator() - self._validators['tickorientation' - ] = v_angularaxis.TickorientationValidator() - self._validators['ticksuffix'] = v_angularaxis.TicksuffixValidator() - self._validators['visible'] = v_angularaxis.VisibleValidator() + self._validators["domain"] = v_angularaxis.DomainValidator() + self._validators["endpadding"] = v_angularaxis.EndpaddingValidator() + self._validators["range"] = v_angularaxis.RangeValidator() + self._validators["showline"] = v_angularaxis.ShowlineValidator() + self._validators["showticklabels"] = v_angularaxis.ShowticklabelsValidator() + self._validators["tickcolor"] = v_angularaxis.TickcolorValidator() + self._validators["ticklen"] = v_angularaxis.TicklenValidator() + self._validators["tickorientation"] = v_angularaxis.TickorientationValidator() + self._validators["ticksuffix"] = v_angularaxis.TicksuffixValidator() + self._validators["visible"] = v_angularaxis.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('domain', None) - self['domain'] = domain if domain is not None else _v - _v = arg.pop('endpadding', None) - self['endpadding'] = endpadding if endpadding is not None else _v - _v = arg.pop('range', None) - self['range'] = range if range is not None else _v - _v = arg.pop('showline', None) - self['showline'] = showline if showline is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickorientation', None) - self['tickorientation' - ] = tickorientation if tickorientation is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("domain", None) + self["domain"] = domain if domain is not None else _v + _v = arg.pop("endpadding", None) + self["endpadding"] = endpadding if endpadding is not None else _v + _v = arg.pop("range", None) + self["range"] = range if range is not None else _v + _v = arg.pop("showline", None) + self["showline"] = showline if showline is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickorientation", None) + self["tickorientation"] = tickorientation if tickorientation is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/annotation/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/annotation/__init__.py index 63f35ab30cf..9840ac374b8 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/annotation/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/annotation/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -61,11 +59,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -122,11 +120,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # font # ---- @@ -168,17 +166,17 @@ def font(self): ------- plotly.graph_objs.layout.annotation.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.annotation' + return "layout.annotation" # Self properties description # --------------------------- @@ -199,9 +197,7 @@ def _prop_descriptions(self): `hoverlabel.bordercolor`. """ - def __init__( - self, arg=None, bgcolor=None, bordercolor=None, font=None, **kwargs - ): + def __init__(self, arg=None, bgcolor=None, bordercolor=None, font=None, **kwargs): """ Construct a new Hoverlabel object @@ -228,7 +224,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -248,28 +244,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.annotation import ( - hoverlabel as v_hoverlabel - ) + from plotly.validators.layout.annotation import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['font'] = v_hoverlabel.FontValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["font"] = v_hoverlabel.FontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v # Process unknown kwargs # ---------------------- @@ -337,11 +331,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -368,11 +362,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -386,17 +380,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.annotation' + return "layout.annotation" # Self properties description # --------------------------- @@ -457,7 +451,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -477,26 +471,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.annotation import (font as v_font) + from plotly.validators.layout.annotation import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/annotation/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/annotation/hoverlabel/__init__.py index d80aec78b82..ca8c5716eb6 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/annotation/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/annotation/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.annotation.hoverlabel' + return "layout.annotation.hoverlabel" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.annotation.hoverlabel import ( - font as v_font - ) + from plotly.validators.layout.annotation.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/__init__.py index 225b9c1f41d..025d02f2792 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -118,11 +116,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -138,11 +136,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -176,11 +174,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -201,11 +199,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -223,11 +221,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -246,11 +244,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -270,11 +268,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -329,11 +327,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -349,11 +347,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -369,11 +367,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -393,11 +391,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -413,11 +411,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -437,11 +435,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -458,11 +456,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -479,11 +477,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -502,11 +500,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -529,11 +527,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -553,11 +551,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -612,11 +610,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -657,11 +655,11 @@ def tickfont(self): ------- plotly.graph_objs.layout.coloraxis.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -686,11 +684,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -743,11 +741,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.layout.coloraxis.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -771,11 +769,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.layout.coloraxis.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -791,11 +789,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -818,11 +816,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -839,11 +837,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -862,11 +860,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -883,11 +881,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -905,11 +903,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -925,11 +923,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -946,11 +944,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -966,11 +964,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -986,11 +984,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1025,11 +1023,11 @@ def title(self): ------- plotly.graph_objs.layout.coloraxis.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1073,11 +1071,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1097,11 +1095,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1117,11 +1115,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1140,11 +1138,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -1160,11 +1158,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -1180,11 +1178,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -1203,11 +1201,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -1223,17 +1221,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.coloraxis' + return "layout.coloraxis" # Self properties description # --------------------------- @@ -1429,8 +1427,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -1681,7 +1679,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -1701,164 +1699,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.coloraxis import (colorbar as v_colorbar) + from plotly.validators.layout.coloraxis import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/__init__.py index bded5732ce2..ebade6ff75e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.layout.coloraxis.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.coloraxis.colorbar' + return "layout.coloraxis.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,28 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.coloraxis.colorbar import ( - title as v_title - ) + from plotly.validators.layout.coloraxis.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -231,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -252,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -279,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -307,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -329,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.coloraxis.colorbar' + return "layout.coloraxis.colorbar" # Self properties description # --------------------------- @@ -432,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -452,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.layout.coloraxis.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -549,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -580,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -598,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.coloraxis.colorbar' + return "layout.coloraxis.colorbar" # Self properties description # --------------------------- @@ -670,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -690,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.coloraxis.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.layout.coloraxis.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/title/__init__.py index cdc3122a22a..5e8b9e3a39c 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/coloraxis/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.coloraxis.colorbar.title' + return "layout.coloraxis.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.coloraxis.colorbar.title import ( - font as v_font - ) + from plotly.validators.layout.coloraxis.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/geo/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/geo/__init__.py index 1c530c74fc6..d66f4fda2cd 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/geo/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/geo/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -26,11 +24,11 @@ def parallels(self): ------- list """ - return self['parallels'] + return self["parallels"] @parallels.setter def parallels(self, val): - self['parallels'] = val + self["parallels"] = val # rotation # -------- @@ -60,11 +58,11 @@ def rotation(self): ------- plotly.graph_objs.layout.geo.projection.Rotation """ - return self['rotation'] + return self["rotation"] @rotation.setter def rotation(self, val): - self['rotation'] = val + self["rotation"] = val # scale # ----- @@ -81,11 +79,11 @@ def scale(self): ------- int|float """ - return self['scale'] + return self["scale"] @scale.setter def scale(self, val): - self['scale'] = val + self["scale"] = val # type # ---- @@ -108,17 +106,17 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.geo' + return "layout.geo" # Self properties description # --------------------------- @@ -140,13 +138,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - parallels=None, - rotation=None, - scale=None, - type=None, - **kwargs + self, arg=None, parallels=None, rotation=None, scale=None, type=None, **kwargs ): """ Construct a new Projection object @@ -173,7 +165,7 @@ def __init__( ------- Projection """ - super(Projection, self).__init__('projection') + super(Projection, self).__init__("projection") # Validate arg # ------------ @@ -193,29 +185,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.geo import (projection as v_projection) + from plotly.validators.layout.geo import projection as v_projection # Initialize validators # --------------------- - self._validators['parallels'] = v_projection.ParallelsValidator() - self._validators['rotation'] = v_projection.RotationValidator() - self._validators['scale'] = v_projection.ScaleValidator() - self._validators['type'] = v_projection.TypeValidator() + self._validators["parallels"] = v_projection.ParallelsValidator() + self._validators["rotation"] = v_projection.RotationValidator() + self._validators["scale"] = v_projection.ScaleValidator() + self._validators["type"] = v_projection.TypeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('parallels', None) - self['parallels'] = parallels if parallels is not None else _v - _v = arg.pop('rotation', None) - self['rotation'] = rotation if rotation is not None else _v - _v = arg.pop('scale', None) - self['scale'] = scale if scale is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v + _v = arg.pop("parallels", None) + self["parallels"] = parallels if parallels is not None else _v + _v = arg.pop("rotation", None) + self["rotation"] = rotation if rotation is not None else _v + _v = arg.pop("scale", None) + self["scale"] = scale if scale is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v # Process unknown kwargs # ---------------------- @@ -246,11 +238,11 @@ def dtick(self): ------- int|float """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # gridcolor # --------- @@ -305,11 +297,11 @@ def gridcolor(self): ------- str """ - return self['gridcolor'] + return self["gridcolor"] @gridcolor.setter def gridcolor(self, val): - self['gridcolor'] = val + self["gridcolor"] = val # gridwidth # --------- @@ -325,11 +317,11 @@ def gridwidth(self): ------- int|float """ - return self['gridwidth'] + return self["gridwidth"] @gridwidth.setter def gridwidth(self, val): - self['gridwidth'] = val + self["gridwidth"] = val # range # ----- @@ -351,11 +343,11 @@ def range(self): ------- list """ - return self['range'] + return self["range"] @range.setter def range(self, val): - self['range'] = val + self["range"] = val # showgrid # -------- @@ -371,11 +363,11 @@ def showgrid(self): ------- bool """ - return self['showgrid'] + return self["showgrid"] @showgrid.setter def showgrid(self, val): - self['showgrid'] = val + self["showgrid"] = val # tick0 # ----- @@ -391,17 +383,17 @@ def tick0(self): ------- int|float """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.geo' + return "layout.geo" # Self properties description # --------------------------- @@ -460,7 +452,7 @@ def __init__( ------- Lonaxis """ - super(Lonaxis, self).__init__('lonaxis') + super(Lonaxis, self).__init__("lonaxis") # Validate arg # ------------ @@ -480,35 +472,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.geo import (lonaxis as v_lonaxis) + from plotly.validators.layout.geo import lonaxis as v_lonaxis # Initialize validators # --------------------- - self._validators['dtick'] = v_lonaxis.DtickValidator() - self._validators['gridcolor'] = v_lonaxis.GridcolorValidator() - self._validators['gridwidth'] = v_lonaxis.GridwidthValidator() - self._validators['range'] = v_lonaxis.RangeValidator() - self._validators['showgrid'] = v_lonaxis.ShowgridValidator() - self._validators['tick0'] = v_lonaxis.Tick0Validator() + self._validators["dtick"] = v_lonaxis.DtickValidator() + self._validators["gridcolor"] = v_lonaxis.GridcolorValidator() + self._validators["gridwidth"] = v_lonaxis.GridwidthValidator() + self._validators["range"] = v_lonaxis.RangeValidator() + self._validators["showgrid"] = v_lonaxis.ShowgridValidator() + self._validators["tick0"] = v_lonaxis.Tick0Validator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('gridcolor', None) - self['gridcolor'] = gridcolor if gridcolor is not None else _v - _v = arg.pop('gridwidth', None) - self['gridwidth'] = gridwidth if gridwidth is not None else _v - _v = arg.pop('range', None) - self['range'] = range if range is not None else _v - _v = arg.pop('showgrid', None) - self['showgrid'] = showgrid if showgrid is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("gridcolor", None) + self["gridcolor"] = gridcolor if gridcolor is not None else _v + _v = arg.pop("gridwidth", None) + self["gridwidth"] = gridwidth if gridwidth is not None else _v + _v = arg.pop("range", None) + self["range"] = range if range is not None else _v + _v = arg.pop("showgrid", None) + self["showgrid"] = showgrid if showgrid is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v # Process unknown kwargs # ---------------------- @@ -539,11 +531,11 @@ def dtick(self): ------- int|float """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # gridcolor # --------- @@ -598,11 +590,11 @@ def gridcolor(self): ------- str """ - return self['gridcolor'] + return self["gridcolor"] @gridcolor.setter def gridcolor(self, val): - self['gridcolor'] = val + self["gridcolor"] = val # gridwidth # --------- @@ -618,11 +610,11 @@ def gridwidth(self): ------- int|float """ - return self['gridwidth'] + return self["gridwidth"] @gridwidth.setter def gridwidth(self, val): - self['gridwidth'] = val + self["gridwidth"] = val # range # ----- @@ -644,11 +636,11 @@ def range(self): ------- list """ - return self['range'] + return self["range"] @range.setter def range(self, val): - self['range'] = val + self["range"] = val # showgrid # -------- @@ -664,11 +656,11 @@ def showgrid(self): ------- bool """ - return self['showgrid'] + return self["showgrid"] @showgrid.setter def showgrid(self, val): - self['showgrid'] = val + self["showgrid"] = val # tick0 # ----- @@ -684,17 +676,17 @@ def tick0(self): ------- int|float """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.geo' + return "layout.geo" # Self properties description # --------------------------- @@ -753,7 +745,7 @@ def __init__( ------- Lataxis """ - super(Lataxis, self).__init__('lataxis') + super(Lataxis, self).__init__("lataxis") # Validate arg # ------------ @@ -773,35 +765,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.geo import (lataxis as v_lataxis) + from plotly.validators.layout.geo import lataxis as v_lataxis # Initialize validators # --------------------- - self._validators['dtick'] = v_lataxis.DtickValidator() - self._validators['gridcolor'] = v_lataxis.GridcolorValidator() - self._validators['gridwidth'] = v_lataxis.GridwidthValidator() - self._validators['range'] = v_lataxis.RangeValidator() - self._validators['showgrid'] = v_lataxis.ShowgridValidator() - self._validators['tick0'] = v_lataxis.Tick0Validator() + self._validators["dtick"] = v_lataxis.DtickValidator() + self._validators["gridcolor"] = v_lataxis.GridcolorValidator() + self._validators["gridwidth"] = v_lataxis.GridwidthValidator() + self._validators["range"] = v_lataxis.RangeValidator() + self._validators["showgrid"] = v_lataxis.ShowgridValidator() + self._validators["tick0"] = v_lataxis.Tick0Validator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('gridcolor', None) - self['gridcolor'] = gridcolor if gridcolor is not None else _v - _v = arg.pop('gridwidth', None) - self['gridwidth'] = gridwidth if gridwidth is not None else _v - _v = arg.pop('range', None) - self['range'] = range if range is not None else _v - _v = arg.pop('showgrid', None) - self['showgrid'] = showgrid if showgrid is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("gridcolor", None) + self["gridcolor"] = gridcolor if gridcolor is not None else _v + _v = arg.pop("gridwidth", None) + self["gridwidth"] = gridwidth if gridwidth is not None else _v + _v = arg.pop("range", None) + self["range"] = range if range is not None else _v + _v = arg.pop("showgrid", None) + self["showgrid"] = showgrid if showgrid is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v # Process unknown kwargs # ---------------------- @@ -837,11 +829,11 @@ def column(self): ------- int """ - return self['column'] + return self["column"] @column.setter def column(self, val): - self['column'] = val + self["column"] = val # row # --- @@ -862,11 +854,11 @@ def row(self): ------- int """ - return self['row'] + return self["row"] @row.setter def row(self, val): - self['row'] = val + self["row"] = val # x # - @@ -890,11 +882,11 @@ def x(self): ------- list """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -918,17 +910,17 @@ def y(self): ------- list """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.geo' + return "layout.geo" # Self properties description # --------------------------- @@ -961,9 +953,7 @@ def _prop_descriptions(self): both. """ - def __init__( - self, arg=None, column=None, row=None, x=None, y=None, **kwargs - ): + def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): """ Construct a new Domain object @@ -1001,7 +991,7 @@ def __init__( ------- Domain """ - super(Domain, self).__init__('domain') + super(Domain, self).__init__("domain") # Validate arg # ------------ @@ -1021,29 +1011,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.geo import (domain as v_domain) + from plotly.validators.layout.geo import domain as v_domain # Initialize validators # --------------------- - self._validators['column'] = v_domain.ColumnValidator() - self._validators['row'] = v_domain.RowValidator() - self._validators['x'] = v_domain.XValidator() - self._validators['y'] = v_domain.YValidator() + self._validators["column"] = v_domain.ColumnValidator() + self._validators["row"] = v_domain.RowValidator() + self._validators["x"] = v_domain.XValidator() + self._validators["y"] = v_domain.YValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('column', None) - self['column'] = column if column is not None else _v - _v = arg.pop('row', None) - self['row'] = row if row is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v + _v = arg.pop("column", None) + self["column"] = column if column is not None else _v + _v = arg.pop("row", None) + self["row"] = row if row is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v # Process unknown kwargs # ---------------------- @@ -1076,11 +1066,11 @@ def lat(self): ------- int|float """ - return self['lat'] + return self["lat"] @lat.setter def lat(self, val): - self['lat'] = val + self["lat"] = val # lon # --- @@ -1099,17 +1089,17 @@ def lon(self): ------- int|float """ - return self['lon'] + return self["lon"] @lon.setter def lon(self, val): - self['lon'] = val + self["lon"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.geo' + return "layout.geo" # Self properties description # --------------------------- @@ -1150,7 +1140,7 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): ------- Center """ - super(Center, self).__init__('center') + super(Center, self).__init__("center") # Validate arg # ------------ @@ -1170,23 +1160,23 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.geo import (center as v_center) + from plotly.validators.layout.geo import center as v_center # Initialize validators # --------------------- - self._validators['lat'] = v_center.LatValidator() - self._validators['lon'] = v_center.LonValidator() + self._validators["lat"] = v_center.LatValidator() + self._validators["lon"] = v_center.LonValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('lat', None) - self['lat'] = lat if lat is not None else _v - _v = arg.pop('lon', None) - self['lon'] = lon if lon is not None else _v + _v = arg.pop("lat", None) + self["lat"] = lat if lat is not None else _v + _v = arg.pop("lon", None) + self["lon"] = lon if lon is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/geo/projection/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/geo/projection/__init__.py index be637299cf0..e6f7bcf7020 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/geo/projection/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/geo/projection/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -20,11 +18,11 @@ def lat(self): ------- int|float """ - return self['lat'] + return self["lat"] @lat.setter def lat(self, val): - self['lat'] = val + self["lat"] = val # lon # --- @@ -41,11 +39,11 @@ def lon(self): ------- int|float """ - return self['lon'] + return self["lon"] @lon.setter def lon(self, val): - self['lon'] = val + self["lon"] = val # roll # ---- @@ -62,17 +60,17 @@ def roll(self): ------- int|float """ - return self['roll'] + return self["roll"] @roll.setter def roll(self, val): - self['roll'] = val + self["roll"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.geo.projection' + return "layout.geo.projection" # Self properties description # --------------------------- @@ -112,7 +110,7 @@ def __init__(self, arg=None, lat=None, lon=None, roll=None, **kwargs): ------- Rotation """ - super(Rotation, self).__init__('rotation') + super(Rotation, self).__init__("rotation") # Validate arg # ------------ @@ -132,28 +130,26 @@ def __init__(self, arg=None, lat=None, lon=None, roll=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.geo.projection import ( - rotation as v_rotation - ) + from plotly.validators.layout.geo.projection import rotation as v_rotation # Initialize validators # --------------------- - self._validators['lat'] = v_rotation.LatValidator() - self._validators['lon'] = v_rotation.LonValidator() - self._validators['roll'] = v_rotation.RollValidator() + self._validators["lat"] = v_rotation.LatValidator() + self._validators["lon"] = v_rotation.LonValidator() + self._validators["roll"] = v_rotation.RollValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('lat', None) - self['lat'] = lat if lat is not None else _v - _v = arg.pop('lon', None) - self['lon'] = lon if lon is not None else _v - _v = arg.pop('roll', None) - self['roll'] = roll if roll is not None else _v + _v = arg.pop("lat", None) + self["lat"] = lat if lat is not None else _v + _v = arg.pop("lon", None) + self["lon"] = lon if lon is not None else _v + _v = arg.pop("roll", None) + self["roll"] = roll if roll is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/grid/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/grid/__init__.py index a4021fabc34..9b2ba9e9316 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/grid/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/grid/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -27,11 +25,11 @@ def x(self): ------- list """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -54,17 +52,17 @@ def y(self): ------- list """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.grid' + return "layout.grid" # Self properties description # --------------------------- @@ -103,7 +101,7 @@ def __init__(self, arg=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__('domain') + super(Domain, self).__init__("domain") # Validate arg # ------------ @@ -123,23 +121,23 @@ def __init__(self, arg=None, x=None, y=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.grid import (domain as v_domain) + from plotly.validators.layout.grid import domain as v_domain # Initialize validators # --------------------- - self._validators['x'] = v_domain.XValidator() - self._validators['y'] = v_domain.YValidator() + self._validators["x"] = v_domain.XValidator() + self._validators["y"] = v_domain.YValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/hoverlabel/__init__.py index ee274653e0f..ddae3c507d8 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.hoverlabel' + return "layout.hoverlabel" # Self properties description # --------------------------- @@ -178,7 +176,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -198,26 +196,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.hoverlabel import (font as v_font) + from plotly.validators.layout.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/legend/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/legend/__init__.py index 30b65f8d194..f20db6da2f4 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/legend/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/legend/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.legend' + return "layout.legend" # Self properties description # --------------------------- @@ -177,7 +175,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -197,26 +195,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.legend import (font as v_font) + from plotly.validators.layout.legend import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/mapbox/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/mapbox/__init__.py index e9077b21558..33d194f6128 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/mapbox/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/mapbox/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -23,11 +21,11 @@ def below(self): ------- str """ - return self['below'] + return self["below"] @below.setter def below(self, val): - self['below'] = val + self["below"] = val # circle # ------ @@ -51,11 +49,11 @@ def circle(self): ------- plotly.graph_objs.layout.mapbox.layer.Circle """ - return self['circle'] + return self["circle"] @circle.setter def circle(self, val): - self['circle'] = val + self["circle"] = val # color # ----- @@ -116,11 +114,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # fill # ---- @@ -144,11 +142,11 @@ def fill(self): ------- plotly.graph_objs.layout.mapbox.layer.Fill """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # line # ---- @@ -179,11 +177,11 @@ def line(self): ------- plotly.graph_objs.layout.mapbox.layer.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # maxzoom # ------- @@ -201,11 +199,11 @@ def maxzoom(self): ------- int|float """ - return self['maxzoom'] + return self["maxzoom"] @maxzoom.setter def maxzoom(self, val): - self['maxzoom'] = val + self["maxzoom"] = val # minzoom # ------- @@ -222,11 +220,11 @@ def minzoom(self): ------- int|float """ - return self['minzoom'] + return self["minzoom"] @minzoom.setter def minzoom(self, val): - self['minzoom'] = val + self["minzoom"] = val # name # ---- @@ -249,11 +247,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -276,11 +274,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # source # ------ @@ -298,11 +296,11 @@ def source(self): ------- Any """ - return self['source'] + return self["source"] @source.setter def source(self, val): - self['source'] = val + self["source"] = val # sourcelayer # ----------- @@ -321,11 +319,11 @@ def sourcelayer(self): ------- str """ - return self['sourcelayer'] + return self["sourcelayer"] @sourcelayer.setter def sourcelayer(self, val): - self['sourcelayer'] = val + self["sourcelayer"] = val # sourcetype # ---------- @@ -343,11 +341,11 @@ def sourcetype(self): ------- Any """ - return self['sourcetype'] + return self["sourcetype"] @sourcetype.setter def sourcetype(self, val): - self['sourcetype'] = val + self["sourcetype"] = val # symbol # ------ @@ -395,11 +393,11 @@ def symbol(self): ------- plotly.graph_objs.layout.mapbox.layer.Symbol """ - return self['symbol'] + return self["symbol"] @symbol.setter def symbol(self, val): - self['symbol'] = val + self["symbol"] = val # templateitemname # ---------------- @@ -423,11 +421,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # type # ---- @@ -446,11 +444,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # visible # ------- @@ -466,17 +464,17 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.mapbox' + return "layout.mapbox" # Self properties description # --------------------------- @@ -687,7 +685,7 @@ def __init__( ------- Layer """ - super(Layer, self).__init__('layers') + super(Layer, self).__init__("layers") # Validate arg # ------------ @@ -707,67 +705,67 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.mapbox import (layer as v_layer) + from plotly.validators.layout.mapbox import layer as v_layer # Initialize validators # --------------------- - self._validators['below'] = v_layer.BelowValidator() - self._validators['circle'] = v_layer.CircleValidator() - self._validators['color'] = v_layer.ColorValidator() - self._validators['fill'] = v_layer.FillValidator() - self._validators['line'] = v_layer.LineValidator() - self._validators['maxzoom'] = v_layer.MaxzoomValidator() - self._validators['minzoom'] = v_layer.MinzoomValidator() - self._validators['name'] = v_layer.NameValidator() - self._validators['opacity'] = v_layer.OpacityValidator() - self._validators['source'] = v_layer.SourceValidator() - self._validators['sourcelayer'] = v_layer.SourcelayerValidator() - self._validators['sourcetype'] = v_layer.SourcetypeValidator() - self._validators['symbol'] = v_layer.SymbolValidator() - self._validators['templateitemname' - ] = v_layer.TemplateitemnameValidator() - self._validators['type'] = v_layer.TypeValidator() - self._validators['visible'] = v_layer.VisibleValidator() + self._validators["below"] = v_layer.BelowValidator() + self._validators["circle"] = v_layer.CircleValidator() + self._validators["color"] = v_layer.ColorValidator() + self._validators["fill"] = v_layer.FillValidator() + self._validators["line"] = v_layer.LineValidator() + self._validators["maxzoom"] = v_layer.MaxzoomValidator() + self._validators["minzoom"] = v_layer.MinzoomValidator() + self._validators["name"] = v_layer.NameValidator() + self._validators["opacity"] = v_layer.OpacityValidator() + self._validators["source"] = v_layer.SourceValidator() + self._validators["sourcelayer"] = v_layer.SourcelayerValidator() + self._validators["sourcetype"] = v_layer.SourcetypeValidator() + self._validators["symbol"] = v_layer.SymbolValidator() + self._validators["templateitemname"] = v_layer.TemplateitemnameValidator() + self._validators["type"] = v_layer.TypeValidator() + self._validators["visible"] = v_layer.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('below', None) - self['below'] = below if below is not None else _v - _v = arg.pop('circle', None) - self['circle'] = circle if circle is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('maxzoom', None) - self['maxzoom'] = maxzoom if maxzoom is not None else _v - _v = arg.pop('minzoom', None) - self['minzoom'] = minzoom if minzoom is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('source', None) - self['source'] = source if source is not None else _v - _v = arg.pop('sourcelayer', None) - self['sourcelayer'] = sourcelayer if sourcelayer is not None else _v - _v = arg.pop('sourcetype', None) - self['sourcetype'] = sourcetype if sourcetype is not None else _v - _v = arg.pop('symbol', None) - self['symbol'] = symbol if symbol is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("below", None) + self["below"] = below if below is not None else _v + _v = arg.pop("circle", None) + self["circle"] = circle if circle is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("maxzoom", None) + self["maxzoom"] = maxzoom if maxzoom is not None else _v + _v = arg.pop("minzoom", None) + self["minzoom"] = minzoom if minzoom is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("source", None) + self["source"] = source if source is not None else _v + _v = arg.pop("sourcelayer", None) + self["sourcelayer"] = sourcelayer if sourcelayer is not None else _v + _v = arg.pop("sourcetype", None) + self["sourcetype"] = sourcetype if sourcetype is not None else _v + _v = arg.pop("symbol", None) + self["symbol"] = symbol if symbol is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- @@ -800,11 +798,11 @@ def column(self): ------- int """ - return self['column'] + return self["column"] @column.setter def column(self, val): - self['column'] = val + self["column"] = val # row # --- @@ -822,11 +820,11 @@ def row(self): ------- int """ - return self['row'] + return self["row"] @row.setter def row(self, val): - self['row'] = val + self["row"] = val # x # - @@ -848,11 +846,11 @@ def x(self): ------- list """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -874,17 +872,17 @@ def y(self): ------- list """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.mapbox' + return "layout.mapbox" # Self properties description # --------------------------- @@ -905,9 +903,7 @@ def _prop_descriptions(self): plot fraction). """ - def __init__( - self, arg=None, column=None, row=None, x=None, y=None, **kwargs - ): + def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): """ Construct a new Domain object @@ -933,7 +929,7 @@ def __init__( ------- Domain """ - super(Domain, self).__init__('domain') + super(Domain, self).__init__("domain") # Validate arg # ------------ @@ -953,29 +949,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.mapbox import (domain as v_domain) + from plotly.validators.layout.mapbox import domain as v_domain # Initialize validators # --------------------- - self._validators['column'] = v_domain.ColumnValidator() - self._validators['row'] = v_domain.RowValidator() - self._validators['x'] = v_domain.XValidator() - self._validators['y'] = v_domain.YValidator() + self._validators["column"] = v_domain.ColumnValidator() + self._validators["row"] = v_domain.RowValidator() + self._validators["x"] = v_domain.XValidator() + self._validators["y"] = v_domain.YValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('column', None) - self['column'] = column if column is not None else _v - _v = arg.pop('row', None) - self['row'] = row if row is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v + _v = arg.pop("column", None) + self["column"] = column if column is not None else _v + _v = arg.pop("row", None) + self["row"] = row if row is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v # Process unknown kwargs # ---------------------- @@ -1006,11 +1002,11 @@ def lat(self): ------- int|float """ - return self['lat'] + return self["lat"] @lat.setter def lat(self, val): - self['lat'] = val + self["lat"] = val # lon # --- @@ -1026,17 +1022,17 @@ def lon(self): ------- int|float """ - return self['lon'] + return self["lon"] @lon.setter def lon(self, val): - self['lon'] = val + self["lon"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.mapbox' + return "layout.mapbox" # Self properties description # --------------------------- @@ -1071,7 +1067,7 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): ------- Center """ - super(Center, self).__init__('center') + super(Center, self).__init__("center") # Validate arg # ------------ @@ -1091,23 +1087,23 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.mapbox import (center as v_center) + from plotly.validators.layout.mapbox import center as v_center # Initialize validators # --------------------- - self._validators['lat'] = v_center.LatValidator() - self._validators['lon'] = v_center.LonValidator() + self._validators["lat"] = v_center.LatValidator() + self._validators["lon"] = v_center.LonValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('lat', None) - self['lat'] = lat if lat is not None else _v - _v = arg.pop('lon', None) - self['lon'] = lon if lon is not None else _v + _v = arg.pop("lat", None) + self["lat"] = lat if lat is not None else _v + _v = arg.pop("lon", None) + self["lon"] = lon if lon is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/__init__.py index 2a0528842a2..48448639c90 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -22,11 +20,11 @@ def icon(self): ------- str """ - return self['icon'] + return self["icon"] @icon.setter def icon(self, val): - self['icon'] = val + self["icon"] = val # iconsize # -------- @@ -43,11 +41,11 @@ def iconsize(self): ------- int|float """ - return self['iconsize'] + return self["iconsize"] @iconsize.setter def iconsize(self, val): - self['iconsize'] = val + self["iconsize"] = val # placement # --------- @@ -69,11 +67,11 @@ def placement(self): ------- Any """ - return self['placement'] + return self["placement"] @placement.setter def placement(self, val): - self['placement'] = val + self["placement"] = val # text # ---- @@ -90,11 +88,11 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textfont # -------- @@ -137,11 +135,11 @@ def textfont(self): ------- plotly.graph_objs.layout.mapbox.layer.symbol.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # textposition # ------------ @@ -161,17 +159,17 @@ def textposition(self): ------- Any """ - return self['textposition'] + return self["textposition"] @textposition.setter def textposition(self, val): - self['textposition'] = val + self["textposition"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.mapbox.layer' + return "layout.mapbox.layer" # Self properties description # --------------------------- @@ -253,7 +251,7 @@ def __init__( ------- Symbol """ - super(Symbol, self).__init__('symbol') + super(Symbol, self).__init__("symbol") # Validate arg # ------------ @@ -273,35 +271,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.mapbox.layer import (symbol as v_symbol) + from plotly.validators.layout.mapbox.layer import symbol as v_symbol # Initialize validators # --------------------- - self._validators['icon'] = v_symbol.IconValidator() - self._validators['iconsize'] = v_symbol.IconsizeValidator() - self._validators['placement'] = v_symbol.PlacementValidator() - self._validators['text'] = v_symbol.TextValidator() - self._validators['textfont'] = v_symbol.TextfontValidator() - self._validators['textposition'] = v_symbol.TextpositionValidator() + self._validators["icon"] = v_symbol.IconValidator() + self._validators["iconsize"] = v_symbol.IconsizeValidator() + self._validators["placement"] = v_symbol.PlacementValidator() + self._validators["text"] = v_symbol.TextValidator() + self._validators["textfont"] = v_symbol.TextfontValidator() + self._validators["textposition"] = v_symbol.TextpositionValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('icon', None) - self['icon'] = icon if icon is not None else _v - _v = arg.pop('iconsize', None) - self['iconsize'] = iconsize if iconsize is not None else _v - _v = arg.pop('placement', None) - self['placement'] = placement if placement is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v - _v = arg.pop('textposition', None) - self['textposition'] = textposition if textposition is not None else _v + _v = arg.pop("icon", None) + self["icon"] = icon if icon is not None else _v + _v = arg.pop("iconsize", None) + self["iconsize"] = iconsize if iconsize is not None else _v + _v = arg.pop("placement", None) + self["placement"] = placement if placement is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v + _v = arg.pop("textposition", None) + self["textposition"] = textposition if textposition is not None else _v # Process unknown kwargs # ---------------------- @@ -333,11 +331,11 @@ def dash(self): ------- numpy.ndarray """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # dashsrc # ------- @@ -353,11 +351,11 @@ def dashsrc(self): ------- str """ - return self['dashsrc'] + return self["dashsrc"] @dashsrc.setter def dashsrc(self, val): - self['dashsrc'] = val + self["dashsrc"] = val # width # ----- @@ -374,17 +372,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.mapbox.layer' + return "layout.mapbox.layer" # Self properties description # --------------------------- @@ -402,9 +400,7 @@ def _prop_descriptions(self): Has an effect only when `type` is set to "line". """ - def __init__( - self, arg=None, dash=None, dashsrc=None, width=None, **kwargs - ): + def __init__(self, arg=None, dash=None, dashsrc=None, width=None, **kwargs): """ Construct a new Line object @@ -428,7 +424,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -448,26 +444,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.mapbox.layer import (line as v_line) + from plotly.validators.layout.mapbox.layer import line as v_line # Initialize validators # --------------------- - self._validators['dash'] = v_line.DashValidator() - self._validators['dashsrc'] = v_line.DashsrcValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["dashsrc"] = v_line.DashsrcValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('dashsrc', None) - self['dashsrc'] = dashsrc if dashsrc is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("dashsrc", None) + self["dashsrc"] = dashsrc if dashsrc is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -538,17 +534,17 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.mapbox.layer' + return "layout.mapbox.layer" # Self properties description # --------------------------- @@ -580,7 +576,7 @@ def __init__(self, arg=None, outlinecolor=None, **kwargs): ------- Fill """ - super(Fill, self).__init__('fill') + super(Fill, self).__init__("fill") # Validate arg # ------------ @@ -600,20 +596,20 @@ def __init__(self, arg=None, outlinecolor=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.mapbox.layer import (fill as v_fill) + from plotly.validators.layout.mapbox.layer import fill as v_fill # Initialize validators # --------------------- - self._validators['outlinecolor'] = v_fill.OutlinecolorValidator() + self._validators["outlinecolor"] = v_fill.OutlinecolorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v # Process unknown kwargs # ---------------------- @@ -645,17 +641,17 @@ def radius(self): ------- int|float """ - return self['radius'] + return self["radius"] @radius.setter def radius(self, val): - self['radius'] = val + self["radius"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.mapbox.layer' + return "layout.mapbox.layer" # Self properties description # --------------------------- @@ -687,7 +683,7 @@ def __init__(self, arg=None, radius=None, **kwargs): ------- Circle """ - super(Circle, self).__init__('circle') + super(Circle, self).__init__("circle") # Validate arg # ------------ @@ -707,20 +703,20 @@ def __init__(self, arg=None, radius=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.mapbox.layer import (circle as v_circle) + from plotly.validators.layout.mapbox.layer import circle as v_circle # Initialize validators # --------------------- - self._validators['radius'] = v_circle.RadiusValidator() + self._validators["radius"] = v_circle.RadiusValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('radius', None) - self['radius'] = radius if radius is not None else _v + _v = arg.pop("radius", None) + self["radius"] = radius if radius is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/symbol/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/symbol/__init__.py index ce53c754159..b987ac66dff 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/symbol/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/mapbox/layer/symbol/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.mapbox.layer.symbol' + return "layout.mapbox.layer.symbol" # Self properties description # --------------------------- @@ -180,7 +178,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -200,28 +198,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.mapbox.layer.symbol import ( - textfont as v_textfont - ) + from plotly.validators.layout.mapbox.layer.symbol import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() - self._validators['family'] = v_textfont.FamilyValidator() - self._validators['size'] = v_textfont.SizeValidator() + self._validators["color"] = v_textfont.ColorValidator() + self._validators["family"] = v_textfont.FamilyValidator() + self._validators["size"] = v_textfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/polar/__init__.py index f12d9415b41..992fc787f89 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -26,11 +24,11 @@ def angle(self): ------- int|float """ - return self['angle'] + return self["angle"] @angle.setter def angle(self, val): - self['angle'] = val + self["angle"] = val # autorange # --------- @@ -49,11 +47,11 @@ def autorange(self): ------- Any """ - return self['autorange'] + return self["autorange"] @autorange.setter def autorange(self, val): - self['autorange'] = val + self["autorange"] = val # calendar # -------- @@ -76,11 +74,11 @@ def calendar(self): ------- Any """ - return self['calendar'] + return self["calendar"] @calendar.setter def calendar(self, val): - self['calendar'] = val + self["calendar"] = val # categoryarray # ------------- @@ -98,11 +96,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self['categoryarray'] + return self["categoryarray"] @categoryarray.setter def categoryarray(self, val): - self['categoryarray'] = val + self["categoryarray"] = val # categoryarraysrc # ---------------- @@ -118,11 +116,11 @@ def categoryarraysrc(self): ------- str """ - return self['categoryarraysrc'] + return self["categoryarraysrc"] @categoryarraysrc.setter def categoryarraysrc(self, val): - self['categoryarraysrc'] = val + self["categoryarraysrc"] = val # categoryorder # ------------- @@ -158,11 +156,11 @@ def categoryorder(self): ------- Any """ - return self['categoryorder'] + return self["categoryorder"] @categoryorder.setter def categoryorder(self, val): - self['categoryorder'] = val + self["categoryorder"] = val # color # ----- @@ -220,11 +218,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dtick # ----- @@ -258,11 +256,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -283,11 +281,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # gridcolor # --------- @@ -342,11 +340,11 @@ def gridcolor(self): ------- str """ - return self['gridcolor'] + return self["gridcolor"] @gridcolor.setter def gridcolor(self, val): - self['gridcolor'] = val + self["gridcolor"] = val # gridwidth # --------- @@ -362,11 +360,11 @@ def gridwidth(self): ------- int|float """ - return self['gridwidth'] + return self["gridwidth"] @gridwidth.setter def gridwidth(self, val): - self['gridwidth'] = val + self["gridwidth"] = val # hoverformat # ----------- @@ -391,11 +389,11 @@ def hoverformat(self): ------- str """ - return self['hoverformat'] + return self["hoverformat"] @hoverformat.setter def hoverformat(self, val): - self['hoverformat'] = val + self["hoverformat"] = val # layer # ----- @@ -417,11 +415,11 @@ def layer(self): ------- Any """ - return self['layer'] + return self["layer"] @layer.setter def layer(self, val): - self['layer'] = val + self["layer"] = val # linecolor # --------- @@ -476,11 +474,11 @@ def linecolor(self): ------- str """ - return self['linecolor'] + return self["linecolor"] @linecolor.setter def linecolor(self, val): - self['linecolor'] = val + self["linecolor"] = val # linewidth # --------- @@ -496,11 +494,11 @@ def linewidth(self): ------- int|float """ - return self['linewidth'] + return self["linewidth"] @linewidth.setter def linewidth(self, val): - self['linewidth'] = val + self["linewidth"] = val # nticks # ------ @@ -520,11 +518,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # range # ----- @@ -550,11 +548,11 @@ def range(self): ------- list """ - return self['range'] + return self["range"] @range.setter def range(self, val): - self['range'] = val + self["range"] = val # rangemode # --------- @@ -575,11 +573,11 @@ def rangemode(self): ------- Any """ - return self['rangemode'] + return self["rangemode"] @rangemode.setter def rangemode(self, val): - self['rangemode'] = val + self["rangemode"] = val # separatethousands # ----------------- @@ -595,11 +593,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -619,11 +617,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showgrid # -------- @@ -640,11 +638,11 @@ def showgrid(self): ------- bool """ - return self['showgrid'] + return self["showgrid"] @showgrid.setter def showgrid(self, val): - self['showgrid'] = val + self["showgrid"] = val # showline # -------- @@ -660,11 +658,11 @@ def showline(self): ------- bool """ - return self['showline'] + return self["showline"] @showline.setter def showline(self, val): - self['showline'] = val + self["showline"] = val # showticklabels # -------------- @@ -680,11 +678,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -704,11 +702,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -725,11 +723,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # side # ---- @@ -747,11 +745,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # tick0 # ----- @@ -774,11 +772,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -798,11 +796,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -857,11 +855,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -902,11 +900,11 @@ def tickfont(self): ------- plotly.graph_objs.layout.polar.radialaxis.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -931,11 +929,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -988,11 +986,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.layout.polar.radialaxis.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1015,11 +1013,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.layout.polar.radialaxis.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1035,11 +1033,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1062,11 +1060,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1083,11 +1081,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1106,11 +1104,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1127,11 +1125,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1149,11 +1147,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1169,11 +1167,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1190,11 +1188,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1210,11 +1208,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1230,11 +1228,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1264,11 +1262,11 @@ def title(self): ------- plotly.graph_objs.layout.polar.radialaxis.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1312,11 +1310,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # type # ---- @@ -1335,11 +1333,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # uirevision # ---------- @@ -1356,11 +1354,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -1378,17 +1376,17 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.polar' + return "layout.polar" # Self properties description # --------------------------- @@ -1639,7 +1637,7 @@ def _prop_descriptions(self): cheater plot is present on the axis, otherwise false """ - _mapped_properties = {'titlefont': ('title', 'font')} + _mapped_properties = {"titlefont": ("title", "font")} def __init__( self, @@ -1950,7 +1948,7 @@ def __init__( ------- RadialAxis """ - super(RadialAxis, self).__init__('radialaxis') + super(RadialAxis, self).__init__("radialaxis") # Validate arg # ------------ @@ -1970,183 +1968,172 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.polar import (radialaxis as v_radialaxis) + from plotly.validators.layout.polar import radialaxis as v_radialaxis # Initialize validators # --------------------- - self._validators['angle'] = v_radialaxis.AngleValidator() - self._validators['autorange'] = v_radialaxis.AutorangeValidator() - self._validators['calendar'] = v_radialaxis.CalendarValidator() - self._validators['categoryarray' - ] = v_radialaxis.CategoryarrayValidator() - self._validators['categoryarraysrc' - ] = v_radialaxis.CategoryarraysrcValidator() - self._validators['categoryorder' - ] = v_radialaxis.CategoryorderValidator() - self._validators['color'] = v_radialaxis.ColorValidator() - self._validators['dtick'] = v_radialaxis.DtickValidator() - self._validators['exponentformat' - ] = v_radialaxis.ExponentformatValidator() - self._validators['gridcolor'] = v_radialaxis.GridcolorValidator() - self._validators['gridwidth'] = v_radialaxis.GridwidthValidator() - self._validators['hoverformat'] = v_radialaxis.HoverformatValidator() - self._validators['layer'] = v_radialaxis.LayerValidator() - self._validators['linecolor'] = v_radialaxis.LinecolorValidator() - self._validators['linewidth'] = v_radialaxis.LinewidthValidator() - self._validators['nticks'] = v_radialaxis.NticksValidator() - self._validators['range'] = v_radialaxis.RangeValidator() - self._validators['rangemode'] = v_radialaxis.RangemodeValidator() - self._validators['separatethousands' - ] = v_radialaxis.SeparatethousandsValidator() - self._validators['showexponent'] = v_radialaxis.ShowexponentValidator() - self._validators['showgrid'] = v_radialaxis.ShowgridValidator() - self._validators['showline'] = v_radialaxis.ShowlineValidator() - self._validators['showticklabels' - ] = v_radialaxis.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_radialaxis.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_radialaxis.ShowticksuffixValidator() - self._validators['side'] = v_radialaxis.SideValidator() - self._validators['tick0'] = v_radialaxis.Tick0Validator() - self._validators['tickangle'] = v_radialaxis.TickangleValidator() - self._validators['tickcolor'] = v_radialaxis.TickcolorValidator() - self._validators['tickfont'] = v_radialaxis.TickfontValidator() - self._validators['tickformat'] = v_radialaxis.TickformatValidator() - self._validators['tickformatstops' - ] = v_radialaxis.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_radialaxis.TickformatstopValidator() - self._validators['ticklen'] = v_radialaxis.TicklenValidator() - self._validators['tickmode'] = v_radialaxis.TickmodeValidator() - self._validators['tickprefix'] = v_radialaxis.TickprefixValidator() - self._validators['ticks'] = v_radialaxis.TicksValidator() - self._validators['ticksuffix'] = v_radialaxis.TicksuffixValidator() - self._validators['ticktext'] = v_radialaxis.TicktextValidator() - self._validators['ticktextsrc'] = v_radialaxis.TicktextsrcValidator() - self._validators['tickvals'] = v_radialaxis.TickvalsValidator() - self._validators['tickvalssrc'] = v_radialaxis.TickvalssrcValidator() - self._validators['tickwidth'] = v_radialaxis.TickwidthValidator() - self._validators['title'] = v_radialaxis.TitleValidator() - self._validators['type'] = v_radialaxis.TypeValidator() - self._validators['uirevision'] = v_radialaxis.UirevisionValidator() - self._validators['visible'] = v_radialaxis.VisibleValidator() + self._validators["angle"] = v_radialaxis.AngleValidator() + self._validators["autorange"] = v_radialaxis.AutorangeValidator() + self._validators["calendar"] = v_radialaxis.CalendarValidator() + self._validators["categoryarray"] = v_radialaxis.CategoryarrayValidator() + self._validators["categoryarraysrc"] = v_radialaxis.CategoryarraysrcValidator() + self._validators["categoryorder"] = v_radialaxis.CategoryorderValidator() + self._validators["color"] = v_radialaxis.ColorValidator() + self._validators["dtick"] = v_radialaxis.DtickValidator() + self._validators["exponentformat"] = v_radialaxis.ExponentformatValidator() + self._validators["gridcolor"] = v_radialaxis.GridcolorValidator() + self._validators["gridwidth"] = v_radialaxis.GridwidthValidator() + self._validators["hoverformat"] = v_radialaxis.HoverformatValidator() + self._validators["layer"] = v_radialaxis.LayerValidator() + self._validators["linecolor"] = v_radialaxis.LinecolorValidator() + self._validators["linewidth"] = v_radialaxis.LinewidthValidator() + self._validators["nticks"] = v_radialaxis.NticksValidator() + self._validators["range"] = v_radialaxis.RangeValidator() + self._validators["rangemode"] = v_radialaxis.RangemodeValidator() + self._validators[ + "separatethousands" + ] = v_radialaxis.SeparatethousandsValidator() + self._validators["showexponent"] = v_radialaxis.ShowexponentValidator() + self._validators["showgrid"] = v_radialaxis.ShowgridValidator() + self._validators["showline"] = v_radialaxis.ShowlineValidator() + self._validators["showticklabels"] = v_radialaxis.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_radialaxis.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_radialaxis.ShowticksuffixValidator() + self._validators["side"] = v_radialaxis.SideValidator() + self._validators["tick0"] = v_radialaxis.Tick0Validator() + self._validators["tickangle"] = v_radialaxis.TickangleValidator() + self._validators["tickcolor"] = v_radialaxis.TickcolorValidator() + self._validators["tickfont"] = v_radialaxis.TickfontValidator() + self._validators["tickformat"] = v_radialaxis.TickformatValidator() + self._validators["tickformatstops"] = v_radialaxis.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_radialaxis.TickformatstopValidator() + self._validators["ticklen"] = v_radialaxis.TicklenValidator() + self._validators["tickmode"] = v_radialaxis.TickmodeValidator() + self._validators["tickprefix"] = v_radialaxis.TickprefixValidator() + self._validators["ticks"] = v_radialaxis.TicksValidator() + self._validators["ticksuffix"] = v_radialaxis.TicksuffixValidator() + self._validators["ticktext"] = v_radialaxis.TicktextValidator() + self._validators["ticktextsrc"] = v_radialaxis.TicktextsrcValidator() + self._validators["tickvals"] = v_radialaxis.TickvalsValidator() + self._validators["tickvalssrc"] = v_radialaxis.TickvalssrcValidator() + self._validators["tickwidth"] = v_radialaxis.TickwidthValidator() + self._validators["title"] = v_radialaxis.TitleValidator() + self._validators["type"] = v_radialaxis.TypeValidator() + self._validators["uirevision"] = v_radialaxis.UirevisionValidator() + self._validators["visible"] = v_radialaxis.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('angle', None) - self['angle'] = angle if angle is not None else _v - _v = arg.pop('autorange', None) - self['autorange'] = autorange if autorange is not None else _v - _v = arg.pop('calendar', None) - self['calendar'] = calendar if calendar is not None else _v - _v = arg.pop('categoryarray', None) - self['categoryarray' - ] = categoryarray if categoryarray is not None else _v - _v = arg.pop('categoryarraysrc', None) - self['categoryarraysrc' - ] = categoryarraysrc if categoryarraysrc is not None else _v - _v = arg.pop('categoryorder', None) - self['categoryorder' - ] = categoryorder if categoryorder is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('gridcolor', None) - self['gridcolor'] = gridcolor if gridcolor is not None else _v - _v = arg.pop('gridwidth', None) - self['gridwidth'] = gridwidth if gridwidth is not None else _v - _v = arg.pop('hoverformat', None) - self['hoverformat'] = hoverformat if hoverformat is not None else _v - _v = arg.pop('layer', None) - self['layer'] = layer if layer is not None else _v - _v = arg.pop('linecolor', None) - self['linecolor'] = linecolor if linecolor is not None else _v - _v = arg.pop('linewidth', None) - self['linewidth'] = linewidth if linewidth is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('range', None) - self['range'] = range if range is not None else _v - _v = arg.pop('rangemode', None) - self['rangemode'] = rangemode if rangemode is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showgrid', None) - self['showgrid'] = showgrid if showgrid is not None else _v - _v = arg.pop('showline', None) - self['showline'] = showline if showline is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("angle", None) + self["angle"] = angle if angle is not None else _v + _v = arg.pop("autorange", None) + self["autorange"] = autorange if autorange is not None else _v + _v = arg.pop("calendar", None) + self["calendar"] = calendar if calendar is not None else _v + _v = arg.pop("categoryarray", None) + self["categoryarray"] = categoryarray if categoryarray is not None else _v + _v = arg.pop("categoryarraysrc", None) + self["categoryarraysrc"] = ( + categoryarraysrc if categoryarraysrc is not None else _v + ) + _v = arg.pop("categoryorder", None) + self["categoryorder"] = categoryorder if categoryorder is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("gridcolor", None) + self["gridcolor"] = gridcolor if gridcolor is not None else _v + _v = arg.pop("gridwidth", None) + self["gridwidth"] = gridwidth if gridwidth is not None else _v + _v = arg.pop("hoverformat", None) + self["hoverformat"] = hoverformat if hoverformat is not None else _v + _v = arg.pop("layer", None) + self["layer"] = layer if layer is not None else _v + _v = arg.pop("linecolor", None) + self["linecolor"] = linecolor if linecolor is not None else _v + _v = arg.pop("linewidth", None) + self["linewidth"] = linewidth if linewidth is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("range", None) + self["range"] = range if range is not None else _v + _v = arg.pop("rangemode", None) + self["rangemode"] = rangemode if rangemode is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showgrid", None) + self["showgrid"] = showgrid if showgrid is not None else _v + _v = arg.pop("showline", None) + self["showline"] = showline if showline is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + self["titlefont"] = _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- @@ -2179,11 +2166,11 @@ def column(self): ------- int """ - return self['column'] + return self["column"] @column.setter def column(self, val): - self['column'] = val + self["column"] = val # row # --- @@ -2201,11 +2188,11 @@ def row(self): ------- int """ - return self['row'] + return self["row"] @row.setter def row(self, val): - self['row'] = val + self["row"] = val # x # - @@ -2227,11 +2214,11 @@ def x(self): ------- list """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -2253,17 +2240,17 @@ def y(self): ------- list """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.polar' + return "layout.polar" # Self properties description # --------------------------- @@ -2284,9 +2271,7 @@ def _prop_descriptions(self): fraction). """ - def __init__( - self, arg=None, column=None, row=None, x=None, y=None, **kwargs - ): + def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): """ Construct a new Domain object @@ -2312,7 +2297,7 @@ def __init__( ------- Domain """ - super(Domain, self).__init__('domain') + super(Domain, self).__init__("domain") # Validate arg # ------------ @@ -2332,29 +2317,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.polar import (domain as v_domain) + from plotly.validators.layout.polar import domain as v_domain # Initialize validators # --------------------- - self._validators['column'] = v_domain.ColumnValidator() - self._validators['row'] = v_domain.RowValidator() - self._validators['x'] = v_domain.XValidator() - self._validators['y'] = v_domain.YValidator() + self._validators["column"] = v_domain.ColumnValidator() + self._validators["row"] = v_domain.RowValidator() + self._validators["x"] = v_domain.XValidator() + self._validators["y"] = v_domain.YValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('column', None) - self['column'] = column if column is not None else _v - _v = arg.pop('row', None) - self['row'] = row if row is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v + _v = arg.pop("column", None) + self["column"] = column if column is not None else _v + _v = arg.pop("row", None) + self["row"] = row if row is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v # Process unknown kwargs # ---------------------- @@ -2387,11 +2372,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self['categoryarray'] + return self["categoryarray"] @categoryarray.setter def categoryarray(self, val): - self['categoryarray'] = val + self["categoryarray"] = val # categoryarraysrc # ---------------- @@ -2407,11 +2392,11 @@ def categoryarraysrc(self): ------- str """ - return self['categoryarraysrc'] + return self["categoryarraysrc"] @categoryarraysrc.setter def categoryarraysrc(self, val): - self['categoryarraysrc'] = val + self["categoryarraysrc"] = val # categoryorder # ------------- @@ -2447,11 +2432,11 @@ def categoryorder(self): ------- Any """ - return self['categoryorder'] + return self["categoryorder"] @categoryorder.setter def categoryorder(self, val): - self['categoryorder'] = val + self["categoryorder"] = val # color # ----- @@ -2509,11 +2494,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # direction # --------- @@ -2530,11 +2515,11 @@ def direction(self): ------- Any """ - return self['direction'] + return self["direction"] @direction.setter def direction(self, val): - self['direction'] = val + self["direction"] = val # dtick # ----- @@ -2568,11 +2553,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -2593,11 +2578,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # gridcolor # --------- @@ -2652,11 +2637,11 @@ def gridcolor(self): ------- str """ - return self['gridcolor'] + return self["gridcolor"] @gridcolor.setter def gridcolor(self, val): - self['gridcolor'] = val + self["gridcolor"] = val # gridwidth # --------- @@ -2672,11 +2657,11 @@ def gridwidth(self): ------- int|float """ - return self['gridwidth'] + return self["gridwidth"] @gridwidth.setter def gridwidth(self, val): - self['gridwidth'] = val + self["gridwidth"] = val # hoverformat # ----------- @@ -2701,11 +2686,11 @@ def hoverformat(self): ------- str """ - return self['hoverformat'] + return self["hoverformat"] @hoverformat.setter def hoverformat(self, val): - self['hoverformat'] = val + self["hoverformat"] = val # layer # ----- @@ -2727,11 +2712,11 @@ def layer(self): ------- Any """ - return self['layer'] + return self["layer"] @layer.setter def layer(self, val): - self['layer'] = val + self["layer"] = val # linecolor # --------- @@ -2786,11 +2771,11 @@ def linecolor(self): ------- str """ - return self['linecolor'] + return self["linecolor"] @linecolor.setter def linecolor(self, val): - self['linecolor'] = val + self["linecolor"] = val # linewidth # --------- @@ -2806,11 +2791,11 @@ def linewidth(self): ------- int|float """ - return self['linewidth'] + return self["linewidth"] @linewidth.setter def linewidth(self, val): - self['linewidth'] = val + self["linewidth"] = val # nticks # ------ @@ -2830,11 +2815,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # period # ------ @@ -2851,11 +2836,11 @@ def period(self): ------- int|float """ - return self['period'] + return self["period"] @period.setter def period(self, val): - self['period'] = val + self["period"] = val # rotation # -------- @@ -2878,11 +2863,11 @@ def rotation(self): ------- int|float """ - return self['rotation'] + return self["rotation"] @rotation.setter def rotation(self, val): - self['rotation'] = val + self["rotation"] = val # separatethousands # ----------------- @@ -2898,11 +2883,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -2922,11 +2907,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showgrid # -------- @@ -2943,11 +2928,11 @@ def showgrid(self): ------- bool """ - return self['showgrid'] + return self["showgrid"] @showgrid.setter def showgrid(self, val): - self['showgrid'] = val + self["showgrid"] = val # showline # -------- @@ -2963,11 +2948,11 @@ def showline(self): ------- bool """ - return self['showline'] + return self["showline"] @showline.setter def showline(self, val): - self['showline'] = val + self["showline"] = val # showticklabels # -------------- @@ -2983,11 +2968,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -3007,11 +2992,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -3028,11 +3013,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thetaunit # --------- @@ -3050,11 +3035,11 @@ def thetaunit(self): ------- Any """ - return self['thetaunit'] + return self["thetaunit"] @thetaunit.setter def thetaunit(self, val): - self['thetaunit'] = val + self["thetaunit"] = val # tick0 # ----- @@ -3077,11 +3062,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -3101,11 +3086,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -3160,11 +3145,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -3205,11 +3190,11 @@ def tickfont(self): ------- plotly.graph_objs.layout.polar.angularaxis.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -3234,11 +3219,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -3291,11 +3276,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.layout.polar.angularaxis.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -3318,11 +3303,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.layout.polar.angularaxis.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -3338,11 +3323,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -3365,11 +3350,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -3386,11 +3371,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -3409,11 +3394,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -3430,11 +3415,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -3452,11 +3437,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -3472,11 +3457,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -3493,11 +3478,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -3513,11 +3498,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -3533,11 +3518,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # type # ---- @@ -3557,11 +3542,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # uirevision # ---------- @@ -3577,11 +3562,11 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # visible # ------- @@ -3599,17 +3584,17 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.polar' + return "layout.polar" # Self properties description # --------------------------- @@ -4107,7 +4092,7 @@ def __init__( ------- AngularAxis """ - super(AngularAxis, self).__init__('angularaxis') + super(AngularAxis, self).__init__("angularaxis") # Validate arg # ------------ @@ -4127,173 +4112,159 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.polar import ( - angularaxis as v_angularaxis - ) + from plotly.validators.layout.polar import angularaxis as v_angularaxis # Initialize validators # --------------------- - self._validators['categoryarray' - ] = v_angularaxis.CategoryarrayValidator() - self._validators['categoryarraysrc' - ] = v_angularaxis.CategoryarraysrcValidator() - self._validators['categoryorder' - ] = v_angularaxis.CategoryorderValidator() - self._validators['color'] = v_angularaxis.ColorValidator() - self._validators['direction'] = v_angularaxis.DirectionValidator() - self._validators['dtick'] = v_angularaxis.DtickValidator() - self._validators['exponentformat' - ] = v_angularaxis.ExponentformatValidator() - self._validators['gridcolor'] = v_angularaxis.GridcolorValidator() - self._validators['gridwidth'] = v_angularaxis.GridwidthValidator() - self._validators['hoverformat'] = v_angularaxis.HoverformatValidator() - self._validators['layer'] = v_angularaxis.LayerValidator() - self._validators['linecolor'] = v_angularaxis.LinecolorValidator() - self._validators['linewidth'] = v_angularaxis.LinewidthValidator() - self._validators['nticks'] = v_angularaxis.NticksValidator() - self._validators['period'] = v_angularaxis.PeriodValidator() - self._validators['rotation'] = v_angularaxis.RotationValidator() - self._validators['separatethousands' - ] = v_angularaxis.SeparatethousandsValidator() - self._validators['showexponent'] = v_angularaxis.ShowexponentValidator( - ) - self._validators['showgrid'] = v_angularaxis.ShowgridValidator() - self._validators['showline'] = v_angularaxis.ShowlineValidator() - self._validators['showticklabels' - ] = v_angularaxis.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_angularaxis.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_angularaxis.ShowticksuffixValidator() - self._validators['thetaunit'] = v_angularaxis.ThetaunitValidator() - self._validators['tick0'] = v_angularaxis.Tick0Validator() - self._validators['tickangle'] = v_angularaxis.TickangleValidator() - self._validators['tickcolor'] = v_angularaxis.TickcolorValidator() - self._validators['tickfont'] = v_angularaxis.TickfontValidator() - self._validators['tickformat'] = v_angularaxis.TickformatValidator() - self._validators['tickformatstops' - ] = v_angularaxis.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_angularaxis.TickformatstopValidator() - self._validators['ticklen'] = v_angularaxis.TicklenValidator() - self._validators['tickmode'] = v_angularaxis.TickmodeValidator() - self._validators['tickprefix'] = v_angularaxis.TickprefixValidator() - self._validators['ticks'] = v_angularaxis.TicksValidator() - self._validators['ticksuffix'] = v_angularaxis.TicksuffixValidator() - self._validators['ticktext'] = v_angularaxis.TicktextValidator() - self._validators['ticktextsrc'] = v_angularaxis.TicktextsrcValidator() - self._validators['tickvals'] = v_angularaxis.TickvalsValidator() - self._validators['tickvalssrc'] = v_angularaxis.TickvalssrcValidator() - self._validators['tickwidth'] = v_angularaxis.TickwidthValidator() - self._validators['type'] = v_angularaxis.TypeValidator() - self._validators['uirevision'] = v_angularaxis.UirevisionValidator() - self._validators['visible'] = v_angularaxis.VisibleValidator() + self._validators["categoryarray"] = v_angularaxis.CategoryarrayValidator() + self._validators["categoryarraysrc"] = v_angularaxis.CategoryarraysrcValidator() + self._validators["categoryorder"] = v_angularaxis.CategoryorderValidator() + self._validators["color"] = v_angularaxis.ColorValidator() + self._validators["direction"] = v_angularaxis.DirectionValidator() + self._validators["dtick"] = v_angularaxis.DtickValidator() + self._validators["exponentformat"] = v_angularaxis.ExponentformatValidator() + self._validators["gridcolor"] = v_angularaxis.GridcolorValidator() + self._validators["gridwidth"] = v_angularaxis.GridwidthValidator() + self._validators["hoverformat"] = v_angularaxis.HoverformatValidator() + self._validators["layer"] = v_angularaxis.LayerValidator() + self._validators["linecolor"] = v_angularaxis.LinecolorValidator() + self._validators["linewidth"] = v_angularaxis.LinewidthValidator() + self._validators["nticks"] = v_angularaxis.NticksValidator() + self._validators["period"] = v_angularaxis.PeriodValidator() + self._validators["rotation"] = v_angularaxis.RotationValidator() + self._validators[ + "separatethousands" + ] = v_angularaxis.SeparatethousandsValidator() + self._validators["showexponent"] = v_angularaxis.ShowexponentValidator() + self._validators["showgrid"] = v_angularaxis.ShowgridValidator() + self._validators["showline"] = v_angularaxis.ShowlineValidator() + self._validators["showticklabels"] = v_angularaxis.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_angularaxis.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_angularaxis.ShowticksuffixValidator() + self._validators["thetaunit"] = v_angularaxis.ThetaunitValidator() + self._validators["tick0"] = v_angularaxis.Tick0Validator() + self._validators["tickangle"] = v_angularaxis.TickangleValidator() + self._validators["tickcolor"] = v_angularaxis.TickcolorValidator() + self._validators["tickfont"] = v_angularaxis.TickfontValidator() + self._validators["tickformat"] = v_angularaxis.TickformatValidator() + self._validators["tickformatstops"] = v_angularaxis.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_angularaxis.TickformatstopValidator() + self._validators["ticklen"] = v_angularaxis.TicklenValidator() + self._validators["tickmode"] = v_angularaxis.TickmodeValidator() + self._validators["tickprefix"] = v_angularaxis.TickprefixValidator() + self._validators["ticks"] = v_angularaxis.TicksValidator() + self._validators["ticksuffix"] = v_angularaxis.TicksuffixValidator() + self._validators["ticktext"] = v_angularaxis.TicktextValidator() + self._validators["ticktextsrc"] = v_angularaxis.TicktextsrcValidator() + self._validators["tickvals"] = v_angularaxis.TickvalsValidator() + self._validators["tickvalssrc"] = v_angularaxis.TickvalssrcValidator() + self._validators["tickwidth"] = v_angularaxis.TickwidthValidator() + self._validators["type"] = v_angularaxis.TypeValidator() + self._validators["uirevision"] = v_angularaxis.UirevisionValidator() + self._validators["visible"] = v_angularaxis.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('categoryarray', None) - self['categoryarray' - ] = categoryarray if categoryarray is not None else _v - _v = arg.pop('categoryarraysrc', None) - self['categoryarraysrc' - ] = categoryarraysrc if categoryarraysrc is not None else _v - _v = arg.pop('categoryorder', None) - self['categoryorder' - ] = categoryorder if categoryorder is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('direction', None) - self['direction'] = direction if direction is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('gridcolor', None) - self['gridcolor'] = gridcolor if gridcolor is not None else _v - _v = arg.pop('gridwidth', None) - self['gridwidth'] = gridwidth if gridwidth is not None else _v - _v = arg.pop('hoverformat', None) - self['hoverformat'] = hoverformat if hoverformat is not None else _v - _v = arg.pop('layer', None) - self['layer'] = layer if layer is not None else _v - _v = arg.pop('linecolor', None) - self['linecolor'] = linecolor if linecolor is not None else _v - _v = arg.pop('linewidth', None) - self['linewidth'] = linewidth if linewidth is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('period', None) - self['period'] = period if period is not None else _v - _v = arg.pop('rotation', None) - self['rotation'] = rotation if rotation is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showgrid', None) - self['showgrid'] = showgrid if showgrid is not None else _v - _v = arg.pop('showline', None) - self['showline'] = showline if showline is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thetaunit', None) - self['thetaunit'] = thetaunit if thetaunit is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("categoryarray", None) + self["categoryarray"] = categoryarray if categoryarray is not None else _v + _v = arg.pop("categoryarraysrc", None) + self["categoryarraysrc"] = ( + categoryarraysrc if categoryarraysrc is not None else _v + ) + _v = arg.pop("categoryorder", None) + self["categoryorder"] = categoryorder if categoryorder is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("direction", None) + self["direction"] = direction if direction is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("gridcolor", None) + self["gridcolor"] = gridcolor if gridcolor is not None else _v + _v = arg.pop("gridwidth", None) + self["gridwidth"] = gridwidth if gridwidth is not None else _v + _v = arg.pop("hoverformat", None) + self["hoverformat"] = hoverformat if hoverformat is not None else _v + _v = arg.pop("layer", None) + self["layer"] = layer if layer is not None else _v + _v = arg.pop("linecolor", None) + self["linecolor"] = linecolor if linecolor is not None else _v + _v = arg.pop("linewidth", None) + self["linewidth"] = linewidth if linewidth is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("period", None) + self["period"] = period if period is not None else _v + _v = arg.pop("rotation", None) + self["rotation"] = rotation if rotation is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showgrid", None) + self["showgrid"] = showgrid if showgrid is not None else _v + _v = arg.pop("showline", None) + self["showline"] = showline if showline is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thetaunit", None) + self["thetaunit"] = thetaunit if thetaunit is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/angularaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/polar/angularaxis/__init__.py index 61a606fdc6d..c88c2470b2c 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/angularaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/angularaxis/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -25,11 +23,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -46,11 +44,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -73,11 +71,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -101,11 +99,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -123,17 +121,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.polar.angularaxis' + return "layout.polar.angularaxis" # Self properties description # --------------------------- @@ -226,7 +224,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -246,36 +244,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.layout.polar.angularaxis import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -343,11 +343,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -374,11 +374,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -392,17 +392,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.polar.angularaxis' + return "layout.polar.angularaxis" # Self properties description # --------------------------- @@ -464,7 +464,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -484,28 +484,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.polar.angularaxis import ( - tickfont as v_tickfont - ) + from plotly.validators.layout.polar.angularaxis import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/__init__.py index c99d0a06f5f..24d2ed76c63 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.layout.polar.radialaxis.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # text # ---- @@ -69,17 +67,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.polar.radialaxis' + return "layout.polar.radialaxis" # Self properties description # --------------------------- @@ -121,7 +119,7 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -141,25 +139,23 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.polar.radialaxis import ( - title as v_title - ) + from plotly.validators.layout.polar.radialaxis import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -195,11 +191,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -216,11 +212,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -243,11 +239,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -271,11 +267,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -293,17 +289,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.polar.radialaxis' + return "layout.polar.radialaxis" # Self properties description # --------------------------- @@ -396,7 +392,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -416,36 +412,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.layout.polar.radialaxis import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -513,11 +511,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -544,11 +542,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -562,17 +560,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.polar.radialaxis' + return "layout.polar.radialaxis" # Self properties description # --------------------------- @@ -634,7 +632,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -654,28 +652,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.polar.radialaxis import ( - tickfont as v_tickfont - ) + from plotly.validators.layout.polar.radialaxis import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/title/__init__.py index 24f72b1080c..ec1c6b70660 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/polar/radialaxis/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.polar.radialaxis.title' + return "layout.polar.radialaxis.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.polar.radialaxis.title import ( - font as v_font - ) + from plotly.validators.layout.polar.radialaxis.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/__init__.py index 8dfb8c03824..ee5c9e90975 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -23,11 +21,11 @@ def autorange(self): ------- Any """ - return self['autorange'] + return self["autorange"] @autorange.setter def autorange(self, val): - self['autorange'] = val + self["autorange"] = val # backgroundcolor # --------------- @@ -82,11 +80,11 @@ def backgroundcolor(self): ------- str """ - return self['backgroundcolor'] + return self["backgroundcolor"] @backgroundcolor.setter def backgroundcolor(self, val): - self['backgroundcolor'] = val + self["backgroundcolor"] = val # calendar # -------- @@ -109,11 +107,11 @@ def calendar(self): ------- Any """ - return self['calendar'] + return self["calendar"] @calendar.setter def calendar(self, val): - self['calendar'] = val + self["calendar"] = val # categoryarray # ------------- @@ -131,11 +129,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self['categoryarray'] + return self["categoryarray"] @categoryarray.setter def categoryarray(self, val): - self['categoryarray'] = val + self["categoryarray"] = val # categoryarraysrc # ---------------- @@ -151,11 +149,11 @@ def categoryarraysrc(self): ------- str """ - return self['categoryarraysrc'] + return self["categoryarraysrc"] @categoryarraysrc.setter def categoryarraysrc(self, val): - self['categoryarraysrc'] = val + self["categoryarraysrc"] = val # categoryorder # ------------- @@ -191,11 +189,11 @@ def categoryorder(self): ------- Any """ - return self['categoryorder'] + return self["categoryorder"] @categoryorder.setter def categoryorder(self, val): - self['categoryorder'] = val + self["categoryorder"] = val # color # ----- @@ -253,11 +251,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dtick # ----- @@ -291,11 +289,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -316,11 +314,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # gridcolor # --------- @@ -375,11 +373,11 @@ def gridcolor(self): ------- str """ - return self['gridcolor'] + return self["gridcolor"] @gridcolor.setter def gridcolor(self, val): - self['gridcolor'] = val + self["gridcolor"] = val # gridwidth # --------- @@ -395,11 +393,11 @@ def gridwidth(self): ------- int|float """ - return self['gridwidth'] + return self["gridwidth"] @gridwidth.setter def gridwidth(self, val): - self['gridwidth'] = val + self["gridwidth"] = val # hoverformat # ----------- @@ -424,11 +422,11 @@ def hoverformat(self): ------- str """ - return self['hoverformat'] + return self["hoverformat"] @hoverformat.setter def hoverformat(self, val): - self['hoverformat'] = val + self["hoverformat"] = val # linecolor # --------- @@ -483,11 +481,11 @@ def linecolor(self): ------- str """ - return self['linecolor'] + return self["linecolor"] @linecolor.setter def linecolor(self, val): - self['linecolor'] = val + self["linecolor"] = val # linewidth # --------- @@ -503,11 +501,11 @@ def linewidth(self): ------- int|float """ - return self['linewidth'] + return self["linewidth"] @linewidth.setter def linewidth(self, val): - self['linewidth'] = val + self["linewidth"] = val # mirror # ------ @@ -529,11 +527,11 @@ def mirror(self): ------- Any """ - return self['mirror'] + return self["mirror"] @mirror.setter def mirror(self, val): - self['mirror'] = val + self["mirror"] = val # nticks # ------ @@ -553,11 +551,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # range # ----- @@ -583,11 +581,11 @@ def range(self): ------- list """ - return self['range'] + return self["range"] @range.setter def range(self, val): - self['range'] = val + self["range"] = val # rangemode # --------- @@ -608,11 +606,11 @@ def rangemode(self): ------- Any """ - return self['rangemode'] + return self["rangemode"] @rangemode.setter def rangemode(self, val): - self['rangemode'] = val + self["rangemode"] = val # separatethousands # ----------------- @@ -628,11 +626,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showaxeslabels # -------------- @@ -648,11 +646,11 @@ def showaxeslabels(self): ------- bool """ - return self['showaxeslabels'] + return self["showaxeslabels"] @showaxeslabels.setter def showaxeslabels(self, val): - self['showaxeslabels'] = val + self["showaxeslabels"] = val # showbackground # -------------- @@ -668,11 +666,11 @@ def showbackground(self): ------- bool """ - return self['showbackground'] + return self["showbackground"] @showbackground.setter def showbackground(self, val): - self['showbackground'] = val + self["showbackground"] = val # showexponent # ------------ @@ -692,11 +690,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showgrid # -------- @@ -713,11 +711,11 @@ def showgrid(self): ------- bool """ - return self['showgrid'] + return self["showgrid"] @showgrid.setter def showgrid(self, val): - self['showgrid'] = val + self["showgrid"] = val # showline # -------- @@ -733,11 +731,11 @@ def showline(self): ------- bool """ - return self['showline'] + return self["showline"] @showline.setter def showline(self, val): - self['showline'] = val + self["showline"] = val # showspikes # ---------- @@ -754,11 +752,11 @@ def showspikes(self): ------- bool """ - return self['showspikes'] + return self["showspikes"] @showspikes.setter def showspikes(self, val): - self['showspikes'] = val + self["showspikes"] = val # showticklabels # -------------- @@ -774,11 +772,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -798,11 +796,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -819,11 +817,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # spikecolor # ---------- @@ -878,11 +876,11 @@ def spikecolor(self): ------- str """ - return self['spikecolor'] + return self["spikecolor"] @spikecolor.setter def spikecolor(self, val): - self['spikecolor'] = val + self["spikecolor"] = val # spikesides # ---------- @@ -899,11 +897,11 @@ def spikesides(self): ------- bool """ - return self['spikesides'] + return self["spikesides"] @spikesides.setter def spikesides(self, val): - self['spikesides'] = val + self["spikesides"] = val # spikethickness # -------------- @@ -919,11 +917,11 @@ def spikethickness(self): ------- int|float """ - return self['spikethickness'] + return self["spikethickness"] @spikethickness.setter def spikethickness(self, val): - self['spikethickness'] = val + self["spikethickness"] = val # tick0 # ----- @@ -946,11 +944,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -970,11 +968,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1029,11 +1027,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1074,11 +1072,11 @@ def tickfont(self): ------- plotly.graph_objs.layout.scene.zaxis.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1103,11 +1101,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1160,11 +1158,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.layout.scene.zaxis.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1188,11 +1186,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.layout.scene.zaxis.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1208,11 +1206,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1235,11 +1233,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1256,11 +1254,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1279,11 +1277,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1300,11 +1298,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1322,11 +1320,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1342,11 +1340,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1363,11 +1361,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1383,11 +1381,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1403,11 +1401,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1437,11 +1435,11 @@ def title(self): ------- plotly.graph_objs.layout.scene.zaxis.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1484,11 +1482,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # type # ---- @@ -1507,11 +1505,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # visible # ------- @@ -1529,11 +1527,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # zeroline # -------- @@ -1551,11 +1549,11 @@ def zeroline(self): ------- bool """ - return self['zeroline'] + return self["zeroline"] @zeroline.setter def zeroline(self, val): - self['zeroline'] = val + self["zeroline"] = val # zerolinecolor # ------------- @@ -1610,11 +1608,11 @@ def zerolinecolor(self): ------- str """ - return self['zerolinecolor'] + return self["zerolinecolor"] @zerolinecolor.setter def zerolinecolor(self, val): - self['zerolinecolor'] = val + self["zerolinecolor"] = val # zerolinewidth # ------------- @@ -1630,17 +1628,17 @@ def zerolinewidth(self): ------- int|float """ - return self['zerolinewidth'] + return self["zerolinewidth"] @zerolinewidth.setter def zerolinewidth(self, val): - self['zerolinewidth'] = val + self["zerolinewidth"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene' + return "layout.scene" # Self properties description # --------------------------- @@ -1903,7 +1901,7 @@ def _prop_descriptions(self): Sets the width (in px) of the zero line. """ - _mapped_properties = {'titlefont': ('title', 'font')} + _mapped_properties = {"titlefont": ("title", "font")} def __init__( self, @@ -2232,7 +2230,7 @@ def __init__( ------- ZAxis """ - super(ZAxis, self).__init__('zaxis') + super(ZAxis, self).__init__("zaxis") # Validate arg # ------------ @@ -2252,205 +2250,189 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene import (zaxis as v_zaxis) + from plotly.validators.layout.scene import zaxis as v_zaxis # Initialize validators # --------------------- - self._validators['autorange'] = v_zaxis.AutorangeValidator() - self._validators['backgroundcolor'] = v_zaxis.BackgroundcolorValidator( - ) - self._validators['calendar'] = v_zaxis.CalendarValidator() - self._validators['categoryarray'] = v_zaxis.CategoryarrayValidator() - self._validators['categoryarraysrc' - ] = v_zaxis.CategoryarraysrcValidator() - self._validators['categoryorder'] = v_zaxis.CategoryorderValidator() - self._validators['color'] = v_zaxis.ColorValidator() - self._validators['dtick'] = v_zaxis.DtickValidator() - self._validators['exponentformat'] = v_zaxis.ExponentformatValidator() - self._validators['gridcolor'] = v_zaxis.GridcolorValidator() - self._validators['gridwidth'] = v_zaxis.GridwidthValidator() - self._validators['hoverformat'] = v_zaxis.HoverformatValidator() - self._validators['linecolor'] = v_zaxis.LinecolorValidator() - self._validators['linewidth'] = v_zaxis.LinewidthValidator() - self._validators['mirror'] = v_zaxis.MirrorValidator() - self._validators['nticks'] = v_zaxis.NticksValidator() - self._validators['range'] = v_zaxis.RangeValidator() - self._validators['rangemode'] = v_zaxis.RangemodeValidator() - self._validators['separatethousands' - ] = v_zaxis.SeparatethousandsValidator() - self._validators['showaxeslabels'] = v_zaxis.ShowaxeslabelsValidator() - self._validators['showbackground'] = v_zaxis.ShowbackgroundValidator() - self._validators['showexponent'] = v_zaxis.ShowexponentValidator() - self._validators['showgrid'] = v_zaxis.ShowgridValidator() - self._validators['showline'] = v_zaxis.ShowlineValidator() - self._validators['showspikes'] = v_zaxis.ShowspikesValidator() - self._validators['showticklabels'] = v_zaxis.ShowticklabelsValidator() - self._validators['showtickprefix'] = v_zaxis.ShowtickprefixValidator() - self._validators['showticksuffix'] = v_zaxis.ShowticksuffixValidator() - self._validators['spikecolor'] = v_zaxis.SpikecolorValidator() - self._validators['spikesides'] = v_zaxis.SpikesidesValidator() - self._validators['spikethickness'] = v_zaxis.SpikethicknessValidator() - self._validators['tick0'] = v_zaxis.Tick0Validator() - self._validators['tickangle'] = v_zaxis.TickangleValidator() - self._validators['tickcolor'] = v_zaxis.TickcolorValidator() - self._validators['tickfont'] = v_zaxis.TickfontValidator() - self._validators['tickformat'] = v_zaxis.TickformatValidator() - self._validators['tickformatstops'] = v_zaxis.TickformatstopsValidator( - ) - self._validators['tickformatstopdefaults' - ] = v_zaxis.TickformatstopValidator() - self._validators['ticklen'] = v_zaxis.TicklenValidator() - self._validators['tickmode'] = v_zaxis.TickmodeValidator() - self._validators['tickprefix'] = v_zaxis.TickprefixValidator() - self._validators['ticks'] = v_zaxis.TicksValidator() - self._validators['ticksuffix'] = v_zaxis.TicksuffixValidator() - self._validators['ticktext'] = v_zaxis.TicktextValidator() - self._validators['ticktextsrc'] = v_zaxis.TicktextsrcValidator() - self._validators['tickvals'] = v_zaxis.TickvalsValidator() - self._validators['tickvalssrc'] = v_zaxis.TickvalssrcValidator() - self._validators['tickwidth'] = v_zaxis.TickwidthValidator() - self._validators['title'] = v_zaxis.TitleValidator() - self._validators['type'] = v_zaxis.TypeValidator() - self._validators['visible'] = v_zaxis.VisibleValidator() - self._validators['zeroline'] = v_zaxis.ZerolineValidator() - self._validators['zerolinecolor'] = v_zaxis.ZerolinecolorValidator() - self._validators['zerolinewidth'] = v_zaxis.ZerolinewidthValidator() + self._validators["autorange"] = v_zaxis.AutorangeValidator() + self._validators["backgroundcolor"] = v_zaxis.BackgroundcolorValidator() + self._validators["calendar"] = v_zaxis.CalendarValidator() + self._validators["categoryarray"] = v_zaxis.CategoryarrayValidator() + self._validators["categoryarraysrc"] = v_zaxis.CategoryarraysrcValidator() + self._validators["categoryorder"] = v_zaxis.CategoryorderValidator() + self._validators["color"] = v_zaxis.ColorValidator() + self._validators["dtick"] = v_zaxis.DtickValidator() + self._validators["exponentformat"] = v_zaxis.ExponentformatValidator() + self._validators["gridcolor"] = v_zaxis.GridcolorValidator() + self._validators["gridwidth"] = v_zaxis.GridwidthValidator() + self._validators["hoverformat"] = v_zaxis.HoverformatValidator() + self._validators["linecolor"] = v_zaxis.LinecolorValidator() + self._validators["linewidth"] = v_zaxis.LinewidthValidator() + self._validators["mirror"] = v_zaxis.MirrorValidator() + self._validators["nticks"] = v_zaxis.NticksValidator() + self._validators["range"] = v_zaxis.RangeValidator() + self._validators["rangemode"] = v_zaxis.RangemodeValidator() + self._validators["separatethousands"] = v_zaxis.SeparatethousandsValidator() + self._validators["showaxeslabels"] = v_zaxis.ShowaxeslabelsValidator() + self._validators["showbackground"] = v_zaxis.ShowbackgroundValidator() + self._validators["showexponent"] = v_zaxis.ShowexponentValidator() + self._validators["showgrid"] = v_zaxis.ShowgridValidator() + self._validators["showline"] = v_zaxis.ShowlineValidator() + self._validators["showspikes"] = v_zaxis.ShowspikesValidator() + self._validators["showticklabels"] = v_zaxis.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_zaxis.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_zaxis.ShowticksuffixValidator() + self._validators["spikecolor"] = v_zaxis.SpikecolorValidator() + self._validators["spikesides"] = v_zaxis.SpikesidesValidator() + self._validators["spikethickness"] = v_zaxis.SpikethicknessValidator() + self._validators["tick0"] = v_zaxis.Tick0Validator() + self._validators["tickangle"] = v_zaxis.TickangleValidator() + self._validators["tickcolor"] = v_zaxis.TickcolorValidator() + self._validators["tickfont"] = v_zaxis.TickfontValidator() + self._validators["tickformat"] = v_zaxis.TickformatValidator() + self._validators["tickformatstops"] = v_zaxis.TickformatstopsValidator() + self._validators["tickformatstopdefaults"] = v_zaxis.TickformatstopValidator() + self._validators["ticklen"] = v_zaxis.TicklenValidator() + self._validators["tickmode"] = v_zaxis.TickmodeValidator() + self._validators["tickprefix"] = v_zaxis.TickprefixValidator() + self._validators["ticks"] = v_zaxis.TicksValidator() + self._validators["ticksuffix"] = v_zaxis.TicksuffixValidator() + self._validators["ticktext"] = v_zaxis.TicktextValidator() + self._validators["ticktextsrc"] = v_zaxis.TicktextsrcValidator() + self._validators["tickvals"] = v_zaxis.TickvalsValidator() + self._validators["tickvalssrc"] = v_zaxis.TickvalssrcValidator() + self._validators["tickwidth"] = v_zaxis.TickwidthValidator() + self._validators["title"] = v_zaxis.TitleValidator() + self._validators["type"] = v_zaxis.TypeValidator() + self._validators["visible"] = v_zaxis.VisibleValidator() + self._validators["zeroline"] = v_zaxis.ZerolineValidator() + self._validators["zerolinecolor"] = v_zaxis.ZerolinecolorValidator() + self._validators["zerolinewidth"] = v_zaxis.ZerolinewidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autorange', None) - self['autorange'] = autorange if autorange is not None else _v - _v = arg.pop('backgroundcolor', None) - self['backgroundcolor' - ] = backgroundcolor if backgroundcolor is not None else _v - _v = arg.pop('calendar', None) - self['calendar'] = calendar if calendar is not None else _v - _v = arg.pop('categoryarray', None) - self['categoryarray' - ] = categoryarray if categoryarray is not None else _v - _v = arg.pop('categoryarraysrc', None) - self['categoryarraysrc' - ] = categoryarraysrc if categoryarraysrc is not None else _v - _v = arg.pop('categoryorder', None) - self['categoryorder' - ] = categoryorder if categoryorder is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('gridcolor', None) - self['gridcolor'] = gridcolor if gridcolor is not None else _v - _v = arg.pop('gridwidth', None) - self['gridwidth'] = gridwidth if gridwidth is not None else _v - _v = arg.pop('hoverformat', None) - self['hoverformat'] = hoverformat if hoverformat is not None else _v - _v = arg.pop('linecolor', None) - self['linecolor'] = linecolor if linecolor is not None else _v - _v = arg.pop('linewidth', None) - self['linewidth'] = linewidth if linewidth is not None else _v - _v = arg.pop('mirror', None) - self['mirror'] = mirror if mirror is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('range', None) - self['range'] = range if range is not None else _v - _v = arg.pop('rangemode', None) - self['rangemode'] = rangemode if rangemode is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showaxeslabels', None) - self['showaxeslabels' - ] = showaxeslabels if showaxeslabels is not None else _v - _v = arg.pop('showbackground', None) - self['showbackground' - ] = showbackground if showbackground is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showgrid', None) - self['showgrid'] = showgrid if showgrid is not None else _v - _v = arg.pop('showline', None) - self['showline'] = showline if showline is not None else _v - _v = arg.pop('showspikes', None) - self['showspikes'] = showspikes if showspikes is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('spikecolor', None) - self['spikecolor'] = spikecolor if spikecolor is not None else _v - _v = arg.pop('spikesides', None) - self['spikesides'] = spikesides if spikesides is not None else _v - _v = arg.pop('spikethickness', None) - self['spikethickness' - ] = spikethickness if spikethickness is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("autorange", None) + self["autorange"] = autorange if autorange is not None else _v + _v = arg.pop("backgroundcolor", None) + self["backgroundcolor"] = backgroundcolor if backgroundcolor is not None else _v + _v = arg.pop("calendar", None) + self["calendar"] = calendar if calendar is not None else _v + _v = arg.pop("categoryarray", None) + self["categoryarray"] = categoryarray if categoryarray is not None else _v + _v = arg.pop("categoryarraysrc", None) + self["categoryarraysrc"] = ( + categoryarraysrc if categoryarraysrc is not None else _v + ) + _v = arg.pop("categoryorder", None) + self["categoryorder"] = categoryorder if categoryorder is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("gridcolor", None) + self["gridcolor"] = gridcolor if gridcolor is not None else _v + _v = arg.pop("gridwidth", None) + self["gridwidth"] = gridwidth if gridwidth is not None else _v + _v = arg.pop("hoverformat", None) + self["hoverformat"] = hoverformat if hoverformat is not None else _v + _v = arg.pop("linecolor", None) + self["linecolor"] = linecolor if linecolor is not None else _v + _v = arg.pop("linewidth", None) + self["linewidth"] = linewidth if linewidth is not None else _v + _v = arg.pop("mirror", None) + self["mirror"] = mirror if mirror is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("range", None) + self["range"] = range if range is not None else _v + _v = arg.pop("rangemode", None) + self["rangemode"] = rangemode if rangemode is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showaxeslabels", None) + self["showaxeslabels"] = showaxeslabels if showaxeslabels is not None else _v + _v = arg.pop("showbackground", None) + self["showbackground"] = showbackground if showbackground is not None else _v + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showgrid", None) + self["showgrid"] = showgrid if showgrid is not None else _v + _v = arg.pop("showline", None) + self["showline"] = showline if showline is not None else _v + _v = arg.pop("showspikes", None) + self["showspikes"] = showspikes if showspikes is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("spikecolor", None) + self["spikecolor"] = spikecolor if spikecolor is not None else _v + _v = arg.pop("spikesides", None) + self["spikesides"] = spikesides if spikesides is not None else _v + _v = arg.pop("spikethickness", None) + self["spikethickness"] = spikethickness if spikethickness is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('zeroline', None) - self['zeroline'] = zeroline if zeroline is not None else _v - _v = arg.pop('zerolinecolor', None) - self['zerolinecolor' - ] = zerolinecolor if zerolinecolor is not None else _v - _v = arg.pop('zerolinewidth', None) - self['zerolinewidth' - ] = zerolinewidth if zerolinewidth is not None else _v + self["titlefont"] = _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("zeroline", None) + self["zeroline"] = zeroline if zeroline is not None else _v + _v = arg.pop("zerolinecolor", None) + self["zerolinecolor"] = zerolinecolor if zerolinecolor is not None else _v + _v = arg.pop("zerolinewidth", None) + self["zerolinewidth"] = zerolinewidth if zerolinewidth is not None else _v # Process unknown kwargs # ---------------------- @@ -2484,11 +2466,11 @@ def autorange(self): ------- Any """ - return self['autorange'] + return self["autorange"] @autorange.setter def autorange(self, val): - self['autorange'] = val + self["autorange"] = val # backgroundcolor # --------------- @@ -2543,11 +2525,11 @@ def backgroundcolor(self): ------- str """ - return self['backgroundcolor'] + return self["backgroundcolor"] @backgroundcolor.setter def backgroundcolor(self, val): - self['backgroundcolor'] = val + self["backgroundcolor"] = val # calendar # -------- @@ -2570,11 +2552,11 @@ def calendar(self): ------- Any """ - return self['calendar'] + return self["calendar"] @calendar.setter def calendar(self, val): - self['calendar'] = val + self["calendar"] = val # categoryarray # ------------- @@ -2592,11 +2574,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self['categoryarray'] + return self["categoryarray"] @categoryarray.setter def categoryarray(self, val): - self['categoryarray'] = val + self["categoryarray"] = val # categoryarraysrc # ---------------- @@ -2612,11 +2594,11 @@ def categoryarraysrc(self): ------- str """ - return self['categoryarraysrc'] + return self["categoryarraysrc"] @categoryarraysrc.setter def categoryarraysrc(self, val): - self['categoryarraysrc'] = val + self["categoryarraysrc"] = val # categoryorder # ------------- @@ -2652,11 +2634,11 @@ def categoryorder(self): ------- Any """ - return self['categoryorder'] + return self["categoryorder"] @categoryorder.setter def categoryorder(self, val): - self['categoryorder'] = val + self["categoryorder"] = val # color # ----- @@ -2714,11 +2696,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dtick # ----- @@ -2752,11 +2734,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -2777,11 +2759,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # gridcolor # --------- @@ -2836,11 +2818,11 @@ def gridcolor(self): ------- str """ - return self['gridcolor'] + return self["gridcolor"] @gridcolor.setter def gridcolor(self, val): - self['gridcolor'] = val + self["gridcolor"] = val # gridwidth # --------- @@ -2856,11 +2838,11 @@ def gridwidth(self): ------- int|float """ - return self['gridwidth'] + return self["gridwidth"] @gridwidth.setter def gridwidth(self, val): - self['gridwidth'] = val + self["gridwidth"] = val # hoverformat # ----------- @@ -2885,11 +2867,11 @@ def hoverformat(self): ------- str """ - return self['hoverformat'] + return self["hoverformat"] @hoverformat.setter def hoverformat(self, val): - self['hoverformat'] = val + self["hoverformat"] = val # linecolor # --------- @@ -2944,11 +2926,11 @@ def linecolor(self): ------- str """ - return self['linecolor'] + return self["linecolor"] @linecolor.setter def linecolor(self, val): - self['linecolor'] = val + self["linecolor"] = val # linewidth # --------- @@ -2964,11 +2946,11 @@ def linewidth(self): ------- int|float """ - return self['linewidth'] + return self["linewidth"] @linewidth.setter def linewidth(self, val): - self['linewidth'] = val + self["linewidth"] = val # mirror # ------ @@ -2990,11 +2972,11 @@ def mirror(self): ------- Any """ - return self['mirror'] + return self["mirror"] @mirror.setter def mirror(self, val): - self['mirror'] = val + self["mirror"] = val # nticks # ------ @@ -3014,11 +2996,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # range # ----- @@ -3044,11 +3026,11 @@ def range(self): ------- list """ - return self['range'] + return self["range"] @range.setter def range(self, val): - self['range'] = val + self["range"] = val # rangemode # --------- @@ -3069,11 +3051,11 @@ def rangemode(self): ------- Any """ - return self['rangemode'] + return self["rangemode"] @rangemode.setter def rangemode(self, val): - self['rangemode'] = val + self["rangemode"] = val # separatethousands # ----------------- @@ -3089,11 +3071,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showaxeslabels # -------------- @@ -3109,11 +3091,11 @@ def showaxeslabels(self): ------- bool """ - return self['showaxeslabels'] + return self["showaxeslabels"] @showaxeslabels.setter def showaxeslabels(self, val): - self['showaxeslabels'] = val + self["showaxeslabels"] = val # showbackground # -------------- @@ -3129,11 +3111,11 @@ def showbackground(self): ------- bool """ - return self['showbackground'] + return self["showbackground"] @showbackground.setter def showbackground(self, val): - self['showbackground'] = val + self["showbackground"] = val # showexponent # ------------ @@ -3153,11 +3135,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showgrid # -------- @@ -3174,11 +3156,11 @@ def showgrid(self): ------- bool """ - return self['showgrid'] + return self["showgrid"] @showgrid.setter def showgrid(self, val): - self['showgrid'] = val + self["showgrid"] = val # showline # -------- @@ -3194,11 +3176,11 @@ def showline(self): ------- bool """ - return self['showline'] + return self["showline"] @showline.setter def showline(self, val): - self['showline'] = val + self["showline"] = val # showspikes # ---------- @@ -3215,11 +3197,11 @@ def showspikes(self): ------- bool """ - return self['showspikes'] + return self["showspikes"] @showspikes.setter def showspikes(self, val): - self['showspikes'] = val + self["showspikes"] = val # showticklabels # -------------- @@ -3235,11 +3217,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -3259,11 +3241,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -3280,11 +3262,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # spikecolor # ---------- @@ -3339,11 +3321,11 @@ def spikecolor(self): ------- str """ - return self['spikecolor'] + return self["spikecolor"] @spikecolor.setter def spikecolor(self, val): - self['spikecolor'] = val + self["spikecolor"] = val # spikesides # ---------- @@ -3360,11 +3342,11 @@ def spikesides(self): ------- bool """ - return self['spikesides'] + return self["spikesides"] @spikesides.setter def spikesides(self, val): - self['spikesides'] = val + self["spikesides"] = val # spikethickness # -------------- @@ -3380,11 +3362,11 @@ def spikethickness(self): ------- int|float """ - return self['spikethickness'] + return self["spikethickness"] @spikethickness.setter def spikethickness(self, val): - self['spikethickness'] = val + self["spikethickness"] = val # tick0 # ----- @@ -3407,11 +3389,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -3431,11 +3413,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -3490,11 +3472,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -3535,11 +3517,11 @@ def tickfont(self): ------- plotly.graph_objs.layout.scene.yaxis.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -3564,11 +3546,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -3621,11 +3603,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.layout.scene.yaxis.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -3649,11 +3631,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.layout.scene.yaxis.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -3669,11 +3651,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -3696,11 +3678,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -3717,11 +3699,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -3740,11 +3722,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -3761,11 +3743,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -3783,11 +3765,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -3803,11 +3785,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -3824,11 +3806,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -3844,11 +3826,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -3864,11 +3846,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -3898,11 +3880,11 @@ def title(self): ------- plotly.graph_objs.layout.scene.yaxis.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -3945,11 +3927,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # type # ---- @@ -3968,11 +3950,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # visible # ------- @@ -3990,11 +3972,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # zeroline # -------- @@ -4012,11 +3994,11 @@ def zeroline(self): ------- bool """ - return self['zeroline'] + return self["zeroline"] @zeroline.setter def zeroline(self, val): - self['zeroline'] = val + self["zeroline"] = val # zerolinecolor # ------------- @@ -4071,11 +4053,11 @@ def zerolinecolor(self): ------- str """ - return self['zerolinecolor'] + return self["zerolinecolor"] @zerolinecolor.setter def zerolinecolor(self, val): - self['zerolinecolor'] = val + self["zerolinecolor"] = val # zerolinewidth # ------------- @@ -4091,17 +4073,17 @@ def zerolinewidth(self): ------- int|float """ - return self['zerolinewidth'] + return self["zerolinewidth"] @zerolinewidth.setter def zerolinewidth(self, val): - self['zerolinewidth'] = val + self["zerolinewidth"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene' + return "layout.scene" # Self properties description # --------------------------- @@ -4364,7 +4346,7 @@ def _prop_descriptions(self): Sets the width (in px) of the zero line. """ - _mapped_properties = {'titlefont': ('title', 'font')} + _mapped_properties = {"titlefont": ("title", "font")} def __init__( self, @@ -4693,7 +4675,7 @@ def __init__( ------- YAxis """ - super(YAxis, self).__init__('yaxis') + super(YAxis, self).__init__("yaxis") # Validate arg # ------------ @@ -4713,205 +4695,189 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene import (yaxis as v_yaxis) + from plotly.validators.layout.scene import yaxis as v_yaxis # Initialize validators # --------------------- - self._validators['autorange'] = v_yaxis.AutorangeValidator() - self._validators['backgroundcolor'] = v_yaxis.BackgroundcolorValidator( - ) - self._validators['calendar'] = v_yaxis.CalendarValidator() - self._validators['categoryarray'] = v_yaxis.CategoryarrayValidator() - self._validators['categoryarraysrc' - ] = v_yaxis.CategoryarraysrcValidator() - self._validators['categoryorder'] = v_yaxis.CategoryorderValidator() - self._validators['color'] = v_yaxis.ColorValidator() - self._validators['dtick'] = v_yaxis.DtickValidator() - self._validators['exponentformat'] = v_yaxis.ExponentformatValidator() - self._validators['gridcolor'] = v_yaxis.GridcolorValidator() - self._validators['gridwidth'] = v_yaxis.GridwidthValidator() - self._validators['hoverformat'] = v_yaxis.HoverformatValidator() - self._validators['linecolor'] = v_yaxis.LinecolorValidator() - self._validators['linewidth'] = v_yaxis.LinewidthValidator() - self._validators['mirror'] = v_yaxis.MirrorValidator() - self._validators['nticks'] = v_yaxis.NticksValidator() - self._validators['range'] = v_yaxis.RangeValidator() - self._validators['rangemode'] = v_yaxis.RangemodeValidator() - self._validators['separatethousands' - ] = v_yaxis.SeparatethousandsValidator() - self._validators['showaxeslabels'] = v_yaxis.ShowaxeslabelsValidator() - self._validators['showbackground'] = v_yaxis.ShowbackgroundValidator() - self._validators['showexponent'] = v_yaxis.ShowexponentValidator() - self._validators['showgrid'] = v_yaxis.ShowgridValidator() - self._validators['showline'] = v_yaxis.ShowlineValidator() - self._validators['showspikes'] = v_yaxis.ShowspikesValidator() - self._validators['showticklabels'] = v_yaxis.ShowticklabelsValidator() - self._validators['showtickprefix'] = v_yaxis.ShowtickprefixValidator() - self._validators['showticksuffix'] = v_yaxis.ShowticksuffixValidator() - self._validators['spikecolor'] = v_yaxis.SpikecolorValidator() - self._validators['spikesides'] = v_yaxis.SpikesidesValidator() - self._validators['spikethickness'] = v_yaxis.SpikethicknessValidator() - self._validators['tick0'] = v_yaxis.Tick0Validator() - self._validators['tickangle'] = v_yaxis.TickangleValidator() - self._validators['tickcolor'] = v_yaxis.TickcolorValidator() - self._validators['tickfont'] = v_yaxis.TickfontValidator() - self._validators['tickformat'] = v_yaxis.TickformatValidator() - self._validators['tickformatstops'] = v_yaxis.TickformatstopsValidator( - ) - self._validators['tickformatstopdefaults' - ] = v_yaxis.TickformatstopValidator() - self._validators['ticklen'] = v_yaxis.TicklenValidator() - self._validators['tickmode'] = v_yaxis.TickmodeValidator() - self._validators['tickprefix'] = v_yaxis.TickprefixValidator() - self._validators['ticks'] = v_yaxis.TicksValidator() - self._validators['ticksuffix'] = v_yaxis.TicksuffixValidator() - self._validators['ticktext'] = v_yaxis.TicktextValidator() - self._validators['ticktextsrc'] = v_yaxis.TicktextsrcValidator() - self._validators['tickvals'] = v_yaxis.TickvalsValidator() - self._validators['tickvalssrc'] = v_yaxis.TickvalssrcValidator() - self._validators['tickwidth'] = v_yaxis.TickwidthValidator() - self._validators['title'] = v_yaxis.TitleValidator() - self._validators['type'] = v_yaxis.TypeValidator() - self._validators['visible'] = v_yaxis.VisibleValidator() - self._validators['zeroline'] = v_yaxis.ZerolineValidator() - self._validators['zerolinecolor'] = v_yaxis.ZerolinecolorValidator() - self._validators['zerolinewidth'] = v_yaxis.ZerolinewidthValidator() + self._validators["autorange"] = v_yaxis.AutorangeValidator() + self._validators["backgroundcolor"] = v_yaxis.BackgroundcolorValidator() + self._validators["calendar"] = v_yaxis.CalendarValidator() + self._validators["categoryarray"] = v_yaxis.CategoryarrayValidator() + self._validators["categoryarraysrc"] = v_yaxis.CategoryarraysrcValidator() + self._validators["categoryorder"] = v_yaxis.CategoryorderValidator() + self._validators["color"] = v_yaxis.ColorValidator() + self._validators["dtick"] = v_yaxis.DtickValidator() + self._validators["exponentformat"] = v_yaxis.ExponentformatValidator() + self._validators["gridcolor"] = v_yaxis.GridcolorValidator() + self._validators["gridwidth"] = v_yaxis.GridwidthValidator() + self._validators["hoverformat"] = v_yaxis.HoverformatValidator() + self._validators["linecolor"] = v_yaxis.LinecolorValidator() + self._validators["linewidth"] = v_yaxis.LinewidthValidator() + self._validators["mirror"] = v_yaxis.MirrorValidator() + self._validators["nticks"] = v_yaxis.NticksValidator() + self._validators["range"] = v_yaxis.RangeValidator() + self._validators["rangemode"] = v_yaxis.RangemodeValidator() + self._validators["separatethousands"] = v_yaxis.SeparatethousandsValidator() + self._validators["showaxeslabels"] = v_yaxis.ShowaxeslabelsValidator() + self._validators["showbackground"] = v_yaxis.ShowbackgroundValidator() + self._validators["showexponent"] = v_yaxis.ShowexponentValidator() + self._validators["showgrid"] = v_yaxis.ShowgridValidator() + self._validators["showline"] = v_yaxis.ShowlineValidator() + self._validators["showspikes"] = v_yaxis.ShowspikesValidator() + self._validators["showticklabels"] = v_yaxis.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_yaxis.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_yaxis.ShowticksuffixValidator() + self._validators["spikecolor"] = v_yaxis.SpikecolorValidator() + self._validators["spikesides"] = v_yaxis.SpikesidesValidator() + self._validators["spikethickness"] = v_yaxis.SpikethicknessValidator() + self._validators["tick0"] = v_yaxis.Tick0Validator() + self._validators["tickangle"] = v_yaxis.TickangleValidator() + self._validators["tickcolor"] = v_yaxis.TickcolorValidator() + self._validators["tickfont"] = v_yaxis.TickfontValidator() + self._validators["tickformat"] = v_yaxis.TickformatValidator() + self._validators["tickformatstops"] = v_yaxis.TickformatstopsValidator() + self._validators["tickformatstopdefaults"] = v_yaxis.TickformatstopValidator() + self._validators["ticklen"] = v_yaxis.TicklenValidator() + self._validators["tickmode"] = v_yaxis.TickmodeValidator() + self._validators["tickprefix"] = v_yaxis.TickprefixValidator() + self._validators["ticks"] = v_yaxis.TicksValidator() + self._validators["ticksuffix"] = v_yaxis.TicksuffixValidator() + self._validators["ticktext"] = v_yaxis.TicktextValidator() + self._validators["ticktextsrc"] = v_yaxis.TicktextsrcValidator() + self._validators["tickvals"] = v_yaxis.TickvalsValidator() + self._validators["tickvalssrc"] = v_yaxis.TickvalssrcValidator() + self._validators["tickwidth"] = v_yaxis.TickwidthValidator() + self._validators["title"] = v_yaxis.TitleValidator() + self._validators["type"] = v_yaxis.TypeValidator() + self._validators["visible"] = v_yaxis.VisibleValidator() + self._validators["zeroline"] = v_yaxis.ZerolineValidator() + self._validators["zerolinecolor"] = v_yaxis.ZerolinecolorValidator() + self._validators["zerolinewidth"] = v_yaxis.ZerolinewidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autorange', None) - self['autorange'] = autorange if autorange is not None else _v - _v = arg.pop('backgroundcolor', None) - self['backgroundcolor' - ] = backgroundcolor if backgroundcolor is not None else _v - _v = arg.pop('calendar', None) - self['calendar'] = calendar if calendar is not None else _v - _v = arg.pop('categoryarray', None) - self['categoryarray' - ] = categoryarray if categoryarray is not None else _v - _v = arg.pop('categoryarraysrc', None) - self['categoryarraysrc' - ] = categoryarraysrc if categoryarraysrc is not None else _v - _v = arg.pop('categoryorder', None) - self['categoryorder' - ] = categoryorder if categoryorder is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('gridcolor', None) - self['gridcolor'] = gridcolor if gridcolor is not None else _v - _v = arg.pop('gridwidth', None) - self['gridwidth'] = gridwidth if gridwidth is not None else _v - _v = arg.pop('hoverformat', None) - self['hoverformat'] = hoverformat if hoverformat is not None else _v - _v = arg.pop('linecolor', None) - self['linecolor'] = linecolor if linecolor is not None else _v - _v = arg.pop('linewidth', None) - self['linewidth'] = linewidth if linewidth is not None else _v - _v = arg.pop('mirror', None) - self['mirror'] = mirror if mirror is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('range', None) - self['range'] = range if range is not None else _v - _v = arg.pop('rangemode', None) - self['rangemode'] = rangemode if rangemode is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showaxeslabels', None) - self['showaxeslabels' - ] = showaxeslabels if showaxeslabels is not None else _v - _v = arg.pop('showbackground', None) - self['showbackground' - ] = showbackground if showbackground is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showgrid', None) - self['showgrid'] = showgrid if showgrid is not None else _v - _v = arg.pop('showline', None) - self['showline'] = showline if showline is not None else _v - _v = arg.pop('showspikes', None) - self['showspikes'] = showspikes if showspikes is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('spikecolor', None) - self['spikecolor'] = spikecolor if spikecolor is not None else _v - _v = arg.pop('spikesides', None) - self['spikesides'] = spikesides if spikesides is not None else _v - _v = arg.pop('spikethickness', None) - self['spikethickness' - ] = spikethickness if spikethickness is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("autorange", None) + self["autorange"] = autorange if autorange is not None else _v + _v = arg.pop("backgroundcolor", None) + self["backgroundcolor"] = backgroundcolor if backgroundcolor is not None else _v + _v = arg.pop("calendar", None) + self["calendar"] = calendar if calendar is not None else _v + _v = arg.pop("categoryarray", None) + self["categoryarray"] = categoryarray if categoryarray is not None else _v + _v = arg.pop("categoryarraysrc", None) + self["categoryarraysrc"] = ( + categoryarraysrc if categoryarraysrc is not None else _v + ) + _v = arg.pop("categoryorder", None) + self["categoryorder"] = categoryorder if categoryorder is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("gridcolor", None) + self["gridcolor"] = gridcolor if gridcolor is not None else _v + _v = arg.pop("gridwidth", None) + self["gridwidth"] = gridwidth if gridwidth is not None else _v + _v = arg.pop("hoverformat", None) + self["hoverformat"] = hoverformat if hoverformat is not None else _v + _v = arg.pop("linecolor", None) + self["linecolor"] = linecolor if linecolor is not None else _v + _v = arg.pop("linewidth", None) + self["linewidth"] = linewidth if linewidth is not None else _v + _v = arg.pop("mirror", None) + self["mirror"] = mirror if mirror is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("range", None) + self["range"] = range if range is not None else _v + _v = arg.pop("rangemode", None) + self["rangemode"] = rangemode if rangemode is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showaxeslabels", None) + self["showaxeslabels"] = showaxeslabels if showaxeslabels is not None else _v + _v = arg.pop("showbackground", None) + self["showbackground"] = showbackground if showbackground is not None else _v + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showgrid", None) + self["showgrid"] = showgrid if showgrid is not None else _v + _v = arg.pop("showline", None) + self["showline"] = showline if showline is not None else _v + _v = arg.pop("showspikes", None) + self["showspikes"] = showspikes if showspikes is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("spikecolor", None) + self["spikecolor"] = spikecolor if spikecolor is not None else _v + _v = arg.pop("spikesides", None) + self["spikesides"] = spikesides if spikesides is not None else _v + _v = arg.pop("spikethickness", None) + self["spikethickness"] = spikethickness if spikethickness is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('zeroline', None) - self['zeroline'] = zeroline if zeroline is not None else _v - _v = arg.pop('zerolinecolor', None) - self['zerolinecolor' - ] = zerolinecolor if zerolinecolor is not None else _v - _v = arg.pop('zerolinewidth', None) - self['zerolinewidth' - ] = zerolinewidth if zerolinewidth is not None else _v + self["titlefont"] = _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("zeroline", None) + self["zeroline"] = zeroline if zeroline is not None else _v + _v = arg.pop("zerolinecolor", None) + self["zerolinecolor"] = zerolinecolor if zerolinecolor is not None else _v + _v = arg.pop("zerolinewidth", None) + self["zerolinewidth"] = zerolinewidth if zerolinewidth is not None else _v # Process unknown kwargs # ---------------------- @@ -4945,11 +4911,11 @@ def autorange(self): ------- Any """ - return self['autorange'] + return self["autorange"] @autorange.setter def autorange(self, val): - self['autorange'] = val + self["autorange"] = val # backgroundcolor # --------------- @@ -5004,11 +4970,11 @@ def backgroundcolor(self): ------- str """ - return self['backgroundcolor'] + return self["backgroundcolor"] @backgroundcolor.setter def backgroundcolor(self, val): - self['backgroundcolor'] = val + self["backgroundcolor"] = val # calendar # -------- @@ -5031,11 +4997,11 @@ def calendar(self): ------- Any """ - return self['calendar'] + return self["calendar"] @calendar.setter def calendar(self, val): - self['calendar'] = val + self["calendar"] = val # categoryarray # ------------- @@ -5053,11 +5019,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self['categoryarray'] + return self["categoryarray"] @categoryarray.setter def categoryarray(self, val): - self['categoryarray'] = val + self["categoryarray"] = val # categoryarraysrc # ---------------- @@ -5073,11 +5039,11 @@ def categoryarraysrc(self): ------- str """ - return self['categoryarraysrc'] + return self["categoryarraysrc"] @categoryarraysrc.setter def categoryarraysrc(self, val): - self['categoryarraysrc'] = val + self["categoryarraysrc"] = val # categoryorder # ------------- @@ -5113,11 +5079,11 @@ def categoryorder(self): ------- Any """ - return self['categoryorder'] + return self["categoryorder"] @categoryorder.setter def categoryorder(self, val): - self['categoryorder'] = val + self["categoryorder"] = val # color # ----- @@ -5175,11 +5141,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dtick # ----- @@ -5213,11 +5179,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -5238,11 +5204,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # gridcolor # --------- @@ -5297,11 +5263,11 @@ def gridcolor(self): ------- str """ - return self['gridcolor'] + return self["gridcolor"] @gridcolor.setter def gridcolor(self, val): - self['gridcolor'] = val + self["gridcolor"] = val # gridwidth # --------- @@ -5317,11 +5283,11 @@ def gridwidth(self): ------- int|float """ - return self['gridwidth'] + return self["gridwidth"] @gridwidth.setter def gridwidth(self, val): - self['gridwidth'] = val + self["gridwidth"] = val # hoverformat # ----------- @@ -5346,11 +5312,11 @@ def hoverformat(self): ------- str """ - return self['hoverformat'] + return self["hoverformat"] @hoverformat.setter def hoverformat(self, val): - self['hoverformat'] = val + self["hoverformat"] = val # linecolor # --------- @@ -5405,11 +5371,11 @@ def linecolor(self): ------- str """ - return self['linecolor'] + return self["linecolor"] @linecolor.setter def linecolor(self, val): - self['linecolor'] = val + self["linecolor"] = val # linewidth # --------- @@ -5425,11 +5391,11 @@ def linewidth(self): ------- int|float """ - return self['linewidth'] + return self["linewidth"] @linewidth.setter def linewidth(self, val): - self['linewidth'] = val + self["linewidth"] = val # mirror # ------ @@ -5451,11 +5417,11 @@ def mirror(self): ------- Any """ - return self['mirror'] + return self["mirror"] @mirror.setter def mirror(self, val): - self['mirror'] = val + self["mirror"] = val # nticks # ------ @@ -5475,11 +5441,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # range # ----- @@ -5505,11 +5471,11 @@ def range(self): ------- list """ - return self['range'] + return self["range"] @range.setter def range(self, val): - self['range'] = val + self["range"] = val # rangemode # --------- @@ -5530,11 +5496,11 @@ def rangemode(self): ------- Any """ - return self['rangemode'] + return self["rangemode"] @rangemode.setter def rangemode(self, val): - self['rangemode'] = val + self["rangemode"] = val # separatethousands # ----------------- @@ -5550,11 +5516,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showaxeslabels # -------------- @@ -5570,11 +5536,11 @@ def showaxeslabels(self): ------- bool """ - return self['showaxeslabels'] + return self["showaxeslabels"] @showaxeslabels.setter def showaxeslabels(self, val): - self['showaxeslabels'] = val + self["showaxeslabels"] = val # showbackground # -------------- @@ -5590,11 +5556,11 @@ def showbackground(self): ------- bool """ - return self['showbackground'] + return self["showbackground"] @showbackground.setter def showbackground(self, val): - self['showbackground'] = val + self["showbackground"] = val # showexponent # ------------ @@ -5614,11 +5580,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showgrid # -------- @@ -5635,11 +5601,11 @@ def showgrid(self): ------- bool """ - return self['showgrid'] + return self["showgrid"] @showgrid.setter def showgrid(self, val): - self['showgrid'] = val + self["showgrid"] = val # showline # -------- @@ -5655,11 +5621,11 @@ def showline(self): ------- bool """ - return self['showline'] + return self["showline"] @showline.setter def showline(self, val): - self['showline'] = val + self["showline"] = val # showspikes # ---------- @@ -5676,11 +5642,11 @@ def showspikes(self): ------- bool """ - return self['showspikes'] + return self["showspikes"] @showspikes.setter def showspikes(self, val): - self['showspikes'] = val + self["showspikes"] = val # showticklabels # -------------- @@ -5696,11 +5662,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -5720,11 +5686,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -5741,11 +5707,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # spikecolor # ---------- @@ -5800,11 +5766,11 @@ def spikecolor(self): ------- str """ - return self['spikecolor'] + return self["spikecolor"] @spikecolor.setter def spikecolor(self, val): - self['spikecolor'] = val + self["spikecolor"] = val # spikesides # ---------- @@ -5821,11 +5787,11 @@ def spikesides(self): ------- bool """ - return self['spikesides'] + return self["spikesides"] @spikesides.setter def spikesides(self, val): - self['spikesides'] = val + self["spikesides"] = val # spikethickness # -------------- @@ -5841,11 +5807,11 @@ def spikethickness(self): ------- int|float """ - return self['spikethickness'] + return self["spikethickness"] @spikethickness.setter def spikethickness(self, val): - self['spikethickness'] = val + self["spikethickness"] = val # tick0 # ----- @@ -5868,11 +5834,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -5892,11 +5858,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -5951,11 +5917,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -5996,11 +5962,11 @@ def tickfont(self): ------- plotly.graph_objs.layout.scene.xaxis.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -6025,11 +5991,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -6082,11 +6048,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.layout.scene.xaxis.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -6110,11 +6076,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.layout.scene.xaxis.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -6130,11 +6096,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -6157,11 +6123,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -6178,11 +6144,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -6201,11 +6167,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -6222,11 +6188,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -6244,11 +6210,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -6264,11 +6230,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -6285,11 +6251,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -6305,11 +6271,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -6325,11 +6291,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -6359,11 +6325,11 @@ def title(self): ------- plotly.graph_objs.layout.scene.xaxis.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -6406,11 +6372,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # type # ---- @@ -6429,11 +6395,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # visible # ------- @@ -6451,11 +6417,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # zeroline # -------- @@ -6473,11 +6439,11 @@ def zeroline(self): ------- bool """ - return self['zeroline'] + return self["zeroline"] @zeroline.setter def zeroline(self, val): - self['zeroline'] = val + self["zeroline"] = val # zerolinecolor # ------------- @@ -6532,11 +6498,11 @@ def zerolinecolor(self): ------- str """ - return self['zerolinecolor'] + return self["zerolinecolor"] @zerolinecolor.setter def zerolinecolor(self, val): - self['zerolinecolor'] = val + self["zerolinecolor"] = val # zerolinewidth # ------------- @@ -6552,17 +6518,17 @@ def zerolinewidth(self): ------- int|float """ - return self['zerolinewidth'] + return self["zerolinewidth"] @zerolinewidth.setter def zerolinewidth(self, val): - self['zerolinewidth'] = val + self["zerolinewidth"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene' + return "layout.scene" # Self properties description # --------------------------- @@ -6825,7 +6791,7 @@ def _prop_descriptions(self): Sets the width (in px) of the zero line. """ - _mapped_properties = {'titlefont': ('title', 'font')} + _mapped_properties = {"titlefont": ("title", "font")} def __init__( self, @@ -7154,7 +7120,7 @@ def __init__( ------- XAxis """ - super(XAxis, self).__init__('xaxis') + super(XAxis, self).__init__("xaxis") # Validate arg # ------------ @@ -7174,205 +7140,189 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene import (xaxis as v_xaxis) + from plotly.validators.layout.scene import xaxis as v_xaxis # Initialize validators # --------------------- - self._validators['autorange'] = v_xaxis.AutorangeValidator() - self._validators['backgroundcolor'] = v_xaxis.BackgroundcolorValidator( - ) - self._validators['calendar'] = v_xaxis.CalendarValidator() - self._validators['categoryarray'] = v_xaxis.CategoryarrayValidator() - self._validators['categoryarraysrc' - ] = v_xaxis.CategoryarraysrcValidator() - self._validators['categoryorder'] = v_xaxis.CategoryorderValidator() - self._validators['color'] = v_xaxis.ColorValidator() - self._validators['dtick'] = v_xaxis.DtickValidator() - self._validators['exponentformat'] = v_xaxis.ExponentformatValidator() - self._validators['gridcolor'] = v_xaxis.GridcolorValidator() - self._validators['gridwidth'] = v_xaxis.GridwidthValidator() - self._validators['hoverformat'] = v_xaxis.HoverformatValidator() - self._validators['linecolor'] = v_xaxis.LinecolorValidator() - self._validators['linewidth'] = v_xaxis.LinewidthValidator() - self._validators['mirror'] = v_xaxis.MirrorValidator() - self._validators['nticks'] = v_xaxis.NticksValidator() - self._validators['range'] = v_xaxis.RangeValidator() - self._validators['rangemode'] = v_xaxis.RangemodeValidator() - self._validators['separatethousands' - ] = v_xaxis.SeparatethousandsValidator() - self._validators['showaxeslabels'] = v_xaxis.ShowaxeslabelsValidator() - self._validators['showbackground'] = v_xaxis.ShowbackgroundValidator() - self._validators['showexponent'] = v_xaxis.ShowexponentValidator() - self._validators['showgrid'] = v_xaxis.ShowgridValidator() - self._validators['showline'] = v_xaxis.ShowlineValidator() - self._validators['showspikes'] = v_xaxis.ShowspikesValidator() - self._validators['showticklabels'] = v_xaxis.ShowticklabelsValidator() - self._validators['showtickprefix'] = v_xaxis.ShowtickprefixValidator() - self._validators['showticksuffix'] = v_xaxis.ShowticksuffixValidator() - self._validators['spikecolor'] = v_xaxis.SpikecolorValidator() - self._validators['spikesides'] = v_xaxis.SpikesidesValidator() - self._validators['spikethickness'] = v_xaxis.SpikethicknessValidator() - self._validators['tick0'] = v_xaxis.Tick0Validator() - self._validators['tickangle'] = v_xaxis.TickangleValidator() - self._validators['tickcolor'] = v_xaxis.TickcolorValidator() - self._validators['tickfont'] = v_xaxis.TickfontValidator() - self._validators['tickformat'] = v_xaxis.TickformatValidator() - self._validators['tickformatstops'] = v_xaxis.TickformatstopsValidator( - ) - self._validators['tickformatstopdefaults' - ] = v_xaxis.TickformatstopValidator() - self._validators['ticklen'] = v_xaxis.TicklenValidator() - self._validators['tickmode'] = v_xaxis.TickmodeValidator() - self._validators['tickprefix'] = v_xaxis.TickprefixValidator() - self._validators['ticks'] = v_xaxis.TicksValidator() - self._validators['ticksuffix'] = v_xaxis.TicksuffixValidator() - self._validators['ticktext'] = v_xaxis.TicktextValidator() - self._validators['ticktextsrc'] = v_xaxis.TicktextsrcValidator() - self._validators['tickvals'] = v_xaxis.TickvalsValidator() - self._validators['tickvalssrc'] = v_xaxis.TickvalssrcValidator() - self._validators['tickwidth'] = v_xaxis.TickwidthValidator() - self._validators['title'] = v_xaxis.TitleValidator() - self._validators['type'] = v_xaxis.TypeValidator() - self._validators['visible'] = v_xaxis.VisibleValidator() - self._validators['zeroline'] = v_xaxis.ZerolineValidator() - self._validators['zerolinecolor'] = v_xaxis.ZerolinecolorValidator() - self._validators['zerolinewidth'] = v_xaxis.ZerolinewidthValidator() + self._validators["autorange"] = v_xaxis.AutorangeValidator() + self._validators["backgroundcolor"] = v_xaxis.BackgroundcolorValidator() + self._validators["calendar"] = v_xaxis.CalendarValidator() + self._validators["categoryarray"] = v_xaxis.CategoryarrayValidator() + self._validators["categoryarraysrc"] = v_xaxis.CategoryarraysrcValidator() + self._validators["categoryorder"] = v_xaxis.CategoryorderValidator() + self._validators["color"] = v_xaxis.ColorValidator() + self._validators["dtick"] = v_xaxis.DtickValidator() + self._validators["exponentformat"] = v_xaxis.ExponentformatValidator() + self._validators["gridcolor"] = v_xaxis.GridcolorValidator() + self._validators["gridwidth"] = v_xaxis.GridwidthValidator() + self._validators["hoverformat"] = v_xaxis.HoverformatValidator() + self._validators["linecolor"] = v_xaxis.LinecolorValidator() + self._validators["linewidth"] = v_xaxis.LinewidthValidator() + self._validators["mirror"] = v_xaxis.MirrorValidator() + self._validators["nticks"] = v_xaxis.NticksValidator() + self._validators["range"] = v_xaxis.RangeValidator() + self._validators["rangemode"] = v_xaxis.RangemodeValidator() + self._validators["separatethousands"] = v_xaxis.SeparatethousandsValidator() + self._validators["showaxeslabels"] = v_xaxis.ShowaxeslabelsValidator() + self._validators["showbackground"] = v_xaxis.ShowbackgroundValidator() + self._validators["showexponent"] = v_xaxis.ShowexponentValidator() + self._validators["showgrid"] = v_xaxis.ShowgridValidator() + self._validators["showline"] = v_xaxis.ShowlineValidator() + self._validators["showspikes"] = v_xaxis.ShowspikesValidator() + self._validators["showticklabels"] = v_xaxis.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_xaxis.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_xaxis.ShowticksuffixValidator() + self._validators["spikecolor"] = v_xaxis.SpikecolorValidator() + self._validators["spikesides"] = v_xaxis.SpikesidesValidator() + self._validators["spikethickness"] = v_xaxis.SpikethicknessValidator() + self._validators["tick0"] = v_xaxis.Tick0Validator() + self._validators["tickangle"] = v_xaxis.TickangleValidator() + self._validators["tickcolor"] = v_xaxis.TickcolorValidator() + self._validators["tickfont"] = v_xaxis.TickfontValidator() + self._validators["tickformat"] = v_xaxis.TickformatValidator() + self._validators["tickformatstops"] = v_xaxis.TickformatstopsValidator() + self._validators["tickformatstopdefaults"] = v_xaxis.TickformatstopValidator() + self._validators["ticklen"] = v_xaxis.TicklenValidator() + self._validators["tickmode"] = v_xaxis.TickmodeValidator() + self._validators["tickprefix"] = v_xaxis.TickprefixValidator() + self._validators["ticks"] = v_xaxis.TicksValidator() + self._validators["ticksuffix"] = v_xaxis.TicksuffixValidator() + self._validators["ticktext"] = v_xaxis.TicktextValidator() + self._validators["ticktextsrc"] = v_xaxis.TicktextsrcValidator() + self._validators["tickvals"] = v_xaxis.TickvalsValidator() + self._validators["tickvalssrc"] = v_xaxis.TickvalssrcValidator() + self._validators["tickwidth"] = v_xaxis.TickwidthValidator() + self._validators["title"] = v_xaxis.TitleValidator() + self._validators["type"] = v_xaxis.TypeValidator() + self._validators["visible"] = v_xaxis.VisibleValidator() + self._validators["zeroline"] = v_xaxis.ZerolineValidator() + self._validators["zerolinecolor"] = v_xaxis.ZerolinecolorValidator() + self._validators["zerolinewidth"] = v_xaxis.ZerolinewidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autorange', None) - self['autorange'] = autorange if autorange is not None else _v - _v = arg.pop('backgroundcolor', None) - self['backgroundcolor' - ] = backgroundcolor if backgroundcolor is not None else _v - _v = arg.pop('calendar', None) - self['calendar'] = calendar if calendar is not None else _v - _v = arg.pop('categoryarray', None) - self['categoryarray' - ] = categoryarray if categoryarray is not None else _v - _v = arg.pop('categoryarraysrc', None) - self['categoryarraysrc' - ] = categoryarraysrc if categoryarraysrc is not None else _v - _v = arg.pop('categoryorder', None) - self['categoryorder' - ] = categoryorder if categoryorder is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('gridcolor', None) - self['gridcolor'] = gridcolor if gridcolor is not None else _v - _v = arg.pop('gridwidth', None) - self['gridwidth'] = gridwidth if gridwidth is not None else _v - _v = arg.pop('hoverformat', None) - self['hoverformat'] = hoverformat if hoverformat is not None else _v - _v = arg.pop('linecolor', None) - self['linecolor'] = linecolor if linecolor is not None else _v - _v = arg.pop('linewidth', None) - self['linewidth'] = linewidth if linewidth is not None else _v - _v = arg.pop('mirror', None) - self['mirror'] = mirror if mirror is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('range', None) - self['range'] = range if range is not None else _v - _v = arg.pop('rangemode', None) - self['rangemode'] = rangemode if rangemode is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showaxeslabels', None) - self['showaxeslabels' - ] = showaxeslabels if showaxeslabels is not None else _v - _v = arg.pop('showbackground', None) - self['showbackground' - ] = showbackground if showbackground is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showgrid', None) - self['showgrid'] = showgrid if showgrid is not None else _v - _v = arg.pop('showline', None) - self['showline'] = showline if showline is not None else _v - _v = arg.pop('showspikes', None) - self['showspikes'] = showspikes if showspikes is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('spikecolor', None) - self['spikecolor'] = spikecolor if spikecolor is not None else _v - _v = arg.pop('spikesides', None) - self['spikesides'] = spikesides if spikesides is not None else _v - _v = arg.pop('spikethickness', None) - self['spikethickness' - ] = spikethickness if spikethickness is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("autorange", None) + self["autorange"] = autorange if autorange is not None else _v + _v = arg.pop("backgroundcolor", None) + self["backgroundcolor"] = backgroundcolor if backgroundcolor is not None else _v + _v = arg.pop("calendar", None) + self["calendar"] = calendar if calendar is not None else _v + _v = arg.pop("categoryarray", None) + self["categoryarray"] = categoryarray if categoryarray is not None else _v + _v = arg.pop("categoryarraysrc", None) + self["categoryarraysrc"] = ( + categoryarraysrc if categoryarraysrc is not None else _v + ) + _v = arg.pop("categoryorder", None) + self["categoryorder"] = categoryorder if categoryorder is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("gridcolor", None) + self["gridcolor"] = gridcolor if gridcolor is not None else _v + _v = arg.pop("gridwidth", None) + self["gridwidth"] = gridwidth if gridwidth is not None else _v + _v = arg.pop("hoverformat", None) + self["hoverformat"] = hoverformat if hoverformat is not None else _v + _v = arg.pop("linecolor", None) + self["linecolor"] = linecolor if linecolor is not None else _v + _v = arg.pop("linewidth", None) + self["linewidth"] = linewidth if linewidth is not None else _v + _v = arg.pop("mirror", None) + self["mirror"] = mirror if mirror is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("range", None) + self["range"] = range if range is not None else _v + _v = arg.pop("rangemode", None) + self["rangemode"] = rangemode if rangemode is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showaxeslabels", None) + self["showaxeslabels"] = showaxeslabels if showaxeslabels is not None else _v + _v = arg.pop("showbackground", None) + self["showbackground"] = showbackground if showbackground is not None else _v + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showgrid", None) + self["showgrid"] = showgrid if showgrid is not None else _v + _v = arg.pop("showline", None) + self["showline"] = showline if showline is not None else _v + _v = arg.pop("showspikes", None) + self["showspikes"] = showspikes if showspikes is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("spikecolor", None) + self["spikecolor"] = spikecolor if spikecolor is not None else _v + _v = arg.pop("spikesides", None) + self["spikesides"] = spikesides if spikesides is not None else _v + _v = arg.pop("spikethickness", None) + self["spikethickness"] = spikethickness if spikethickness is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('zeroline', None) - self['zeroline'] = zeroline if zeroline is not None else _v - _v = arg.pop('zerolinecolor', None) - self['zerolinecolor' - ] = zerolinecolor if zerolinecolor is not None else _v - _v = arg.pop('zerolinewidth', None) - self['zerolinewidth' - ] = zerolinewidth if zerolinewidth is not None else _v + self["titlefont"] = _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("zeroline", None) + self["zeroline"] = zeroline if zeroline is not None else _v + _v = arg.pop("zerolinecolor", None) + self["zerolinecolor"] = zerolinecolor if zerolinecolor is not None else _v + _v = arg.pop("zerolinewidth", None) + self["zerolinewidth"] = zerolinewidth if zerolinewidth is not None else _v # Process unknown kwargs # ---------------------- @@ -7405,11 +7355,11 @@ def column(self): ------- int """ - return self['column'] + return self["column"] @column.setter def column(self, val): - self['column'] = val + self["column"] = val # row # --- @@ -7427,11 +7377,11 @@ def row(self): ------- int """ - return self['row'] + return self["row"] @row.setter def row(self, val): - self['row'] = val + self["row"] = val # x # - @@ -7453,11 +7403,11 @@ def x(self): ------- list """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -7479,17 +7429,17 @@ def y(self): ------- list """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene' + return "layout.scene" # Self properties description # --------------------------- @@ -7510,9 +7460,7 @@ def _prop_descriptions(self): fraction). """ - def __init__( - self, arg=None, column=None, row=None, x=None, y=None, **kwargs - ): + def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): """ Construct a new Domain object @@ -7538,7 +7486,7 @@ def __init__( ------- Domain """ - super(Domain, self).__init__('domain') + super(Domain, self).__init__("domain") # Validate arg # ------------ @@ -7558,29 +7506,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene import (domain as v_domain) + from plotly.validators.layout.scene import domain as v_domain # Initialize validators # --------------------- - self._validators['column'] = v_domain.ColumnValidator() - self._validators['row'] = v_domain.RowValidator() - self._validators['x'] = v_domain.XValidator() - self._validators['y'] = v_domain.YValidator() + self._validators["column"] = v_domain.ColumnValidator() + self._validators["row"] = v_domain.RowValidator() + self._validators["x"] = v_domain.XValidator() + self._validators["y"] = v_domain.YValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('column', None) - self['column'] = column if column is not None else _v - _v = arg.pop('row', None) - self['row'] = row if row is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v + _v = arg.pop("column", None) + self["column"] = column if column is not None else _v + _v = arg.pop("row", None) + self["row"] = row if row is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v # Process unknown kwargs # ---------------------- @@ -7624,11 +7572,11 @@ def center(self): ------- plotly.graph_objs.layout.scene.camera.Center """ - return self['center'] + return self["center"] @center.setter def center(self, val): - self['center'] = val + self["center"] = val # eye # --- @@ -7657,11 +7605,11 @@ def eye(self): ------- plotly.graph_objs.layout.scene.camera.Eye """ - return self['eye'] + return self["eye"] @eye.setter def eye(self, val): - self['eye'] = val + self["eye"] = val # projection # ---------- @@ -7685,11 +7633,11 @@ def projection(self): ------- plotly.graph_objs.layout.scene.camera.Projection """ - return self['projection'] + return self["projection"] @projection.setter def projection(self, val): - self['projection'] = val + self["projection"] = val # up # -- @@ -7719,17 +7667,17 @@ def up(self): ------- plotly.graph_objs.layout.scene.camera.Up """ - return self['up'] + return self["up"] @up.setter def up(self, val): - self['up'] = val + self["up"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene' + return "layout.scene" # Self properties description # --------------------------- @@ -7756,13 +7704,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - center=None, - eye=None, - projection=None, - up=None, - **kwargs + self, arg=None, center=None, eye=None, projection=None, up=None, **kwargs ): """ Construct a new Camera object @@ -7794,7 +7736,7 @@ def __init__( ------- Camera """ - super(Camera, self).__init__('camera') + super(Camera, self).__init__("camera") # Validate arg # ------------ @@ -7814,29 +7756,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene import (camera as v_camera) + from plotly.validators.layout.scene import camera as v_camera # Initialize validators # --------------------- - self._validators['center'] = v_camera.CenterValidator() - self._validators['eye'] = v_camera.EyeValidator() - self._validators['projection'] = v_camera.ProjectionValidator() - self._validators['up'] = v_camera.UpValidator() + self._validators["center"] = v_camera.CenterValidator() + self._validators["eye"] = v_camera.EyeValidator() + self._validators["projection"] = v_camera.ProjectionValidator() + self._validators["up"] = v_camera.UpValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('center', None) - self['center'] = center if center is not None else _v - _v = arg.pop('eye', None) - self['eye'] = eye if eye is not None else _v - _v = arg.pop('projection', None) - self['projection'] = projection if projection is not None else _v - _v = arg.pop('up', None) - self['up'] = up if up is not None else _v + _v = arg.pop("center", None) + self["center"] = center if center is not None else _v + _v = arg.pop("eye", None) + self["eye"] = eye if eye is not None else _v + _v = arg.pop("projection", None) + self["projection"] = projection if projection is not None else _v + _v = arg.pop("up", None) + self["up"] = up if up is not None else _v # Process unknown kwargs # ---------------------- @@ -7865,11 +7807,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -7883,11 +7825,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -7901,17 +7843,17 @@ def z(self): ------- int|float """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene' + return "layout.scene" # Self properties description # --------------------------- @@ -7949,7 +7891,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Aspectratio """ - super(Aspectratio, self).__init__('aspectratio') + super(Aspectratio, self).__init__("aspectratio") # Validate arg # ------------ @@ -7969,28 +7911,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene import ( - aspectratio as v_aspectratio - ) + from plotly.validators.layout.scene import aspectratio as v_aspectratio # Initialize validators # --------------------- - self._validators['x'] = v_aspectratio.XValidator() - self._validators['y'] = v_aspectratio.YValidator() - self._validators['z'] = v_aspectratio.ZValidator() + self._validators["x"] = v_aspectratio.XValidator() + self._validators["y"] = v_aspectratio.YValidator() + self._validators["z"] = v_aspectratio.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- @@ -8025,11 +7965,11 @@ def align(self): ------- Any """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # arrowcolor # ---------- @@ -8084,11 +8024,11 @@ def arrowcolor(self): ------- str """ - return self['arrowcolor'] + return self["arrowcolor"] @arrowcolor.setter def arrowcolor(self, val): - self['arrowcolor'] = val + self["arrowcolor"] = val # arrowhead # --------- @@ -8105,11 +8045,11 @@ def arrowhead(self): ------- int """ - return self['arrowhead'] + return self["arrowhead"] @arrowhead.setter def arrowhead(self, val): - self['arrowhead'] = val + self["arrowhead"] = val # arrowside # --------- @@ -8128,11 +8068,11 @@ def arrowside(self): ------- Any """ - return self['arrowside'] + return self["arrowside"] @arrowside.setter def arrowside(self, val): - self['arrowside'] = val + self["arrowside"] = val # arrowsize # --------- @@ -8150,11 +8090,11 @@ def arrowsize(self): ------- int|float """ - return self['arrowsize'] + return self["arrowsize"] @arrowsize.setter def arrowsize(self, val): - self['arrowsize'] = val + self["arrowsize"] = val # arrowwidth # ---------- @@ -8170,11 +8110,11 @@ def arrowwidth(self): ------- int|float """ - return self['arrowwidth'] + return self["arrowwidth"] @arrowwidth.setter def arrowwidth(self, val): - self['arrowwidth'] = val + self["arrowwidth"] = val # ax # -- @@ -8191,11 +8131,11 @@ def ax(self): ------- int|float """ - return self['ax'] + return self["ax"] @ax.setter def ax(self, val): - self['ax'] = val + self["ax"] = val # ay # -- @@ -8212,11 +8152,11 @@ def ay(self): ------- int|float """ - return self['ay'] + return self["ay"] @ay.setter def ay(self, val): - self['ay'] = val + self["ay"] = val # bgcolor # ------- @@ -8271,11 +8211,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -8330,11 +8270,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderpad # --------- @@ -8351,11 +8291,11 @@ def borderpad(self): ------- int|float """ - return self['borderpad'] + return self["borderpad"] @borderpad.setter def borderpad(self, val): - self['borderpad'] = val + self["borderpad"] = val # borderwidth # ----------- @@ -8372,11 +8312,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # captureevents # ------------- @@ -8397,11 +8337,11 @@ def captureevents(self): ------- bool """ - return self['captureevents'] + return self["captureevents"] @captureevents.setter def captureevents(self, val): - self['captureevents'] = val + self["captureevents"] = val # font # ---- @@ -8442,11 +8382,11 @@ def font(self): ------- plotly.graph_objs.layout.scene.annotation.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # height # ------ @@ -8463,11 +8403,11 @@ def height(self): ------- int|float """ - return self['height'] + return self["height"] @height.setter def height(self, val): - self['height'] = val + self["height"] = val # hoverlabel # ---------- @@ -8499,11 +8439,11 @@ def hoverlabel(self): ------- plotly.graph_objs.layout.scene.annotation.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertext # --------- @@ -8521,11 +8461,11 @@ def hovertext(self): ------- str """ - return self['hovertext'] + return self["hovertext"] @hovertext.setter def hovertext(self, val): - self['hovertext'] = val + self["hovertext"] = val # name # ---- @@ -8548,11 +8488,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # opacity # ------- @@ -8568,11 +8508,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # showarrow # --------- @@ -8590,11 +8530,11 @@ def showarrow(self): ------- bool """ - return self['showarrow'] + return self["showarrow"] @showarrow.setter def showarrow(self, val): - self['showarrow'] = val + self["showarrow"] = val # standoff # -------- @@ -8614,11 +8554,11 @@ def standoff(self): ------- int|float """ - return self['standoff'] + return self["standoff"] @standoff.setter def standoff(self, val): - self['standoff'] = val + self["standoff"] = val # startarrowhead # -------------- @@ -8635,11 +8575,11 @@ def startarrowhead(self): ------- int """ - return self['startarrowhead'] + return self["startarrowhead"] @startarrowhead.setter def startarrowhead(self, val): - self['startarrowhead'] = val + self["startarrowhead"] = val # startarrowsize # -------------- @@ -8657,11 +8597,11 @@ def startarrowsize(self): ------- int|float """ - return self['startarrowsize'] + return self["startarrowsize"] @startarrowsize.setter def startarrowsize(self, val): - self['startarrowsize'] = val + self["startarrowsize"] = val # startstandoff # ------------- @@ -8681,11 +8621,11 @@ def startstandoff(self): ------- int|float """ - return self['startstandoff'] + return self["startstandoff"] @startstandoff.setter def startstandoff(self, val): - self['startstandoff'] = val + self["startstandoff"] = val # templateitemname # ---------------- @@ -8709,11 +8649,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # text # ---- @@ -8733,11 +8673,11 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # textangle # --------- @@ -8756,11 +8696,11 @@ def textangle(self): ------- int|float """ - return self['textangle'] + return self["textangle"] @textangle.setter def textangle(self, val): - self['textangle'] = val + self["textangle"] = val # valign # ------ @@ -8779,11 +8719,11 @@ def valign(self): ------- Any """ - return self['valign'] + return self["valign"] @valign.setter def valign(self, val): - self['valign'] = val + self["valign"] = val # visible # ------- @@ -8799,11 +8739,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -8821,11 +8761,11 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # x # - @@ -8840,11 +8780,11 @@ def x(self): ------- Any """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -8869,11 +8809,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xshift # ------ @@ -8890,11 +8830,11 @@ def xshift(self): ------- int|float """ - return self['xshift'] + return self["xshift"] @xshift.setter def xshift(self, val): - self['xshift'] = val + self["xshift"] = val # y # - @@ -8909,11 +8849,11 @@ def y(self): ------- Any """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -8938,11 +8878,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # yshift # ------ @@ -8959,11 +8899,11 @@ def yshift(self): ------- int|float """ - return self['yshift'] + return self["yshift"] @yshift.setter def yshift(self, val): - self['yshift'] = val + self["yshift"] = val # z # - @@ -8978,17 +8918,17 @@ def z(self): ------- Any """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene' + return "layout.scene" # Self properties description # --------------------------- @@ -9365,7 +9305,7 @@ def __init__( ------- Annotation """ - super(Annotation, self).__init__('annotations') + super(Annotation, self).__init__("annotations") # Validate arg # ------------ @@ -9385,138 +9325,130 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene import (annotation as v_annotation) + from plotly.validators.layout.scene import annotation as v_annotation # Initialize validators # --------------------- - self._validators['align'] = v_annotation.AlignValidator() - self._validators['arrowcolor'] = v_annotation.ArrowcolorValidator() - self._validators['arrowhead'] = v_annotation.ArrowheadValidator() - self._validators['arrowside'] = v_annotation.ArrowsideValidator() - self._validators['arrowsize'] = v_annotation.ArrowsizeValidator() - self._validators['arrowwidth'] = v_annotation.ArrowwidthValidator() - self._validators['ax'] = v_annotation.AxValidator() - self._validators['ay'] = v_annotation.AyValidator() - self._validators['bgcolor'] = v_annotation.BgcolorValidator() - self._validators['bordercolor'] = v_annotation.BordercolorValidator() - self._validators['borderpad'] = v_annotation.BorderpadValidator() - self._validators['borderwidth'] = v_annotation.BorderwidthValidator() - self._validators['captureevents' - ] = v_annotation.CaptureeventsValidator() - self._validators['font'] = v_annotation.FontValidator() - self._validators['height'] = v_annotation.HeightValidator() - self._validators['hoverlabel'] = v_annotation.HoverlabelValidator() - self._validators['hovertext'] = v_annotation.HovertextValidator() - self._validators['name'] = v_annotation.NameValidator() - self._validators['opacity'] = v_annotation.OpacityValidator() - self._validators['showarrow'] = v_annotation.ShowarrowValidator() - self._validators['standoff'] = v_annotation.StandoffValidator() - self._validators['startarrowhead' - ] = v_annotation.StartarrowheadValidator() - self._validators['startarrowsize' - ] = v_annotation.StartarrowsizeValidator() - self._validators['startstandoff' - ] = v_annotation.StartstandoffValidator() - self._validators['templateitemname' - ] = v_annotation.TemplateitemnameValidator() - self._validators['text'] = v_annotation.TextValidator() - self._validators['textangle'] = v_annotation.TextangleValidator() - self._validators['valign'] = v_annotation.ValignValidator() - self._validators['visible'] = v_annotation.VisibleValidator() - self._validators['width'] = v_annotation.WidthValidator() - self._validators['x'] = v_annotation.XValidator() - self._validators['xanchor'] = v_annotation.XanchorValidator() - self._validators['xshift'] = v_annotation.XshiftValidator() - self._validators['y'] = v_annotation.YValidator() - self._validators['yanchor'] = v_annotation.YanchorValidator() - self._validators['yshift'] = v_annotation.YshiftValidator() - self._validators['z'] = v_annotation.ZValidator() + self._validators["align"] = v_annotation.AlignValidator() + self._validators["arrowcolor"] = v_annotation.ArrowcolorValidator() + self._validators["arrowhead"] = v_annotation.ArrowheadValidator() + self._validators["arrowside"] = v_annotation.ArrowsideValidator() + self._validators["arrowsize"] = v_annotation.ArrowsizeValidator() + self._validators["arrowwidth"] = v_annotation.ArrowwidthValidator() + self._validators["ax"] = v_annotation.AxValidator() + self._validators["ay"] = v_annotation.AyValidator() + self._validators["bgcolor"] = v_annotation.BgcolorValidator() + self._validators["bordercolor"] = v_annotation.BordercolorValidator() + self._validators["borderpad"] = v_annotation.BorderpadValidator() + self._validators["borderwidth"] = v_annotation.BorderwidthValidator() + self._validators["captureevents"] = v_annotation.CaptureeventsValidator() + self._validators["font"] = v_annotation.FontValidator() + self._validators["height"] = v_annotation.HeightValidator() + self._validators["hoverlabel"] = v_annotation.HoverlabelValidator() + self._validators["hovertext"] = v_annotation.HovertextValidator() + self._validators["name"] = v_annotation.NameValidator() + self._validators["opacity"] = v_annotation.OpacityValidator() + self._validators["showarrow"] = v_annotation.ShowarrowValidator() + self._validators["standoff"] = v_annotation.StandoffValidator() + self._validators["startarrowhead"] = v_annotation.StartarrowheadValidator() + self._validators["startarrowsize"] = v_annotation.StartarrowsizeValidator() + self._validators["startstandoff"] = v_annotation.StartstandoffValidator() + self._validators["templateitemname"] = v_annotation.TemplateitemnameValidator() + self._validators["text"] = v_annotation.TextValidator() + self._validators["textangle"] = v_annotation.TextangleValidator() + self._validators["valign"] = v_annotation.ValignValidator() + self._validators["visible"] = v_annotation.VisibleValidator() + self._validators["width"] = v_annotation.WidthValidator() + self._validators["x"] = v_annotation.XValidator() + self._validators["xanchor"] = v_annotation.XanchorValidator() + self._validators["xshift"] = v_annotation.XshiftValidator() + self._validators["y"] = v_annotation.YValidator() + self._validators["yanchor"] = v_annotation.YanchorValidator() + self._validators["yshift"] = v_annotation.YshiftValidator() + self._validators["z"] = v_annotation.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('arrowcolor', None) - self['arrowcolor'] = arrowcolor if arrowcolor is not None else _v - _v = arg.pop('arrowhead', None) - self['arrowhead'] = arrowhead if arrowhead is not None else _v - _v = arg.pop('arrowside', None) - self['arrowside'] = arrowside if arrowside is not None else _v - _v = arg.pop('arrowsize', None) - self['arrowsize'] = arrowsize if arrowsize is not None else _v - _v = arg.pop('arrowwidth', None) - self['arrowwidth'] = arrowwidth if arrowwidth is not None else _v - _v = arg.pop('ax', None) - self['ax'] = ax if ax is not None else _v - _v = arg.pop('ay', None) - self['ay'] = ay if ay is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderpad', None) - self['borderpad'] = borderpad if borderpad is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('captureevents', None) - self['captureevents' - ] = captureevents if captureevents is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('height', None) - self['height'] = height if height is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertext', None) - self['hovertext'] = hovertext if hovertext is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('showarrow', None) - self['showarrow'] = showarrow if showarrow is not None else _v - _v = arg.pop('standoff', None) - self['standoff'] = standoff if standoff is not None else _v - _v = arg.pop('startarrowhead', None) - self['startarrowhead' - ] = startarrowhead if startarrowhead is not None else _v - _v = arg.pop('startarrowsize', None) - self['startarrowsize' - ] = startarrowsize if startarrowsize is not None else _v - _v = arg.pop('startstandoff', None) - self['startstandoff' - ] = startstandoff if startstandoff is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v - _v = arg.pop('textangle', None) - self['textangle'] = textangle if textangle is not None else _v - _v = arg.pop('valign', None) - self['valign'] = valign if valign is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xshift', None) - self['xshift'] = xshift if xshift is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('yshift', None) - self['yshift'] = yshift if yshift is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("arrowcolor", None) + self["arrowcolor"] = arrowcolor if arrowcolor is not None else _v + _v = arg.pop("arrowhead", None) + self["arrowhead"] = arrowhead if arrowhead is not None else _v + _v = arg.pop("arrowside", None) + self["arrowside"] = arrowside if arrowside is not None else _v + _v = arg.pop("arrowsize", None) + self["arrowsize"] = arrowsize if arrowsize is not None else _v + _v = arg.pop("arrowwidth", None) + self["arrowwidth"] = arrowwidth if arrowwidth is not None else _v + _v = arg.pop("ax", None) + self["ax"] = ax if ax is not None else _v + _v = arg.pop("ay", None) + self["ay"] = ay if ay is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderpad", None) + self["borderpad"] = borderpad if borderpad is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("captureevents", None) + self["captureevents"] = captureevents if captureevents is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("height", None) + self["height"] = height if height is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertext", None) + self["hovertext"] = hovertext if hovertext is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("showarrow", None) + self["showarrow"] = showarrow if showarrow is not None else _v + _v = arg.pop("standoff", None) + self["standoff"] = standoff if standoff is not None else _v + _v = arg.pop("startarrowhead", None) + self["startarrowhead"] = startarrowhead if startarrowhead is not None else _v + _v = arg.pop("startarrowsize", None) + self["startarrowsize"] = startarrowsize if startarrowsize is not None else _v + _v = arg.pop("startstandoff", None) + self["startstandoff"] = startstandoff if startstandoff is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v + _v = arg.pop("textangle", None) + self["textangle"] = textangle if textangle is not None else _v + _v = arg.pop("valign", None) + self["valign"] = valign if valign is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xshift", None) + self["xshift"] = xshift if xshift is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("yshift", None) + self["yshift"] = yshift if yshift is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/__init__.py index 12053c5da9f..b583513ee9e 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -61,11 +59,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -122,11 +120,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # font # ---- @@ -168,17 +166,17 @@ def font(self): ------- plotly.graph_objs.layout.scene.annotation.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.annotation' + return "layout.scene.annotation" # Self properties description # --------------------------- @@ -199,9 +197,7 @@ def _prop_descriptions(self): `hoverlabel.bordercolor`. """ - def __init__( - self, arg=None, bgcolor=None, bordercolor=None, font=None, **kwargs - ): + def __init__(self, arg=None, bgcolor=None, bordercolor=None, font=None, **kwargs): """ Construct a new Hoverlabel object @@ -228,7 +224,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -248,28 +244,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene.annotation import ( - hoverlabel as v_hoverlabel - ) + from plotly.validators.layout.scene.annotation import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['font'] = v_hoverlabel.FontValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["font"] = v_hoverlabel.FontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v # Process unknown kwargs # ---------------------- @@ -337,11 +331,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -368,11 +362,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -386,17 +380,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.annotation' + return "layout.scene.annotation" # Self properties description # --------------------------- @@ -458,7 +452,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -478,26 +472,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene.annotation import (font as v_font) + from plotly.validators.layout.scene.annotation import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/hoverlabel/__init__.py index da5958a5e29..74fbb7ebbf8 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/annotation/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.annotation.hoverlabel' + return "layout.scene.annotation.hoverlabel" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene.annotation.hoverlabel import ( - font as v_font - ) + from plotly.validators.layout.scene.annotation.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/camera/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/camera/__init__.py index da56f3ac8ac..7580ff976bf 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/camera/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/camera/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -18,11 +16,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -36,11 +34,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -54,17 +52,17 @@ def z(self): ------- int|float """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.camera' + return "layout.scene.camera" # Self properties description # --------------------------- @@ -104,7 +102,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Up """ - super(Up, self).__init__('up') + super(Up, self).__init__("up") # Validate arg # ------------ @@ -124,26 +122,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene.camera import (up as v_up) + from plotly.validators.layout.scene.camera import up as v_up # Initialize validators # --------------------- - self._validators['x'] = v_up.XValidator() - self._validators['y'] = v_up.YValidator() - self._validators['z'] = v_up.ZValidator() + self._validators["x"] = v_up.XValidator() + self._validators["y"] = v_up.YValidator() + self._validators["z"] = v_up.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- @@ -176,17 +174,17 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.camera' + return "layout.scene.camera" # Self properties description # --------------------------- @@ -218,7 +216,7 @@ def __init__(self, arg=None, type=None, **kwargs): ------- Projection """ - super(Projection, self).__init__('projection') + super(Projection, self).__init__("projection") # Validate arg # ------------ @@ -238,22 +236,20 @@ def __init__(self, arg=None, type=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene.camera import ( - projection as v_projection - ) + from plotly.validators.layout.scene.camera import projection as v_projection # Initialize validators # --------------------- - self._validators['type'] = v_projection.TypeValidator() + self._validators["type"] = v_projection.TypeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v # Process unknown kwargs # ---------------------- @@ -282,11 +278,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -300,11 +296,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -318,17 +314,17 @@ def z(self): ------- int|float """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.camera' + return "layout.scene.camera" # Self properties description # --------------------------- @@ -368,7 +364,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Eye """ - super(Eye, self).__init__('eye') + super(Eye, self).__init__("eye") # Validate arg # ------------ @@ -388,26 +384,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene.camera import (eye as v_eye) + from plotly.validators.layout.scene.camera import eye as v_eye # Initialize validators # --------------------- - self._validators['x'] = v_eye.XValidator() - self._validators['y'] = v_eye.YValidator() - self._validators['z'] = v_eye.ZValidator() + self._validators["x"] = v_eye.XValidator() + self._validators["y"] = v_eye.YValidator() + self._validators["z"] = v_eye.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- @@ -436,11 +432,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -454,11 +450,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -472,17 +468,17 @@ def z(self): ------- int|float """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.camera' + return "layout.scene.camera" # Self properties description # --------------------------- @@ -522,7 +518,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Center """ - super(Center, self).__init__('center') + super(Center, self).__init__("center") # Validate arg # ------------ @@ -542,26 +538,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene.camera import (center as v_center) + from plotly.validators.layout.scene.camera import center as v_center # Initialize validators # --------------------- - self._validators['x'] = v_center.XValidator() - self._validators['y'] = v_center.YValidator() - self._validators['z'] = v_center.ZValidator() + self._validators["x"] = v_center.XValidator() + self._validators["y"] = v_center.YValidator() + self._validators["z"] = v_center.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/__init__.py index 6c06a0bfba9..e9d051dc274 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.layout.scene.xaxis.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # text # ---- @@ -69,17 +67,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.xaxis' + return "layout.scene.xaxis" # Self properties description # --------------------------- @@ -121,7 +119,7 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -141,23 +139,23 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene.xaxis import (title as v_title) + from plotly.validators.layout.scene.xaxis import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -193,11 +191,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -214,11 +212,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -241,11 +239,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -269,11 +267,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -291,17 +289,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.xaxis' + return "layout.scene.xaxis" # Self properties description # --------------------------- @@ -394,7 +392,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -414,36 +412,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.layout.scene.xaxis import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -511,11 +511,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -542,11 +542,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -560,17 +560,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.xaxis' + return "layout.scene.xaxis" # Self properties description # --------------------------- @@ -632,7 +632,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -652,28 +652,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene.xaxis import ( - tickfont as v_tickfont - ) + from plotly.validators.layout.scene.xaxis import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/title/__init__.py index c543ff36bfa..fa69f287a21 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/xaxis/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.xaxis.title' + return "layout.scene.xaxis.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,26 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene.xaxis.title import (font as v_font) + from plotly.validators.layout.scene.xaxis.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/__init__.py index f20bc1b616f..09bb0759b05 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.layout.scene.yaxis.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # text # ---- @@ -69,17 +67,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.yaxis' + return "layout.scene.yaxis" # Self properties description # --------------------------- @@ -121,7 +119,7 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -141,23 +139,23 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene.yaxis import (title as v_title) + from plotly.validators.layout.scene.yaxis import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -193,11 +191,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -214,11 +212,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -241,11 +239,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -269,11 +267,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -291,17 +289,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.yaxis' + return "layout.scene.yaxis" # Self properties description # --------------------------- @@ -394,7 +392,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -414,36 +412,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.layout.scene.yaxis import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -511,11 +511,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -542,11 +542,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -560,17 +560,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.yaxis' + return "layout.scene.yaxis" # Self properties description # --------------------------- @@ -632,7 +632,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -652,28 +652,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene.yaxis import ( - tickfont as v_tickfont - ) + from plotly.validators.layout.scene.yaxis import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/title/__init__.py index 73b1770ea9f..8ddccfc6e87 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/yaxis/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.yaxis.title' + return "layout.scene.yaxis.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,26 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene.yaxis.title import (font as v_font) + from plotly.validators.layout.scene.yaxis.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/__init__.py index 50727b21d70..925a40481b3 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.layout.scene.zaxis.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # text # ---- @@ -69,17 +67,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.zaxis' + return "layout.scene.zaxis" # Self properties description # --------------------------- @@ -121,7 +119,7 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -141,23 +139,23 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene.zaxis import (title as v_title) + from plotly.validators.layout.scene.zaxis import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -193,11 +191,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -214,11 +212,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -241,11 +239,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -269,11 +267,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -291,17 +289,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.zaxis' + return "layout.scene.zaxis" # Self properties description # --------------------------- @@ -394,7 +392,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -414,36 +412,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.layout.scene.zaxis import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -511,11 +511,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -542,11 +542,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -560,17 +560,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.zaxis' + return "layout.scene.zaxis" # Self properties description # --------------------------- @@ -632,7 +632,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -652,28 +652,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene.zaxis import ( - tickfont as v_tickfont - ) + from plotly.validators.layout.scene.zaxis import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/title/__init__.py index 9aa56e73a35..2d1b3e01242 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/scene/zaxis/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.scene.zaxis.title' + return "layout.scene.zaxis.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,26 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.scene.zaxis.title import (font as v_font) + from plotly.validators.layout.scene.zaxis.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/shape/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/shape/__init__.py index 4b473f7efed..de0ac35e5c4 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/shape/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/shape/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dash # ---- @@ -85,11 +83,11 @@ def dash(self): ------- str """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # width # ----- @@ -105,17 +103,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.shape' + return "layout.shape" # Self properties description # --------------------------- @@ -156,7 +154,7 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -176,26 +174,26 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.shape import (line as v_line) + from plotly.validators.layout.shape import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['dash'] = v_line.DashValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/slider/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/slider/__init__.py index c00ad5d418b..4c75c927bfa 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/slider/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/slider/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -20,11 +18,11 @@ def duration(self): ------- int|float """ - return self['duration'] + return self["duration"] @duration.setter def duration(self, val): - self['duration'] = val + self["duration"] = val # easing # ------ @@ -49,17 +47,17 @@ def easing(self): ------- Any """ - return self['easing'] + return self["easing"] @easing.setter def easing(self, val): - self['easing'] = val + self["easing"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.slider' + return "layout.slider" # Self properties description # --------------------------- @@ -91,7 +89,7 @@ def __init__(self, arg=None, duration=None, easing=None, **kwargs): ------- Transition """ - super(Transition, self).__init__('transition') + super(Transition, self).__init__("transition") # Validate arg # ------------ @@ -111,25 +109,23 @@ def __init__(self, arg=None, duration=None, easing=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.slider import ( - transition as v_transition - ) + from plotly.validators.layout.slider import transition as v_transition # Initialize validators # --------------------- - self._validators['duration'] = v_transition.DurationValidator() - self._validators['easing'] = v_transition.EasingValidator() + self._validators["duration"] = v_transition.DurationValidator() + self._validators["easing"] = v_transition.EasingValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('duration', None) - self['duration'] = duration if duration is not None else _v - _v = arg.pop('easing', None) - self['easing'] = easing if easing is not None else _v + _v = arg.pop("duration", None) + self["duration"] = duration if duration is not None else _v + _v = arg.pop("easing", None) + self["easing"] = easing if easing is not None else _v # Process unknown kwargs # ---------------------- @@ -165,11 +161,11 @@ def args(self): ------- list """ - return self['args'] + return self["args"] @args.setter def args(self, val): - self['args'] = val + self["args"] = val # execute # ------- @@ -191,11 +187,11 @@ def execute(self): ------- bool """ - return self['execute'] + return self["execute"] @execute.setter def execute(self, val): - self['execute'] = val + self["execute"] = val # label # ----- @@ -212,11 +208,11 @@ def label(self): ------- str """ - return self['label'] + return self["label"] @label.setter def label(self, val): - self['label'] = val + self["label"] = val # method # ------ @@ -238,11 +234,11 @@ def method(self): ------- Any """ - return self['method'] + return self["method"] @method.setter def method(self, val): - self['method'] = val + self["method"] = val # name # ---- @@ -265,11 +261,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -293,11 +289,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -315,11 +311,11 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # visible # ------- @@ -335,17 +331,17 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.slider' + return "layout.slider" # Self properties description # --------------------------- @@ -472,7 +468,7 @@ def __init__( ------- Step """ - super(Step, self).__init__('steps') + super(Step, self).__init__("steps") # Validate arg # ------------ @@ -492,43 +488,43 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.slider import (step as v_step) + from plotly.validators.layout.slider import step as v_step # Initialize validators # --------------------- - self._validators['args'] = v_step.ArgsValidator() - self._validators['execute'] = v_step.ExecuteValidator() - self._validators['label'] = v_step.LabelValidator() - self._validators['method'] = v_step.MethodValidator() - self._validators['name'] = v_step.NameValidator() - self._validators['templateitemname' - ] = v_step.TemplateitemnameValidator() - self._validators['value'] = v_step.ValueValidator() - self._validators['visible'] = v_step.VisibleValidator() + self._validators["args"] = v_step.ArgsValidator() + self._validators["execute"] = v_step.ExecuteValidator() + self._validators["label"] = v_step.LabelValidator() + self._validators["method"] = v_step.MethodValidator() + self._validators["name"] = v_step.NameValidator() + self._validators["templateitemname"] = v_step.TemplateitemnameValidator() + self._validators["value"] = v_step.ValueValidator() + self._validators["visible"] = v_step.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('args', None) - self['args'] = args if args is not None else _v - _v = arg.pop('execute', None) - self['execute'] = execute if execute is not None else _v - _v = arg.pop('label', None) - self['label'] = label if label is not None else _v - _v = arg.pop('method', None) - self['method'] = method if method is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("args", None) + self["args"] = args if args is not None else _v + _v = arg.pop("execute", None) + self["execute"] = execute if execute is not None else _v + _v = arg.pop("label", None) + self["label"] = label if label is not None else _v + _v = arg.pop("method", None) + self["method"] = method if method is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- @@ -560,11 +556,11 @@ def b(self): ------- int|float """ - return self['b'] + return self["b"] @b.setter def b(self, val): - self['b'] = val + self["b"] = val # l # - @@ -581,11 +577,11 @@ def l(self): ------- int|float """ - return self['l'] + return self["l"] @l.setter def l(self, val): - self['l'] = val + self["l"] = val # r # - @@ -602,11 +598,11 @@ def r(self): ------- int|float """ - return self['r'] + return self["r"] @r.setter def r(self, val): - self['r'] = val + self["r"] = val # t # - @@ -622,17 +618,17 @@ def t(self): ------- int|float """ - return self['t'] + return self["t"] @t.setter def t(self, val): - self['t'] = val + self["t"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.slider' + return "layout.slider" # Self properties description # --------------------------- @@ -681,7 +677,7 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): ------- Pad """ - super(Pad, self).__init__('pad') + super(Pad, self).__init__("pad") # Validate arg # ------------ @@ -701,29 +697,29 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.slider import (pad as v_pad) + from plotly.validators.layout.slider import pad as v_pad # Initialize validators # --------------------- - self._validators['b'] = v_pad.BValidator() - self._validators['l'] = v_pad.LValidator() - self._validators['r'] = v_pad.RValidator() - self._validators['t'] = v_pad.TValidator() + self._validators["b"] = v_pad.BValidator() + self._validators["l"] = v_pad.LValidator() + self._validators["r"] = v_pad.RValidator() + self._validators["t"] = v_pad.TValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('b', None) - self['b'] = b if b is not None else _v - _v = arg.pop('l', None) - self['l'] = l if l is not None else _v - _v = arg.pop('r', None) - self['r'] = r if r is not None else _v - _v = arg.pop('t', None) - self['t'] = t if t is not None else _v + _v = arg.pop("b", None) + self["b"] = b if b is not None else _v + _v = arg.pop("l", None) + self["l"] = l if l is not None else _v + _v = arg.pop("r", None) + self["r"] = r if r is not None else _v + _v = arg.pop("t", None) + self["t"] = t if t is not None else _v # Process unknown kwargs # ---------------------- @@ -791,11 +787,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -822,11 +818,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -840,17 +836,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.slider' + return "layout.slider" # Self properties description # --------------------------- @@ -911,7 +907,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -931,26 +927,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.slider import (font as v_font) + from plotly.validators.layout.slider import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- @@ -1006,11 +1002,11 @@ def font(self): ------- plotly.graph_objs.layout.slider.currentvalue.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # offset # ------ @@ -1027,11 +1023,11 @@ def offset(self): ------- int|float """ - return self['offset'] + return self["offset"] @offset.setter def offset(self, val): - self['offset'] = val + self["offset"] = val # prefix # ------ @@ -1049,11 +1045,11 @@ def prefix(self): ------- str """ - return self['prefix'] + return self["prefix"] @prefix.setter def prefix(self, val): - self['prefix'] = val + self["prefix"] = val # suffix # ------ @@ -1071,11 +1067,11 @@ def suffix(self): ------- str """ - return self['suffix'] + return self["suffix"] @suffix.setter def suffix(self, val): - self['suffix'] = val + self["suffix"] = val # visible # ------- @@ -1091,11 +1087,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # xanchor # ------- @@ -1113,17 +1109,17 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.slider' + return "layout.slider" # Self properties description # --------------------------- @@ -1189,7 +1185,7 @@ def __init__( ------- Currentvalue """ - super(Currentvalue, self).__init__('currentvalue') + super(Currentvalue, self).__init__("currentvalue") # Validate arg # ------------ @@ -1209,37 +1205,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.slider import ( - currentvalue as v_currentvalue - ) + from plotly.validators.layout.slider import currentvalue as v_currentvalue # Initialize validators # --------------------- - self._validators['font'] = v_currentvalue.FontValidator() - self._validators['offset'] = v_currentvalue.OffsetValidator() - self._validators['prefix'] = v_currentvalue.PrefixValidator() - self._validators['suffix'] = v_currentvalue.SuffixValidator() - self._validators['visible'] = v_currentvalue.VisibleValidator() - self._validators['xanchor'] = v_currentvalue.XanchorValidator() + self._validators["font"] = v_currentvalue.FontValidator() + self._validators["offset"] = v_currentvalue.OffsetValidator() + self._validators["prefix"] = v_currentvalue.PrefixValidator() + self._validators["suffix"] = v_currentvalue.SuffixValidator() + self._validators["visible"] = v_currentvalue.VisibleValidator() + self._validators["xanchor"] = v_currentvalue.XanchorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('offset', None) - self['offset'] = offset if offset is not None else _v - _v = arg.pop('prefix', None) - self['prefix'] = prefix if prefix is not None else _v - _v = arg.pop('suffix', None) - self['suffix'] = suffix if suffix is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("offset", None) + self["offset"] = offset if offset is not None else _v + _v = arg.pop("prefix", None) + self["prefix"] = prefix if prefix is not None else _v + _v = arg.pop("suffix", None) + self["suffix"] = suffix if suffix is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/slider/currentvalue/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/slider/currentvalue/__init__.py index 4a62b355b3f..3545bbf4987 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/slider/currentvalue/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/slider/currentvalue/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.slider.currentvalue' + return "layout.slider.currentvalue" # Self properties description # --------------------------- @@ -178,7 +176,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -198,28 +196,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.slider.currentvalue import ( - font as v_font - ) + from plotly.validators.layout.slider.currentvalue import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/template/__init__.py index 4cd73de9730..8c83464dee8 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/__init__.py @@ -1,8 +1,5 @@ - - from plotly.graph_objs import Layout - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -26,11 +23,11 @@ def area(self): ------- tuple[plotly.graph_objs.layout.template.data.Area] """ - return self['area'] + return self["area"] @area.setter def area(self, val): - self['area'] = val + self["area"] = val # barpolar # -------- @@ -49,11 +46,11 @@ def barpolar(self): ------- tuple[plotly.graph_objs.layout.template.data.Barpolar] """ - return self['barpolar'] + return self["barpolar"] @barpolar.setter def barpolar(self, val): - self['barpolar'] = val + self["barpolar"] = val # bar # --- @@ -72,11 +69,11 @@ def bar(self): ------- tuple[plotly.graph_objs.layout.template.data.Bar] """ - return self['bar'] + return self["bar"] @bar.setter def bar(self, val): - self['bar'] = val + self["bar"] = val # box # --- @@ -95,11 +92,11 @@ def box(self): ------- tuple[plotly.graph_objs.layout.template.data.Box] """ - return self['box'] + return self["box"] @box.setter def box(self, val): - self['box'] = val + self["box"] = val # candlestick # ----------- @@ -118,11 +115,11 @@ def candlestick(self): ------- tuple[plotly.graph_objs.layout.template.data.Candlestick] """ - return self['candlestick'] + return self["candlestick"] @candlestick.setter def candlestick(self, val): - self['candlestick'] = val + self["candlestick"] = val # carpet # ------ @@ -141,11 +138,11 @@ def carpet(self): ------- tuple[plotly.graph_objs.layout.template.data.Carpet] """ - return self['carpet'] + return self["carpet"] @carpet.setter def carpet(self, val): - self['carpet'] = val + self["carpet"] = val # choropleth # ---------- @@ -164,11 +161,11 @@ def choropleth(self): ------- tuple[plotly.graph_objs.layout.template.data.Choropleth] """ - return self['choropleth'] + return self["choropleth"] @choropleth.setter def choropleth(self, val): - self['choropleth'] = val + self["choropleth"] = val # cone # ---- @@ -187,11 +184,11 @@ def cone(self): ------- tuple[plotly.graph_objs.layout.template.data.Cone] """ - return self['cone'] + return self["cone"] @cone.setter def cone(self, val): - self['cone'] = val + self["cone"] = val # contourcarpet # ------------- @@ -210,11 +207,11 @@ def contourcarpet(self): ------- tuple[plotly.graph_objs.layout.template.data.Contourcarpet] """ - return self['contourcarpet'] + return self["contourcarpet"] @contourcarpet.setter def contourcarpet(self, val): - self['contourcarpet'] = val + self["contourcarpet"] = val # contour # ------- @@ -233,11 +230,11 @@ def contour(self): ------- tuple[plotly.graph_objs.layout.template.data.Contour] """ - return self['contour'] + return self["contour"] @contour.setter def contour(self, val): - self['contour'] = val + self["contour"] = val # funnelarea # ---------- @@ -256,11 +253,11 @@ def funnelarea(self): ------- tuple[plotly.graph_objs.layout.template.data.Funnelarea] """ - return self['funnelarea'] + return self["funnelarea"] @funnelarea.setter def funnelarea(self, val): - self['funnelarea'] = val + self["funnelarea"] = val # funnel # ------ @@ -279,11 +276,11 @@ def funnel(self): ------- tuple[plotly.graph_objs.layout.template.data.Funnel] """ - return self['funnel'] + return self["funnel"] @funnel.setter def funnel(self, val): - self['funnel'] = val + self["funnel"] = val # heatmapgl # --------- @@ -302,11 +299,11 @@ def heatmapgl(self): ------- tuple[plotly.graph_objs.layout.template.data.Heatmapgl] """ - return self['heatmapgl'] + return self["heatmapgl"] @heatmapgl.setter def heatmapgl(self, val): - self['heatmapgl'] = val + self["heatmapgl"] = val # heatmap # ------- @@ -325,11 +322,11 @@ def heatmap(self): ------- tuple[plotly.graph_objs.layout.template.data.Heatmap] """ - return self['heatmap'] + return self["heatmap"] @heatmap.setter def heatmap(self, val): - self['heatmap'] = val + self["heatmap"] = val # histogram2dcontour # ------------------ @@ -348,11 +345,11 @@ def histogram2dcontour(self): ------- tuple[plotly.graph_objs.layout.template.data.Histogram2dContour] """ - return self['histogram2dcontour'] + return self["histogram2dcontour"] @histogram2dcontour.setter def histogram2dcontour(self, val): - self['histogram2dcontour'] = val + self["histogram2dcontour"] = val # histogram2d # ----------- @@ -371,11 +368,11 @@ def histogram2d(self): ------- tuple[plotly.graph_objs.layout.template.data.Histogram2d] """ - return self['histogram2d'] + return self["histogram2d"] @histogram2d.setter def histogram2d(self, val): - self['histogram2d'] = val + self["histogram2d"] = val # histogram # --------- @@ -394,11 +391,11 @@ def histogram(self): ------- tuple[plotly.graph_objs.layout.template.data.Histogram] """ - return self['histogram'] + return self["histogram"] @histogram.setter def histogram(self, val): - self['histogram'] = val + self["histogram"] = val # isosurface # ---------- @@ -417,11 +414,11 @@ def isosurface(self): ------- tuple[plotly.graph_objs.layout.template.data.Isosurface] """ - return self['isosurface'] + return self["isosurface"] @isosurface.setter def isosurface(self, val): - self['isosurface'] = val + self["isosurface"] = val # mesh3d # ------ @@ -440,11 +437,11 @@ def mesh3d(self): ------- tuple[plotly.graph_objs.layout.template.data.Mesh3d] """ - return self['mesh3d'] + return self["mesh3d"] @mesh3d.setter def mesh3d(self, val): - self['mesh3d'] = val + self["mesh3d"] = val # ohlc # ---- @@ -463,11 +460,11 @@ def ohlc(self): ------- tuple[plotly.graph_objs.layout.template.data.Ohlc] """ - return self['ohlc'] + return self["ohlc"] @ohlc.setter def ohlc(self, val): - self['ohlc'] = val + self["ohlc"] = val # parcats # ------- @@ -486,11 +483,11 @@ def parcats(self): ------- tuple[plotly.graph_objs.layout.template.data.Parcats] """ - return self['parcats'] + return self["parcats"] @parcats.setter def parcats(self, val): - self['parcats'] = val + self["parcats"] = val # parcoords # --------- @@ -509,11 +506,11 @@ def parcoords(self): ------- tuple[plotly.graph_objs.layout.template.data.Parcoords] """ - return self['parcoords'] + return self["parcoords"] @parcoords.setter def parcoords(self, val): - self['parcoords'] = val + self["parcoords"] = val # pie # --- @@ -532,11 +529,11 @@ def pie(self): ------- tuple[plotly.graph_objs.layout.template.data.Pie] """ - return self['pie'] + return self["pie"] @pie.setter def pie(self, val): - self['pie'] = val + self["pie"] = val # pointcloud # ---------- @@ -555,11 +552,11 @@ def pointcloud(self): ------- tuple[plotly.graph_objs.layout.template.data.Pointcloud] """ - return self['pointcloud'] + return self["pointcloud"] @pointcloud.setter def pointcloud(self, val): - self['pointcloud'] = val + self["pointcloud"] = val # sankey # ------ @@ -578,11 +575,11 @@ def sankey(self): ------- tuple[plotly.graph_objs.layout.template.data.Sankey] """ - return self['sankey'] + return self["sankey"] @sankey.setter def sankey(self, val): - self['sankey'] = val + self["sankey"] = val # scatter3d # --------- @@ -601,11 +598,11 @@ def scatter3d(self): ------- tuple[plotly.graph_objs.layout.template.data.Scatter3d] """ - return self['scatter3d'] + return self["scatter3d"] @scatter3d.setter def scatter3d(self, val): - self['scatter3d'] = val + self["scatter3d"] = val # scattercarpet # ------------- @@ -624,11 +621,11 @@ def scattercarpet(self): ------- tuple[plotly.graph_objs.layout.template.data.Scattercarpet] """ - return self['scattercarpet'] + return self["scattercarpet"] @scattercarpet.setter def scattercarpet(self, val): - self['scattercarpet'] = val + self["scattercarpet"] = val # scattergeo # ---------- @@ -647,11 +644,11 @@ def scattergeo(self): ------- tuple[plotly.graph_objs.layout.template.data.Scattergeo] """ - return self['scattergeo'] + return self["scattergeo"] @scattergeo.setter def scattergeo(self, val): - self['scattergeo'] = val + self["scattergeo"] = val # scattergl # --------- @@ -670,11 +667,11 @@ def scattergl(self): ------- tuple[plotly.graph_objs.layout.template.data.Scattergl] """ - return self['scattergl'] + return self["scattergl"] @scattergl.setter def scattergl(self, val): - self['scattergl'] = val + self["scattergl"] = val # scattermapbox # ------------- @@ -693,11 +690,11 @@ def scattermapbox(self): ------- tuple[plotly.graph_objs.layout.template.data.Scattermapbox] """ - return self['scattermapbox'] + return self["scattermapbox"] @scattermapbox.setter def scattermapbox(self, val): - self['scattermapbox'] = val + self["scattermapbox"] = val # scatterpolargl # -------------- @@ -716,11 +713,11 @@ def scatterpolargl(self): ------- tuple[plotly.graph_objs.layout.template.data.Scatterpolargl] """ - return self['scatterpolargl'] + return self["scatterpolargl"] @scatterpolargl.setter def scatterpolargl(self, val): - self['scatterpolargl'] = val + self["scatterpolargl"] = val # scatterpolar # ------------ @@ -739,11 +736,11 @@ def scatterpolar(self): ------- tuple[plotly.graph_objs.layout.template.data.Scatterpolar] """ - return self['scatterpolar'] + return self["scatterpolar"] @scatterpolar.setter def scatterpolar(self, val): - self['scatterpolar'] = val + self["scatterpolar"] = val # scatter # ------- @@ -762,11 +759,11 @@ def scatter(self): ------- tuple[plotly.graph_objs.layout.template.data.Scatter] """ - return self['scatter'] + return self["scatter"] @scatter.setter def scatter(self, val): - self['scatter'] = val + self["scatter"] = val # scatterternary # -------------- @@ -785,11 +782,11 @@ def scatterternary(self): ------- tuple[plotly.graph_objs.layout.template.data.Scatterternary] """ - return self['scatterternary'] + return self["scatterternary"] @scatterternary.setter def scatterternary(self, val): - self['scatterternary'] = val + self["scatterternary"] = val # splom # ----- @@ -808,11 +805,11 @@ def splom(self): ------- tuple[plotly.graph_objs.layout.template.data.Splom] """ - return self['splom'] + return self["splom"] @splom.setter def splom(self, val): - self['splom'] = val + self["splom"] = val # streamtube # ---------- @@ -831,11 +828,11 @@ def streamtube(self): ------- tuple[plotly.graph_objs.layout.template.data.Streamtube] """ - return self['streamtube'] + return self["streamtube"] @streamtube.setter def streamtube(self, val): - self['streamtube'] = val + self["streamtube"] = val # sunburst # -------- @@ -854,11 +851,11 @@ def sunburst(self): ------- tuple[plotly.graph_objs.layout.template.data.Sunburst] """ - return self['sunburst'] + return self["sunburst"] @sunburst.setter def sunburst(self, val): - self['sunburst'] = val + self["sunburst"] = val # surface # ------- @@ -877,11 +874,11 @@ def surface(self): ------- tuple[plotly.graph_objs.layout.template.data.Surface] """ - return self['surface'] + return self["surface"] @surface.setter def surface(self, val): - self['surface'] = val + self["surface"] = val # table # ----- @@ -900,11 +897,11 @@ def table(self): ------- tuple[plotly.graph_objs.layout.template.data.Table] """ - return self['table'] + return self["table"] @table.setter def table(self, val): - self['table'] = val + self["table"] = val # violin # ------ @@ -923,11 +920,11 @@ def violin(self): ------- tuple[plotly.graph_objs.layout.template.data.Violin] """ - return self['violin'] + return self["violin"] @violin.setter def violin(self, val): - self['violin'] = val + self["violin"] = val # volume # ------ @@ -946,11 +943,11 @@ def volume(self): ------- tuple[plotly.graph_objs.layout.template.data.Volume] """ - return self['volume'] + return self["volume"] @volume.setter def volume(self, val): - self['volume'] = val + self["volume"] = val # waterfall # --------- @@ -969,17 +966,17 @@ def waterfall(self): ------- tuple[plotly.graph_objs.layout.template.data.Waterfall] """ - return self['waterfall'] + return self["waterfall"] @waterfall.setter def waterfall(self, val): - self['waterfall'] = val + self["waterfall"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.template' + return "layout.template" # Self properties description # --------------------------- @@ -1300,7 +1297,7 @@ def __init__( ------- Data """ - super(Data, self).__init__('data') + super(Data, self).__init__("data") # Validate arg # ------------ @@ -1320,150 +1317,145 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.template import (data as v_data) + from plotly.validators.layout.template import data as v_data # Initialize validators # --------------------- - self._validators['area'] = v_data.AreasValidator() - self._validators['barpolar'] = v_data.BarpolarsValidator() - self._validators['bar'] = v_data.BarsValidator() - self._validators['box'] = v_data.BoxsValidator() - self._validators['candlestick'] = v_data.CandlesticksValidator() - self._validators['carpet'] = v_data.CarpetsValidator() - self._validators['choropleth'] = v_data.ChoroplethsValidator() - self._validators['cone'] = v_data.ConesValidator() - self._validators['contourcarpet'] = v_data.ContourcarpetsValidator() - self._validators['contour'] = v_data.ContoursValidator() - self._validators['funnelarea'] = v_data.FunnelareasValidator() - self._validators['funnel'] = v_data.FunnelsValidator() - self._validators['heatmapgl'] = v_data.HeatmapglsValidator() - self._validators['heatmap'] = v_data.HeatmapsValidator() - self._validators['histogram2dcontour' - ] = v_data.Histogram2dContoursValidator() - self._validators['histogram2d'] = v_data.Histogram2dsValidator() - self._validators['histogram'] = v_data.HistogramsValidator() - self._validators['isosurface'] = v_data.IsosurfacesValidator() - self._validators['mesh3d'] = v_data.Mesh3dsValidator() - self._validators['ohlc'] = v_data.OhlcsValidator() - self._validators['parcats'] = v_data.ParcatssValidator() - self._validators['parcoords'] = v_data.ParcoordssValidator() - self._validators['pie'] = v_data.PiesValidator() - self._validators['pointcloud'] = v_data.PointcloudsValidator() - self._validators['sankey'] = v_data.SankeysValidator() - self._validators['scatter3d'] = v_data.Scatter3dsValidator() - self._validators['scattercarpet'] = v_data.ScattercarpetsValidator() - self._validators['scattergeo'] = v_data.ScattergeosValidator() - self._validators['scattergl'] = v_data.ScatterglsValidator() - self._validators['scattermapbox'] = v_data.ScattermapboxsValidator() - self._validators['scatterpolargl'] = v_data.ScatterpolarglsValidator() - self._validators['scatterpolar'] = v_data.ScatterpolarsValidator() - self._validators['scatter'] = v_data.ScattersValidator() - self._validators['scatterternary'] = v_data.ScatterternarysValidator() - self._validators['splom'] = v_data.SplomsValidator() - self._validators['streamtube'] = v_data.StreamtubesValidator() - self._validators['sunburst'] = v_data.SunburstsValidator() - self._validators['surface'] = v_data.SurfacesValidator() - self._validators['table'] = v_data.TablesValidator() - self._validators['violin'] = v_data.ViolinsValidator() - self._validators['volume'] = v_data.VolumesValidator() - self._validators['waterfall'] = v_data.WaterfallsValidator() + self._validators["area"] = v_data.AreasValidator() + self._validators["barpolar"] = v_data.BarpolarsValidator() + self._validators["bar"] = v_data.BarsValidator() + self._validators["box"] = v_data.BoxsValidator() + self._validators["candlestick"] = v_data.CandlesticksValidator() + self._validators["carpet"] = v_data.CarpetsValidator() + self._validators["choropleth"] = v_data.ChoroplethsValidator() + self._validators["cone"] = v_data.ConesValidator() + self._validators["contourcarpet"] = v_data.ContourcarpetsValidator() + self._validators["contour"] = v_data.ContoursValidator() + self._validators["funnelarea"] = v_data.FunnelareasValidator() + self._validators["funnel"] = v_data.FunnelsValidator() + self._validators["heatmapgl"] = v_data.HeatmapglsValidator() + self._validators["heatmap"] = v_data.HeatmapsValidator() + self._validators["histogram2dcontour"] = v_data.Histogram2dContoursValidator() + self._validators["histogram2d"] = v_data.Histogram2dsValidator() + self._validators["histogram"] = v_data.HistogramsValidator() + self._validators["isosurface"] = v_data.IsosurfacesValidator() + self._validators["mesh3d"] = v_data.Mesh3dsValidator() + self._validators["ohlc"] = v_data.OhlcsValidator() + self._validators["parcats"] = v_data.ParcatssValidator() + self._validators["parcoords"] = v_data.ParcoordssValidator() + self._validators["pie"] = v_data.PiesValidator() + self._validators["pointcloud"] = v_data.PointcloudsValidator() + self._validators["sankey"] = v_data.SankeysValidator() + self._validators["scatter3d"] = v_data.Scatter3dsValidator() + self._validators["scattercarpet"] = v_data.ScattercarpetsValidator() + self._validators["scattergeo"] = v_data.ScattergeosValidator() + self._validators["scattergl"] = v_data.ScatterglsValidator() + self._validators["scattermapbox"] = v_data.ScattermapboxsValidator() + self._validators["scatterpolargl"] = v_data.ScatterpolarglsValidator() + self._validators["scatterpolar"] = v_data.ScatterpolarsValidator() + self._validators["scatter"] = v_data.ScattersValidator() + self._validators["scatterternary"] = v_data.ScatterternarysValidator() + self._validators["splom"] = v_data.SplomsValidator() + self._validators["streamtube"] = v_data.StreamtubesValidator() + self._validators["sunburst"] = v_data.SunburstsValidator() + self._validators["surface"] = v_data.SurfacesValidator() + self._validators["table"] = v_data.TablesValidator() + self._validators["violin"] = v_data.ViolinsValidator() + self._validators["volume"] = v_data.VolumesValidator() + self._validators["waterfall"] = v_data.WaterfallsValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('area', None) - self['area'] = area if area is not None else _v - _v = arg.pop('barpolar', None) - self['barpolar'] = barpolar if barpolar is not None else _v - _v = arg.pop('bar', None) - self['bar'] = bar if bar is not None else _v - _v = arg.pop('box', None) - self['box'] = box if box is not None else _v - _v = arg.pop('candlestick', None) - self['candlestick'] = candlestick if candlestick is not None else _v - _v = arg.pop('carpet', None) - self['carpet'] = carpet if carpet is not None else _v - _v = arg.pop('choropleth', None) - self['choropleth'] = choropleth if choropleth is not None else _v - _v = arg.pop('cone', None) - self['cone'] = cone if cone is not None else _v - _v = arg.pop('contourcarpet', None) - self['contourcarpet' - ] = contourcarpet if contourcarpet is not None else _v - _v = arg.pop('contour', None) - self['contour'] = contour if contour is not None else _v - _v = arg.pop('funnelarea', None) - self['funnelarea'] = funnelarea if funnelarea is not None else _v - _v = arg.pop('funnel', None) - self['funnel'] = funnel if funnel is not None else _v - _v = arg.pop('heatmapgl', None) - self['heatmapgl'] = heatmapgl if heatmapgl is not None else _v - _v = arg.pop('heatmap', None) - self['heatmap'] = heatmap if heatmap is not None else _v - _v = arg.pop('histogram2dcontour', None) - self['histogram2dcontour' - ] = histogram2dcontour if histogram2dcontour is not None else _v - _v = arg.pop('histogram2d', None) - self['histogram2d'] = histogram2d if histogram2d is not None else _v - _v = arg.pop('histogram', None) - self['histogram'] = histogram if histogram is not None else _v - _v = arg.pop('isosurface', None) - self['isosurface'] = isosurface if isosurface is not None else _v - _v = arg.pop('mesh3d', None) - self['mesh3d'] = mesh3d if mesh3d is not None else _v - _v = arg.pop('ohlc', None) - self['ohlc'] = ohlc if ohlc is not None else _v - _v = arg.pop('parcats', None) - self['parcats'] = parcats if parcats is not None else _v - _v = arg.pop('parcoords', None) - self['parcoords'] = parcoords if parcoords is not None else _v - _v = arg.pop('pie', None) - self['pie'] = pie if pie is not None else _v - _v = arg.pop('pointcloud', None) - self['pointcloud'] = pointcloud if pointcloud is not None else _v - _v = arg.pop('sankey', None) - self['sankey'] = sankey if sankey is not None else _v - _v = arg.pop('scatter3d', None) - self['scatter3d'] = scatter3d if scatter3d is not None else _v - _v = arg.pop('scattercarpet', None) - self['scattercarpet' - ] = scattercarpet if scattercarpet is not None else _v - _v = arg.pop('scattergeo', None) - self['scattergeo'] = scattergeo if scattergeo is not None else _v - _v = arg.pop('scattergl', None) - self['scattergl'] = scattergl if scattergl is not None else _v - _v = arg.pop('scattermapbox', None) - self['scattermapbox' - ] = scattermapbox if scattermapbox is not None else _v - _v = arg.pop('scatterpolargl', None) - self['scatterpolargl' - ] = scatterpolargl if scatterpolargl is not None else _v - _v = arg.pop('scatterpolar', None) - self['scatterpolar'] = scatterpolar if scatterpolar is not None else _v - _v = arg.pop('scatter', None) - self['scatter'] = scatter if scatter is not None else _v - _v = arg.pop('scatterternary', None) - self['scatterternary' - ] = scatterternary if scatterternary is not None else _v - _v = arg.pop('splom', None) - self['splom'] = splom if splom is not None else _v - _v = arg.pop('streamtube', None) - self['streamtube'] = streamtube if streamtube is not None else _v - _v = arg.pop('sunburst', None) - self['sunburst'] = sunburst if sunburst is not None else _v - _v = arg.pop('surface', None) - self['surface'] = surface if surface is not None else _v - _v = arg.pop('table', None) - self['table'] = table if table is not None else _v - _v = arg.pop('violin', None) - self['violin'] = violin if violin is not None else _v - _v = arg.pop('volume', None) - self['volume'] = volume if volume is not None else _v - _v = arg.pop('waterfall', None) - self['waterfall'] = waterfall if waterfall is not None else _v + _v = arg.pop("area", None) + self["area"] = area if area is not None else _v + _v = arg.pop("barpolar", None) + self["barpolar"] = barpolar if barpolar is not None else _v + _v = arg.pop("bar", None) + self["bar"] = bar if bar is not None else _v + _v = arg.pop("box", None) + self["box"] = box if box is not None else _v + _v = arg.pop("candlestick", None) + self["candlestick"] = candlestick if candlestick is not None else _v + _v = arg.pop("carpet", None) + self["carpet"] = carpet if carpet is not None else _v + _v = arg.pop("choropleth", None) + self["choropleth"] = choropleth if choropleth is not None else _v + _v = arg.pop("cone", None) + self["cone"] = cone if cone is not None else _v + _v = arg.pop("contourcarpet", None) + self["contourcarpet"] = contourcarpet if contourcarpet is not None else _v + _v = arg.pop("contour", None) + self["contour"] = contour if contour is not None else _v + _v = arg.pop("funnelarea", None) + self["funnelarea"] = funnelarea if funnelarea is not None else _v + _v = arg.pop("funnel", None) + self["funnel"] = funnel if funnel is not None else _v + _v = arg.pop("heatmapgl", None) + self["heatmapgl"] = heatmapgl if heatmapgl is not None else _v + _v = arg.pop("heatmap", None) + self["heatmap"] = heatmap if heatmap is not None else _v + _v = arg.pop("histogram2dcontour", None) + self["histogram2dcontour"] = ( + histogram2dcontour if histogram2dcontour is not None else _v + ) + _v = arg.pop("histogram2d", None) + self["histogram2d"] = histogram2d if histogram2d is not None else _v + _v = arg.pop("histogram", None) + self["histogram"] = histogram if histogram is not None else _v + _v = arg.pop("isosurface", None) + self["isosurface"] = isosurface if isosurface is not None else _v + _v = arg.pop("mesh3d", None) + self["mesh3d"] = mesh3d if mesh3d is not None else _v + _v = arg.pop("ohlc", None) + self["ohlc"] = ohlc if ohlc is not None else _v + _v = arg.pop("parcats", None) + self["parcats"] = parcats if parcats is not None else _v + _v = arg.pop("parcoords", None) + self["parcoords"] = parcoords if parcoords is not None else _v + _v = arg.pop("pie", None) + self["pie"] = pie if pie is not None else _v + _v = arg.pop("pointcloud", None) + self["pointcloud"] = pointcloud if pointcloud is not None else _v + _v = arg.pop("sankey", None) + self["sankey"] = sankey if sankey is not None else _v + _v = arg.pop("scatter3d", None) + self["scatter3d"] = scatter3d if scatter3d is not None else _v + _v = arg.pop("scattercarpet", None) + self["scattercarpet"] = scattercarpet if scattercarpet is not None else _v + _v = arg.pop("scattergeo", None) + self["scattergeo"] = scattergeo if scattergeo is not None else _v + _v = arg.pop("scattergl", None) + self["scattergl"] = scattergl if scattergl is not None else _v + _v = arg.pop("scattermapbox", None) + self["scattermapbox"] = scattermapbox if scattermapbox is not None else _v + _v = arg.pop("scatterpolargl", None) + self["scatterpolargl"] = scatterpolargl if scatterpolargl is not None else _v + _v = arg.pop("scatterpolar", None) + self["scatterpolar"] = scatterpolar if scatterpolar is not None else _v + _v = arg.pop("scatter", None) + self["scatter"] = scatter if scatter is not None else _v + _v = arg.pop("scatterternary", None) + self["scatterternary"] = scatterternary if scatterternary is not None else _v + _v = arg.pop("splom", None) + self["splom"] = splom if splom is not None else _v + _v = arg.pop("streamtube", None) + self["streamtube"] = streamtube if streamtube is not None else _v + _v = arg.pop("sunburst", None) + self["sunburst"] = sunburst if sunburst is not None else _v + _v = arg.pop("surface", None) + self["surface"] = surface if surface is not None else _v + _v = arg.pop("table", None) + self["table"] = table if table is not None else _v + _v = arg.pop("violin", None) + self["violin"] = violin if violin is not None else _v + _v = arg.pop("volume", None) + self["volume"] = volume if volume is not None else _v + _v = arg.pop("waterfall", None) + self["waterfall"] = waterfall if waterfall is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/template/data/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/template/data/__init__.py index 80431de8785..cf80325a54c 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/template/data/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/template/data/__init__.py @@ -1,126 +1,83 @@ - - from plotly.graph_objs import Waterfall - from plotly.graph_objs import Volume - from plotly.graph_objs import Violin - from plotly.graph_objs import Table - from plotly.graph_objs import Surface - from plotly.graph_objs import Sunburst - from plotly.graph_objs import Streamtube - from plotly.graph_objs import Splom - from plotly.graph_objs import Scatterternary - from plotly.graph_objs import Scatter - from plotly.graph_objs import Scatterpolar - from plotly.graph_objs import Scatterpolargl - from plotly.graph_objs import Scattermapbox - from plotly.graph_objs import Scattergl - from plotly.graph_objs import Scattergeo - from plotly.graph_objs import Scattercarpet - from plotly.graph_objs import Scatter3d - from plotly.graph_objs import Sankey - from plotly.graph_objs import Pointcloud - from plotly.graph_objs import Pie - from plotly.graph_objs import Parcoords - from plotly.graph_objs import Parcats - from plotly.graph_objs import Ohlc - from plotly.graph_objs import Mesh3d - from plotly.graph_objs import Isosurface - from plotly.graph_objs import Histogram - from plotly.graph_objs import Histogram2d - from plotly.graph_objs import Histogram2dContour - from plotly.graph_objs import Heatmap - from plotly.graph_objs import Heatmapgl - from plotly.graph_objs import Funnel - from plotly.graph_objs import Funnelarea - from plotly.graph_objs import Contour - from plotly.graph_objs import Contourcarpet - from plotly.graph_objs import Cone - from plotly.graph_objs import Choropleth - from plotly.graph_objs import Carpet - from plotly.graph_objs import Candlestick - from plotly.graph_objs import Box - from plotly.graph_objs import Bar - from plotly.graph_objs import Barpolar - from plotly.graph_objs import Area diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/__init__.py index f9ed4ba71eb..58f61cff034 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -22,11 +20,11 @@ def column(self): ------- int """ - return self['column'] + return self["column"] @column.setter def column(self, val): - self['column'] = val + self["column"] = val # row # --- @@ -44,11 +42,11 @@ def row(self): ------- int """ - return self['row'] + return self["row"] @row.setter def row(self, val): - self['row'] = val + self["row"] = val # x # - @@ -70,11 +68,11 @@ def x(self): ------- list """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -96,17 +94,17 @@ def y(self): ------- list """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.ternary' + return "layout.ternary" # Self properties description # --------------------------- @@ -127,9 +125,7 @@ def _prop_descriptions(self): plot fraction). """ - def __init__( - self, arg=None, column=None, row=None, x=None, y=None, **kwargs - ): + def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): """ Construct a new Domain object @@ -155,7 +151,7 @@ def __init__( ------- Domain """ - super(Domain, self).__init__('domain') + super(Domain, self).__init__("domain") # Validate arg # ------------ @@ -175,29 +171,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.ternary import (domain as v_domain) + from plotly.validators.layout.ternary import domain as v_domain # Initialize validators # --------------------- - self._validators['column'] = v_domain.ColumnValidator() - self._validators['row'] = v_domain.RowValidator() - self._validators['x'] = v_domain.XValidator() - self._validators['y'] = v_domain.YValidator() + self._validators["column"] = v_domain.ColumnValidator() + self._validators["row"] = v_domain.RowValidator() + self._validators["x"] = v_domain.XValidator() + self._validators["y"] = v_domain.YValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('column', None) - self['column'] = column if column is not None else _v - _v = arg.pop('row', None) - self['row'] = row if row is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v + _v = arg.pop("column", None) + self["column"] = column if column is not None else _v + _v = arg.pop("row", None) + self["row"] = row if row is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v # Process unknown kwargs # ---------------------- @@ -270,11 +266,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dtick # ----- @@ -308,11 +304,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -333,11 +329,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # gridcolor # --------- @@ -392,11 +388,11 @@ def gridcolor(self): ------- str """ - return self['gridcolor'] + return self["gridcolor"] @gridcolor.setter def gridcolor(self, val): - self['gridcolor'] = val + self["gridcolor"] = val # gridwidth # --------- @@ -412,11 +408,11 @@ def gridwidth(self): ------- int|float """ - return self['gridwidth'] + return self["gridwidth"] @gridwidth.setter def gridwidth(self, val): - self['gridwidth'] = val + self["gridwidth"] = val # hoverformat # ----------- @@ -441,11 +437,11 @@ def hoverformat(self): ------- str """ - return self['hoverformat'] + return self["hoverformat"] @hoverformat.setter def hoverformat(self, val): - self['hoverformat'] = val + self["hoverformat"] = val # layer # ----- @@ -467,11 +463,11 @@ def layer(self): ------- Any """ - return self['layer'] + return self["layer"] @layer.setter def layer(self, val): - self['layer'] = val + self["layer"] = val # linecolor # --------- @@ -526,11 +522,11 @@ def linecolor(self): ------- str """ - return self['linecolor'] + return self["linecolor"] @linecolor.setter def linecolor(self, val): - self['linecolor'] = val + self["linecolor"] = val # linewidth # --------- @@ -546,11 +542,11 @@ def linewidth(self): ------- int|float """ - return self['linewidth'] + return self["linewidth"] @linewidth.setter def linewidth(self, val): - self['linewidth'] = val + self["linewidth"] = val # min # --- @@ -568,11 +564,11 @@ def min(self): ------- int|float """ - return self['min'] + return self["min"] @min.setter def min(self, val): - self['min'] = val + self["min"] = val # nticks # ------ @@ -592,11 +588,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # separatethousands # ----------------- @@ -612,11 +608,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -636,11 +632,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showgrid # -------- @@ -657,11 +653,11 @@ def showgrid(self): ------- bool """ - return self['showgrid'] + return self["showgrid"] @showgrid.setter def showgrid(self, val): - self['showgrid'] = val + self["showgrid"] = val # showline # -------- @@ -677,11 +673,11 @@ def showline(self): ------- bool """ - return self['showline'] + return self["showline"] @showline.setter def showline(self, val): - self['showline'] = val + self["showline"] = val # showticklabels # -------------- @@ -697,11 +693,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -721,11 +717,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -742,11 +738,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # tick0 # ----- @@ -769,11 +765,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -793,11 +789,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -852,11 +848,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -897,11 +893,11 @@ def tickfont(self): ------- plotly.graph_objs.layout.ternary.caxis.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -926,11 +922,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -983,11 +979,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.layout.ternary.caxis.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1011,11 +1007,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.layout.ternary.caxis.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1031,11 +1027,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1058,11 +1054,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1079,11 +1075,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1102,11 +1098,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1123,11 +1119,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1145,11 +1141,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1165,11 +1161,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1186,11 +1182,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1206,11 +1202,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1226,11 +1222,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1260,11 +1256,11 @@ def title(self): ------- plotly.graph_objs.layout.ternary.caxis.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1307,11 +1303,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # uirevision # ---------- @@ -1328,17 +1324,17 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.ternary' + return "layout.ternary" # Self properties description # --------------------------- @@ -1525,7 +1521,7 @@ def _prop_descriptions(self): configuration. Defaults to `ternary.uirevision`. """ - _mapped_properties = {'titlefont': ('title', 'font')} + _mapped_properties = {"titlefont": ("title", "font")} def __init__( self, @@ -1761,7 +1757,7 @@ def __init__( ------- Caxis """ - super(Caxis, self).__init__('caxis') + super(Caxis, self).__init__("caxis") # Validate arg # ------------ @@ -1781,143 +1777,136 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.ternary import (caxis as v_caxis) + from plotly.validators.layout.ternary import caxis as v_caxis # Initialize validators # --------------------- - self._validators['color'] = v_caxis.ColorValidator() - self._validators['dtick'] = v_caxis.DtickValidator() - self._validators['exponentformat'] = v_caxis.ExponentformatValidator() - self._validators['gridcolor'] = v_caxis.GridcolorValidator() - self._validators['gridwidth'] = v_caxis.GridwidthValidator() - self._validators['hoverformat'] = v_caxis.HoverformatValidator() - self._validators['layer'] = v_caxis.LayerValidator() - self._validators['linecolor'] = v_caxis.LinecolorValidator() - self._validators['linewidth'] = v_caxis.LinewidthValidator() - self._validators['min'] = v_caxis.MinValidator() - self._validators['nticks'] = v_caxis.NticksValidator() - self._validators['separatethousands' - ] = v_caxis.SeparatethousandsValidator() - self._validators['showexponent'] = v_caxis.ShowexponentValidator() - self._validators['showgrid'] = v_caxis.ShowgridValidator() - self._validators['showline'] = v_caxis.ShowlineValidator() - self._validators['showticklabels'] = v_caxis.ShowticklabelsValidator() - self._validators['showtickprefix'] = v_caxis.ShowtickprefixValidator() - self._validators['showticksuffix'] = v_caxis.ShowticksuffixValidator() - self._validators['tick0'] = v_caxis.Tick0Validator() - self._validators['tickangle'] = v_caxis.TickangleValidator() - self._validators['tickcolor'] = v_caxis.TickcolorValidator() - self._validators['tickfont'] = v_caxis.TickfontValidator() - self._validators['tickformat'] = v_caxis.TickformatValidator() - self._validators['tickformatstops'] = v_caxis.TickformatstopsValidator( - ) - self._validators['tickformatstopdefaults' - ] = v_caxis.TickformatstopValidator() - self._validators['ticklen'] = v_caxis.TicklenValidator() - self._validators['tickmode'] = v_caxis.TickmodeValidator() - self._validators['tickprefix'] = v_caxis.TickprefixValidator() - self._validators['ticks'] = v_caxis.TicksValidator() - self._validators['ticksuffix'] = v_caxis.TicksuffixValidator() - self._validators['ticktext'] = v_caxis.TicktextValidator() - self._validators['ticktextsrc'] = v_caxis.TicktextsrcValidator() - self._validators['tickvals'] = v_caxis.TickvalsValidator() - self._validators['tickvalssrc'] = v_caxis.TickvalssrcValidator() - self._validators['tickwidth'] = v_caxis.TickwidthValidator() - self._validators['title'] = v_caxis.TitleValidator() - self._validators['uirevision'] = v_caxis.UirevisionValidator() + self._validators["color"] = v_caxis.ColorValidator() + self._validators["dtick"] = v_caxis.DtickValidator() + self._validators["exponentformat"] = v_caxis.ExponentformatValidator() + self._validators["gridcolor"] = v_caxis.GridcolorValidator() + self._validators["gridwidth"] = v_caxis.GridwidthValidator() + self._validators["hoverformat"] = v_caxis.HoverformatValidator() + self._validators["layer"] = v_caxis.LayerValidator() + self._validators["linecolor"] = v_caxis.LinecolorValidator() + self._validators["linewidth"] = v_caxis.LinewidthValidator() + self._validators["min"] = v_caxis.MinValidator() + self._validators["nticks"] = v_caxis.NticksValidator() + self._validators["separatethousands"] = v_caxis.SeparatethousandsValidator() + self._validators["showexponent"] = v_caxis.ShowexponentValidator() + self._validators["showgrid"] = v_caxis.ShowgridValidator() + self._validators["showline"] = v_caxis.ShowlineValidator() + self._validators["showticklabels"] = v_caxis.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_caxis.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_caxis.ShowticksuffixValidator() + self._validators["tick0"] = v_caxis.Tick0Validator() + self._validators["tickangle"] = v_caxis.TickangleValidator() + self._validators["tickcolor"] = v_caxis.TickcolorValidator() + self._validators["tickfont"] = v_caxis.TickfontValidator() + self._validators["tickformat"] = v_caxis.TickformatValidator() + self._validators["tickformatstops"] = v_caxis.TickformatstopsValidator() + self._validators["tickformatstopdefaults"] = v_caxis.TickformatstopValidator() + self._validators["ticklen"] = v_caxis.TicklenValidator() + self._validators["tickmode"] = v_caxis.TickmodeValidator() + self._validators["tickprefix"] = v_caxis.TickprefixValidator() + self._validators["ticks"] = v_caxis.TicksValidator() + self._validators["ticksuffix"] = v_caxis.TicksuffixValidator() + self._validators["ticktext"] = v_caxis.TicktextValidator() + self._validators["ticktextsrc"] = v_caxis.TicktextsrcValidator() + self._validators["tickvals"] = v_caxis.TickvalsValidator() + self._validators["tickvalssrc"] = v_caxis.TickvalssrcValidator() + self._validators["tickwidth"] = v_caxis.TickwidthValidator() + self._validators["title"] = v_caxis.TitleValidator() + self._validators["uirevision"] = v_caxis.UirevisionValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('gridcolor', None) - self['gridcolor'] = gridcolor if gridcolor is not None else _v - _v = arg.pop('gridwidth', None) - self['gridwidth'] = gridwidth if gridwidth is not None else _v - _v = arg.pop('hoverformat', None) - self['hoverformat'] = hoverformat if hoverformat is not None else _v - _v = arg.pop('layer', None) - self['layer'] = layer if layer is not None else _v - _v = arg.pop('linecolor', None) - self['linecolor'] = linecolor if linecolor is not None else _v - _v = arg.pop('linewidth', None) - self['linewidth'] = linewidth if linewidth is not None else _v - _v = arg.pop('min', None) - self['min'] = min if min is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showgrid', None) - self['showgrid'] = showgrid if showgrid is not None else _v - _v = arg.pop('showline', None) - self['showline'] = showline if showline is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("gridcolor", None) + self["gridcolor"] = gridcolor if gridcolor is not None else _v + _v = arg.pop("gridwidth", None) + self["gridwidth"] = gridwidth if gridwidth is not None else _v + _v = arg.pop("hoverformat", None) + self["hoverformat"] = hoverformat if hoverformat is not None else _v + _v = arg.pop("layer", None) + self["layer"] = layer if layer is not None else _v + _v = arg.pop("linecolor", None) + self["linecolor"] = linecolor if linecolor is not None else _v + _v = arg.pop("linewidth", None) + self["linewidth"] = linewidth if linewidth is not None else _v + _v = arg.pop("min", None) + self["min"] = min if min is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showgrid", None) + self["showgrid"] = showgrid if showgrid is not None else _v + _v = arg.pop("showline", None) + self["showline"] = showline if showline is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v + self["titlefont"] = _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v # Process unknown kwargs # ---------------------- @@ -1990,11 +1979,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dtick # ----- @@ -2028,11 +2017,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -2053,11 +2042,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # gridcolor # --------- @@ -2112,11 +2101,11 @@ def gridcolor(self): ------- str """ - return self['gridcolor'] + return self["gridcolor"] @gridcolor.setter def gridcolor(self, val): - self['gridcolor'] = val + self["gridcolor"] = val # gridwidth # --------- @@ -2132,11 +2121,11 @@ def gridwidth(self): ------- int|float """ - return self['gridwidth'] + return self["gridwidth"] @gridwidth.setter def gridwidth(self, val): - self['gridwidth'] = val + self["gridwidth"] = val # hoverformat # ----------- @@ -2161,11 +2150,11 @@ def hoverformat(self): ------- str """ - return self['hoverformat'] + return self["hoverformat"] @hoverformat.setter def hoverformat(self, val): - self['hoverformat'] = val + self["hoverformat"] = val # layer # ----- @@ -2187,11 +2176,11 @@ def layer(self): ------- Any """ - return self['layer'] + return self["layer"] @layer.setter def layer(self, val): - self['layer'] = val + self["layer"] = val # linecolor # --------- @@ -2246,11 +2235,11 @@ def linecolor(self): ------- str """ - return self['linecolor'] + return self["linecolor"] @linecolor.setter def linecolor(self, val): - self['linecolor'] = val + self["linecolor"] = val # linewidth # --------- @@ -2266,11 +2255,11 @@ def linewidth(self): ------- int|float """ - return self['linewidth'] + return self["linewidth"] @linewidth.setter def linewidth(self, val): - self['linewidth'] = val + self["linewidth"] = val # min # --- @@ -2288,11 +2277,11 @@ def min(self): ------- int|float """ - return self['min'] + return self["min"] @min.setter def min(self, val): - self['min'] = val + self["min"] = val # nticks # ------ @@ -2312,11 +2301,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # separatethousands # ----------------- @@ -2332,11 +2321,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -2356,11 +2345,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showgrid # -------- @@ -2377,11 +2366,11 @@ def showgrid(self): ------- bool """ - return self['showgrid'] + return self["showgrid"] @showgrid.setter def showgrid(self, val): - self['showgrid'] = val + self["showgrid"] = val # showline # -------- @@ -2397,11 +2386,11 @@ def showline(self): ------- bool """ - return self['showline'] + return self["showline"] @showline.setter def showline(self, val): - self['showline'] = val + self["showline"] = val # showticklabels # -------------- @@ -2417,11 +2406,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -2441,11 +2430,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -2462,11 +2451,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # tick0 # ----- @@ -2489,11 +2478,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -2513,11 +2502,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -2572,11 +2561,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -2617,11 +2606,11 @@ def tickfont(self): ------- plotly.graph_objs.layout.ternary.baxis.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -2646,11 +2635,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -2703,11 +2692,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.layout.ternary.baxis.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -2731,11 +2720,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.layout.ternary.baxis.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -2751,11 +2740,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -2778,11 +2767,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -2799,11 +2788,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -2822,11 +2811,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -2843,11 +2832,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -2865,11 +2854,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -2885,11 +2874,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -2906,11 +2895,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -2926,11 +2915,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -2946,11 +2935,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -2980,11 +2969,11 @@ def title(self): ------- plotly.graph_objs.layout.ternary.baxis.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -3027,11 +3016,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # uirevision # ---------- @@ -3048,17 +3037,17 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.ternary' + return "layout.ternary" # Self properties description # --------------------------- @@ -3245,7 +3234,7 @@ def _prop_descriptions(self): configuration. Defaults to `ternary.uirevision`. """ - _mapped_properties = {'titlefont': ('title', 'font')} + _mapped_properties = {"titlefont": ("title", "font")} def __init__( self, @@ -3481,7 +3470,7 @@ def __init__( ------- Baxis """ - super(Baxis, self).__init__('baxis') + super(Baxis, self).__init__("baxis") # Validate arg # ------------ @@ -3501,143 +3490,136 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.ternary import (baxis as v_baxis) + from plotly.validators.layout.ternary import baxis as v_baxis # Initialize validators # --------------------- - self._validators['color'] = v_baxis.ColorValidator() - self._validators['dtick'] = v_baxis.DtickValidator() - self._validators['exponentformat'] = v_baxis.ExponentformatValidator() - self._validators['gridcolor'] = v_baxis.GridcolorValidator() - self._validators['gridwidth'] = v_baxis.GridwidthValidator() - self._validators['hoverformat'] = v_baxis.HoverformatValidator() - self._validators['layer'] = v_baxis.LayerValidator() - self._validators['linecolor'] = v_baxis.LinecolorValidator() - self._validators['linewidth'] = v_baxis.LinewidthValidator() - self._validators['min'] = v_baxis.MinValidator() - self._validators['nticks'] = v_baxis.NticksValidator() - self._validators['separatethousands' - ] = v_baxis.SeparatethousandsValidator() - self._validators['showexponent'] = v_baxis.ShowexponentValidator() - self._validators['showgrid'] = v_baxis.ShowgridValidator() - self._validators['showline'] = v_baxis.ShowlineValidator() - self._validators['showticklabels'] = v_baxis.ShowticklabelsValidator() - self._validators['showtickprefix'] = v_baxis.ShowtickprefixValidator() - self._validators['showticksuffix'] = v_baxis.ShowticksuffixValidator() - self._validators['tick0'] = v_baxis.Tick0Validator() - self._validators['tickangle'] = v_baxis.TickangleValidator() - self._validators['tickcolor'] = v_baxis.TickcolorValidator() - self._validators['tickfont'] = v_baxis.TickfontValidator() - self._validators['tickformat'] = v_baxis.TickformatValidator() - self._validators['tickformatstops'] = v_baxis.TickformatstopsValidator( - ) - self._validators['tickformatstopdefaults' - ] = v_baxis.TickformatstopValidator() - self._validators['ticklen'] = v_baxis.TicklenValidator() - self._validators['tickmode'] = v_baxis.TickmodeValidator() - self._validators['tickprefix'] = v_baxis.TickprefixValidator() - self._validators['ticks'] = v_baxis.TicksValidator() - self._validators['ticksuffix'] = v_baxis.TicksuffixValidator() - self._validators['ticktext'] = v_baxis.TicktextValidator() - self._validators['ticktextsrc'] = v_baxis.TicktextsrcValidator() - self._validators['tickvals'] = v_baxis.TickvalsValidator() - self._validators['tickvalssrc'] = v_baxis.TickvalssrcValidator() - self._validators['tickwidth'] = v_baxis.TickwidthValidator() - self._validators['title'] = v_baxis.TitleValidator() - self._validators['uirevision'] = v_baxis.UirevisionValidator() + self._validators["color"] = v_baxis.ColorValidator() + self._validators["dtick"] = v_baxis.DtickValidator() + self._validators["exponentformat"] = v_baxis.ExponentformatValidator() + self._validators["gridcolor"] = v_baxis.GridcolorValidator() + self._validators["gridwidth"] = v_baxis.GridwidthValidator() + self._validators["hoverformat"] = v_baxis.HoverformatValidator() + self._validators["layer"] = v_baxis.LayerValidator() + self._validators["linecolor"] = v_baxis.LinecolorValidator() + self._validators["linewidth"] = v_baxis.LinewidthValidator() + self._validators["min"] = v_baxis.MinValidator() + self._validators["nticks"] = v_baxis.NticksValidator() + self._validators["separatethousands"] = v_baxis.SeparatethousandsValidator() + self._validators["showexponent"] = v_baxis.ShowexponentValidator() + self._validators["showgrid"] = v_baxis.ShowgridValidator() + self._validators["showline"] = v_baxis.ShowlineValidator() + self._validators["showticklabels"] = v_baxis.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_baxis.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_baxis.ShowticksuffixValidator() + self._validators["tick0"] = v_baxis.Tick0Validator() + self._validators["tickangle"] = v_baxis.TickangleValidator() + self._validators["tickcolor"] = v_baxis.TickcolorValidator() + self._validators["tickfont"] = v_baxis.TickfontValidator() + self._validators["tickformat"] = v_baxis.TickformatValidator() + self._validators["tickformatstops"] = v_baxis.TickformatstopsValidator() + self._validators["tickformatstopdefaults"] = v_baxis.TickformatstopValidator() + self._validators["ticklen"] = v_baxis.TicklenValidator() + self._validators["tickmode"] = v_baxis.TickmodeValidator() + self._validators["tickprefix"] = v_baxis.TickprefixValidator() + self._validators["ticks"] = v_baxis.TicksValidator() + self._validators["ticksuffix"] = v_baxis.TicksuffixValidator() + self._validators["ticktext"] = v_baxis.TicktextValidator() + self._validators["ticktextsrc"] = v_baxis.TicktextsrcValidator() + self._validators["tickvals"] = v_baxis.TickvalsValidator() + self._validators["tickvalssrc"] = v_baxis.TickvalssrcValidator() + self._validators["tickwidth"] = v_baxis.TickwidthValidator() + self._validators["title"] = v_baxis.TitleValidator() + self._validators["uirevision"] = v_baxis.UirevisionValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('gridcolor', None) - self['gridcolor'] = gridcolor if gridcolor is not None else _v - _v = arg.pop('gridwidth', None) - self['gridwidth'] = gridwidth if gridwidth is not None else _v - _v = arg.pop('hoverformat', None) - self['hoverformat'] = hoverformat if hoverformat is not None else _v - _v = arg.pop('layer', None) - self['layer'] = layer if layer is not None else _v - _v = arg.pop('linecolor', None) - self['linecolor'] = linecolor if linecolor is not None else _v - _v = arg.pop('linewidth', None) - self['linewidth'] = linewidth if linewidth is not None else _v - _v = arg.pop('min', None) - self['min'] = min if min is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showgrid', None) - self['showgrid'] = showgrid if showgrid is not None else _v - _v = arg.pop('showline', None) - self['showline'] = showline if showline is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("gridcolor", None) + self["gridcolor"] = gridcolor if gridcolor is not None else _v + _v = arg.pop("gridwidth", None) + self["gridwidth"] = gridwidth if gridwidth is not None else _v + _v = arg.pop("hoverformat", None) + self["hoverformat"] = hoverformat if hoverformat is not None else _v + _v = arg.pop("layer", None) + self["layer"] = layer if layer is not None else _v + _v = arg.pop("linecolor", None) + self["linecolor"] = linecolor if linecolor is not None else _v + _v = arg.pop("linewidth", None) + self["linewidth"] = linewidth if linewidth is not None else _v + _v = arg.pop("min", None) + self["min"] = min if min is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showgrid", None) + self["showgrid"] = showgrid if showgrid is not None else _v + _v = arg.pop("showline", None) + self["showline"] = showline if showline is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v + self["titlefont"] = _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v # Process unknown kwargs # ---------------------- @@ -3710,11 +3692,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dtick # ----- @@ -3748,11 +3730,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -3773,11 +3755,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # gridcolor # --------- @@ -3832,11 +3814,11 @@ def gridcolor(self): ------- str """ - return self['gridcolor'] + return self["gridcolor"] @gridcolor.setter def gridcolor(self, val): - self['gridcolor'] = val + self["gridcolor"] = val # gridwidth # --------- @@ -3852,11 +3834,11 @@ def gridwidth(self): ------- int|float """ - return self['gridwidth'] + return self["gridwidth"] @gridwidth.setter def gridwidth(self, val): - self['gridwidth'] = val + self["gridwidth"] = val # hoverformat # ----------- @@ -3881,11 +3863,11 @@ def hoverformat(self): ------- str """ - return self['hoverformat'] + return self["hoverformat"] @hoverformat.setter def hoverformat(self, val): - self['hoverformat'] = val + self["hoverformat"] = val # layer # ----- @@ -3907,11 +3889,11 @@ def layer(self): ------- Any """ - return self['layer'] + return self["layer"] @layer.setter def layer(self, val): - self['layer'] = val + self["layer"] = val # linecolor # --------- @@ -3966,11 +3948,11 @@ def linecolor(self): ------- str """ - return self['linecolor'] + return self["linecolor"] @linecolor.setter def linecolor(self, val): - self['linecolor'] = val + self["linecolor"] = val # linewidth # --------- @@ -3986,11 +3968,11 @@ def linewidth(self): ------- int|float """ - return self['linewidth'] + return self["linewidth"] @linewidth.setter def linewidth(self, val): - self['linewidth'] = val + self["linewidth"] = val # min # --- @@ -4008,11 +3990,11 @@ def min(self): ------- int|float """ - return self['min'] + return self["min"] @min.setter def min(self, val): - self['min'] = val + self["min"] = val # nticks # ------ @@ -4032,11 +4014,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # separatethousands # ----------------- @@ -4052,11 +4034,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -4076,11 +4058,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showgrid # -------- @@ -4097,11 +4079,11 @@ def showgrid(self): ------- bool """ - return self['showgrid'] + return self["showgrid"] @showgrid.setter def showgrid(self, val): - self['showgrid'] = val + self["showgrid"] = val # showline # -------- @@ -4117,11 +4099,11 @@ def showline(self): ------- bool """ - return self['showline'] + return self["showline"] @showline.setter def showline(self, val): - self['showline'] = val + self["showline"] = val # showticklabels # -------------- @@ -4137,11 +4119,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -4161,11 +4143,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -4182,11 +4164,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # tick0 # ----- @@ -4209,11 +4191,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -4233,11 +4215,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -4292,11 +4274,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -4337,11 +4319,11 @@ def tickfont(self): ------- plotly.graph_objs.layout.ternary.aaxis.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -4366,11 +4348,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -4423,11 +4405,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.layout.ternary.aaxis.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -4451,11 +4433,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.layout.ternary.aaxis.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -4471,11 +4453,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -4498,11 +4480,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -4519,11 +4501,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -4542,11 +4524,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -4563,11 +4545,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -4585,11 +4567,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -4605,11 +4587,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -4626,11 +4608,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -4646,11 +4628,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -4666,11 +4648,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -4700,11 +4682,11 @@ def title(self): ------- plotly.graph_objs.layout.ternary.aaxis.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -4747,11 +4729,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # uirevision # ---------- @@ -4768,17 +4750,17 @@ def uirevision(self): ------- Any """ - return self['uirevision'] + return self["uirevision"] @uirevision.setter def uirevision(self, val): - self['uirevision'] = val + self["uirevision"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.ternary' + return "layout.ternary" # Self properties description # --------------------------- @@ -4965,7 +4947,7 @@ def _prop_descriptions(self): configuration. Defaults to `ternary.uirevision`. """ - _mapped_properties = {'titlefont': ('title', 'font')} + _mapped_properties = {"titlefont": ("title", "font")} def __init__( self, @@ -5201,7 +5183,7 @@ def __init__( ------- Aaxis """ - super(Aaxis, self).__init__('aaxis') + super(Aaxis, self).__init__("aaxis") # Validate arg # ------------ @@ -5221,143 +5203,136 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.ternary import (aaxis as v_aaxis) + from plotly.validators.layout.ternary import aaxis as v_aaxis # Initialize validators # --------------------- - self._validators['color'] = v_aaxis.ColorValidator() - self._validators['dtick'] = v_aaxis.DtickValidator() - self._validators['exponentformat'] = v_aaxis.ExponentformatValidator() - self._validators['gridcolor'] = v_aaxis.GridcolorValidator() - self._validators['gridwidth'] = v_aaxis.GridwidthValidator() - self._validators['hoverformat'] = v_aaxis.HoverformatValidator() - self._validators['layer'] = v_aaxis.LayerValidator() - self._validators['linecolor'] = v_aaxis.LinecolorValidator() - self._validators['linewidth'] = v_aaxis.LinewidthValidator() - self._validators['min'] = v_aaxis.MinValidator() - self._validators['nticks'] = v_aaxis.NticksValidator() - self._validators['separatethousands' - ] = v_aaxis.SeparatethousandsValidator() - self._validators['showexponent'] = v_aaxis.ShowexponentValidator() - self._validators['showgrid'] = v_aaxis.ShowgridValidator() - self._validators['showline'] = v_aaxis.ShowlineValidator() - self._validators['showticklabels'] = v_aaxis.ShowticklabelsValidator() - self._validators['showtickprefix'] = v_aaxis.ShowtickprefixValidator() - self._validators['showticksuffix'] = v_aaxis.ShowticksuffixValidator() - self._validators['tick0'] = v_aaxis.Tick0Validator() - self._validators['tickangle'] = v_aaxis.TickangleValidator() - self._validators['tickcolor'] = v_aaxis.TickcolorValidator() - self._validators['tickfont'] = v_aaxis.TickfontValidator() - self._validators['tickformat'] = v_aaxis.TickformatValidator() - self._validators['tickformatstops'] = v_aaxis.TickformatstopsValidator( - ) - self._validators['tickformatstopdefaults' - ] = v_aaxis.TickformatstopValidator() - self._validators['ticklen'] = v_aaxis.TicklenValidator() - self._validators['tickmode'] = v_aaxis.TickmodeValidator() - self._validators['tickprefix'] = v_aaxis.TickprefixValidator() - self._validators['ticks'] = v_aaxis.TicksValidator() - self._validators['ticksuffix'] = v_aaxis.TicksuffixValidator() - self._validators['ticktext'] = v_aaxis.TicktextValidator() - self._validators['ticktextsrc'] = v_aaxis.TicktextsrcValidator() - self._validators['tickvals'] = v_aaxis.TickvalsValidator() - self._validators['tickvalssrc'] = v_aaxis.TickvalssrcValidator() - self._validators['tickwidth'] = v_aaxis.TickwidthValidator() - self._validators['title'] = v_aaxis.TitleValidator() - self._validators['uirevision'] = v_aaxis.UirevisionValidator() + self._validators["color"] = v_aaxis.ColorValidator() + self._validators["dtick"] = v_aaxis.DtickValidator() + self._validators["exponentformat"] = v_aaxis.ExponentformatValidator() + self._validators["gridcolor"] = v_aaxis.GridcolorValidator() + self._validators["gridwidth"] = v_aaxis.GridwidthValidator() + self._validators["hoverformat"] = v_aaxis.HoverformatValidator() + self._validators["layer"] = v_aaxis.LayerValidator() + self._validators["linecolor"] = v_aaxis.LinecolorValidator() + self._validators["linewidth"] = v_aaxis.LinewidthValidator() + self._validators["min"] = v_aaxis.MinValidator() + self._validators["nticks"] = v_aaxis.NticksValidator() + self._validators["separatethousands"] = v_aaxis.SeparatethousandsValidator() + self._validators["showexponent"] = v_aaxis.ShowexponentValidator() + self._validators["showgrid"] = v_aaxis.ShowgridValidator() + self._validators["showline"] = v_aaxis.ShowlineValidator() + self._validators["showticklabels"] = v_aaxis.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_aaxis.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_aaxis.ShowticksuffixValidator() + self._validators["tick0"] = v_aaxis.Tick0Validator() + self._validators["tickangle"] = v_aaxis.TickangleValidator() + self._validators["tickcolor"] = v_aaxis.TickcolorValidator() + self._validators["tickfont"] = v_aaxis.TickfontValidator() + self._validators["tickformat"] = v_aaxis.TickformatValidator() + self._validators["tickformatstops"] = v_aaxis.TickformatstopsValidator() + self._validators["tickformatstopdefaults"] = v_aaxis.TickformatstopValidator() + self._validators["ticklen"] = v_aaxis.TicklenValidator() + self._validators["tickmode"] = v_aaxis.TickmodeValidator() + self._validators["tickprefix"] = v_aaxis.TickprefixValidator() + self._validators["ticks"] = v_aaxis.TicksValidator() + self._validators["ticksuffix"] = v_aaxis.TicksuffixValidator() + self._validators["ticktext"] = v_aaxis.TicktextValidator() + self._validators["ticktextsrc"] = v_aaxis.TicktextsrcValidator() + self._validators["tickvals"] = v_aaxis.TickvalsValidator() + self._validators["tickvalssrc"] = v_aaxis.TickvalssrcValidator() + self._validators["tickwidth"] = v_aaxis.TickwidthValidator() + self._validators["title"] = v_aaxis.TitleValidator() + self._validators["uirevision"] = v_aaxis.UirevisionValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('gridcolor', None) - self['gridcolor'] = gridcolor if gridcolor is not None else _v - _v = arg.pop('gridwidth', None) - self['gridwidth'] = gridwidth if gridwidth is not None else _v - _v = arg.pop('hoverformat', None) - self['hoverformat'] = hoverformat if hoverformat is not None else _v - _v = arg.pop('layer', None) - self['layer'] = layer if layer is not None else _v - _v = arg.pop('linecolor', None) - self['linecolor'] = linecolor if linecolor is not None else _v - _v = arg.pop('linewidth', None) - self['linewidth'] = linewidth if linewidth is not None else _v - _v = arg.pop('min', None) - self['min'] = min if min is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showgrid', None) - self['showgrid'] = showgrid if showgrid is not None else _v - _v = arg.pop('showline', None) - self['showline'] = showline if showline is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("gridcolor", None) + self["gridcolor"] = gridcolor if gridcolor is not None else _v + _v = arg.pop("gridwidth", None) + self["gridwidth"] = gridwidth if gridwidth is not None else _v + _v = arg.pop("hoverformat", None) + self["hoverformat"] = hoverformat if hoverformat is not None else _v + _v = arg.pop("layer", None) + self["layer"] = layer if layer is not None else _v + _v = arg.pop("linecolor", None) + self["linecolor"] = linecolor if linecolor is not None else _v + _v = arg.pop("linewidth", None) + self["linewidth"] = linewidth if linewidth is not None else _v + _v = arg.pop("min", None) + self["min"] = min if min is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showgrid", None) + self["showgrid"] = showgrid if showgrid is not None else _v + _v = arg.pop("showline", None) + self["showline"] = showline if showline is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('uirevision', None) - self['uirevision'] = uirevision if uirevision is not None else _v + self["titlefont"] = _v + _v = arg.pop("uirevision", None) + self["uirevision"] = uirevision if uirevision is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/__init__.py index 8a8a655de44..d8f5c3937fd 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.layout.ternary.aaxis.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # text # ---- @@ -69,17 +67,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.ternary.aaxis' + return "layout.ternary.aaxis" # Self properties description # --------------------------- @@ -121,7 +119,7 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -141,23 +139,23 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.ternary.aaxis import (title as v_title) + from plotly.validators.layout.ternary.aaxis import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -193,11 +191,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -214,11 +212,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -241,11 +239,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -269,11 +267,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -291,17 +289,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.ternary.aaxis' + return "layout.ternary.aaxis" # Self properties description # --------------------------- @@ -394,7 +392,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -414,36 +412,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.layout.ternary.aaxis import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -511,11 +511,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -542,11 +542,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -560,17 +560,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.ternary.aaxis' + return "layout.ternary.aaxis" # Self properties description # --------------------------- @@ -632,7 +632,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -652,28 +652,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.ternary.aaxis import ( - tickfont as v_tickfont - ) + from plotly.validators.layout.ternary.aaxis import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/title/__init__.py index 00b8456ca6e..69594386e43 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/aaxis/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.ternary.aaxis.title' + return "layout.ternary.aaxis.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.ternary.aaxis.title import ( - font as v_font - ) + from plotly.validators.layout.ternary.aaxis.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/__init__.py index 1ac6e19103c..ab05b157704 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.layout.ternary.baxis.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # text # ---- @@ -69,17 +67,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.ternary.baxis' + return "layout.ternary.baxis" # Self properties description # --------------------------- @@ -121,7 +119,7 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -141,23 +139,23 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.ternary.baxis import (title as v_title) + from plotly.validators.layout.ternary.baxis import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -193,11 +191,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -214,11 +212,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -241,11 +239,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -269,11 +267,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -291,17 +289,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.ternary.baxis' + return "layout.ternary.baxis" # Self properties description # --------------------------- @@ -394,7 +392,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -414,36 +412,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.layout.ternary.baxis import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -511,11 +511,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -542,11 +542,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -560,17 +560,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.ternary.baxis' + return "layout.ternary.baxis" # Self properties description # --------------------------- @@ -632,7 +632,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -652,28 +652,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.ternary.baxis import ( - tickfont as v_tickfont - ) + from plotly.validators.layout.ternary.baxis import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/title/__init__.py index 2b60b64e90b..e6b570583eb 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/baxis/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.ternary.baxis.title' + return "layout.ternary.baxis.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.ternary.baxis.title import ( - font as v_font - ) + from plotly.validators.layout.ternary.baxis.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/__init__.py index 6ae7eb113ef..de6ae106bde 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.layout.ternary.caxis.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # text # ---- @@ -69,17 +67,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.ternary.caxis' + return "layout.ternary.caxis" # Self properties description # --------------------------- @@ -121,7 +119,7 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -141,23 +139,23 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.ternary.caxis import (title as v_title) + from plotly.validators.layout.ternary.caxis import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -193,11 +191,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -214,11 +212,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -241,11 +239,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -269,11 +267,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -291,17 +289,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.ternary.caxis' + return "layout.ternary.caxis" # Self properties description # --------------------------- @@ -394,7 +392,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -414,36 +412,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.layout.ternary.caxis import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -511,11 +511,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -542,11 +542,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -560,17 +560,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.ternary.caxis' + return "layout.ternary.caxis" # Self properties description # --------------------------- @@ -632,7 +632,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -652,28 +652,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.ternary.caxis import ( - tickfont as v_tickfont - ) + from plotly.validators.layout.ternary.caxis import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/title/__init__.py index 63ed26a2bee..380e9ff1d00 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/ternary/caxis/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.ternary.caxis.title' + return "layout.ternary.caxis.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.ternary.caxis.title import ( - font as v_font - ) + from plotly.validators.layout.ternary.caxis.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/title/__init__.py index 4332a471ec4..a2c1df89f05 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -21,11 +19,11 @@ def b(self): ------- int|float """ - return self['b'] + return self["b"] @b.setter def b(self, val): - self['b'] = val + self["b"] = val # l # - @@ -42,11 +40,11 @@ def l(self): ------- int|float """ - return self['l'] + return self["l"] @l.setter def l(self, val): - self['l'] = val + self["l"] = val # r # - @@ -63,11 +61,11 @@ def r(self): ------- int|float """ - return self['r'] + return self["r"] @r.setter def r(self, val): - self['r'] = val + self["r"] = val # t # - @@ -83,17 +81,17 @@ def t(self): ------- int|float """ - return self['t'] + return self["t"] @t.setter def t(self, val): - self['t'] = val + self["t"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.title' + return "layout.title" # Self properties description # --------------------------- @@ -147,7 +145,7 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): ------- Pad """ - super(Pad, self).__init__('pad') + super(Pad, self).__init__("pad") # Validate arg # ------------ @@ -167,29 +165,29 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.title import (pad as v_pad) + from plotly.validators.layout.title import pad as v_pad # Initialize validators # --------------------- - self._validators['b'] = v_pad.BValidator() - self._validators['l'] = v_pad.LValidator() - self._validators['r'] = v_pad.RValidator() - self._validators['t'] = v_pad.TValidator() + self._validators["b"] = v_pad.BValidator() + self._validators["l"] = v_pad.LValidator() + self._validators["r"] = v_pad.RValidator() + self._validators["t"] = v_pad.TValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('b', None) - self['b'] = b if b is not None else _v - _v = arg.pop('l', None) - self['l'] = l if l is not None else _v - _v = arg.pop('r', None) - self['r'] = r if r is not None else _v - _v = arg.pop('t', None) - self['t'] = t if t is not None else _v + _v = arg.pop("b", None) + self["b"] = b if b is not None else _v + _v = arg.pop("l", None) + self["l"] = l if l is not None else _v + _v = arg.pop("r", None) + self["r"] = r if r is not None else _v + _v = arg.pop("t", None) + self["t"] = t if t is not None else _v # Process unknown kwargs # ---------------------- @@ -257,11 +255,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -288,11 +286,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -306,17 +304,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.title' + return "layout.title" # Self properties description # --------------------------- @@ -378,7 +376,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -398,26 +396,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.title import (font as v_font) + from plotly.validators.layout.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/updatemenu/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/updatemenu/__init__.py index 457e00ed5ae..cb5e4cdf77c 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/updatemenu/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/updatemenu/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -21,11 +19,11 @@ def b(self): ------- int|float """ - return self['b'] + return self["b"] @b.setter def b(self, val): - self['b'] = val + self["b"] = val # l # - @@ -42,11 +40,11 @@ def l(self): ------- int|float """ - return self['l'] + return self["l"] @l.setter def l(self, val): - self['l'] = val + self["l"] = val # r # - @@ -63,11 +61,11 @@ def r(self): ------- int|float """ - return self['r'] + return self["r"] @r.setter def r(self, val): - self['r'] = val + self["r"] = val # t # - @@ -83,17 +81,17 @@ def t(self): ------- int|float """ - return self['t'] + return self["t"] @t.setter def t(self, val): - self['t'] = val + self["t"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.updatemenu' + return "layout.updatemenu" # Self properties description # --------------------------- @@ -142,7 +140,7 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): ------- Pad """ - super(Pad, self).__init__('pad') + super(Pad, self).__init__("pad") # Validate arg # ------------ @@ -162,29 +160,29 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.updatemenu import (pad as v_pad) + from plotly.validators.layout.updatemenu import pad as v_pad # Initialize validators # --------------------- - self._validators['b'] = v_pad.BValidator() - self._validators['l'] = v_pad.LValidator() - self._validators['r'] = v_pad.RValidator() - self._validators['t'] = v_pad.TValidator() + self._validators["b"] = v_pad.BValidator() + self._validators["l"] = v_pad.LValidator() + self._validators["r"] = v_pad.RValidator() + self._validators["t"] = v_pad.TValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('b', None) - self['b'] = b if b is not None else _v - _v = arg.pop('l', None) - self['l'] = l if l is not None else _v - _v = arg.pop('r', None) - self['r'] = r if r is not None else _v - _v = arg.pop('t', None) - self['t'] = t if t is not None else _v + _v = arg.pop("b", None) + self["b"] = b if b is not None else _v + _v = arg.pop("l", None) + self["l"] = l if l is not None else _v + _v = arg.pop("r", None) + self["r"] = r if r is not None else _v + _v = arg.pop("t", None) + self["t"] = t if t is not None else _v # Process unknown kwargs # ---------------------- @@ -252,11 +250,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -283,11 +281,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -301,17 +299,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.updatemenu' + return "layout.updatemenu" # Self properties description # --------------------------- @@ -372,7 +370,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -392,26 +390,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.updatemenu import (font as v_font) + from plotly.validators.layout.updatemenu import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- @@ -447,11 +445,11 @@ def args(self): ------- list """ - return self['args'] + return self["args"] @args.setter def args(self, val): - self['args'] = val + self["args"] = val # execute # ------- @@ -473,11 +471,11 @@ def execute(self): ------- bool """ - return self['execute'] + return self["execute"] @execute.setter def execute(self, val): - self['execute'] = val + self["execute"] = val # label # ----- @@ -494,11 +492,11 @@ def label(self): ------- str """ - return self['label'] + return self["label"] @label.setter def label(self, val): - self['label'] = val + self["label"] = val # method # ------ @@ -519,11 +517,11 @@ def method(self): ------- Any """ - return self['method'] + return self["method"] @method.setter def method(self, val): - self['method'] = val + self["method"] = val # name # ---- @@ -546,11 +544,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -574,11 +572,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # visible # ------- @@ -594,17 +592,17 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.updatemenu' + return "layout.updatemenu" # Self properties description # --------------------------- @@ -723,7 +721,7 @@ def __init__( ------- Button """ - super(Button, self).__init__('buttons') + super(Button, self).__init__("buttons") # Validate arg # ------------ @@ -743,40 +741,40 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.updatemenu import (button as v_button) + from plotly.validators.layout.updatemenu import button as v_button # Initialize validators # --------------------- - self._validators['args'] = v_button.ArgsValidator() - self._validators['execute'] = v_button.ExecuteValidator() - self._validators['label'] = v_button.LabelValidator() - self._validators['method'] = v_button.MethodValidator() - self._validators['name'] = v_button.NameValidator() - self._validators['templateitemname' - ] = v_button.TemplateitemnameValidator() - self._validators['visible'] = v_button.VisibleValidator() + self._validators["args"] = v_button.ArgsValidator() + self._validators["execute"] = v_button.ExecuteValidator() + self._validators["label"] = v_button.LabelValidator() + self._validators["method"] = v_button.MethodValidator() + self._validators["name"] = v_button.NameValidator() + self._validators["templateitemname"] = v_button.TemplateitemnameValidator() + self._validators["visible"] = v_button.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('args', None) - self['args'] = args if args is not None else _v - _v = arg.pop('execute', None) - self['execute'] = execute if execute is not None else _v - _v = arg.pop('label', None) - self['label'] = label if label is not None else _v - _v = arg.pop('method', None) - self['method'] = method if method is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("args", None) + self["args"] = args if args is not None else _v + _v = arg.pop("execute", None) + self["execute"] = execute if execute is not None else _v + _v = arg.pop("label", None) + self["label"] = label if label is not None else _v + _v = arg.pop("method", None) + self["method"] = method if method is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/__init__.py index 2aeb83cccf6..d7159b437af 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.layout.xaxis.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # text # ---- @@ -69,17 +67,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.xaxis' + return "layout.xaxis" # Self properties description # --------------------------- @@ -120,7 +118,7 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -140,23 +138,23 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.xaxis import (title as v_title) + from plotly.validators.layout.xaxis import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -192,11 +190,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -213,11 +211,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -240,11 +238,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -268,11 +266,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -290,17 +288,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.xaxis' + return "layout.xaxis" # Self properties description # --------------------------- @@ -393,7 +391,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -413,36 +411,36 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.xaxis import ( - tickformatstop as v_tickformatstop - ) + from plotly.validators.layout.xaxis import tickformatstop as v_tickformatstop # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -510,11 +508,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -541,11 +539,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -559,17 +557,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.xaxis' + return "layout.xaxis" # Self properties description # --------------------------- @@ -630,7 +628,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -650,26 +648,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.xaxis import (tickfont as v_tickfont) + from plotly.validators.layout.xaxis import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- @@ -702,11 +700,11 @@ def autorange(self): ------- bool """ - return self['autorange'] + return self["autorange"] @autorange.setter def autorange(self, val): - self['autorange'] = val + self["autorange"] = val # bgcolor # ------- @@ -761,11 +759,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -820,11 +818,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -841,11 +839,11 @@ def borderwidth(self): ------- int """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # range # ----- @@ -871,11 +869,11 @@ def range(self): ------- list """ - return self['range'] + return self["range"] @range.setter def range(self, val): - self['range'] = val + self["range"] = val # thickness # --------- @@ -892,11 +890,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # visible # ------- @@ -913,11 +911,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # yaxis # ----- @@ -948,17 +946,17 @@ def yaxis(self): ------- plotly.graph_objs.layout.xaxis.rangeslider.YAxis """ - return self['yaxis'] + return self["yaxis"] @yaxis.setter def yaxis(self, val): - self['yaxis'] = val + self["yaxis"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.xaxis' + return "layout.xaxis" # Self properties description # --------------------------- @@ -1054,7 +1052,7 @@ def __init__( ------- Rangeslider """ - super(Rangeslider, self).__init__('rangeslider') + super(Rangeslider, self).__init__("rangeslider") # Validate arg # ------------ @@ -1074,43 +1072,41 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.xaxis import ( - rangeslider as v_rangeslider - ) + from plotly.validators.layout.xaxis import rangeslider as v_rangeslider # Initialize validators # --------------------- - self._validators['autorange'] = v_rangeslider.AutorangeValidator() - self._validators['bgcolor'] = v_rangeslider.BgcolorValidator() - self._validators['bordercolor'] = v_rangeslider.BordercolorValidator() - self._validators['borderwidth'] = v_rangeslider.BorderwidthValidator() - self._validators['range'] = v_rangeslider.RangeValidator() - self._validators['thickness'] = v_rangeslider.ThicknessValidator() - self._validators['visible'] = v_rangeslider.VisibleValidator() - self._validators['yaxis'] = v_rangeslider.YAxisValidator() + self._validators["autorange"] = v_rangeslider.AutorangeValidator() + self._validators["bgcolor"] = v_rangeslider.BgcolorValidator() + self._validators["bordercolor"] = v_rangeslider.BordercolorValidator() + self._validators["borderwidth"] = v_rangeslider.BorderwidthValidator() + self._validators["range"] = v_rangeslider.RangeValidator() + self._validators["thickness"] = v_rangeslider.ThicknessValidator() + self._validators["visible"] = v_rangeslider.VisibleValidator() + self._validators["yaxis"] = v_rangeslider.YAxisValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autorange', None) - self['autorange'] = autorange if autorange is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('range', None) - self['range'] = range if range is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('yaxis', None) - self['yaxis'] = yaxis if yaxis is not None else _v + _v = arg.pop("autorange", None) + self["autorange"] = autorange if autorange is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("range", None) + self["range"] = range if range is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("yaxis", None) + self["yaxis"] = yaxis if yaxis is not None else _v # Process unknown kwargs # ---------------------- @@ -1180,11 +1176,11 @@ def activecolor(self): ------- str """ - return self['activecolor'] + return self["activecolor"] @activecolor.setter def activecolor(self, val): - self['activecolor'] = val + self["activecolor"] = val # bgcolor # ------- @@ -1239,11 +1235,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -1298,11 +1294,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -1319,11 +1315,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # buttons # ------- @@ -1391,11 +1387,11 @@ def buttons(self): ------- tuple[plotly.graph_objs.layout.xaxis.rangeselector.Button] """ - return self['buttons'] + return self["buttons"] @buttons.setter def buttons(self, val): - self['buttons'] = val + self["buttons"] = val # buttondefaults # -------------- @@ -1419,11 +1415,11 @@ def buttondefaults(self): ------- plotly.graph_objs.layout.xaxis.rangeselector.Button """ - return self['buttondefaults'] + return self["buttondefaults"] @buttondefaults.setter def buttondefaults(self, val): - self['buttondefaults'] = val + self["buttondefaults"] = val # font # ---- @@ -1464,11 +1460,11 @@ def font(self): ------- plotly.graph_objs.layout.xaxis.rangeselector.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # visible # ------- @@ -1486,11 +1482,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # x # - @@ -1507,11 +1503,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1530,11 +1526,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # y # - @@ -1551,11 +1547,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -1574,17 +1570,17 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.xaxis' + return "layout.xaxis" # Self properties description # --------------------------- @@ -1704,7 +1700,7 @@ def __init__( ------- Rangeselector """ - super(Rangeselector, self).__init__('rangeselector') + super(Rangeselector, self).__init__("rangeselector") # Validate arg # ------------ @@ -1724,59 +1720,53 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.xaxis import ( - rangeselector as v_rangeselector - ) + from plotly.validators.layout.xaxis import rangeselector as v_rangeselector # Initialize validators # --------------------- - self._validators['activecolor'] = v_rangeselector.ActivecolorValidator( - ) - self._validators['bgcolor'] = v_rangeselector.BgcolorValidator() - self._validators['bordercolor'] = v_rangeselector.BordercolorValidator( - ) - self._validators['borderwidth'] = v_rangeselector.BorderwidthValidator( - ) - self._validators['buttons'] = v_rangeselector.ButtonsValidator() - self._validators['buttondefaults'] = v_rangeselector.ButtonValidator() - self._validators['font'] = v_rangeselector.FontValidator() - self._validators['visible'] = v_rangeselector.VisibleValidator() - self._validators['x'] = v_rangeselector.XValidator() - self._validators['xanchor'] = v_rangeselector.XanchorValidator() - self._validators['y'] = v_rangeselector.YValidator() - self._validators['yanchor'] = v_rangeselector.YanchorValidator() + self._validators["activecolor"] = v_rangeselector.ActivecolorValidator() + self._validators["bgcolor"] = v_rangeselector.BgcolorValidator() + self._validators["bordercolor"] = v_rangeselector.BordercolorValidator() + self._validators["borderwidth"] = v_rangeselector.BorderwidthValidator() + self._validators["buttons"] = v_rangeselector.ButtonsValidator() + self._validators["buttondefaults"] = v_rangeselector.ButtonValidator() + self._validators["font"] = v_rangeselector.FontValidator() + self._validators["visible"] = v_rangeselector.VisibleValidator() + self._validators["x"] = v_rangeselector.XValidator() + self._validators["xanchor"] = v_rangeselector.XanchorValidator() + self._validators["y"] = v_rangeselector.YValidator() + self._validators["yanchor"] = v_rangeselector.YanchorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('activecolor', None) - self['activecolor'] = activecolor if activecolor is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('buttons', None) - self['buttons'] = buttons if buttons is not None else _v - _v = arg.pop('buttondefaults', None) - self['buttondefaults' - ] = buttondefaults if buttondefaults is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v + _v = arg.pop("activecolor", None) + self["activecolor"] = activecolor if activecolor is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("buttons", None) + self["buttons"] = buttons if buttons is not None else _v + _v = arg.pop("buttondefaults", None) + self["buttondefaults"] = buttondefaults if buttondefaults is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeselector/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeselector/__init__.py index e7116006cb7..f0248c2afc3 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeselector/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeselector/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.xaxis.rangeselector' + return "layout.xaxis.rangeselector" # Self properties description # --------------------------- @@ -178,7 +176,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -198,28 +196,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.xaxis.rangeselector import ( - font as v_font - ) + from plotly.validators.layout.xaxis.rangeselector import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- @@ -251,11 +247,11 @@ def count(self): ------- int|float """ - return self['count'] + return self["count"] @count.setter def count(self, val): - self['count'] = val + self["count"] = val # label # ----- @@ -272,11 +268,11 @@ def label(self): ------- str """ - return self['label'] + return self["label"] @label.setter def label(self, val): - self['label'] = val + self["label"] = val # name # ---- @@ -299,11 +295,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # step # ---- @@ -322,11 +318,11 @@ def step(self): ------- Any """ - return self['step'] + return self["step"] @step.setter def step(self, val): - self['step'] = val + self["step"] = val # stepmode # -------- @@ -351,11 +347,11 @@ def stepmode(self): ------- Any """ - return self['stepmode'] + return self["stepmode"] @stepmode.setter def stepmode(self, val): - self['stepmode'] = val + self["stepmode"] = val # templateitemname # ---------------- @@ -379,11 +375,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # visible # ------- @@ -399,17 +395,17 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.xaxis.rangeselector' + return "layout.xaxis.rangeselector" # Self properties description # --------------------------- @@ -527,7 +523,7 @@ def __init__( ------- Button """ - super(Button, self).__init__('buttons') + super(Button, self).__init__("buttons") # Validate arg # ------------ @@ -547,42 +543,40 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.xaxis.rangeselector import ( - button as v_button - ) + from plotly.validators.layout.xaxis.rangeselector import button as v_button # Initialize validators # --------------------- - self._validators['count'] = v_button.CountValidator() - self._validators['label'] = v_button.LabelValidator() - self._validators['name'] = v_button.NameValidator() - self._validators['step'] = v_button.StepValidator() - self._validators['stepmode'] = v_button.StepmodeValidator() - self._validators['templateitemname' - ] = v_button.TemplateitemnameValidator() - self._validators['visible'] = v_button.VisibleValidator() + self._validators["count"] = v_button.CountValidator() + self._validators["label"] = v_button.LabelValidator() + self._validators["name"] = v_button.NameValidator() + self._validators["step"] = v_button.StepValidator() + self._validators["stepmode"] = v_button.StepmodeValidator() + self._validators["templateitemname"] = v_button.TemplateitemnameValidator() + self._validators["visible"] = v_button.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('count', None) - self['count'] = count if count is not None else _v - _v = arg.pop('label', None) - self['label'] = label if label is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('step', None) - self['step'] = step if step is not None else _v - _v = arg.pop('stepmode', None) - self['stepmode'] = stepmode if stepmode is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("count", None) + self["count"] = count if count is not None else _v + _v = arg.pop("label", None) + self["label"] = label if label is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("step", None) + self["step"] = step if step is not None else _v + _v = arg.pop("stepmode", None) + self["stepmode"] = stepmode if stepmode is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeslider/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeslider/__init__.py index 0711912515a..7055d53b7f5 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeslider/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/rangeslider/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -23,11 +21,11 @@ def range(self): ------- list """ - return self['range'] + return self["range"] @range.setter def range(self, val): - self['range'] = val + self["range"] = val # rangemode # --------- @@ -48,17 +46,17 @@ def rangemode(self): ------- Any """ - return self['rangemode'] + return self["rangemode"] @rangemode.setter def rangemode(self, val): - self['rangemode'] = val + self["rangemode"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.xaxis.rangeslider' + return "layout.xaxis.rangeslider" # Self properties description # --------------------------- @@ -100,7 +98,7 @@ def __init__(self, arg=None, range=None, rangemode=None, **kwargs): ------- YAxis """ - super(YAxis, self).__init__('yaxis') + super(YAxis, self).__init__("yaxis") # Validate arg # ------------ @@ -120,25 +118,23 @@ def __init__(self, arg=None, range=None, rangemode=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.xaxis.rangeslider import ( - yaxis as v_yaxis - ) + from plotly.validators.layout.xaxis.rangeslider import yaxis as v_yaxis # Initialize validators # --------------------- - self._validators['range'] = v_yaxis.RangeValidator() - self._validators['rangemode'] = v_yaxis.RangemodeValidator() + self._validators["range"] = v_yaxis.RangeValidator() + self._validators["rangemode"] = v_yaxis.RangemodeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('range', None) - self['range'] = range if range is not None else _v - _v = arg.pop('rangemode', None) - self['rangemode'] = rangemode if rangemode is not None else _v + _v = arg.pop("range", None) + self["range"] = range if range is not None else _v + _v = arg.pop("rangemode", None) + self["rangemode"] = rangemode if rangemode is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/xaxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/xaxis/title/__init__.py index 6cf5448728d..f44d9a0e3e1 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/xaxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/xaxis/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.xaxis.title' + return "layout.xaxis.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,26 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.xaxis.title import (font as v_font) + from plotly.validators.layout.xaxis.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/yaxis/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/yaxis/__init__.py index 111aad2e745..4348631d842 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/yaxis/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/yaxis/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.layout.yaxis.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # text # ---- @@ -69,17 +67,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.yaxis' + return "layout.yaxis" # Self properties description # --------------------------- @@ -120,7 +118,7 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -140,23 +138,23 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.yaxis import (title as v_title) + from plotly.validators.layout.yaxis import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -192,11 +190,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -213,11 +211,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -240,11 +238,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -268,11 +266,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -290,17 +288,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.yaxis' + return "layout.yaxis" # Self properties description # --------------------------- @@ -393,7 +391,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -413,36 +411,36 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.yaxis import ( - tickformatstop as v_tickformatstop - ) + from plotly.validators.layout.yaxis import tickformatstop as v_tickformatstop # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -510,11 +508,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -541,11 +539,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -559,17 +557,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.yaxis' + return "layout.yaxis" # Self properties description # --------------------------- @@ -630,7 +628,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -650,26 +648,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.yaxis import (tickfont as v_tickfont) + from plotly.validators.layout.yaxis import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/layout/yaxis/title/__init__.py b/packages/python/plotly/plotly/graph_objs/layout/yaxis/title/__init__.py index b2f48fe10b6..15f7ce566f3 100644 --- a/packages/python/plotly/plotly/graph_objs/layout/yaxis/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/layout/yaxis/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'layout.yaxis.title' + return "layout.yaxis.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,26 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.layout.yaxis.title import (font as v_font) + from plotly.validators.layout.yaxis.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/__init__.py b/packages/python/plotly/plotly/graph_objs/mesh3d/__init__.py index 36bc18202b1..f58283d6ebe 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -22,11 +20,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -43,17 +41,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'mesh3d' + return "mesh3d" # Self properties description # --------------------------- @@ -94,7 +92,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -114,23 +112,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.mesh3d import (stream as v_stream) + from plotly.validators.mesh3d import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -161,11 +159,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -181,11 +179,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -201,17 +199,17 @@ def z(self): ------- int|float """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'mesh3d' + return "mesh3d" # Self properties description # --------------------------- @@ -252,7 +250,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__('lightposition') + super(Lightposition, self).__init__("lightposition") # Validate arg # ------------ @@ -272,26 +270,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.mesh3d import (lightposition as v_lightposition) + from plotly.validators.mesh3d import lightposition as v_lightposition # Initialize validators # --------------------- - self._validators['x'] = v_lightposition.XValidator() - self._validators['y'] = v_lightposition.YValidator() - self._validators['z'] = v_lightposition.ZValidator() + self._validators["x"] = v_lightposition.XValidator() + self._validators["y"] = v_lightposition.YValidator() + self._validators["z"] = v_lightposition.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- @@ -323,11 +321,11 @@ def ambient(self): ------- int|float """ - return self['ambient'] + return self["ambient"] @ambient.setter def ambient(self, val): - self['ambient'] = val + self["ambient"] = val # diffuse # ------- @@ -344,11 +342,11 @@ def diffuse(self): ------- int|float """ - return self['diffuse'] + return self["diffuse"] @diffuse.setter def diffuse(self, val): - self['diffuse'] = val + self["diffuse"] = val # facenormalsepsilon # ------------------ @@ -365,11 +363,11 @@ def facenormalsepsilon(self): ------- int|float """ - return self['facenormalsepsilon'] + return self["facenormalsepsilon"] @facenormalsepsilon.setter def facenormalsepsilon(self, val): - self['facenormalsepsilon'] = val + self["facenormalsepsilon"] = val # fresnel # ------- @@ -387,11 +385,11 @@ def fresnel(self): ------- int|float """ - return self['fresnel'] + return self["fresnel"] @fresnel.setter def fresnel(self, val): - self['fresnel'] = val + self["fresnel"] = val # roughness # --------- @@ -408,11 +406,11 @@ def roughness(self): ------- int|float """ - return self['roughness'] + return self["roughness"] @roughness.setter def roughness(self, val): - self['roughness'] = val + self["roughness"] = val # specular # -------- @@ -429,11 +427,11 @@ def specular(self): ------- int|float """ - return self['specular'] + return self["specular"] @specular.setter def specular(self, val): - self['specular'] = val + self["specular"] = val # vertexnormalsepsilon # -------------------- @@ -450,17 +448,17 @@ def vertexnormalsepsilon(self): ------- int|float """ - return self['vertexnormalsepsilon'] + return self["vertexnormalsepsilon"] @vertexnormalsepsilon.setter def vertexnormalsepsilon(self, val): - self['vertexnormalsepsilon'] = val + self["vertexnormalsepsilon"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'mesh3d' + return "mesh3d" # Self properties description # --------------------------- @@ -540,7 +538,7 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__('lighting') + super(Lighting, self).__init__("lighting") # Validate arg # ------------ @@ -560,43 +558,46 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.mesh3d import (lighting as v_lighting) + from plotly.validators.mesh3d import lighting as v_lighting # Initialize validators # --------------------- - self._validators['ambient'] = v_lighting.AmbientValidator() - self._validators['diffuse'] = v_lighting.DiffuseValidator() - self._validators['facenormalsepsilon' - ] = v_lighting.FacenormalsepsilonValidator() - self._validators['fresnel'] = v_lighting.FresnelValidator() - self._validators['roughness'] = v_lighting.RoughnessValidator() - self._validators['specular'] = v_lighting.SpecularValidator() - self._validators['vertexnormalsepsilon' - ] = v_lighting.VertexnormalsepsilonValidator() + self._validators["ambient"] = v_lighting.AmbientValidator() + self._validators["diffuse"] = v_lighting.DiffuseValidator() + self._validators[ + "facenormalsepsilon" + ] = v_lighting.FacenormalsepsilonValidator() + self._validators["fresnel"] = v_lighting.FresnelValidator() + self._validators["roughness"] = v_lighting.RoughnessValidator() + self._validators["specular"] = v_lighting.SpecularValidator() + self._validators[ + "vertexnormalsepsilon" + ] = v_lighting.VertexnormalsepsilonValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('ambient', None) - self['ambient'] = ambient if ambient is not None else _v - _v = arg.pop('diffuse', None) - self['diffuse'] = diffuse if diffuse is not None else _v - _v = arg.pop('facenormalsepsilon', None) - self['facenormalsepsilon' - ] = facenormalsepsilon if facenormalsepsilon is not None else _v - _v = arg.pop('fresnel', None) - self['fresnel'] = fresnel if fresnel is not None else _v - _v = arg.pop('roughness', None) - self['roughness'] = roughness if roughness is not None else _v - _v = arg.pop('specular', None) - self['specular'] = specular if specular is not None else _v - _v = arg.pop('vertexnormalsepsilon', None) - self[ - 'vertexnormalsepsilon' - ] = vertexnormalsepsilon if vertexnormalsepsilon is not None else _v + _v = arg.pop("ambient", None) + self["ambient"] = ambient if ambient is not None else _v + _v = arg.pop("diffuse", None) + self["diffuse"] = diffuse if diffuse is not None else _v + _v = arg.pop("facenormalsepsilon", None) + self["facenormalsepsilon"] = ( + facenormalsepsilon if facenormalsepsilon is not None else _v + ) + _v = arg.pop("fresnel", None) + self["fresnel"] = fresnel if fresnel is not None else _v + _v = arg.pop("roughness", None) + self["roughness"] = roughness if roughness is not None else _v + _v = arg.pop("specular", None) + self["specular"] = specular if specular is not None else _v + _v = arg.pop("vertexnormalsepsilon", None) + self["vertexnormalsepsilon"] = ( + vertexnormalsepsilon if vertexnormalsepsilon is not None else _v + ) # Process unknown kwargs # ---------------------- @@ -631,11 +632,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -651,11 +652,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -711,11 +712,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -731,11 +732,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -791,11 +792,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -811,11 +812,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -866,11 +867,11 @@ def font(self): ------- plotly.graph_objs.mesh3d.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -893,11 +894,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -913,17 +914,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'mesh3d' + return "mesh3d" # Self properties description # --------------------------- @@ -1015,7 +1016,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -1035,48 +1036,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.mesh3d import (hoverlabel as v_hoverlabel) + from plotly.validators.mesh3d import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1146,11 +1143,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # show # ---- @@ -1166,11 +1163,11 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # width # ----- @@ -1186,17 +1183,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'mesh3d' + return "mesh3d" # Self properties description # --------------------------- @@ -1231,7 +1228,7 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): ------- Contour """ - super(Contour, self).__init__('contour') + super(Contour, self).__init__("contour") # Validate arg # ------------ @@ -1251,26 +1248,26 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.mesh3d import (contour as v_contour) + from plotly.validators.mesh3d import contour as v_contour # Initialize validators # --------------------- - self._validators['color'] = v_contour.ColorValidator() - self._validators['show'] = v_contour.ShowValidator() - self._validators['width'] = v_contour.WidthValidator() + self._validators["color"] = v_contour.ColorValidator() + self._validators["show"] = v_contour.ShowValidator() + self._validators["width"] = v_contour.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -1340,11 +1337,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -1399,11 +1396,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -1419,11 +1416,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -1457,11 +1454,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -1482,11 +1479,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -1504,11 +1501,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -1527,11 +1524,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -1551,11 +1548,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -1610,11 +1607,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -1630,11 +1627,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -1650,11 +1647,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1674,11 +1671,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1694,11 +1691,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1718,11 +1715,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1739,11 +1736,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1760,11 +1757,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1783,11 +1780,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1810,11 +1807,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1834,11 +1831,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1893,11 +1890,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1938,11 +1935,11 @@ def tickfont(self): ------- plotly.graph_objs.mesh3d.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1967,11 +1964,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -2024,11 +2021,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.mesh3d.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -2052,11 +2049,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.mesh3d.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -2072,11 +2069,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -2099,11 +2096,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -2120,11 +2117,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -2143,11 +2140,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -2164,11 +2161,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -2186,11 +2183,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -2206,11 +2203,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -2227,11 +2224,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -2247,11 +2244,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -2267,11 +2264,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -2306,11 +2303,11 @@ def title(self): ------- plotly.graph_objs.mesh3d.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -2353,11 +2350,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -2377,11 +2374,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -2397,11 +2394,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -2420,11 +2417,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -2440,11 +2437,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -2460,11 +2457,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -2483,11 +2480,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -2503,17 +2500,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'mesh3d' + return "mesh3d" # Self properties description # --------------------------- @@ -2708,8 +2705,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2958,7 +2955,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2978,164 +2975,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.mesh3d import (colorbar as v_colorbar) + from plotly.validators.mesh3d import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/__init__.py index b9d97536a0f..d21387a7365 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.mesh3d.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'mesh3d.colorbar' + return "mesh3d.colorbar" # Self properties description # --------------------------- @@ -153,7 +151,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -173,26 +171,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.mesh3d.colorbar import (title as v_title) + from plotly.validators.mesh3d.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -228,11 +226,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -249,11 +247,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -276,11 +274,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -304,11 +302,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -326,17 +324,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'mesh3d.colorbar' + return "mesh3d.colorbar" # Self properties description # --------------------------- @@ -429,7 +427,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -449,36 +447,36 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.mesh3d.colorbar import ( - tickformatstop as v_tickformatstop - ) + from plotly.validators.mesh3d.colorbar import tickformatstop as v_tickformatstop # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -546,11 +544,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -577,11 +575,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -595,17 +593,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'mesh3d.colorbar' + return "mesh3d.colorbar" # Self properties description # --------------------------- @@ -667,7 +665,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -687,26 +685,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.mesh3d.colorbar import (tickfont as v_tickfont) + from plotly.validators.mesh3d.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/title/__init__.py index ae5ed5657c1..a39658dffd5 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'mesh3d.colorbar.title' + return "mesh3d.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,26 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.mesh3d.colorbar.title import (font as v_font) + from plotly.validators.mesh3d.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/mesh3d/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/mesh3d/hoverlabel/__init__.py index 25ce4d3c4f5..dbb551af500 100644 --- a/packages/python/plotly/plotly/graph_objs/mesh3d/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/mesh3d/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'mesh3d.hoverlabel' + return "mesh3d.hoverlabel" # Self properties description # --------------------------- @@ -262,7 +260,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -282,35 +280,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.mesh3d.hoverlabel import (font as v_font) + from plotly.validators.mesh3d.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/__init__.py b/packages/python/plotly/plotly/graph_objs/ohlc/__init__.py index a9584fc9ce9..9a24a4ec3b0 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -22,11 +20,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -43,17 +41,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'ohlc' + return "ohlc" # Self properties description # --------------------------- @@ -94,7 +92,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -114,23 +112,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.ohlc import (stream as v_stream) + from plotly.validators.ohlc import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -169,11 +167,11 @@ def dash(self): ------- str """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # width # ----- @@ -191,17 +189,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'ohlc' + return "ohlc" # Self properties description # --------------------------- @@ -246,7 +244,7 @@ def __init__(self, arg=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -266,23 +264,23 @@ def __init__(self, arg=None, dash=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.ohlc import (line as v_line) + from plotly.validators.ohlc import line as v_line # Initialize validators # --------------------- - self._validators['dash'] = v_line.DashValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -326,17 +324,17 @@ def line(self): ------- plotly.graph_objs.ohlc.increasing.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'ohlc' + return "ohlc" # Self properties description # --------------------------- @@ -365,7 +363,7 @@ def __init__(self, arg=None, line=None, **kwargs): ------- Increasing """ - super(Increasing, self).__init__('increasing') + super(Increasing, self).__init__("increasing") # Validate arg # ------------ @@ -385,20 +383,20 @@ def __init__(self, arg=None, line=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.ohlc import (increasing as v_increasing) + from plotly.validators.ohlc import increasing as v_increasing # Initialize validators # --------------------- - self._validators['line'] = v_increasing.LineValidator() + self._validators["line"] = v_increasing.LineValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v # Process unknown kwargs # ---------------------- @@ -433,11 +431,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -453,11 +451,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -513,11 +511,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -533,11 +531,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -593,11 +591,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -613,11 +611,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -668,11 +666,11 @@ def font(self): ------- plotly.graph_objs.ohlc.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -695,11 +693,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -715,11 +713,11 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # split # ----- @@ -736,17 +734,17 @@ def split(self): ------- bool """ - return self['split'] + return self["split"] @split.setter def split(self, val): - self['split'] = val + self["split"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'ohlc' + return "ohlc" # Self properties description # --------------------------- @@ -845,7 +843,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -865,51 +863,47 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.ohlc import (hoverlabel as v_hoverlabel) + from plotly.validators.ohlc import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() - self._validators['split'] = v_hoverlabel.SplitValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() + self._validators["split"] = v_hoverlabel.SplitValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v - _v = arg.pop('split', None) - self['split'] = split if split is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("split", None) + self["split"] = split if split is not None else _v # Process unknown kwargs # ---------------------- @@ -953,17 +947,17 @@ def line(self): ------- plotly.graph_objs.ohlc.decreasing.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'ohlc' + return "ohlc" # Self properties description # --------------------------- @@ -992,7 +986,7 @@ def __init__(self, arg=None, line=None, **kwargs): ------- Decreasing """ - super(Decreasing, self).__init__('decreasing') + super(Decreasing, self).__init__("decreasing") # Validate arg # ------------ @@ -1012,20 +1006,20 @@ def __init__(self, arg=None, line=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.ohlc import (decreasing as v_decreasing) + from plotly.validators.ohlc import decreasing as v_decreasing # Initialize validators # --------------------- - self._validators['line'] = v_decreasing.LineValidator() + self._validators["line"] = v_decreasing.LineValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/decreasing/__init__.py b/packages/python/plotly/plotly/graph_objs/ohlc/decreasing/__init__.py index a039791f472..872f1538e06 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/decreasing/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/decreasing/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dash # ---- @@ -85,11 +83,11 @@ def dash(self): ------- str """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # width # ----- @@ -105,17 +103,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'ohlc.decreasing' + return "ohlc.decreasing" # Self properties description # --------------------------- @@ -156,7 +154,7 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -176,26 +174,26 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.ohlc.decreasing import (line as v_line) + from plotly.validators.ohlc.decreasing import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['dash'] = v_line.DashValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/ohlc/hoverlabel/__init__.py index a12c8b152bf..77171a49a65 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'ohlc.hoverlabel' + return "ohlc.hoverlabel" # Self properties description # --------------------------- @@ -262,7 +260,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -282,35 +280,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.ohlc.hoverlabel import (font as v_font) + from plotly.validators.ohlc.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/ohlc/increasing/__init__.py b/packages/python/plotly/plotly/graph_objs/ohlc/increasing/__init__.py index 8412bd53c91..1476f1caa5c 100644 --- a/packages/python/plotly/plotly/graph_objs/ohlc/increasing/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/ohlc/increasing/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dash # ---- @@ -85,11 +83,11 @@ def dash(self): ------- str """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # width # ----- @@ -105,17 +103,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'ohlc.increasing' + return "ohlc.increasing" # Self properties description # --------------------------- @@ -156,7 +154,7 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -176,26 +174,26 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.ohlc.increasing import (line as v_line) + from plotly.validators.ohlc.increasing import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['dash'] = v_line.DashValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcats/__init__.py b/packages/python/plotly/plotly/graph_objs/parcats/__init__.py index ef6f81227ad..a0e5c2287ea 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcats' + return "parcats" # Self properties description # --------------------------- @@ -177,7 +175,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -197,26 +195,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcats import (tickfont as v_tickfont) + from plotly.validators.parcats import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- @@ -249,11 +247,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -270,17 +268,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcats' + return "parcats" # Self properties description # --------------------------- @@ -321,7 +319,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -341,23 +339,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcats import (stream as v_stream) + from plotly.validators.parcats import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -394,11 +392,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -418,11 +416,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -441,11 +439,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -465,11 +463,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -488,11 +486,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -553,11 +551,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -580,11 +578,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -814,11 +812,11 @@ def colorbar(self): ------- plotly.graph_objs.parcats.line.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -852,11 +850,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -872,11 +870,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # hovertemplate # ------------- @@ -907,11 +905,11 @@ def hovertemplate(self): ------- str """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # reversescale # ------------ @@ -930,11 +928,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # shape # ----- @@ -953,11 +951,11 @@ def shape(self): ------- Any """ - return self['shape'] + return self["shape"] @shape.setter def shape(self, val): - self['shape'] = val + self["shape"] = val # showscale # --------- @@ -975,17 +973,17 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcats' + return "parcats" # Self properties description # --------------------------- @@ -1222,7 +1220,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -1242,61 +1240,59 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcats import (line as v_line) + from plotly.validators.parcats import line as v_line # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_line.AutocolorscaleValidator() - self._validators['cauto'] = v_line.CautoValidator() - self._validators['cmax'] = v_line.CmaxValidator() - self._validators['cmid'] = v_line.CmidValidator() - self._validators['cmin'] = v_line.CminValidator() - self._validators['color'] = v_line.ColorValidator() - self._validators['coloraxis'] = v_line.ColoraxisValidator() - self._validators['colorbar'] = v_line.ColorBarValidator() - self._validators['colorscale'] = v_line.ColorscaleValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['hovertemplate'] = v_line.HovertemplateValidator() - self._validators['reversescale'] = v_line.ReversescaleValidator() - self._validators['shape'] = v_line.ShapeValidator() - self._validators['showscale'] = v_line.ShowscaleValidator() + self._validators["autocolorscale"] = v_line.AutocolorscaleValidator() + self._validators["cauto"] = v_line.CautoValidator() + self._validators["cmax"] = v_line.CmaxValidator() + self._validators["cmid"] = v_line.CmidValidator() + self._validators["cmin"] = v_line.CminValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["coloraxis"] = v_line.ColoraxisValidator() + self._validators["colorbar"] = v_line.ColorBarValidator() + self._validators["colorscale"] = v_line.ColorscaleValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["hovertemplate"] = v_line.HovertemplateValidator() + self._validators["reversescale"] = v_line.ReversescaleValidator() + self._validators["shape"] = v_line.ShapeValidator() + self._validators["showscale"] = v_line.ShowscaleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('shape', None) - self['shape'] = shape if shape is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("shape", None) + self["shape"] = shape if shape is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v # Process unknown kwargs # ---------------------- @@ -1364,11 +1360,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -1395,11 +1391,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -1413,17 +1409,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcats' + return "parcats" # Self properties description # --------------------------- @@ -1484,7 +1480,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Labelfont """ - super(Labelfont, self).__init__('labelfont') + super(Labelfont, self).__init__("labelfont") # Validate arg # ------------ @@ -1504,26 +1500,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcats import (labelfont as v_labelfont) + from plotly.validators.parcats import labelfont as v_labelfont # Initialize validators # --------------------- - self._validators['color'] = v_labelfont.ColorValidator() - self._validators['family'] = v_labelfont.FamilyValidator() - self._validators['size'] = v_labelfont.SizeValidator() + self._validators["color"] = v_labelfont.ColorValidator() + self._validators["family"] = v_labelfont.FamilyValidator() + self._validators["size"] = v_labelfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- @@ -1556,11 +1552,11 @@ def column(self): ------- int """ - return self['column'] + return self["column"] @column.setter def column(self, val): - self['column'] = val + self["column"] = val # row # --- @@ -1578,11 +1574,11 @@ def row(self): ------- int """ - return self['row'] + return self["row"] @row.setter def row(self, val): - self['row'] = val + self["row"] = val # x # - @@ -1604,11 +1600,11 @@ def x(self): ------- list """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -1630,17 +1626,17 @@ def y(self): ------- list """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcats' + return "parcats" # Self properties description # --------------------------- @@ -1661,9 +1657,7 @@ def _prop_descriptions(self): fraction). """ - def __init__( - self, arg=None, column=None, row=None, x=None, y=None, **kwargs - ): + def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): """ Construct a new Domain object @@ -1689,7 +1683,7 @@ def __init__( ------- Domain """ - super(Domain, self).__init__('domain') + super(Domain, self).__init__("domain") # Validate arg # ------------ @@ -1709,29 +1703,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcats import (domain as v_domain) + from plotly.validators.parcats import domain as v_domain # Initialize validators # --------------------- - self._validators['column'] = v_domain.ColumnValidator() - self._validators['row'] = v_domain.RowValidator() - self._validators['x'] = v_domain.XValidator() - self._validators['y'] = v_domain.YValidator() + self._validators["column"] = v_domain.ColumnValidator() + self._validators["row"] = v_domain.RowValidator() + self._validators["x"] = v_domain.XValidator() + self._validators["y"] = v_domain.YValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('column', None) - self['column'] = column if column is not None else _v - _v = arg.pop('row', None) - self['row'] = row if row is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v + _v = arg.pop("column", None) + self["column"] = column if column is not None else _v + _v = arg.pop("row", None) + self["row"] = row if row is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v # Process unknown kwargs # ---------------------- @@ -1764,11 +1758,11 @@ def categoryarray(self): ------- numpy.ndarray """ - return self['categoryarray'] + return self["categoryarray"] @categoryarray.setter def categoryarray(self, val): - self['categoryarray'] = val + self["categoryarray"] = val # categoryarraysrc # ---------------- @@ -1784,11 +1778,11 @@ def categoryarraysrc(self): ------- str """ - return self['categoryarraysrc'] + return self["categoryarraysrc"] @categoryarraysrc.setter def categoryarraysrc(self, val): - self['categoryarraysrc'] = val + self["categoryarraysrc"] = val # categoryorder # ------------- @@ -1816,11 +1810,11 @@ def categoryorder(self): ------- Any """ - return self['categoryorder'] + return self["categoryorder"] @categoryorder.setter def categoryorder(self, val): - self['categoryorder'] = val + self["categoryorder"] = val # displayindex # ------------ @@ -1837,11 +1831,11 @@ def displayindex(self): ------- int """ - return self['displayindex'] + return self["displayindex"] @displayindex.setter def displayindex(self, val): - self['displayindex'] = val + self["displayindex"] = val # label # ----- @@ -1858,11 +1852,11 @@ def label(self): ------- str """ - return self['label'] + return self["label"] @label.setter def label(self, val): - self['label'] = val + self["label"] = val # ticktext # -------- @@ -1881,11 +1875,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1901,11 +1895,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # values # ------ @@ -1924,11 +1918,11 @@ def values(self): ------- numpy.ndarray """ - return self['values'] + return self["values"] @values.setter def values(self, val): - self['values'] = val + self["values"] = val # valuessrc # --------- @@ -1944,11 +1938,11 @@ def valuessrc(self): ------- str """ - return self['valuessrc'] + return self["valuessrc"] @valuessrc.setter def valuessrc(self, val): - self['valuessrc'] = val + self["valuessrc"] = val # visible # ------- @@ -1965,17 +1959,17 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcats' + return "parcats" # Self properties description # --------------------------- @@ -2098,7 +2092,7 @@ def __init__( ------- Dimension """ - super(Dimension, self).__init__('dimensions') + super(Dimension, self).__init__("dimensions") # Validate arg # ------------ @@ -2118,53 +2112,49 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcats import (dimension as v_dimension) + from plotly.validators.parcats import dimension as v_dimension # Initialize validators # --------------------- - self._validators['categoryarray'] = v_dimension.CategoryarrayValidator( - ) - self._validators['categoryarraysrc' - ] = v_dimension.CategoryarraysrcValidator() - self._validators['categoryorder'] = v_dimension.CategoryorderValidator( - ) - self._validators['displayindex'] = v_dimension.DisplayindexValidator() - self._validators['label'] = v_dimension.LabelValidator() - self._validators['ticktext'] = v_dimension.TicktextValidator() - self._validators['ticktextsrc'] = v_dimension.TicktextsrcValidator() - self._validators['values'] = v_dimension.ValuesValidator() - self._validators['valuessrc'] = v_dimension.ValuessrcValidator() - self._validators['visible'] = v_dimension.VisibleValidator() + self._validators["categoryarray"] = v_dimension.CategoryarrayValidator() + self._validators["categoryarraysrc"] = v_dimension.CategoryarraysrcValidator() + self._validators["categoryorder"] = v_dimension.CategoryorderValidator() + self._validators["displayindex"] = v_dimension.DisplayindexValidator() + self._validators["label"] = v_dimension.LabelValidator() + self._validators["ticktext"] = v_dimension.TicktextValidator() + self._validators["ticktextsrc"] = v_dimension.TicktextsrcValidator() + self._validators["values"] = v_dimension.ValuesValidator() + self._validators["valuessrc"] = v_dimension.ValuessrcValidator() + self._validators["visible"] = v_dimension.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('categoryarray', None) - self['categoryarray' - ] = categoryarray if categoryarray is not None else _v - _v = arg.pop('categoryarraysrc', None) - self['categoryarraysrc' - ] = categoryarraysrc if categoryarraysrc is not None else _v - _v = arg.pop('categoryorder', None) - self['categoryorder' - ] = categoryorder if categoryorder is not None else _v - _v = arg.pop('displayindex', None) - self['displayindex'] = displayindex if displayindex is not None else _v - _v = arg.pop('label', None) - self['label'] = label if label is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('values', None) - self['values'] = values if values is not None else _v - _v = arg.pop('valuessrc', None) - self['valuessrc'] = valuessrc if valuessrc is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("categoryarray", None) + self["categoryarray"] = categoryarray if categoryarray is not None else _v + _v = arg.pop("categoryarraysrc", None) + self["categoryarraysrc"] = ( + categoryarraysrc if categoryarraysrc is not None else _v + ) + _v = arg.pop("categoryorder", None) + self["categoryorder"] = categoryorder if categoryorder is not None else _v + _v = arg.pop("displayindex", None) + self["displayindex"] = displayindex if displayindex is not None else _v + _v = arg.pop("label", None) + self["label"] = label if label is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("values", None) + self["values"] = values if values is not None else _v + _v = arg.pop("valuessrc", None) + self["valuessrc"] = valuessrc if valuessrc is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcats/line/__init__.py b/packages/python/plotly/plotly/graph_objs/parcats/line/__init__.py index 3191a9e1c85..b2d8e98cb49 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/line/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/line/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -118,11 +116,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -138,11 +136,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -176,11 +174,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -201,11 +199,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -223,11 +221,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -246,11 +244,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -270,11 +268,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -329,11 +327,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -349,11 +347,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -369,11 +367,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -393,11 +391,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -413,11 +411,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -437,11 +435,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -458,11 +456,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -479,11 +477,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -502,11 +500,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -529,11 +527,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -553,11 +551,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -612,11 +610,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -657,11 +655,11 @@ def tickfont(self): ------- plotly.graph_objs.parcats.line.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -686,11 +684,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -743,11 +741,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.parcats.line.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -771,11 +769,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.parcats.line.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -791,11 +789,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -818,11 +816,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -839,11 +837,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -862,11 +860,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -883,11 +881,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -905,11 +903,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -925,11 +923,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -946,11 +944,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -966,11 +964,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -986,11 +984,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1025,11 +1023,11 @@ def title(self): ------- plotly.graph_objs.parcats.line.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1073,11 +1071,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1097,11 +1095,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1117,11 +1115,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1140,11 +1138,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -1160,11 +1158,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -1180,11 +1178,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -1203,11 +1201,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -1223,17 +1221,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcats.line' + return "parcats.line" # Self properties description # --------------------------- @@ -1428,8 +1426,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -1678,7 +1676,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -1698,164 +1696,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcats.line import (colorbar as v_colorbar) + from plotly.validators.parcats.line import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/__init__.py index 60e0f6d26c4..a1f25c96863 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.parcats.line.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcats.line.colorbar' + return "parcats.line.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,26 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcats.line.colorbar import (title as v_title) + from plotly.validators.parcats.line.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -229,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -250,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -277,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -305,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -327,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcats.line.colorbar' + return "parcats.line.colorbar" # Self properties description # --------------------------- @@ -430,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -450,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.parcats.line.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -547,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -578,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -596,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcats.line.colorbar' + return "parcats.line.colorbar" # Self properties description # --------------------------- @@ -668,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -688,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcats.line.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.parcats.line.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/title/__init__.py index 64571204292..2244c150679 100644 --- a/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcats/line/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcats.line.colorbar.title' + return "parcats.line.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcats.line.colorbar.title import ( - font as v_font - ) + from plotly.validators.parcats.line.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/__init__.py b/packages/python/plotly/plotly/graph_objs/parcoords/__init__.py index a6baaf722f5..814bd297a85 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcoords' + return "parcoords" # Self properties description # --------------------------- @@ -177,7 +175,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -197,26 +195,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcoords import (tickfont as v_tickfont) + from plotly.validators.parcoords import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- @@ -249,11 +247,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -270,17 +268,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcoords' + return "parcoords" # Self properties description # --------------------------- @@ -321,7 +319,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -341,23 +339,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcoords import (stream as v_stream) + from plotly.validators.parcoords import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -425,11 +423,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -456,11 +454,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -474,17 +472,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcoords' + return "parcoords" # Self properties description # --------------------------- @@ -545,7 +543,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Rangefont """ - super(Rangefont, self).__init__('rangefont') + super(Rangefont, self).__init__("rangefont") # Validate arg # ------------ @@ -565,26 +563,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcoords import (rangefont as v_rangefont) + from plotly.validators.parcoords import rangefont as v_rangefont # Initialize validators # --------------------- - self._validators['color'] = v_rangefont.ColorValidator() - self._validators['family'] = v_rangefont.FamilyValidator() - self._validators['size'] = v_rangefont.SizeValidator() + self._validators["color"] = v_rangefont.ColorValidator() + self._validators["family"] = v_rangefont.FamilyValidator() + self._validators["size"] = v_rangefont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- @@ -621,11 +619,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -645,11 +643,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -668,11 +666,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -692,11 +690,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -715,11 +713,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -780,11 +778,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -807,11 +805,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -1041,11 +1039,11 @@ def colorbar(self): ------- plotly.graph_objs.parcoords.line.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -1079,11 +1077,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -1099,11 +1097,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # reversescale # ------------ @@ -1122,11 +1120,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -1144,17 +1142,17 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcoords' + return "parcoords" # Self properties description # --------------------------- @@ -1343,7 +1341,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -1363,54 +1361,53 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcoords import (line as v_line) + from plotly.validators.parcoords import line as v_line # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_line.AutocolorscaleValidator() - self._validators['cauto'] = v_line.CautoValidator() - self._validators['cmax'] = v_line.CmaxValidator() - self._validators['cmid'] = v_line.CmidValidator() - self._validators['cmin'] = v_line.CminValidator() - self._validators['color'] = v_line.ColorValidator() - self._validators['coloraxis'] = v_line.ColoraxisValidator() - self._validators['colorbar'] = v_line.ColorBarValidator() - self._validators['colorscale'] = v_line.ColorscaleValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['reversescale'] = v_line.ReversescaleValidator() - self._validators['showscale'] = v_line.ShowscaleValidator() + self._validators["autocolorscale"] = v_line.AutocolorscaleValidator() + self._validators["cauto"] = v_line.CautoValidator() + self._validators["cmax"] = v_line.CmaxValidator() + self._validators["cmid"] = v_line.CmidValidator() + self._validators["cmin"] = v_line.CminValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["coloraxis"] = v_line.ColoraxisValidator() + self._validators["colorbar"] = v_line.ColorBarValidator() + self._validators["colorscale"] = v_line.ColorscaleValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["reversescale"] = v_line.ReversescaleValidator() + self._validators["showscale"] = v_line.ShowscaleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v # Process unknown kwargs # ---------------------- @@ -1478,11 +1475,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -1509,11 +1506,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -1527,17 +1524,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcoords' + return "parcoords" # Self properties description # --------------------------- @@ -1598,7 +1595,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Labelfont """ - super(Labelfont, self).__init__('labelfont') + super(Labelfont, self).__init__("labelfont") # Validate arg # ------------ @@ -1618,26 +1615,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcoords import (labelfont as v_labelfont) + from plotly.validators.parcoords import labelfont as v_labelfont # Initialize validators # --------------------- - self._validators['color'] = v_labelfont.ColorValidator() - self._validators['family'] = v_labelfont.FamilyValidator() - self._validators['size'] = v_labelfont.SizeValidator() + self._validators["color"] = v_labelfont.ColorValidator() + self._validators["family"] = v_labelfont.FamilyValidator() + self._validators["size"] = v_labelfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- @@ -1670,11 +1667,11 @@ def column(self): ------- int """ - return self['column'] + return self["column"] @column.setter def column(self, val): - self['column'] = val + self["column"] = val # row # --- @@ -1692,11 +1689,11 @@ def row(self): ------- int """ - return self['row'] + return self["row"] @row.setter def row(self, val): - self['row'] = val + self["row"] = val # x # - @@ -1718,11 +1715,11 @@ def x(self): ------- list """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -1744,17 +1741,17 @@ def y(self): ------- list """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcoords' + return "parcoords" # Self properties description # --------------------------- @@ -1775,9 +1772,7 @@ def _prop_descriptions(self): plot fraction). """ - def __init__( - self, arg=None, column=None, row=None, x=None, y=None, **kwargs - ): + def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): """ Construct a new Domain object @@ -1803,7 +1798,7 @@ def __init__( ------- Domain """ - super(Domain, self).__init__('domain') + super(Domain, self).__init__("domain") # Validate arg # ------------ @@ -1823,29 +1818,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcoords import (domain as v_domain) + from plotly.validators.parcoords import domain as v_domain # Initialize validators # --------------------- - self._validators['column'] = v_domain.ColumnValidator() - self._validators['row'] = v_domain.RowValidator() - self._validators['x'] = v_domain.XValidator() - self._validators['y'] = v_domain.YValidator() + self._validators["column"] = v_domain.ColumnValidator() + self._validators["row"] = v_domain.RowValidator() + self._validators["x"] = v_domain.XValidator() + self._validators["y"] = v_domain.YValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('column', None) - self['column'] = column if column is not None else _v - _v = arg.pop('row', None) - self['row'] = row if row is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v + _v = arg.pop("column", None) + self["column"] = column if column is not None else _v + _v = arg.pop("row", None) + self["row"] = row if row is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v # Process unknown kwargs # ---------------------- @@ -1891,11 +1886,11 @@ def constraintrange(self): ------- list """ - return self['constraintrange'] + return self["constraintrange"] @constraintrange.setter def constraintrange(self, val): - self['constraintrange'] = val + self["constraintrange"] = val # label # ----- @@ -1912,11 +1907,11 @@ def label(self): ------- str """ - return self['label'] + return self["label"] @label.setter def label(self, val): - self['label'] = val + self["label"] = val # multiselect # ----------- @@ -1932,11 +1927,11 @@ def multiselect(self): ------- bool """ - return self['multiselect'] + return self["multiselect"] @multiselect.setter def multiselect(self, val): - self['multiselect'] = val + self["multiselect"] = val # name # ---- @@ -1959,11 +1954,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # range # ----- @@ -1986,11 +1981,11 @@ def range(self): ------- list """ - return self['range'] + return self["range"] @range.setter def range(self, val): - self['range'] = val + self["range"] = val # templateitemname # ---------------- @@ -2014,11 +2009,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # tickformat # ---------- @@ -2037,11 +2032,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # ticktext # -------- @@ -2059,11 +2054,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -2079,11 +2074,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -2100,11 +2095,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -2120,11 +2115,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # values # ------ @@ -2143,11 +2138,11 @@ def values(self): ------- numpy.ndarray """ - return self['values'] + return self["values"] @values.setter def values(self, val): - self['values'] = val + self["values"] = val # valuessrc # --------- @@ -2163,11 +2158,11 @@ def valuessrc(self): ------- str """ - return self['valuessrc'] + return self["valuessrc"] @valuessrc.setter def valuessrc(self, val): - self['valuessrc'] = val + self["valuessrc"] = val # visible # ------- @@ -2184,17 +2179,17 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcoords' + return "parcoords" # Self properties description # --------------------------- @@ -2366,7 +2361,7 @@ def __init__( ------- Dimension """ - super(Dimension, self).__init__('dimensions') + super(Dimension, self).__init__("dimensions") # Validate arg # ------------ @@ -2386,63 +2381,61 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcoords import (dimension as v_dimension) + from plotly.validators.parcoords import dimension as v_dimension # Initialize validators # --------------------- - self._validators['constraintrange' - ] = v_dimension.ConstraintrangeValidator() - self._validators['label'] = v_dimension.LabelValidator() - self._validators['multiselect'] = v_dimension.MultiselectValidator() - self._validators['name'] = v_dimension.NameValidator() - self._validators['range'] = v_dimension.RangeValidator() - self._validators['templateitemname' - ] = v_dimension.TemplateitemnameValidator() - self._validators['tickformat'] = v_dimension.TickformatValidator() - self._validators['ticktext'] = v_dimension.TicktextValidator() - self._validators['ticktextsrc'] = v_dimension.TicktextsrcValidator() - self._validators['tickvals'] = v_dimension.TickvalsValidator() - self._validators['tickvalssrc'] = v_dimension.TickvalssrcValidator() - self._validators['values'] = v_dimension.ValuesValidator() - self._validators['valuessrc'] = v_dimension.ValuessrcValidator() - self._validators['visible'] = v_dimension.VisibleValidator() + self._validators["constraintrange"] = v_dimension.ConstraintrangeValidator() + self._validators["label"] = v_dimension.LabelValidator() + self._validators["multiselect"] = v_dimension.MultiselectValidator() + self._validators["name"] = v_dimension.NameValidator() + self._validators["range"] = v_dimension.RangeValidator() + self._validators["templateitemname"] = v_dimension.TemplateitemnameValidator() + self._validators["tickformat"] = v_dimension.TickformatValidator() + self._validators["ticktext"] = v_dimension.TicktextValidator() + self._validators["ticktextsrc"] = v_dimension.TicktextsrcValidator() + self._validators["tickvals"] = v_dimension.TickvalsValidator() + self._validators["tickvalssrc"] = v_dimension.TickvalssrcValidator() + self._validators["values"] = v_dimension.ValuesValidator() + self._validators["valuessrc"] = v_dimension.ValuessrcValidator() + self._validators["visible"] = v_dimension.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('constraintrange', None) - self['constraintrange' - ] = constraintrange if constraintrange is not None else _v - _v = arg.pop('label', None) - self['label'] = label if label is not None else _v - _v = arg.pop('multiselect', None) - self['multiselect'] = multiselect if multiselect is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('range', None) - self['range'] = range if range is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('values', None) - self['values'] = values if values is not None else _v - _v = arg.pop('valuessrc', None) - self['valuessrc'] = valuessrc if valuessrc is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("constraintrange", None) + self["constraintrange"] = constraintrange if constraintrange is not None else _v + _v = arg.pop("label", None) + self["label"] = label if label is not None else _v + _v = arg.pop("multiselect", None) + self["multiselect"] = multiselect if multiselect is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("range", None) + self["range"] = range if range is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("values", None) + self["values"] = values if values is not None else _v + _v = arg.pop("valuessrc", None) + self["valuessrc"] = valuessrc if valuessrc is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/line/__init__.py b/packages/python/plotly/plotly/graph_objs/parcoords/line/__init__.py index 2c498d10ee0..45aa7251578 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/line/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/line/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -118,11 +116,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -138,11 +136,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -176,11 +174,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -201,11 +199,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -223,11 +221,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -246,11 +244,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -270,11 +268,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -329,11 +327,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -349,11 +347,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -369,11 +367,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -393,11 +391,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -413,11 +411,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -437,11 +435,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -458,11 +456,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -479,11 +477,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -502,11 +500,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -529,11 +527,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -553,11 +551,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -612,11 +610,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -657,11 +655,11 @@ def tickfont(self): ------- plotly.graph_objs.parcoords.line.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -686,11 +684,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -743,11 +741,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.parcoords.line.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -771,11 +769,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.parcoords.line.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -791,11 +789,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -818,11 +816,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -839,11 +837,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -862,11 +860,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -883,11 +881,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -905,11 +903,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -925,11 +923,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -946,11 +944,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -966,11 +964,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -986,11 +984,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1025,11 +1023,11 @@ def title(self): ------- plotly.graph_objs.parcoords.line.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1073,11 +1071,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1097,11 +1095,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1117,11 +1115,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1140,11 +1138,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -1160,11 +1158,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -1180,11 +1178,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -1203,11 +1201,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -1223,17 +1221,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcoords.line' + return "parcoords.line" # Self properties description # --------------------------- @@ -1428,8 +1426,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -1679,7 +1677,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -1699,164 +1697,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcoords.line import (colorbar as v_colorbar) + from plotly.validators.parcoords.line import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/__init__.py index dafbdef3b2a..aef4942d99d 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.parcoords.line.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcoords.line.colorbar' + return "parcoords.line.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,28 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcoords.line.colorbar import ( - title as v_title - ) + from plotly.validators.parcoords.line.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -231,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -252,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -279,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -307,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -329,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcoords.line.colorbar' + return "parcoords.line.colorbar" # Self properties description # --------------------------- @@ -432,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -452,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.parcoords.line.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -549,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -580,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -598,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcoords.line.colorbar' + return "parcoords.line.colorbar" # Self properties description # --------------------------- @@ -670,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -690,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcoords.line.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.parcoords.line.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/title/__init__.py index 3ec41444808..2e3ba96b3ef 100644 --- a/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/parcoords/line/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'parcoords.line.colorbar.title' + return "parcoords.line.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.parcoords.line.colorbar.title import ( - font as v_font - ) + from plotly.validators.parcoords.line.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/__init__.py b/packages/python/plotly/plotly/graph_objs/pie/__init__.py index 755c9613d9e..3177bb461a1 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/pie/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -56,11 +54,11 @@ def font(self): ------- plotly.graph_objs.pie.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # position # -------- @@ -80,11 +78,11 @@ def position(self): ------- Any """ - return self['position'] + return self["position"] @position.setter def position(self, val): - self['position'] = val + self["position"] = val # text # ---- @@ -104,17 +102,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'pie' + return "pie" # Self properties description # --------------------------- @@ -137,9 +135,7 @@ def _prop_descriptions(self): deprecated. """ - def __init__( - self, arg=None, font=None, position=None, text=None, **kwargs - ): + def __init__(self, arg=None, font=None, position=None, text=None, **kwargs): """ Construct a new Title object @@ -167,7 +163,7 @@ def __init__( ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -187,26 +183,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.pie import (title as v_title) + from plotly.validators.pie import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['position'] = v_title.PositionValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["position"] = v_title.PositionValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('position', None) - self['position'] = position if position is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("position", None) + self["position"] = position if position is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -275,11 +271,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -295,11 +291,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -327,11 +323,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -347,11 +343,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -366,11 +362,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -386,17 +382,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'pie' + return "pie" # Self properties description # --------------------------- @@ -479,7 +475,7 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -499,35 +495,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.pie import (textfont as v_textfont) + from plotly.validators.pie import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() - self._validators['colorsrc'] = v_textfont.ColorsrcValidator() - self._validators['family'] = v_textfont.FamilyValidator() - self._validators['familysrc'] = v_textfont.FamilysrcValidator() - self._validators['size'] = v_textfont.SizeValidator() - self._validators['sizesrc'] = v_textfont.SizesrcValidator() + self._validators["color"] = v_textfont.ColorValidator() + self._validators["colorsrc"] = v_textfont.ColorsrcValidator() + self._validators["family"] = v_textfont.FamilyValidator() + self._validators["familysrc"] = v_textfont.FamilysrcValidator() + self._validators["size"] = v_textfont.SizeValidator() + self._validators["sizesrc"] = v_textfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -560,11 +556,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -581,17 +577,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'pie' + return "pie" # Self properties description # --------------------------- @@ -632,7 +628,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -652,23 +648,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.pie import (stream as v_stream) + from plotly.validators.pie import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -737,11 +733,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -757,11 +753,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -789,11 +785,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -809,11 +805,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -828,11 +824,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -848,17 +844,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'pie' + return "pie" # Self properties description # --------------------------- @@ -941,7 +937,7 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__('outsidetextfont') + super(Outsidetextfont, self).__init__("outsidetextfont") # Validate arg # ------------ @@ -961,37 +957,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.pie import ( - outsidetextfont as v_outsidetextfont - ) + from plotly.validators.pie import outsidetextfont as v_outsidetextfont # Initialize validators # --------------------- - self._validators['color'] = v_outsidetextfont.ColorValidator() - self._validators['colorsrc'] = v_outsidetextfont.ColorsrcValidator() - self._validators['family'] = v_outsidetextfont.FamilyValidator() - self._validators['familysrc'] = v_outsidetextfont.FamilysrcValidator() - self._validators['size'] = v_outsidetextfont.SizeValidator() - self._validators['sizesrc'] = v_outsidetextfont.SizesrcValidator() + self._validators["color"] = v_outsidetextfont.ColorValidator() + self._validators["colorsrc"] = v_outsidetextfont.ColorsrcValidator() + self._validators["family"] = v_outsidetextfont.FamilyValidator() + self._validators["familysrc"] = v_outsidetextfont.FamilysrcValidator() + self._validators["size"] = v_outsidetextfont.SizeValidator() + self._validators["sizesrc"] = v_outsidetextfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1023,11 +1017,11 @@ def colors(self): ------- numpy.ndarray """ - return self['colors'] + return self["colors"] @colors.setter def colors(self, val): - self['colors'] = val + self["colors"] = val # colorssrc # --------- @@ -1043,11 +1037,11 @@ def colorssrc(self): ------- str """ - return self['colorssrc'] + return self["colorssrc"] @colorssrc.setter def colorssrc(self, val): - self['colorssrc'] = val + self["colorssrc"] = val # line # ---- @@ -1079,17 +1073,17 @@ def line(self): ------- plotly.graph_objs.pie.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'pie' + return "pie" # Self properties description # --------------------------- @@ -1107,9 +1101,7 @@ def _prop_descriptions(self): compatible properties """ - def __init__( - self, arg=None, colors=None, colorssrc=None, line=None, **kwargs - ): + def __init__(self, arg=None, colors=None, colorssrc=None, line=None, **kwargs): """ Construct a new Marker object @@ -1132,7 +1124,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -1152,26 +1144,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.pie import (marker as v_marker) + from plotly.validators.pie import marker as v_marker # Initialize validators # --------------------- - self._validators['colors'] = v_marker.ColorsValidator() - self._validators['colorssrc'] = v_marker.ColorssrcValidator() - self._validators['line'] = v_marker.LineValidator() + self._validators["colors"] = v_marker.ColorsValidator() + self._validators["colorssrc"] = v_marker.ColorssrcValidator() + self._validators["line"] = v_marker.LineValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('colors', None) - self['colors'] = colors if colors is not None else _v - _v = arg.pop('colorssrc', None) - self['colorssrc'] = colorssrc if colorssrc is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v + _v = arg.pop("colors", None) + self["colors"] = colors if colors is not None else _v + _v = arg.pop("colorssrc", None) + self["colorssrc"] = colorssrc if colorssrc is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v # Process unknown kwargs # ---------------------- @@ -1240,11 +1232,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -1260,11 +1252,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -1292,11 +1284,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -1312,11 +1304,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -1331,11 +1323,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -1351,17 +1343,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'pie' + return "pie" # Self properties description # --------------------------- @@ -1444,7 +1436,7 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__('insidetextfont') + super(Insidetextfont, self).__init__("insidetextfont") # Validate arg # ------------ @@ -1464,35 +1456,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.pie import (insidetextfont as v_insidetextfont) + from plotly.validators.pie import insidetextfont as v_insidetextfont # Initialize validators # --------------------- - self._validators['color'] = v_insidetextfont.ColorValidator() - self._validators['colorsrc'] = v_insidetextfont.ColorsrcValidator() - self._validators['family'] = v_insidetextfont.FamilyValidator() - self._validators['familysrc'] = v_insidetextfont.FamilysrcValidator() - self._validators['size'] = v_insidetextfont.SizeValidator() - self._validators['sizesrc'] = v_insidetextfont.SizesrcValidator() + self._validators["color"] = v_insidetextfont.ColorValidator() + self._validators["colorsrc"] = v_insidetextfont.ColorsrcValidator() + self._validators["family"] = v_insidetextfont.FamilyValidator() + self._validators["familysrc"] = v_insidetextfont.FamilysrcValidator() + self._validators["size"] = v_insidetextfont.SizeValidator() + self._validators["sizesrc"] = v_insidetextfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1527,11 +1519,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -1547,11 +1539,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -1607,11 +1599,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -1627,11 +1619,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -1687,11 +1679,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -1707,11 +1699,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -1762,11 +1754,11 @@ def font(self): ------- plotly.graph_objs.pie.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -1789,11 +1781,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -1809,17 +1801,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'pie' + return "pie" # Self properties description # --------------------------- @@ -1911,7 +1903,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -1931,48 +1923,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.pie import (hoverlabel as v_hoverlabel) + from plotly.validators.pie import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -2005,11 +1993,11 @@ def column(self): ------- int """ - return self['column'] + return self["column"] @column.setter def column(self, val): - self['column'] = val + self["column"] = val # row # --- @@ -2027,11 +2015,11 @@ def row(self): ------- int """ - return self['row'] + return self["row"] @row.setter def row(self, val): - self['row'] = val + self["row"] = val # x # - @@ -2053,11 +2041,11 @@ def x(self): ------- list """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -2078,17 +2066,17 @@ def y(self): ------- list """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'pie' + return "pie" # Self properties description # --------------------------- @@ -2109,9 +2097,7 @@ def _prop_descriptions(self): fraction). """ - def __init__( - self, arg=None, column=None, row=None, x=None, y=None, **kwargs - ): + def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): """ Construct a new Domain object @@ -2137,7 +2123,7 @@ def __init__( ------- Domain """ - super(Domain, self).__init__('domain') + super(Domain, self).__init__("domain") # Validate arg # ------------ @@ -2157,29 +2143,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.pie import (domain as v_domain) + from plotly.validators.pie import domain as v_domain # Initialize validators # --------------------- - self._validators['column'] = v_domain.ColumnValidator() - self._validators['row'] = v_domain.RowValidator() - self._validators['x'] = v_domain.XValidator() - self._validators['y'] = v_domain.YValidator() + self._validators["column"] = v_domain.ColumnValidator() + self._validators["row"] = v_domain.RowValidator() + self._validators["x"] = v_domain.XValidator() + self._validators["y"] = v_domain.YValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('column', None) - self['column'] = column if column is not None else _v - _v = arg.pop('row', None) - self['row'] = row if row is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v + _v = arg.pop("column", None) + self["column"] = column if column is not None else _v + _v = arg.pop("row", None) + self["row"] = row if row is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/pie/hoverlabel/__init__.py index 8d9285fdfca..f7ab4ec9d93 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/pie/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'pie.hoverlabel' + return "pie.hoverlabel" # Self properties description # --------------------------- @@ -262,7 +260,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -282,35 +280,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.pie.hoverlabel import (font as v_font) + from plotly.validators.pie.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/pie/marker/__init__.py index 6d253ce6924..0cc3ed4ec62 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/pie/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,11 +58,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -80,11 +78,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # width # ----- @@ -101,11 +99,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -121,17 +119,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'pie.marker' + return "pie.marker" # Self properties description # --------------------------- @@ -150,13 +148,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - colorsrc=None, - width=None, - widthsrc=None, - **kwargs + self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs ): """ Construct a new Line object @@ -180,7 +172,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -200,29 +192,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.pie.marker import (line as v_line) + from plotly.validators.pie.marker import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pie/title/__init__.py b/packages/python/plotly/plotly/graph_objs/pie/title/__init__.py index f5a1a1c30c5..fb043f73ee4 100644 --- a/packages/python/plotly/plotly/graph_objs/pie/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/pie/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'pie.title' + return "pie.title" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.pie.title import (font as v_font) + from plotly.validators.pie.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pointcloud/__init__.py b/packages/python/plotly/plotly/graph_objs/pointcloud/__init__.py index 401f6926b00..c98cd601d60 100644 --- a/packages/python/plotly/plotly/graph_objs/pointcloud/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/pointcloud/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -22,11 +20,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -43,17 +41,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'pointcloud' + return "pointcloud" # Self properties description # --------------------------- @@ -94,7 +92,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -114,23 +112,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.pointcloud import (stream as v_stream) + from plotly.validators.pointcloud import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -164,11 +162,11 @@ def blend(self): ------- bool """ - return self['blend'] + return self["blend"] @blend.setter def blend(self, val): - self['blend'] = val + self["blend"] = val # border # ------ @@ -196,11 +194,11 @@ def border(self): ------- plotly.graph_objs.pointcloud.marker.Border """ - return self['border'] + return self["border"] @border.setter def border(self, val): - self['border'] = val + self["border"] = val # color # ----- @@ -257,11 +255,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -281,11 +279,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # sizemax # ------- @@ -302,11 +300,11 @@ def sizemax(self): ------- int|float """ - return self['sizemax'] + return self["sizemax"] @sizemax.setter def sizemax(self, val): - self['sizemax'] = val + self["sizemax"] = val # sizemin # ------- @@ -323,17 +321,17 @@ def sizemin(self): ------- int|float """ - return self['sizemin'] + return self["sizemin"] @sizemin.setter def sizemin(self, val): - self['sizemin'] = val + self["sizemin"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'pointcloud' + return "pointcloud" # Self properties description # --------------------------- @@ -422,7 +420,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -442,35 +440,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.pointcloud import (marker as v_marker) + from plotly.validators.pointcloud import marker as v_marker # Initialize validators # --------------------- - self._validators['blend'] = v_marker.BlendValidator() - self._validators['border'] = v_marker.BorderValidator() - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['sizemax'] = v_marker.SizemaxValidator() - self._validators['sizemin'] = v_marker.SizeminValidator() + self._validators["blend"] = v_marker.BlendValidator() + self._validators["border"] = v_marker.BorderValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["sizemax"] = v_marker.SizemaxValidator() + self._validators["sizemin"] = v_marker.SizeminValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('blend', None) - self['blend'] = blend if blend is not None else _v - _v = arg.pop('border', None) - self['border'] = border if border is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('sizemax', None) - self['sizemax'] = sizemax if sizemax is not None else _v - _v = arg.pop('sizemin', None) - self['sizemin'] = sizemin if sizemin is not None else _v + _v = arg.pop("blend", None) + self["blend"] = blend if blend is not None else _v + _v = arg.pop("border", None) + self["border"] = border if border is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("sizemax", None) + self["sizemax"] = sizemax if sizemax is not None else _v + _v = arg.pop("sizemin", None) + self["sizemin"] = sizemin if sizemin is not None else _v # Process unknown kwargs # ---------------------- @@ -505,11 +503,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -525,11 +523,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -585,11 +583,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -605,11 +603,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -665,11 +663,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -685,11 +683,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -740,11 +738,11 @@ def font(self): ------- plotly.graph_objs.pointcloud.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -767,11 +765,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -787,17 +785,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'pointcloud' + return "pointcloud" # Self properties description # --------------------------- @@ -889,7 +887,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -909,48 +907,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.pointcloud import (hoverlabel as v_hoverlabel) + from plotly.validators.pointcloud import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pointcloud/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/pointcloud/hoverlabel/__init__.py index 98f3dae9f4b..b6119cbf7b4 100644 --- a/packages/python/plotly/plotly/graph_objs/pointcloud/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/pointcloud/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'pointcloud.hoverlabel' + return "pointcloud.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.pointcloud.hoverlabel import (font as v_font) + from plotly.validators.pointcloud.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/pointcloud/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/pointcloud/marker/__init__.py index 134f5ec7f63..e205576d042 100644 --- a/packages/python/plotly/plotly/graph_objs/pointcloud/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/pointcloud/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -21,11 +19,11 @@ def arearatio(self): ------- int|float """ - return self['arearatio'] + return self["arearatio"] @arearatio.setter def arearatio(self, val): - self['arearatio'] = val + self["arearatio"] = val # color # ----- @@ -82,17 +80,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'pointcloud.marker' + return "pointcloud.marker" # Self properties description # --------------------------- @@ -132,7 +130,7 @@ def __init__(self, arg=None, arearatio=None, color=None, **kwargs): ------- Border """ - super(Border, self).__init__('border') + super(Border, self).__init__("border") # Validate arg # ------------ @@ -152,23 +150,23 @@ def __init__(self, arg=None, arearatio=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.pointcloud.marker import (border as v_border) + from plotly.validators.pointcloud.marker import border as v_border # Initialize validators # --------------------- - self._validators['arearatio'] = v_border.ArearatioValidator() - self._validators['color'] = v_border.ColorValidator() + self._validators["arearatio"] = v_border.ArearatioValidator() + self._validators["color"] = v_border.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('arearatio', None) - self['arearatio'] = arearatio if arearatio is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("arearatio", None) + self["arearatio"] = arearatio if arearatio is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/__init__.py b/packages/python/plotly/plotly/graph_objs/sankey/__init__.py index 9a9d3c89516..50531ac793f 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sankey' + return "sankey" # Self properties description # --------------------------- @@ -177,7 +175,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -197,26 +195,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sankey import (textfont as v_textfont) + from plotly.validators.sankey import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() - self._validators['family'] = v_textfont.FamilyValidator() - self._validators['size'] = v_textfont.SizeValidator() + self._validators["color"] = v_textfont.ColorValidator() + self._validators["family"] = v_textfont.FamilyValidator() + self._validators["size"] = v_textfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- @@ -249,11 +247,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -270,17 +268,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sankey' + return "sankey" # Self properties description # --------------------------- @@ -321,7 +319,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -341,23 +339,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sankey import (stream as v_stream) + from plotly.validators.sankey import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -433,11 +431,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -453,11 +451,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # groups # ------ @@ -477,11 +475,11 @@ def groups(self): ------- list """ - return self['groups'] + return self["groups"] @groups.setter def groups(self, val): - self['groups'] = val + self["groups"] = val # hoverinfo # --------- @@ -501,11 +499,11 @@ def hoverinfo(self): ------- Any """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverlabel # ---------- @@ -560,11 +558,11 @@ def hoverlabel(self): ------- plotly.graph_objs.sankey.node.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -596,11 +594,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -616,11 +614,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # label # ----- @@ -636,11 +634,11 @@ def label(self): ------- numpy.ndarray """ - return self['label'] + return self["label"] @label.setter def label(self, val): - self['label'] = val + self["label"] = val # labelsrc # -------- @@ -656,11 +654,11 @@ def labelsrc(self): ------- str """ - return self['labelsrc'] + return self["labelsrc"] @labelsrc.setter def labelsrc(self, val): - self['labelsrc'] = val + self["labelsrc"] = val # line # ---- @@ -692,11 +690,11 @@ def line(self): ------- plotly.graph_objs.sankey.node.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # pad # --- @@ -712,11 +710,11 @@ def pad(self): ------- int|float """ - return self['pad'] + return self["pad"] @pad.setter def pad(self, val): - self['pad'] = val + self["pad"] = val # thickness # --------- @@ -732,11 +730,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # x # - @@ -752,11 +750,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xsrc # ---- @@ -772,11 +770,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -792,11 +790,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # ysrc # ---- @@ -812,17 +810,17 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sankey' + return "sankey" # Self properties description # --------------------------- @@ -991,7 +989,7 @@ def __init__( ------- Node """ - super(Node, self).__init__('node') + super(Node, self).__init__("node") # Validate arg # ------------ @@ -1011,68 +1009,67 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sankey import (node as v_node) + from plotly.validators.sankey import node as v_node # Initialize validators # --------------------- - self._validators['color'] = v_node.ColorValidator() - self._validators['colorsrc'] = v_node.ColorsrcValidator() - self._validators['groups'] = v_node.GroupsValidator() - self._validators['hoverinfo'] = v_node.HoverinfoValidator() - self._validators['hoverlabel'] = v_node.HoverlabelValidator() - self._validators['hovertemplate'] = v_node.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_node.HovertemplatesrcValidator() - self._validators['label'] = v_node.LabelValidator() - self._validators['labelsrc'] = v_node.LabelsrcValidator() - self._validators['line'] = v_node.LineValidator() - self._validators['pad'] = v_node.PadValidator() - self._validators['thickness'] = v_node.ThicknessValidator() - self._validators['x'] = v_node.XValidator() - self._validators['xsrc'] = v_node.XsrcValidator() - self._validators['y'] = v_node.YValidator() - self._validators['ysrc'] = v_node.YsrcValidator() + self._validators["color"] = v_node.ColorValidator() + self._validators["colorsrc"] = v_node.ColorsrcValidator() + self._validators["groups"] = v_node.GroupsValidator() + self._validators["hoverinfo"] = v_node.HoverinfoValidator() + self._validators["hoverlabel"] = v_node.HoverlabelValidator() + self._validators["hovertemplate"] = v_node.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_node.HovertemplatesrcValidator() + self._validators["label"] = v_node.LabelValidator() + self._validators["labelsrc"] = v_node.LabelsrcValidator() + self._validators["line"] = v_node.LineValidator() + self._validators["pad"] = v_node.PadValidator() + self._validators["thickness"] = v_node.ThicknessValidator() + self._validators["x"] = v_node.XValidator() + self._validators["xsrc"] = v_node.XsrcValidator() + self._validators["y"] = v_node.YValidator() + self._validators["ysrc"] = v_node.YsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('groups', None) - self['groups'] = groups if groups is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('label', None) - self['label'] = label if label is not None else _v - _v = arg.pop('labelsrc', None) - self['labelsrc'] = labelsrc if labelsrc is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('pad', None) - self['pad'] = pad if pad is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("groups", None) + self["groups"] = groups if groups is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("label", None) + self["label"] = label if label is not None else _v + _v = arg.pop("labelsrc", None) + self["labelsrc"] = labelsrc if labelsrc is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("pad", None) + self["pad"] = pad if pad is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1145,11 +1142,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorscales # ----------- @@ -1211,11 +1208,11 @@ def colorscales(self): ------- tuple[plotly.graph_objs.sankey.link.Colorscale] """ - return self['colorscales'] + return self["colorscales"] @colorscales.setter def colorscales(self, val): - self['colorscales'] = val + self["colorscales"] = val # colorscaledefaults # ------------------ @@ -1239,11 +1236,11 @@ def colorscaledefaults(self): ------- plotly.graph_objs.sankey.link.Colorscale """ - return self['colorscaledefaults'] + return self["colorscaledefaults"] @colorscaledefaults.setter def colorscaledefaults(self, val): - self['colorscaledefaults'] = val + self["colorscaledefaults"] = val # colorsrc # -------- @@ -1259,11 +1256,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # hoverinfo # --------- @@ -1283,11 +1280,11 @@ def hoverinfo(self): ------- Any """ - return self['hoverinfo'] + return self["hoverinfo"] @hoverinfo.setter def hoverinfo(self, val): - self['hoverinfo'] = val + self["hoverinfo"] = val # hoverlabel # ---------- @@ -1342,11 +1339,11 @@ def hoverlabel(self): ------- plotly.graph_objs.sankey.link.Hoverlabel """ - return self['hoverlabel'] + return self["hoverlabel"] @hoverlabel.setter def hoverlabel(self, val): - self['hoverlabel'] = val + self["hoverlabel"] = val # hovertemplate # ------------- @@ -1378,11 +1375,11 @@ def hovertemplate(self): ------- str|numpy.ndarray """ - return self['hovertemplate'] + return self["hovertemplate"] @hovertemplate.setter def hovertemplate(self, val): - self['hovertemplate'] = val + self["hovertemplate"] = val # hovertemplatesrc # ---------------- @@ -1398,11 +1395,11 @@ def hovertemplatesrc(self): ------- str """ - return self['hovertemplatesrc'] + return self["hovertemplatesrc"] @hovertemplatesrc.setter def hovertemplatesrc(self, val): - self['hovertemplatesrc'] = val + self["hovertemplatesrc"] = val # label # ----- @@ -1418,11 +1415,11 @@ def label(self): ------- numpy.ndarray """ - return self['label'] + return self["label"] @label.setter def label(self, val): - self['label'] = val + self["label"] = val # labelsrc # -------- @@ -1438,11 +1435,11 @@ def labelsrc(self): ------- str """ - return self['labelsrc'] + return self["labelsrc"] @labelsrc.setter def labelsrc(self, val): - self['labelsrc'] = val + self["labelsrc"] = val # line # ---- @@ -1474,11 +1471,11 @@ def line(self): ------- plotly.graph_objs.sankey.link.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # source # ------ @@ -1495,11 +1492,11 @@ def source(self): ------- numpy.ndarray """ - return self['source'] + return self["source"] @source.setter def source(self, val): - self['source'] = val + self["source"] = val # sourcesrc # --------- @@ -1515,11 +1512,11 @@ def sourcesrc(self): ------- str """ - return self['sourcesrc'] + return self["sourcesrc"] @sourcesrc.setter def sourcesrc(self, val): - self['sourcesrc'] = val + self["sourcesrc"] = val # target # ------ @@ -1536,11 +1533,11 @@ def target(self): ------- numpy.ndarray """ - return self['target'] + return self["target"] @target.setter def target(self, val): - self['target'] = val + self["target"] = val # targetsrc # --------- @@ -1556,11 +1553,11 @@ def targetsrc(self): ------- str """ - return self['targetsrc'] + return self["targetsrc"] @targetsrc.setter def targetsrc(self, val): - self['targetsrc'] = val + self["targetsrc"] = val # value # ----- @@ -1576,11 +1573,11 @@ def value(self): ------- numpy.ndarray """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # valuesrc # -------- @@ -1596,17 +1593,17 @@ def valuesrc(self): ------- str """ - return self['valuesrc'] + return self["valuesrc"] @valuesrc.setter def valuesrc(self, val): - self['valuesrc'] = val + self["valuesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sankey' + return "sankey" # Self properties description # --------------------------- @@ -1784,7 +1781,7 @@ def __init__( ------- Link """ - super(Link, self).__init__('link') + super(Link, self).__init__("link") # Validate arg # ------------ @@ -1804,72 +1801,72 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sankey import (link as v_link) + from plotly.validators.sankey import link as v_link # Initialize validators # --------------------- - self._validators['color'] = v_link.ColorValidator() - self._validators['colorscales'] = v_link.ColorscalesValidator() - self._validators['colorscaledefaults'] = v_link.ColorscaleValidator() - self._validators['colorsrc'] = v_link.ColorsrcValidator() - self._validators['hoverinfo'] = v_link.HoverinfoValidator() - self._validators['hoverlabel'] = v_link.HoverlabelValidator() - self._validators['hovertemplate'] = v_link.HovertemplateValidator() - self._validators['hovertemplatesrc' - ] = v_link.HovertemplatesrcValidator() - self._validators['label'] = v_link.LabelValidator() - self._validators['labelsrc'] = v_link.LabelsrcValidator() - self._validators['line'] = v_link.LineValidator() - self._validators['source'] = v_link.SourceValidator() - self._validators['sourcesrc'] = v_link.SourcesrcValidator() - self._validators['target'] = v_link.TargetValidator() - self._validators['targetsrc'] = v_link.TargetsrcValidator() - self._validators['value'] = v_link.ValueValidator() - self._validators['valuesrc'] = v_link.ValuesrcValidator() + self._validators["color"] = v_link.ColorValidator() + self._validators["colorscales"] = v_link.ColorscalesValidator() + self._validators["colorscaledefaults"] = v_link.ColorscaleValidator() + self._validators["colorsrc"] = v_link.ColorsrcValidator() + self._validators["hoverinfo"] = v_link.HoverinfoValidator() + self._validators["hoverlabel"] = v_link.HoverlabelValidator() + self._validators["hovertemplate"] = v_link.HovertemplateValidator() + self._validators["hovertemplatesrc"] = v_link.HovertemplatesrcValidator() + self._validators["label"] = v_link.LabelValidator() + self._validators["labelsrc"] = v_link.LabelsrcValidator() + self._validators["line"] = v_link.LineValidator() + self._validators["source"] = v_link.SourceValidator() + self._validators["sourcesrc"] = v_link.SourcesrcValidator() + self._validators["target"] = v_link.TargetValidator() + self._validators["targetsrc"] = v_link.TargetsrcValidator() + self._validators["value"] = v_link.ValueValidator() + self._validators["valuesrc"] = v_link.ValuesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorscales', None) - self['colorscales'] = colorscales if colorscales is not None else _v - _v = arg.pop('colorscaledefaults', None) - self['colorscaledefaults' - ] = colorscaledefaults if colorscaledefaults is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('hoverinfo', None) - self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v - _v = arg.pop('hoverlabel', None) - self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v - _v = arg.pop('hovertemplate', None) - self['hovertemplate' - ] = hovertemplate if hovertemplate is not None else _v - _v = arg.pop('hovertemplatesrc', None) - self['hovertemplatesrc' - ] = hovertemplatesrc if hovertemplatesrc is not None else _v - _v = arg.pop('label', None) - self['label'] = label if label is not None else _v - _v = arg.pop('labelsrc', None) - self['labelsrc'] = labelsrc if labelsrc is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('source', None) - self['source'] = source if source is not None else _v - _v = arg.pop('sourcesrc', None) - self['sourcesrc'] = sourcesrc if sourcesrc is not None else _v - _v = arg.pop('target', None) - self['target'] = target if target is not None else _v - _v = arg.pop('targetsrc', None) - self['targetsrc'] = targetsrc if targetsrc is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v - _v = arg.pop('valuesrc', None) - self['valuesrc'] = valuesrc if valuesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorscales", None) + self["colorscales"] = colorscales if colorscales is not None else _v + _v = arg.pop("colorscaledefaults", None) + self["colorscaledefaults"] = ( + colorscaledefaults if colorscaledefaults is not None else _v + ) + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("hoverinfo", None) + self["hoverinfo"] = hoverinfo if hoverinfo is not None else _v + _v = arg.pop("hoverlabel", None) + self["hoverlabel"] = hoverlabel if hoverlabel is not None else _v + _v = arg.pop("hovertemplate", None) + self["hovertemplate"] = hovertemplate if hovertemplate is not None else _v + _v = arg.pop("hovertemplatesrc", None) + self["hovertemplatesrc"] = ( + hovertemplatesrc if hovertemplatesrc is not None else _v + ) + _v = arg.pop("label", None) + self["label"] = label if label is not None else _v + _v = arg.pop("labelsrc", None) + self["labelsrc"] = labelsrc if labelsrc is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("source", None) + self["source"] = source if source is not None else _v + _v = arg.pop("sourcesrc", None) + self["sourcesrc"] = sourcesrc if sourcesrc is not None else _v + _v = arg.pop("target", None) + self["target"] = target if target is not None else _v + _v = arg.pop("targetsrc", None) + self["targetsrc"] = targetsrc if targetsrc is not None else _v + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v + _v = arg.pop("valuesrc", None) + self["valuesrc"] = valuesrc if valuesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1904,11 +1901,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -1924,11 +1921,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -1984,11 +1981,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -2004,11 +2001,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -2064,11 +2061,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -2084,11 +2081,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -2139,11 +2136,11 @@ def font(self): ------- plotly.graph_objs.sankey.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -2166,11 +2163,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -2186,17 +2183,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sankey' + return "sankey" # Self properties description # --------------------------- @@ -2288,7 +2285,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -2308,48 +2305,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sankey import (hoverlabel as v_hoverlabel) + from plotly.validators.sankey import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -2382,11 +2375,11 @@ def column(self): ------- int """ - return self['column'] + return self["column"] @column.setter def column(self, val): - self['column'] = val + self["column"] = val # row # --- @@ -2404,11 +2397,11 @@ def row(self): ------- int """ - return self['row'] + return self["row"] @row.setter def row(self, val): - self['row'] = val + self["row"] = val # x # - @@ -2430,11 +2423,11 @@ def x(self): ------- list """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -2456,17 +2449,17 @@ def y(self): ------- list """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sankey' + return "sankey" # Self properties description # --------------------------- @@ -2487,9 +2480,7 @@ def _prop_descriptions(self): fraction). """ - def __init__( - self, arg=None, column=None, row=None, x=None, y=None, **kwargs - ): + def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): """ Construct a new Domain object @@ -2515,7 +2506,7 @@ def __init__( ------- Domain """ - super(Domain, self).__init__('domain') + super(Domain, self).__init__("domain") # Validate arg # ------------ @@ -2535,29 +2526,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sankey import (domain as v_domain) + from plotly.validators.sankey import domain as v_domain # Initialize validators # --------------------- - self._validators['column'] = v_domain.ColumnValidator() - self._validators['row'] = v_domain.RowValidator() - self._validators['x'] = v_domain.XValidator() - self._validators['y'] = v_domain.YValidator() + self._validators["column"] = v_domain.ColumnValidator() + self._validators["row"] = v_domain.RowValidator() + self._validators["x"] = v_domain.XValidator() + self._validators["y"] = v_domain.YValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('column', None) - self['column'] = column if column is not None else _v - _v = arg.pop('row', None) - self['row'] = row if row is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v + _v = arg.pop("column", None) + self["column"] = column if column is not None else _v + _v = arg.pop("row", None) + self["row"] = row if row is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/sankey/hoverlabel/__init__.py index a804f3e1d19..f3d8ac1262e 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sankey.hoverlabel' + return "sankey.hoverlabel" # Self properties description # --------------------------- @@ -262,7 +260,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -282,35 +280,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sankey.hoverlabel import (font as v_font) + from plotly.validators.sankey.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/link/__init__.py b/packages/python/plotly/plotly/graph_objs/sankey/link/__init__.py index 03d87df093c..3b4ecb6a6ff 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/link/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/link/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,11 +58,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -80,11 +78,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # width # ----- @@ -101,11 +99,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -121,17 +119,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sankey.link' + return "sankey.link" # Self properties description # --------------------------- @@ -150,13 +148,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - colorsrc=None, - width=None, - widthsrc=None, - **kwargs + self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs ): """ Construct a new Line object @@ -180,7 +172,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -200,29 +192,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sankey.link import (line as v_line) + from plotly.validators.sankey.link import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -257,11 +249,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -277,11 +269,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -337,11 +329,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -357,11 +349,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -417,11 +409,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -437,11 +429,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -492,11 +484,11 @@ def font(self): ------- plotly.graph_objs.sankey.link.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -519,11 +511,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -539,17 +531,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sankey.link' + return "sankey.link" # Self properties description # --------------------------- @@ -641,7 +633,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -661,48 +653,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sankey.link import (hoverlabel as v_hoverlabel) + from plotly.validators.sankey.link import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -733,11 +721,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmin # ---- @@ -753,11 +741,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # colorscale # ---------- @@ -790,11 +778,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # label # ----- @@ -812,11 +800,11 @@ def label(self): ------- str """ - return self['label'] + return self["label"] @label.setter def label(self, val): - self['label'] = val + self["label"] = val # name # ---- @@ -839,11 +827,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -867,17 +855,17 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sankey.link' + return "sankey.link" # Self properties description # --------------------------- @@ -986,7 +974,7 @@ def __init__( ------- Colorscale """ - super(Colorscale, self).__init__('colorscales') + super(Colorscale, self).__init__("colorscales") # Validate arg # ------------ @@ -1006,37 +994,37 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sankey.link import (colorscale as v_colorscale) + from plotly.validators.sankey.link import colorscale as v_colorscale # Initialize validators # --------------------- - self._validators['cmax'] = v_colorscale.CmaxValidator() - self._validators['cmin'] = v_colorscale.CminValidator() - self._validators['colorscale'] = v_colorscale.ColorscaleValidator() - self._validators['label'] = v_colorscale.LabelValidator() - self._validators['name'] = v_colorscale.NameValidator() - self._validators['templateitemname' - ] = v_colorscale.TemplateitemnameValidator() + self._validators["cmax"] = v_colorscale.CmaxValidator() + self._validators["cmin"] = v_colorscale.CminValidator() + self._validators["colorscale"] = v_colorscale.ColorscaleValidator() + self._validators["label"] = v_colorscale.LabelValidator() + self._validators["name"] = v_colorscale.NameValidator() + self._validators["templateitemname"] = v_colorscale.TemplateitemnameValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('label', None) - self['label'] = label if label is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("label", None) + self["label"] = label if label is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/link/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/sankey/link/hoverlabel/__init__.py index b433236b6fc..be8b0aa4e95 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/link/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/link/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sankey.link.hoverlabel' + return "sankey.link.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sankey.link.hoverlabel import (font as v_font) + from plotly.validators.sankey.link.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/node/__init__.py b/packages/python/plotly/plotly/graph_objs/sankey/node/__init__.py index 95017df8f73..8697198273b 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/node/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/node/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,11 +58,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -80,11 +78,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # width # ----- @@ -101,11 +99,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -121,17 +119,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sankey.node' + return "sankey.node" # Self properties description # --------------------------- @@ -150,13 +148,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - colorsrc=None, - width=None, - widthsrc=None, - **kwargs + self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs ): """ Construct a new Line object @@ -180,7 +172,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -200,29 +192,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sankey.node import (line as v_line) + from plotly.validators.sankey.node import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -257,11 +249,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -277,11 +269,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -337,11 +329,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -357,11 +349,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -417,11 +409,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -437,11 +429,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -492,11 +484,11 @@ def font(self): ------- plotly.graph_objs.sankey.node.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -519,11 +511,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -539,17 +531,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sankey.node' + return "sankey.node" # Self properties description # --------------------------- @@ -641,7 +633,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -661,48 +653,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sankey.node import (hoverlabel as v_hoverlabel) + from plotly.validators.sankey.node import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sankey/node/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/sankey/node/hoverlabel/__init__.py index f64bd1b8635..61cd64338a0 100644 --- a/packages/python/plotly/plotly/graph_objs/sankey/node/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sankey/node/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sankey.node.hoverlabel' + return "sankey.node.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sankey.node.hoverlabel import (font as v_font) + from plotly.validators.sankey.node.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter/__init__.py index 687e4f0db64..7f96625c277 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -33,11 +31,11 @@ def marker(self): ------- plotly.graph_objs.scatter.unselected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -60,17 +58,17 @@ def textfont(self): ------- plotly.graph_objs.scatter.unselected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter' + return "scatter" # Self properties description # --------------------------- @@ -105,7 +103,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__('unselected') + super(Unselected, self).__init__("unselected") # Validate arg # ------------ @@ -125,23 +123,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter import (unselected as v_unselected) + from plotly.validators.scatter import unselected as v_unselected # Initialize validators # --------------------- - self._validators['marker'] = v_unselected.MarkerValidator() - self._validators['textfont'] = v_unselected.TextfontValidator() + self._validators["marker"] = v_unselected.MarkerValidator() + self._validators["textfont"] = v_unselected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -210,11 +208,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -230,11 +228,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -262,11 +260,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -282,11 +280,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -301,11 +299,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -321,17 +319,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter' + return "scatter" # Self properties description # --------------------------- @@ -414,7 +412,7 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -434,35 +432,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter import (textfont as v_textfont) + from plotly.validators.scatter import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() - self._validators['colorsrc'] = v_textfont.ColorsrcValidator() - self._validators['family'] = v_textfont.FamilyValidator() - self._validators['familysrc'] = v_textfont.FamilysrcValidator() - self._validators['size'] = v_textfont.SizeValidator() - self._validators['sizesrc'] = v_textfont.SizesrcValidator() + self._validators["color"] = v_textfont.ColorValidator() + self._validators["colorsrc"] = v_textfont.ColorsrcValidator() + self._validators["family"] = v_textfont.FamilyValidator() + self._validators["familysrc"] = v_textfont.FamilysrcValidator() + self._validators["size"] = v_textfont.SizeValidator() + self._validators["sizesrc"] = v_textfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -495,11 +493,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -516,17 +514,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter' + return "scatter" # Self properties description # --------------------------- @@ -567,7 +565,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -587,23 +585,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter import (stream as v_stream) + from plotly.validators.scatter import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -644,11 +642,11 @@ def marker(self): ------- plotly.graph_objs.scatter.selected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -670,17 +668,17 @@ def textfont(self): ------- plotly.graph_objs.scatter.selected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter' + return "scatter" # Self properties description # --------------------------- @@ -715,7 +713,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__('selected') + super(Selected, self).__init__("selected") # Validate arg # ------------ @@ -735,23 +733,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter import (selected as v_selected) + from plotly.validators.scatter import selected as v_selected # Initialize validators # --------------------- - self._validators['marker'] = v_selected.MarkerValidator() - self._validators['textfont'] = v_selected.TextfontValidator() + self._validators["marker"] = v_selected.MarkerValidator() + self._validators["textfont"] = v_selected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -788,11 +786,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -813,11 +811,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -836,11 +834,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -860,11 +858,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -883,11 +881,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -948,11 +946,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -975,11 +973,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -1209,11 +1207,11 @@ def colorbar(self): ------- plotly.graph_objs.scatter.marker.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -1247,11 +1245,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -1267,11 +1265,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # gradient # -------- @@ -1304,11 +1302,11 @@ def gradient(self): ------- plotly.graph_objs.scatter.marker.Gradient """ - return self['gradient'] + return self["gradient"] @gradient.setter def gradient(self, val): - self['gradient'] = val + self["gradient"] = val # line # ---- @@ -1416,11 +1414,11 @@ def line(self): ------- plotly.graph_objs.scatter.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # maxdisplayed # ------------ @@ -1437,11 +1435,11 @@ def maxdisplayed(self): ------- int|float """ - return self['maxdisplayed'] + return self["maxdisplayed"] @maxdisplayed.setter def maxdisplayed(self, val): - self['maxdisplayed'] = val + self["maxdisplayed"] = val # opacity # ------- @@ -1458,11 +1456,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # opacitysrc # ---------- @@ -1478,11 +1476,11 @@ def opacitysrc(self): ------- str """ - return self['opacitysrc'] + return self["opacitysrc"] @opacitysrc.setter def opacitysrc(self, val): - self['opacitysrc'] = val + self["opacitysrc"] = val # reversescale # ------------ @@ -1501,11 +1499,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -1523,11 +1521,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # size # ---- @@ -1544,11 +1542,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizemin # ------- @@ -1566,11 +1564,11 @@ def sizemin(self): ------- int|float """ - return self['sizemin'] + return self["sizemin"] @sizemin.setter def sizemin(self, val): - self['sizemin'] = val + self["sizemin"] = val # sizemode # -------- @@ -1589,11 +1587,11 @@ def sizemode(self): ------- Any """ - return self['sizemode'] + return self["sizemode"] @sizemode.setter def sizemode(self, val): - self['sizemode'] = val + self["sizemode"] = val # sizeref # ------- @@ -1611,11 +1609,11 @@ def sizeref(self): ------- int|float """ - return self['sizeref'] + return self["sizeref"] @sizeref.setter def sizeref(self, val): - self['sizeref'] = val + self["sizeref"] = val # sizesrc # ------- @@ -1631,11 +1629,11 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # symbol # ------ @@ -1716,11 +1714,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self['symbol'] + return self["symbol"] @symbol.setter def symbol(self, val): - self['symbol'] = val + self["symbol"] = val # symbolsrc # --------- @@ -1736,17 +1734,17 @@ def symbolsrc(self): ------- str """ - return self['symbolsrc'] + return self["symbolsrc"] @symbolsrc.setter def symbolsrc(self, val): - self['symbolsrc'] = val + self["symbolsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter' + return "scatter" # Self properties description # --------------------------- @@ -2023,7 +2021,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -2043,90 +2041,89 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter import (marker as v_marker) + from plotly.validators.scatter import marker as v_marker # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_marker.AutocolorscaleValidator() - self._validators['cauto'] = v_marker.CautoValidator() - self._validators['cmax'] = v_marker.CmaxValidator() - self._validators['cmid'] = v_marker.CmidValidator() - self._validators['cmin'] = v_marker.CminValidator() - self._validators['color'] = v_marker.ColorValidator() - self._validators['coloraxis'] = v_marker.ColoraxisValidator() - self._validators['colorbar'] = v_marker.ColorBarValidator() - self._validators['colorscale'] = v_marker.ColorscaleValidator() - self._validators['colorsrc'] = v_marker.ColorsrcValidator() - self._validators['gradient'] = v_marker.GradientValidator() - self._validators['line'] = v_marker.LineValidator() - self._validators['maxdisplayed'] = v_marker.MaxdisplayedValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['opacitysrc'] = v_marker.OpacitysrcValidator() - self._validators['reversescale'] = v_marker.ReversescaleValidator() - self._validators['showscale'] = v_marker.ShowscaleValidator() - self._validators['size'] = v_marker.SizeValidator() - self._validators['sizemin'] = v_marker.SizeminValidator() - self._validators['sizemode'] = v_marker.SizemodeValidator() - self._validators['sizeref'] = v_marker.SizerefValidator() - self._validators['sizesrc'] = v_marker.SizesrcValidator() - self._validators['symbol'] = v_marker.SymbolValidator() - self._validators['symbolsrc'] = v_marker.SymbolsrcValidator() + self._validators["autocolorscale"] = v_marker.AutocolorscaleValidator() + self._validators["cauto"] = v_marker.CautoValidator() + self._validators["cmax"] = v_marker.CmaxValidator() + self._validators["cmid"] = v_marker.CmidValidator() + self._validators["cmin"] = v_marker.CminValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["coloraxis"] = v_marker.ColoraxisValidator() + self._validators["colorbar"] = v_marker.ColorBarValidator() + self._validators["colorscale"] = v_marker.ColorscaleValidator() + self._validators["colorsrc"] = v_marker.ColorsrcValidator() + self._validators["gradient"] = v_marker.GradientValidator() + self._validators["line"] = v_marker.LineValidator() + self._validators["maxdisplayed"] = v_marker.MaxdisplayedValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["opacitysrc"] = v_marker.OpacitysrcValidator() + self._validators["reversescale"] = v_marker.ReversescaleValidator() + self._validators["showscale"] = v_marker.ShowscaleValidator() + self._validators["size"] = v_marker.SizeValidator() + self._validators["sizemin"] = v_marker.SizeminValidator() + self._validators["sizemode"] = v_marker.SizemodeValidator() + self._validators["sizeref"] = v_marker.SizerefValidator() + self._validators["sizesrc"] = v_marker.SizesrcValidator() + self._validators["symbol"] = v_marker.SymbolValidator() + self._validators["symbolsrc"] = v_marker.SymbolsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('gradient', None) - self['gradient'] = gradient if gradient is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('maxdisplayed', None) - self['maxdisplayed'] = maxdisplayed if maxdisplayed is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('opacitysrc', None) - self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizemin', None) - self['sizemin'] = sizemin if sizemin is not None else _v - _v = arg.pop('sizemode', None) - self['sizemode'] = sizemode if sizemode is not None else _v - _v = arg.pop('sizeref', None) - self['sizeref'] = sizeref if sizeref is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v - _v = arg.pop('symbol', None) - self['symbol'] = symbol if symbol is not None else _v - _v = arg.pop('symbolsrc', None) - self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("gradient", None) + self["gradient"] = gradient if gradient is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("maxdisplayed", None) + self["maxdisplayed"] = maxdisplayed if maxdisplayed is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("opacitysrc", None) + self["opacitysrc"] = opacitysrc if opacitysrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizemin", None) + self["sizemin"] = sizemin if sizemin is not None else _v + _v = arg.pop("sizemode", None) + self["sizemode"] = sizemode if sizemode is not None else _v + _v = arg.pop("sizeref", None) + self["sizeref"] = sizeref if sizeref is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v + _v = arg.pop("symbol", None) + self["symbol"] = symbol if symbol is not None else _v + _v = arg.pop("symbolsrc", None) + self["symbolsrc"] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -2196,11 +2193,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dash # ---- @@ -2222,11 +2219,11 @@ def dash(self): ------- str """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # shape # ----- @@ -2245,11 +2242,11 @@ def shape(self): ------- Any """ - return self['shape'] + return self["shape"] @shape.setter def shape(self, val): - self['shape'] = val + self["shape"] = val # simplify # -------- @@ -2268,11 +2265,11 @@ def simplify(self): ------- bool """ - return self['simplify'] + return self["simplify"] @simplify.setter def simplify(self, val): - self['simplify'] = val + self["simplify"] = val # smoothing # --------- @@ -2290,11 +2287,11 @@ def smoothing(self): ------- int|float """ - return self['smoothing'] + return self["smoothing"] @smoothing.setter def smoothing(self, val): - self['smoothing'] = val + self["smoothing"] = val # width # ----- @@ -2310,17 +2307,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter' + return "scatter" # Self properties description # --------------------------- @@ -2397,7 +2394,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -2417,35 +2414,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter import (line as v_line) + from plotly.validators.scatter import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['dash'] = v_line.DashValidator() - self._validators['shape'] = v_line.ShapeValidator() - self._validators['simplify'] = v_line.SimplifyValidator() - self._validators['smoothing'] = v_line.SmoothingValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["shape"] = v_line.ShapeValidator() + self._validators["simplify"] = v_line.SimplifyValidator() + self._validators["smoothing"] = v_line.SmoothingValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('shape', None) - self['shape'] = shape if shape is not None else _v - _v = arg.pop('simplify', None) - self['simplify'] = simplify if simplify is not None else _v - _v = arg.pop('smoothing', None) - self['smoothing'] = smoothing if smoothing is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("shape", None) + self["shape"] = shape if shape is not None else _v + _v = arg.pop("simplify", None) + self["simplify"] = simplify if simplify is not None else _v + _v = arg.pop("smoothing", None) + self["smoothing"] = smoothing if smoothing is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -2480,11 +2477,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -2500,11 +2497,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -2560,11 +2557,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -2580,11 +2577,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -2640,11 +2637,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -2660,11 +2657,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -2715,11 +2712,11 @@ def font(self): ------- plotly.graph_objs.scatter.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -2742,11 +2739,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -2762,17 +2759,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter' + return "scatter" # Self properties description # --------------------------- @@ -2864,7 +2861,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -2884,48 +2881,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter import (hoverlabel as v_hoverlabel) + from plotly.validators.scatter import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -2957,11 +2950,11 @@ def array(self): ------- numpy.ndarray """ - return self['array'] + return self["array"] @array.setter def array(self, val): - self['array'] = val + self["array"] = val # arrayminus # ---------- @@ -2979,11 +2972,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self['arrayminus'] + return self["arrayminus"] @arrayminus.setter def arrayminus(self, val): - self['arrayminus'] = val + self["arrayminus"] = val # arrayminussrc # ------------- @@ -2999,11 +2992,11 @@ def arrayminussrc(self): ------- str """ - return self['arrayminussrc'] + return self["arrayminussrc"] @arrayminussrc.setter def arrayminussrc(self, val): - self['arrayminussrc'] = val + self["arrayminussrc"] = val # arraysrc # -------- @@ -3019,11 +3012,11 @@ def arraysrc(self): ------- str """ - return self['arraysrc'] + return self["arraysrc"] @arraysrc.setter def arraysrc(self, val): - self['arraysrc'] = val + self["arraysrc"] = val # color # ----- @@ -3078,11 +3071,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # symmetric # --------- @@ -3100,11 +3093,11 @@ def symmetric(self): ------- bool """ - return self['symmetric'] + return self["symmetric"] @symmetric.setter def symmetric(self, val): - self['symmetric'] = val + self["symmetric"] = val # thickness # --------- @@ -3120,11 +3113,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # traceref # -------- @@ -3139,11 +3132,11 @@ def traceref(self): ------- int """ - return self['traceref'] + return self["traceref"] @traceref.setter def traceref(self, val): - self['traceref'] = val + self["traceref"] = val # tracerefminus # ------------- @@ -3158,11 +3151,11 @@ def tracerefminus(self): ------- int """ - return self['tracerefminus'] + return self["tracerefminus"] @tracerefminus.setter def tracerefminus(self, val): - self['tracerefminus'] = val + self["tracerefminus"] = val # type # ---- @@ -3185,11 +3178,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # value # ----- @@ -3207,11 +3200,11 @@ def value(self): ------- int|float """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # valueminus # ---------- @@ -3230,11 +3223,11 @@ def valueminus(self): ------- int|float """ - return self['valueminus'] + return self["valueminus"] @valueminus.setter def valueminus(self, val): - self['valueminus'] = val + self["valueminus"] = val # visible # ------- @@ -3250,11 +3243,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -3271,17 +3264,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter' + return "scatter" # Self properties description # --------------------------- @@ -3424,7 +3417,7 @@ def __init__( ------- ErrorY """ - super(ErrorY, self).__init__('error_y') + super(ErrorY, self).__init__("error_y") # Validate arg # ------------ @@ -3444,61 +3437,59 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter import (error_y as v_error_y) + from plotly.validators.scatter import error_y as v_error_y # Initialize validators # --------------------- - self._validators['array'] = v_error_y.ArrayValidator() - self._validators['arrayminus'] = v_error_y.ArrayminusValidator() - self._validators['arrayminussrc'] = v_error_y.ArrayminussrcValidator() - self._validators['arraysrc'] = v_error_y.ArraysrcValidator() - self._validators['color'] = v_error_y.ColorValidator() - self._validators['symmetric'] = v_error_y.SymmetricValidator() - self._validators['thickness'] = v_error_y.ThicknessValidator() - self._validators['traceref'] = v_error_y.TracerefValidator() - self._validators['tracerefminus'] = v_error_y.TracerefminusValidator() - self._validators['type'] = v_error_y.TypeValidator() - self._validators['value'] = v_error_y.ValueValidator() - self._validators['valueminus'] = v_error_y.ValueminusValidator() - self._validators['visible'] = v_error_y.VisibleValidator() - self._validators['width'] = v_error_y.WidthValidator() + self._validators["array"] = v_error_y.ArrayValidator() + self._validators["arrayminus"] = v_error_y.ArrayminusValidator() + self._validators["arrayminussrc"] = v_error_y.ArrayminussrcValidator() + self._validators["arraysrc"] = v_error_y.ArraysrcValidator() + self._validators["color"] = v_error_y.ColorValidator() + self._validators["symmetric"] = v_error_y.SymmetricValidator() + self._validators["thickness"] = v_error_y.ThicknessValidator() + self._validators["traceref"] = v_error_y.TracerefValidator() + self._validators["tracerefminus"] = v_error_y.TracerefminusValidator() + self._validators["type"] = v_error_y.TypeValidator() + self._validators["value"] = v_error_y.ValueValidator() + self._validators["valueminus"] = v_error_y.ValueminusValidator() + self._validators["visible"] = v_error_y.VisibleValidator() + self._validators["width"] = v_error_y.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('array', None) - self['array'] = array if array is not None else _v - _v = arg.pop('arrayminus', None) - self['arrayminus'] = arrayminus if arrayminus is not None else _v - _v = arg.pop('arrayminussrc', None) - self['arrayminussrc' - ] = arrayminussrc if arrayminussrc is not None else _v - _v = arg.pop('arraysrc', None) - self['arraysrc'] = arraysrc if arraysrc is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('symmetric', None) - self['symmetric'] = symmetric if symmetric is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('traceref', None) - self['traceref'] = traceref if traceref is not None else _v - _v = arg.pop('tracerefminus', None) - self['tracerefminus' - ] = tracerefminus if tracerefminus is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v - _v = arg.pop('valueminus', None) - self['valueminus'] = valueminus if valueminus is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("array", None) + self["array"] = array if array is not None else _v + _v = arg.pop("arrayminus", None) + self["arrayminus"] = arrayminus if arrayminus is not None else _v + _v = arg.pop("arrayminussrc", None) + self["arrayminussrc"] = arrayminussrc if arrayminussrc is not None else _v + _v = arg.pop("arraysrc", None) + self["arraysrc"] = arraysrc if arraysrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("symmetric", None) + self["symmetric"] = symmetric if symmetric is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("traceref", None) + self["traceref"] = traceref if traceref is not None else _v + _v = arg.pop("tracerefminus", None) + self["tracerefminus"] = tracerefminus if tracerefminus is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v + _v = arg.pop("valueminus", None) + self["valueminus"] = valueminus if valueminus is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -3530,11 +3521,11 @@ def array(self): ------- numpy.ndarray """ - return self['array'] + return self["array"] @array.setter def array(self, val): - self['array'] = val + self["array"] = val # arrayminus # ---------- @@ -3552,11 +3543,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self['arrayminus'] + return self["arrayminus"] @arrayminus.setter def arrayminus(self, val): - self['arrayminus'] = val + self["arrayminus"] = val # arrayminussrc # ------------- @@ -3572,11 +3563,11 @@ def arrayminussrc(self): ------- str """ - return self['arrayminussrc'] + return self["arrayminussrc"] @arrayminussrc.setter def arrayminussrc(self, val): - self['arrayminussrc'] = val + self["arrayminussrc"] = val # arraysrc # -------- @@ -3592,11 +3583,11 @@ def arraysrc(self): ------- str """ - return self['arraysrc'] + return self["arraysrc"] @arraysrc.setter def arraysrc(self, val): - self['arraysrc'] = val + self["arraysrc"] = val # color # ----- @@ -3651,11 +3642,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # copy_ystyle # ----------- @@ -3669,11 +3660,11 @@ def copy_ystyle(self): ------- bool """ - return self['copy_ystyle'] + return self["copy_ystyle"] @copy_ystyle.setter def copy_ystyle(self, val): - self['copy_ystyle'] = val + self["copy_ystyle"] = val # symmetric # --------- @@ -3691,11 +3682,11 @@ def symmetric(self): ------- bool """ - return self['symmetric'] + return self["symmetric"] @symmetric.setter def symmetric(self, val): - self['symmetric'] = val + self["symmetric"] = val # thickness # --------- @@ -3711,11 +3702,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # traceref # -------- @@ -3730,11 +3721,11 @@ def traceref(self): ------- int """ - return self['traceref'] + return self["traceref"] @traceref.setter def traceref(self, val): - self['traceref'] = val + self["traceref"] = val # tracerefminus # ------------- @@ -3749,11 +3740,11 @@ def tracerefminus(self): ------- int """ - return self['tracerefminus'] + return self["tracerefminus"] @tracerefminus.setter def tracerefminus(self, val): - self['tracerefminus'] = val + self["tracerefminus"] = val # type # ---- @@ -3776,11 +3767,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # value # ----- @@ -3798,11 +3789,11 @@ def value(self): ------- int|float """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # valueminus # ---------- @@ -3821,11 +3812,11 @@ def valueminus(self): ------- int|float """ - return self['valueminus'] + return self["valueminus"] @valueminus.setter def valueminus(self, val): - self['valueminus'] = val + self["valueminus"] = val # visible # ------- @@ -3841,11 +3832,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -3862,17 +3853,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter' + return "scatter" # Self properties description # --------------------------- @@ -4020,7 +4011,7 @@ def __init__( ------- ErrorX """ - super(ErrorX, self).__init__('error_x') + super(ErrorX, self).__init__("error_x") # Validate arg # ------------ @@ -4040,64 +4031,62 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter import (error_x as v_error_x) + from plotly.validators.scatter import error_x as v_error_x # Initialize validators # --------------------- - self._validators['array'] = v_error_x.ArrayValidator() - self._validators['arrayminus'] = v_error_x.ArrayminusValidator() - self._validators['arrayminussrc'] = v_error_x.ArrayminussrcValidator() - self._validators['arraysrc'] = v_error_x.ArraysrcValidator() - self._validators['color'] = v_error_x.ColorValidator() - self._validators['copy_ystyle'] = v_error_x.CopyYstyleValidator() - self._validators['symmetric'] = v_error_x.SymmetricValidator() - self._validators['thickness'] = v_error_x.ThicknessValidator() - self._validators['traceref'] = v_error_x.TracerefValidator() - self._validators['tracerefminus'] = v_error_x.TracerefminusValidator() - self._validators['type'] = v_error_x.TypeValidator() - self._validators['value'] = v_error_x.ValueValidator() - self._validators['valueminus'] = v_error_x.ValueminusValidator() - self._validators['visible'] = v_error_x.VisibleValidator() - self._validators['width'] = v_error_x.WidthValidator() + self._validators["array"] = v_error_x.ArrayValidator() + self._validators["arrayminus"] = v_error_x.ArrayminusValidator() + self._validators["arrayminussrc"] = v_error_x.ArrayminussrcValidator() + self._validators["arraysrc"] = v_error_x.ArraysrcValidator() + self._validators["color"] = v_error_x.ColorValidator() + self._validators["copy_ystyle"] = v_error_x.CopyYstyleValidator() + self._validators["symmetric"] = v_error_x.SymmetricValidator() + self._validators["thickness"] = v_error_x.ThicknessValidator() + self._validators["traceref"] = v_error_x.TracerefValidator() + self._validators["tracerefminus"] = v_error_x.TracerefminusValidator() + self._validators["type"] = v_error_x.TypeValidator() + self._validators["value"] = v_error_x.ValueValidator() + self._validators["valueminus"] = v_error_x.ValueminusValidator() + self._validators["visible"] = v_error_x.VisibleValidator() + self._validators["width"] = v_error_x.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('array', None) - self['array'] = array if array is not None else _v - _v = arg.pop('arrayminus', None) - self['arrayminus'] = arrayminus if arrayminus is not None else _v - _v = arg.pop('arrayminussrc', None) - self['arrayminussrc' - ] = arrayminussrc if arrayminussrc is not None else _v - _v = arg.pop('arraysrc', None) - self['arraysrc'] = arraysrc if arraysrc is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('copy_ystyle', None) - self['copy_ystyle'] = copy_ystyle if copy_ystyle is not None else _v - _v = arg.pop('symmetric', None) - self['symmetric'] = symmetric if symmetric is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('traceref', None) - self['traceref'] = traceref if traceref is not None else _v - _v = arg.pop('tracerefminus', None) - self['tracerefminus' - ] = tracerefminus if tracerefminus is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v - _v = arg.pop('valueminus', None) - self['valueminus'] = valueminus if valueminus is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("array", None) + self["array"] = array if array is not None else _v + _v = arg.pop("arrayminus", None) + self["arrayminus"] = arrayminus if arrayminus is not None else _v + _v = arg.pop("arrayminussrc", None) + self["arrayminussrc"] = arrayminussrc if arrayminussrc is not None else _v + _v = arg.pop("arraysrc", None) + self["arraysrc"] = arraysrc if arraysrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("copy_ystyle", None) + self["copy_ystyle"] = copy_ystyle if copy_ystyle is not None else _v + _v = arg.pop("symmetric", None) + self["symmetric"] = symmetric if symmetric is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("traceref", None) + self["traceref"] = traceref if traceref is not None else _v + _v = arg.pop("tracerefminus", None) + self["tracerefminus"] = tracerefminus if tracerefminus is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v + _v = arg.pop("valueminus", None) + self["valueminus"] = valueminus if valueminus is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter/hoverlabel/__init__.py index 882f243fe40..df9106856ae 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter.hoverlabel' + return "scatter.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter.hoverlabel import (font as v_font) + from plotly.validators.scatter.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter/marker/__init__.py index 8ad724139aa..0f9da9b13cb 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -26,11 +24,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -51,11 +49,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -74,11 +72,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -99,11 +97,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -122,11 +120,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -187,11 +185,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -214,11 +212,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorscale # ---------- @@ -253,11 +251,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -273,11 +271,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # reversescale # ------------ @@ -297,11 +295,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # width # ----- @@ -318,11 +316,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -338,17 +336,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter.marker' + return "scatter.marker" # Self properties description # --------------------------- @@ -541,7 +539,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -561,54 +559,53 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter.marker import (line as v_line) + from plotly.validators.scatter.marker import line as v_line # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_line.AutocolorscaleValidator() - self._validators['cauto'] = v_line.CautoValidator() - self._validators['cmax'] = v_line.CmaxValidator() - self._validators['cmid'] = v_line.CmidValidator() - self._validators['cmin'] = v_line.CminValidator() - self._validators['color'] = v_line.ColorValidator() - self._validators['coloraxis'] = v_line.ColoraxisValidator() - self._validators['colorscale'] = v_line.ColorscaleValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['reversescale'] = v_line.ReversescaleValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["autocolorscale"] = v_line.AutocolorscaleValidator() + self._validators["cauto"] = v_line.CautoValidator() + self._validators["cmax"] = v_line.CmaxValidator() + self._validators["cmid"] = v_line.CmidValidator() + self._validators["cmin"] = v_line.CminValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["coloraxis"] = v_line.ColoraxisValidator() + self._validators["colorscale"] = v_line.ColorscaleValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["reversescale"] = v_line.ReversescaleValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -680,11 +677,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -700,11 +697,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # type # ---- @@ -722,11 +719,11 @@ def type(self): ------- Any|numpy.ndarray """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # typesrc # ------- @@ -742,17 +739,17 @@ def typesrc(self): ------- str """ - return self['typesrc'] + return self["typesrc"] @typesrc.setter def typesrc(self, val): - self['typesrc'] = val + self["typesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter.marker' + return "scatter.marker" # Self properties description # --------------------------- @@ -772,13 +769,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - colorsrc=None, - type=None, - typesrc=None, - **kwargs + self, arg=None, color=None, colorsrc=None, type=None, typesrc=None, **kwargs ): """ Construct a new Gradient object @@ -804,7 +795,7 @@ def __init__( ------- Gradient """ - super(Gradient, self).__init__('gradient') + super(Gradient, self).__init__("gradient") # Validate arg # ------------ @@ -824,29 +815,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter.marker import (gradient as v_gradient) + from plotly.validators.scatter.marker import gradient as v_gradient # Initialize validators # --------------------- - self._validators['color'] = v_gradient.ColorValidator() - self._validators['colorsrc'] = v_gradient.ColorsrcValidator() - self._validators['type'] = v_gradient.TypeValidator() - self._validators['typesrc'] = v_gradient.TypesrcValidator() + self._validators["color"] = v_gradient.ColorValidator() + self._validators["colorsrc"] = v_gradient.ColorsrcValidator() + self._validators["type"] = v_gradient.TypeValidator() + self._validators["typesrc"] = v_gradient.TypesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('typesrc', None) - self['typesrc'] = typesrc if typesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("typesrc", None) + self["typesrc"] = typesrc if typesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -916,11 +907,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -975,11 +966,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -995,11 +986,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -1033,11 +1024,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -1058,11 +1049,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -1080,11 +1071,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -1103,11 +1094,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -1127,11 +1118,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -1186,11 +1177,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -1206,11 +1197,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -1226,11 +1217,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1250,11 +1241,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1270,11 +1261,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1294,11 +1285,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1315,11 +1306,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1336,11 +1327,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1359,11 +1350,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1386,11 +1377,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1410,11 +1401,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1469,11 +1460,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1514,11 +1505,11 @@ def tickfont(self): ------- plotly.graph_objs.scatter.marker.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1543,11 +1534,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1600,11 +1591,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.scatter.marker.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1628,11 +1619,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.scatter.marker.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1648,11 +1639,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1675,11 +1666,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1696,11 +1687,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1719,11 +1710,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1740,11 +1731,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1762,11 +1753,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1782,11 +1773,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1803,11 +1794,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1823,11 +1814,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1843,11 +1834,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1882,11 +1873,11 @@ def title(self): ------- plotly.graph_objs.scatter.marker.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1930,11 +1921,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1954,11 +1945,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1974,11 +1965,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1997,11 +1988,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -2017,11 +2008,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -2037,11 +2028,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -2060,11 +2051,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -2080,17 +2071,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter.marker' + return "scatter.marker" # Self properties description # --------------------------- @@ -2285,8 +2276,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2536,7 +2527,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2556,164 +2547,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter.marker import (colorbar as v_colorbar) + from plotly.validators.scatter.marker import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/__init__.py index 95378c14472..410bc92c760 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.scatter.marker.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter.marker.colorbar' + return "scatter.marker.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,28 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter.marker.colorbar import ( - title as v_title - ) + from plotly.validators.scatter.marker.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -231,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -252,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -279,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -307,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -329,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter.marker.colorbar' + return "scatter.marker.colorbar" # Self properties description # --------------------------- @@ -432,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -452,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.scatter.marker.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -549,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -580,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -598,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter.marker.colorbar' + return "scatter.marker.colorbar" # Self properties description # --------------------------- @@ -670,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -690,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter.marker.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.scatter.marker.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/title/__init__.py index 164279a4d87..a9ecf056ef2 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/marker/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter.marker.colorbar.title' + return "scatter.marker.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter.marker.colorbar.title import ( - font as v_font - ) + from plotly.validators.scatter.marker.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter/selected/__init__.py index a4d60b1b811..942cef66645 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/selected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,17 +57,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter.selected' + return "scatter.selected" # Self properties description # --------------------------- @@ -97,7 +95,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -117,20 +115,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter.selected import (textfont as v_textfont) + from plotly.validators.scatter.selected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -200,11 +198,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -220,11 +218,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -240,17 +238,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter.selected' + return "scatter.selected" # Self properties description # --------------------------- @@ -265,9 +263,7 @@ def _prop_descriptions(self): Sets the marker size of selected points. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -288,7 +284,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -308,26 +304,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter.selected import (marker as v_marker) + from plotly.validators.scatter.selected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter/unselected/__init__.py index 364f7f58881..a4aa49d97a3 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter/unselected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,17 +58,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter.unselected' + return "scatter.unselected" # Self properties description # --------------------------- @@ -100,7 +98,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -120,22 +118,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter.unselected import ( - textfont as v_textfont - ) + from plotly.validators.scatter.unselected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -206,11 +202,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -227,11 +223,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -248,17 +244,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter.unselected' + return "scatter.unselected" # Self properties description # --------------------------- @@ -276,9 +272,7 @@ def _prop_descriptions(self): when a selection exists. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -302,7 +296,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -322,26 +316,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter.unselected import (marker as v_marker) + from plotly.validators.scatter.unselected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/__init__.py index 5b0faaa5fad..bdeae724610 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -109,11 +107,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -128,11 +126,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -148,17 +146,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d' + return "scatter3d" # Self properties description # --------------------------- @@ -234,7 +232,7 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -254,32 +252,32 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d import (textfont as v_textfont) + from plotly.validators.scatter3d import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() - self._validators['colorsrc'] = v_textfont.ColorsrcValidator() - self._validators['family'] = v_textfont.FamilyValidator() - self._validators['size'] = v_textfont.SizeValidator() - self._validators['sizesrc'] = v_textfont.SizesrcValidator() + self._validators["color"] = v_textfont.ColorValidator() + self._validators["colorsrc"] = v_textfont.ColorsrcValidator() + self._validators["family"] = v_textfont.FamilyValidator() + self._validators["size"] = v_textfont.SizeValidator() + self._validators["sizesrc"] = v_textfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -312,11 +310,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -333,17 +331,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d' + return "scatter3d" # Self properties description # --------------------------- @@ -384,7 +382,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -404,23 +402,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d import (stream as v_stream) + from plotly.validators.scatter3d import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -463,11 +461,11 @@ def x(self): ------- plotly.graph_objs.scatter3d.projection.X """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -495,11 +493,11 @@ def y(self): ------- plotly.graph_objs.scatter3d.projection.Y """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -527,17 +525,17 @@ def z(self): ------- plotly.graph_objs.scatter3d.projection.Z """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d' + return "scatter3d" # Self properties description # --------------------------- @@ -578,7 +576,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Projection """ - super(Projection, self).__init__('projection') + super(Projection, self).__init__("projection") # Validate arg # ------------ @@ -598,26 +596,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d import (projection as v_projection) + from plotly.validators.scatter3d import projection as v_projection # Initialize validators # --------------------- - self._validators['x'] = v_projection.XValidator() - self._validators['y'] = v_projection.YValidator() - self._validators['z'] = v_projection.ZValidator() + self._validators["x"] = v_projection.XValidator() + self._validators["y"] = v_projection.YValidator() + self._validators["z"] = v_projection.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- @@ -654,11 +652,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -679,11 +677,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -702,11 +700,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -726,11 +724,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -749,11 +747,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -814,11 +812,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -841,11 +839,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -1075,11 +1073,11 @@ def colorbar(self): ------- plotly.graph_objs.scatter3d.marker.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -1113,11 +1111,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -1133,11 +1131,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # line # ---- @@ -1242,11 +1240,11 @@ def line(self): ------- plotly.graph_objs.scatter3d.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # opacity # ------- @@ -1266,11 +1264,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # reversescale # ------------ @@ -1289,11 +1287,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -1311,11 +1309,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # size # ---- @@ -1332,11 +1330,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizemin # ------- @@ -1354,11 +1352,11 @@ def sizemin(self): ------- int|float """ - return self['sizemin'] + return self["sizemin"] @sizemin.setter def sizemin(self, val): - self['sizemin'] = val + self["sizemin"] = val # sizemode # -------- @@ -1377,11 +1375,11 @@ def sizemode(self): ------- Any """ - return self['sizemode'] + return self["sizemode"] @sizemode.setter def sizemode(self, val): - self['sizemode'] = val + self["sizemode"] = val # sizeref # ------- @@ -1399,11 +1397,11 @@ def sizeref(self): ------- int|float """ - return self['sizeref'] + return self["sizeref"] @sizeref.setter def sizeref(self, val): - self['sizeref'] = val + self["sizeref"] = val # sizesrc # ------- @@ -1419,11 +1417,11 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # symbol # ------ @@ -1442,11 +1440,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self['symbol'] + return self["symbol"] @symbol.setter def symbol(self, val): - self['symbol'] = val + self["symbol"] = val # symbolsrc # --------- @@ -1462,17 +1460,17 @@ def symbolsrc(self): ------- str """ - return self['symbolsrc'] + return self["symbolsrc"] @symbolsrc.setter def symbolsrc(self, val): - self['symbolsrc'] = val + self["symbolsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d' + return "scatter3d" # Self properties description # --------------------------- @@ -1730,7 +1728,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -1750,81 +1748,80 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d import (marker as v_marker) + from plotly.validators.scatter3d import marker as v_marker # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_marker.AutocolorscaleValidator() - self._validators['cauto'] = v_marker.CautoValidator() - self._validators['cmax'] = v_marker.CmaxValidator() - self._validators['cmid'] = v_marker.CmidValidator() - self._validators['cmin'] = v_marker.CminValidator() - self._validators['color'] = v_marker.ColorValidator() - self._validators['coloraxis'] = v_marker.ColoraxisValidator() - self._validators['colorbar'] = v_marker.ColorBarValidator() - self._validators['colorscale'] = v_marker.ColorscaleValidator() - self._validators['colorsrc'] = v_marker.ColorsrcValidator() - self._validators['line'] = v_marker.LineValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['reversescale'] = v_marker.ReversescaleValidator() - self._validators['showscale'] = v_marker.ShowscaleValidator() - self._validators['size'] = v_marker.SizeValidator() - self._validators['sizemin'] = v_marker.SizeminValidator() - self._validators['sizemode'] = v_marker.SizemodeValidator() - self._validators['sizeref'] = v_marker.SizerefValidator() - self._validators['sizesrc'] = v_marker.SizesrcValidator() - self._validators['symbol'] = v_marker.SymbolValidator() - self._validators['symbolsrc'] = v_marker.SymbolsrcValidator() + self._validators["autocolorscale"] = v_marker.AutocolorscaleValidator() + self._validators["cauto"] = v_marker.CautoValidator() + self._validators["cmax"] = v_marker.CmaxValidator() + self._validators["cmid"] = v_marker.CmidValidator() + self._validators["cmin"] = v_marker.CminValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["coloraxis"] = v_marker.ColoraxisValidator() + self._validators["colorbar"] = v_marker.ColorBarValidator() + self._validators["colorscale"] = v_marker.ColorscaleValidator() + self._validators["colorsrc"] = v_marker.ColorsrcValidator() + self._validators["line"] = v_marker.LineValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["reversescale"] = v_marker.ReversescaleValidator() + self._validators["showscale"] = v_marker.ShowscaleValidator() + self._validators["size"] = v_marker.SizeValidator() + self._validators["sizemin"] = v_marker.SizeminValidator() + self._validators["sizemode"] = v_marker.SizemodeValidator() + self._validators["sizeref"] = v_marker.SizerefValidator() + self._validators["sizesrc"] = v_marker.SizesrcValidator() + self._validators["symbol"] = v_marker.SymbolValidator() + self._validators["symbolsrc"] = v_marker.SymbolsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizemin', None) - self['sizemin'] = sizemin if sizemin is not None else _v - _v = arg.pop('sizemode', None) - self['sizemode'] = sizemode if sizemode is not None else _v - _v = arg.pop('sizeref', None) - self['sizeref'] = sizeref if sizeref is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v - _v = arg.pop('symbol', None) - self['symbol'] = symbol if symbol is not None else _v - _v = arg.pop('symbolsrc', None) - self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizemin", None) + self["sizemin"] = sizemin if sizemin is not None else _v + _v = arg.pop("sizemode", None) + self["sizemode"] = sizemode if sizemode is not None else _v + _v = arg.pop("sizeref", None) + self["sizeref"] = sizeref if sizeref is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v + _v = arg.pop("symbol", None) + self["symbol"] = symbol if symbol is not None else _v + _v = arg.pop("symbolsrc", None) + self["symbolsrc"] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1861,11 +1858,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -1885,11 +1882,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -1908,11 +1905,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -1932,11 +1929,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -1955,11 +1952,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -2020,11 +2017,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -2047,11 +2044,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -2281,11 +2278,11 @@ def colorbar(self): ------- plotly.graph_objs.scatter3d.line.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -2319,11 +2316,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -2339,11 +2336,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # dash # ---- @@ -2361,11 +2358,11 @@ def dash(self): ------- Any """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # reversescale # ------------ @@ -2384,11 +2381,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -2406,11 +2403,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # width # ----- @@ -2426,17 +2423,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d' + return "scatter3d" # Self properties description # --------------------------- @@ -2635,7 +2632,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -2655,60 +2652,59 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d import (line as v_line) + from plotly.validators.scatter3d import line as v_line # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_line.AutocolorscaleValidator() - self._validators['cauto'] = v_line.CautoValidator() - self._validators['cmax'] = v_line.CmaxValidator() - self._validators['cmid'] = v_line.CmidValidator() - self._validators['cmin'] = v_line.CminValidator() - self._validators['color'] = v_line.ColorValidator() - self._validators['coloraxis'] = v_line.ColoraxisValidator() - self._validators['colorbar'] = v_line.ColorBarValidator() - self._validators['colorscale'] = v_line.ColorscaleValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['dash'] = v_line.DashValidator() - self._validators['reversescale'] = v_line.ReversescaleValidator() - self._validators['showscale'] = v_line.ShowscaleValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["autocolorscale"] = v_line.AutocolorscaleValidator() + self._validators["cauto"] = v_line.CautoValidator() + self._validators["cmax"] = v_line.CmaxValidator() + self._validators["cmid"] = v_line.CmidValidator() + self._validators["cmin"] = v_line.CminValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["coloraxis"] = v_line.ColoraxisValidator() + self._validators["colorbar"] = v_line.ColorBarValidator() + self._validators["colorscale"] = v_line.ColorscaleValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["reversescale"] = v_line.ReversescaleValidator() + self._validators["showscale"] = v_line.ShowscaleValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -2743,11 +2739,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -2763,11 +2759,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -2823,11 +2819,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -2843,11 +2839,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -2903,11 +2899,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -2923,11 +2919,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -2978,11 +2974,11 @@ def font(self): ------- plotly.graph_objs.scatter3d.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -3005,11 +3001,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -3025,17 +3021,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d' + return "scatter3d" # Self properties description # --------------------------- @@ -3127,7 +3123,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -3147,48 +3143,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d import (hoverlabel as v_hoverlabel) + from plotly.validators.scatter3d import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -3220,11 +3212,11 @@ def array(self): ------- numpy.ndarray """ - return self['array'] + return self["array"] @array.setter def array(self, val): - self['array'] = val + self["array"] = val # arrayminus # ---------- @@ -3242,11 +3234,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self['arrayminus'] + return self["arrayminus"] @arrayminus.setter def arrayminus(self, val): - self['arrayminus'] = val + self["arrayminus"] = val # arrayminussrc # ------------- @@ -3262,11 +3254,11 @@ def arrayminussrc(self): ------- str """ - return self['arrayminussrc'] + return self["arrayminussrc"] @arrayminussrc.setter def arrayminussrc(self, val): - self['arrayminussrc'] = val + self["arrayminussrc"] = val # arraysrc # -------- @@ -3282,11 +3274,11 @@ def arraysrc(self): ------- str """ - return self['arraysrc'] + return self["arraysrc"] @arraysrc.setter def arraysrc(self, val): - self['arraysrc'] = val + self["arraysrc"] = val # color # ----- @@ -3341,11 +3333,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # symmetric # --------- @@ -3363,11 +3355,11 @@ def symmetric(self): ------- bool """ - return self['symmetric'] + return self["symmetric"] @symmetric.setter def symmetric(self, val): - self['symmetric'] = val + self["symmetric"] = val # thickness # --------- @@ -3383,11 +3375,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # traceref # -------- @@ -3402,11 +3394,11 @@ def traceref(self): ------- int """ - return self['traceref'] + return self["traceref"] @traceref.setter def traceref(self, val): - self['traceref'] = val + self["traceref"] = val # tracerefminus # ------------- @@ -3421,11 +3413,11 @@ def tracerefminus(self): ------- int """ - return self['tracerefminus'] + return self["tracerefminus"] @tracerefminus.setter def tracerefminus(self, val): - self['tracerefminus'] = val + self["tracerefminus"] = val # type # ---- @@ -3448,11 +3440,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # value # ----- @@ -3470,11 +3462,11 @@ def value(self): ------- int|float """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # valueminus # ---------- @@ -3493,11 +3485,11 @@ def valueminus(self): ------- int|float """ - return self['valueminus'] + return self["valueminus"] @valueminus.setter def valueminus(self, val): - self['valueminus'] = val + self["valueminus"] = val # visible # ------- @@ -3513,11 +3505,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -3534,17 +3526,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d' + return "scatter3d" # Self properties description # --------------------------- @@ -3687,7 +3679,7 @@ def __init__( ------- ErrorZ """ - super(ErrorZ, self).__init__('error_z') + super(ErrorZ, self).__init__("error_z") # Validate arg # ------------ @@ -3707,61 +3699,59 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d import (error_z as v_error_z) + from plotly.validators.scatter3d import error_z as v_error_z # Initialize validators # --------------------- - self._validators['array'] = v_error_z.ArrayValidator() - self._validators['arrayminus'] = v_error_z.ArrayminusValidator() - self._validators['arrayminussrc'] = v_error_z.ArrayminussrcValidator() - self._validators['arraysrc'] = v_error_z.ArraysrcValidator() - self._validators['color'] = v_error_z.ColorValidator() - self._validators['symmetric'] = v_error_z.SymmetricValidator() - self._validators['thickness'] = v_error_z.ThicknessValidator() - self._validators['traceref'] = v_error_z.TracerefValidator() - self._validators['tracerefminus'] = v_error_z.TracerefminusValidator() - self._validators['type'] = v_error_z.TypeValidator() - self._validators['value'] = v_error_z.ValueValidator() - self._validators['valueminus'] = v_error_z.ValueminusValidator() - self._validators['visible'] = v_error_z.VisibleValidator() - self._validators['width'] = v_error_z.WidthValidator() + self._validators["array"] = v_error_z.ArrayValidator() + self._validators["arrayminus"] = v_error_z.ArrayminusValidator() + self._validators["arrayminussrc"] = v_error_z.ArrayminussrcValidator() + self._validators["arraysrc"] = v_error_z.ArraysrcValidator() + self._validators["color"] = v_error_z.ColorValidator() + self._validators["symmetric"] = v_error_z.SymmetricValidator() + self._validators["thickness"] = v_error_z.ThicknessValidator() + self._validators["traceref"] = v_error_z.TracerefValidator() + self._validators["tracerefminus"] = v_error_z.TracerefminusValidator() + self._validators["type"] = v_error_z.TypeValidator() + self._validators["value"] = v_error_z.ValueValidator() + self._validators["valueminus"] = v_error_z.ValueminusValidator() + self._validators["visible"] = v_error_z.VisibleValidator() + self._validators["width"] = v_error_z.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('array', None) - self['array'] = array if array is not None else _v - _v = arg.pop('arrayminus', None) - self['arrayminus'] = arrayminus if arrayminus is not None else _v - _v = arg.pop('arrayminussrc', None) - self['arrayminussrc' - ] = arrayminussrc if arrayminussrc is not None else _v - _v = arg.pop('arraysrc', None) - self['arraysrc'] = arraysrc if arraysrc is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('symmetric', None) - self['symmetric'] = symmetric if symmetric is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('traceref', None) - self['traceref'] = traceref if traceref is not None else _v - _v = arg.pop('tracerefminus', None) - self['tracerefminus' - ] = tracerefminus if tracerefminus is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v - _v = arg.pop('valueminus', None) - self['valueminus'] = valueminus if valueminus is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("array", None) + self["array"] = array if array is not None else _v + _v = arg.pop("arrayminus", None) + self["arrayminus"] = arrayminus if arrayminus is not None else _v + _v = arg.pop("arrayminussrc", None) + self["arrayminussrc"] = arrayminussrc if arrayminussrc is not None else _v + _v = arg.pop("arraysrc", None) + self["arraysrc"] = arraysrc if arraysrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("symmetric", None) + self["symmetric"] = symmetric if symmetric is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("traceref", None) + self["traceref"] = traceref if traceref is not None else _v + _v = arg.pop("tracerefminus", None) + self["tracerefminus"] = tracerefminus if tracerefminus is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v + _v = arg.pop("valueminus", None) + self["valueminus"] = valueminus if valueminus is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -3793,11 +3783,11 @@ def array(self): ------- numpy.ndarray """ - return self['array'] + return self["array"] @array.setter def array(self, val): - self['array'] = val + self["array"] = val # arrayminus # ---------- @@ -3815,11 +3805,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self['arrayminus'] + return self["arrayminus"] @arrayminus.setter def arrayminus(self, val): - self['arrayminus'] = val + self["arrayminus"] = val # arrayminussrc # ------------- @@ -3835,11 +3825,11 @@ def arrayminussrc(self): ------- str """ - return self['arrayminussrc'] + return self["arrayminussrc"] @arrayminussrc.setter def arrayminussrc(self, val): - self['arrayminussrc'] = val + self["arrayminussrc"] = val # arraysrc # -------- @@ -3855,11 +3845,11 @@ def arraysrc(self): ------- str """ - return self['arraysrc'] + return self["arraysrc"] @arraysrc.setter def arraysrc(self, val): - self['arraysrc'] = val + self["arraysrc"] = val # color # ----- @@ -3914,11 +3904,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # copy_zstyle # ----------- @@ -3932,11 +3922,11 @@ def copy_zstyle(self): ------- bool """ - return self['copy_zstyle'] + return self["copy_zstyle"] @copy_zstyle.setter def copy_zstyle(self, val): - self['copy_zstyle'] = val + self["copy_zstyle"] = val # symmetric # --------- @@ -3954,11 +3944,11 @@ def symmetric(self): ------- bool """ - return self['symmetric'] + return self["symmetric"] @symmetric.setter def symmetric(self, val): - self['symmetric'] = val + self["symmetric"] = val # thickness # --------- @@ -3974,11 +3964,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # traceref # -------- @@ -3993,11 +3983,11 @@ def traceref(self): ------- int """ - return self['traceref'] + return self["traceref"] @traceref.setter def traceref(self, val): - self['traceref'] = val + self["traceref"] = val # tracerefminus # ------------- @@ -4012,11 +4002,11 @@ def tracerefminus(self): ------- int """ - return self['tracerefminus'] + return self["tracerefminus"] @tracerefminus.setter def tracerefminus(self, val): - self['tracerefminus'] = val + self["tracerefminus"] = val # type # ---- @@ -4039,11 +4029,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # value # ----- @@ -4061,11 +4051,11 @@ def value(self): ------- int|float """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # valueminus # ---------- @@ -4084,11 +4074,11 @@ def valueminus(self): ------- int|float """ - return self['valueminus'] + return self["valueminus"] @valueminus.setter def valueminus(self, val): - self['valueminus'] = val + self["valueminus"] = val # visible # ------- @@ -4104,11 +4094,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -4125,17 +4115,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d' + return "scatter3d" # Self properties description # --------------------------- @@ -4283,7 +4273,7 @@ def __init__( ------- ErrorY """ - super(ErrorY, self).__init__('error_y') + super(ErrorY, self).__init__("error_y") # Validate arg # ------------ @@ -4303,64 +4293,62 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d import (error_y as v_error_y) + from plotly.validators.scatter3d import error_y as v_error_y # Initialize validators # --------------------- - self._validators['array'] = v_error_y.ArrayValidator() - self._validators['arrayminus'] = v_error_y.ArrayminusValidator() - self._validators['arrayminussrc'] = v_error_y.ArrayminussrcValidator() - self._validators['arraysrc'] = v_error_y.ArraysrcValidator() - self._validators['color'] = v_error_y.ColorValidator() - self._validators['copy_zstyle'] = v_error_y.CopyZstyleValidator() - self._validators['symmetric'] = v_error_y.SymmetricValidator() - self._validators['thickness'] = v_error_y.ThicknessValidator() - self._validators['traceref'] = v_error_y.TracerefValidator() - self._validators['tracerefminus'] = v_error_y.TracerefminusValidator() - self._validators['type'] = v_error_y.TypeValidator() - self._validators['value'] = v_error_y.ValueValidator() - self._validators['valueminus'] = v_error_y.ValueminusValidator() - self._validators['visible'] = v_error_y.VisibleValidator() - self._validators['width'] = v_error_y.WidthValidator() + self._validators["array"] = v_error_y.ArrayValidator() + self._validators["arrayminus"] = v_error_y.ArrayminusValidator() + self._validators["arrayminussrc"] = v_error_y.ArrayminussrcValidator() + self._validators["arraysrc"] = v_error_y.ArraysrcValidator() + self._validators["color"] = v_error_y.ColorValidator() + self._validators["copy_zstyle"] = v_error_y.CopyZstyleValidator() + self._validators["symmetric"] = v_error_y.SymmetricValidator() + self._validators["thickness"] = v_error_y.ThicknessValidator() + self._validators["traceref"] = v_error_y.TracerefValidator() + self._validators["tracerefminus"] = v_error_y.TracerefminusValidator() + self._validators["type"] = v_error_y.TypeValidator() + self._validators["value"] = v_error_y.ValueValidator() + self._validators["valueminus"] = v_error_y.ValueminusValidator() + self._validators["visible"] = v_error_y.VisibleValidator() + self._validators["width"] = v_error_y.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('array', None) - self['array'] = array if array is not None else _v - _v = arg.pop('arrayminus', None) - self['arrayminus'] = arrayminus if arrayminus is not None else _v - _v = arg.pop('arrayminussrc', None) - self['arrayminussrc' - ] = arrayminussrc if arrayminussrc is not None else _v - _v = arg.pop('arraysrc', None) - self['arraysrc'] = arraysrc if arraysrc is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('copy_zstyle', None) - self['copy_zstyle'] = copy_zstyle if copy_zstyle is not None else _v - _v = arg.pop('symmetric', None) - self['symmetric'] = symmetric if symmetric is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('traceref', None) - self['traceref'] = traceref if traceref is not None else _v - _v = arg.pop('tracerefminus', None) - self['tracerefminus' - ] = tracerefminus if tracerefminus is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v - _v = arg.pop('valueminus', None) - self['valueminus'] = valueminus if valueminus is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("array", None) + self["array"] = array if array is not None else _v + _v = arg.pop("arrayminus", None) + self["arrayminus"] = arrayminus if arrayminus is not None else _v + _v = arg.pop("arrayminussrc", None) + self["arrayminussrc"] = arrayminussrc if arrayminussrc is not None else _v + _v = arg.pop("arraysrc", None) + self["arraysrc"] = arraysrc if arraysrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("copy_zstyle", None) + self["copy_zstyle"] = copy_zstyle if copy_zstyle is not None else _v + _v = arg.pop("symmetric", None) + self["symmetric"] = symmetric if symmetric is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("traceref", None) + self["traceref"] = traceref if traceref is not None else _v + _v = arg.pop("tracerefminus", None) + self["tracerefminus"] = tracerefminus if tracerefminus is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v + _v = arg.pop("valueminus", None) + self["valueminus"] = valueminus if valueminus is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -4392,11 +4380,11 @@ def array(self): ------- numpy.ndarray """ - return self['array'] + return self["array"] @array.setter def array(self, val): - self['array'] = val + self["array"] = val # arrayminus # ---------- @@ -4414,11 +4402,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self['arrayminus'] + return self["arrayminus"] @arrayminus.setter def arrayminus(self, val): - self['arrayminus'] = val + self["arrayminus"] = val # arrayminussrc # ------------- @@ -4434,11 +4422,11 @@ def arrayminussrc(self): ------- str """ - return self['arrayminussrc'] + return self["arrayminussrc"] @arrayminussrc.setter def arrayminussrc(self, val): - self['arrayminussrc'] = val + self["arrayminussrc"] = val # arraysrc # -------- @@ -4454,11 +4442,11 @@ def arraysrc(self): ------- str """ - return self['arraysrc'] + return self["arraysrc"] @arraysrc.setter def arraysrc(self, val): - self['arraysrc'] = val + self["arraysrc"] = val # color # ----- @@ -4513,11 +4501,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # copy_zstyle # ----------- @@ -4531,11 +4519,11 @@ def copy_zstyle(self): ------- bool """ - return self['copy_zstyle'] + return self["copy_zstyle"] @copy_zstyle.setter def copy_zstyle(self, val): - self['copy_zstyle'] = val + self["copy_zstyle"] = val # symmetric # --------- @@ -4553,11 +4541,11 @@ def symmetric(self): ------- bool """ - return self['symmetric'] + return self["symmetric"] @symmetric.setter def symmetric(self, val): - self['symmetric'] = val + self["symmetric"] = val # thickness # --------- @@ -4573,11 +4561,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # traceref # -------- @@ -4592,11 +4580,11 @@ def traceref(self): ------- int """ - return self['traceref'] + return self["traceref"] @traceref.setter def traceref(self, val): - self['traceref'] = val + self["traceref"] = val # tracerefminus # ------------- @@ -4611,11 +4599,11 @@ def tracerefminus(self): ------- int """ - return self['tracerefminus'] + return self["tracerefminus"] @tracerefminus.setter def tracerefminus(self, val): - self['tracerefminus'] = val + self["tracerefminus"] = val # type # ---- @@ -4638,11 +4626,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # value # ----- @@ -4660,11 +4648,11 @@ def value(self): ------- int|float """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # valueminus # ---------- @@ -4683,11 +4671,11 @@ def valueminus(self): ------- int|float """ - return self['valueminus'] + return self["valueminus"] @valueminus.setter def valueminus(self, val): - self['valueminus'] = val + self["valueminus"] = val # visible # ------- @@ -4703,11 +4691,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -4724,17 +4712,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d' + return "scatter3d" # Self properties description # --------------------------- @@ -4882,7 +4870,7 @@ def __init__( ------- ErrorX """ - super(ErrorX, self).__init__('error_x') + super(ErrorX, self).__init__("error_x") # Validate arg # ------------ @@ -4902,64 +4890,62 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d import (error_x as v_error_x) + from plotly.validators.scatter3d import error_x as v_error_x # Initialize validators # --------------------- - self._validators['array'] = v_error_x.ArrayValidator() - self._validators['arrayminus'] = v_error_x.ArrayminusValidator() - self._validators['arrayminussrc'] = v_error_x.ArrayminussrcValidator() - self._validators['arraysrc'] = v_error_x.ArraysrcValidator() - self._validators['color'] = v_error_x.ColorValidator() - self._validators['copy_zstyle'] = v_error_x.CopyZstyleValidator() - self._validators['symmetric'] = v_error_x.SymmetricValidator() - self._validators['thickness'] = v_error_x.ThicknessValidator() - self._validators['traceref'] = v_error_x.TracerefValidator() - self._validators['tracerefminus'] = v_error_x.TracerefminusValidator() - self._validators['type'] = v_error_x.TypeValidator() - self._validators['value'] = v_error_x.ValueValidator() - self._validators['valueminus'] = v_error_x.ValueminusValidator() - self._validators['visible'] = v_error_x.VisibleValidator() - self._validators['width'] = v_error_x.WidthValidator() + self._validators["array"] = v_error_x.ArrayValidator() + self._validators["arrayminus"] = v_error_x.ArrayminusValidator() + self._validators["arrayminussrc"] = v_error_x.ArrayminussrcValidator() + self._validators["arraysrc"] = v_error_x.ArraysrcValidator() + self._validators["color"] = v_error_x.ColorValidator() + self._validators["copy_zstyle"] = v_error_x.CopyZstyleValidator() + self._validators["symmetric"] = v_error_x.SymmetricValidator() + self._validators["thickness"] = v_error_x.ThicknessValidator() + self._validators["traceref"] = v_error_x.TracerefValidator() + self._validators["tracerefminus"] = v_error_x.TracerefminusValidator() + self._validators["type"] = v_error_x.TypeValidator() + self._validators["value"] = v_error_x.ValueValidator() + self._validators["valueminus"] = v_error_x.ValueminusValidator() + self._validators["visible"] = v_error_x.VisibleValidator() + self._validators["width"] = v_error_x.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('array', None) - self['array'] = array if array is not None else _v - _v = arg.pop('arrayminus', None) - self['arrayminus'] = arrayminus if arrayminus is not None else _v - _v = arg.pop('arrayminussrc', None) - self['arrayminussrc' - ] = arrayminussrc if arrayminussrc is not None else _v - _v = arg.pop('arraysrc', None) - self['arraysrc'] = arraysrc if arraysrc is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('copy_zstyle', None) - self['copy_zstyle'] = copy_zstyle if copy_zstyle is not None else _v - _v = arg.pop('symmetric', None) - self['symmetric'] = symmetric if symmetric is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('traceref', None) - self['traceref'] = traceref if traceref is not None else _v - _v = arg.pop('tracerefminus', None) - self['tracerefminus' - ] = tracerefminus if tracerefminus is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v - _v = arg.pop('valueminus', None) - self['valueminus'] = valueminus if valueminus is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("array", None) + self["array"] = array if array is not None else _v + _v = arg.pop("arrayminus", None) + self["arrayminus"] = arrayminus if arrayminus is not None else _v + _v = arg.pop("arrayminussrc", None) + self["arrayminussrc"] = arrayminussrc if arrayminussrc is not None else _v + _v = arg.pop("arraysrc", None) + self["arraysrc"] = arraysrc if arraysrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("copy_zstyle", None) + self["copy_zstyle"] = copy_zstyle if copy_zstyle is not None else _v + _v = arg.pop("symmetric", None) + self["symmetric"] = symmetric if symmetric is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("traceref", None) + self["traceref"] = traceref if traceref is not None else _v + _v = arg.pop("tracerefminus", None) + self["tracerefminus"] = tracerefminus if tracerefminus is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v + _v = arg.pop("valueminus", None) + self["valueminus"] = valueminus if valueminus is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/hoverlabel/__init__.py index ddcb9048106..516dc133099 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d.hoverlabel' + return "scatter3d.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d.hoverlabel import (font as v_font) + from plotly.validators.scatter3d.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/line/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/line/__init__.py index da910a1059a..689dd6619e5 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/line/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/line/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -118,11 +116,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -138,11 +136,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -176,11 +174,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -201,11 +199,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -223,11 +221,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -246,11 +244,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -270,11 +268,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -329,11 +327,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -349,11 +347,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -369,11 +367,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -393,11 +391,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -413,11 +411,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -437,11 +435,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -458,11 +456,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -479,11 +477,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -502,11 +500,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -529,11 +527,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -553,11 +551,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -612,11 +610,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -657,11 +655,11 @@ def tickfont(self): ------- plotly.graph_objs.scatter3d.line.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -686,11 +684,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -743,11 +741,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.scatter3d.line.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -771,11 +769,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.scatter3d.line.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -791,11 +789,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -818,11 +816,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -839,11 +837,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -862,11 +860,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -883,11 +881,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -905,11 +903,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -925,11 +923,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -946,11 +944,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -966,11 +964,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -986,11 +984,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1025,11 +1023,11 @@ def title(self): ------- plotly.graph_objs.scatter3d.line.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1073,11 +1071,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1097,11 +1095,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1117,11 +1115,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1140,11 +1138,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -1160,11 +1158,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -1180,11 +1178,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -1203,11 +1201,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -1223,17 +1221,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d.line' + return "scatter3d.line" # Self properties description # --------------------------- @@ -1428,8 +1426,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -1679,7 +1677,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -1699,164 +1697,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d.line import (colorbar as v_colorbar) + from plotly.validators.scatter3d.line import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/__init__.py index 68f48fbe9b6..f8550afa599 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.scatter3d.line.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d.line.colorbar' + return "scatter3d.line.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,28 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d.line.colorbar import ( - title as v_title - ) + from plotly.validators.scatter3d.line.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -231,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -252,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -279,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -307,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -329,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d.line.colorbar' + return "scatter3d.line.colorbar" # Self properties description # --------------------------- @@ -432,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -452,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.scatter3d.line.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -549,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -580,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -598,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d.line.colorbar' + return "scatter3d.line.colorbar" # Self properties description # --------------------------- @@ -670,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -690,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d.line.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.scatter3d.line.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/title/__init__.py index dd649669a6a..f950557122f 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/line/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d.line.colorbar.title' + return "scatter3d.line.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d.line.colorbar.title import ( - font as v_font - ) + from plotly.validators.scatter3d.line.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/__init__.py index 5a9d0d4eab5..cf81e1241d2 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -26,11 +24,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -51,11 +49,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -74,11 +72,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -99,11 +97,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -122,11 +120,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -187,11 +185,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -214,11 +212,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorscale # ---------- @@ -253,11 +251,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -273,11 +271,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # reversescale # ------------ @@ -297,11 +295,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # width # ----- @@ -317,17 +315,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d.marker' + return "scatter3d.marker" # Self properties description # --------------------------- @@ -515,7 +513,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -535,51 +533,50 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d.marker import (line as v_line) + from plotly.validators.scatter3d.marker import line as v_line # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_line.AutocolorscaleValidator() - self._validators['cauto'] = v_line.CautoValidator() - self._validators['cmax'] = v_line.CmaxValidator() - self._validators['cmid'] = v_line.CmidValidator() - self._validators['cmin'] = v_line.CminValidator() - self._validators['color'] = v_line.ColorValidator() - self._validators['coloraxis'] = v_line.ColoraxisValidator() - self._validators['colorscale'] = v_line.ColorscaleValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['reversescale'] = v_line.ReversescaleValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["autocolorscale"] = v_line.AutocolorscaleValidator() + self._validators["cauto"] = v_line.CautoValidator() + self._validators["cmax"] = v_line.CmaxValidator() + self._validators["cmid"] = v_line.CmidValidator() + self._validators["cmin"] = v_line.CminValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["coloraxis"] = v_line.ColoraxisValidator() + self._validators["colorscale"] = v_line.ColorscaleValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["reversescale"] = v_line.ReversescaleValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -649,11 +646,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -708,11 +705,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -728,11 +725,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -766,11 +763,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -791,11 +788,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -813,11 +810,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -836,11 +833,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -860,11 +857,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -919,11 +916,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -939,11 +936,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -959,11 +956,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -983,11 +980,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1003,11 +1000,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1027,11 +1024,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1048,11 +1045,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1069,11 +1066,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1092,11 +1089,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1119,11 +1116,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1143,11 +1140,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1202,11 +1199,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1247,11 +1244,11 @@ def tickfont(self): ------- plotly.graph_objs.scatter3d.marker.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1276,11 +1273,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1333,11 +1330,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.scatter3d.marker.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1361,11 +1358,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.scatter3d.marker.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1381,11 +1378,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1408,11 +1405,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1429,11 +1426,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1452,11 +1449,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1473,11 +1470,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1495,11 +1492,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1515,11 +1512,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1536,11 +1533,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1556,11 +1553,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1576,11 +1573,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1615,11 +1612,11 @@ def title(self): ------- plotly.graph_objs.scatter3d.marker.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1663,11 +1660,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1687,11 +1684,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1707,11 +1704,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1730,11 +1727,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -1750,11 +1747,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -1770,11 +1767,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -1793,11 +1790,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -1813,17 +1810,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d.marker' + return "scatter3d.marker" # Self properties description # --------------------------- @@ -2019,8 +2016,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2271,7 +2268,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2291,164 +2288,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d.marker import (colorbar as v_colorbar) + from plotly.validators.scatter3d.marker import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/__init__.py index 31f8ad27869..5b5b6f205d6 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.scatter3d.marker.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d.marker.colorbar' + return "scatter3d.marker.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,28 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d.marker.colorbar import ( - title as v_title - ) + from plotly.validators.scatter3d.marker.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -231,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -252,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -279,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -307,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -329,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d.marker.colorbar' + return "scatter3d.marker.colorbar" # Self properties description # --------------------------- @@ -432,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -452,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.scatter3d.marker.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -549,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -580,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -598,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d.marker.colorbar' + return "scatter3d.marker.colorbar" # Self properties description # --------------------------- @@ -670,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -690,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d.marker.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.scatter3d.marker.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/title/__init__.py index 72fb5ec4f57..0fdeb190196 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/marker/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d.marker.colorbar.title' + return "scatter3d.marker.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d.marker.colorbar.title import ( - font as v_font - ) + from plotly.validators.scatter3d.marker.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatter3d/projection/__init__.py b/packages/python/plotly/plotly/graph_objs/scatter3d/projection/__init__.py index 77326c76fdc..6994e93a1df 100644 --- a/packages/python/plotly/plotly/graph_objs/scatter3d/projection/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatter3d/projection/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -20,11 +18,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # scale # ----- @@ -41,11 +39,11 @@ def scale(self): ------- int|float """ - return self['scale'] + return self["scale"] @scale.setter def scale(self, val): - self['scale'] = val + self["scale"] = val # show # ---- @@ -61,17 +59,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d.projection' + return "scatter3d.projection" # Self properties description # --------------------------- @@ -88,9 +86,7 @@ def _prop_descriptions(self): axis. """ - def __init__( - self, arg=None, opacity=None, scale=None, show=None, **kwargs - ): + def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): """ Construct a new Z object @@ -112,7 +108,7 @@ def __init__( ------- Z """ - super(Z, self).__init__('z') + super(Z, self).__init__("z") # Validate arg # ------------ @@ -132,26 +128,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d.projection import (z as v_z) + from plotly.validators.scatter3d.projection import z as v_z # Initialize validators # --------------------- - self._validators['opacity'] = v_z.OpacityValidator() - self._validators['scale'] = v_z.ScaleValidator() - self._validators['show'] = v_z.ShowValidator() + self._validators["opacity"] = v_z.OpacityValidator() + self._validators["scale"] = v_z.ScaleValidator() + self._validators["show"] = v_z.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('scale', None) - self['scale'] = scale if scale is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("scale", None) + self["scale"] = scale if scale is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- @@ -182,11 +178,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # scale # ----- @@ -203,11 +199,11 @@ def scale(self): ------- int|float """ - return self['scale'] + return self["scale"] @scale.setter def scale(self, val): - self['scale'] = val + self["scale"] = val # show # ---- @@ -223,17 +219,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d.projection' + return "scatter3d.projection" # Self properties description # --------------------------- @@ -250,9 +246,7 @@ def _prop_descriptions(self): axis. """ - def __init__( - self, arg=None, opacity=None, scale=None, show=None, **kwargs - ): + def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): """ Construct a new Y object @@ -274,7 +268,7 @@ def __init__( ------- Y """ - super(Y, self).__init__('y') + super(Y, self).__init__("y") # Validate arg # ------------ @@ -294,26 +288,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d.projection import (y as v_y) + from plotly.validators.scatter3d.projection import y as v_y # Initialize validators # --------------------- - self._validators['opacity'] = v_y.OpacityValidator() - self._validators['scale'] = v_y.ScaleValidator() - self._validators['show'] = v_y.ShowValidator() + self._validators["opacity"] = v_y.OpacityValidator() + self._validators["scale"] = v_y.ScaleValidator() + self._validators["show"] = v_y.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('scale', None) - self['scale'] = scale if scale is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("scale", None) + self["scale"] = scale if scale is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- @@ -344,11 +338,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # scale # ----- @@ -365,11 +359,11 @@ def scale(self): ------- int|float """ - return self['scale'] + return self["scale"] @scale.setter def scale(self, val): - self['scale'] = val + self["scale"] = val # show # ---- @@ -385,17 +379,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatter3d.projection' + return "scatter3d.projection" # Self properties description # --------------------------- @@ -412,9 +406,7 @@ def _prop_descriptions(self): axis. """ - def __init__( - self, arg=None, opacity=None, scale=None, show=None, **kwargs - ): + def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): """ Construct a new X object @@ -436,7 +428,7 @@ def __init__( ------- X """ - super(X, self).__init__('x') + super(X, self).__init__("x") # Validate arg # ------------ @@ -456,26 +448,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatter3d.projection import (x as v_x) + from plotly.validators.scatter3d.projection import x as v_x # Initialize validators # --------------------- - self._validators['opacity'] = v_x.OpacityValidator() - self._validators['scale'] = v_x.ScaleValidator() - self._validators['show'] = v_x.ShowValidator() + self._validators["opacity"] = v_x.OpacityValidator() + self._validators["scale"] = v_x.ScaleValidator() + self._validators["show"] = v_x.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('scale', None) - self['scale'] = scale if scale is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("scale", None) + self["scale"] = scale if scale is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/__init__.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/__init__.py index 29b2c2794e6..c157e2f3b53 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -33,11 +31,11 @@ def marker(self): ------- plotly.graph_objs.scattercarpet.unselected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -60,17 +58,17 @@ def textfont(self): ------- plotly.graph_objs.scattercarpet.unselected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet' + return "scattercarpet" # Self properties description # --------------------------- @@ -106,7 +104,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__('unselected') + super(Unselected, self).__init__("unselected") # Validate arg # ------------ @@ -126,25 +124,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattercarpet import ( - unselected as v_unselected - ) + from plotly.validators.scattercarpet import unselected as v_unselected # Initialize validators # --------------------- - self._validators['marker'] = v_unselected.MarkerValidator() - self._validators['textfont'] = v_unselected.TextfontValidator() + self._validators["marker"] = v_unselected.MarkerValidator() + self._validators["textfont"] = v_unselected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -213,11 +209,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -233,11 +229,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -265,11 +261,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -285,11 +281,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -304,11 +300,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -324,17 +320,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet' + return "scattercarpet" # Self properties description # --------------------------- @@ -417,7 +413,7 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -437,35 +433,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattercarpet import (textfont as v_textfont) + from plotly.validators.scattercarpet import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() - self._validators['colorsrc'] = v_textfont.ColorsrcValidator() - self._validators['family'] = v_textfont.FamilyValidator() - self._validators['familysrc'] = v_textfont.FamilysrcValidator() - self._validators['size'] = v_textfont.SizeValidator() - self._validators['sizesrc'] = v_textfont.SizesrcValidator() + self._validators["color"] = v_textfont.ColorValidator() + self._validators["colorsrc"] = v_textfont.ColorsrcValidator() + self._validators["family"] = v_textfont.FamilyValidator() + self._validators["familysrc"] = v_textfont.FamilysrcValidator() + self._validators["size"] = v_textfont.SizeValidator() + self._validators["sizesrc"] = v_textfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -498,11 +494,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -519,17 +515,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet' + return "scattercarpet" # Self properties description # --------------------------- @@ -570,7 +566,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -590,23 +586,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattercarpet import (stream as v_stream) + from plotly.validators.scattercarpet import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -647,11 +643,11 @@ def marker(self): ------- plotly.graph_objs.scattercarpet.selected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -673,17 +669,17 @@ def textfont(self): ------- plotly.graph_objs.scattercarpet.selected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet' + return "scattercarpet" # Self properties description # --------------------------- @@ -718,7 +714,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__('selected') + super(Selected, self).__init__("selected") # Validate arg # ------------ @@ -738,23 +734,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattercarpet import (selected as v_selected) + from plotly.validators.scattercarpet import selected as v_selected # Initialize validators # --------------------- - self._validators['marker'] = v_selected.MarkerValidator() - self._validators['textfont'] = v_selected.TextfontValidator() + self._validators["marker"] = v_selected.MarkerValidator() + self._validators["textfont"] = v_selected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -791,11 +787,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -816,11 +812,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -839,11 +835,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -863,11 +859,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -886,11 +882,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -951,11 +947,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -978,11 +974,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -1213,11 +1209,11 @@ def colorbar(self): ------- plotly.graph_objs.scattercarpet.marker.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -1251,11 +1247,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -1271,11 +1267,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # gradient # -------- @@ -1308,11 +1304,11 @@ def gradient(self): ------- plotly.graph_objs.scattercarpet.marker.Gradient """ - return self['gradient'] + return self["gradient"] @gradient.setter def gradient(self, val): - self['gradient'] = val + self["gradient"] = val # line # ---- @@ -1420,11 +1416,11 @@ def line(self): ------- plotly.graph_objs.scattercarpet.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # maxdisplayed # ------------ @@ -1441,11 +1437,11 @@ def maxdisplayed(self): ------- int|float """ - return self['maxdisplayed'] + return self["maxdisplayed"] @maxdisplayed.setter def maxdisplayed(self, val): - self['maxdisplayed'] = val + self["maxdisplayed"] = val # opacity # ------- @@ -1462,11 +1458,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # opacitysrc # ---------- @@ -1482,11 +1478,11 @@ def opacitysrc(self): ------- str """ - return self['opacitysrc'] + return self["opacitysrc"] @opacitysrc.setter def opacitysrc(self, val): - self['opacitysrc'] = val + self["opacitysrc"] = val # reversescale # ------------ @@ -1505,11 +1501,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -1527,11 +1523,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # size # ---- @@ -1548,11 +1544,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizemin # ------- @@ -1570,11 +1566,11 @@ def sizemin(self): ------- int|float """ - return self['sizemin'] + return self["sizemin"] @sizemin.setter def sizemin(self, val): - self['sizemin'] = val + self["sizemin"] = val # sizemode # -------- @@ -1593,11 +1589,11 @@ def sizemode(self): ------- Any """ - return self['sizemode'] + return self["sizemode"] @sizemode.setter def sizemode(self, val): - self['sizemode'] = val + self["sizemode"] = val # sizeref # ------- @@ -1615,11 +1611,11 @@ def sizeref(self): ------- int|float """ - return self['sizeref'] + return self["sizeref"] @sizeref.setter def sizeref(self, val): - self['sizeref'] = val + self["sizeref"] = val # sizesrc # ------- @@ -1635,11 +1631,11 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # symbol # ------ @@ -1720,11 +1716,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self['symbol'] + return self["symbol"] @symbol.setter def symbol(self, val): - self['symbol'] = val + self["symbol"] = val # symbolsrc # --------- @@ -1740,17 +1736,17 @@ def symbolsrc(self): ------- str """ - return self['symbolsrc'] + return self["symbolsrc"] @symbolsrc.setter def symbolsrc(self, val): - self['symbolsrc'] = val + self["symbolsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet' + return "scattercarpet" # Self properties description # --------------------------- @@ -2027,7 +2023,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -2047,90 +2043,89 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattercarpet import (marker as v_marker) + from plotly.validators.scattercarpet import marker as v_marker # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_marker.AutocolorscaleValidator() - self._validators['cauto'] = v_marker.CautoValidator() - self._validators['cmax'] = v_marker.CmaxValidator() - self._validators['cmid'] = v_marker.CmidValidator() - self._validators['cmin'] = v_marker.CminValidator() - self._validators['color'] = v_marker.ColorValidator() - self._validators['coloraxis'] = v_marker.ColoraxisValidator() - self._validators['colorbar'] = v_marker.ColorBarValidator() - self._validators['colorscale'] = v_marker.ColorscaleValidator() - self._validators['colorsrc'] = v_marker.ColorsrcValidator() - self._validators['gradient'] = v_marker.GradientValidator() - self._validators['line'] = v_marker.LineValidator() - self._validators['maxdisplayed'] = v_marker.MaxdisplayedValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['opacitysrc'] = v_marker.OpacitysrcValidator() - self._validators['reversescale'] = v_marker.ReversescaleValidator() - self._validators['showscale'] = v_marker.ShowscaleValidator() - self._validators['size'] = v_marker.SizeValidator() - self._validators['sizemin'] = v_marker.SizeminValidator() - self._validators['sizemode'] = v_marker.SizemodeValidator() - self._validators['sizeref'] = v_marker.SizerefValidator() - self._validators['sizesrc'] = v_marker.SizesrcValidator() - self._validators['symbol'] = v_marker.SymbolValidator() - self._validators['symbolsrc'] = v_marker.SymbolsrcValidator() + self._validators["autocolorscale"] = v_marker.AutocolorscaleValidator() + self._validators["cauto"] = v_marker.CautoValidator() + self._validators["cmax"] = v_marker.CmaxValidator() + self._validators["cmid"] = v_marker.CmidValidator() + self._validators["cmin"] = v_marker.CminValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["coloraxis"] = v_marker.ColoraxisValidator() + self._validators["colorbar"] = v_marker.ColorBarValidator() + self._validators["colorscale"] = v_marker.ColorscaleValidator() + self._validators["colorsrc"] = v_marker.ColorsrcValidator() + self._validators["gradient"] = v_marker.GradientValidator() + self._validators["line"] = v_marker.LineValidator() + self._validators["maxdisplayed"] = v_marker.MaxdisplayedValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["opacitysrc"] = v_marker.OpacitysrcValidator() + self._validators["reversescale"] = v_marker.ReversescaleValidator() + self._validators["showscale"] = v_marker.ShowscaleValidator() + self._validators["size"] = v_marker.SizeValidator() + self._validators["sizemin"] = v_marker.SizeminValidator() + self._validators["sizemode"] = v_marker.SizemodeValidator() + self._validators["sizeref"] = v_marker.SizerefValidator() + self._validators["sizesrc"] = v_marker.SizesrcValidator() + self._validators["symbol"] = v_marker.SymbolValidator() + self._validators["symbolsrc"] = v_marker.SymbolsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('gradient', None) - self['gradient'] = gradient if gradient is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('maxdisplayed', None) - self['maxdisplayed'] = maxdisplayed if maxdisplayed is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('opacitysrc', None) - self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizemin', None) - self['sizemin'] = sizemin if sizemin is not None else _v - _v = arg.pop('sizemode', None) - self['sizemode'] = sizemode if sizemode is not None else _v - _v = arg.pop('sizeref', None) - self['sizeref'] = sizeref if sizeref is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v - _v = arg.pop('symbol', None) - self['symbol'] = symbol if symbol is not None else _v - _v = arg.pop('symbolsrc', None) - self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("gradient", None) + self["gradient"] = gradient if gradient is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("maxdisplayed", None) + self["maxdisplayed"] = maxdisplayed if maxdisplayed is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("opacitysrc", None) + self["opacitysrc"] = opacitysrc if opacitysrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizemin", None) + self["sizemin"] = sizemin if sizemin is not None else _v + _v = arg.pop("sizemode", None) + self["sizemode"] = sizemode if sizemode is not None else _v + _v = arg.pop("sizeref", None) + self["sizeref"] = sizeref if sizeref is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v + _v = arg.pop("symbol", None) + self["symbol"] = symbol if symbol is not None else _v + _v = arg.pop("symbolsrc", None) + self["symbolsrc"] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -2200,11 +2195,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dash # ---- @@ -2226,11 +2221,11 @@ def dash(self): ------- str """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # shape # ----- @@ -2249,11 +2244,11 @@ def shape(self): ------- Any """ - return self['shape'] + return self["shape"] @shape.setter def shape(self, val): - self['shape'] = val + self["shape"] = val # smoothing # --------- @@ -2271,11 +2266,11 @@ def smoothing(self): ------- int|float """ - return self['smoothing'] + return self["smoothing"] @smoothing.setter def smoothing(self, val): - self['smoothing'] = val + self["smoothing"] = val # width # ----- @@ -2291,17 +2286,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet' + return "scattercarpet" # Self properties description # --------------------------- @@ -2367,7 +2362,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -2387,32 +2382,32 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattercarpet import (line as v_line) + from plotly.validators.scattercarpet import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['dash'] = v_line.DashValidator() - self._validators['shape'] = v_line.ShapeValidator() - self._validators['smoothing'] = v_line.SmoothingValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["shape"] = v_line.ShapeValidator() + self._validators["smoothing"] = v_line.SmoothingValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('shape', None) - self['shape'] = shape if shape is not None else _v - _v = arg.pop('smoothing', None) - self['smoothing'] = smoothing if smoothing is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("shape", None) + self["shape"] = shape if shape is not None else _v + _v = arg.pop("smoothing", None) + self["smoothing"] = smoothing if smoothing is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -2447,11 +2442,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -2467,11 +2462,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -2527,11 +2522,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -2547,11 +2542,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -2607,11 +2602,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -2627,11 +2622,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -2682,11 +2677,11 @@ def font(self): ------- plotly.graph_objs.scattercarpet.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -2709,11 +2704,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -2729,17 +2724,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet' + return "scattercarpet" # Self properties description # --------------------------- @@ -2832,7 +2827,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -2852,50 +2847,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattercarpet import ( - hoverlabel as v_hoverlabel - ) + from plotly.validators.scattercarpet import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/hoverlabel/__init__.py index fea081575bb..a84875039a3 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet.hoverlabel' + return "scattercarpet.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattercarpet.hoverlabel import (font as v_font) + from plotly.validators.scattercarpet.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/__init__.py index 8e935b41bcf..fd4a0a8f7a8 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -26,11 +24,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -51,11 +49,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -74,11 +72,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -99,11 +97,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -122,11 +120,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -187,11 +185,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -214,11 +212,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorscale # ---------- @@ -253,11 +251,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -273,11 +271,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # reversescale # ------------ @@ -297,11 +295,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # width # ----- @@ -318,11 +316,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -338,17 +336,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet.marker' + return "scattercarpet.marker" # Self properties description # --------------------------- @@ -542,7 +540,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -562,54 +560,53 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattercarpet.marker import (line as v_line) + from plotly.validators.scattercarpet.marker import line as v_line # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_line.AutocolorscaleValidator() - self._validators['cauto'] = v_line.CautoValidator() - self._validators['cmax'] = v_line.CmaxValidator() - self._validators['cmid'] = v_line.CmidValidator() - self._validators['cmin'] = v_line.CminValidator() - self._validators['color'] = v_line.ColorValidator() - self._validators['coloraxis'] = v_line.ColoraxisValidator() - self._validators['colorscale'] = v_line.ColorscaleValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['reversescale'] = v_line.ReversescaleValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["autocolorscale"] = v_line.AutocolorscaleValidator() + self._validators["cauto"] = v_line.CautoValidator() + self._validators["cmax"] = v_line.CmaxValidator() + self._validators["cmid"] = v_line.CmidValidator() + self._validators["cmin"] = v_line.CminValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["coloraxis"] = v_line.ColoraxisValidator() + self._validators["colorscale"] = v_line.ColorscaleValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["reversescale"] = v_line.ReversescaleValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -681,11 +678,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -701,11 +698,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # type # ---- @@ -723,11 +720,11 @@ def type(self): ------- Any|numpy.ndarray """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # typesrc # ------- @@ -743,17 +740,17 @@ def typesrc(self): ------- str """ - return self['typesrc'] + return self["typesrc"] @typesrc.setter def typesrc(self, val): - self['typesrc'] = val + self["typesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet.marker' + return "scattercarpet.marker" # Self properties description # --------------------------- @@ -773,13 +770,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - colorsrc=None, - type=None, - typesrc=None, - **kwargs + self, arg=None, color=None, colorsrc=None, type=None, typesrc=None, **kwargs ): """ Construct a new Gradient object @@ -805,7 +796,7 @@ def __init__( ------- Gradient """ - super(Gradient, self).__init__('gradient') + super(Gradient, self).__init__("gradient") # Validate arg # ------------ @@ -825,31 +816,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattercarpet.marker import ( - gradient as v_gradient - ) + from plotly.validators.scattercarpet.marker import gradient as v_gradient # Initialize validators # --------------------- - self._validators['color'] = v_gradient.ColorValidator() - self._validators['colorsrc'] = v_gradient.ColorsrcValidator() - self._validators['type'] = v_gradient.TypeValidator() - self._validators['typesrc'] = v_gradient.TypesrcValidator() + self._validators["color"] = v_gradient.ColorValidator() + self._validators["colorsrc"] = v_gradient.ColorsrcValidator() + self._validators["type"] = v_gradient.TypeValidator() + self._validators["typesrc"] = v_gradient.TypesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('typesrc', None) - self['typesrc'] = typesrc if typesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("typesrc", None) + self["typesrc"] = typesrc if typesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -919,11 +908,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -978,11 +967,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -998,11 +987,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -1036,11 +1025,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -1061,11 +1050,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -1083,11 +1072,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -1106,11 +1095,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -1130,11 +1119,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -1189,11 +1178,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -1209,11 +1198,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -1229,11 +1218,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1253,11 +1242,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1273,11 +1262,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1297,11 +1286,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1318,11 +1307,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1339,11 +1328,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1362,11 +1351,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1389,11 +1378,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1413,11 +1402,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1472,11 +1461,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1517,11 +1506,11 @@ def tickfont(self): ------- plotly.graph_objs.scattercarpet.marker.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1546,11 +1535,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1603,11 +1592,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.scattercarpet.marker.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1631,11 +1620,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.scattercarpet.marker.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1651,11 +1640,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1678,11 +1667,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1699,11 +1688,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1722,11 +1711,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1743,11 +1732,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1765,11 +1754,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1785,11 +1774,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1806,11 +1795,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1826,11 +1815,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1846,11 +1835,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1885,11 +1874,11 @@ def title(self): ------- plotly.graph_objs.scattercarpet.marker.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1933,11 +1922,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1957,11 +1946,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1977,11 +1966,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -2000,11 +1989,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -2020,11 +2009,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -2040,11 +2029,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -2063,11 +2052,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -2083,17 +2072,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet.marker' + return "scattercarpet.marker" # Self properties description # --------------------------- @@ -2290,8 +2279,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2543,7 +2532,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2563,166 +2552,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattercarpet.marker import ( - colorbar as v_colorbar - ) + from plotly.validators.scattercarpet.marker import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/__init__.py index 26847cac4a4..e967cad2d7b 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.scattercarpet.marker.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet.marker.colorbar' + return "scattercarpet.marker.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,28 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattercarpet.marker.colorbar import ( - title as v_title - ) + from plotly.validators.scattercarpet.marker.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -231,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -252,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -279,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -307,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -329,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet.marker.colorbar' + return "scattercarpet.marker.colorbar" # Self properties description # --------------------------- @@ -432,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -452,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.scattercarpet.marker.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -549,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -580,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -598,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet.marker.colorbar' + return "scattercarpet.marker.colorbar" # Self properties description # --------------------------- @@ -670,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -690,28 +688,28 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.scattercarpet.marker.colorbar import ( - tickfont as v_tickfont + tickfont as v_tickfont, ) # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/title/__init__.py index a75b3134863..d007e4b2d70 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/marker/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet.marker.colorbar.title' + return "scattercarpet.marker.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattercarpet.marker.colorbar.title import ( - font as v_font - ) + from plotly.validators.scattercarpet.marker.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/selected/__init__.py index 40105acc077..243b3c6e4bf 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/selected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,17 +57,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet.selected' + return "scattercarpet.selected" # Self properties description # --------------------------- @@ -97,7 +95,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -117,22 +115,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattercarpet.selected import ( - textfont as v_textfont - ) + from plotly.validators.scattercarpet.selected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -202,11 +198,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -222,11 +218,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -242,17 +238,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet.selected' + return "scattercarpet.selected" # Self properties description # --------------------------- @@ -267,9 +263,7 @@ def _prop_descriptions(self): Sets the marker size of selected points. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -290,7 +284,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -310,28 +304,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattercarpet.selected import ( - marker as v_marker - ) + from plotly.validators.scattercarpet.selected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattercarpet/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattercarpet/unselected/__init__.py index 0ae41d229ff..50b89067688 100644 --- a/packages/python/plotly/plotly/graph_objs/scattercarpet/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattercarpet/unselected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,17 +58,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet.unselected' + return "scattercarpet.unselected" # Self properties description # --------------------------- @@ -100,7 +98,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -120,22 +118,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattercarpet.unselected import ( - textfont as v_textfont - ) + from plotly.validators.scattercarpet.unselected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -206,11 +202,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -227,11 +223,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -248,17 +244,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattercarpet.unselected' + return "scattercarpet.unselected" # Self properties description # --------------------------- @@ -276,9 +272,7 @@ def _prop_descriptions(self): when a selection exists. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -302,7 +296,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -322,28 +316,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattercarpet.unselected import ( - marker as v_marker - ) + from plotly.validators.scattercarpet.unselected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergeo/__init__.py index 790ab8f4019..fac0b34b3c0 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -33,11 +31,11 @@ def marker(self): ------- plotly.graph_objs.scattergeo.unselected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -60,17 +58,17 @@ def textfont(self): ------- plotly.graph_objs.scattergeo.unselected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo' + return "scattergeo" # Self properties description # --------------------------- @@ -105,7 +103,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__('unselected') + super(Unselected, self).__init__("unselected") # Validate arg # ------------ @@ -125,23 +123,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo import (unselected as v_unselected) + from plotly.validators.scattergeo import unselected as v_unselected # Initialize validators # --------------------- - self._validators['marker'] = v_unselected.MarkerValidator() - self._validators['textfont'] = v_unselected.TextfontValidator() + self._validators["marker"] = v_unselected.MarkerValidator() + self._validators["textfont"] = v_unselected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -210,11 +208,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -230,11 +228,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -262,11 +260,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -282,11 +280,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -301,11 +299,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -321,17 +319,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo' + return "scattergeo" # Self properties description # --------------------------- @@ -414,7 +412,7 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -434,35 +432,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo import (textfont as v_textfont) + from plotly.validators.scattergeo import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() - self._validators['colorsrc'] = v_textfont.ColorsrcValidator() - self._validators['family'] = v_textfont.FamilyValidator() - self._validators['familysrc'] = v_textfont.FamilysrcValidator() - self._validators['size'] = v_textfont.SizeValidator() - self._validators['sizesrc'] = v_textfont.SizesrcValidator() + self._validators["color"] = v_textfont.ColorValidator() + self._validators["colorsrc"] = v_textfont.ColorsrcValidator() + self._validators["family"] = v_textfont.FamilyValidator() + self._validators["familysrc"] = v_textfont.FamilysrcValidator() + self._validators["size"] = v_textfont.SizeValidator() + self._validators["sizesrc"] = v_textfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -495,11 +493,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -516,17 +514,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo' + return "scattergeo" # Self properties description # --------------------------- @@ -567,7 +565,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -587,23 +585,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo import (stream as v_stream) + from plotly.validators.scattergeo import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -644,11 +642,11 @@ def marker(self): ------- plotly.graph_objs.scattergeo.selected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -670,17 +668,17 @@ def textfont(self): ------- plotly.graph_objs.scattergeo.selected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo' + return "scattergeo" # Self properties description # --------------------------- @@ -715,7 +713,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__('selected') + super(Selected, self).__init__("selected") # Validate arg # ------------ @@ -735,23 +733,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo import (selected as v_selected) + from plotly.validators.scattergeo import selected as v_selected # Initialize validators # --------------------- - self._validators['marker'] = v_selected.MarkerValidator() - self._validators['textfont'] = v_selected.TextfontValidator() + self._validators["marker"] = v_selected.MarkerValidator() + self._validators["textfont"] = v_selected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -788,11 +786,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -813,11 +811,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -836,11 +834,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -860,11 +858,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -883,11 +881,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -948,11 +946,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -975,11 +973,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -1209,11 +1207,11 @@ def colorbar(self): ------- plotly.graph_objs.scattergeo.marker.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -1247,11 +1245,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -1267,11 +1265,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # gradient # -------- @@ -1304,11 +1302,11 @@ def gradient(self): ------- plotly.graph_objs.scattergeo.marker.Gradient """ - return self['gradient'] + return self["gradient"] @gradient.setter def gradient(self, val): - self['gradient'] = val + self["gradient"] = val # line # ---- @@ -1416,11 +1414,11 @@ def line(self): ------- plotly.graph_objs.scattergeo.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # opacity # ------- @@ -1437,11 +1435,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # opacitysrc # ---------- @@ -1457,11 +1455,11 @@ def opacitysrc(self): ------- str """ - return self['opacitysrc'] + return self["opacitysrc"] @opacitysrc.setter def opacitysrc(self, val): - self['opacitysrc'] = val + self["opacitysrc"] = val # reversescale # ------------ @@ -1480,11 +1478,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -1502,11 +1500,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # size # ---- @@ -1523,11 +1521,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizemin # ------- @@ -1545,11 +1543,11 @@ def sizemin(self): ------- int|float """ - return self['sizemin'] + return self["sizemin"] @sizemin.setter def sizemin(self, val): - self['sizemin'] = val + self["sizemin"] = val # sizemode # -------- @@ -1568,11 +1566,11 @@ def sizemode(self): ------- Any """ - return self['sizemode'] + return self["sizemode"] @sizemode.setter def sizemode(self, val): - self['sizemode'] = val + self["sizemode"] = val # sizeref # ------- @@ -1590,11 +1588,11 @@ def sizeref(self): ------- int|float """ - return self['sizeref'] + return self["sizeref"] @sizeref.setter def sizeref(self, val): - self['sizeref'] = val + self["sizeref"] = val # sizesrc # ------- @@ -1610,11 +1608,11 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # symbol # ------ @@ -1695,11 +1693,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self['symbol'] + return self["symbol"] @symbol.setter def symbol(self, val): - self['symbol'] = val + self["symbol"] = val # symbolsrc # --------- @@ -1715,17 +1713,17 @@ def symbolsrc(self): ------- str """ - return self['symbolsrc'] + return self["symbolsrc"] @symbolsrc.setter def symbolsrc(self, val): - self['symbolsrc'] = val + self["symbolsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo' + return "scattergeo" # Self properties description # --------------------------- @@ -1995,7 +1993,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -2015,87 +2013,86 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo import (marker as v_marker) + from plotly.validators.scattergeo import marker as v_marker # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_marker.AutocolorscaleValidator() - self._validators['cauto'] = v_marker.CautoValidator() - self._validators['cmax'] = v_marker.CmaxValidator() - self._validators['cmid'] = v_marker.CmidValidator() - self._validators['cmin'] = v_marker.CminValidator() - self._validators['color'] = v_marker.ColorValidator() - self._validators['coloraxis'] = v_marker.ColoraxisValidator() - self._validators['colorbar'] = v_marker.ColorBarValidator() - self._validators['colorscale'] = v_marker.ColorscaleValidator() - self._validators['colorsrc'] = v_marker.ColorsrcValidator() - self._validators['gradient'] = v_marker.GradientValidator() - self._validators['line'] = v_marker.LineValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['opacitysrc'] = v_marker.OpacitysrcValidator() - self._validators['reversescale'] = v_marker.ReversescaleValidator() - self._validators['showscale'] = v_marker.ShowscaleValidator() - self._validators['size'] = v_marker.SizeValidator() - self._validators['sizemin'] = v_marker.SizeminValidator() - self._validators['sizemode'] = v_marker.SizemodeValidator() - self._validators['sizeref'] = v_marker.SizerefValidator() - self._validators['sizesrc'] = v_marker.SizesrcValidator() - self._validators['symbol'] = v_marker.SymbolValidator() - self._validators['symbolsrc'] = v_marker.SymbolsrcValidator() + self._validators["autocolorscale"] = v_marker.AutocolorscaleValidator() + self._validators["cauto"] = v_marker.CautoValidator() + self._validators["cmax"] = v_marker.CmaxValidator() + self._validators["cmid"] = v_marker.CmidValidator() + self._validators["cmin"] = v_marker.CminValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["coloraxis"] = v_marker.ColoraxisValidator() + self._validators["colorbar"] = v_marker.ColorBarValidator() + self._validators["colorscale"] = v_marker.ColorscaleValidator() + self._validators["colorsrc"] = v_marker.ColorsrcValidator() + self._validators["gradient"] = v_marker.GradientValidator() + self._validators["line"] = v_marker.LineValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["opacitysrc"] = v_marker.OpacitysrcValidator() + self._validators["reversescale"] = v_marker.ReversescaleValidator() + self._validators["showscale"] = v_marker.ShowscaleValidator() + self._validators["size"] = v_marker.SizeValidator() + self._validators["sizemin"] = v_marker.SizeminValidator() + self._validators["sizemode"] = v_marker.SizemodeValidator() + self._validators["sizeref"] = v_marker.SizerefValidator() + self._validators["sizesrc"] = v_marker.SizesrcValidator() + self._validators["symbol"] = v_marker.SymbolValidator() + self._validators["symbolsrc"] = v_marker.SymbolsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('gradient', None) - self['gradient'] = gradient if gradient is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('opacitysrc', None) - self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizemin', None) - self['sizemin'] = sizemin if sizemin is not None else _v - _v = arg.pop('sizemode', None) - self['sizemode'] = sizemode if sizemode is not None else _v - _v = arg.pop('sizeref', None) - self['sizeref'] = sizeref if sizeref is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v - _v = arg.pop('symbol', None) - self['symbol'] = symbol if symbol is not None else _v - _v = arg.pop('symbolsrc', None) - self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("gradient", None) + self["gradient"] = gradient if gradient is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("opacitysrc", None) + self["opacitysrc"] = opacitysrc if opacitysrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizemin", None) + self["sizemin"] = sizemin if sizemin is not None else _v + _v = arg.pop("sizemode", None) + self["sizemode"] = sizemode if sizemode is not None else _v + _v = arg.pop("sizeref", None) + self["sizeref"] = sizeref if sizeref is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v + _v = arg.pop("symbol", None) + self["symbol"] = symbol if symbol is not None else _v + _v = arg.pop("symbolsrc", None) + self["symbolsrc"] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -2165,11 +2162,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dash # ---- @@ -2191,11 +2188,11 @@ def dash(self): ------- str """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # width # ----- @@ -2211,17 +2208,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo' + return "scattergeo" # Self properties description # --------------------------- @@ -2262,7 +2259,7 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -2282,26 +2279,26 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo import (line as v_line) + from plotly.validators.scattergeo import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['dash'] = v_line.DashValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -2336,11 +2333,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -2356,11 +2353,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -2416,11 +2413,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -2436,11 +2433,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -2496,11 +2493,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -2516,11 +2513,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -2571,11 +2568,11 @@ def font(self): ------- plotly.graph_objs.scattergeo.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -2598,11 +2595,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -2618,17 +2615,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo' + return "scattergeo" # Self properties description # --------------------------- @@ -2720,7 +2717,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -2740,48 +2737,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo import (hoverlabel as v_hoverlabel) + from plotly.validators.scattergeo import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergeo/hoverlabel/__init__.py index bdee1364e74..6bd14752de9 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo.hoverlabel' + return "scattergeo.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo.hoverlabel import (font as v_font) + from plotly.validators.scattergeo.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/__init__.py index 3b8d766cf6d..2f8fcf740db 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -26,11 +24,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -51,11 +49,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -74,11 +72,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -99,11 +97,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -122,11 +120,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -187,11 +185,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -214,11 +212,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorscale # ---------- @@ -253,11 +251,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -273,11 +271,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # reversescale # ------------ @@ -297,11 +295,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # width # ----- @@ -318,11 +316,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -338,17 +336,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo.marker' + return "scattergeo.marker" # Self properties description # --------------------------- @@ -541,7 +539,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -561,54 +559,53 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo.marker import (line as v_line) + from plotly.validators.scattergeo.marker import line as v_line # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_line.AutocolorscaleValidator() - self._validators['cauto'] = v_line.CautoValidator() - self._validators['cmax'] = v_line.CmaxValidator() - self._validators['cmid'] = v_line.CmidValidator() - self._validators['cmin'] = v_line.CminValidator() - self._validators['color'] = v_line.ColorValidator() - self._validators['coloraxis'] = v_line.ColoraxisValidator() - self._validators['colorscale'] = v_line.ColorscaleValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['reversescale'] = v_line.ReversescaleValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["autocolorscale"] = v_line.AutocolorscaleValidator() + self._validators["cauto"] = v_line.CautoValidator() + self._validators["cmax"] = v_line.CmaxValidator() + self._validators["cmid"] = v_line.CmidValidator() + self._validators["cmin"] = v_line.CminValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["coloraxis"] = v_line.ColoraxisValidator() + self._validators["colorscale"] = v_line.ColorscaleValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["reversescale"] = v_line.ReversescaleValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -680,11 +677,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -700,11 +697,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # type # ---- @@ -722,11 +719,11 @@ def type(self): ------- Any|numpy.ndarray """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # typesrc # ------- @@ -742,17 +739,17 @@ def typesrc(self): ------- str """ - return self['typesrc'] + return self["typesrc"] @typesrc.setter def typesrc(self, val): - self['typesrc'] = val + self["typesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo.marker' + return "scattergeo.marker" # Self properties description # --------------------------- @@ -772,13 +769,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - colorsrc=None, - type=None, - typesrc=None, - **kwargs + self, arg=None, color=None, colorsrc=None, type=None, typesrc=None, **kwargs ): """ Construct a new Gradient object @@ -804,7 +795,7 @@ def __init__( ------- Gradient """ - super(Gradient, self).__init__('gradient') + super(Gradient, self).__init__("gradient") # Validate arg # ------------ @@ -824,31 +815,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo.marker import ( - gradient as v_gradient - ) + from plotly.validators.scattergeo.marker import gradient as v_gradient # Initialize validators # --------------------- - self._validators['color'] = v_gradient.ColorValidator() - self._validators['colorsrc'] = v_gradient.ColorsrcValidator() - self._validators['type'] = v_gradient.TypeValidator() - self._validators['typesrc'] = v_gradient.TypesrcValidator() + self._validators["color"] = v_gradient.ColorValidator() + self._validators["colorsrc"] = v_gradient.ColorsrcValidator() + self._validators["type"] = v_gradient.TypeValidator() + self._validators["typesrc"] = v_gradient.TypesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('typesrc', None) - self['typesrc'] = typesrc if typesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("typesrc", None) + self["typesrc"] = typesrc if typesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -918,11 +907,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -977,11 +966,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -997,11 +986,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -1035,11 +1024,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -1060,11 +1049,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -1082,11 +1071,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -1105,11 +1094,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -1129,11 +1118,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -1188,11 +1177,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -1208,11 +1197,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -1228,11 +1217,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1252,11 +1241,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1272,11 +1261,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1296,11 +1285,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1317,11 +1306,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1338,11 +1327,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1361,11 +1350,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1388,11 +1377,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1412,11 +1401,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1471,11 +1460,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1516,11 +1505,11 @@ def tickfont(self): ------- plotly.graph_objs.scattergeo.marker.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1545,11 +1534,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1602,11 +1591,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.scattergeo.marker.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1630,11 +1619,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.scattergeo.marker.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1650,11 +1639,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1677,11 +1666,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1698,11 +1687,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1721,11 +1710,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1742,11 +1731,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1764,11 +1753,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1784,11 +1773,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1805,11 +1794,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1825,11 +1814,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1845,11 +1834,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1884,11 +1873,11 @@ def title(self): ------- plotly.graph_objs.scattergeo.marker.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1932,11 +1921,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1956,11 +1945,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1976,11 +1965,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1999,11 +1988,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -2019,11 +2008,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -2039,11 +2028,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -2062,11 +2051,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -2082,17 +2071,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo.marker' + return "scattergeo.marker" # Self properties description # --------------------------- @@ -2289,8 +2278,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2542,7 +2531,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2562,166 +2551,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo.marker import ( - colorbar as v_colorbar - ) + from plotly.validators.scattergeo.marker import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/__init__.py index 2a82db48415..488fa3404f6 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.scattergeo.marker.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo.marker.colorbar' + return "scattergeo.marker.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,28 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo.marker.colorbar import ( - title as v_title - ) + from plotly.validators.scattergeo.marker.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -231,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -252,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -279,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -307,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -329,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo.marker.colorbar' + return "scattergeo.marker.colorbar" # Self properties description # --------------------------- @@ -432,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -452,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.scattergeo.marker.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -549,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -580,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -598,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo.marker.colorbar' + return "scattergeo.marker.colorbar" # Self properties description # --------------------------- @@ -670,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -690,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo.marker.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.scattergeo.marker.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/title/__init__.py index 78c3919bdd8..e3a72880d40 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/marker/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo.marker.colorbar.title' + return "scattergeo.marker.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo.marker.colorbar.title import ( - font as v_font - ) + from plotly.validators.scattergeo.marker.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergeo/selected/__init__.py index be6eeaee637..e1a54a75794 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/selected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,17 +57,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo.selected' + return "scattergeo.selected" # Self properties description # --------------------------- @@ -97,7 +95,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -117,22 +115,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo.selected import ( - textfont as v_textfont - ) + from plotly.validators.scattergeo.selected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -202,11 +198,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -222,11 +218,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -242,17 +238,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo.selected' + return "scattergeo.selected" # Self properties description # --------------------------- @@ -267,9 +263,7 @@ def _prop_descriptions(self): Sets the marker size of selected points. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -290,7 +284,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -310,26 +304,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo.selected import (marker as v_marker) + from plotly.validators.scattergeo.selected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergeo/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergeo/unselected/__init__.py index a2ad9f660e4..a875258d7f4 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergeo/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergeo/unselected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,17 +58,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo.unselected' + return "scattergeo.unselected" # Self properties description # --------------------------- @@ -100,7 +98,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -120,22 +118,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo.unselected import ( - textfont as v_textfont - ) + from plotly.validators.scattergeo.unselected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -206,11 +202,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -227,11 +223,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -248,17 +244,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergeo.unselected' + return "scattergeo.unselected" # Self properties description # --------------------------- @@ -276,9 +272,7 @@ def _prop_descriptions(self): when a selection exists. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -302,7 +296,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -322,28 +316,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergeo.unselected import ( - marker as v_marker - ) + from plotly.validators.scattergeo.unselected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergl/__init__.py index 8d6ff9a5378..51c1f15981b 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -33,11 +31,11 @@ def marker(self): ------- plotly.graph_objs.scattergl.unselected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -60,17 +58,17 @@ def textfont(self): ------- plotly.graph_objs.scattergl.unselected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl' + return "scattergl" # Self properties description # --------------------------- @@ -105,7 +103,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__('unselected') + super(Unselected, self).__init__("unselected") # Validate arg # ------------ @@ -125,23 +123,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl import (unselected as v_unselected) + from plotly.validators.scattergl import unselected as v_unselected # Initialize validators # --------------------- - self._validators['marker'] = v_unselected.MarkerValidator() - self._validators['textfont'] = v_unselected.TextfontValidator() + self._validators["marker"] = v_unselected.MarkerValidator() + self._validators["textfont"] = v_unselected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -210,11 +208,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -230,11 +228,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -262,11 +260,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -282,11 +280,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -301,11 +299,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -321,17 +319,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl' + return "scattergl" # Self properties description # --------------------------- @@ -414,7 +412,7 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -434,35 +432,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl import (textfont as v_textfont) + from plotly.validators.scattergl import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() - self._validators['colorsrc'] = v_textfont.ColorsrcValidator() - self._validators['family'] = v_textfont.FamilyValidator() - self._validators['familysrc'] = v_textfont.FamilysrcValidator() - self._validators['size'] = v_textfont.SizeValidator() - self._validators['sizesrc'] = v_textfont.SizesrcValidator() + self._validators["color"] = v_textfont.ColorValidator() + self._validators["colorsrc"] = v_textfont.ColorsrcValidator() + self._validators["family"] = v_textfont.FamilyValidator() + self._validators["familysrc"] = v_textfont.FamilysrcValidator() + self._validators["size"] = v_textfont.SizeValidator() + self._validators["sizesrc"] = v_textfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -495,11 +493,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -516,17 +514,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl' + return "scattergl" # Self properties description # --------------------------- @@ -567,7 +565,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -587,23 +585,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl import (stream as v_stream) + from plotly.validators.scattergl import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -644,11 +642,11 @@ def marker(self): ------- plotly.graph_objs.scattergl.selected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -670,17 +668,17 @@ def textfont(self): ------- plotly.graph_objs.scattergl.selected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl' + return "scattergl" # Self properties description # --------------------------- @@ -715,7 +713,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__('selected') + super(Selected, self).__init__("selected") # Validate arg # ------------ @@ -735,23 +733,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl import (selected as v_selected) + from plotly.validators.scattergl import selected as v_selected # Initialize validators # --------------------- - self._validators['marker'] = v_selected.MarkerValidator() - self._validators['textfont'] = v_selected.TextfontValidator() + self._validators["marker"] = v_selected.MarkerValidator() + self._validators["textfont"] = v_selected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -788,11 +786,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -813,11 +811,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -836,11 +834,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -860,11 +858,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -883,11 +881,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -948,11 +946,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -975,11 +973,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -1209,11 +1207,11 @@ def colorbar(self): ------- plotly.graph_objs.scattergl.marker.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -1247,11 +1245,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -1267,11 +1265,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # line # ---- @@ -1379,11 +1377,11 @@ def line(self): ------- plotly.graph_objs.scattergl.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # opacity # ------- @@ -1400,11 +1398,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # opacitysrc # ---------- @@ -1420,11 +1418,11 @@ def opacitysrc(self): ------- str """ - return self['opacitysrc'] + return self["opacitysrc"] @opacitysrc.setter def opacitysrc(self, val): - self['opacitysrc'] = val + self["opacitysrc"] = val # reversescale # ------------ @@ -1443,11 +1441,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -1465,11 +1463,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # size # ---- @@ -1486,11 +1484,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizemin # ------- @@ -1508,11 +1506,11 @@ def sizemin(self): ------- int|float """ - return self['sizemin'] + return self["sizemin"] @sizemin.setter def sizemin(self, val): - self['sizemin'] = val + self["sizemin"] = val # sizemode # -------- @@ -1531,11 +1529,11 @@ def sizemode(self): ------- Any """ - return self['sizemode'] + return self["sizemode"] @sizemode.setter def sizemode(self, val): - self['sizemode'] = val + self["sizemode"] = val # sizeref # ------- @@ -1553,11 +1551,11 @@ def sizeref(self): ------- int|float """ - return self['sizeref'] + return self["sizeref"] @sizeref.setter def sizeref(self, val): - self['sizeref'] = val + self["sizeref"] = val # sizesrc # ------- @@ -1573,11 +1571,11 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # symbol # ------ @@ -1658,11 +1656,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self['symbol'] + return self["symbol"] @symbol.setter def symbol(self, val): - self['symbol'] = val + self["symbol"] = val # symbolsrc # --------- @@ -1678,17 +1676,17 @@ def symbolsrc(self): ------- str """ - return self['symbolsrc'] + return self["symbolsrc"] @symbolsrc.setter def symbolsrc(self, val): - self['symbolsrc'] = val + self["symbolsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl' + return "scattergl" # Self properties description # --------------------------- @@ -1951,7 +1949,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -1971,84 +1969,83 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl import (marker as v_marker) + from plotly.validators.scattergl import marker as v_marker # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_marker.AutocolorscaleValidator() - self._validators['cauto'] = v_marker.CautoValidator() - self._validators['cmax'] = v_marker.CmaxValidator() - self._validators['cmid'] = v_marker.CmidValidator() - self._validators['cmin'] = v_marker.CminValidator() - self._validators['color'] = v_marker.ColorValidator() - self._validators['coloraxis'] = v_marker.ColoraxisValidator() - self._validators['colorbar'] = v_marker.ColorBarValidator() - self._validators['colorscale'] = v_marker.ColorscaleValidator() - self._validators['colorsrc'] = v_marker.ColorsrcValidator() - self._validators['line'] = v_marker.LineValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['opacitysrc'] = v_marker.OpacitysrcValidator() - self._validators['reversescale'] = v_marker.ReversescaleValidator() - self._validators['showscale'] = v_marker.ShowscaleValidator() - self._validators['size'] = v_marker.SizeValidator() - self._validators['sizemin'] = v_marker.SizeminValidator() - self._validators['sizemode'] = v_marker.SizemodeValidator() - self._validators['sizeref'] = v_marker.SizerefValidator() - self._validators['sizesrc'] = v_marker.SizesrcValidator() - self._validators['symbol'] = v_marker.SymbolValidator() - self._validators['symbolsrc'] = v_marker.SymbolsrcValidator() + self._validators["autocolorscale"] = v_marker.AutocolorscaleValidator() + self._validators["cauto"] = v_marker.CautoValidator() + self._validators["cmax"] = v_marker.CmaxValidator() + self._validators["cmid"] = v_marker.CmidValidator() + self._validators["cmin"] = v_marker.CminValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["coloraxis"] = v_marker.ColoraxisValidator() + self._validators["colorbar"] = v_marker.ColorBarValidator() + self._validators["colorscale"] = v_marker.ColorscaleValidator() + self._validators["colorsrc"] = v_marker.ColorsrcValidator() + self._validators["line"] = v_marker.LineValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["opacitysrc"] = v_marker.OpacitysrcValidator() + self._validators["reversescale"] = v_marker.ReversescaleValidator() + self._validators["showscale"] = v_marker.ShowscaleValidator() + self._validators["size"] = v_marker.SizeValidator() + self._validators["sizemin"] = v_marker.SizeminValidator() + self._validators["sizemode"] = v_marker.SizemodeValidator() + self._validators["sizeref"] = v_marker.SizerefValidator() + self._validators["sizesrc"] = v_marker.SizesrcValidator() + self._validators["symbol"] = v_marker.SymbolValidator() + self._validators["symbolsrc"] = v_marker.SymbolsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('opacitysrc', None) - self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizemin', None) - self['sizemin'] = sizemin if sizemin is not None else _v - _v = arg.pop('sizemode', None) - self['sizemode'] = sizemode if sizemode is not None else _v - _v = arg.pop('sizeref', None) - self['sizeref'] = sizeref if sizeref is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v - _v = arg.pop('symbol', None) - self['symbol'] = symbol if symbol is not None else _v - _v = arg.pop('symbolsrc', None) - self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("opacitysrc", None) + self["opacitysrc"] = opacitysrc if opacitysrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizemin", None) + self["sizemin"] = sizemin if sizemin is not None else _v + _v = arg.pop("sizemode", None) + self["sizemode"] = sizemode if sizemode is not None else _v + _v = arg.pop("sizeref", None) + self["sizeref"] = sizeref if sizeref is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v + _v = arg.pop("symbol", None) + self["symbol"] = symbol if symbol is not None else _v + _v = arg.pop("symbolsrc", None) + self["symbolsrc"] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -2118,11 +2115,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dash # ---- @@ -2140,11 +2137,11 @@ def dash(self): ------- Any """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # shape # ----- @@ -2162,11 +2159,11 @@ def shape(self): ------- Any """ - return self['shape'] + return self["shape"] @shape.setter def shape(self, val): - self['shape'] = val + self["shape"] = val # width # ----- @@ -2182,17 +2179,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl' + return "scattergl" # Self properties description # --------------------------- @@ -2211,13 +2208,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - dash=None, - shape=None, - width=None, - **kwargs + self, arg=None, color=None, dash=None, shape=None, width=None, **kwargs ): """ Construct a new Line object @@ -2241,7 +2232,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -2261,29 +2252,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl import (line as v_line) + from plotly.validators.scattergl import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['dash'] = v_line.DashValidator() - self._validators['shape'] = v_line.ShapeValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["shape"] = v_line.ShapeValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('shape', None) - self['shape'] = shape if shape is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("shape", None) + self["shape"] = shape if shape is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -2318,11 +2309,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -2338,11 +2329,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -2398,11 +2389,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -2418,11 +2409,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -2478,11 +2469,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -2498,11 +2489,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -2553,11 +2544,11 @@ def font(self): ------- plotly.graph_objs.scattergl.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -2580,11 +2571,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -2600,17 +2591,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl' + return "scattergl" # Self properties description # --------------------------- @@ -2702,7 +2693,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -2722,48 +2713,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl import (hoverlabel as v_hoverlabel) + from plotly.validators.scattergl import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -2795,11 +2782,11 @@ def array(self): ------- numpy.ndarray """ - return self['array'] + return self["array"] @array.setter def array(self, val): - self['array'] = val + self["array"] = val # arrayminus # ---------- @@ -2817,11 +2804,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self['arrayminus'] + return self["arrayminus"] @arrayminus.setter def arrayminus(self, val): - self['arrayminus'] = val + self["arrayminus"] = val # arrayminussrc # ------------- @@ -2837,11 +2824,11 @@ def arrayminussrc(self): ------- str """ - return self['arrayminussrc'] + return self["arrayminussrc"] @arrayminussrc.setter def arrayminussrc(self, val): - self['arrayminussrc'] = val + self["arrayminussrc"] = val # arraysrc # -------- @@ -2857,11 +2844,11 @@ def arraysrc(self): ------- str """ - return self['arraysrc'] + return self["arraysrc"] @arraysrc.setter def arraysrc(self, val): - self['arraysrc'] = val + self["arraysrc"] = val # color # ----- @@ -2916,11 +2903,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # symmetric # --------- @@ -2938,11 +2925,11 @@ def symmetric(self): ------- bool """ - return self['symmetric'] + return self["symmetric"] @symmetric.setter def symmetric(self, val): - self['symmetric'] = val + self["symmetric"] = val # thickness # --------- @@ -2958,11 +2945,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # traceref # -------- @@ -2977,11 +2964,11 @@ def traceref(self): ------- int """ - return self['traceref'] + return self["traceref"] @traceref.setter def traceref(self, val): - self['traceref'] = val + self["traceref"] = val # tracerefminus # ------------- @@ -2996,11 +2983,11 @@ def tracerefminus(self): ------- int """ - return self['tracerefminus'] + return self["tracerefminus"] @tracerefminus.setter def tracerefminus(self, val): - self['tracerefminus'] = val + self["tracerefminus"] = val # type # ---- @@ -3023,11 +3010,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # value # ----- @@ -3045,11 +3032,11 @@ def value(self): ------- int|float """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # valueminus # ---------- @@ -3068,11 +3055,11 @@ def valueminus(self): ------- int|float """ - return self['valueminus'] + return self["valueminus"] @valueminus.setter def valueminus(self, val): - self['valueminus'] = val + self["valueminus"] = val # visible # ------- @@ -3088,11 +3075,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -3109,17 +3096,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl' + return "scattergl" # Self properties description # --------------------------- @@ -3262,7 +3249,7 @@ def __init__( ------- ErrorY """ - super(ErrorY, self).__init__('error_y') + super(ErrorY, self).__init__("error_y") # Validate arg # ------------ @@ -3282,61 +3269,59 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl import (error_y as v_error_y) + from plotly.validators.scattergl import error_y as v_error_y # Initialize validators # --------------------- - self._validators['array'] = v_error_y.ArrayValidator() - self._validators['arrayminus'] = v_error_y.ArrayminusValidator() - self._validators['arrayminussrc'] = v_error_y.ArrayminussrcValidator() - self._validators['arraysrc'] = v_error_y.ArraysrcValidator() - self._validators['color'] = v_error_y.ColorValidator() - self._validators['symmetric'] = v_error_y.SymmetricValidator() - self._validators['thickness'] = v_error_y.ThicknessValidator() - self._validators['traceref'] = v_error_y.TracerefValidator() - self._validators['tracerefminus'] = v_error_y.TracerefminusValidator() - self._validators['type'] = v_error_y.TypeValidator() - self._validators['value'] = v_error_y.ValueValidator() - self._validators['valueminus'] = v_error_y.ValueminusValidator() - self._validators['visible'] = v_error_y.VisibleValidator() - self._validators['width'] = v_error_y.WidthValidator() + self._validators["array"] = v_error_y.ArrayValidator() + self._validators["arrayminus"] = v_error_y.ArrayminusValidator() + self._validators["arrayminussrc"] = v_error_y.ArrayminussrcValidator() + self._validators["arraysrc"] = v_error_y.ArraysrcValidator() + self._validators["color"] = v_error_y.ColorValidator() + self._validators["symmetric"] = v_error_y.SymmetricValidator() + self._validators["thickness"] = v_error_y.ThicknessValidator() + self._validators["traceref"] = v_error_y.TracerefValidator() + self._validators["tracerefminus"] = v_error_y.TracerefminusValidator() + self._validators["type"] = v_error_y.TypeValidator() + self._validators["value"] = v_error_y.ValueValidator() + self._validators["valueminus"] = v_error_y.ValueminusValidator() + self._validators["visible"] = v_error_y.VisibleValidator() + self._validators["width"] = v_error_y.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('array', None) - self['array'] = array if array is not None else _v - _v = arg.pop('arrayminus', None) - self['arrayminus'] = arrayminus if arrayminus is not None else _v - _v = arg.pop('arrayminussrc', None) - self['arrayminussrc' - ] = arrayminussrc if arrayminussrc is not None else _v - _v = arg.pop('arraysrc', None) - self['arraysrc'] = arraysrc if arraysrc is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('symmetric', None) - self['symmetric'] = symmetric if symmetric is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('traceref', None) - self['traceref'] = traceref if traceref is not None else _v - _v = arg.pop('tracerefminus', None) - self['tracerefminus' - ] = tracerefminus if tracerefminus is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v - _v = arg.pop('valueminus', None) - self['valueminus'] = valueminus if valueminus is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("array", None) + self["array"] = array if array is not None else _v + _v = arg.pop("arrayminus", None) + self["arrayminus"] = arrayminus if arrayminus is not None else _v + _v = arg.pop("arrayminussrc", None) + self["arrayminussrc"] = arrayminussrc if arrayminussrc is not None else _v + _v = arg.pop("arraysrc", None) + self["arraysrc"] = arraysrc if arraysrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("symmetric", None) + self["symmetric"] = symmetric if symmetric is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("traceref", None) + self["traceref"] = traceref if traceref is not None else _v + _v = arg.pop("tracerefminus", None) + self["tracerefminus"] = tracerefminus if tracerefminus is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v + _v = arg.pop("valueminus", None) + self["valueminus"] = valueminus if valueminus is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -3368,11 +3353,11 @@ def array(self): ------- numpy.ndarray """ - return self['array'] + return self["array"] @array.setter def array(self, val): - self['array'] = val + self["array"] = val # arrayminus # ---------- @@ -3390,11 +3375,11 @@ def arrayminus(self): ------- numpy.ndarray """ - return self['arrayminus'] + return self["arrayminus"] @arrayminus.setter def arrayminus(self, val): - self['arrayminus'] = val + self["arrayminus"] = val # arrayminussrc # ------------- @@ -3410,11 +3395,11 @@ def arrayminussrc(self): ------- str """ - return self['arrayminussrc'] + return self["arrayminussrc"] @arrayminussrc.setter def arrayminussrc(self, val): - self['arrayminussrc'] = val + self["arrayminussrc"] = val # arraysrc # -------- @@ -3430,11 +3415,11 @@ def arraysrc(self): ------- str """ - return self['arraysrc'] + return self["arraysrc"] @arraysrc.setter def arraysrc(self, val): - self['arraysrc'] = val + self["arraysrc"] = val # color # ----- @@ -3489,11 +3474,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # copy_ystyle # ----------- @@ -3507,11 +3492,11 @@ def copy_ystyle(self): ------- bool """ - return self['copy_ystyle'] + return self["copy_ystyle"] @copy_ystyle.setter def copy_ystyle(self, val): - self['copy_ystyle'] = val + self["copy_ystyle"] = val # symmetric # --------- @@ -3529,11 +3514,11 @@ def symmetric(self): ------- bool """ - return self['symmetric'] + return self["symmetric"] @symmetric.setter def symmetric(self, val): - self['symmetric'] = val + self["symmetric"] = val # thickness # --------- @@ -3549,11 +3534,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # traceref # -------- @@ -3568,11 +3553,11 @@ def traceref(self): ------- int """ - return self['traceref'] + return self["traceref"] @traceref.setter def traceref(self, val): - self['traceref'] = val + self["traceref"] = val # tracerefminus # ------------- @@ -3587,11 +3572,11 @@ def tracerefminus(self): ------- int """ - return self['tracerefminus'] + return self["tracerefminus"] @tracerefminus.setter def tracerefminus(self, val): - self['tracerefminus'] = val + self["tracerefminus"] = val # type # ---- @@ -3614,11 +3599,11 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # value # ----- @@ -3636,11 +3621,11 @@ def value(self): ------- int|float """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # valueminus # ---------- @@ -3659,11 +3644,11 @@ def valueminus(self): ------- int|float """ - return self['valueminus'] + return self["valueminus"] @valueminus.setter def valueminus(self, val): - self['valueminus'] = val + self["valueminus"] = val # visible # ------- @@ -3679,11 +3664,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -3700,17 +3685,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl' + return "scattergl" # Self properties description # --------------------------- @@ -3858,7 +3843,7 @@ def __init__( ------- ErrorX """ - super(ErrorX, self).__init__('error_x') + super(ErrorX, self).__init__("error_x") # Validate arg # ------------ @@ -3878,64 +3863,62 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl import (error_x as v_error_x) + from plotly.validators.scattergl import error_x as v_error_x # Initialize validators # --------------------- - self._validators['array'] = v_error_x.ArrayValidator() - self._validators['arrayminus'] = v_error_x.ArrayminusValidator() - self._validators['arrayminussrc'] = v_error_x.ArrayminussrcValidator() - self._validators['arraysrc'] = v_error_x.ArraysrcValidator() - self._validators['color'] = v_error_x.ColorValidator() - self._validators['copy_ystyle'] = v_error_x.CopyYstyleValidator() - self._validators['symmetric'] = v_error_x.SymmetricValidator() - self._validators['thickness'] = v_error_x.ThicknessValidator() - self._validators['traceref'] = v_error_x.TracerefValidator() - self._validators['tracerefminus'] = v_error_x.TracerefminusValidator() - self._validators['type'] = v_error_x.TypeValidator() - self._validators['value'] = v_error_x.ValueValidator() - self._validators['valueminus'] = v_error_x.ValueminusValidator() - self._validators['visible'] = v_error_x.VisibleValidator() - self._validators['width'] = v_error_x.WidthValidator() + self._validators["array"] = v_error_x.ArrayValidator() + self._validators["arrayminus"] = v_error_x.ArrayminusValidator() + self._validators["arrayminussrc"] = v_error_x.ArrayminussrcValidator() + self._validators["arraysrc"] = v_error_x.ArraysrcValidator() + self._validators["color"] = v_error_x.ColorValidator() + self._validators["copy_ystyle"] = v_error_x.CopyYstyleValidator() + self._validators["symmetric"] = v_error_x.SymmetricValidator() + self._validators["thickness"] = v_error_x.ThicknessValidator() + self._validators["traceref"] = v_error_x.TracerefValidator() + self._validators["tracerefminus"] = v_error_x.TracerefminusValidator() + self._validators["type"] = v_error_x.TypeValidator() + self._validators["value"] = v_error_x.ValueValidator() + self._validators["valueminus"] = v_error_x.ValueminusValidator() + self._validators["visible"] = v_error_x.VisibleValidator() + self._validators["width"] = v_error_x.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('array', None) - self['array'] = array if array is not None else _v - _v = arg.pop('arrayminus', None) - self['arrayminus'] = arrayminus if arrayminus is not None else _v - _v = arg.pop('arrayminussrc', None) - self['arrayminussrc' - ] = arrayminussrc if arrayminussrc is not None else _v - _v = arg.pop('arraysrc', None) - self['arraysrc'] = arraysrc if arraysrc is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('copy_ystyle', None) - self['copy_ystyle'] = copy_ystyle if copy_ystyle is not None else _v - _v = arg.pop('symmetric', None) - self['symmetric'] = symmetric if symmetric is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('traceref', None) - self['traceref'] = traceref if traceref is not None else _v - _v = arg.pop('tracerefminus', None) - self['tracerefminus' - ] = tracerefminus if tracerefminus is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v - _v = arg.pop('valueminus', None) - self['valueminus'] = valueminus if valueminus is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("array", None) + self["array"] = array if array is not None else _v + _v = arg.pop("arrayminus", None) + self["arrayminus"] = arrayminus if arrayminus is not None else _v + _v = arg.pop("arrayminussrc", None) + self["arrayminussrc"] = arrayminussrc if arrayminussrc is not None else _v + _v = arg.pop("arraysrc", None) + self["arraysrc"] = arraysrc if arraysrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("copy_ystyle", None) + self["copy_ystyle"] = copy_ystyle if copy_ystyle is not None else _v + _v = arg.pop("symmetric", None) + self["symmetric"] = symmetric if symmetric is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("traceref", None) + self["traceref"] = traceref if traceref is not None else _v + _v = arg.pop("tracerefminus", None) + self["tracerefminus"] = tracerefminus if tracerefminus is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v + _v = arg.pop("valueminus", None) + self["valueminus"] = valueminus if valueminus is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergl/hoverlabel/__init__.py index 67560af6c1a..6372e627aa9 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl.hoverlabel' + return "scattergl.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl.hoverlabel import (font as v_font) + from plotly.validators.scattergl.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergl/marker/__init__.py index 4056709254c..6508d0a2731 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -26,11 +24,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -51,11 +49,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -74,11 +72,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -99,11 +97,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -122,11 +120,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -187,11 +185,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -214,11 +212,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorscale # ---------- @@ -253,11 +251,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -273,11 +271,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # reversescale # ------------ @@ -297,11 +295,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # width # ----- @@ -318,11 +316,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -338,17 +336,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl.marker' + return "scattergl.marker" # Self properties description # --------------------------- @@ -541,7 +539,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -561,54 +559,53 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl.marker import (line as v_line) + from plotly.validators.scattergl.marker import line as v_line # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_line.AutocolorscaleValidator() - self._validators['cauto'] = v_line.CautoValidator() - self._validators['cmax'] = v_line.CmaxValidator() - self._validators['cmid'] = v_line.CmidValidator() - self._validators['cmin'] = v_line.CminValidator() - self._validators['color'] = v_line.ColorValidator() - self._validators['coloraxis'] = v_line.ColoraxisValidator() - self._validators['colorscale'] = v_line.ColorscaleValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['reversescale'] = v_line.ReversescaleValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["autocolorscale"] = v_line.AutocolorscaleValidator() + self._validators["cauto"] = v_line.CautoValidator() + self._validators["cmax"] = v_line.CmaxValidator() + self._validators["cmid"] = v_line.CmidValidator() + self._validators["cmin"] = v_line.CminValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["coloraxis"] = v_line.ColoraxisValidator() + self._validators["colorscale"] = v_line.ColorscaleValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["reversescale"] = v_line.ReversescaleValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -678,11 +675,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -737,11 +734,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -757,11 +754,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -795,11 +792,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -820,11 +817,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -842,11 +839,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -865,11 +862,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -889,11 +886,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -948,11 +945,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -968,11 +965,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -988,11 +985,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1012,11 +1009,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1032,11 +1029,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1056,11 +1053,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1077,11 +1074,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1098,11 +1095,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1121,11 +1118,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1148,11 +1145,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1172,11 +1169,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1231,11 +1228,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1276,11 +1273,11 @@ def tickfont(self): ------- plotly.graph_objs.scattergl.marker.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1305,11 +1302,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1362,11 +1359,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.scattergl.marker.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1390,11 +1387,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.scattergl.marker.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1410,11 +1407,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1437,11 +1434,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1458,11 +1455,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1481,11 +1478,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1502,11 +1499,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1524,11 +1521,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1544,11 +1541,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1565,11 +1562,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1585,11 +1582,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1605,11 +1602,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1644,11 +1641,11 @@ def title(self): ------- plotly.graph_objs.scattergl.marker.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1692,11 +1689,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1716,11 +1713,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1736,11 +1733,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1759,11 +1756,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -1779,11 +1776,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -1799,11 +1796,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -1822,11 +1819,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -1842,17 +1839,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl.marker' + return "scattergl.marker" # Self properties description # --------------------------- @@ -2048,8 +2045,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2300,7 +2297,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2320,164 +2317,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl.marker import (colorbar as v_colorbar) + from plotly.validators.scattergl.marker import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/__init__.py index ed9abc2cf42..a9ee487ebfa 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.scattergl.marker.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl.marker.colorbar' + return "scattergl.marker.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,28 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl.marker.colorbar import ( - title as v_title - ) + from plotly.validators.scattergl.marker.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -231,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -252,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -279,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -307,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -329,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl.marker.colorbar' + return "scattergl.marker.colorbar" # Self properties description # --------------------------- @@ -432,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -452,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.scattergl.marker.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -549,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -580,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -598,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl.marker.colorbar' + return "scattergl.marker.colorbar" # Self properties description # --------------------------- @@ -670,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -690,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl.marker.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.scattergl.marker.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/title/__init__.py index fd3a7e71991..01a6bdd607b 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/marker/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl.marker.colorbar.title' + return "scattergl.marker.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl.marker.colorbar.title import ( - font as v_font - ) + from plotly.validators.scattergl.marker.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergl/selected/__init__.py index 94186bc0c0a..59a0f7abbe7 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/selected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,17 +57,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl.selected' + return "scattergl.selected" # Self properties description # --------------------------- @@ -97,7 +95,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -117,22 +115,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl.selected import ( - textfont as v_textfont - ) + from plotly.validators.scattergl.selected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -202,11 +198,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -222,11 +218,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -242,17 +238,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl.selected' + return "scattergl.selected" # Self properties description # --------------------------- @@ -267,9 +263,7 @@ def _prop_descriptions(self): Sets the marker size of selected points. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -290,7 +284,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -310,26 +304,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl.selected import (marker as v_marker) + from plotly.validators.scattergl.selected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattergl/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattergl/unselected/__init__.py index e9c2632d64f..5ddf884d876 100644 --- a/packages/python/plotly/plotly/graph_objs/scattergl/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattergl/unselected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,17 +58,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl.unselected' + return "scattergl.unselected" # Self properties description # --------------------------- @@ -100,7 +98,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -120,22 +118,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl.unselected import ( - textfont as v_textfont - ) + from plotly.validators.scattergl.unselected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -206,11 +202,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -227,11 +223,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -248,17 +244,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattergl.unselected' + return "scattergl.unselected" # Self properties description # --------------------------- @@ -276,9 +272,7 @@ def _prop_descriptions(self): when a selection exists. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -302,7 +296,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -322,26 +316,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattergl.unselected import (marker as v_marker) + from plotly.validators.scattergl.unselected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/__init__.py index fc1cd873ccc..1dc6563c372 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -33,17 +31,17 @@ def marker(self): ------- plotly.graph_objs.scattermapbox.unselected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattermapbox' + return "scattermapbox" # Self properties description # --------------------------- @@ -73,7 +71,7 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__('unselected') + super(Unselected, self).__init__("unselected") # Validate arg # ------------ @@ -93,22 +91,20 @@ def __init__(self, arg=None, marker=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattermapbox import ( - unselected as v_unselected - ) + from plotly.validators.scattermapbox import unselected as v_unselected # Initialize validators # --------------------- - self._validators['marker'] = v_unselected.MarkerValidator() + self._validators["marker"] = v_unselected.MarkerValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- @@ -176,11 +172,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -207,11 +203,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -225,17 +221,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattermapbox' + return "scattermapbox" # Self properties description # --------------------------- @@ -298,7 +294,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -318,26 +314,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattermapbox import (textfont as v_textfont) + from plotly.validators.scattermapbox import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() - self._validators['family'] = v_textfont.FamilyValidator() - self._validators['size'] = v_textfont.SizeValidator() + self._validators["color"] = v_textfont.ColorValidator() + self._validators["family"] = v_textfont.FamilyValidator() + self._validators["size"] = v_textfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- @@ -370,11 +366,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -391,17 +387,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattermapbox' + return "scattermapbox" # Self properties description # --------------------------- @@ -442,7 +438,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -462,23 +458,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattermapbox import (stream as v_stream) + from plotly.validators.scattermapbox import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -519,17 +515,17 @@ def marker(self): ------- plotly.graph_objs.scattermapbox.selected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattermapbox' + return "scattermapbox" # Self properties description # --------------------------- @@ -558,7 +554,7 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__('selected') + super(Selected, self).__init__("selected") # Validate arg # ------------ @@ -578,20 +574,20 @@ def __init__(self, arg=None, marker=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattermapbox import (selected as v_selected) + from plotly.validators.scattermapbox import selected as v_selected # Initialize validators # --------------------- - self._validators['marker'] = v_selected.MarkerValidator() + self._validators["marker"] = v_selected.MarkerValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- @@ -628,11 +624,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -653,11 +649,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -676,11 +672,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -700,11 +696,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -723,11 +719,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -788,11 +784,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -815,11 +811,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -1050,11 +1046,11 @@ def colorbar(self): ------- plotly.graph_objs.scattermapbox.marker.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -1088,11 +1084,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -1108,11 +1104,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # opacity # ------- @@ -1129,11 +1125,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # opacitysrc # ---------- @@ -1149,11 +1145,11 @@ def opacitysrc(self): ------- str """ - return self['opacitysrc'] + return self["opacitysrc"] @opacitysrc.setter def opacitysrc(self, val): - self['opacitysrc'] = val + self["opacitysrc"] = val # reversescale # ------------ @@ -1172,11 +1168,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -1194,11 +1190,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # size # ---- @@ -1215,11 +1211,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizemin # ------- @@ -1237,11 +1233,11 @@ def sizemin(self): ------- int|float """ - return self['sizemin'] + return self["sizemin"] @sizemin.setter def sizemin(self, val): - self['sizemin'] = val + self["sizemin"] = val # sizemode # -------- @@ -1260,11 +1256,11 @@ def sizemode(self): ------- Any """ - return self['sizemode'] + return self["sizemode"] @sizemode.setter def sizemode(self, val): - self['sizemode'] = val + self["sizemode"] = val # sizeref # ------- @@ -1282,11 +1278,11 @@ def sizeref(self): ------- int|float """ - return self['sizeref'] + return self["sizeref"] @sizeref.setter def sizeref(self, val): - self['sizeref'] = val + self["sizeref"] = val # sizesrc # ------- @@ -1302,11 +1298,11 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # symbol # ------ @@ -1326,11 +1322,11 @@ def symbol(self): ------- str|numpy.ndarray """ - return self['symbol'] + return self["symbol"] @symbol.setter def symbol(self, val): - self['symbol'] = val + self["symbol"] = val # symbolsrc # --------- @@ -1346,17 +1342,17 @@ def symbolsrc(self): ------- str """ - return self['symbolsrc'] + return self["symbolsrc"] @symbolsrc.setter def symbolsrc(self, val): - self['symbolsrc'] = val + self["symbolsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattermapbox' + return "scattermapbox" # Self properties description # --------------------------- @@ -1610,7 +1606,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -1630,81 +1626,80 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattermapbox import (marker as v_marker) + from plotly.validators.scattermapbox import marker as v_marker # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_marker.AutocolorscaleValidator() - self._validators['cauto'] = v_marker.CautoValidator() - self._validators['cmax'] = v_marker.CmaxValidator() - self._validators['cmid'] = v_marker.CmidValidator() - self._validators['cmin'] = v_marker.CminValidator() - self._validators['color'] = v_marker.ColorValidator() - self._validators['coloraxis'] = v_marker.ColoraxisValidator() - self._validators['colorbar'] = v_marker.ColorBarValidator() - self._validators['colorscale'] = v_marker.ColorscaleValidator() - self._validators['colorsrc'] = v_marker.ColorsrcValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['opacitysrc'] = v_marker.OpacitysrcValidator() - self._validators['reversescale'] = v_marker.ReversescaleValidator() - self._validators['showscale'] = v_marker.ShowscaleValidator() - self._validators['size'] = v_marker.SizeValidator() - self._validators['sizemin'] = v_marker.SizeminValidator() - self._validators['sizemode'] = v_marker.SizemodeValidator() - self._validators['sizeref'] = v_marker.SizerefValidator() - self._validators['sizesrc'] = v_marker.SizesrcValidator() - self._validators['symbol'] = v_marker.SymbolValidator() - self._validators['symbolsrc'] = v_marker.SymbolsrcValidator() + self._validators["autocolorscale"] = v_marker.AutocolorscaleValidator() + self._validators["cauto"] = v_marker.CautoValidator() + self._validators["cmax"] = v_marker.CmaxValidator() + self._validators["cmid"] = v_marker.CmidValidator() + self._validators["cmin"] = v_marker.CminValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["coloraxis"] = v_marker.ColoraxisValidator() + self._validators["colorbar"] = v_marker.ColorBarValidator() + self._validators["colorscale"] = v_marker.ColorscaleValidator() + self._validators["colorsrc"] = v_marker.ColorsrcValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["opacitysrc"] = v_marker.OpacitysrcValidator() + self._validators["reversescale"] = v_marker.ReversescaleValidator() + self._validators["showscale"] = v_marker.ShowscaleValidator() + self._validators["size"] = v_marker.SizeValidator() + self._validators["sizemin"] = v_marker.SizeminValidator() + self._validators["sizemode"] = v_marker.SizemodeValidator() + self._validators["sizeref"] = v_marker.SizerefValidator() + self._validators["sizesrc"] = v_marker.SizesrcValidator() + self._validators["symbol"] = v_marker.SymbolValidator() + self._validators["symbolsrc"] = v_marker.SymbolsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('opacitysrc', None) - self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizemin', None) - self['sizemin'] = sizemin if sizemin is not None else _v - _v = arg.pop('sizemode', None) - self['sizemode'] = sizemode if sizemode is not None else _v - _v = arg.pop('sizeref', None) - self['sizeref'] = sizeref if sizeref is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v - _v = arg.pop('symbol', None) - self['symbol'] = symbol if symbol is not None else _v - _v = arg.pop('symbolsrc', None) - self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("opacitysrc", None) + self["opacitysrc"] = opacitysrc if opacitysrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizemin", None) + self["sizemin"] = sizemin if sizemin is not None else _v + _v = arg.pop("sizemode", None) + self["sizemode"] = sizemode if sizemode is not None else _v + _v = arg.pop("sizeref", None) + self["sizeref"] = sizeref if sizeref is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v + _v = arg.pop("symbol", None) + self["symbol"] = symbol if symbol is not None else _v + _v = arg.pop("symbolsrc", None) + self["symbolsrc"] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1774,11 +1769,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # width # ----- @@ -1794,17 +1789,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattermapbox' + return "scattermapbox" # Self properties description # --------------------------- @@ -1835,7 +1830,7 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -1855,23 +1850,23 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattermapbox import (line as v_line) + from plotly.validators.scattermapbox import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -1906,11 +1901,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -1926,11 +1921,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -1986,11 +1981,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -2006,11 +2001,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -2066,11 +2061,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -2086,11 +2081,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -2141,11 +2136,11 @@ def font(self): ------- plotly.graph_objs.scattermapbox.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -2168,11 +2163,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -2188,17 +2183,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattermapbox' + return "scattermapbox" # Self properties description # --------------------------- @@ -2291,7 +2286,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -2311,50 +2306,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattermapbox import ( - hoverlabel as v_hoverlabel - ) + from plotly.validators.scattermapbox import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/hoverlabel/__init__.py index ec9f824b122..0c4be39026c 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattermapbox.hoverlabel' + return "scattermapbox.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattermapbox.hoverlabel import (font as v_font) + from plotly.validators.scattermapbox.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/__init__.py index 25930e13080..6a57b20313b 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -118,11 +116,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -138,11 +136,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -176,11 +174,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -201,11 +199,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -223,11 +221,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -246,11 +244,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -270,11 +268,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -329,11 +327,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -349,11 +347,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -369,11 +367,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -393,11 +391,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -413,11 +411,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -437,11 +435,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -458,11 +456,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -479,11 +477,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -502,11 +500,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -529,11 +527,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -553,11 +551,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -612,11 +610,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -657,11 +655,11 @@ def tickfont(self): ------- plotly.graph_objs.scattermapbox.marker.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -686,11 +684,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -743,11 +741,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.scattermapbox.marker.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -771,11 +769,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.scattermapbox.marker.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -791,11 +789,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -818,11 +816,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -839,11 +837,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -862,11 +860,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -883,11 +881,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -905,11 +903,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -925,11 +923,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -946,11 +944,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -966,11 +964,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -986,11 +984,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1025,11 +1023,11 @@ def title(self): ------- plotly.graph_objs.scattermapbox.marker.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1073,11 +1071,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1097,11 +1095,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1117,11 +1115,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1140,11 +1138,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -1160,11 +1158,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -1180,11 +1178,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -1203,11 +1201,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -1223,17 +1221,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattermapbox.marker' + return "scattermapbox.marker" # Self properties description # --------------------------- @@ -1430,8 +1428,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -1683,7 +1681,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -1703,166 +1701,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattermapbox.marker import ( - colorbar as v_colorbar - ) + from plotly.validators.scattermapbox.marker import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/__init__.py index 57e76f9c131..23ae6e1e2ff 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.scattermapbox.marker.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattermapbox.marker.colorbar' + return "scattermapbox.marker.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,28 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattermapbox.marker.colorbar import ( - title as v_title - ) + from plotly.validators.scattermapbox.marker.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -231,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -252,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -279,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -307,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -329,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattermapbox.marker.colorbar' + return "scattermapbox.marker.colorbar" # Self properties description # --------------------------- @@ -432,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -452,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.scattermapbox.marker.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -549,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -580,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -598,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattermapbox.marker.colorbar' + return "scattermapbox.marker.colorbar" # Self properties description # --------------------------- @@ -670,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -690,28 +688,28 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.scattermapbox.marker.colorbar import ( - tickfont as v_tickfont + tickfont as v_tickfont, ) # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/title/__init__.py index 9f986b9be58..1bd0f1069c8 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/marker/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattermapbox.marker.colorbar.title' + return "scattermapbox.marker.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattermapbox.marker.colorbar.title import ( - font as v_font - ) + from plotly.validators.scattermapbox.marker.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/selected/__init__.py index 830a35190bd..4dd0d21b22e 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/selected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -79,11 +77,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -99,17 +97,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattermapbox.selected' + return "scattermapbox.selected" # Self properties description # --------------------------- @@ -124,9 +122,7 @@ def _prop_descriptions(self): Sets the marker size of selected points. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -147,7 +143,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -167,28 +163,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattermapbox.selected import ( - marker as v_marker - ) + from plotly.validators.scattermapbox.selected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scattermapbox/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scattermapbox/unselected/__init__.py index bdaebca54c4..b7c738094a2 100644 --- a/packages/python/plotly/plotly/graph_objs/scattermapbox/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scattermapbox/unselected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,11 +58,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -81,11 +79,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -102,17 +100,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scattermapbox.unselected' + return "scattermapbox.unselected" # Self properties description # --------------------------- @@ -130,9 +128,7 @@ def _prop_descriptions(self): when a selection exists. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -156,7 +152,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -176,28 +172,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scattermapbox.unselected import ( - marker as v_marker - ) + from plotly.validators.scattermapbox.unselected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/__init__.py index a26ffbc3550..cccb3556d5c 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -33,11 +31,11 @@ def marker(self): ------- plotly.graph_objs.scatterpolar.unselected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -60,17 +58,17 @@ def textfont(self): ------- plotly.graph_objs.scatterpolar.unselected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar' + return "scatterpolar" # Self properties description # --------------------------- @@ -106,7 +104,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__('unselected') + super(Unselected, self).__init__("unselected") # Validate arg # ------------ @@ -126,23 +124,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolar import (unselected as v_unselected) + from plotly.validators.scatterpolar import unselected as v_unselected # Initialize validators # --------------------- - self._validators['marker'] = v_unselected.MarkerValidator() - self._validators['textfont'] = v_unselected.TextfontValidator() + self._validators["marker"] = v_unselected.MarkerValidator() + self._validators["textfont"] = v_unselected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -211,11 +209,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -231,11 +229,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -263,11 +261,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -283,11 +281,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -302,11 +300,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -322,17 +320,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar' + return "scatterpolar" # Self properties description # --------------------------- @@ -415,7 +413,7 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -435,35 +433,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolar import (textfont as v_textfont) + from plotly.validators.scatterpolar import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() - self._validators['colorsrc'] = v_textfont.ColorsrcValidator() - self._validators['family'] = v_textfont.FamilyValidator() - self._validators['familysrc'] = v_textfont.FamilysrcValidator() - self._validators['size'] = v_textfont.SizeValidator() - self._validators['sizesrc'] = v_textfont.SizesrcValidator() + self._validators["color"] = v_textfont.ColorValidator() + self._validators["colorsrc"] = v_textfont.ColorsrcValidator() + self._validators["family"] = v_textfont.FamilyValidator() + self._validators["familysrc"] = v_textfont.FamilysrcValidator() + self._validators["size"] = v_textfont.SizeValidator() + self._validators["sizesrc"] = v_textfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -496,11 +494,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -517,17 +515,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar' + return "scatterpolar" # Self properties description # --------------------------- @@ -568,7 +566,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -588,23 +586,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolar import (stream as v_stream) + from plotly.validators.scatterpolar import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -645,11 +643,11 @@ def marker(self): ------- plotly.graph_objs.scatterpolar.selected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -671,17 +669,17 @@ def textfont(self): ------- plotly.graph_objs.scatterpolar.selected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar' + return "scatterpolar" # Self properties description # --------------------------- @@ -716,7 +714,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__('selected') + super(Selected, self).__init__("selected") # Validate arg # ------------ @@ -736,23 +734,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolar import (selected as v_selected) + from plotly.validators.scatterpolar import selected as v_selected # Initialize validators # --------------------- - self._validators['marker'] = v_selected.MarkerValidator() - self._validators['textfont'] = v_selected.TextfontValidator() + self._validators["marker"] = v_selected.MarkerValidator() + self._validators["textfont"] = v_selected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -789,11 +787,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -814,11 +812,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -837,11 +835,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -861,11 +859,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -884,11 +882,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -949,11 +947,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -976,11 +974,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -1211,11 +1209,11 @@ def colorbar(self): ------- plotly.graph_objs.scatterpolar.marker.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -1249,11 +1247,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -1269,11 +1267,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # gradient # -------- @@ -1306,11 +1304,11 @@ def gradient(self): ------- plotly.graph_objs.scatterpolar.marker.Gradient """ - return self['gradient'] + return self["gradient"] @gradient.setter def gradient(self, val): - self['gradient'] = val + self["gradient"] = val # line # ---- @@ -1418,11 +1416,11 @@ def line(self): ------- plotly.graph_objs.scatterpolar.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # maxdisplayed # ------------ @@ -1439,11 +1437,11 @@ def maxdisplayed(self): ------- int|float """ - return self['maxdisplayed'] + return self["maxdisplayed"] @maxdisplayed.setter def maxdisplayed(self, val): - self['maxdisplayed'] = val + self["maxdisplayed"] = val # opacity # ------- @@ -1460,11 +1458,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # opacitysrc # ---------- @@ -1480,11 +1478,11 @@ def opacitysrc(self): ------- str """ - return self['opacitysrc'] + return self["opacitysrc"] @opacitysrc.setter def opacitysrc(self, val): - self['opacitysrc'] = val + self["opacitysrc"] = val # reversescale # ------------ @@ -1503,11 +1501,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -1525,11 +1523,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # size # ---- @@ -1546,11 +1544,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizemin # ------- @@ -1568,11 +1566,11 @@ def sizemin(self): ------- int|float """ - return self['sizemin'] + return self["sizemin"] @sizemin.setter def sizemin(self, val): - self['sizemin'] = val + self["sizemin"] = val # sizemode # -------- @@ -1591,11 +1589,11 @@ def sizemode(self): ------- Any """ - return self['sizemode'] + return self["sizemode"] @sizemode.setter def sizemode(self, val): - self['sizemode'] = val + self["sizemode"] = val # sizeref # ------- @@ -1613,11 +1611,11 @@ def sizeref(self): ------- int|float """ - return self['sizeref'] + return self["sizeref"] @sizeref.setter def sizeref(self, val): - self['sizeref'] = val + self["sizeref"] = val # sizesrc # ------- @@ -1633,11 +1631,11 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # symbol # ------ @@ -1718,11 +1716,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self['symbol'] + return self["symbol"] @symbol.setter def symbol(self, val): - self['symbol'] = val + self["symbol"] = val # symbolsrc # --------- @@ -1738,17 +1736,17 @@ def symbolsrc(self): ------- str """ - return self['symbolsrc'] + return self["symbolsrc"] @symbolsrc.setter def symbolsrc(self, val): - self['symbolsrc'] = val + self["symbolsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar' + return "scatterpolar" # Self properties description # --------------------------- @@ -2025,7 +2023,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -2045,90 +2043,89 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolar import (marker as v_marker) + from plotly.validators.scatterpolar import marker as v_marker # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_marker.AutocolorscaleValidator() - self._validators['cauto'] = v_marker.CautoValidator() - self._validators['cmax'] = v_marker.CmaxValidator() - self._validators['cmid'] = v_marker.CmidValidator() - self._validators['cmin'] = v_marker.CminValidator() - self._validators['color'] = v_marker.ColorValidator() - self._validators['coloraxis'] = v_marker.ColoraxisValidator() - self._validators['colorbar'] = v_marker.ColorBarValidator() - self._validators['colorscale'] = v_marker.ColorscaleValidator() - self._validators['colorsrc'] = v_marker.ColorsrcValidator() - self._validators['gradient'] = v_marker.GradientValidator() - self._validators['line'] = v_marker.LineValidator() - self._validators['maxdisplayed'] = v_marker.MaxdisplayedValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['opacitysrc'] = v_marker.OpacitysrcValidator() - self._validators['reversescale'] = v_marker.ReversescaleValidator() - self._validators['showscale'] = v_marker.ShowscaleValidator() - self._validators['size'] = v_marker.SizeValidator() - self._validators['sizemin'] = v_marker.SizeminValidator() - self._validators['sizemode'] = v_marker.SizemodeValidator() - self._validators['sizeref'] = v_marker.SizerefValidator() - self._validators['sizesrc'] = v_marker.SizesrcValidator() - self._validators['symbol'] = v_marker.SymbolValidator() - self._validators['symbolsrc'] = v_marker.SymbolsrcValidator() + self._validators["autocolorscale"] = v_marker.AutocolorscaleValidator() + self._validators["cauto"] = v_marker.CautoValidator() + self._validators["cmax"] = v_marker.CmaxValidator() + self._validators["cmid"] = v_marker.CmidValidator() + self._validators["cmin"] = v_marker.CminValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["coloraxis"] = v_marker.ColoraxisValidator() + self._validators["colorbar"] = v_marker.ColorBarValidator() + self._validators["colorscale"] = v_marker.ColorscaleValidator() + self._validators["colorsrc"] = v_marker.ColorsrcValidator() + self._validators["gradient"] = v_marker.GradientValidator() + self._validators["line"] = v_marker.LineValidator() + self._validators["maxdisplayed"] = v_marker.MaxdisplayedValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["opacitysrc"] = v_marker.OpacitysrcValidator() + self._validators["reversescale"] = v_marker.ReversescaleValidator() + self._validators["showscale"] = v_marker.ShowscaleValidator() + self._validators["size"] = v_marker.SizeValidator() + self._validators["sizemin"] = v_marker.SizeminValidator() + self._validators["sizemode"] = v_marker.SizemodeValidator() + self._validators["sizeref"] = v_marker.SizerefValidator() + self._validators["sizesrc"] = v_marker.SizesrcValidator() + self._validators["symbol"] = v_marker.SymbolValidator() + self._validators["symbolsrc"] = v_marker.SymbolsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('gradient', None) - self['gradient'] = gradient if gradient is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('maxdisplayed', None) - self['maxdisplayed'] = maxdisplayed if maxdisplayed is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('opacitysrc', None) - self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizemin', None) - self['sizemin'] = sizemin if sizemin is not None else _v - _v = arg.pop('sizemode', None) - self['sizemode'] = sizemode if sizemode is not None else _v - _v = arg.pop('sizeref', None) - self['sizeref'] = sizeref if sizeref is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v - _v = arg.pop('symbol', None) - self['symbol'] = symbol if symbol is not None else _v - _v = arg.pop('symbolsrc', None) - self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("gradient", None) + self["gradient"] = gradient if gradient is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("maxdisplayed", None) + self["maxdisplayed"] = maxdisplayed if maxdisplayed is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("opacitysrc", None) + self["opacitysrc"] = opacitysrc if opacitysrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizemin", None) + self["sizemin"] = sizemin if sizemin is not None else _v + _v = arg.pop("sizemode", None) + self["sizemode"] = sizemode if sizemode is not None else _v + _v = arg.pop("sizeref", None) + self["sizeref"] = sizeref if sizeref is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v + _v = arg.pop("symbol", None) + self["symbol"] = symbol if symbol is not None else _v + _v = arg.pop("symbolsrc", None) + self["symbolsrc"] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -2198,11 +2195,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dash # ---- @@ -2224,11 +2221,11 @@ def dash(self): ------- str """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # shape # ----- @@ -2247,11 +2244,11 @@ def shape(self): ------- Any """ - return self['shape'] + return self["shape"] @shape.setter def shape(self, val): - self['shape'] = val + self["shape"] = val # smoothing # --------- @@ -2269,11 +2266,11 @@ def smoothing(self): ------- int|float """ - return self['smoothing'] + return self["smoothing"] @smoothing.setter def smoothing(self, val): - self['smoothing'] = val + self["smoothing"] = val # width # ----- @@ -2289,17 +2286,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar' + return "scatterpolar" # Self properties description # --------------------------- @@ -2365,7 +2362,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -2385,32 +2382,32 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolar import (line as v_line) + from plotly.validators.scatterpolar import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['dash'] = v_line.DashValidator() - self._validators['shape'] = v_line.ShapeValidator() - self._validators['smoothing'] = v_line.SmoothingValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["shape"] = v_line.ShapeValidator() + self._validators["smoothing"] = v_line.SmoothingValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('shape', None) - self['shape'] = shape if shape is not None else _v - _v = arg.pop('smoothing', None) - self['smoothing'] = smoothing if smoothing is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("shape", None) + self["shape"] = shape if shape is not None else _v + _v = arg.pop("smoothing", None) + self["smoothing"] = smoothing if smoothing is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -2445,11 +2442,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -2465,11 +2462,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -2525,11 +2522,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -2545,11 +2542,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -2605,11 +2602,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -2625,11 +2622,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -2680,11 +2677,11 @@ def font(self): ------- plotly.graph_objs.scatterpolar.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -2707,11 +2704,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -2727,17 +2724,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar' + return "scatterpolar" # Self properties description # --------------------------- @@ -2830,7 +2827,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -2850,48 +2847,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolar import (hoverlabel as v_hoverlabel) + from plotly.validators.scatterpolar import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/hoverlabel/__init__.py index 58d1452ade3..dbd9e4d5eaf 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar.hoverlabel' + return "scatterpolar.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolar.hoverlabel import (font as v_font) + from plotly.validators.scatterpolar.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/__init__.py index 188386d2681..91e3253481e 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -26,11 +24,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -51,11 +49,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -74,11 +72,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -99,11 +97,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -122,11 +120,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -187,11 +185,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -214,11 +212,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorscale # ---------- @@ -253,11 +251,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -273,11 +271,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # reversescale # ------------ @@ -297,11 +295,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # width # ----- @@ -318,11 +316,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -338,17 +336,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar.marker' + return "scatterpolar.marker" # Self properties description # --------------------------- @@ -542,7 +540,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -562,54 +560,53 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolar.marker import (line as v_line) + from plotly.validators.scatterpolar.marker import line as v_line # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_line.AutocolorscaleValidator() - self._validators['cauto'] = v_line.CautoValidator() - self._validators['cmax'] = v_line.CmaxValidator() - self._validators['cmid'] = v_line.CmidValidator() - self._validators['cmin'] = v_line.CminValidator() - self._validators['color'] = v_line.ColorValidator() - self._validators['coloraxis'] = v_line.ColoraxisValidator() - self._validators['colorscale'] = v_line.ColorscaleValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['reversescale'] = v_line.ReversescaleValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["autocolorscale"] = v_line.AutocolorscaleValidator() + self._validators["cauto"] = v_line.CautoValidator() + self._validators["cmax"] = v_line.CmaxValidator() + self._validators["cmid"] = v_line.CmidValidator() + self._validators["cmin"] = v_line.CminValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["coloraxis"] = v_line.ColoraxisValidator() + self._validators["colorscale"] = v_line.ColorscaleValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["reversescale"] = v_line.ReversescaleValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -681,11 +678,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -701,11 +698,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # type # ---- @@ -723,11 +720,11 @@ def type(self): ------- Any|numpy.ndarray """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # typesrc # ------- @@ -743,17 +740,17 @@ def typesrc(self): ------- str """ - return self['typesrc'] + return self["typesrc"] @typesrc.setter def typesrc(self, val): - self['typesrc'] = val + self["typesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar.marker' + return "scatterpolar.marker" # Self properties description # --------------------------- @@ -773,13 +770,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - colorsrc=None, - type=None, - typesrc=None, - **kwargs + self, arg=None, color=None, colorsrc=None, type=None, typesrc=None, **kwargs ): """ Construct a new Gradient object @@ -805,7 +796,7 @@ def __init__( ------- Gradient """ - super(Gradient, self).__init__('gradient') + super(Gradient, self).__init__("gradient") # Validate arg # ------------ @@ -825,31 +816,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolar.marker import ( - gradient as v_gradient - ) + from plotly.validators.scatterpolar.marker import gradient as v_gradient # Initialize validators # --------------------- - self._validators['color'] = v_gradient.ColorValidator() - self._validators['colorsrc'] = v_gradient.ColorsrcValidator() - self._validators['type'] = v_gradient.TypeValidator() - self._validators['typesrc'] = v_gradient.TypesrcValidator() + self._validators["color"] = v_gradient.ColorValidator() + self._validators["colorsrc"] = v_gradient.ColorsrcValidator() + self._validators["type"] = v_gradient.TypeValidator() + self._validators["typesrc"] = v_gradient.TypesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('typesrc', None) - self['typesrc'] = typesrc if typesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("typesrc", None) + self["typesrc"] = typesrc if typesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -919,11 +908,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -978,11 +967,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -998,11 +987,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -1036,11 +1025,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -1061,11 +1050,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -1083,11 +1072,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -1106,11 +1095,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -1130,11 +1119,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -1189,11 +1178,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -1209,11 +1198,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -1229,11 +1218,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1253,11 +1242,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1273,11 +1262,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1297,11 +1286,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1318,11 +1307,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1339,11 +1328,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1362,11 +1351,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1389,11 +1378,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1413,11 +1402,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1472,11 +1461,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1517,11 +1506,11 @@ def tickfont(self): ------- plotly.graph_objs.scatterpolar.marker.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1546,11 +1535,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1603,11 +1592,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.scatterpolar.marker.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1631,11 +1620,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.scatterpolar.marker.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1651,11 +1640,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1678,11 +1667,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1699,11 +1688,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1722,11 +1711,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1743,11 +1732,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1765,11 +1754,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1785,11 +1774,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1806,11 +1795,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1826,11 +1815,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1846,11 +1835,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1885,11 +1874,11 @@ def title(self): ------- plotly.graph_objs.scatterpolar.marker.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1933,11 +1922,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1957,11 +1946,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1977,11 +1966,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -2000,11 +1989,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -2020,11 +2009,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -2040,11 +2029,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -2063,11 +2052,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -2083,17 +2072,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar.marker' + return "scatterpolar.marker" # Self properties description # --------------------------- @@ -2290,8 +2279,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2543,7 +2532,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2563,166 +2552,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolar.marker import ( - colorbar as v_colorbar - ) + from plotly.validators.scatterpolar.marker import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/__init__.py index b3bb6afc014..24605a408dc 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.scatterpolar.marker.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar.marker.colorbar' + return "scatterpolar.marker.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,28 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolar.marker.colorbar import ( - title as v_title - ) + from plotly.validators.scatterpolar.marker.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -231,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -252,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -279,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -307,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -329,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar.marker.colorbar' + return "scatterpolar.marker.colorbar" # Self properties description # --------------------------- @@ -432,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -452,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.scatterpolar.marker.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -549,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -580,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -598,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar.marker.colorbar' + return "scatterpolar.marker.colorbar" # Self properties description # --------------------------- @@ -670,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -690,28 +688,28 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.scatterpolar.marker.colorbar import ( - tickfont as v_tickfont + tickfont as v_tickfont, ) # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/title/__init__.py index 6b8adcc9f36..3454db0eb1d 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/marker/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar.marker.colorbar.title' + return "scatterpolar.marker.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolar.marker.colorbar.title import ( - font as v_font - ) + from plotly.validators.scatterpolar.marker.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/selected/__init__.py index fc1ca03c2e3..4587bd16cec 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/selected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,17 +57,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar.selected' + return "scatterpolar.selected" # Self properties description # --------------------------- @@ -97,7 +95,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -117,22 +115,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolar.selected import ( - textfont as v_textfont - ) + from plotly.validators.scatterpolar.selected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -202,11 +198,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -222,11 +218,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -242,17 +238,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar.selected' + return "scatterpolar.selected" # Self properties description # --------------------------- @@ -267,9 +263,7 @@ def _prop_descriptions(self): Sets the marker size of selected points. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -290,7 +284,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -310,28 +304,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolar.selected import ( - marker as v_marker - ) + from plotly.validators.scatterpolar.selected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolar/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolar/unselected/__init__.py index 13b3079d34b..3ac0f8e6faf 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolar/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolar/unselected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,17 +58,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar.unselected' + return "scatterpolar.unselected" # Self properties description # --------------------------- @@ -100,7 +98,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -120,22 +118,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolar.unselected import ( - textfont as v_textfont - ) + from plotly.validators.scatterpolar.unselected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -206,11 +202,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -227,11 +223,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -248,17 +244,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolar.unselected' + return "scatterpolar.unselected" # Self properties description # --------------------------- @@ -276,9 +272,7 @@ def _prop_descriptions(self): when a selection exists. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -302,7 +296,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -322,28 +316,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolar.unselected import ( - marker as v_marker - ) + from plotly.validators.scatterpolar.unselected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/__init__.py index c16f3b7863f..ebc189c57c6 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -33,11 +31,11 @@ def marker(self): ------- plotly.graph_objs.scatterpolargl.unselected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -60,17 +58,17 @@ def textfont(self): ------- plotly.graph_objs.scatterpolargl.unselected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl' + return "scatterpolargl" # Self properties description # --------------------------- @@ -106,7 +104,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__('unselected') + super(Unselected, self).__init__("unselected") # Validate arg # ------------ @@ -126,25 +124,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolargl import ( - unselected as v_unselected - ) + from plotly.validators.scatterpolargl import unselected as v_unselected # Initialize validators # --------------------- - self._validators['marker'] = v_unselected.MarkerValidator() - self._validators['textfont'] = v_unselected.TextfontValidator() + self._validators["marker"] = v_unselected.MarkerValidator() + self._validators["textfont"] = v_unselected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -213,11 +209,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -233,11 +229,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -265,11 +261,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -285,11 +281,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -304,11 +300,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -324,17 +320,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl' + return "scatterpolargl" # Self properties description # --------------------------- @@ -418,7 +414,7 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -438,35 +434,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolargl import (textfont as v_textfont) + from plotly.validators.scatterpolargl import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() - self._validators['colorsrc'] = v_textfont.ColorsrcValidator() - self._validators['family'] = v_textfont.FamilyValidator() - self._validators['familysrc'] = v_textfont.FamilysrcValidator() - self._validators['size'] = v_textfont.SizeValidator() - self._validators['sizesrc'] = v_textfont.SizesrcValidator() + self._validators["color"] = v_textfont.ColorValidator() + self._validators["colorsrc"] = v_textfont.ColorsrcValidator() + self._validators["family"] = v_textfont.FamilyValidator() + self._validators["familysrc"] = v_textfont.FamilysrcValidator() + self._validators["size"] = v_textfont.SizeValidator() + self._validators["sizesrc"] = v_textfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -499,11 +495,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -520,17 +516,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl' + return "scatterpolargl" # Self properties description # --------------------------- @@ -571,7 +567,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -591,23 +587,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolargl import (stream as v_stream) + from plotly.validators.scatterpolargl import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -648,11 +644,11 @@ def marker(self): ------- plotly.graph_objs.scatterpolargl.selected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -674,17 +670,17 @@ def textfont(self): ------- plotly.graph_objs.scatterpolargl.selected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl' + return "scatterpolargl" # Self properties description # --------------------------- @@ -720,7 +716,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__('selected') + super(Selected, self).__init__("selected") # Validate arg # ------------ @@ -740,23 +736,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolargl import (selected as v_selected) + from plotly.validators.scatterpolargl import selected as v_selected # Initialize validators # --------------------- - self._validators['marker'] = v_selected.MarkerValidator() - self._validators['textfont'] = v_selected.TextfontValidator() + self._validators["marker"] = v_selected.MarkerValidator() + self._validators["textfont"] = v_selected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -793,11 +789,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -818,11 +814,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -841,11 +837,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -865,11 +861,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -888,11 +884,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -953,11 +949,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -980,11 +976,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -1215,11 +1211,11 @@ def colorbar(self): ------- plotly.graph_objs.scatterpolargl.marker.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -1253,11 +1249,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -1273,11 +1269,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # line # ---- @@ -1385,11 +1381,11 @@ def line(self): ------- plotly.graph_objs.scatterpolargl.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # opacity # ------- @@ -1406,11 +1402,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # opacitysrc # ---------- @@ -1426,11 +1422,11 @@ def opacitysrc(self): ------- str """ - return self['opacitysrc'] + return self["opacitysrc"] @opacitysrc.setter def opacitysrc(self, val): - self['opacitysrc'] = val + self["opacitysrc"] = val # reversescale # ------------ @@ -1449,11 +1445,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -1471,11 +1467,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # size # ---- @@ -1492,11 +1488,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizemin # ------- @@ -1514,11 +1510,11 @@ def sizemin(self): ------- int|float """ - return self['sizemin'] + return self["sizemin"] @sizemin.setter def sizemin(self, val): - self['sizemin'] = val + self["sizemin"] = val # sizemode # -------- @@ -1537,11 +1533,11 @@ def sizemode(self): ------- Any """ - return self['sizemode'] + return self["sizemode"] @sizemode.setter def sizemode(self, val): - self['sizemode'] = val + self["sizemode"] = val # sizeref # ------- @@ -1559,11 +1555,11 @@ def sizeref(self): ------- int|float """ - return self['sizeref'] + return self["sizeref"] @sizeref.setter def sizeref(self, val): - self['sizeref'] = val + self["sizeref"] = val # sizesrc # ------- @@ -1579,11 +1575,11 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # symbol # ------ @@ -1664,11 +1660,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self['symbol'] + return self["symbol"] @symbol.setter def symbol(self, val): - self['symbol'] = val + self["symbol"] = val # symbolsrc # --------- @@ -1684,17 +1680,17 @@ def symbolsrc(self): ------- str """ - return self['symbolsrc'] + return self["symbolsrc"] @symbolsrc.setter def symbolsrc(self, val): - self['symbolsrc'] = val + self["symbolsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl' + return "scatterpolargl" # Self properties description # --------------------------- @@ -1957,7 +1953,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -1977,84 +1973,83 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolargl import (marker as v_marker) + from plotly.validators.scatterpolargl import marker as v_marker # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_marker.AutocolorscaleValidator() - self._validators['cauto'] = v_marker.CautoValidator() - self._validators['cmax'] = v_marker.CmaxValidator() - self._validators['cmid'] = v_marker.CmidValidator() - self._validators['cmin'] = v_marker.CminValidator() - self._validators['color'] = v_marker.ColorValidator() - self._validators['coloraxis'] = v_marker.ColoraxisValidator() - self._validators['colorbar'] = v_marker.ColorBarValidator() - self._validators['colorscale'] = v_marker.ColorscaleValidator() - self._validators['colorsrc'] = v_marker.ColorsrcValidator() - self._validators['line'] = v_marker.LineValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['opacitysrc'] = v_marker.OpacitysrcValidator() - self._validators['reversescale'] = v_marker.ReversescaleValidator() - self._validators['showscale'] = v_marker.ShowscaleValidator() - self._validators['size'] = v_marker.SizeValidator() - self._validators['sizemin'] = v_marker.SizeminValidator() - self._validators['sizemode'] = v_marker.SizemodeValidator() - self._validators['sizeref'] = v_marker.SizerefValidator() - self._validators['sizesrc'] = v_marker.SizesrcValidator() - self._validators['symbol'] = v_marker.SymbolValidator() - self._validators['symbolsrc'] = v_marker.SymbolsrcValidator() + self._validators["autocolorscale"] = v_marker.AutocolorscaleValidator() + self._validators["cauto"] = v_marker.CautoValidator() + self._validators["cmax"] = v_marker.CmaxValidator() + self._validators["cmid"] = v_marker.CmidValidator() + self._validators["cmin"] = v_marker.CminValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["coloraxis"] = v_marker.ColoraxisValidator() + self._validators["colorbar"] = v_marker.ColorBarValidator() + self._validators["colorscale"] = v_marker.ColorscaleValidator() + self._validators["colorsrc"] = v_marker.ColorsrcValidator() + self._validators["line"] = v_marker.LineValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["opacitysrc"] = v_marker.OpacitysrcValidator() + self._validators["reversescale"] = v_marker.ReversescaleValidator() + self._validators["showscale"] = v_marker.ShowscaleValidator() + self._validators["size"] = v_marker.SizeValidator() + self._validators["sizemin"] = v_marker.SizeminValidator() + self._validators["sizemode"] = v_marker.SizemodeValidator() + self._validators["sizeref"] = v_marker.SizerefValidator() + self._validators["sizesrc"] = v_marker.SizesrcValidator() + self._validators["symbol"] = v_marker.SymbolValidator() + self._validators["symbolsrc"] = v_marker.SymbolsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('opacitysrc', None) - self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizemin', None) - self['sizemin'] = sizemin if sizemin is not None else _v - _v = arg.pop('sizemode', None) - self['sizemode'] = sizemode if sizemode is not None else _v - _v = arg.pop('sizeref', None) - self['sizeref'] = sizeref if sizeref is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v - _v = arg.pop('symbol', None) - self['symbol'] = symbol if symbol is not None else _v - _v = arg.pop('symbolsrc', None) - self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("opacitysrc", None) + self["opacitysrc"] = opacitysrc if opacitysrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizemin", None) + self["sizemin"] = sizemin if sizemin is not None else _v + _v = arg.pop("sizemode", None) + self["sizemode"] = sizemode if sizemode is not None else _v + _v = arg.pop("sizeref", None) + self["sizeref"] = sizeref if sizeref is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v + _v = arg.pop("symbol", None) + self["symbol"] = symbol if symbol is not None else _v + _v = arg.pop("symbolsrc", None) + self["symbolsrc"] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -2124,11 +2119,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dash # ---- @@ -2146,11 +2141,11 @@ def dash(self): ------- Any """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # shape # ----- @@ -2168,11 +2163,11 @@ def shape(self): ------- Any """ - return self['shape'] + return self["shape"] @shape.setter def shape(self, val): - self['shape'] = val + self["shape"] = val # width # ----- @@ -2188,17 +2183,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl' + return "scatterpolargl" # Self properties description # --------------------------- @@ -2217,13 +2212,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - dash=None, - shape=None, - width=None, - **kwargs + self, arg=None, color=None, dash=None, shape=None, width=None, **kwargs ): """ Construct a new Line object @@ -2247,7 +2236,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -2267,29 +2256,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolargl import (line as v_line) + from plotly.validators.scatterpolargl import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['dash'] = v_line.DashValidator() - self._validators['shape'] = v_line.ShapeValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["shape"] = v_line.ShapeValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('shape', None) - self['shape'] = shape if shape is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("shape", None) + self["shape"] = shape if shape is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -2324,11 +2313,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -2344,11 +2333,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -2404,11 +2393,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -2424,11 +2413,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -2484,11 +2473,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -2504,11 +2493,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -2559,11 +2548,11 @@ def font(self): ------- plotly.graph_objs.scatterpolargl.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -2586,11 +2575,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -2606,17 +2595,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl' + return "scatterpolargl" # Self properties description # --------------------------- @@ -2709,7 +2698,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -2729,50 +2718,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolargl import ( - hoverlabel as v_hoverlabel - ) + from plotly.validators.scatterpolargl import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/hoverlabel/__init__.py index 742695377c9..61cd661fb1b 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl.hoverlabel' + return "scatterpolargl.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,37 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolargl.hoverlabel import ( - font as v_font - ) + from plotly.validators.scatterpolargl.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/__init__.py index 9730c8ececf..b1a3c535c65 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -26,11 +24,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -51,11 +49,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -74,11 +72,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -99,11 +97,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -122,11 +120,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -187,11 +185,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -214,11 +212,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorscale # ---------- @@ -253,11 +251,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -273,11 +271,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # reversescale # ------------ @@ -297,11 +295,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # width # ----- @@ -318,11 +316,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -338,17 +336,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl.marker' + return "scatterpolargl.marker" # Self properties description # --------------------------- @@ -542,7 +540,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -562,54 +560,53 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolargl.marker import (line as v_line) + from plotly.validators.scatterpolargl.marker import line as v_line # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_line.AutocolorscaleValidator() - self._validators['cauto'] = v_line.CautoValidator() - self._validators['cmax'] = v_line.CmaxValidator() - self._validators['cmid'] = v_line.CmidValidator() - self._validators['cmin'] = v_line.CminValidator() - self._validators['color'] = v_line.ColorValidator() - self._validators['coloraxis'] = v_line.ColoraxisValidator() - self._validators['colorscale'] = v_line.ColorscaleValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['reversescale'] = v_line.ReversescaleValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["autocolorscale"] = v_line.AutocolorscaleValidator() + self._validators["cauto"] = v_line.CautoValidator() + self._validators["cmax"] = v_line.CmaxValidator() + self._validators["cmid"] = v_line.CmidValidator() + self._validators["cmin"] = v_line.CminValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["coloraxis"] = v_line.ColoraxisValidator() + self._validators["colorscale"] = v_line.ColorscaleValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["reversescale"] = v_line.ReversescaleValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -679,11 +676,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -738,11 +735,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -758,11 +755,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -796,11 +793,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -821,11 +818,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -843,11 +840,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -866,11 +863,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -890,11 +887,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -949,11 +946,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -969,11 +966,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -989,11 +986,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1013,11 +1010,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1033,11 +1030,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1057,11 +1054,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1078,11 +1075,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1099,11 +1096,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1122,11 +1119,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1149,11 +1146,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1173,11 +1170,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1232,11 +1229,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1277,11 +1274,11 @@ def tickfont(self): ------- plotly.graph_objs.scatterpolargl.marker.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1306,11 +1303,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1363,11 +1360,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.scatterpolargl.marker.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1391,11 +1388,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.scatterpolargl.marker.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1411,11 +1408,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1438,11 +1435,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1459,11 +1456,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1482,11 +1479,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1503,11 +1500,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1525,11 +1522,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1545,11 +1542,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1566,11 +1563,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1586,11 +1583,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1606,11 +1603,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1645,11 +1642,11 @@ def title(self): ------- plotly.graph_objs.scatterpolargl.marker.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1693,11 +1690,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1718,11 +1715,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1738,11 +1735,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1761,11 +1758,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -1781,11 +1778,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -1801,11 +1798,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -1824,11 +1821,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -1844,17 +1841,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl.marker' + return "scatterpolargl.marker" # Self properties description # --------------------------- @@ -2051,8 +2048,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2304,7 +2301,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2324,166 +2321,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolargl.marker import ( - colorbar as v_colorbar - ) + from plotly.validators.scatterpolargl.marker import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/__init__.py index 7d4659c8d09..9cbafb449b3 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.scatterpolargl.marker.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl.marker.colorbar' + return "scatterpolargl.marker.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,28 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolargl.marker.colorbar import ( - title as v_title - ) + from plotly.validators.scatterpolargl.marker.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -231,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -252,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -279,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -307,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -329,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl.marker.colorbar' + return "scatterpolargl.marker.colorbar" # Self properties description # --------------------------- @@ -432,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -452,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.scatterpolargl.marker.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -549,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -580,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -598,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl.marker.colorbar' + return "scatterpolargl.marker.colorbar" # Self properties description # --------------------------- @@ -670,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -690,28 +688,28 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.scatterpolargl.marker.colorbar import ( - tickfont as v_tickfont + tickfont as v_tickfont, ) # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/title/__init__.py index 15c143d7bb7..f824caf3631 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/marker/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl.marker.colorbar.title' + return "scatterpolargl.marker.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,28 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.scatterpolargl.marker.colorbar.title import ( - font as v_font + font as v_font, ) # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/selected/__init__.py index 28bb2d96e0a..58ad4143bab 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/selected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,17 +57,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl.selected' + return "scatterpolargl.selected" # Self properties description # --------------------------- @@ -97,7 +95,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -117,22 +115,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolargl.selected import ( - textfont as v_textfont - ) + from plotly.validators.scatterpolargl.selected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -202,11 +198,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -222,11 +218,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -242,17 +238,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl.selected' + return "scatterpolargl.selected" # Self properties description # --------------------------- @@ -267,9 +263,7 @@ def _prop_descriptions(self): Sets the marker size of selected points. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -290,7 +284,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -310,28 +304,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolargl.selected import ( - marker as v_marker - ) + from plotly.validators.scatterpolargl.selected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterpolargl/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterpolargl/unselected/__init__.py index 4d3a2ab3713..ddc1fbaea28 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterpolargl/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterpolargl/unselected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,17 +58,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl.unselected' + return "scatterpolargl.unselected" # Self properties description # --------------------------- @@ -100,7 +98,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -120,22 +118,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolargl.unselected import ( - textfont as v_textfont - ) + from plotly.validators.scatterpolargl.unselected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -206,11 +202,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -227,11 +223,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -248,17 +244,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterpolargl.unselected' + return "scatterpolargl.unselected" # Self properties description # --------------------------- @@ -276,9 +272,7 @@ def _prop_descriptions(self): when a selection exists. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -302,7 +296,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -322,28 +316,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterpolargl.unselected import ( - marker as v_marker - ) + from plotly.validators.scatterpolargl.unselected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterternary/__init__.py index 70a159ee916..6b57ea75270 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -33,11 +31,11 @@ def marker(self): ------- plotly.graph_objs.scatterternary.unselected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -60,17 +58,17 @@ def textfont(self): ------- plotly.graph_objs.scatterternary.unselected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary' + return "scatterternary" # Self properties description # --------------------------- @@ -106,7 +104,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__('unselected') + super(Unselected, self).__init__("unselected") # Validate arg # ------------ @@ -126,25 +124,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterternary import ( - unselected as v_unselected - ) + from plotly.validators.scatterternary import unselected as v_unselected # Initialize validators # --------------------- - self._validators['marker'] = v_unselected.MarkerValidator() - self._validators['textfont'] = v_unselected.TextfontValidator() + self._validators["marker"] = v_unselected.MarkerValidator() + self._validators["textfont"] = v_unselected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -213,11 +209,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -233,11 +229,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -265,11 +261,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -285,11 +281,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -304,11 +300,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -324,17 +320,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary' + return "scatterternary" # Self properties description # --------------------------- @@ -418,7 +414,7 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -438,35 +434,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterternary import (textfont as v_textfont) + from plotly.validators.scatterternary import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() - self._validators['colorsrc'] = v_textfont.ColorsrcValidator() - self._validators['family'] = v_textfont.FamilyValidator() - self._validators['familysrc'] = v_textfont.FamilysrcValidator() - self._validators['size'] = v_textfont.SizeValidator() - self._validators['sizesrc'] = v_textfont.SizesrcValidator() + self._validators["color"] = v_textfont.ColorValidator() + self._validators["colorsrc"] = v_textfont.ColorsrcValidator() + self._validators["family"] = v_textfont.FamilyValidator() + self._validators["familysrc"] = v_textfont.FamilysrcValidator() + self._validators["size"] = v_textfont.SizeValidator() + self._validators["sizesrc"] = v_textfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -499,11 +495,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -520,17 +516,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary' + return "scatterternary" # Self properties description # --------------------------- @@ -571,7 +567,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -591,23 +587,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterternary import (stream as v_stream) + from plotly.validators.scatterternary import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -648,11 +644,11 @@ def marker(self): ------- plotly.graph_objs.scatterternary.selected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # textfont # -------- @@ -674,17 +670,17 @@ def textfont(self): ------- plotly.graph_objs.scatterternary.selected.Textfont """ - return self['textfont'] + return self["textfont"] @textfont.setter def textfont(self, val): - self['textfont'] = val + self["textfont"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary' + return "scatterternary" # Self properties description # --------------------------- @@ -720,7 +716,7 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__('selected') + super(Selected, self).__init__("selected") # Validate arg # ------------ @@ -740,23 +736,23 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterternary import (selected as v_selected) + from plotly.validators.scatterternary import selected as v_selected # Initialize validators # --------------------- - self._validators['marker'] = v_selected.MarkerValidator() - self._validators['textfont'] = v_selected.TextfontValidator() + self._validators["marker"] = v_selected.MarkerValidator() + self._validators["textfont"] = v_selected.TextfontValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v - _v = arg.pop('textfont', None) - self['textfont'] = textfont if textfont is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v + _v = arg.pop("textfont", None) + self["textfont"] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- @@ -793,11 +789,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -818,11 +814,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -841,11 +837,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -865,11 +861,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -888,11 +884,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -953,11 +949,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -980,11 +976,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -1215,11 +1211,11 @@ def colorbar(self): ------- plotly.graph_objs.scatterternary.marker.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -1253,11 +1249,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -1273,11 +1269,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # gradient # -------- @@ -1310,11 +1306,11 @@ def gradient(self): ------- plotly.graph_objs.scatterternary.marker.Gradient """ - return self['gradient'] + return self["gradient"] @gradient.setter def gradient(self, val): - self['gradient'] = val + self["gradient"] = val # line # ---- @@ -1422,11 +1418,11 @@ def line(self): ------- plotly.graph_objs.scatterternary.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # maxdisplayed # ------------ @@ -1443,11 +1439,11 @@ def maxdisplayed(self): ------- int|float """ - return self['maxdisplayed'] + return self["maxdisplayed"] @maxdisplayed.setter def maxdisplayed(self, val): - self['maxdisplayed'] = val + self["maxdisplayed"] = val # opacity # ------- @@ -1464,11 +1460,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # opacitysrc # ---------- @@ -1484,11 +1480,11 @@ def opacitysrc(self): ------- str """ - return self['opacitysrc'] + return self["opacitysrc"] @opacitysrc.setter def opacitysrc(self, val): - self['opacitysrc'] = val + self["opacitysrc"] = val # reversescale # ------------ @@ -1507,11 +1503,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -1529,11 +1525,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # size # ---- @@ -1550,11 +1546,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizemin # ------- @@ -1572,11 +1568,11 @@ def sizemin(self): ------- int|float """ - return self['sizemin'] + return self["sizemin"] @sizemin.setter def sizemin(self, val): - self['sizemin'] = val + self["sizemin"] = val # sizemode # -------- @@ -1595,11 +1591,11 @@ def sizemode(self): ------- Any """ - return self['sizemode'] + return self["sizemode"] @sizemode.setter def sizemode(self, val): - self['sizemode'] = val + self["sizemode"] = val # sizeref # ------- @@ -1617,11 +1613,11 @@ def sizeref(self): ------- int|float """ - return self['sizeref'] + return self["sizeref"] @sizeref.setter def sizeref(self, val): - self['sizeref'] = val + self["sizeref"] = val # sizesrc # ------- @@ -1637,11 +1633,11 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # symbol # ------ @@ -1722,11 +1718,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self['symbol'] + return self["symbol"] @symbol.setter def symbol(self, val): - self['symbol'] = val + self["symbol"] = val # symbolsrc # --------- @@ -1742,17 +1738,17 @@ def symbolsrc(self): ------- str """ - return self['symbolsrc'] + return self["symbolsrc"] @symbolsrc.setter def symbolsrc(self, val): - self['symbolsrc'] = val + self["symbolsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary' + return "scatterternary" # Self properties description # --------------------------- @@ -2029,7 +2025,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -2049,90 +2045,89 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterternary import (marker as v_marker) + from plotly.validators.scatterternary import marker as v_marker # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_marker.AutocolorscaleValidator() - self._validators['cauto'] = v_marker.CautoValidator() - self._validators['cmax'] = v_marker.CmaxValidator() - self._validators['cmid'] = v_marker.CmidValidator() - self._validators['cmin'] = v_marker.CminValidator() - self._validators['color'] = v_marker.ColorValidator() - self._validators['coloraxis'] = v_marker.ColoraxisValidator() - self._validators['colorbar'] = v_marker.ColorBarValidator() - self._validators['colorscale'] = v_marker.ColorscaleValidator() - self._validators['colorsrc'] = v_marker.ColorsrcValidator() - self._validators['gradient'] = v_marker.GradientValidator() - self._validators['line'] = v_marker.LineValidator() - self._validators['maxdisplayed'] = v_marker.MaxdisplayedValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['opacitysrc'] = v_marker.OpacitysrcValidator() - self._validators['reversescale'] = v_marker.ReversescaleValidator() - self._validators['showscale'] = v_marker.ShowscaleValidator() - self._validators['size'] = v_marker.SizeValidator() - self._validators['sizemin'] = v_marker.SizeminValidator() - self._validators['sizemode'] = v_marker.SizemodeValidator() - self._validators['sizeref'] = v_marker.SizerefValidator() - self._validators['sizesrc'] = v_marker.SizesrcValidator() - self._validators['symbol'] = v_marker.SymbolValidator() - self._validators['symbolsrc'] = v_marker.SymbolsrcValidator() + self._validators["autocolorscale"] = v_marker.AutocolorscaleValidator() + self._validators["cauto"] = v_marker.CautoValidator() + self._validators["cmax"] = v_marker.CmaxValidator() + self._validators["cmid"] = v_marker.CmidValidator() + self._validators["cmin"] = v_marker.CminValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["coloraxis"] = v_marker.ColoraxisValidator() + self._validators["colorbar"] = v_marker.ColorBarValidator() + self._validators["colorscale"] = v_marker.ColorscaleValidator() + self._validators["colorsrc"] = v_marker.ColorsrcValidator() + self._validators["gradient"] = v_marker.GradientValidator() + self._validators["line"] = v_marker.LineValidator() + self._validators["maxdisplayed"] = v_marker.MaxdisplayedValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["opacitysrc"] = v_marker.OpacitysrcValidator() + self._validators["reversescale"] = v_marker.ReversescaleValidator() + self._validators["showscale"] = v_marker.ShowscaleValidator() + self._validators["size"] = v_marker.SizeValidator() + self._validators["sizemin"] = v_marker.SizeminValidator() + self._validators["sizemode"] = v_marker.SizemodeValidator() + self._validators["sizeref"] = v_marker.SizerefValidator() + self._validators["sizesrc"] = v_marker.SizesrcValidator() + self._validators["symbol"] = v_marker.SymbolValidator() + self._validators["symbolsrc"] = v_marker.SymbolsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('gradient', None) - self['gradient'] = gradient if gradient is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('maxdisplayed', None) - self['maxdisplayed'] = maxdisplayed if maxdisplayed is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('opacitysrc', None) - self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizemin', None) - self['sizemin'] = sizemin if sizemin is not None else _v - _v = arg.pop('sizemode', None) - self['sizemode'] = sizemode if sizemode is not None else _v - _v = arg.pop('sizeref', None) - self['sizeref'] = sizeref if sizeref is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v - _v = arg.pop('symbol', None) - self['symbol'] = symbol if symbol is not None else _v - _v = arg.pop('symbolsrc', None) - self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("gradient", None) + self["gradient"] = gradient if gradient is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("maxdisplayed", None) + self["maxdisplayed"] = maxdisplayed if maxdisplayed is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("opacitysrc", None) + self["opacitysrc"] = opacitysrc if opacitysrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizemin", None) + self["sizemin"] = sizemin if sizemin is not None else _v + _v = arg.pop("sizemode", None) + self["sizemode"] = sizemode if sizemode is not None else _v + _v = arg.pop("sizeref", None) + self["sizeref"] = sizeref if sizeref is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v + _v = arg.pop("symbol", None) + self["symbol"] = symbol if symbol is not None else _v + _v = arg.pop("symbolsrc", None) + self["symbolsrc"] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -2202,11 +2197,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dash # ---- @@ -2228,11 +2223,11 @@ def dash(self): ------- str """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # shape # ----- @@ -2251,11 +2246,11 @@ def shape(self): ------- Any """ - return self['shape'] + return self["shape"] @shape.setter def shape(self, val): - self['shape'] = val + self["shape"] = val # smoothing # --------- @@ -2273,11 +2268,11 @@ def smoothing(self): ------- int|float """ - return self['smoothing'] + return self["smoothing"] @smoothing.setter def smoothing(self, val): - self['smoothing'] = val + self["smoothing"] = val # width # ----- @@ -2293,17 +2288,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary' + return "scatterternary" # Self properties description # --------------------------- @@ -2369,7 +2364,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -2389,32 +2384,32 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterternary import (line as v_line) + from plotly.validators.scatterternary import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['dash'] = v_line.DashValidator() - self._validators['shape'] = v_line.ShapeValidator() - self._validators['smoothing'] = v_line.SmoothingValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["shape"] = v_line.ShapeValidator() + self._validators["smoothing"] = v_line.SmoothingValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('shape', None) - self['shape'] = shape if shape is not None else _v - _v = arg.pop('smoothing', None) - self['smoothing'] = smoothing if smoothing is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("shape", None) + self["shape"] = shape if shape is not None else _v + _v = arg.pop("smoothing", None) + self["smoothing"] = smoothing if smoothing is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -2449,11 +2444,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -2469,11 +2464,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -2529,11 +2524,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -2549,11 +2544,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -2609,11 +2604,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -2629,11 +2624,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -2684,11 +2679,11 @@ def font(self): ------- plotly.graph_objs.scatterternary.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -2711,11 +2706,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -2731,17 +2726,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary' + return "scatterternary" # Self properties description # --------------------------- @@ -2834,7 +2829,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -2854,50 +2849,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterternary import ( - hoverlabel as v_hoverlabel - ) + from plotly.validators.scatterternary import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterternary/hoverlabel/__init__.py index 9699145a8cf..b5355b3f847 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary.hoverlabel' + return "scatterternary.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,37 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterternary.hoverlabel import ( - font as v_font - ) + from plotly.validators.scatterternary.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/__init__.py index 1197c0a802b..f057819b84d 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -26,11 +24,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -51,11 +49,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -74,11 +72,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -99,11 +97,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -122,11 +120,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -187,11 +185,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -214,11 +212,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorscale # ---------- @@ -253,11 +251,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -273,11 +271,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # reversescale # ------------ @@ -297,11 +295,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # width # ----- @@ -318,11 +316,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -338,17 +336,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary.marker' + return "scatterternary.marker" # Self properties description # --------------------------- @@ -542,7 +540,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -562,54 +560,53 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterternary.marker import (line as v_line) + from plotly.validators.scatterternary.marker import line as v_line # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_line.AutocolorscaleValidator() - self._validators['cauto'] = v_line.CautoValidator() - self._validators['cmax'] = v_line.CmaxValidator() - self._validators['cmid'] = v_line.CmidValidator() - self._validators['cmin'] = v_line.CminValidator() - self._validators['color'] = v_line.ColorValidator() - self._validators['coloraxis'] = v_line.ColoraxisValidator() - self._validators['colorscale'] = v_line.ColorscaleValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['reversescale'] = v_line.ReversescaleValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["autocolorscale"] = v_line.AutocolorscaleValidator() + self._validators["cauto"] = v_line.CautoValidator() + self._validators["cmax"] = v_line.CmaxValidator() + self._validators["cmid"] = v_line.CmidValidator() + self._validators["cmin"] = v_line.CminValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["coloraxis"] = v_line.ColoraxisValidator() + self._validators["colorscale"] = v_line.ColorscaleValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["reversescale"] = v_line.ReversescaleValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -681,11 +678,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -701,11 +698,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # type # ---- @@ -723,11 +720,11 @@ def type(self): ------- Any|numpy.ndarray """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # typesrc # ------- @@ -743,17 +740,17 @@ def typesrc(self): ------- str """ - return self['typesrc'] + return self["typesrc"] @typesrc.setter def typesrc(self, val): - self['typesrc'] = val + self["typesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary.marker' + return "scatterternary.marker" # Self properties description # --------------------------- @@ -773,13 +770,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - colorsrc=None, - type=None, - typesrc=None, - **kwargs + self, arg=None, color=None, colorsrc=None, type=None, typesrc=None, **kwargs ): """ Construct a new Gradient object @@ -805,7 +796,7 @@ def __init__( ------- Gradient """ - super(Gradient, self).__init__('gradient') + super(Gradient, self).__init__("gradient") # Validate arg # ------------ @@ -825,31 +816,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterternary.marker import ( - gradient as v_gradient - ) + from plotly.validators.scatterternary.marker import gradient as v_gradient # Initialize validators # --------------------- - self._validators['color'] = v_gradient.ColorValidator() - self._validators['colorsrc'] = v_gradient.ColorsrcValidator() - self._validators['type'] = v_gradient.TypeValidator() - self._validators['typesrc'] = v_gradient.TypesrcValidator() + self._validators["color"] = v_gradient.ColorValidator() + self._validators["colorsrc"] = v_gradient.ColorsrcValidator() + self._validators["type"] = v_gradient.TypeValidator() + self._validators["typesrc"] = v_gradient.TypesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v - _v = arg.pop('typesrc', None) - self['typesrc'] = typesrc if typesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v + _v = arg.pop("typesrc", None) + self["typesrc"] = typesrc if typesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -919,11 +908,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -978,11 +967,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -998,11 +987,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -1036,11 +1025,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -1061,11 +1050,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -1083,11 +1072,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -1106,11 +1095,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -1130,11 +1119,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -1189,11 +1178,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -1209,11 +1198,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -1229,11 +1218,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1253,11 +1242,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1273,11 +1262,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1297,11 +1286,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1318,11 +1307,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1339,11 +1328,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1362,11 +1351,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1389,11 +1378,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1413,11 +1402,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1472,11 +1461,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1517,11 +1506,11 @@ def tickfont(self): ------- plotly.graph_objs.scatterternary.marker.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1546,11 +1535,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1603,11 +1592,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.scatterternary.marker.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1631,11 +1620,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.scatterternary.marker.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1651,11 +1640,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1678,11 +1667,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1699,11 +1688,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1722,11 +1711,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1743,11 +1732,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1765,11 +1754,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1785,11 +1774,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1806,11 +1795,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1826,11 +1815,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1846,11 +1835,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1885,11 +1874,11 @@ def title(self): ------- plotly.graph_objs.scatterternary.marker.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1933,11 +1922,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1958,11 +1947,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1978,11 +1967,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -2001,11 +1990,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -2021,11 +2010,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -2041,11 +2030,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -2064,11 +2053,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -2084,17 +2073,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary.marker' + return "scatterternary.marker" # Self properties description # --------------------------- @@ -2291,8 +2280,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2544,7 +2533,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2564,166 +2553,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterternary.marker import ( - colorbar as v_colorbar - ) + from plotly.validators.scatterternary.marker import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/__init__.py index 3275f97fcec..994ca502f32 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.scatterternary.marker.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary.marker.colorbar' + return "scatterternary.marker.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,28 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterternary.marker.colorbar import ( - title as v_title - ) + from plotly.validators.scatterternary.marker.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -231,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -252,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -279,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -307,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -329,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary.marker.colorbar' + return "scatterternary.marker.colorbar" # Self properties description # --------------------------- @@ -432,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -452,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.scatterternary.marker.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -549,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -580,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -598,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary.marker.colorbar' + return "scatterternary.marker.colorbar" # Self properties description # --------------------------- @@ -670,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -690,28 +688,28 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.scatterternary.marker.colorbar import ( - tickfont as v_tickfont + tickfont as v_tickfont, ) # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/title/__init__.py index 472c3b06ee2..cbca2b04051 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/marker/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary.marker.colorbar.title' + return "scatterternary.marker.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,28 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.scatterternary.marker.colorbar.title import ( - font as v_font + font as v_font, ) # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterternary/selected/__init__.py index 87b8ba76d1d..c3330e15c59 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/selected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,17 +57,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary.selected' + return "scatterternary.selected" # Self properties description # --------------------------- @@ -97,7 +95,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -117,22 +115,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterternary.selected import ( - textfont as v_textfont - ) + from plotly.validators.scatterternary.selected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -202,11 +198,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -222,11 +218,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -242,17 +238,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary.selected' + return "scatterternary.selected" # Self properties description # --------------------------- @@ -267,9 +263,7 @@ def _prop_descriptions(self): Sets the marker size of selected points. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -290,7 +284,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -310,28 +304,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterternary.selected import ( - marker as v_marker - ) + from plotly.validators.scatterternary.selected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/scatterternary/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/scatterternary/unselected/__init__.py index 91c445528b4..da1a8548fad 100644 --- a/packages/python/plotly/plotly/graph_objs/scatterternary/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/scatterternary/unselected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,17 +58,17 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary.unselected' + return "scatterternary.unselected" # Self properties description # --------------------------- @@ -100,7 +98,7 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -120,22 +118,20 @@ def __init__(self, arg=None, color=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterternary.unselected import ( - textfont as v_textfont - ) + from plotly.validators.scatterternary.unselected import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() + self._validators["color"] = v_textfont.ColorValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v # Process unknown kwargs # ---------------------- @@ -206,11 +202,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -227,11 +223,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -248,17 +244,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'scatterternary.unselected' + return "scatterternary.unselected" # Self properties description # --------------------------- @@ -276,9 +272,7 @@ def _prop_descriptions(self): when a selection exists. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -302,7 +296,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -322,28 +316,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.scatterternary.unselected import ( - marker as v_marker - ) + from plotly.validators.scatterternary.unselected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/__init__.py b/packages/python/plotly/plotly/graph_objs/splom/__init__.py index c284888f36c..c8542a421ab 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/splom/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -33,17 +31,17 @@ def marker(self): ------- plotly.graph_objs.splom.unselected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'splom' + return "splom" # Self properties description # --------------------------- @@ -72,7 +70,7 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__('unselected') + super(Unselected, self).__init__("unselected") # Validate arg # ------------ @@ -92,20 +90,20 @@ def __init__(self, arg=None, marker=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.splom import (unselected as v_unselected) + from plotly.validators.splom import unselected as v_unselected # Initialize validators # --------------------- - self._validators['marker'] = v_unselected.MarkerValidator() + self._validators["marker"] = v_unselected.MarkerValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- @@ -138,11 +136,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -159,17 +157,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'splom' + return "splom" # Self properties description # --------------------------- @@ -210,7 +208,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -230,23 +228,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.splom import (stream as v_stream) + from plotly.validators.splom import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -287,17 +285,17 @@ def marker(self): ------- plotly.graph_objs.splom.selected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'splom' + return "splom" # Self properties description # --------------------------- @@ -326,7 +324,7 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__('selected') + super(Selected, self).__init__("selected") # Validate arg # ------------ @@ -346,20 +344,20 @@ def __init__(self, arg=None, marker=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.splom import (selected as v_selected) + from plotly.validators.splom import selected as v_selected # Initialize validators # --------------------- - self._validators['marker'] = v_selected.MarkerValidator() + self._validators["marker"] = v_selected.MarkerValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- @@ -396,11 +394,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -421,11 +419,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -444,11 +442,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -468,11 +466,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -491,11 +489,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -556,11 +554,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -583,11 +581,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorbar # -------- @@ -817,11 +815,11 @@ def colorbar(self): ------- plotly.graph_objs.splom.marker.ColorBar """ - return self['colorbar'] + return self["colorbar"] @colorbar.setter def colorbar(self, val): - self['colorbar'] = val + self["colorbar"] = val # colorscale # ---------- @@ -855,11 +853,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -875,11 +873,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # line # ---- @@ -987,11 +985,11 @@ def line(self): ------- plotly.graph_objs.splom.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # opacity # ------- @@ -1008,11 +1006,11 @@ def opacity(self): ------- int|float|numpy.ndarray """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # opacitysrc # ---------- @@ -1028,11 +1026,11 @@ def opacitysrc(self): ------- str """ - return self['opacitysrc'] + return self["opacitysrc"] @opacitysrc.setter def opacitysrc(self, val): - self['opacitysrc'] = val + self["opacitysrc"] = val # reversescale # ------------ @@ -1051,11 +1049,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # showscale # --------- @@ -1073,11 +1071,11 @@ def showscale(self): ------- bool """ - return self['showscale'] + return self["showscale"] @showscale.setter def showscale(self, val): - self['showscale'] = val + self["showscale"] = val # size # ---- @@ -1094,11 +1092,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizemin # ------- @@ -1116,11 +1114,11 @@ def sizemin(self): ------- int|float """ - return self['sizemin'] + return self["sizemin"] @sizemin.setter def sizemin(self, val): - self['sizemin'] = val + self["sizemin"] = val # sizemode # -------- @@ -1139,11 +1137,11 @@ def sizemode(self): ------- Any """ - return self['sizemode'] + return self["sizemode"] @sizemode.setter def sizemode(self, val): - self['sizemode'] = val + self["sizemode"] = val # sizeref # ------- @@ -1161,11 +1159,11 @@ def sizeref(self): ------- int|float """ - return self['sizeref'] + return self["sizeref"] @sizeref.setter def sizeref(self, val): - self['sizeref'] = val + self["sizeref"] = val # sizesrc # ------- @@ -1181,11 +1179,11 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # symbol # ------ @@ -1266,11 +1264,11 @@ def symbol(self): ------- Any|numpy.ndarray """ - return self['symbol'] + return self["symbol"] @symbol.setter def symbol(self, val): - self['symbol'] = val + self["symbol"] = val # symbolsrc # --------- @@ -1286,17 +1284,17 @@ def symbolsrc(self): ------- str """ - return self['symbolsrc'] + return self["symbolsrc"] @symbolsrc.setter def symbolsrc(self, val): - self['symbolsrc'] = val + self["symbolsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'splom' + return "splom" # Self properties description # --------------------------- @@ -1559,7 +1557,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -1579,84 +1577,83 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.splom import (marker as v_marker) + from plotly.validators.splom import marker as v_marker # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_marker.AutocolorscaleValidator() - self._validators['cauto'] = v_marker.CautoValidator() - self._validators['cmax'] = v_marker.CmaxValidator() - self._validators['cmid'] = v_marker.CmidValidator() - self._validators['cmin'] = v_marker.CminValidator() - self._validators['color'] = v_marker.ColorValidator() - self._validators['coloraxis'] = v_marker.ColoraxisValidator() - self._validators['colorbar'] = v_marker.ColorBarValidator() - self._validators['colorscale'] = v_marker.ColorscaleValidator() - self._validators['colorsrc'] = v_marker.ColorsrcValidator() - self._validators['line'] = v_marker.LineValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['opacitysrc'] = v_marker.OpacitysrcValidator() - self._validators['reversescale'] = v_marker.ReversescaleValidator() - self._validators['showscale'] = v_marker.ShowscaleValidator() - self._validators['size'] = v_marker.SizeValidator() - self._validators['sizemin'] = v_marker.SizeminValidator() - self._validators['sizemode'] = v_marker.SizemodeValidator() - self._validators['sizeref'] = v_marker.SizerefValidator() - self._validators['sizesrc'] = v_marker.SizesrcValidator() - self._validators['symbol'] = v_marker.SymbolValidator() - self._validators['symbolsrc'] = v_marker.SymbolsrcValidator() + self._validators["autocolorscale"] = v_marker.AutocolorscaleValidator() + self._validators["cauto"] = v_marker.CautoValidator() + self._validators["cmax"] = v_marker.CmaxValidator() + self._validators["cmid"] = v_marker.CmidValidator() + self._validators["cmin"] = v_marker.CminValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["coloraxis"] = v_marker.ColoraxisValidator() + self._validators["colorbar"] = v_marker.ColorBarValidator() + self._validators["colorscale"] = v_marker.ColorscaleValidator() + self._validators["colorsrc"] = v_marker.ColorsrcValidator() + self._validators["line"] = v_marker.LineValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["opacitysrc"] = v_marker.OpacitysrcValidator() + self._validators["reversescale"] = v_marker.ReversescaleValidator() + self._validators["showscale"] = v_marker.ShowscaleValidator() + self._validators["size"] = v_marker.SizeValidator() + self._validators["sizemin"] = v_marker.SizeminValidator() + self._validators["sizemode"] = v_marker.SizemodeValidator() + self._validators["sizeref"] = v_marker.SizerefValidator() + self._validators["sizesrc"] = v_marker.SizesrcValidator() + self._validators["symbol"] = v_marker.SymbolValidator() + self._validators["symbolsrc"] = v_marker.SymbolsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorbar', None) - self['colorbar'] = colorbar if colorbar is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('opacitysrc', None) - self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('showscale', None) - self['showscale'] = showscale if showscale is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizemin', None) - self['sizemin'] = sizemin if sizemin is not None else _v - _v = arg.pop('sizemode', None) - self['sizemode'] = sizemode if sizemode is not None else _v - _v = arg.pop('sizeref', None) - self['sizeref'] = sizeref if sizeref is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v - _v = arg.pop('symbol', None) - self['symbol'] = symbol if symbol is not None else _v - _v = arg.pop('symbolsrc', None) - self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorbar", None) + self["colorbar"] = colorbar if colorbar is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("opacitysrc", None) + self["opacitysrc"] = opacitysrc if opacitysrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("showscale", None) + self["showscale"] = showscale if showscale is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizemin", None) + self["sizemin"] = sizemin if sizemin is not None else _v + _v = arg.pop("sizemode", None) + self["sizemode"] = sizemode if sizemode is not None else _v + _v = arg.pop("sizeref", None) + self["sizeref"] = sizeref if sizeref is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v + _v = arg.pop("symbol", None) + self["symbol"] = symbol if symbol is not None else _v + _v = arg.pop("symbolsrc", None) + self["symbolsrc"] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1691,11 +1688,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -1711,11 +1708,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -1771,11 +1768,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -1791,11 +1788,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -1851,11 +1848,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -1871,11 +1868,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -1926,11 +1923,11 @@ def font(self): ------- plotly.graph_objs.splom.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -1953,11 +1950,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -1973,17 +1970,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'splom' + return "splom" # Self properties description # --------------------------- @@ -2075,7 +2072,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -2095,48 +2092,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.splom import (hoverlabel as v_hoverlabel) + from plotly.validators.splom import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -2181,11 +2174,11 @@ def axis(self): ------- plotly.graph_objs.splom.dimension.Axis """ - return self['axis'] + return self["axis"] @axis.setter def axis(self, val): - self['axis'] = val + self["axis"] = val # label # ----- @@ -2202,11 +2195,11 @@ def label(self): ------- str """ - return self['label'] + return self["label"] @label.setter def label(self, val): - self['label'] = val + self["label"] = val # name # ---- @@ -2229,11 +2222,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -2257,11 +2250,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # values # ------ @@ -2277,11 +2270,11 @@ def values(self): ------- numpy.ndarray """ - return self['values'] + return self["values"] @values.setter def values(self, val): - self['values'] = val + self["values"] = val # valuessrc # --------- @@ -2297,11 +2290,11 @@ def valuessrc(self): ------- str """ - return self['valuessrc'] + return self["valuessrc"] @valuessrc.setter def valuessrc(self, val): - self['valuessrc'] = val + self["valuessrc"] = val # visible # ------- @@ -2319,17 +2312,17 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'splom' + return "splom" # Self properties description # --------------------------- @@ -2429,7 +2422,7 @@ def __init__( ------- Dimension """ - super(Dimension, self).__init__('dimensions') + super(Dimension, self).__init__("dimensions") # Validate arg # ------------ @@ -2449,40 +2442,40 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.splom import (dimension as v_dimension) + from plotly.validators.splom import dimension as v_dimension # Initialize validators # --------------------- - self._validators['axis'] = v_dimension.AxisValidator() - self._validators['label'] = v_dimension.LabelValidator() - self._validators['name'] = v_dimension.NameValidator() - self._validators['templateitemname' - ] = v_dimension.TemplateitemnameValidator() - self._validators['values'] = v_dimension.ValuesValidator() - self._validators['valuessrc'] = v_dimension.ValuessrcValidator() - self._validators['visible'] = v_dimension.VisibleValidator() + self._validators["axis"] = v_dimension.AxisValidator() + self._validators["label"] = v_dimension.LabelValidator() + self._validators["name"] = v_dimension.NameValidator() + self._validators["templateitemname"] = v_dimension.TemplateitemnameValidator() + self._validators["values"] = v_dimension.ValuesValidator() + self._validators["valuessrc"] = v_dimension.ValuessrcValidator() + self._validators["visible"] = v_dimension.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('axis', None) - self['axis'] = axis if axis is not None else _v - _v = arg.pop('label', None) - self['label'] = label if label is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('values', None) - self['values'] = values if values is not None else _v - _v = arg.pop('valuessrc', None) - self['valuessrc'] = valuessrc if valuessrc is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("axis", None) + self["axis"] = axis if axis is not None else _v + _v = arg.pop("label", None) + self["label"] = label if label is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("values", None) + self["values"] = values if values is not None else _v + _v = arg.pop("valuessrc", None) + self["valuessrc"] = valuessrc if valuessrc is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- @@ -2514,17 +2507,17 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'splom' + return "splom" # Self properties description # --------------------------- @@ -2553,7 +2546,7 @@ def __init__(self, arg=None, visible=None, **kwargs): ------- Diagonal """ - super(Diagonal, self).__init__('diagonal') + super(Diagonal, self).__init__("diagonal") # Validate arg # ------------ @@ -2573,20 +2566,20 @@ def __init__(self, arg=None, visible=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.splom import (diagonal as v_diagonal) + from plotly.validators.splom import diagonal as v_diagonal # Initialize validators # --------------------- - self._validators['visible'] = v_diagonal.VisibleValidator() + self._validators["visible"] = v_diagonal.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/dimension/__init__.py b/packages/python/plotly/plotly/graph_objs/splom/dimension/__init__.py index 184d57ecf90..10203559d15 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/dimension/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/splom/dimension/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -22,11 +20,11 @@ def matches(self): ------- bool """ - return self['matches'] + return self["matches"] @matches.setter def matches(self, val): - self['matches'] = val + self["matches"] = val # type # ---- @@ -45,17 +43,17 @@ def type(self): ------- Any """ - return self['type'] + return self["type"] @type.setter def type(self, val): - self['type'] = val + self["type"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'splom.dimension' + return "splom.dimension" # Self properties description # --------------------------- @@ -96,7 +94,7 @@ def __init__(self, arg=None, matches=None, type=None, **kwargs): ------- Axis """ - super(Axis, self).__init__('axis') + super(Axis, self).__init__("axis") # Validate arg # ------------ @@ -116,23 +114,23 @@ def __init__(self, arg=None, matches=None, type=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.splom.dimension import (axis as v_axis) + from plotly.validators.splom.dimension import axis as v_axis # Initialize validators # --------------------- - self._validators['matches'] = v_axis.MatchesValidator() - self._validators['type'] = v_axis.TypeValidator() + self._validators["matches"] = v_axis.MatchesValidator() + self._validators["type"] = v_axis.TypeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('matches', None) - self['matches'] = matches if matches is not None else _v - _v = arg.pop('type', None) - self['type'] = type if type is not None else _v + _v = arg.pop("matches", None) + self["matches"] = matches if matches is not None else _v + _v = arg.pop("type", None) + self["type"] = type if type is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/splom/hoverlabel/__init__.py index 8a8ca36abfd..7c44320430f 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/splom/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'splom.hoverlabel' + return "splom.hoverlabel" # Self properties description # --------------------------- @@ -262,7 +260,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -282,35 +280,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.splom.hoverlabel import (font as v_font) + from plotly.validators.splom.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/splom/marker/__init__.py index 83b801ffa75..fba93ca8efc 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/splom/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -26,11 +24,11 @@ def autocolorscale(self): ------- bool """ - return self['autocolorscale'] + return self["autocolorscale"] @autocolorscale.setter def autocolorscale(self, val): - self['autocolorscale'] = val + self["autocolorscale"] = val # cauto # ----- @@ -51,11 +49,11 @@ def cauto(self): ------- bool """ - return self['cauto'] + return self["cauto"] @cauto.setter def cauto(self, val): - self['cauto'] = val + self["cauto"] = val # cmax # ---- @@ -74,11 +72,11 @@ def cmax(self): ------- int|float """ - return self['cmax'] + return self["cmax"] @cmax.setter def cmax(self, val): - self['cmax'] = val + self["cmax"] = val # cmid # ---- @@ -99,11 +97,11 @@ def cmid(self): ------- int|float """ - return self['cmid'] + return self["cmid"] @cmid.setter def cmid(self, val): - self['cmid'] = val + self["cmid"] = val # cmin # ---- @@ -122,11 +120,11 @@ def cmin(self): ------- int|float """ - return self['cmin'] + return self["cmin"] @cmin.setter def cmin(self, val): - self['cmin'] = val + self["cmin"] = val # color # ----- @@ -187,11 +185,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # coloraxis # --------- @@ -214,11 +212,11 @@ def coloraxis(self): ------- str """ - return self['coloraxis'] + return self["coloraxis"] @coloraxis.setter def coloraxis(self, val): - self['coloraxis'] = val + self["coloraxis"] = val # colorscale # ---------- @@ -253,11 +251,11 @@ def colorscale(self): ------- str """ - return self['colorscale'] + return self["colorscale"] @colorscale.setter def colorscale(self, val): - self['colorscale'] = val + self["colorscale"] = val # colorsrc # -------- @@ -273,11 +271,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # reversescale # ------------ @@ -297,11 +295,11 @@ def reversescale(self): ------- bool """ - return self['reversescale'] + return self["reversescale"] @reversescale.setter def reversescale(self, val): - self['reversescale'] = val + self["reversescale"] = val # width # ----- @@ -318,11 +316,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -338,17 +336,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'splom.marker' + return "splom.marker" # Self properties description # --------------------------- @@ -541,7 +539,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -561,54 +559,53 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.splom.marker import (line as v_line) + from plotly.validators.splom.marker import line as v_line # Initialize validators # --------------------- - self._validators['autocolorscale'] = v_line.AutocolorscaleValidator() - self._validators['cauto'] = v_line.CautoValidator() - self._validators['cmax'] = v_line.CmaxValidator() - self._validators['cmid'] = v_line.CmidValidator() - self._validators['cmin'] = v_line.CminValidator() - self._validators['color'] = v_line.ColorValidator() - self._validators['coloraxis'] = v_line.ColoraxisValidator() - self._validators['colorscale'] = v_line.ColorscaleValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['reversescale'] = v_line.ReversescaleValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["autocolorscale"] = v_line.AutocolorscaleValidator() + self._validators["cauto"] = v_line.CautoValidator() + self._validators["cmax"] = v_line.CmaxValidator() + self._validators["cmid"] = v_line.CmidValidator() + self._validators["cmin"] = v_line.CminValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["coloraxis"] = v_line.ColoraxisValidator() + self._validators["colorscale"] = v_line.ColorscaleValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["reversescale"] = v_line.ReversescaleValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('autocolorscale', None) - self['autocolorscale' - ] = autocolorscale if autocolorscale is not None else _v - _v = arg.pop('cauto', None) - self['cauto'] = cauto if cauto is not None else _v - _v = arg.pop('cmax', None) - self['cmax'] = cmax if cmax is not None else _v - _v = arg.pop('cmid', None) - self['cmid'] = cmid if cmid is not None else _v - _v = arg.pop('cmin', None) - self['cmin'] = cmin if cmin is not None else _v - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('coloraxis', None) - self['coloraxis'] = coloraxis if coloraxis is not None else _v - _v = arg.pop('colorscale', None) - self['colorscale'] = colorscale if colorscale is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('reversescale', None) - self['reversescale'] = reversescale if reversescale is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("autocolorscale", None) + self["autocolorscale"] = autocolorscale if autocolorscale is not None else _v + _v = arg.pop("cauto", None) + self["cauto"] = cauto if cauto is not None else _v + _v = arg.pop("cmax", None) + self["cmax"] = cmax if cmax is not None else _v + _v = arg.pop("cmid", None) + self["cmid"] = cmid if cmid is not None else _v + _v = arg.pop("cmin", None) + self["cmin"] = cmin if cmin is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("coloraxis", None) + self["coloraxis"] = coloraxis if coloraxis is not None else _v + _v = arg.pop("colorscale", None) + self["colorscale"] = colorscale if colorscale is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("reversescale", None) + self["reversescale"] = reversescale if reversescale is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -678,11 +675,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -737,11 +734,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -757,11 +754,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -795,11 +792,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -820,11 +817,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -842,11 +839,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -865,11 +862,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -889,11 +886,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -948,11 +945,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -968,11 +965,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -988,11 +985,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1012,11 +1009,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1032,11 +1029,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1056,11 +1053,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1077,11 +1074,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1098,11 +1095,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1121,11 +1118,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1148,11 +1145,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1172,11 +1169,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1231,11 +1228,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1276,11 +1273,11 @@ def tickfont(self): ------- plotly.graph_objs.splom.marker.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1305,11 +1302,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -1362,11 +1359,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.splom.marker.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -1390,11 +1387,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.splom.marker.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -1410,11 +1407,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -1437,11 +1434,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -1458,11 +1455,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -1481,11 +1478,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -1502,11 +1499,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -1524,11 +1521,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -1544,11 +1541,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -1565,11 +1562,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -1585,11 +1582,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -1605,11 +1602,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -1644,11 +1641,11 @@ def title(self): ------- plotly.graph_objs.splom.marker.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -1692,11 +1689,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -1716,11 +1713,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -1736,11 +1733,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -1759,11 +1756,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -1779,11 +1776,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -1799,11 +1796,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -1822,11 +1819,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -1842,17 +1839,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'splom.marker' + return "splom.marker" # Self properties description # --------------------------- @@ -2047,8 +2044,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2297,7 +2294,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2317,164 +2314,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.splom.marker import (colorbar as v_colorbar) + from plotly.validators.splom.marker import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/__init__.py index 8df64406b87..97ee5c7d4cf 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.splom.marker.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'splom.marker.colorbar' + return "splom.marker.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,26 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.splom.marker.colorbar import (title as v_title) + from plotly.validators.splom.marker.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -229,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -250,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -277,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -305,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -327,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'splom.marker.colorbar' + return "splom.marker.colorbar" # Self properties description # --------------------------- @@ -430,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -450,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.splom.marker.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -547,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -578,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -596,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'splom.marker.colorbar' + return "splom.marker.colorbar" # Self properties description # --------------------------- @@ -668,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -688,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.splom.marker.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.splom.marker.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/title/__init__.py index 3214c09804c..ea3d299f9ee 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/splom/marker/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'splom.marker.colorbar.title' + return "splom.marker.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.splom.marker.colorbar.title import ( - font as v_font - ) + from plotly.validators.splom.marker.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/splom/selected/__init__.py index ef08e0796bd..57d0f26ff6d 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/splom/selected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -79,11 +77,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -99,17 +97,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'splom.selected' + return "splom.selected" # Self properties description # --------------------------- @@ -124,9 +122,7 @@ def _prop_descriptions(self): Sets the marker size of selected points. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -146,7 +142,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -166,26 +162,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.splom.selected import (marker as v_marker) + from plotly.validators.splom.selected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/splom/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/splom/unselected/__init__.py index 25cd5690bdc..721a9c736a7 100644 --- a/packages/python/plotly/plotly/graph_objs/splom/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/splom/unselected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,11 +58,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -81,11 +79,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -102,17 +100,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'splom.unselected' + return "splom.unselected" # Self properties description # --------------------------- @@ -130,9 +128,7 @@ def _prop_descriptions(self): when a selection exists. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -156,7 +152,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -176,26 +172,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.splom.unselected import (marker as v_marker) + from plotly.validators.splom.unselected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/__init__.py b/packages/python/plotly/plotly/graph_objs/streamtube/__init__.py index ea5235b6d61..286c61146c2 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -22,11 +20,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -43,17 +41,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'streamtube' + return "streamtube" # Self properties description # --------------------------- @@ -94,7 +92,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -114,23 +112,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.streamtube import (stream as v_stream) + from plotly.validators.streamtube import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -162,11 +160,11 @@ def x(self): ------- numpy.ndarray """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xsrc # ---- @@ -182,11 +180,11 @@ def xsrc(self): ------- str """ - return self['xsrc'] + return self["xsrc"] @xsrc.setter def xsrc(self, val): - self['xsrc'] = val + self["xsrc"] = val # y # - @@ -203,11 +201,11 @@ def y(self): ------- numpy.ndarray """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # ysrc # ---- @@ -223,11 +221,11 @@ def ysrc(self): ------- str """ - return self['ysrc'] + return self["ysrc"] @ysrc.setter def ysrc(self, val): - self['ysrc'] = val + self["ysrc"] = val # z # - @@ -244,11 +242,11 @@ def z(self): ------- numpy.ndarray """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # zsrc # ---- @@ -264,17 +262,17 @@ def zsrc(self): ------- str """ - return self['zsrc'] + return self["zsrc"] @zsrc.setter def zsrc(self, val): - self['zsrc'] = val + self["zsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'streamtube' + return "streamtube" # Self properties description # --------------------------- @@ -337,7 +335,7 @@ def __init__( ------- Starts """ - super(Starts, self).__init__('starts') + super(Starts, self).__init__("starts") # Validate arg # ------------ @@ -357,35 +355,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.streamtube import (starts as v_starts) + from plotly.validators.streamtube import starts as v_starts # Initialize validators # --------------------- - self._validators['x'] = v_starts.XValidator() - self._validators['xsrc'] = v_starts.XsrcValidator() - self._validators['y'] = v_starts.YValidator() - self._validators['ysrc'] = v_starts.YsrcValidator() - self._validators['z'] = v_starts.ZValidator() - self._validators['zsrc'] = v_starts.ZsrcValidator() + self._validators["x"] = v_starts.XValidator() + self._validators["xsrc"] = v_starts.XsrcValidator() + self._validators["y"] = v_starts.YValidator() + self._validators["ysrc"] = v_starts.YsrcValidator() + self._validators["z"] = v_starts.ZValidator() + self._validators["zsrc"] = v_starts.ZsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xsrc', None) - self['xsrc'] = xsrc if xsrc is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('ysrc', None) - self['ysrc'] = ysrc if ysrc is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v - _v = arg.pop('zsrc', None) - self['zsrc'] = zsrc if zsrc is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xsrc", None) + self["xsrc"] = xsrc if xsrc is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("ysrc", None) + self["ysrc"] = ysrc if ysrc is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v + _v = arg.pop("zsrc", None) + self["zsrc"] = zsrc if zsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -416,11 +414,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -436,11 +434,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -456,17 +454,17 @@ def z(self): ------- int|float """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'streamtube' + return "streamtube" # Self properties description # --------------------------- @@ -508,7 +506,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__('lightposition') + super(Lightposition, self).__init__("lightposition") # Validate arg # ------------ @@ -528,28 +526,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.streamtube import ( - lightposition as v_lightposition - ) + from plotly.validators.streamtube import lightposition as v_lightposition # Initialize validators # --------------------- - self._validators['x'] = v_lightposition.XValidator() - self._validators['y'] = v_lightposition.YValidator() - self._validators['z'] = v_lightposition.ZValidator() + self._validators["x"] = v_lightposition.XValidator() + self._validators["y"] = v_lightposition.YValidator() + self._validators["z"] = v_lightposition.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- @@ -581,11 +577,11 @@ def ambient(self): ------- int|float """ - return self['ambient'] + return self["ambient"] @ambient.setter def ambient(self, val): - self['ambient'] = val + self["ambient"] = val # diffuse # ------- @@ -602,11 +598,11 @@ def diffuse(self): ------- int|float """ - return self['diffuse'] + return self["diffuse"] @diffuse.setter def diffuse(self, val): - self['diffuse'] = val + self["diffuse"] = val # facenormalsepsilon # ------------------ @@ -623,11 +619,11 @@ def facenormalsepsilon(self): ------- int|float """ - return self['facenormalsepsilon'] + return self["facenormalsepsilon"] @facenormalsepsilon.setter def facenormalsepsilon(self, val): - self['facenormalsepsilon'] = val + self["facenormalsepsilon"] = val # fresnel # ------- @@ -645,11 +641,11 @@ def fresnel(self): ------- int|float """ - return self['fresnel'] + return self["fresnel"] @fresnel.setter def fresnel(self, val): - self['fresnel'] = val + self["fresnel"] = val # roughness # --------- @@ -666,11 +662,11 @@ def roughness(self): ------- int|float """ - return self['roughness'] + return self["roughness"] @roughness.setter def roughness(self, val): - self['roughness'] = val + self["roughness"] = val # specular # -------- @@ -687,11 +683,11 @@ def specular(self): ------- int|float """ - return self['specular'] + return self["specular"] @specular.setter def specular(self, val): - self['specular'] = val + self["specular"] = val # vertexnormalsepsilon # -------------------- @@ -708,17 +704,17 @@ def vertexnormalsepsilon(self): ------- int|float """ - return self['vertexnormalsepsilon'] + return self["vertexnormalsepsilon"] @vertexnormalsepsilon.setter def vertexnormalsepsilon(self, val): - self['vertexnormalsepsilon'] = val + self["vertexnormalsepsilon"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'streamtube' + return "streamtube" # Self properties description # --------------------------- @@ -798,7 +794,7 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__('lighting') + super(Lighting, self).__init__("lighting") # Validate arg # ------------ @@ -818,43 +814,46 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.streamtube import (lighting as v_lighting) + from plotly.validators.streamtube import lighting as v_lighting # Initialize validators # --------------------- - self._validators['ambient'] = v_lighting.AmbientValidator() - self._validators['diffuse'] = v_lighting.DiffuseValidator() - self._validators['facenormalsepsilon' - ] = v_lighting.FacenormalsepsilonValidator() - self._validators['fresnel'] = v_lighting.FresnelValidator() - self._validators['roughness'] = v_lighting.RoughnessValidator() - self._validators['specular'] = v_lighting.SpecularValidator() - self._validators['vertexnormalsepsilon' - ] = v_lighting.VertexnormalsepsilonValidator() + self._validators["ambient"] = v_lighting.AmbientValidator() + self._validators["diffuse"] = v_lighting.DiffuseValidator() + self._validators[ + "facenormalsepsilon" + ] = v_lighting.FacenormalsepsilonValidator() + self._validators["fresnel"] = v_lighting.FresnelValidator() + self._validators["roughness"] = v_lighting.RoughnessValidator() + self._validators["specular"] = v_lighting.SpecularValidator() + self._validators[ + "vertexnormalsepsilon" + ] = v_lighting.VertexnormalsepsilonValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('ambient', None) - self['ambient'] = ambient if ambient is not None else _v - _v = arg.pop('diffuse', None) - self['diffuse'] = diffuse if diffuse is not None else _v - _v = arg.pop('facenormalsepsilon', None) - self['facenormalsepsilon' - ] = facenormalsepsilon if facenormalsepsilon is not None else _v - _v = arg.pop('fresnel', None) - self['fresnel'] = fresnel if fresnel is not None else _v - _v = arg.pop('roughness', None) - self['roughness'] = roughness if roughness is not None else _v - _v = arg.pop('specular', None) - self['specular'] = specular if specular is not None else _v - _v = arg.pop('vertexnormalsepsilon', None) - self[ - 'vertexnormalsepsilon' - ] = vertexnormalsepsilon if vertexnormalsepsilon is not None else _v + _v = arg.pop("ambient", None) + self["ambient"] = ambient if ambient is not None else _v + _v = arg.pop("diffuse", None) + self["diffuse"] = diffuse if diffuse is not None else _v + _v = arg.pop("facenormalsepsilon", None) + self["facenormalsepsilon"] = ( + facenormalsepsilon if facenormalsepsilon is not None else _v + ) + _v = arg.pop("fresnel", None) + self["fresnel"] = fresnel if fresnel is not None else _v + _v = arg.pop("roughness", None) + self["roughness"] = roughness if roughness is not None else _v + _v = arg.pop("specular", None) + self["specular"] = specular if specular is not None else _v + _v = arg.pop("vertexnormalsepsilon", None) + self["vertexnormalsepsilon"] = ( + vertexnormalsepsilon if vertexnormalsepsilon is not None else _v + ) # Process unknown kwargs # ---------------------- @@ -889,11 +888,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -909,11 +908,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -969,11 +968,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -989,11 +988,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -1049,11 +1048,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -1069,11 +1068,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -1124,11 +1123,11 @@ def font(self): ------- plotly.graph_objs.streamtube.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -1151,11 +1150,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -1171,17 +1170,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'streamtube' + return "streamtube" # Self properties description # --------------------------- @@ -1273,7 +1272,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -1293,48 +1292,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.streamtube import (hoverlabel as v_hoverlabel) + from plotly.validators.streamtube import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1404,11 +1399,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -1463,11 +1458,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -1483,11 +1478,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -1521,11 +1516,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -1546,11 +1541,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -1568,11 +1563,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -1591,11 +1586,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -1615,11 +1610,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -1674,11 +1669,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -1694,11 +1689,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -1714,11 +1709,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1738,11 +1733,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1758,11 +1753,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1782,11 +1777,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1803,11 +1798,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1824,11 +1819,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1847,11 +1842,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1874,11 +1869,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1898,11 +1893,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1957,11 +1952,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -2002,11 +1997,11 @@ def tickfont(self): ------- plotly.graph_objs.streamtube.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -2031,11 +2026,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -2088,11 +2083,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.streamtube.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -2115,11 +2110,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.streamtube.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -2135,11 +2130,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -2162,11 +2157,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -2183,11 +2178,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -2206,11 +2201,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -2227,11 +2222,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -2249,11 +2244,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -2269,11 +2264,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -2290,11 +2285,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -2310,11 +2305,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -2330,11 +2325,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -2369,11 +2364,11 @@ def title(self): ------- plotly.graph_objs.streamtube.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -2416,11 +2411,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -2440,11 +2435,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -2460,11 +2455,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -2483,11 +2478,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -2503,11 +2498,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -2523,11 +2518,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -2546,11 +2541,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -2566,17 +2561,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'streamtube' + return "streamtube" # Self properties description # --------------------------- @@ -2771,8 +2766,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -3021,7 +3016,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -3041,164 +3036,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.streamtube import (colorbar as v_colorbar) + from plotly.validators.streamtube import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/__init__.py index 27ad3a83942..ff61cc3875f 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.streamtube.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'streamtube.colorbar' + return "streamtube.colorbar" # Self properties description # --------------------------- @@ -154,7 +152,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -174,26 +172,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.streamtube.colorbar import (title as v_title) + from plotly.validators.streamtube.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -229,11 +227,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -250,11 +248,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -277,11 +275,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -305,11 +303,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -327,17 +325,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'streamtube.colorbar' + return "streamtube.colorbar" # Self properties description # --------------------------- @@ -430,7 +428,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -450,36 +448,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.streamtube.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -547,11 +547,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -578,11 +578,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -596,17 +596,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'streamtube.colorbar' + return "streamtube.colorbar" # Self properties description # --------------------------- @@ -668,7 +668,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -688,28 +688,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.streamtube.colorbar import ( - tickfont as v_tickfont - ) + from plotly.validators.streamtube.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/title/__init__.py index 83377f3e5bb..f48c536ee97 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'streamtube.colorbar.title' + return "streamtube.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,28 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.streamtube.colorbar.title import ( - font as v_font - ) + from plotly.validators.streamtube.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/streamtube/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/streamtube/hoverlabel/__init__.py index 2c7d37edbd2..7c471b3eded 100644 --- a/packages/python/plotly/plotly/graph_objs/streamtube/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/streamtube/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'streamtube.hoverlabel' + return "streamtube.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.streamtube.hoverlabel import (font as v_font) + from plotly.validators.streamtube.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/__init__.py b/packages/python/plotly/plotly/graph_objs/sunburst/__init__.py index 9227f6edff9..d30a47422fd 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sunburst' + return "sunburst" # Self properties description # --------------------------- @@ -262,7 +260,7 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -282,35 +280,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sunburst import (textfont as v_textfont) + from plotly.validators.sunburst import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() - self._validators['colorsrc'] = v_textfont.ColorsrcValidator() - self._validators['family'] = v_textfont.FamilyValidator() - self._validators['familysrc'] = v_textfont.FamilysrcValidator() - self._validators['size'] = v_textfont.SizeValidator() - self._validators['sizesrc'] = v_textfont.SizesrcValidator() + self._validators["color"] = v_textfont.ColorValidator() + self._validators["colorsrc"] = v_textfont.ColorsrcValidator() + self._validators["family"] = v_textfont.FamilyValidator() + self._validators["familysrc"] = v_textfont.FamilysrcValidator() + self._validators["size"] = v_textfont.SizeValidator() + self._validators["sizesrc"] = v_textfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -343,11 +341,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -364,17 +362,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sunburst' + return "sunburst" # Self properties description # --------------------------- @@ -415,7 +413,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -435,23 +433,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sunburst import (stream as v_stream) + from plotly.validators.sunburst import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -520,11 +518,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -540,11 +538,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -572,11 +570,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -592,11 +590,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -611,11 +609,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -631,17 +629,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sunburst' + return "sunburst" # Self properties description # --------------------------- @@ -725,7 +723,7 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__('outsidetextfont') + super(Outsidetextfont, self).__init__("outsidetextfont") # Validate arg # ------------ @@ -745,37 +743,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sunburst import ( - outsidetextfont as v_outsidetextfont - ) + from plotly.validators.sunburst import outsidetextfont as v_outsidetextfont # Initialize validators # --------------------- - self._validators['color'] = v_outsidetextfont.ColorValidator() - self._validators['colorsrc'] = v_outsidetextfont.ColorsrcValidator() - self._validators['family'] = v_outsidetextfont.FamilyValidator() - self._validators['familysrc'] = v_outsidetextfont.FamilysrcValidator() - self._validators['size'] = v_outsidetextfont.SizeValidator() - self._validators['sizesrc'] = v_outsidetextfont.SizesrcValidator() + self._validators["color"] = v_outsidetextfont.ColorValidator() + self._validators["colorsrc"] = v_outsidetextfont.ColorsrcValidator() + self._validators["family"] = v_outsidetextfont.FamilyValidator() + self._validators["familysrc"] = v_outsidetextfont.FamilysrcValidator() + self._validators["size"] = v_outsidetextfont.SizeValidator() + self._validators["sizesrc"] = v_outsidetextfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -808,11 +804,11 @@ def colors(self): ------- numpy.ndarray """ - return self['colors'] + return self["colors"] @colors.setter def colors(self, val): - self['colors'] = val + self["colors"] = val # colorssrc # --------- @@ -828,11 +824,11 @@ def colorssrc(self): ------- str """ - return self['colorssrc'] + return self["colorssrc"] @colorssrc.setter def colorssrc(self, val): - self['colorssrc'] = val + self["colorssrc"] = val # line # ---- @@ -864,17 +860,17 @@ def line(self): ------- plotly.graph_objs.sunburst.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sunburst' + return "sunburst" # Self properties description # --------------------------- @@ -892,9 +888,7 @@ def _prop_descriptions(self): with compatible properties """ - def __init__( - self, arg=None, colors=None, colorssrc=None, line=None, **kwargs - ): + def __init__(self, arg=None, colors=None, colorssrc=None, line=None, **kwargs): """ Construct a new Marker object @@ -917,7 +911,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -937,26 +931,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sunburst import (marker as v_marker) + from plotly.validators.sunburst import marker as v_marker # Initialize validators # --------------------- - self._validators['colors'] = v_marker.ColorsValidator() - self._validators['colorssrc'] = v_marker.ColorssrcValidator() - self._validators['line'] = v_marker.LineValidator() + self._validators["colors"] = v_marker.ColorsValidator() + self._validators["colorssrc"] = v_marker.ColorssrcValidator() + self._validators["line"] = v_marker.LineValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('colors', None) - self['colors'] = colors if colors is not None else _v - _v = arg.pop('colorssrc', None) - self['colorssrc'] = colorssrc if colorssrc is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v + _v = arg.pop("colors", None) + self["colors"] = colors if colors is not None else _v + _v = arg.pop("colorssrc", None) + self["colorssrc"] = colorssrc if colorssrc is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v # Process unknown kwargs # ---------------------- @@ -987,17 +981,17 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sunburst' + return "sunburst" # Self properties description # --------------------------- @@ -1024,7 +1018,7 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Leaf """ - super(Leaf, self).__init__('leaf') + super(Leaf, self).__init__("leaf") # Validate arg # ------------ @@ -1044,20 +1038,20 @@ def __init__(self, arg=None, opacity=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sunburst import (leaf as v_leaf) + from plotly.validators.sunburst import leaf as v_leaf # Initialize validators # --------------------- - self._validators['opacity'] = v_leaf.OpacityValidator() + self._validators["opacity"] = v_leaf.OpacityValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v # Process unknown kwargs # ---------------------- @@ -1126,11 +1120,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -1146,11 +1140,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -1178,11 +1172,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -1198,11 +1192,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -1217,11 +1211,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -1237,17 +1231,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sunburst' + return "sunburst" # Self properties description # --------------------------- @@ -1331,7 +1325,7 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__('insidetextfont') + super(Insidetextfont, self).__init__("insidetextfont") # Validate arg # ------------ @@ -1351,37 +1345,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sunburst import ( - insidetextfont as v_insidetextfont - ) + from plotly.validators.sunburst import insidetextfont as v_insidetextfont # Initialize validators # --------------------- - self._validators['color'] = v_insidetextfont.ColorValidator() - self._validators['colorsrc'] = v_insidetextfont.ColorsrcValidator() - self._validators['family'] = v_insidetextfont.FamilyValidator() - self._validators['familysrc'] = v_insidetextfont.FamilysrcValidator() - self._validators['size'] = v_insidetextfont.SizeValidator() - self._validators['sizesrc'] = v_insidetextfont.SizesrcValidator() + self._validators["color"] = v_insidetextfont.ColorValidator() + self._validators["colorsrc"] = v_insidetextfont.ColorsrcValidator() + self._validators["family"] = v_insidetextfont.FamilyValidator() + self._validators["familysrc"] = v_insidetextfont.FamilysrcValidator() + self._validators["size"] = v_insidetextfont.SizeValidator() + self._validators["sizesrc"] = v_insidetextfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1416,11 +1408,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -1436,11 +1428,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -1496,11 +1488,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -1516,11 +1508,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -1576,11 +1568,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -1596,11 +1588,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -1651,11 +1643,11 @@ def font(self): ------- plotly.graph_objs.sunburst.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -1678,11 +1670,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -1698,17 +1690,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sunburst' + return "sunburst" # Self properties description # --------------------------- @@ -1800,7 +1792,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -1820,48 +1812,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sunburst import (hoverlabel as v_hoverlabel) + from plotly.validators.sunburst import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1894,11 +1882,11 @@ def column(self): ------- int """ - return self['column'] + return self["column"] @column.setter def column(self, val): - self['column'] = val + self["column"] = val # row # --- @@ -1916,11 +1904,11 @@ def row(self): ------- int """ - return self['row'] + return self["row"] @row.setter def row(self, val): - self['row'] = val + self["row"] = val # x # - @@ -1942,11 +1930,11 @@ def x(self): ------- list """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -1968,17 +1956,17 @@ def y(self): ------- list """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sunburst' + return "sunburst" # Self properties description # --------------------------- @@ -1999,9 +1987,7 @@ def _prop_descriptions(self): plot fraction). """ - def __init__( - self, arg=None, column=None, row=None, x=None, y=None, **kwargs - ): + def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): """ Construct a new Domain object @@ -2027,7 +2013,7 @@ def __init__( ------- Domain """ - super(Domain, self).__init__('domain') + super(Domain, self).__init__("domain") # Validate arg # ------------ @@ -2047,29 +2033,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sunburst import (domain as v_domain) + from plotly.validators.sunburst import domain as v_domain # Initialize validators # --------------------- - self._validators['column'] = v_domain.ColumnValidator() - self._validators['row'] = v_domain.RowValidator() - self._validators['x'] = v_domain.XValidator() - self._validators['y'] = v_domain.YValidator() + self._validators["column"] = v_domain.ColumnValidator() + self._validators["row"] = v_domain.RowValidator() + self._validators["x"] = v_domain.XValidator() + self._validators["y"] = v_domain.YValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('column', None) - self['column'] = column if column is not None else _v - _v = arg.pop('row', None) - self['row'] = row if row is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v + _v = arg.pop("column", None) + self["column"] = column if column is not None else _v + _v = arg.pop("row", None) + self["row"] = row if row is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/sunburst/hoverlabel/__init__.py index 4c222b8e0b8..76eb81eed10 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sunburst.hoverlabel' + return "sunburst.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sunburst.hoverlabel import (font as v_font) + from plotly.validators.sunburst.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/sunburst/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/sunburst/marker/__init__.py index d58f0c09cac..c89e8b81bce 100644 --- a/packages/python/plotly/plotly/graph_objs/sunburst/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/sunburst/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -61,11 +59,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -81,11 +79,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # width # ----- @@ -102,11 +100,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -122,17 +120,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'sunburst.marker' + return "sunburst.marker" # Self properties description # --------------------------- @@ -152,13 +150,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - colorsrc=None, - width=None, - widthsrc=None, - **kwargs + self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs ): """ Construct a new Line object @@ -183,7 +175,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -203,29 +195,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.sunburst.marker import (line as v_line) + from plotly.validators.sunburst.marker import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/__init__.py b/packages/python/plotly/plotly/graph_objs/surface/__init__.py index 673aea72f96..64b1f37a24e 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/surface/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -22,11 +20,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -43,17 +41,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'surface' + return "surface" # Self properties description # --------------------------- @@ -94,7 +92,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -114,23 +112,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.surface import (stream as v_stream) + from plotly.validators.surface import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -161,11 +159,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -181,11 +179,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -201,17 +199,17 @@ def z(self): ------- int|float """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'surface' + return "surface" # Self properties description # --------------------------- @@ -252,7 +250,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__('lightposition') + super(Lightposition, self).__init__("lightposition") # Validate arg # ------------ @@ -272,28 +270,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.surface import ( - lightposition as v_lightposition - ) + from plotly.validators.surface import lightposition as v_lightposition # Initialize validators # --------------------- - self._validators['x'] = v_lightposition.XValidator() - self._validators['y'] = v_lightposition.YValidator() - self._validators['z'] = v_lightposition.ZValidator() + self._validators["x"] = v_lightposition.XValidator() + self._validators["y"] = v_lightposition.YValidator() + self._validators["z"] = v_lightposition.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- @@ -325,11 +321,11 @@ def ambient(self): ------- int|float """ - return self['ambient'] + return self["ambient"] @ambient.setter def ambient(self, val): - self['ambient'] = val + self["ambient"] = val # diffuse # ------- @@ -346,11 +342,11 @@ def diffuse(self): ------- int|float """ - return self['diffuse'] + return self["diffuse"] @diffuse.setter def diffuse(self, val): - self['diffuse'] = val + self["diffuse"] = val # fresnel # ------- @@ -368,11 +364,11 @@ def fresnel(self): ------- int|float """ - return self['fresnel'] + return self["fresnel"] @fresnel.setter def fresnel(self, val): - self['fresnel'] = val + self["fresnel"] = val # roughness # --------- @@ -389,11 +385,11 @@ def roughness(self): ------- int|float """ - return self['roughness'] + return self["roughness"] @roughness.setter def roughness(self, val): - self['roughness'] = val + self["roughness"] = val # specular # -------- @@ -410,17 +406,17 @@ def specular(self): ------- int|float """ - return self['specular'] + return self["specular"] @specular.setter def specular(self, val): - self['specular'] = val + self["specular"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'surface' + return "surface" # Self properties description # --------------------------- @@ -486,7 +482,7 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__('lighting') + super(Lighting, self).__init__("lighting") # Validate arg # ------------ @@ -506,32 +502,32 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.surface import (lighting as v_lighting) + from plotly.validators.surface import lighting as v_lighting # Initialize validators # --------------------- - self._validators['ambient'] = v_lighting.AmbientValidator() - self._validators['diffuse'] = v_lighting.DiffuseValidator() - self._validators['fresnel'] = v_lighting.FresnelValidator() - self._validators['roughness'] = v_lighting.RoughnessValidator() - self._validators['specular'] = v_lighting.SpecularValidator() + self._validators["ambient"] = v_lighting.AmbientValidator() + self._validators["diffuse"] = v_lighting.DiffuseValidator() + self._validators["fresnel"] = v_lighting.FresnelValidator() + self._validators["roughness"] = v_lighting.RoughnessValidator() + self._validators["specular"] = v_lighting.SpecularValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('ambient', None) - self['ambient'] = ambient if ambient is not None else _v - _v = arg.pop('diffuse', None) - self['diffuse'] = diffuse if diffuse is not None else _v - _v = arg.pop('fresnel', None) - self['fresnel'] = fresnel if fresnel is not None else _v - _v = arg.pop('roughness', None) - self['roughness'] = roughness if roughness is not None else _v - _v = arg.pop('specular', None) - self['specular'] = specular if specular is not None else _v + _v = arg.pop("ambient", None) + self["ambient"] = ambient if ambient is not None else _v + _v = arg.pop("diffuse", None) + self["diffuse"] = diffuse if diffuse is not None else _v + _v = arg.pop("fresnel", None) + self["fresnel"] = fresnel if fresnel is not None else _v + _v = arg.pop("roughness", None) + self["roughness"] = roughness if roughness is not None else _v + _v = arg.pop("specular", None) + self["specular"] = specular if specular is not None else _v # Process unknown kwargs # ---------------------- @@ -566,11 +562,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -586,11 +582,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -646,11 +642,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -666,11 +662,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -726,11 +722,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -746,11 +742,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -801,11 +797,11 @@ def font(self): ------- plotly.graph_objs.surface.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -828,11 +824,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -848,17 +844,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'surface' + return "surface" # Self properties description # --------------------------- @@ -950,7 +946,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -970,48 +966,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.surface import (hoverlabel as v_hoverlabel) + from plotly.validators.surface import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1078,11 +1070,11 @@ def x(self): ------- plotly.graph_objs.surface.contours.X """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -1134,11 +1126,11 @@ def y(self): ------- plotly.graph_objs.surface.contours.Y """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -1190,17 +1182,17 @@ def z(self): ------- plotly.graph_objs.surface.contours.Z """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'surface' + return "surface" # Self properties description # --------------------------- @@ -1241,7 +1233,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Contours """ - super(Contours, self).__init__('contours') + super(Contours, self).__init__("contours") # Validate arg # ------------ @@ -1261,26 +1253,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.surface import (contours as v_contours) + from plotly.validators.surface import contours as v_contours # Initialize validators # --------------------- - self._validators['x'] = v_contours.XValidator() - self._validators['y'] = v_contours.YValidator() - self._validators['z'] = v_contours.ZValidator() + self._validators["x"] = v_contours.XValidator() + self._validators["y"] = v_contours.YValidator() + self._validators["z"] = v_contours.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- @@ -1350,11 +1342,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -1409,11 +1401,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -1429,11 +1421,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -1467,11 +1459,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -1492,11 +1484,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -1514,11 +1506,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -1537,11 +1529,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -1561,11 +1553,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -1620,11 +1612,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -1640,11 +1632,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -1660,11 +1652,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -1684,11 +1676,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -1704,11 +1696,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -1728,11 +1720,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -1749,11 +1741,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -1770,11 +1762,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -1793,11 +1785,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -1820,11 +1812,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -1844,11 +1836,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -1903,11 +1895,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -1948,11 +1940,11 @@ def tickfont(self): ------- plotly.graph_objs.surface.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -1977,11 +1969,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -2034,11 +2026,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.surface.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -2062,11 +2054,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.surface.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -2082,11 +2074,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -2109,11 +2101,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -2130,11 +2122,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -2153,11 +2145,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -2174,11 +2166,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -2196,11 +2188,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -2216,11 +2208,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -2237,11 +2229,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -2257,11 +2249,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -2277,11 +2269,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -2316,11 +2308,11 @@ def title(self): ------- plotly.graph_objs.surface.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -2363,11 +2355,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -2387,11 +2379,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -2407,11 +2399,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -2430,11 +2422,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -2450,11 +2442,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -2470,11 +2462,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -2493,11 +2485,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -2513,17 +2505,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'surface' + return "surface" # Self properties description # --------------------------- @@ -2718,8 +2710,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -2968,7 +2960,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -2988,164 +2980,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.surface import (colorbar as v_colorbar) + from plotly.validators.surface import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/surface/colorbar/__init__.py index 760daf516f8..cb5ea9cee5f 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/surface/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.surface.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'surface.colorbar' + return "surface.colorbar" # Self properties description # --------------------------- @@ -153,7 +151,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -173,26 +171,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.surface.colorbar import (title as v_title) + from plotly.validators.surface.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -228,11 +226,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -249,11 +247,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -276,11 +274,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -304,11 +302,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -326,17 +324,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'surface.colorbar' + return "surface.colorbar" # Self properties description # --------------------------- @@ -429,7 +427,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -449,36 +447,38 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- from plotly.validators.surface.colorbar import ( - tickformatstop as v_tickformatstop + tickformatstop as v_tickformatstop, ) # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -546,11 +546,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -577,11 +577,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -595,17 +595,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'surface.colorbar' + return "surface.colorbar" # Self properties description # --------------------------- @@ -667,7 +667,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -687,26 +687,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.surface.colorbar import (tickfont as v_tickfont) + from plotly.validators.surface.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/surface/colorbar/title/__init__.py index 114dfbfedb5..05a547c461f 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/surface/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'surface.colorbar.title' + return "surface.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,26 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.surface.colorbar.title import (font as v_font) + from plotly.validators.surface.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/contours/__init__.py b/packages/python/plotly/plotly/graph_objs/surface/contours/__init__.py index efe219d6029..84e47182510 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/contours/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/surface/contours/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # end # --- @@ -80,11 +78,11 @@ def end(self): ------- int|float """ - return self['end'] + return self["end"] @end.setter def end(self, val): - self['end'] = val + self["end"] = val # highlight # --------- @@ -101,11 +99,11 @@ def highlight(self): ------- bool """ - return self['highlight'] + return self["highlight"] @highlight.setter def highlight(self, val): - self['highlight'] = val + self["highlight"] = val # highlightcolor # -------------- @@ -160,11 +158,11 @@ def highlightcolor(self): ------- str """ - return self['highlightcolor'] + return self["highlightcolor"] @highlightcolor.setter def highlightcolor(self, val): - self['highlightcolor'] = val + self["highlightcolor"] = val # highlightwidth # -------------- @@ -180,11 +178,11 @@ def highlightwidth(self): ------- int|float """ - return self['highlightwidth'] + return self["highlightwidth"] @highlightwidth.setter def highlightwidth(self, val): - self['highlightwidth'] = val + self["highlightwidth"] = val # project # ------- @@ -222,11 +220,11 @@ def project(self): ------- plotly.graph_objs.surface.contours.z.Project """ - return self['project'] + return self["project"] @project.setter def project(self, val): - self['project'] = val + self["project"] = val # show # ---- @@ -243,11 +241,11 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # size # ---- @@ -263,11 +261,11 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # start # ----- @@ -284,11 +282,11 @@ def start(self): ------- int|float """ - return self['start'] + return self["start"] @start.setter def start(self, val): - self['start'] = val + self["start"] = val # usecolormap # ----------- @@ -305,11 +303,11 @@ def usecolormap(self): ------- bool """ - return self['usecolormap'] + return self["usecolormap"] @usecolormap.setter def usecolormap(self, val): - self['usecolormap'] = val + self["usecolormap"] = val # width # ----- @@ -325,17 +323,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'surface.contours' + return "surface.contours" # Self properties description # --------------------------- @@ -431,7 +429,7 @@ def __init__( ------- Z """ - super(Z, self).__init__('z') + super(Z, self).__init__("z") # Validate arg # ------------ @@ -451,52 +449,50 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.surface.contours import (z as v_z) + from plotly.validators.surface.contours import z as v_z # Initialize validators # --------------------- - self._validators['color'] = v_z.ColorValidator() - self._validators['end'] = v_z.EndValidator() - self._validators['highlight'] = v_z.HighlightValidator() - self._validators['highlightcolor'] = v_z.HighlightcolorValidator() - self._validators['highlightwidth'] = v_z.HighlightwidthValidator() - self._validators['project'] = v_z.ProjectValidator() - self._validators['show'] = v_z.ShowValidator() - self._validators['size'] = v_z.SizeValidator() - self._validators['start'] = v_z.StartValidator() - self._validators['usecolormap'] = v_z.UsecolormapValidator() - self._validators['width'] = v_z.WidthValidator() + self._validators["color"] = v_z.ColorValidator() + self._validators["end"] = v_z.EndValidator() + self._validators["highlight"] = v_z.HighlightValidator() + self._validators["highlightcolor"] = v_z.HighlightcolorValidator() + self._validators["highlightwidth"] = v_z.HighlightwidthValidator() + self._validators["project"] = v_z.ProjectValidator() + self._validators["show"] = v_z.ShowValidator() + self._validators["size"] = v_z.SizeValidator() + self._validators["start"] = v_z.StartValidator() + self._validators["usecolormap"] = v_z.UsecolormapValidator() + self._validators["width"] = v_z.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('end', None) - self['end'] = end if end is not None else _v - _v = arg.pop('highlight', None) - self['highlight'] = highlight if highlight is not None else _v - _v = arg.pop('highlightcolor', None) - self['highlightcolor' - ] = highlightcolor if highlightcolor is not None else _v - _v = arg.pop('highlightwidth', None) - self['highlightwidth' - ] = highlightwidth if highlightwidth is not None else _v - _v = arg.pop('project', None) - self['project'] = project if project is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('start', None) - self['start'] = start if start is not None else _v - _v = arg.pop('usecolormap', None) - self['usecolormap'] = usecolormap if usecolormap is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("end", None) + self["end"] = end if end is not None else _v + _v = arg.pop("highlight", None) + self["highlight"] = highlight if highlight is not None else _v + _v = arg.pop("highlightcolor", None) + self["highlightcolor"] = highlightcolor if highlightcolor is not None else _v + _v = arg.pop("highlightwidth", None) + self["highlightwidth"] = highlightwidth if highlightwidth is not None else _v + _v = arg.pop("project", None) + self["project"] = project if project is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("start", None) + self["start"] = start if start is not None else _v + _v = arg.pop("usecolormap", None) + self["usecolormap"] = usecolormap if usecolormap is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -566,11 +562,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # end # --- @@ -587,11 +583,11 @@ def end(self): ------- int|float """ - return self['end'] + return self["end"] @end.setter def end(self, val): - self['end'] = val + self["end"] = val # highlight # --------- @@ -608,11 +604,11 @@ def highlight(self): ------- bool """ - return self['highlight'] + return self["highlight"] @highlight.setter def highlight(self, val): - self['highlight'] = val + self["highlight"] = val # highlightcolor # -------------- @@ -667,11 +663,11 @@ def highlightcolor(self): ------- str """ - return self['highlightcolor'] + return self["highlightcolor"] @highlightcolor.setter def highlightcolor(self, val): - self['highlightcolor'] = val + self["highlightcolor"] = val # highlightwidth # -------------- @@ -687,11 +683,11 @@ def highlightwidth(self): ------- int|float """ - return self['highlightwidth'] + return self["highlightwidth"] @highlightwidth.setter def highlightwidth(self, val): - self['highlightwidth'] = val + self["highlightwidth"] = val # project # ------- @@ -729,11 +725,11 @@ def project(self): ------- plotly.graph_objs.surface.contours.y.Project """ - return self['project'] + return self["project"] @project.setter def project(self, val): - self['project'] = val + self["project"] = val # show # ---- @@ -750,11 +746,11 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # size # ---- @@ -770,11 +766,11 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # start # ----- @@ -791,11 +787,11 @@ def start(self): ------- int|float """ - return self['start'] + return self["start"] @start.setter def start(self, val): - self['start'] = val + self["start"] = val # usecolormap # ----------- @@ -812,11 +808,11 @@ def usecolormap(self): ------- bool """ - return self['usecolormap'] + return self["usecolormap"] @usecolormap.setter def usecolormap(self, val): - self['usecolormap'] = val + self["usecolormap"] = val # width # ----- @@ -832,17 +828,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'surface.contours' + return "surface.contours" # Self properties description # --------------------------- @@ -938,7 +934,7 @@ def __init__( ------- Y """ - super(Y, self).__init__('y') + super(Y, self).__init__("y") # Validate arg # ------------ @@ -958,52 +954,50 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.surface.contours import (y as v_y) + from plotly.validators.surface.contours import y as v_y # Initialize validators # --------------------- - self._validators['color'] = v_y.ColorValidator() - self._validators['end'] = v_y.EndValidator() - self._validators['highlight'] = v_y.HighlightValidator() - self._validators['highlightcolor'] = v_y.HighlightcolorValidator() - self._validators['highlightwidth'] = v_y.HighlightwidthValidator() - self._validators['project'] = v_y.ProjectValidator() - self._validators['show'] = v_y.ShowValidator() - self._validators['size'] = v_y.SizeValidator() - self._validators['start'] = v_y.StartValidator() - self._validators['usecolormap'] = v_y.UsecolormapValidator() - self._validators['width'] = v_y.WidthValidator() + self._validators["color"] = v_y.ColorValidator() + self._validators["end"] = v_y.EndValidator() + self._validators["highlight"] = v_y.HighlightValidator() + self._validators["highlightcolor"] = v_y.HighlightcolorValidator() + self._validators["highlightwidth"] = v_y.HighlightwidthValidator() + self._validators["project"] = v_y.ProjectValidator() + self._validators["show"] = v_y.ShowValidator() + self._validators["size"] = v_y.SizeValidator() + self._validators["start"] = v_y.StartValidator() + self._validators["usecolormap"] = v_y.UsecolormapValidator() + self._validators["width"] = v_y.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('end', None) - self['end'] = end if end is not None else _v - _v = arg.pop('highlight', None) - self['highlight'] = highlight if highlight is not None else _v - _v = arg.pop('highlightcolor', None) - self['highlightcolor' - ] = highlightcolor if highlightcolor is not None else _v - _v = arg.pop('highlightwidth', None) - self['highlightwidth' - ] = highlightwidth if highlightwidth is not None else _v - _v = arg.pop('project', None) - self['project'] = project if project is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('start', None) - self['start'] = start if start is not None else _v - _v = arg.pop('usecolormap', None) - self['usecolormap'] = usecolormap if usecolormap is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("end", None) + self["end"] = end if end is not None else _v + _v = arg.pop("highlight", None) + self["highlight"] = highlight if highlight is not None else _v + _v = arg.pop("highlightcolor", None) + self["highlightcolor"] = highlightcolor if highlightcolor is not None else _v + _v = arg.pop("highlightwidth", None) + self["highlightwidth"] = highlightwidth if highlightwidth is not None else _v + _v = arg.pop("project", None) + self["project"] = project if project is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("start", None) + self["start"] = start if start is not None else _v + _v = arg.pop("usecolormap", None) + self["usecolormap"] = usecolormap if usecolormap is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -1073,11 +1067,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # end # --- @@ -1094,11 +1088,11 @@ def end(self): ------- int|float """ - return self['end'] + return self["end"] @end.setter def end(self, val): - self['end'] = val + self["end"] = val # highlight # --------- @@ -1115,11 +1109,11 @@ def highlight(self): ------- bool """ - return self['highlight'] + return self["highlight"] @highlight.setter def highlight(self, val): - self['highlight'] = val + self["highlight"] = val # highlightcolor # -------------- @@ -1174,11 +1168,11 @@ def highlightcolor(self): ------- str """ - return self['highlightcolor'] + return self["highlightcolor"] @highlightcolor.setter def highlightcolor(self, val): - self['highlightcolor'] = val + self["highlightcolor"] = val # highlightwidth # -------------- @@ -1194,11 +1188,11 @@ def highlightwidth(self): ------- int|float """ - return self['highlightwidth'] + return self["highlightwidth"] @highlightwidth.setter def highlightwidth(self, val): - self['highlightwidth'] = val + self["highlightwidth"] = val # project # ------- @@ -1236,11 +1230,11 @@ def project(self): ------- plotly.graph_objs.surface.contours.x.Project """ - return self['project'] + return self["project"] @project.setter def project(self, val): - self['project'] = val + self["project"] = val # show # ---- @@ -1257,11 +1251,11 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # size # ---- @@ -1277,11 +1271,11 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # start # ----- @@ -1298,11 +1292,11 @@ def start(self): ------- int|float """ - return self['start'] + return self["start"] @start.setter def start(self, val): - self['start'] = val + self["start"] = val # usecolormap # ----------- @@ -1319,11 +1313,11 @@ def usecolormap(self): ------- bool """ - return self['usecolormap'] + return self["usecolormap"] @usecolormap.setter def usecolormap(self, val): - self['usecolormap'] = val + self["usecolormap"] = val # width # ----- @@ -1339,17 +1333,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'surface.contours' + return "surface.contours" # Self properties description # --------------------------- @@ -1445,7 +1439,7 @@ def __init__( ------- X """ - super(X, self).__init__('x') + super(X, self).__init__("x") # Validate arg # ------------ @@ -1465,52 +1459,50 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.surface.contours import (x as v_x) + from plotly.validators.surface.contours import x as v_x # Initialize validators # --------------------- - self._validators['color'] = v_x.ColorValidator() - self._validators['end'] = v_x.EndValidator() - self._validators['highlight'] = v_x.HighlightValidator() - self._validators['highlightcolor'] = v_x.HighlightcolorValidator() - self._validators['highlightwidth'] = v_x.HighlightwidthValidator() - self._validators['project'] = v_x.ProjectValidator() - self._validators['show'] = v_x.ShowValidator() - self._validators['size'] = v_x.SizeValidator() - self._validators['start'] = v_x.StartValidator() - self._validators['usecolormap'] = v_x.UsecolormapValidator() - self._validators['width'] = v_x.WidthValidator() + self._validators["color"] = v_x.ColorValidator() + self._validators["end"] = v_x.EndValidator() + self._validators["highlight"] = v_x.HighlightValidator() + self._validators["highlightcolor"] = v_x.HighlightcolorValidator() + self._validators["highlightwidth"] = v_x.HighlightwidthValidator() + self._validators["project"] = v_x.ProjectValidator() + self._validators["show"] = v_x.ShowValidator() + self._validators["size"] = v_x.SizeValidator() + self._validators["start"] = v_x.StartValidator() + self._validators["usecolormap"] = v_x.UsecolormapValidator() + self._validators["width"] = v_x.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('end', None) - self['end'] = end if end is not None else _v - _v = arg.pop('highlight', None) - self['highlight'] = highlight if highlight is not None else _v - _v = arg.pop('highlightcolor', None) - self['highlightcolor' - ] = highlightcolor if highlightcolor is not None else _v - _v = arg.pop('highlightwidth', None) - self['highlightwidth' - ] = highlightwidth if highlightwidth is not None else _v - _v = arg.pop('project', None) - self['project'] = project if project is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('start', None) - self['start'] = start if start is not None else _v - _v = arg.pop('usecolormap', None) - self['usecolormap'] = usecolormap if usecolormap is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("end", None) + self["end"] = end if end is not None else _v + _v = arg.pop("highlight", None) + self["highlight"] = highlight if highlight is not None else _v + _v = arg.pop("highlightcolor", None) + self["highlightcolor"] = highlightcolor if highlightcolor is not None else _v + _v = arg.pop("highlightwidth", None) + self["highlightwidth"] = highlightwidth if highlightwidth is not None else _v + _v = arg.pop("project", None) + self["project"] = project if project is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("start", None) + self["start"] = start if start is not None else _v + _v = arg.pop("usecolormap", None) + self["usecolormap"] = usecolormap if usecolormap is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/contours/x/__init__.py b/packages/python/plotly/plotly/graph_objs/surface/contours/x/__init__.py index 7cb4a72270c..df81193d981 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/contours/x/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/surface/contours/x/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -23,11 +21,11 @@ def x(self): ------- bool """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -46,11 +44,11 @@ def y(self): ------- bool """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -69,17 +67,17 @@ def z(self): ------- bool """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'surface.contours.x' + return "surface.contours.x" # Self properties description # --------------------------- @@ -139,7 +137,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Project """ - super(Project, self).__init__('project') + super(Project, self).__init__("project") # Validate arg # ------------ @@ -159,26 +157,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.surface.contours.x import (project as v_project) + from plotly.validators.surface.contours.x import project as v_project # Initialize validators # --------------------- - self._validators['x'] = v_project.XValidator() - self._validators['y'] = v_project.YValidator() - self._validators['z'] = v_project.ZValidator() + self._validators["x"] = v_project.XValidator() + self._validators["y"] = v_project.YValidator() + self._validators["z"] = v_project.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/contours/y/__init__.py b/packages/python/plotly/plotly/graph_objs/surface/contours/y/__init__.py index 806ce0ac30f..43bbaa947fd 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/contours/y/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/surface/contours/y/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -23,11 +21,11 @@ def x(self): ------- bool """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -46,11 +44,11 @@ def y(self): ------- bool """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -69,17 +67,17 @@ def z(self): ------- bool """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'surface.contours.y' + return "surface.contours.y" # Self properties description # --------------------------- @@ -139,7 +137,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Project """ - super(Project, self).__init__('project') + super(Project, self).__init__("project") # Validate arg # ------------ @@ -159,26 +157,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.surface.contours.y import (project as v_project) + from plotly.validators.surface.contours.y import project as v_project # Initialize validators # --------------------- - self._validators['x'] = v_project.XValidator() - self._validators['y'] = v_project.YValidator() - self._validators['z'] = v_project.ZValidator() + self._validators["x"] = v_project.XValidator() + self._validators["y"] = v_project.YValidator() + self._validators["z"] = v_project.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/contours/z/__init__.py b/packages/python/plotly/plotly/graph_objs/surface/contours/z/__init__.py index 2ae427e3b30..befc4d2e7ba 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/contours/z/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/surface/contours/z/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -23,11 +21,11 @@ def x(self): ------- bool """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -46,11 +44,11 @@ def y(self): ------- bool """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -69,17 +67,17 @@ def z(self): ------- bool """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'surface.contours.z' + return "surface.contours.z" # Self properties description # --------------------------- @@ -139,7 +137,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Project """ - super(Project, self).__init__('project') + super(Project, self).__init__("project") # Validate arg # ------------ @@ -159,26 +157,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.surface.contours.z import (project as v_project) + from plotly.validators.surface.contours.z import project as v_project # Initialize validators # --------------------- - self._validators['x'] = v_project.XValidator() - self._validators['y'] = v_project.YValidator() - self._validators['z'] = v_project.ZValidator() + self._validators["x"] = v_project.XValidator() + self._validators["y"] = v_project.YValidator() + self._validators["z"] = v_project.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/surface/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/surface/hoverlabel/__init__.py index 07407020f63..3fae93cfa2a 100644 --- a/packages/python/plotly/plotly/graph_objs/surface/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/surface/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'surface.hoverlabel' + return "surface.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.surface.hoverlabel import (font as v_font) + from plotly.validators.surface.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/__init__.py b/packages/python/plotly/plotly/graph_objs/table/__init__.py index c2ad74e791b..064a103c848 100644 --- a/packages/python/plotly/plotly/graph_objs/table/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/table/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -22,11 +20,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -43,17 +41,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'table' + return "table" # Self properties description # --------------------------- @@ -94,7 +92,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -114,23 +112,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.table import (stream as v_stream) + from plotly.validators.table import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -165,11 +163,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -185,11 +183,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -245,11 +243,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -265,11 +263,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -325,11 +323,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -345,11 +343,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -400,11 +398,11 @@ def font(self): ------- plotly.graph_objs.table.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -427,11 +425,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -447,17 +445,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'table' + return "table" # Self properties description # --------------------------- @@ -549,7 +547,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -569,48 +567,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.table import (hoverlabel as v_hoverlabel) + from plotly.validators.table import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -646,11 +640,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -666,11 +660,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # fill # ---- @@ -697,11 +691,11 @@ def fill(self): ------- plotly.graph_objs.table.header.Fill """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # font # ---- @@ -750,11 +744,11 @@ def font(self): ------- plotly.graph_objs.table.header.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # format # ------ @@ -772,11 +766,11 @@ def format(self): ------- numpy.ndarray """ - return self['format'] + return self["format"] @format.setter def format(self, val): - self['format'] = val + self["format"] = val # formatsrc # --------- @@ -792,11 +786,11 @@ def formatsrc(self): ------- str """ - return self['formatsrc'] + return self["formatsrc"] @formatsrc.setter def formatsrc(self, val): - self['formatsrc'] = val + self["formatsrc"] = val # height # ------ @@ -812,11 +806,11 @@ def height(self): ------- int|float """ - return self['height'] + return self["height"] @height.setter def height(self, val): - self['height'] = val + self["height"] = val # line # ---- @@ -846,11 +840,11 @@ def line(self): ------- plotly.graph_objs.table.header.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # prefix # ------ @@ -868,11 +862,11 @@ def prefix(self): ------- str|numpy.ndarray """ - return self['prefix'] + return self["prefix"] @prefix.setter def prefix(self, val): - self['prefix'] = val + self["prefix"] = val # prefixsrc # --------- @@ -888,11 +882,11 @@ def prefixsrc(self): ------- str """ - return self['prefixsrc'] + return self["prefixsrc"] @prefixsrc.setter def prefixsrc(self, val): - self['prefixsrc'] = val + self["prefixsrc"] = val # suffix # ------ @@ -910,11 +904,11 @@ def suffix(self): ------- str|numpy.ndarray """ - return self['suffix'] + return self["suffix"] @suffix.setter def suffix(self, val): - self['suffix'] = val + self["suffix"] = val # suffixsrc # --------- @@ -930,11 +924,11 @@ def suffixsrc(self): ------- str """ - return self['suffixsrc'] + return self["suffixsrc"] @suffixsrc.setter def suffixsrc(self, val): - self['suffixsrc'] = val + self["suffixsrc"] = val # values # ------ @@ -953,11 +947,11 @@ def values(self): ------- numpy.ndarray """ - return self['values'] + return self["values"] @values.setter def values(self, val): - self['values'] = val + self["values"] = val # valuessrc # --------- @@ -973,17 +967,17 @@ def valuessrc(self): ------- str """ - return self['valuessrc'] + return self["valuessrc"] @valuessrc.setter def valuessrc(self, val): - self['valuessrc'] = val + self["valuessrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'table' + return "table" # Self properties description # --------------------------- @@ -1108,7 +1102,7 @@ def __init__( ------- Header """ - super(Header, self).__init__('header') + super(Header, self).__init__("header") # Validate arg # ------------ @@ -1128,59 +1122,59 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.table import (header as v_header) + from plotly.validators.table import header as v_header # Initialize validators # --------------------- - self._validators['align'] = v_header.AlignValidator() - self._validators['alignsrc'] = v_header.AlignsrcValidator() - self._validators['fill'] = v_header.FillValidator() - self._validators['font'] = v_header.FontValidator() - self._validators['format'] = v_header.FormatValidator() - self._validators['formatsrc'] = v_header.FormatsrcValidator() - self._validators['height'] = v_header.HeightValidator() - self._validators['line'] = v_header.LineValidator() - self._validators['prefix'] = v_header.PrefixValidator() - self._validators['prefixsrc'] = v_header.PrefixsrcValidator() - self._validators['suffix'] = v_header.SuffixValidator() - self._validators['suffixsrc'] = v_header.SuffixsrcValidator() - self._validators['values'] = v_header.ValuesValidator() - self._validators['valuessrc'] = v_header.ValuessrcValidator() + self._validators["align"] = v_header.AlignValidator() + self._validators["alignsrc"] = v_header.AlignsrcValidator() + self._validators["fill"] = v_header.FillValidator() + self._validators["font"] = v_header.FontValidator() + self._validators["format"] = v_header.FormatValidator() + self._validators["formatsrc"] = v_header.FormatsrcValidator() + self._validators["height"] = v_header.HeightValidator() + self._validators["line"] = v_header.LineValidator() + self._validators["prefix"] = v_header.PrefixValidator() + self._validators["prefixsrc"] = v_header.PrefixsrcValidator() + self._validators["suffix"] = v_header.SuffixValidator() + self._validators["suffixsrc"] = v_header.SuffixsrcValidator() + self._validators["values"] = v_header.ValuesValidator() + self._validators["valuessrc"] = v_header.ValuessrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('format', None) - self['format'] = format if format is not None else _v - _v = arg.pop('formatsrc', None) - self['formatsrc'] = formatsrc if formatsrc is not None else _v - _v = arg.pop('height', None) - self['height'] = height if height is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('prefix', None) - self['prefix'] = prefix if prefix is not None else _v - _v = arg.pop('prefixsrc', None) - self['prefixsrc'] = prefixsrc if prefixsrc is not None else _v - _v = arg.pop('suffix', None) - self['suffix'] = suffix if suffix is not None else _v - _v = arg.pop('suffixsrc', None) - self['suffixsrc'] = suffixsrc if suffixsrc is not None else _v - _v = arg.pop('values', None) - self['values'] = values if values is not None else _v - _v = arg.pop('valuessrc', None) - self['valuessrc'] = valuessrc if valuessrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("format", None) + self["format"] = format if format is not None else _v + _v = arg.pop("formatsrc", None) + self["formatsrc"] = formatsrc if formatsrc is not None else _v + _v = arg.pop("height", None) + self["height"] = height if height is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("prefix", None) + self["prefix"] = prefix if prefix is not None else _v + _v = arg.pop("prefixsrc", None) + self["prefixsrc"] = prefixsrc if prefixsrc is not None else _v + _v = arg.pop("suffix", None) + self["suffix"] = suffix if suffix is not None else _v + _v = arg.pop("suffixsrc", None) + self["suffixsrc"] = suffixsrc if suffixsrc is not None else _v + _v = arg.pop("values", None) + self["values"] = values if values is not None else _v + _v = arg.pop("valuessrc", None) + self["valuessrc"] = valuessrc if valuessrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1213,11 +1207,11 @@ def column(self): ------- int """ - return self['column'] + return self["column"] @column.setter def column(self, val): - self['column'] = val + self["column"] = val # row # --- @@ -1235,11 +1229,11 @@ def row(self): ------- int """ - return self['row'] + return self["row"] @row.setter def row(self, val): - self['row'] = val + self["row"] = val # x # - @@ -1261,11 +1255,11 @@ def x(self): ------- list """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -1287,17 +1281,17 @@ def y(self): ------- list """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'table' + return "table" # Self properties description # --------------------------- @@ -1318,9 +1312,7 @@ def _prop_descriptions(self): fraction). """ - def __init__( - self, arg=None, column=None, row=None, x=None, y=None, **kwargs - ): + def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): """ Construct a new Domain object @@ -1346,7 +1338,7 @@ def __init__( ------- Domain """ - super(Domain, self).__init__('domain') + super(Domain, self).__init__("domain") # Validate arg # ------------ @@ -1366,29 +1358,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.table import (domain as v_domain) + from plotly.validators.table import domain as v_domain # Initialize validators # --------------------- - self._validators['column'] = v_domain.ColumnValidator() - self._validators['row'] = v_domain.RowValidator() - self._validators['x'] = v_domain.XValidator() - self._validators['y'] = v_domain.YValidator() + self._validators["column"] = v_domain.ColumnValidator() + self._validators["row"] = v_domain.RowValidator() + self._validators["x"] = v_domain.XValidator() + self._validators["y"] = v_domain.YValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('column', None) - self['column'] = column if column is not None else _v - _v = arg.pop('row', None) - self['row'] = row if row is not None else _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v + _v = arg.pop("column", None) + self["column"] = column if column is not None else _v + _v = arg.pop("row", None) + self["row"] = row if row is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v # Process unknown kwargs # ---------------------- @@ -1424,11 +1416,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -1444,11 +1436,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # fill # ---- @@ -1475,11 +1467,11 @@ def fill(self): ------- plotly.graph_objs.table.cells.Fill """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # font # ---- @@ -1528,11 +1520,11 @@ def font(self): ------- plotly.graph_objs.table.cells.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # format # ------ @@ -1550,11 +1542,11 @@ def format(self): ------- numpy.ndarray """ - return self['format'] + return self["format"] @format.setter def format(self, val): - self['format'] = val + self["format"] = val # formatsrc # --------- @@ -1570,11 +1562,11 @@ def formatsrc(self): ------- str """ - return self['formatsrc'] + return self["formatsrc"] @formatsrc.setter def formatsrc(self, val): - self['formatsrc'] = val + self["formatsrc"] = val # height # ------ @@ -1590,11 +1582,11 @@ def height(self): ------- int|float """ - return self['height'] + return self["height"] @height.setter def height(self, val): - self['height'] = val + self["height"] = val # line # ---- @@ -1624,11 +1616,11 @@ def line(self): ------- plotly.graph_objs.table.cells.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # prefix # ------ @@ -1646,11 +1638,11 @@ def prefix(self): ------- str|numpy.ndarray """ - return self['prefix'] + return self["prefix"] @prefix.setter def prefix(self, val): - self['prefix'] = val + self["prefix"] = val # prefixsrc # --------- @@ -1666,11 +1658,11 @@ def prefixsrc(self): ------- str """ - return self['prefixsrc'] + return self["prefixsrc"] @prefixsrc.setter def prefixsrc(self, val): - self['prefixsrc'] = val + self["prefixsrc"] = val # suffix # ------ @@ -1688,11 +1680,11 @@ def suffix(self): ------- str|numpy.ndarray """ - return self['suffix'] + return self["suffix"] @suffix.setter def suffix(self, val): - self['suffix'] = val + self["suffix"] = val # suffixsrc # --------- @@ -1708,11 +1700,11 @@ def suffixsrc(self): ------- str """ - return self['suffixsrc'] + return self["suffixsrc"] @suffixsrc.setter def suffixsrc(self, val): - self['suffixsrc'] = val + self["suffixsrc"] = val # values # ------ @@ -1731,11 +1723,11 @@ def values(self): ------- numpy.ndarray """ - return self['values'] + return self["values"] @values.setter def values(self, val): - self['values'] = val + self["values"] = val # valuessrc # --------- @@ -1751,17 +1743,17 @@ def valuessrc(self): ------- str """ - return self['valuessrc'] + return self["valuessrc"] @valuessrc.setter def valuessrc(self, val): - self['valuessrc'] = val + self["valuessrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'table' + return "table" # Self properties description # --------------------------- @@ -1886,7 +1878,7 @@ def __init__( ------- Cells """ - super(Cells, self).__init__('cells') + super(Cells, self).__init__("cells") # Validate arg # ------------ @@ -1906,59 +1898,59 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.table import (cells as v_cells) + from plotly.validators.table import cells as v_cells # Initialize validators # --------------------- - self._validators['align'] = v_cells.AlignValidator() - self._validators['alignsrc'] = v_cells.AlignsrcValidator() - self._validators['fill'] = v_cells.FillValidator() - self._validators['font'] = v_cells.FontValidator() - self._validators['format'] = v_cells.FormatValidator() - self._validators['formatsrc'] = v_cells.FormatsrcValidator() - self._validators['height'] = v_cells.HeightValidator() - self._validators['line'] = v_cells.LineValidator() - self._validators['prefix'] = v_cells.PrefixValidator() - self._validators['prefixsrc'] = v_cells.PrefixsrcValidator() - self._validators['suffix'] = v_cells.SuffixValidator() - self._validators['suffixsrc'] = v_cells.SuffixsrcValidator() - self._validators['values'] = v_cells.ValuesValidator() - self._validators['valuessrc'] = v_cells.ValuessrcValidator() + self._validators["align"] = v_cells.AlignValidator() + self._validators["alignsrc"] = v_cells.AlignsrcValidator() + self._validators["fill"] = v_cells.FillValidator() + self._validators["font"] = v_cells.FontValidator() + self._validators["format"] = v_cells.FormatValidator() + self._validators["formatsrc"] = v_cells.FormatsrcValidator() + self._validators["height"] = v_cells.HeightValidator() + self._validators["line"] = v_cells.LineValidator() + self._validators["prefix"] = v_cells.PrefixValidator() + self._validators["prefixsrc"] = v_cells.PrefixsrcValidator() + self._validators["suffix"] = v_cells.SuffixValidator() + self._validators["suffixsrc"] = v_cells.SuffixsrcValidator() + self._validators["values"] = v_cells.ValuesValidator() + self._validators["valuessrc"] = v_cells.ValuessrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('format', None) - self['format'] = format if format is not None else _v - _v = arg.pop('formatsrc', None) - self['formatsrc'] = formatsrc if formatsrc is not None else _v - _v = arg.pop('height', None) - self['height'] = height if height is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('prefix', None) - self['prefix'] = prefix if prefix is not None else _v - _v = arg.pop('prefixsrc', None) - self['prefixsrc'] = prefixsrc if prefixsrc is not None else _v - _v = arg.pop('suffix', None) - self['suffix'] = suffix if suffix is not None else _v - _v = arg.pop('suffixsrc', None) - self['suffixsrc'] = suffixsrc if suffixsrc is not None else _v - _v = arg.pop('values', None) - self['values'] = values if values is not None else _v - _v = arg.pop('valuessrc', None) - self['valuessrc'] = valuessrc if valuessrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("format", None) + self["format"] = format if format is not None else _v + _v = arg.pop("formatsrc", None) + self["formatsrc"] = formatsrc if formatsrc is not None else _v + _v = arg.pop("height", None) + self["height"] = height if height is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("prefix", None) + self["prefix"] = prefix if prefix is not None else _v + _v = arg.pop("prefixsrc", None) + self["prefixsrc"] = prefixsrc if prefixsrc is not None else _v + _v = arg.pop("suffix", None) + self["suffix"] = suffix if suffix is not None else _v + _v = arg.pop("suffixsrc", None) + self["suffixsrc"] = suffixsrc if suffixsrc is not None else _v + _v = arg.pop("values", None) + self["values"] = values if values is not None else _v + _v = arg.pop("valuessrc", None) + self["valuessrc"] = valuessrc if valuessrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/cells/__init__.py b/packages/python/plotly/plotly/graph_objs/table/cells/__init__.py index 6c3c4cdc960..e73f0da1b2b 100644 --- a/packages/python/plotly/plotly/graph_objs/table/cells/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/table/cells/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # width # ----- @@ -97,11 +95,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -117,17 +115,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'table.cells' + return "table.cells" # Self properties description # --------------------------- @@ -145,13 +143,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - colorsrc=None, - width=None, - widthsrc=None, - **kwargs + self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs ): """ Construct a new Line object @@ -174,7 +166,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -194,29 +186,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.table.cells import (line as v_line) + from plotly.validators.table.cells import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -285,11 +277,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -305,11 +297,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -337,11 +329,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -357,11 +349,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -376,11 +368,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -396,17 +388,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'table.cells' + return "table.cells" # Self properties description # --------------------------- @@ -487,7 +479,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -507,35 +499,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.table.cells import (font as v_font) + from plotly.validators.table.cells import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -607,11 +599,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -627,17 +619,17 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'table.cells' + return "table.cells" # Self properties description # --------------------------- @@ -670,7 +662,7 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): ------- Fill """ - super(Fill, self).__init__('fill') + super(Fill, self).__init__("fill") # Validate arg # ------------ @@ -690,23 +682,23 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.table.cells import (fill as v_fill) + from plotly.validators.table.cells import fill as v_fill # Initialize validators # --------------------- - self._validators['color'] = v_fill.ColorValidator() - self._validators['colorsrc'] = v_fill.ColorsrcValidator() + self._validators["color"] = v_fill.ColorValidator() + self._validators["colorsrc"] = v_fill.ColorsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/header/__init__.py b/packages/python/plotly/plotly/graph_objs/table/header/__init__.py index 58c0501ec04..fdb30728f5b 100644 --- a/packages/python/plotly/plotly/graph_objs/table/header/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/table/header/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # width # ----- @@ -97,11 +95,11 @@ def width(self): ------- int|float|numpy.ndarray """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # widthsrc # -------- @@ -117,17 +115,17 @@ def widthsrc(self): ------- str """ - return self['widthsrc'] + return self["widthsrc"] @widthsrc.setter def widthsrc(self, val): - self['widthsrc'] = val + self["widthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'table.header' + return "table.header" # Self properties description # --------------------------- @@ -145,13 +143,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - color=None, - colorsrc=None, - width=None, - widthsrc=None, - **kwargs + self, arg=None, color=None, colorsrc=None, width=None, widthsrc=None, **kwargs ): """ Construct a new Line object @@ -174,7 +166,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -194,29 +186,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.table.header import (line as v_line) + from plotly.validators.table.header import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['colorsrc'] = v_line.ColorsrcValidator() - self._validators['width'] = v_line.WidthValidator() - self._validators['widthsrc'] = v_line.WidthsrcValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["colorsrc"] = v_line.ColorsrcValidator() + self._validators["width"] = v_line.WidthValidator() + self._validators["widthsrc"] = v_line.WidthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v - _v = arg.pop('widthsrc', None) - self['widthsrc'] = widthsrc if widthsrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v + _v = arg.pop("widthsrc", None) + self["widthsrc"] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -285,11 +277,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -305,11 +297,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -337,11 +329,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -357,11 +349,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -376,11 +368,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -396,17 +388,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'table.header' + return "table.header" # Self properties description # --------------------------- @@ -487,7 +479,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -507,35 +499,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.table.header import (font as v_font) + from plotly.validators.table.header import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -607,11 +599,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -627,17 +619,17 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'table.header' + return "table.header" # Self properties description # --------------------------- @@ -670,7 +662,7 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): ------- Fill """ - super(Fill, self).__init__('fill') + super(Fill, self).__init__("fill") # Validate arg # ------------ @@ -690,23 +682,23 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.table.header import (fill as v_fill) + from plotly.validators.table.header import fill as v_fill # Initialize validators # --------------------- - self._validators['color'] = v_fill.ColorValidator() - self._validators['colorsrc'] = v_fill.ColorsrcValidator() + self._validators["color"] = v_fill.ColorValidator() + self._validators["colorsrc"] = v_fill.ColorsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/table/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/table/hoverlabel/__init__.py index 718d8da8091..017b5f6eb3b 100644 --- a/packages/python/plotly/plotly/graph_objs/table/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/table/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'table.hoverlabel' + return "table.hoverlabel" # Self properties description # --------------------------- @@ -262,7 +260,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -282,35 +280,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.table.hoverlabel import (font as v_font) + from plotly.validators.table.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/__init__.py b/packages/python/plotly/plotly/graph_objs/violin/__init__.py index 41adf65d8d6..4998154c3fc 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/violin/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -33,17 +31,17 @@ def marker(self): ------- plotly.graph_objs.violin.unselected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'violin' + return "violin" # Self properties description # --------------------------- @@ -72,7 +70,7 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__('unselected') + super(Unselected, self).__init__("unselected") # Validate arg # ------------ @@ -92,20 +90,20 @@ def __init__(self, arg=None, marker=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.violin import (unselected as v_unselected) + from plotly.validators.violin import unselected as v_unselected # Initialize validators # --------------------- - self._validators['marker'] = v_unselected.MarkerValidator() + self._validators["marker"] = v_unselected.MarkerValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- @@ -138,11 +136,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -159,17 +157,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'violin' + return "violin" # Self properties description # --------------------------- @@ -210,7 +208,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -230,23 +228,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.violin import (stream as v_stream) + from plotly.validators.violin import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -287,17 +285,17 @@ def marker(self): ------- plotly.graph_objs.violin.selected.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'violin' + return "violin" # Self properties description # --------------------------- @@ -326,7 +324,7 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__('selected') + super(Selected, self).__init__("selected") # Validate arg # ------------ @@ -346,20 +344,20 @@ def __init__(self, arg=None, marker=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.violin import (selected as v_selected) + from plotly.validators.violin import selected as v_selected # Initialize validators # --------------------- - self._validators['marker'] = v_selected.MarkerValidator() + self._validators["marker"] = v_selected.MarkerValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- @@ -429,11 +427,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # visible # ------- @@ -452,11 +450,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -472,17 +470,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'violin' + return "violin" # Self properties description # --------------------------- @@ -501,9 +499,7 @@ def _prop_descriptions(self): Sets the mean line width. """ - def __init__( - self, arg=None, color=None, visible=None, width=None, **kwargs - ): + def __init__(self, arg=None, color=None, visible=None, width=None, **kwargs): """ Construct a new Meanline object @@ -527,7 +523,7 @@ def __init__( ------- Meanline """ - super(Meanline, self).__init__('meanline') + super(Meanline, self).__init__("meanline") # Validate arg # ------------ @@ -547,26 +543,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.violin import (meanline as v_meanline) + from plotly.validators.violin import meanline as v_meanline # Initialize validators # --------------------- - self._validators['color'] = v_meanline.ColorValidator() - self._validators['visible'] = v_meanline.VisibleValidator() - self._validators['width'] = v_meanline.WidthValidator() + self._validators["color"] = v_meanline.ColorValidator() + self._validators["visible"] = v_meanline.VisibleValidator() + self._validators["width"] = v_meanline.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -639,11 +635,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # line # ---- @@ -679,11 +675,11 @@ def line(self): ------- plotly.graph_objs.violin.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # opacity # ------- @@ -699,11 +695,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # outliercolor # ------------ @@ -758,11 +754,11 @@ def outliercolor(self): ------- str """ - return self['outliercolor'] + return self["outliercolor"] @outliercolor.setter def outliercolor(self, val): - self['outliercolor'] = val + self["outliercolor"] = val # size # ---- @@ -778,11 +774,11 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # symbol # ------ @@ -862,17 +858,17 @@ def symbol(self): ------- Any """ - return self['symbol'] + return self["symbol"] @symbol.setter def symbol(self, val): - self['symbol'] = val + self["symbol"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'violin' + return "violin" # Self properties description # --------------------------- @@ -947,7 +943,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -967,35 +963,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.violin import (marker as v_marker) + from plotly.validators.violin import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['line'] = v_marker.LineValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['outliercolor'] = v_marker.OutliercolorValidator() - self._validators['size'] = v_marker.SizeValidator() - self._validators['symbol'] = v_marker.SymbolValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["line"] = v_marker.LineValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["outliercolor"] = v_marker.OutliercolorValidator() + self._validators["size"] = v_marker.SizeValidator() + self._validators["symbol"] = v_marker.SymbolValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('outliercolor', None) - self['outliercolor'] = outliercolor if outliercolor is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('symbol', None) - self['symbol'] = symbol if symbol is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("outliercolor", None) + self["outliercolor"] = outliercolor if outliercolor is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("symbol", None) + self["symbol"] = symbol if symbol is not None else _v # Process unknown kwargs # ---------------------- @@ -1065,11 +1061,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # width # ----- @@ -1085,17 +1081,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'violin' + return "violin" # Self properties description # --------------------------- @@ -1126,7 +1122,7 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -1146,23 +1142,23 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.violin import (line as v_line) + from plotly.validators.violin import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -1197,11 +1193,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -1217,11 +1213,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -1277,11 +1273,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -1297,11 +1293,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -1357,11 +1353,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -1377,11 +1373,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -1432,11 +1428,11 @@ def font(self): ------- plotly.graph_objs.violin.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -1459,11 +1455,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -1479,17 +1475,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'violin' + return "violin" # Self properties description # --------------------------- @@ -1581,7 +1577,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -1601,48 +1597,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.violin import (hoverlabel as v_hoverlabel) + from plotly.validators.violin import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1712,11 +1704,11 @@ def fillcolor(self): ------- str """ - return self['fillcolor'] + return self["fillcolor"] @fillcolor.setter def fillcolor(self, val): - self['fillcolor'] = val + self["fillcolor"] = val # line # ---- @@ -1740,11 +1732,11 @@ def line(self): ------- plotly.graph_objs.violin.box.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # visible # ------- @@ -1761,11 +1753,11 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # width # ----- @@ -1783,17 +1775,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'violin' + return "violin" # Self properties description # --------------------------- @@ -1815,13 +1807,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - fillcolor=None, - line=None, - visible=None, - width=None, - **kwargs + self, arg=None, fillcolor=None, line=None, visible=None, width=None, **kwargs ): """ Construct a new Box object @@ -1848,7 +1834,7 @@ def __init__( ------- Box """ - super(Box, self).__init__('box') + super(Box, self).__init__("box") # Validate arg # ------------ @@ -1868,29 +1854,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.violin import (box as v_box) + from plotly.validators.violin import box as v_box # Initialize validators # --------------------- - self._validators['fillcolor'] = v_box.FillcolorValidator() - self._validators['line'] = v_box.LineValidator() - self._validators['visible'] = v_box.VisibleValidator() - self._validators['width'] = v_box.WidthValidator() + self._validators["fillcolor"] = v_box.FillcolorValidator() + self._validators["line"] = v_box.LineValidator() + self._validators["visible"] = v_box.VisibleValidator() + self._validators["width"] = v_box.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fillcolor', None) - self['fillcolor'] = fillcolor if fillcolor is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("fillcolor", None) + self["fillcolor"] = fillcolor if fillcolor is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/box/__init__.py b/packages/python/plotly/plotly/graph_objs/violin/box/__init__.py index 67aba9bd530..30bad5155b5 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/box/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/violin/box/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # width # ----- @@ -79,17 +77,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'violin.box' + return "violin.box" # Self properties description # --------------------------- @@ -120,7 +118,7 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -140,23 +138,23 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.violin.box import (line as v_line) + from plotly.validators.violin.box import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/violin/hoverlabel/__init__.py index 2064cfcfb46..f7126b99ce5 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/violin/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'violin.hoverlabel' + return "violin.hoverlabel" # Self properties description # --------------------------- @@ -262,7 +260,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -282,35 +280,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.violin.hoverlabel import (font as v_font) + from plotly.validators.violin.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/violin/marker/__init__.py index 828bcc78488..1bd27c90b19 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/violin/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -62,11 +60,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # outliercolor # ------------ @@ -122,11 +120,11 @@ def outliercolor(self): ------- str """ - return self['outliercolor'] + return self["outliercolor"] @outliercolor.setter def outliercolor(self, val): - self['outliercolor'] = val + self["outliercolor"] = val # outlierwidth # ------------ @@ -143,11 +141,11 @@ def outlierwidth(self): ------- int|float """ - return self['outlierwidth'] + return self["outlierwidth"] @outlierwidth.setter def outlierwidth(self, val): - self['outlierwidth'] = val + self["outlierwidth"] = val # width # ----- @@ -163,17 +161,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'violin.marker' + return "violin.marker" # Self properties description # --------------------------- @@ -234,7 +232,7 @@ def __init__( ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -254,29 +252,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.violin.marker import (line as v_line) + from plotly.validators.violin.marker import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['outliercolor'] = v_line.OutliercolorValidator() - self._validators['outlierwidth'] = v_line.OutlierwidthValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["outliercolor"] = v_line.OutliercolorValidator() + self._validators["outlierwidth"] = v_line.OutlierwidthValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('outliercolor', None) - self['outliercolor'] = outliercolor if outliercolor is not None else _v - _v = arg.pop('outlierwidth', None) - self['outlierwidth'] = outlierwidth if outlierwidth is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("outliercolor", None) + self["outliercolor"] = outliercolor if outliercolor is not None else _v + _v = arg.pop("outlierwidth", None) + self["outlierwidth"] = outlierwidth if outlierwidth is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/selected/__init__.py b/packages/python/plotly/plotly/graph_objs/violin/selected/__init__.py index c482552872b..409a0da4899 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/selected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/violin/selected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -79,11 +77,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -99,17 +97,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'violin.selected' + return "violin.selected" # Self properties description # --------------------------- @@ -124,9 +122,7 @@ def _prop_descriptions(self): Sets the marker size of selected points. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -146,7 +142,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -166,26 +162,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.violin.selected import (marker as v_marker) + from plotly.validators.violin.selected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/violin/unselected/__init__.py b/packages/python/plotly/plotly/graph_objs/violin/unselected/__init__.py index 1d523437397..905e3fdb1a0 100644 --- a/packages/python/plotly/plotly/graph_objs/violin/unselected/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/violin/unselected/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,11 +58,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # opacity # ------- @@ -81,11 +79,11 @@ def opacity(self): ------- int|float """ - return self['opacity'] + return self["opacity"] @opacity.setter def opacity(self, val): - self['opacity'] = val + self["opacity"] = val # size # ---- @@ -102,17 +100,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'violin.unselected' + return "violin.unselected" # Self properties description # --------------------------- @@ -130,9 +128,7 @@ def _prop_descriptions(self): when a selection exists. """ - def __init__( - self, arg=None, color=None, opacity=None, size=None, **kwargs - ): + def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): """ Construct a new Marker object @@ -156,7 +152,7 @@ def __init__( ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -176,26 +172,26 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.violin.unselected import (marker as v_marker) + from plotly.validators.violin.unselected import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['opacity'] = v_marker.OpacityValidator() - self._validators['size'] = v_marker.SizeValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["opacity"] = v_marker.OpacityValidator() + self._validators["size"] = v_marker.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('opacity', None) - self['opacity'] = opacity if opacity is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("opacity", None) + self["opacity"] = opacity if opacity is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/__init__.py b/packages/python/plotly/plotly/graph_objs/volume/__init__.py index 972efd09ee8..f610d556495 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/volume/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -23,11 +21,11 @@ def count(self): ------- int """ - return self['count'] + return self["count"] @count.setter def count(self, val): - self['count'] = val + self["count"] = val # fill # ---- @@ -46,11 +44,11 @@ def fill(self): ------- int|float """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # pattern # ------- @@ -75,11 +73,11 @@ def pattern(self): ------- Any """ - return self['pattern'] + return self["pattern"] @pattern.setter def pattern(self, val): - self['pattern'] = val + self["pattern"] = val # show # ---- @@ -95,17 +93,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume' + return "volume" # Self properties description # --------------------------- @@ -138,13 +136,7 @@ def _prop_descriptions(self): """ def __init__( - self, - arg=None, - count=None, - fill=None, - pattern=None, - show=None, - **kwargs + self, arg=None, count=None, fill=None, pattern=None, show=None, **kwargs ): """ Construct a new Surface object @@ -182,7 +174,7 @@ def __init__( ------- Surface """ - super(Surface, self).__init__('surface') + super(Surface, self).__init__("surface") # Validate arg # ------------ @@ -202,29 +194,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume import (surface as v_surface) + from plotly.validators.volume import surface as v_surface # Initialize validators # --------------------- - self._validators['count'] = v_surface.CountValidator() - self._validators['fill'] = v_surface.FillValidator() - self._validators['pattern'] = v_surface.PatternValidator() - self._validators['show'] = v_surface.ShowValidator() + self._validators["count"] = v_surface.CountValidator() + self._validators["fill"] = v_surface.FillValidator() + self._validators["pattern"] = v_surface.PatternValidator() + self._validators["show"] = v_surface.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('count', None) - self['count'] = count if count is not None else _v - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('pattern', None) - self['pattern'] = pattern if pattern is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("count", None) + self["count"] = count if count is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("pattern", None) + self["pattern"] = pattern if pattern is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- @@ -257,11 +249,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -278,17 +270,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume' + return "volume" # Self properties description # --------------------------- @@ -329,7 +321,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -349,23 +341,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume import (stream as v_stream) + from plotly.validators.volume import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -399,11 +391,11 @@ def fill(self): ------- int|float """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # show # ---- @@ -421,17 +413,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume' + return "volume" # Self properties description # --------------------------- @@ -474,7 +466,7 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Spaceframe """ - super(Spaceframe, self).__init__('spaceframe') + super(Spaceframe, self).__init__("spaceframe") # Validate arg # ------------ @@ -494,23 +486,23 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume import (spaceframe as v_spaceframe) + from plotly.validators.volume import spaceframe as v_spaceframe # Initialize validators # --------------------- - self._validators['fill'] = v_spaceframe.FillValidator() - self._validators['show'] = v_spaceframe.ShowValidator() + self._validators["fill"] = v_spaceframe.FillValidator() + self._validators["show"] = v_spaceframe.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- @@ -563,11 +555,11 @@ def x(self): ------- plotly.graph_objs.volume.slices.X """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -605,11 +597,11 @@ def y(self): ------- plotly.graph_objs.volume.slices.Y """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -647,17 +639,17 @@ def z(self): ------- plotly.graph_objs.volume.slices.Z """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume' + return "volume" # Self properties description # --------------------------- @@ -698,7 +690,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Slices """ - super(Slices, self).__init__('slices') + super(Slices, self).__init__("slices") # Validate arg # ------------ @@ -718,26 +710,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume import (slices as v_slices) + from plotly.validators.volume import slices as v_slices # Initialize validators # --------------------- - self._validators['x'] = v_slices.XValidator() - self._validators['y'] = v_slices.YValidator() - self._validators['z'] = v_slices.ZValidator() + self._validators["x"] = v_slices.XValidator() + self._validators["y"] = v_slices.YValidator() + self._validators["z"] = v_slices.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- @@ -768,11 +760,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -788,11 +780,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -808,17 +800,17 @@ def z(self): ------- int|float """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume' + return "volume" # Self properties description # --------------------------- @@ -859,7 +851,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__('lightposition') + super(Lightposition, self).__init__("lightposition") # Validate arg # ------------ @@ -879,26 +871,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume import (lightposition as v_lightposition) + from plotly.validators.volume import lightposition as v_lightposition # Initialize validators # --------------------- - self._validators['x'] = v_lightposition.XValidator() - self._validators['y'] = v_lightposition.YValidator() - self._validators['z'] = v_lightposition.ZValidator() + self._validators["x"] = v_lightposition.XValidator() + self._validators["y"] = v_lightposition.YValidator() + self._validators["z"] = v_lightposition.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- @@ -930,11 +922,11 @@ def ambient(self): ------- int|float """ - return self['ambient'] + return self["ambient"] @ambient.setter def ambient(self, val): - self['ambient'] = val + self["ambient"] = val # diffuse # ------- @@ -951,11 +943,11 @@ def diffuse(self): ------- int|float """ - return self['diffuse'] + return self["diffuse"] @diffuse.setter def diffuse(self, val): - self['diffuse'] = val + self["diffuse"] = val # facenormalsepsilon # ------------------ @@ -972,11 +964,11 @@ def facenormalsepsilon(self): ------- int|float """ - return self['facenormalsepsilon'] + return self["facenormalsepsilon"] @facenormalsepsilon.setter def facenormalsepsilon(self, val): - self['facenormalsepsilon'] = val + self["facenormalsepsilon"] = val # fresnel # ------- @@ -994,11 +986,11 @@ def fresnel(self): ------- int|float """ - return self['fresnel'] + return self["fresnel"] @fresnel.setter def fresnel(self, val): - self['fresnel'] = val + self["fresnel"] = val # roughness # --------- @@ -1015,11 +1007,11 @@ def roughness(self): ------- int|float """ - return self['roughness'] + return self["roughness"] @roughness.setter def roughness(self, val): - self['roughness'] = val + self["roughness"] = val # specular # -------- @@ -1036,11 +1028,11 @@ def specular(self): ------- int|float """ - return self['specular'] + return self["specular"] @specular.setter def specular(self, val): - self['specular'] = val + self["specular"] = val # vertexnormalsepsilon # -------------------- @@ -1057,17 +1049,17 @@ def vertexnormalsepsilon(self): ------- int|float """ - return self['vertexnormalsepsilon'] + return self["vertexnormalsepsilon"] @vertexnormalsepsilon.setter def vertexnormalsepsilon(self, val): - self['vertexnormalsepsilon'] = val + self["vertexnormalsepsilon"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume' + return "volume" # Self properties description # --------------------------- @@ -1147,7 +1139,7 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__('lighting') + super(Lighting, self).__init__("lighting") # Validate arg # ------------ @@ -1167,43 +1159,46 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume import (lighting as v_lighting) + from plotly.validators.volume import lighting as v_lighting # Initialize validators # --------------------- - self._validators['ambient'] = v_lighting.AmbientValidator() - self._validators['diffuse'] = v_lighting.DiffuseValidator() - self._validators['facenormalsepsilon' - ] = v_lighting.FacenormalsepsilonValidator() - self._validators['fresnel'] = v_lighting.FresnelValidator() - self._validators['roughness'] = v_lighting.RoughnessValidator() - self._validators['specular'] = v_lighting.SpecularValidator() - self._validators['vertexnormalsepsilon' - ] = v_lighting.VertexnormalsepsilonValidator() + self._validators["ambient"] = v_lighting.AmbientValidator() + self._validators["diffuse"] = v_lighting.DiffuseValidator() + self._validators[ + "facenormalsepsilon" + ] = v_lighting.FacenormalsepsilonValidator() + self._validators["fresnel"] = v_lighting.FresnelValidator() + self._validators["roughness"] = v_lighting.RoughnessValidator() + self._validators["specular"] = v_lighting.SpecularValidator() + self._validators[ + "vertexnormalsepsilon" + ] = v_lighting.VertexnormalsepsilonValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('ambient', None) - self['ambient'] = ambient if ambient is not None else _v - _v = arg.pop('diffuse', None) - self['diffuse'] = diffuse if diffuse is not None else _v - _v = arg.pop('facenormalsepsilon', None) - self['facenormalsepsilon' - ] = facenormalsepsilon if facenormalsepsilon is not None else _v - _v = arg.pop('fresnel', None) - self['fresnel'] = fresnel if fresnel is not None else _v - _v = arg.pop('roughness', None) - self['roughness'] = roughness if roughness is not None else _v - _v = arg.pop('specular', None) - self['specular'] = specular if specular is not None else _v - _v = arg.pop('vertexnormalsepsilon', None) - self[ - 'vertexnormalsepsilon' - ] = vertexnormalsepsilon if vertexnormalsepsilon is not None else _v + _v = arg.pop("ambient", None) + self["ambient"] = ambient if ambient is not None else _v + _v = arg.pop("diffuse", None) + self["diffuse"] = diffuse if diffuse is not None else _v + _v = arg.pop("facenormalsepsilon", None) + self["facenormalsepsilon"] = ( + facenormalsepsilon if facenormalsepsilon is not None else _v + ) + _v = arg.pop("fresnel", None) + self["fresnel"] = fresnel if fresnel is not None else _v + _v = arg.pop("roughness", None) + self["roughness"] = roughness if roughness is not None else _v + _v = arg.pop("specular", None) + self["specular"] = specular if specular is not None else _v + _v = arg.pop("vertexnormalsepsilon", None) + self["vertexnormalsepsilon"] = ( + vertexnormalsepsilon if vertexnormalsepsilon is not None else _v + ) # Process unknown kwargs # ---------------------- @@ -1238,11 +1233,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -1258,11 +1253,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -1318,11 +1313,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -1338,11 +1333,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -1398,11 +1393,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -1418,11 +1413,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -1473,11 +1468,11 @@ def font(self): ------- plotly.graph_objs.volume.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -1500,11 +1495,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -1520,17 +1515,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume' + return "volume" # Self properties description # --------------------------- @@ -1622,7 +1617,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -1642,48 +1637,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume import (hoverlabel as v_hoverlabel) + from plotly.validators.volume import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1753,11 +1744,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # show # ---- @@ -1773,11 +1764,11 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # width # ----- @@ -1793,17 +1784,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume' + return "volume" # Self properties description # --------------------------- @@ -1838,7 +1829,7 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): ------- Contour """ - super(Contour, self).__init__('contour') + super(Contour, self).__init__("contour") # Validate arg # ------------ @@ -1858,26 +1849,26 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume import (contour as v_contour) + from plotly.validators.volume import contour as v_contour # Initialize validators # --------------------- - self._validators['color'] = v_contour.ColorValidator() - self._validators['show'] = v_contour.ShowValidator() - self._validators['width'] = v_contour.WidthValidator() + self._validators["color"] = v_contour.ColorValidator() + self._validators["show"] = v_contour.ShowValidator() + self._validators["width"] = v_contour.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- @@ -1947,11 +1938,11 @@ def bgcolor(self): ------- str """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bordercolor # ----------- @@ -2006,11 +1997,11 @@ def bordercolor(self): ------- str """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # borderwidth # ----------- @@ -2026,11 +2017,11 @@ def borderwidth(self): ------- int|float """ - return self['borderwidth'] + return self["borderwidth"] @borderwidth.setter def borderwidth(self, val): - self['borderwidth'] = val + self["borderwidth"] = val # dtick # ----- @@ -2064,11 +2055,11 @@ def dtick(self): ------- Any """ - return self['dtick'] + return self["dtick"] @dtick.setter def dtick(self, val): - self['dtick'] = val + self["dtick"] = val # exponentformat # -------------- @@ -2089,11 +2080,11 @@ def exponentformat(self): ------- Any """ - return self['exponentformat'] + return self["exponentformat"] @exponentformat.setter def exponentformat(self, val): - self['exponentformat'] = val + self["exponentformat"] = val # len # --- @@ -2111,11 +2102,11 @@ def len(self): ------- int|float """ - return self['len'] + return self["len"] @len.setter def len(self, val): - self['len'] = val + self["len"] = val # lenmode # ------- @@ -2134,11 +2125,11 @@ def lenmode(self): ------- Any """ - return self['lenmode'] + return self["lenmode"] @lenmode.setter def lenmode(self, val): - self['lenmode'] = val + self["lenmode"] = val # nticks # ------ @@ -2158,11 +2149,11 @@ def nticks(self): ------- int """ - return self['nticks'] + return self["nticks"] @nticks.setter def nticks(self, val): - self['nticks'] = val + self["nticks"] = val # outlinecolor # ------------ @@ -2217,11 +2208,11 @@ def outlinecolor(self): ------- str """ - return self['outlinecolor'] + return self["outlinecolor"] @outlinecolor.setter def outlinecolor(self, val): - self['outlinecolor'] = val + self["outlinecolor"] = val # outlinewidth # ------------ @@ -2237,11 +2228,11 @@ def outlinewidth(self): ------- int|float """ - return self['outlinewidth'] + return self["outlinewidth"] @outlinewidth.setter def outlinewidth(self, val): - self['outlinewidth'] = val + self["outlinewidth"] = val # separatethousands # ----------------- @@ -2257,11 +2248,11 @@ def separatethousands(self): ------- bool """ - return self['separatethousands'] + return self["separatethousands"] @separatethousands.setter def separatethousands(self, val): - self['separatethousands'] = val + self["separatethousands"] = val # showexponent # ------------ @@ -2281,11 +2272,11 @@ def showexponent(self): ------- Any """ - return self['showexponent'] + return self["showexponent"] @showexponent.setter def showexponent(self, val): - self['showexponent'] = val + self["showexponent"] = val # showticklabels # -------------- @@ -2301,11 +2292,11 @@ def showticklabels(self): ------- bool """ - return self['showticklabels'] + return self["showticklabels"] @showticklabels.setter def showticklabels(self, val): - self['showticklabels'] = val + self["showticklabels"] = val # showtickprefix # -------------- @@ -2325,11 +2316,11 @@ def showtickprefix(self): ------- Any """ - return self['showtickprefix'] + return self["showtickprefix"] @showtickprefix.setter def showtickprefix(self, val): - self['showtickprefix'] = val + self["showtickprefix"] = val # showticksuffix # -------------- @@ -2346,11 +2337,11 @@ def showticksuffix(self): ------- Any """ - return self['showticksuffix'] + return self["showticksuffix"] @showticksuffix.setter def showticksuffix(self, val): - self['showticksuffix'] = val + self["showticksuffix"] = val # thickness # --------- @@ -2367,11 +2358,11 @@ def thickness(self): ------- int|float """ - return self['thickness'] + return self["thickness"] @thickness.setter def thickness(self, val): - self['thickness'] = val + self["thickness"] = val # thicknessmode # ------------- @@ -2390,11 +2381,11 @@ def thicknessmode(self): ------- Any """ - return self['thicknessmode'] + return self["thicknessmode"] @thicknessmode.setter def thicknessmode(self, val): - self['thicknessmode'] = val + self["thicknessmode"] = val # tick0 # ----- @@ -2417,11 +2408,11 @@ def tick0(self): ------- Any """ - return self['tick0'] + return self["tick0"] @tick0.setter def tick0(self, val): - self['tick0'] = val + self["tick0"] = val # tickangle # --------- @@ -2441,11 +2432,11 @@ def tickangle(self): ------- int|float """ - return self['tickangle'] + return self["tickangle"] @tickangle.setter def tickangle(self, val): - self['tickangle'] = val + self["tickangle"] = val # tickcolor # --------- @@ -2500,11 +2491,11 @@ def tickcolor(self): ------- str """ - return self['tickcolor'] + return self["tickcolor"] @tickcolor.setter def tickcolor(self, val): - self['tickcolor'] = val + self["tickcolor"] = val # tickfont # -------- @@ -2545,11 +2536,11 @@ def tickfont(self): ------- plotly.graph_objs.volume.colorbar.Tickfont """ - return self['tickfont'] + return self["tickfont"] @tickfont.setter def tickfont(self, val): - self['tickfont'] = val + self["tickfont"] = val # tickformat # ---------- @@ -2574,11 +2565,11 @@ def tickformat(self): ------- str """ - return self['tickformat'] + return self["tickformat"] @tickformat.setter def tickformat(self, val): - self['tickformat'] = val + self["tickformat"] = val # tickformatstops # --------------- @@ -2631,11 +2622,11 @@ def tickformatstops(self): ------- tuple[plotly.graph_objs.volume.colorbar.Tickformatstop] """ - return self['tickformatstops'] + return self["tickformatstops"] @tickformatstops.setter def tickformatstops(self, val): - self['tickformatstops'] = val + self["tickformatstops"] = val # tickformatstopdefaults # ---------------------- @@ -2659,11 +2650,11 @@ def tickformatstopdefaults(self): ------- plotly.graph_objs.volume.colorbar.Tickformatstop """ - return self['tickformatstopdefaults'] + return self["tickformatstopdefaults"] @tickformatstopdefaults.setter def tickformatstopdefaults(self, val): - self['tickformatstopdefaults'] = val + self["tickformatstopdefaults"] = val # ticklen # ------- @@ -2679,11 +2670,11 @@ def ticklen(self): ------- int|float """ - return self['ticklen'] + return self["ticklen"] @ticklen.setter def ticklen(self, val): - self['ticklen'] = val + self["ticklen"] = val # tickmode # -------- @@ -2706,11 +2697,11 @@ def tickmode(self): ------- Any """ - return self['tickmode'] + return self["tickmode"] @tickmode.setter def tickmode(self, val): - self['tickmode'] = val + self["tickmode"] = val # tickprefix # ---------- @@ -2727,11 +2718,11 @@ def tickprefix(self): ------- str """ - return self['tickprefix'] + return self["tickprefix"] @tickprefix.setter def tickprefix(self, val): - self['tickprefix'] = val + self["tickprefix"] = val # ticks # ----- @@ -2750,11 +2741,11 @@ def ticks(self): ------- Any """ - return self['ticks'] + return self["ticks"] @ticks.setter def ticks(self, val): - self['ticks'] = val + self["ticks"] = val # ticksuffix # ---------- @@ -2771,11 +2762,11 @@ def ticksuffix(self): ------- str """ - return self['ticksuffix'] + return self["ticksuffix"] @ticksuffix.setter def ticksuffix(self, val): - self['ticksuffix'] = val + self["ticksuffix"] = val # ticktext # -------- @@ -2793,11 +2784,11 @@ def ticktext(self): ------- numpy.ndarray """ - return self['ticktext'] + return self["ticktext"] @ticktext.setter def ticktext(self, val): - self['ticktext'] = val + self["ticktext"] = val # ticktextsrc # ----------- @@ -2813,11 +2804,11 @@ def ticktextsrc(self): ------- str """ - return self['ticktextsrc'] + return self["ticktextsrc"] @ticktextsrc.setter def ticktextsrc(self, val): - self['ticktextsrc'] = val + self["ticktextsrc"] = val # tickvals # -------- @@ -2834,11 +2825,11 @@ def tickvals(self): ------- numpy.ndarray """ - return self['tickvals'] + return self["tickvals"] @tickvals.setter def tickvals(self, val): - self['tickvals'] = val + self["tickvals"] = val # tickvalssrc # ----------- @@ -2854,11 +2845,11 @@ def tickvalssrc(self): ------- str """ - return self['tickvalssrc'] + return self["tickvalssrc"] @tickvalssrc.setter def tickvalssrc(self, val): - self['tickvalssrc'] = val + self["tickvalssrc"] = val # tickwidth # --------- @@ -2874,11 +2865,11 @@ def tickwidth(self): ------- int|float """ - return self['tickwidth'] + return self["tickwidth"] @tickwidth.setter def tickwidth(self, val): - self['tickwidth'] = val + self["tickwidth"] = val # title # ----- @@ -2913,11 +2904,11 @@ def title(self): ------- plotly.graph_objs.volume.colorbar.Title """ - return self['title'] + return self["title"] @title.setter def title(self, val): - self['title'] = val + self["title"] = val # titlefont # --------- @@ -2960,11 +2951,11 @@ def titlefont(self): ------- """ - return self['titlefont'] + return self["titlefont"] @titlefont.setter def titlefont(self, val): - self['titlefont'] = val + self["titlefont"] = val # titleside # --------- @@ -2984,11 +2975,11 @@ def titleside(self): ------- """ - return self['titleside'] + return self["titleside"] @titleside.setter def titleside(self, val): - self['titleside'] = val + self["titleside"] = val # x # - @@ -3004,11 +2995,11 @@ def x(self): ------- int|float """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # xanchor # ------- @@ -3027,11 +3018,11 @@ def xanchor(self): ------- Any """ - return self['xanchor'] + return self["xanchor"] @xanchor.setter def xanchor(self, val): - self['xanchor'] = val + self["xanchor"] = val # xpad # ---- @@ -3047,11 +3038,11 @@ def xpad(self): ------- int|float """ - return self['xpad'] + return self["xpad"] @xpad.setter def xpad(self, val): - self['xpad'] = val + self["xpad"] = val # y # - @@ -3067,11 +3058,11 @@ def y(self): ------- int|float """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # yanchor # ------- @@ -3090,11 +3081,11 @@ def yanchor(self): ------- Any """ - return self['yanchor'] + return self["yanchor"] @yanchor.setter def yanchor(self, val): - self['yanchor'] = val + self["yanchor"] = val # ypad # ---- @@ -3110,17 +3101,17 @@ def ypad(self): ------- int|float """ - return self['ypad'] + return self["ypad"] @ypad.setter def ypad(self, val): - self['ypad'] = val + self["ypad"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume' + return "volume" # Self properties description # --------------------------- @@ -3315,8 +3306,8 @@ def _prop_descriptions(self): """ _mapped_properties = { - 'titlefont': ('title', 'font'), - 'titleside': ('title', 'side') + "titlefont": ("title", "font"), + "titleside": ("title", "side"), } def __init__( @@ -3565,7 +3556,7 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__('colorbar') + super(ColorBar, self).__init__("colorbar") # Validate arg # ------------ @@ -3585,164 +3576,154 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume import (colorbar as v_colorbar) + from plotly.validators.volume import colorbar as v_colorbar # Initialize validators # --------------------- - self._validators['bgcolor'] = v_colorbar.BgcolorValidator() - self._validators['bordercolor'] = v_colorbar.BordercolorValidator() - self._validators['borderwidth'] = v_colorbar.BorderwidthValidator() - self._validators['dtick'] = v_colorbar.DtickValidator() - self._validators['exponentformat' - ] = v_colorbar.ExponentformatValidator() - self._validators['len'] = v_colorbar.LenValidator() - self._validators['lenmode'] = v_colorbar.LenmodeValidator() - self._validators['nticks'] = v_colorbar.NticksValidator() - self._validators['outlinecolor'] = v_colorbar.OutlinecolorValidator() - self._validators['outlinewidth'] = v_colorbar.OutlinewidthValidator() - self._validators['separatethousands' - ] = v_colorbar.SeparatethousandsValidator() - self._validators['showexponent'] = v_colorbar.ShowexponentValidator() - self._validators['showticklabels' - ] = v_colorbar.ShowticklabelsValidator() - self._validators['showtickprefix' - ] = v_colorbar.ShowtickprefixValidator() - self._validators['showticksuffix' - ] = v_colorbar.ShowticksuffixValidator() - self._validators['thickness'] = v_colorbar.ThicknessValidator() - self._validators['thicknessmode'] = v_colorbar.ThicknessmodeValidator() - self._validators['tick0'] = v_colorbar.Tick0Validator() - self._validators['tickangle'] = v_colorbar.TickangleValidator() - self._validators['tickcolor'] = v_colorbar.TickcolorValidator() - self._validators['tickfont'] = v_colorbar.TickfontValidator() - self._validators['tickformat'] = v_colorbar.TickformatValidator() - self._validators['tickformatstops' - ] = v_colorbar.TickformatstopsValidator() - self._validators['tickformatstopdefaults' - ] = v_colorbar.TickformatstopValidator() - self._validators['ticklen'] = v_colorbar.TicklenValidator() - self._validators['tickmode'] = v_colorbar.TickmodeValidator() - self._validators['tickprefix'] = v_colorbar.TickprefixValidator() - self._validators['ticks'] = v_colorbar.TicksValidator() - self._validators['ticksuffix'] = v_colorbar.TicksuffixValidator() - self._validators['ticktext'] = v_colorbar.TicktextValidator() - self._validators['ticktextsrc'] = v_colorbar.TicktextsrcValidator() - self._validators['tickvals'] = v_colorbar.TickvalsValidator() - self._validators['tickvalssrc'] = v_colorbar.TickvalssrcValidator() - self._validators['tickwidth'] = v_colorbar.TickwidthValidator() - self._validators['title'] = v_colorbar.TitleValidator() - self._validators['x'] = v_colorbar.XValidator() - self._validators['xanchor'] = v_colorbar.XanchorValidator() - self._validators['xpad'] = v_colorbar.XpadValidator() - self._validators['y'] = v_colorbar.YValidator() - self._validators['yanchor'] = v_colorbar.YanchorValidator() - self._validators['ypad'] = v_colorbar.YpadValidator() + self._validators["bgcolor"] = v_colorbar.BgcolorValidator() + self._validators["bordercolor"] = v_colorbar.BordercolorValidator() + self._validators["borderwidth"] = v_colorbar.BorderwidthValidator() + self._validators["dtick"] = v_colorbar.DtickValidator() + self._validators["exponentformat"] = v_colorbar.ExponentformatValidator() + self._validators["len"] = v_colorbar.LenValidator() + self._validators["lenmode"] = v_colorbar.LenmodeValidator() + self._validators["nticks"] = v_colorbar.NticksValidator() + self._validators["outlinecolor"] = v_colorbar.OutlinecolorValidator() + self._validators["outlinewidth"] = v_colorbar.OutlinewidthValidator() + self._validators["separatethousands"] = v_colorbar.SeparatethousandsValidator() + self._validators["showexponent"] = v_colorbar.ShowexponentValidator() + self._validators["showticklabels"] = v_colorbar.ShowticklabelsValidator() + self._validators["showtickprefix"] = v_colorbar.ShowtickprefixValidator() + self._validators["showticksuffix"] = v_colorbar.ShowticksuffixValidator() + self._validators["thickness"] = v_colorbar.ThicknessValidator() + self._validators["thicknessmode"] = v_colorbar.ThicknessmodeValidator() + self._validators["tick0"] = v_colorbar.Tick0Validator() + self._validators["tickangle"] = v_colorbar.TickangleValidator() + self._validators["tickcolor"] = v_colorbar.TickcolorValidator() + self._validators["tickfont"] = v_colorbar.TickfontValidator() + self._validators["tickformat"] = v_colorbar.TickformatValidator() + self._validators["tickformatstops"] = v_colorbar.TickformatstopsValidator() + self._validators[ + "tickformatstopdefaults" + ] = v_colorbar.TickformatstopValidator() + self._validators["ticklen"] = v_colorbar.TicklenValidator() + self._validators["tickmode"] = v_colorbar.TickmodeValidator() + self._validators["tickprefix"] = v_colorbar.TickprefixValidator() + self._validators["ticks"] = v_colorbar.TicksValidator() + self._validators["ticksuffix"] = v_colorbar.TicksuffixValidator() + self._validators["ticktext"] = v_colorbar.TicktextValidator() + self._validators["ticktextsrc"] = v_colorbar.TicktextsrcValidator() + self._validators["tickvals"] = v_colorbar.TickvalsValidator() + self._validators["tickvalssrc"] = v_colorbar.TickvalssrcValidator() + self._validators["tickwidth"] = v_colorbar.TickwidthValidator() + self._validators["title"] = v_colorbar.TitleValidator() + self._validators["x"] = v_colorbar.XValidator() + self._validators["xanchor"] = v_colorbar.XanchorValidator() + self._validators["xpad"] = v_colorbar.XpadValidator() + self._validators["y"] = v_colorbar.YValidator() + self._validators["yanchor"] = v_colorbar.YanchorValidator() + self._validators["ypad"] = v_colorbar.YpadValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('borderwidth', None) - self['borderwidth'] = borderwidth if borderwidth is not None else _v - _v = arg.pop('dtick', None) - self['dtick'] = dtick if dtick is not None else _v - _v = arg.pop('exponentformat', None) - self['exponentformat' - ] = exponentformat if exponentformat is not None else _v - _v = arg.pop('len', None) - self['len'] = len if len is not None else _v - _v = arg.pop('lenmode', None) - self['lenmode'] = lenmode if lenmode is not None else _v - _v = arg.pop('nticks', None) - self['nticks'] = nticks if nticks is not None else _v - _v = arg.pop('outlinecolor', None) - self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v - _v = arg.pop('outlinewidth', None) - self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v - _v = arg.pop('separatethousands', None) - self['separatethousands' - ] = separatethousands if separatethousands is not None else _v - _v = arg.pop('showexponent', None) - self['showexponent'] = showexponent if showexponent is not None else _v - _v = arg.pop('showticklabels', None) - self['showticklabels' - ] = showticklabels if showticklabels is not None else _v - _v = arg.pop('showtickprefix', None) - self['showtickprefix' - ] = showtickprefix if showtickprefix is not None else _v - _v = arg.pop('showticksuffix', None) - self['showticksuffix' - ] = showticksuffix if showticksuffix is not None else _v - _v = arg.pop('thickness', None) - self['thickness'] = thickness if thickness is not None else _v - _v = arg.pop('thicknessmode', None) - self['thicknessmode' - ] = thicknessmode if thicknessmode is not None else _v - _v = arg.pop('tick0', None) - self['tick0'] = tick0 if tick0 is not None else _v - _v = arg.pop('tickangle', None) - self['tickangle'] = tickangle if tickangle is not None else _v - _v = arg.pop('tickcolor', None) - self['tickcolor'] = tickcolor if tickcolor is not None else _v - _v = arg.pop('tickfont', None) - self['tickfont'] = tickfont if tickfont is not None else _v - _v = arg.pop('tickformat', None) - self['tickformat'] = tickformat if tickformat is not None else _v - _v = arg.pop('tickformatstops', None) - self['tickformatstops' - ] = tickformatstops if tickformatstops is not None else _v - _v = arg.pop('tickformatstopdefaults', None) - self[ - 'tickformatstopdefaults' - ] = tickformatstopdefaults if tickformatstopdefaults is not None else _v - _v = arg.pop('ticklen', None) - self['ticklen'] = ticklen if ticklen is not None else _v - _v = arg.pop('tickmode', None) - self['tickmode'] = tickmode if tickmode is not None else _v - _v = arg.pop('tickprefix', None) - self['tickprefix'] = tickprefix if tickprefix is not None else _v - _v = arg.pop('ticks', None) - self['ticks'] = ticks if ticks is not None else _v - _v = arg.pop('ticksuffix', None) - self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v - _v = arg.pop('ticktext', None) - self['ticktext'] = ticktext if ticktext is not None else _v - _v = arg.pop('ticktextsrc', None) - self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v - _v = arg.pop('tickvals', None) - self['tickvals'] = tickvals if tickvals is not None else _v - _v = arg.pop('tickvalssrc', None) - self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v - _v = arg.pop('tickwidth', None) - self['tickwidth'] = tickwidth if tickwidth is not None else _v - _v = arg.pop('title', None) - self['title'] = title if title is not None else _v - _v = arg.pop('titlefont', None) + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("borderwidth", None) + self["borderwidth"] = borderwidth if borderwidth is not None else _v + _v = arg.pop("dtick", None) + self["dtick"] = dtick if dtick is not None else _v + _v = arg.pop("exponentformat", None) + self["exponentformat"] = exponentformat if exponentformat is not None else _v + _v = arg.pop("len", None) + self["len"] = len if len is not None else _v + _v = arg.pop("lenmode", None) + self["lenmode"] = lenmode if lenmode is not None else _v + _v = arg.pop("nticks", None) + self["nticks"] = nticks if nticks is not None else _v + _v = arg.pop("outlinecolor", None) + self["outlinecolor"] = outlinecolor if outlinecolor is not None else _v + _v = arg.pop("outlinewidth", None) + self["outlinewidth"] = outlinewidth if outlinewidth is not None else _v + _v = arg.pop("separatethousands", None) + self["separatethousands"] = ( + separatethousands if separatethousands is not None else _v + ) + _v = arg.pop("showexponent", None) + self["showexponent"] = showexponent if showexponent is not None else _v + _v = arg.pop("showticklabels", None) + self["showticklabels"] = showticklabels if showticklabels is not None else _v + _v = arg.pop("showtickprefix", None) + self["showtickprefix"] = showtickprefix if showtickprefix is not None else _v + _v = arg.pop("showticksuffix", None) + self["showticksuffix"] = showticksuffix if showticksuffix is not None else _v + _v = arg.pop("thickness", None) + self["thickness"] = thickness if thickness is not None else _v + _v = arg.pop("thicknessmode", None) + self["thicknessmode"] = thicknessmode if thicknessmode is not None else _v + _v = arg.pop("tick0", None) + self["tick0"] = tick0 if tick0 is not None else _v + _v = arg.pop("tickangle", None) + self["tickangle"] = tickangle if tickangle is not None else _v + _v = arg.pop("tickcolor", None) + self["tickcolor"] = tickcolor if tickcolor is not None else _v + _v = arg.pop("tickfont", None) + self["tickfont"] = tickfont if tickfont is not None else _v + _v = arg.pop("tickformat", None) + self["tickformat"] = tickformat if tickformat is not None else _v + _v = arg.pop("tickformatstops", None) + self["tickformatstops"] = tickformatstops if tickformatstops is not None else _v + _v = arg.pop("tickformatstopdefaults", None) + self["tickformatstopdefaults"] = ( + tickformatstopdefaults if tickformatstopdefaults is not None else _v + ) + _v = arg.pop("ticklen", None) + self["ticklen"] = ticklen if ticklen is not None else _v + _v = arg.pop("tickmode", None) + self["tickmode"] = tickmode if tickmode is not None else _v + _v = arg.pop("tickprefix", None) + self["tickprefix"] = tickprefix if tickprefix is not None else _v + _v = arg.pop("ticks", None) + self["ticks"] = ticks if ticks is not None else _v + _v = arg.pop("ticksuffix", None) + self["ticksuffix"] = ticksuffix if ticksuffix is not None else _v + _v = arg.pop("ticktext", None) + self["ticktext"] = ticktext if ticktext is not None else _v + _v = arg.pop("ticktextsrc", None) + self["ticktextsrc"] = ticktextsrc if ticktextsrc is not None else _v + _v = arg.pop("tickvals", None) + self["tickvals"] = tickvals if tickvals is not None else _v + _v = arg.pop("tickvalssrc", None) + self["tickvalssrc"] = tickvalssrc if tickvalssrc is not None else _v + _v = arg.pop("tickwidth", None) + self["tickwidth"] = tickwidth if tickwidth is not None else _v + _v = arg.pop("title", None) + self["title"] = title if title is not None else _v + _v = arg.pop("titlefont", None) _v = titlefont if titlefont is not None else _v if _v is not None: - self['titlefont'] = _v - _v = arg.pop('titleside', None) + self["titlefont"] = _v + _v = arg.pop("titleside", None) _v = titleside if titleside is not None else _v if _v is not None: - self['titleside'] = _v - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('xanchor', None) - self['xanchor'] = xanchor if xanchor is not None else _v - _v = arg.pop('xpad', None) - self['xpad'] = xpad if xpad is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('yanchor', None) - self['yanchor'] = yanchor if yanchor is not None else _v - _v = arg.pop('ypad', None) - self['ypad'] = ypad if ypad is not None else _v + self["titleside"] = _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("xanchor", None) + self["xanchor"] = xanchor if xanchor is not None else _v + _v = arg.pop("xpad", None) + self["xpad"] = xpad if xpad is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("yanchor", None) + self["yanchor"] = yanchor if yanchor is not None else _v + _v = arg.pop("ypad", None) + self["ypad"] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- @@ -3790,11 +3771,11 @@ def x(self): ------- plotly.graph_objs.volume.caps.X """ - return self['x'] + return self["x"] @x.setter def x(self, val): - self['x'] = val + self["x"] = val # y # - @@ -3827,11 +3808,11 @@ def y(self): ------- plotly.graph_objs.volume.caps.Y """ - return self['y'] + return self["y"] @y.setter def y(self, val): - self['y'] = val + self["y"] = val # z # - @@ -3864,17 +3845,17 @@ def z(self): ------- plotly.graph_objs.volume.caps.Z """ - return self['z'] + return self["z"] @z.setter def z(self, val): - self['z'] = val + self["z"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume' + return "volume" # Self properties description # --------------------------- @@ -3915,7 +3896,7 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Caps """ - super(Caps, self).__init__('caps') + super(Caps, self).__init__("caps") # Validate arg # ------------ @@ -3935,26 +3916,26 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume import (caps as v_caps) + from plotly.validators.volume import caps as v_caps # Initialize validators # --------------------- - self._validators['x'] = v_caps.XValidator() - self._validators['y'] = v_caps.YValidator() - self._validators['z'] = v_caps.ZValidator() + self._validators["x"] = v_caps.XValidator() + self._validators["y"] = v_caps.YValidator() + self._validators["z"] = v_caps.ZValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('x', None) - self['x'] = x if x is not None else _v - _v = arg.pop('y', None) - self['y'] = y if y is not None else _v - _v = arg.pop('z', None) - self['z'] = z if z is not None else _v + _v = arg.pop("x", None) + self["x"] = x if x is not None else _v + _v = arg.pop("y", None) + self["y"] = y if y is not None else _v + _v = arg.pop("z", None) + self["z"] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/caps/__init__.py b/packages/python/plotly/plotly/graph_objs/volume/caps/__init__.py index 0d93d87d0c5..7f4e052e192 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/caps/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/volume/caps/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -23,11 +21,11 @@ def fill(self): ------- int|float """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # show # ---- @@ -46,17 +44,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume.caps' + return "volume.caps" # Self properties description # --------------------------- @@ -103,7 +101,7 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Z """ - super(Z, self).__init__('z') + super(Z, self).__init__("z") # Validate arg # ------------ @@ -123,23 +121,23 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume.caps import (z as v_z) + from plotly.validators.volume.caps import z as v_z # Initialize validators # --------------------- - self._validators['fill'] = v_z.FillValidator() - self._validators['show'] = v_z.ShowValidator() + self._validators["fill"] = v_z.FillValidator() + self._validators["show"] = v_z.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- @@ -173,11 +171,11 @@ def fill(self): ------- int|float """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # show # ---- @@ -196,17 +194,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume.caps' + return "volume.caps" # Self properties description # --------------------------- @@ -253,7 +251,7 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Y """ - super(Y, self).__init__('y') + super(Y, self).__init__("y") # Validate arg # ------------ @@ -273,23 +271,23 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume.caps import (y as v_y) + from plotly.validators.volume.caps import y as v_y # Initialize validators # --------------------- - self._validators['fill'] = v_y.FillValidator() - self._validators['show'] = v_y.ShowValidator() + self._validators["fill"] = v_y.FillValidator() + self._validators["show"] = v_y.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- @@ -323,11 +321,11 @@ def fill(self): ------- int|float """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # show # ---- @@ -346,17 +344,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume.caps' + return "volume.caps" # Self properties description # --------------------------- @@ -403,7 +401,7 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- X """ - super(X, self).__init__('x') + super(X, self).__init__("x") # Validate arg # ------------ @@ -423,23 +421,23 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume.caps import (x as v_x) + from plotly.validators.volume.caps import x as v_x # Initialize validators # --------------------- - self._validators['fill'] = v_x.FillValidator() - self._validators['show'] = v_x.ShowValidator() + self._validators["fill"] = v_x.FillValidator() + self._validators["show"] = v_x.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/colorbar/__init__.py b/packages/python/plotly/plotly/graph_objs/volume/colorbar/__init__.py index 3119726e79c..52b80eafb62 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/colorbar/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/volume/colorbar/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -46,11 +44,11 @@ def font(self): ------- plotly.graph_objs.volume.colorbar.title.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # side # ---- @@ -69,11 +67,11 @@ def side(self): ------- Any """ - return self['side'] + return self["side"] @side.setter def side(self, val): - self['side'] = val + self["side"] = val # text # ---- @@ -92,17 +90,17 @@ def text(self): ------- str """ - return self['text'] + return self["text"] @text.setter def text(self, val): - self['text'] = val + self["text"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume.colorbar' + return "volume.colorbar" # Self properties description # --------------------------- @@ -153,7 +151,7 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__('title') + super(Title, self).__init__("title") # Validate arg # ------------ @@ -173,26 +171,26 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume.colorbar import (title as v_title) + from plotly.validators.volume.colorbar import title as v_title # Initialize validators # --------------------- - self._validators['font'] = v_title.FontValidator() - self._validators['side'] = v_title.SideValidator() - self._validators['text'] = v_title.TextValidator() + self._validators["font"] = v_title.FontValidator() + self._validators["side"] = v_title.SideValidator() + self._validators["text"] = v_title.TextValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('side', None) - self['side'] = side if side is not None else _v - _v = arg.pop('text', None) - self['text'] = text if text is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("side", None) + self["side"] = side if side is not None else _v + _v = arg.pop("text", None) + self["text"] = text if text is not None else _v # Process unknown kwargs # ---------------------- @@ -228,11 +226,11 @@ def dtickrange(self): ------- list """ - return self['dtickrange'] + return self["dtickrange"] @dtickrange.setter def dtickrange(self, val): - self['dtickrange'] = val + self["dtickrange"] = val # enabled # ------- @@ -249,11 +247,11 @@ def enabled(self): ------- bool """ - return self['enabled'] + return self["enabled"] @enabled.setter def enabled(self, val): - self['enabled'] = val + self["enabled"] = val # name # ---- @@ -276,11 +274,11 @@ def name(self): ------- str """ - return self['name'] + return self["name"] @name.setter def name(self, val): - self['name'] = val + self["name"] = val # templateitemname # ---------------- @@ -304,11 +302,11 @@ def templateitemname(self): ------- str """ - return self['templateitemname'] + return self["templateitemname"] @templateitemname.setter def templateitemname(self, val): - self['templateitemname'] = val + self["templateitemname"] = val # value # ----- @@ -326,17 +324,17 @@ def value(self): ------- str """ - return self['value'] + return self["value"] @value.setter def value(self, val): - self['value'] = val + self["value"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume.colorbar' + return "volume.colorbar" # Self properties description # --------------------------- @@ -429,7 +427,7 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__('tickformatstops') + super(Tickformatstop, self).__init__("tickformatstops") # Validate arg # ------------ @@ -449,36 +447,36 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume.colorbar import ( - tickformatstop as v_tickformatstop - ) + from plotly.validators.volume.colorbar import tickformatstop as v_tickformatstop # Initialize validators # --------------------- - self._validators['dtickrange'] = v_tickformatstop.DtickrangeValidator() - self._validators['enabled'] = v_tickformatstop.EnabledValidator() - self._validators['name'] = v_tickformatstop.NameValidator() - self._validators['templateitemname' - ] = v_tickformatstop.TemplateitemnameValidator() - self._validators['value'] = v_tickformatstop.ValueValidator() + self._validators["dtickrange"] = v_tickformatstop.DtickrangeValidator() + self._validators["enabled"] = v_tickformatstop.EnabledValidator() + self._validators["name"] = v_tickformatstop.NameValidator() + self._validators[ + "templateitemname" + ] = v_tickformatstop.TemplateitemnameValidator() + self._validators["value"] = v_tickformatstop.ValueValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('dtickrange', None) - self['dtickrange'] = dtickrange if dtickrange is not None else _v - _v = arg.pop('enabled', None) - self['enabled'] = enabled if enabled is not None else _v - _v = arg.pop('name', None) - self['name'] = name if name is not None else _v - _v = arg.pop('templateitemname', None) - self['templateitemname' - ] = templateitemname if templateitemname is not None else _v - _v = arg.pop('value', None) - self['value'] = value if value is not None else _v + _v = arg.pop("dtickrange", None) + self["dtickrange"] = dtickrange if dtickrange is not None else _v + _v = arg.pop("enabled", None) + self["enabled"] = enabled if enabled is not None else _v + _v = arg.pop("name", None) + self["name"] = name if name is not None else _v + _v = arg.pop("templateitemname", None) + self["templateitemname"] = ( + templateitemname if templateitemname is not None else _v + ) + _v = arg.pop("value", None) + self["value"] = value if value is not None else _v # Process unknown kwargs # ---------------------- @@ -546,11 +544,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -577,11 +575,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -595,17 +593,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume.colorbar' + return "volume.colorbar" # Self properties description # --------------------------- @@ -667,7 +665,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Tickfont """ - super(Tickfont, self).__init__('tickfont') + super(Tickfont, self).__init__("tickfont") # Validate arg # ------------ @@ -687,26 +685,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume.colorbar import (tickfont as v_tickfont) + from plotly.validators.volume.colorbar import tickfont as v_tickfont # Initialize validators # --------------------- - self._validators['color'] = v_tickfont.ColorValidator() - self._validators['family'] = v_tickfont.FamilyValidator() - self._validators['size'] = v_tickfont.SizeValidator() + self._validators["color"] = v_tickfont.ColorValidator() + self._validators["family"] = v_tickfont.FamilyValidator() + self._validators["size"] = v_tickfont.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/colorbar/title/__init__.py b/packages/python/plotly/plotly/graph_objs/volume/colorbar/title/__init__.py index 3dc0971f58e..c6ad0906452 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/volume/colorbar/title/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -57,11 +55,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # family # ------ @@ -88,11 +86,11 @@ def family(self): ------- str """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # size # ---- @@ -106,17 +104,17 @@ def size(self): ------- int|float """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume.colorbar.title' + return "volume.colorbar.title" # Self properties description # --------------------------- @@ -179,7 +177,7 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -199,26 +197,26 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume.colorbar.title import (font as v_font) + from plotly.validators.volume.colorbar.title import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['size'] = v_font.SizeValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["size"] = v_font.SizeValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/volume/hoverlabel/__init__.py index 66c9b39a9ed..fbe630aa97e 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/volume/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume.hoverlabel' + return "volume.hoverlabel" # Self properties description # --------------------------- @@ -262,7 +260,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -282,35 +280,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume.hoverlabel import (font as v_font) + from plotly.validators.volume.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/volume/slices/__init__.py b/packages/python/plotly/plotly/graph_objs/volume/slices/__init__.py index f0087b6ea7d..967c3a3d1a7 100644 --- a/packages/python/plotly/plotly/graph_objs/volume/slices/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/volume/slices/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -23,11 +21,11 @@ def fill(self): ------- int|float """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # locations # --------- @@ -45,11 +43,11 @@ def locations(self): ------- numpy.ndarray """ - return self['locations'] + return self["locations"] @locations.setter def locations(self, val): - self['locations'] = val + self["locations"] = val # locationssrc # ------------ @@ -65,11 +63,11 @@ def locationssrc(self): ------- str """ - return self['locationssrc'] + return self["locationssrc"] @locationssrc.setter def locationssrc(self, val): - self['locationssrc'] = val + self["locationssrc"] = val # show # ---- @@ -86,17 +84,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume.slices' + return "volume.slices" # Self properties description # --------------------------- @@ -157,7 +155,7 @@ def __init__( ------- Z """ - super(Z, self).__init__('z') + super(Z, self).__init__("z") # Validate arg # ------------ @@ -177,29 +175,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume.slices import (z as v_z) + from plotly.validators.volume.slices import z as v_z # Initialize validators # --------------------- - self._validators['fill'] = v_z.FillValidator() - self._validators['locations'] = v_z.LocationsValidator() - self._validators['locationssrc'] = v_z.LocationssrcValidator() - self._validators['show'] = v_z.ShowValidator() + self._validators["fill"] = v_z.FillValidator() + self._validators["locations"] = v_z.LocationsValidator() + self._validators["locationssrc"] = v_z.LocationssrcValidator() + self._validators["show"] = v_z.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('locations', None) - self['locations'] = locations if locations is not None else _v - _v = arg.pop('locationssrc', None) - self['locationssrc'] = locationssrc if locationssrc is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("locations", None) + self["locations"] = locations if locations is not None else _v + _v = arg.pop("locationssrc", None) + self["locationssrc"] = locationssrc if locationssrc is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- @@ -233,11 +231,11 @@ def fill(self): ------- int|float """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # locations # --------- @@ -255,11 +253,11 @@ def locations(self): ------- numpy.ndarray """ - return self['locations'] + return self["locations"] @locations.setter def locations(self, val): - self['locations'] = val + self["locations"] = val # locationssrc # ------------ @@ -275,11 +273,11 @@ def locationssrc(self): ------- str """ - return self['locationssrc'] + return self["locationssrc"] @locationssrc.setter def locationssrc(self, val): - self['locationssrc'] = val + self["locationssrc"] = val # show # ---- @@ -296,17 +294,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume.slices' + return "volume.slices" # Self properties description # --------------------------- @@ -367,7 +365,7 @@ def __init__( ------- Y """ - super(Y, self).__init__('y') + super(Y, self).__init__("y") # Validate arg # ------------ @@ -387,29 +385,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume.slices import (y as v_y) + from plotly.validators.volume.slices import y as v_y # Initialize validators # --------------------- - self._validators['fill'] = v_y.FillValidator() - self._validators['locations'] = v_y.LocationsValidator() - self._validators['locationssrc'] = v_y.LocationssrcValidator() - self._validators['show'] = v_y.ShowValidator() + self._validators["fill"] = v_y.FillValidator() + self._validators["locations"] = v_y.LocationsValidator() + self._validators["locationssrc"] = v_y.LocationssrcValidator() + self._validators["show"] = v_y.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('locations', None) - self['locations'] = locations if locations is not None else _v - _v = arg.pop('locationssrc', None) - self['locationssrc'] = locationssrc if locationssrc is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("locations", None) + self["locations"] = locations if locations is not None else _v + _v = arg.pop("locationssrc", None) + self["locationssrc"] = locationssrc if locationssrc is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- @@ -443,11 +441,11 @@ def fill(self): ------- int|float """ - return self['fill'] + return self["fill"] @fill.setter def fill(self, val): - self['fill'] = val + self["fill"] = val # locations # --------- @@ -465,11 +463,11 @@ def locations(self): ------- numpy.ndarray """ - return self['locations'] + return self["locations"] @locations.setter def locations(self, val): - self['locations'] = val + self["locations"] = val # locationssrc # ------------ @@ -485,11 +483,11 @@ def locationssrc(self): ------- str """ - return self['locationssrc'] + return self["locationssrc"] @locationssrc.setter def locationssrc(self, val): - self['locationssrc'] = val + self["locationssrc"] = val # show # ---- @@ -506,17 +504,17 @@ def show(self): ------- bool """ - return self['show'] + return self["show"] @show.setter def show(self, val): - self['show'] = val + self["show"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'volume.slices' + return "volume.slices" # Self properties description # --------------------------- @@ -577,7 +575,7 @@ def __init__( ------- X """ - super(X, self).__init__('x') + super(X, self).__init__("x") # Validate arg # ------------ @@ -597,29 +595,29 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.volume.slices import (x as v_x) + from plotly.validators.volume.slices import x as v_x # Initialize validators # --------------------- - self._validators['fill'] = v_x.FillValidator() - self._validators['locations'] = v_x.LocationsValidator() - self._validators['locationssrc'] = v_x.LocationssrcValidator() - self._validators['show'] = v_x.ShowValidator() + self._validators["fill"] = v_x.FillValidator() + self._validators["locations"] = v_x.LocationsValidator() + self._validators["locationssrc"] = v_x.LocationssrcValidator() + self._validators["show"] = v_x.ShowValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('fill', None) - self['fill'] = fill if fill is not None else _v - _v = arg.pop('locations', None) - self['locations'] = locations if locations is not None else _v - _v = arg.pop('locationssrc', None) - self['locationssrc'] = locationssrc if locationssrc is not None else _v - _v = arg.pop('show', None) - self['show'] = show if show is not None else _v + _v = arg.pop("fill", None) + self["fill"] = fill if fill is not None else _v + _v = arg.pop("locations", None) + self["locations"] = locations if locations is not None else _v + _v = arg.pop("locationssrc", None) + self["locationssrc"] = locationssrc if locationssrc is not None else _v + _v = arg.pop("show", None) + self["show"] = show if show is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/__init__.py index af89c348e80..2f3e98ef21a 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -30,17 +28,17 @@ def marker(self): ------- plotly.graph_objs.waterfall.totals.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'waterfall' + return "waterfall" # Self properties description # --------------------------- @@ -69,7 +67,7 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Totals """ - super(Totals, self).__init__('totals') + super(Totals, self).__init__("totals") # Validate arg # ------------ @@ -89,20 +87,20 @@ def __init__(self, arg=None, marker=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.waterfall import (totals as v_totals) + from plotly.validators.waterfall import totals as v_totals # Initialize validators # --------------------- - self._validators['marker'] = v_totals.MarkerValidator() + self._validators["marker"] = v_totals.MarkerValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- @@ -171,11 +169,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -191,11 +189,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -223,11 +221,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -243,11 +241,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -262,11 +260,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -282,17 +280,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'waterfall' + return "waterfall" # Self properties description # --------------------------- @@ -375,7 +373,7 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__('textfont') + super(Textfont, self).__init__("textfont") # Validate arg # ------------ @@ -395,35 +393,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.waterfall import (textfont as v_textfont) + from plotly.validators.waterfall import textfont as v_textfont # Initialize validators # --------------------- - self._validators['color'] = v_textfont.ColorValidator() - self._validators['colorsrc'] = v_textfont.ColorsrcValidator() - self._validators['family'] = v_textfont.FamilyValidator() - self._validators['familysrc'] = v_textfont.FamilysrcValidator() - self._validators['size'] = v_textfont.SizeValidator() - self._validators['sizesrc'] = v_textfont.SizesrcValidator() + self._validators["color"] = v_textfont.ColorValidator() + self._validators["colorsrc"] = v_textfont.ColorsrcValidator() + self._validators["family"] = v_textfont.FamilyValidator() + self._validators["familysrc"] = v_textfont.FamilysrcValidator() + self._validators["size"] = v_textfont.SizeValidator() + self._validators["sizesrc"] = v_textfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -456,11 +454,11 @@ def maxpoints(self): ------- int|float """ - return self['maxpoints'] + return self["maxpoints"] @maxpoints.setter def maxpoints(self, val): - self['maxpoints'] = val + self["maxpoints"] = val # token # ----- @@ -477,17 +475,17 @@ def token(self): ------- str """ - return self['token'] + return self["token"] @token.setter def token(self, val): - self['token'] = val + self["token"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'waterfall' + return "waterfall" # Self properties description # --------------------------- @@ -528,7 +526,7 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__('stream') + super(Stream, self).__init__("stream") # Validate arg # ------------ @@ -548,23 +546,23 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.waterfall import (stream as v_stream) + from plotly.validators.waterfall import stream as v_stream # Initialize validators # --------------------- - self._validators['maxpoints'] = v_stream.MaxpointsValidator() - self._validators['token'] = v_stream.TokenValidator() + self._validators["maxpoints"] = v_stream.MaxpointsValidator() + self._validators["token"] = v_stream.TokenValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('maxpoints', None) - self['maxpoints'] = maxpoints if maxpoints is not None else _v - _v = arg.pop('token', None) - self['token'] = token if token is not None else _v + _v = arg.pop("maxpoints", None) + self["maxpoints"] = maxpoints if maxpoints is not None else _v + _v = arg.pop("token", None) + self["token"] = token if token is not None else _v # Process unknown kwargs # ---------------------- @@ -633,11 +631,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -653,11 +651,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -685,11 +683,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -705,11 +703,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -724,11 +722,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -744,17 +742,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'waterfall' + return "waterfall" # Self properties description # --------------------------- @@ -838,7 +836,7 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__('outsidetextfont') + super(Outsidetextfont, self).__init__("outsidetextfont") # Validate arg # ------------ @@ -858,37 +856,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.waterfall import ( - outsidetextfont as v_outsidetextfont - ) + from plotly.validators.waterfall import outsidetextfont as v_outsidetextfont # Initialize validators # --------------------- - self._validators['color'] = v_outsidetextfont.ColorValidator() - self._validators['colorsrc'] = v_outsidetextfont.ColorsrcValidator() - self._validators['family'] = v_outsidetextfont.FamilyValidator() - self._validators['familysrc'] = v_outsidetextfont.FamilysrcValidator() - self._validators['size'] = v_outsidetextfont.SizeValidator() - self._validators['sizesrc'] = v_outsidetextfont.SizesrcValidator() + self._validators["color"] = v_outsidetextfont.ColorValidator() + self._validators["colorsrc"] = v_outsidetextfont.ColorsrcValidator() + self._validators["family"] = v_outsidetextfont.FamilyValidator() + self._validators["familysrc"] = v_outsidetextfont.FamilysrcValidator() + self._validators["size"] = v_outsidetextfont.SizeValidator() + self._validators["sizesrc"] = v_outsidetextfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -957,11 +953,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -977,11 +973,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -1009,11 +1005,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -1029,11 +1025,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -1048,11 +1044,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -1068,17 +1064,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'waterfall' + return "waterfall" # Self properties description # --------------------------- @@ -1162,7 +1158,7 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__('insidetextfont') + super(Insidetextfont, self).__init__("insidetextfont") # Validate arg # ------------ @@ -1182,37 +1178,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.waterfall import ( - insidetextfont as v_insidetextfont - ) + from plotly.validators.waterfall import insidetextfont as v_insidetextfont # Initialize validators # --------------------- - self._validators['color'] = v_insidetextfont.ColorValidator() - self._validators['colorsrc'] = v_insidetextfont.ColorsrcValidator() - self._validators['family'] = v_insidetextfont.FamilyValidator() - self._validators['familysrc'] = v_insidetextfont.FamilysrcValidator() - self._validators['size'] = v_insidetextfont.SizeValidator() - self._validators['sizesrc'] = v_insidetextfont.SizesrcValidator() + self._validators["color"] = v_insidetextfont.ColorValidator() + self._validators["colorsrc"] = v_insidetextfont.ColorsrcValidator() + self._validators["family"] = v_insidetextfont.FamilyValidator() + self._validators["familysrc"] = v_insidetextfont.FamilysrcValidator() + self._validators["size"] = v_insidetextfont.SizeValidator() + self._validators["sizesrc"] = v_insidetextfont.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1252,17 +1246,17 @@ def marker(self): ------- plotly.graph_objs.waterfall.increasing.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'waterfall' + return "waterfall" # Self properties description # --------------------------- @@ -1291,7 +1285,7 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Increasing """ - super(Increasing, self).__init__('increasing') + super(Increasing, self).__init__("increasing") # Validate arg # ------------ @@ -1311,20 +1305,20 @@ def __init__(self, arg=None, marker=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.waterfall import (increasing as v_increasing) + from plotly.validators.waterfall import increasing as v_increasing # Initialize validators # --------------------- - self._validators['marker'] = v_increasing.MarkerValidator() + self._validators["marker"] = v_increasing.MarkerValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- @@ -1359,11 +1353,11 @@ def align(self): ------- Any|numpy.ndarray """ - return self['align'] + return self["align"] @align.setter def align(self, val): - self['align'] = val + self["align"] = val # alignsrc # -------- @@ -1379,11 +1373,11 @@ def alignsrc(self): ------- str """ - return self['alignsrc'] + return self["alignsrc"] @alignsrc.setter def alignsrc(self, val): - self['alignsrc'] = val + self["alignsrc"] = val # bgcolor # ------- @@ -1439,11 +1433,11 @@ def bgcolor(self): ------- str|numpy.ndarray """ - return self['bgcolor'] + return self["bgcolor"] @bgcolor.setter def bgcolor(self, val): - self['bgcolor'] = val + self["bgcolor"] = val # bgcolorsrc # ---------- @@ -1459,11 +1453,11 @@ def bgcolorsrc(self): ------- str """ - return self['bgcolorsrc'] + return self["bgcolorsrc"] @bgcolorsrc.setter def bgcolorsrc(self, val): - self['bgcolorsrc'] = val + self["bgcolorsrc"] = val # bordercolor # ----------- @@ -1519,11 +1513,11 @@ def bordercolor(self): ------- str|numpy.ndarray """ - return self['bordercolor'] + return self["bordercolor"] @bordercolor.setter def bordercolor(self, val): - self['bordercolor'] = val + self["bordercolor"] = val # bordercolorsrc # -------------- @@ -1539,11 +1533,11 @@ def bordercolorsrc(self): ------- str """ - return self['bordercolorsrc'] + return self["bordercolorsrc"] @bordercolorsrc.setter def bordercolorsrc(self, val): - self['bordercolorsrc'] = val + self["bordercolorsrc"] = val # font # ---- @@ -1594,11 +1588,11 @@ def font(self): ------- plotly.graph_objs.waterfall.hoverlabel.Font """ - return self['font'] + return self["font"] @font.setter def font(self, val): - self['font'] = val + self["font"] = val # namelength # ---------- @@ -1621,11 +1615,11 @@ def namelength(self): ------- int|numpy.ndarray """ - return self['namelength'] + return self["namelength"] @namelength.setter def namelength(self, val): - self['namelength'] = val + self["namelength"] = val # namelengthsrc # ------------- @@ -1641,17 +1635,17 @@ def namelengthsrc(self): ------- str """ - return self['namelengthsrc'] + return self["namelengthsrc"] @namelengthsrc.setter def namelengthsrc(self, val): - self['namelengthsrc'] = val + self["namelengthsrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'waterfall' + return "waterfall" # Self properties description # --------------------------- @@ -1743,7 +1737,7 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__('hoverlabel') + super(Hoverlabel, self).__init__("hoverlabel") # Validate arg # ------------ @@ -1763,48 +1757,44 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.waterfall import (hoverlabel as v_hoverlabel) + from plotly.validators.waterfall import hoverlabel as v_hoverlabel # Initialize validators # --------------------- - self._validators['align'] = v_hoverlabel.AlignValidator() - self._validators['alignsrc'] = v_hoverlabel.AlignsrcValidator() - self._validators['bgcolor'] = v_hoverlabel.BgcolorValidator() - self._validators['bgcolorsrc'] = v_hoverlabel.BgcolorsrcValidator() - self._validators['bordercolor'] = v_hoverlabel.BordercolorValidator() - self._validators['bordercolorsrc' - ] = v_hoverlabel.BordercolorsrcValidator() - self._validators['font'] = v_hoverlabel.FontValidator() - self._validators['namelength'] = v_hoverlabel.NamelengthValidator() - self._validators['namelengthsrc' - ] = v_hoverlabel.NamelengthsrcValidator() + self._validators["align"] = v_hoverlabel.AlignValidator() + self._validators["alignsrc"] = v_hoverlabel.AlignsrcValidator() + self._validators["bgcolor"] = v_hoverlabel.BgcolorValidator() + self._validators["bgcolorsrc"] = v_hoverlabel.BgcolorsrcValidator() + self._validators["bordercolor"] = v_hoverlabel.BordercolorValidator() + self._validators["bordercolorsrc"] = v_hoverlabel.BordercolorsrcValidator() + self._validators["font"] = v_hoverlabel.FontValidator() + self._validators["namelength"] = v_hoverlabel.NamelengthValidator() + self._validators["namelengthsrc"] = v_hoverlabel.NamelengthsrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('align', None) - self['align'] = align if align is not None else _v - _v = arg.pop('alignsrc', None) - self['alignsrc'] = alignsrc if alignsrc is not None else _v - _v = arg.pop('bgcolor', None) - self['bgcolor'] = bgcolor if bgcolor is not None else _v - _v = arg.pop('bgcolorsrc', None) - self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v - _v = arg.pop('bordercolor', None) - self['bordercolor'] = bordercolor if bordercolor is not None else _v - _v = arg.pop('bordercolorsrc', None) - self['bordercolorsrc' - ] = bordercolorsrc if bordercolorsrc is not None else _v - _v = arg.pop('font', None) - self['font'] = font if font is not None else _v - _v = arg.pop('namelength', None) - self['namelength'] = namelength if namelength is not None else _v - _v = arg.pop('namelengthsrc', None) - self['namelengthsrc' - ] = namelengthsrc if namelengthsrc is not None else _v + _v = arg.pop("align", None) + self["align"] = align if align is not None else _v + _v = arg.pop("alignsrc", None) + self["alignsrc"] = alignsrc if alignsrc is not None else _v + _v = arg.pop("bgcolor", None) + self["bgcolor"] = bgcolor if bgcolor is not None else _v + _v = arg.pop("bgcolorsrc", None) + self["bgcolorsrc"] = bgcolorsrc if bgcolorsrc is not None else _v + _v = arg.pop("bordercolor", None) + self["bordercolor"] = bordercolor if bordercolor is not None else _v + _v = arg.pop("bordercolorsrc", None) + self["bordercolorsrc"] = bordercolorsrc if bordercolorsrc is not None else _v + _v = arg.pop("font", None) + self["font"] = font if font is not None else _v + _v = arg.pop("namelength", None) + self["namelength"] = namelength if namelength is not None else _v + _v = arg.pop("namelengthsrc", None) + self["namelengthsrc"] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- @@ -1844,17 +1834,17 @@ def marker(self): ------- plotly.graph_objs.waterfall.decreasing.Marker """ - return self['marker'] + return self["marker"] @marker.setter def marker(self, val): - self['marker'] = val + self["marker"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'waterfall' + return "waterfall" # Self properties description # --------------------------- @@ -1883,7 +1873,7 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Decreasing """ - super(Decreasing, self).__init__('decreasing') + super(Decreasing, self).__init__("decreasing") # Validate arg # ------------ @@ -1903,20 +1893,20 @@ def __init__(self, arg=None, marker=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.waterfall import (decreasing as v_decreasing) + from plotly.validators.waterfall import decreasing as v_decreasing # Initialize validators # --------------------- - self._validators['marker'] = v_decreasing.MarkerValidator() + self._validators["marker"] = v_decreasing.MarkerValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('marker', None) - self['marker'] = marker if marker is not None else _v + _v = arg.pop("marker", None) + self["marker"] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- @@ -1960,11 +1950,11 @@ def line(self): ------- plotly.graph_objs.waterfall.connector.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # mode # ---- @@ -1981,11 +1971,11 @@ def mode(self): ------- Any """ - return self['mode'] + return self["mode"] @mode.setter def mode(self, val): - self['mode'] = val + self["mode"] = val # visible # ------- @@ -2001,17 +1991,17 @@ def visible(self): ------- bool """ - return self['visible'] + return self["visible"] @visible.setter def visible(self, val): - self['visible'] = val + self["visible"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'waterfall' + return "waterfall" # Self properties description # --------------------------- @@ -2048,7 +2038,7 @@ def __init__(self, arg=None, line=None, mode=None, visible=None, **kwargs): ------- Connector """ - super(Connector, self).__init__('connector') + super(Connector, self).__init__("connector") # Validate arg # ------------ @@ -2068,26 +2058,26 @@ def __init__(self, arg=None, line=None, mode=None, visible=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.waterfall import (connector as v_connector) + from plotly.validators.waterfall import connector as v_connector # Initialize validators # --------------------- - self._validators['line'] = v_connector.LineValidator() - self._validators['mode'] = v_connector.ModeValidator() - self._validators['visible'] = v_connector.VisibleValidator() + self._validators["line"] = v_connector.LineValidator() + self._validators["mode"] = v_connector.ModeValidator() + self._validators["visible"] = v_connector.VisibleValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v - _v = arg.pop('mode', None) - self['mode'] = mode if mode is not None else _v - _v = arg.pop('visible', None) - self['visible'] = visible if visible is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v + _v = arg.pop("mode", None) + self["mode"] = mode if mode is not None else _v + _v = arg.pop("visible", None) + self["visible"] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/connector/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/connector/__init__.py index 2550b32ade4..8d5be0f684c 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/connector/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/connector/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # dash # ---- @@ -85,11 +83,11 @@ def dash(self): ------- str """ - return self['dash'] + return self["dash"] @dash.setter def dash(self, val): - self['dash'] = val + self["dash"] = val # width # ----- @@ -105,17 +103,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'waterfall.connector' + return "waterfall.connector" # Self properties description # --------------------------- @@ -157,7 +155,7 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -177,26 +175,26 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.waterfall.connector import (line as v_line) + from plotly.validators.waterfall.connector import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['dash'] = v_line.DashValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["dash"] = v_line.DashValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('dash', None) - self['dash'] = dash if dash is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("dash", None) + self["dash"] = dash if dash is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/__init__.py index 44a59c33cc9..e64d13cf487 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # line # ---- @@ -87,17 +85,17 @@ def line(self): ------- plotly.graph_objs.waterfall.decreasing.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'waterfall.decreasing' + return "waterfall.decreasing" # Self properties description # --------------------------- @@ -131,7 +129,7 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -151,23 +149,23 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.waterfall.decreasing import (marker as v_marker) + from plotly.validators.waterfall.decreasing import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['line'] = v_marker.LineValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["line"] = v_marker.LineValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/marker/__init__.py index 1851f14ce4e..a16008d41d2 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/decreasing/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # width # ----- @@ -79,17 +77,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'waterfall.decreasing.marker' + return "waterfall.decreasing.marker" # Self properties description # --------------------------- @@ -121,7 +119,7 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -141,25 +139,23 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.waterfall.decreasing.marker import ( - line as v_line - ) + from plotly.validators.waterfall.decreasing.marker import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/hoverlabel/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/hoverlabel/__init__.py index 66a8d6b721e..06c533c5c0a 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/hoverlabel/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -58,11 +56,11 @@ def color(self): ------- str|numpy.ndarray """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # colorsrc # -------- @@ -78,11 +76,11 @@ def colorsrc(self): ------- str """ - return self['colorsrc'] + return self["colorsrc"] @colorsrc.setter def colorsrc(self, val): - self['colorsrc'] = val + self["colorsrc"] = val # family # ------ @@ -110,11 +108,11 @@ def family(self): ------- str|numpy.ndarray """ - return self['family'] + return self["family"] @family.setter def family(self, val): - self['family'] = val + self["family"] = val # familysrc # --------- @@ -130,11 +128,11 @@ def familysrc(self): ------- str """ - return self['familysrc'] + return self["familysrc"] @familysrc.setter def familysrc(self, val): - self['familysrc'] = val + self["familysrc"] = val # size # ---- @@ -149,11 +147,11 @@ def size(self): ------- int|float|numpy.ndarray """ - return self['size'] + return self["size"] @size.setter def size(self, val): - self['size'] = val + self["size"] = val # sizesrc # ------- @@ -169,17 +167,17 @@ def sizesrc(self): ------- str """ - return self['sizesrc'] + return self["sizesrc"] @sizesrc.setter def sizesrc(self, val): - self['sizesrc'] = val + self["sizesrc"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'waterfall.hoverlabel' + return "waterfall.hoverlabel" # Self properties description # --------------------------- @@ -263,7 +261,7 @@ def __init__( ------- Font """ - super(Font, self).__init__('font') + super(Font, self).__init__("font") # Validate arg # ------------ @@ -283,35 +281,35 @@ def __init__( # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.waterfall.hoverlabel import (font as v_font) + from plotly.validators.waterfall.hoverlabel import font as v_font # Initialize validators # --------------------- - self._validators['color'] = v_font.ColorValidator() - self._validators['colorsrc'] = v_font.ColorsrcValidator() - self._validators['family'] = v_font.FamilyValidator() - self._validators['familysrc'] = v_font.FamilysrcValidator() - self._validators['size'] = v_font.SizeValidator() - self._validators['sizesrc'] = v_font.SizesrcValidator() + self._validators["color"] = v_font.ColorValidator() + self._validators["colorsrc"] = v_font.ColorsrcValidator() + self._validators["family"] = v_font.FamilyValidator() + self._validators["familysrc"] = v_font.FamilysrcValidator() + self._validators["size"] = v_font.SizeValidator() + self._validators["sizesrc"] = v_font.SizesrcValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('colorsrc', None) - self['colorsrc'] = colorsrc if colorsrc is not None else _v - _v = arg.pop('family', None) - self['family'] = family if family is not None else _v - _v = arg.pop('familysrc', None) - self['familysrc'] = familysrc if familysrc is not None else _v - _v = arg.pop('size', None) - self['size'] = size if size is not None else _v - _v = arg.pop('sizesrc', None) - self['sizesrc'] = sizesrc if sizesrc is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("colorsrc", None) + self["colorsrc"] = colorsrc if colorsrc is not None else _v + _v = arg.pop("family", None) + self["family"] = family if family is not None else _v + _v = arg.pop("familysrc", None) + self["familysrc"] = familysrc if familysrc is not None else _v + _v = arg.pop("size", None) + self["size"] = size if size is not None else _v + _v = arg.pop("sizesrc", None) + self["sizesrc"] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/increasing/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/increasing/__init__.py index 1f26d3a57c6..a81f8d3034b 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/increasing/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/increasing/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # line # ---- @@ -87,17 +85,17 @@ def line(self): ------- plotly.graph_objs.waterfall.increasing.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'waterfall.increasing' + return "waterfall.increasing" # Self properties description # --------------------------- @@ -131,7 +129,7 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -151,23 +149,23 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.waterfall.increasing import (marker as v_marker) + from plotly.validators.waterfall.increasing import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['line'] = v_marker.LineValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["line"] = v_marker.LineValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/increasing/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/increasing/marker/__init__.py index 67a57f7b66c..97b1ec8d264 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/increasing/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/increasing/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # width # ----- @@ -79,17 +77,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'waterfall.increasing.marker' + return "waterfall.increasing.marker" # Self properties description # --------------------------- @@ -121,7 +119,7 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -141,25 +139,23 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.waterfall.increasing.marker import ( - line as v_line - ) + from plotly.validators.waterfall.increasing.marker import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/totals/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/totals/__init__.py index c0bfc4edd63..3c0c76c2b77 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/totals/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/totals/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -60,11 +58,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # line # ---- @@ -90,17 +88,17 @@ def line(self): ------- plotly.graph_objs.waterfall.totals.marker.Line """ - return self['line'] + return self["line"] @line.setter def line(self, val): - self['line'] = val + self["line"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'waterfall.totals' + return "waterfall.totals" # Self properties description # --------------------------- @@ -136,7 +134,7 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): ------- Marker """ - super(Marker, self).__init__('marker') + super(Marker, self).__init__("marker") # Validate arg # ------------ @@ -156,23 +154,23 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.waterfall.totals import (marker as v_marker) + from plotly.validators.waterfall.totals import marker as v_marker # Initialize validators # --------------------- - self._validators['color'] = v_marker.ColorValidator() - self._validators['line'] = v_marker.LineValidator() + self._validators["color"] = v_marker.ColorValidator() + self._validators["line"] = v_marker.LineValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('line', None) - self['line'] = line if line is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("line", None) + self["line"] = line if line is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/graph_objs/waterfall/totals/marker/__init__.py b/packages/python/plotly/plotly/graph_objs/waterfall/totals/marker/__init__.py index c413bab4ef3..18b5ef2f3ff 100644 --- a/packages/python/plotly/plotly/graph_objs/waterfall/totals/marker/__init__.py +++ b/packages/python/plotly/plotly/graph_objs/waterfall/totals/marker/__init__.py @@ -1,5 +1,3 @@ - - from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy @@ -59,11 +57,11 @@ def color(self): ------- str """ - return self['color'] + return self["color"] @color.setter def color(self, val): - self['color'] = val + self["color"] = val # width # ----- @@ -79,17 +77,17 @@ def width(self): ------- int|float """ - return self['width'] + return self["width"] @width.setter def width(self, val): - self['width'] = val + self["width"] = val # property parent name # -------------------- @property def _parent_path_str(self): - return 'waterfall.totals.marker' + return "waterfall.totals.marker" # Self properties description # --------------------------- @@ -125,7 +123,7 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__('line') + super(Line, self).__init__("line") # Validate arg # ------------ @@ -145,23 +143,23 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): # Handle skip_invalid # ------------------- - self._skip_invalid = kwargs.pop('skip_invalid', False) + self._skip_invalid = kwargs.pop("skip_invalid", False) # Import validators # ----------------- - from plotly.validators.waterfall.totals.marker import (line as v_line) + from plotly.validators.waterfall.totals.marker import line as v_line # Initialize validators # --------------------- - self._validators['color'] = v_line.ColorValidator() - self._validators['width'] = v_line.WidthValidator() + self._validators["color"] = v_line.ColorValidator() + self._validators["width"] = v_line.WidthValidator() # Populate data dict with properties # ---------------------------------- - _v = arg.pop('color', None) - self['color'] = color if color is not None else _v - _v = arg.pop('width', None) - self['width'] = width if width is not None else _v + _v = arg.pop("color", None) + self["color"] = color if color is not None else _v + _v = arg.pop("width", None) + self["width"] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/packages/python/plotly/plotly/grid_objs.py b/packages/python/plotly/plotly/grid_objs.py index 181f26ca03c..e36eafaee37 100644 --- a/packages/python/plotly/plotly/grid_objs.py +++ b/packages/python/plotly/plotly/grid_objs.py @@ -1,3 +1,4 @@ from __future__ import absolute_import from _plotly_future_ import _chart_studio_error -_chart_studio_error('grid_objs') + +_chart_studio_error("grid_objs") diff --git a/packages/python/plotly/plotly/io/_base_renderers.py b/packages/python/plotly/plotly/io/_base_renderers.py index bfe7bb01fdb..ccc87982849 100644 --- a/packages/python/plotly/plotly/io/_base_renderers.py +++ b/packages/python/plotly/plotly/io/_base_renderers.py @@ -11,8 +11,8 @@ from plotly.io._orca import ensure_server from plotly.offline.offline import _get_jconfig, get_plotlyjs -ipython_display = optional_imports.get_module('IPython.display') -IPython = optional_imports.get_module('IPython') +ipython_display = optional_imports.get_module("IPython.display") +IPython = optional_imports.get_module("IPython") try: from http.server import BaseHTTPRequestHandler, HTTPServer @@ -25,6 +25,7 @@ class BaseRenderer(object): """ Base class for all renderers """ + def activate(self): pass @@ -35,13 +36,13 @@ def __repr__(self): except AttributeError: # Python 2.7 argspec = inspect.getargspec(self.__init__) - init_args = [a for a in argspec.args if a != 'self'] + init_args = [a for a in argspec.args if a != "self"] return "{cls}({attrs})\n{doc}".format( cls=self.__class__.__name__, - attrs=", ".join("{}={!r}".format(k, self.__dict__[k]) - for k in init_args), - doc=self.__doc__) + attrs=", ".join("{}={!r}".format(k, self.__dict__[k]) for k in init_args), + doc=self.__doc__, + ) def __hash__(self): # Constructor args fully define uniqueness @@ -52,6 +53,7 @@ class MimetypeRenderer(BaseRenderer): """ Base class for all mime type renderers """ + def to_mimebundle(self, fig_dict): raise NotImplementedError() @@ -63,10 +65,10 @@ class JsonRenderer(MimetypeRenderer): mime type: 'application/json' """ + def to_mimebundle(self, fig_dict): - value = json.loads(to_json( - fig_dict, validate=False, remove_uids=False)) - return {'application/json': value} + value = json.loads(to_json(fig_dict, validate=False, remove_uids=False)) + return {"application/json": value} # Plotly mimetype @@ -78,18 +80,20 @@ class PlotlyRenderer(MimetypeRenderer): mime type: 'application/vnd.plotly.v1+json' """ + def __init__(self, config=None): self.config = dict(config) if config else {} def to_mimebundle(self, fig_dict): config = _get_jconfig(self.config) if config: - fig_dict['config'] = config + fig_dict["config"] = config json_compatible_fig_dict = json.loads( - to_json(fig_dict, validate=False, remove_uids=False)) + to_json(fig_dict, validate=False, remove_uids=False) + ) - return {'application/vnd.plotly.v1+json': json_compatible_fig_dict} + return {"application/vnd.plotly.v1+json": json_compatible_fig_dict} # Static Image @@ -97,13 +101,16 @@ class ImageRenderer(MimetypeRenderer): """ Base class for all static image renderers """ - def __init__(self, - mime_type, - b64_encode=False, - format=None, - width=None, - height=None, - scale=None): + + def __init__( + self, + mime_type, + b64_encode=False, + format=None, + width=None, + height=None, + scale=None, + ): self.mime_type = mime_type self.b64_encode = b64_encode @@ -127,9 +134,9 @@ def to_mimebundle(self, fig_dict): ) if self.b64_encode: - image_str = base64.b64encode(image_bytes).decode('utf8') + image_str = base64.b64encode(image_bytes).decode("utf8") else: - image_str = image_bytes.decode('utf8') + image_str = image_bytes.decode("utf8") return {self.mime_type: image_str} @@ -143,14 +150,16 @@ class PngRenderer(ImageRenderer): mime type: 'image/png' """ + def __init__(self, width=None, height=None, scale=None): super(PngRenderer, self).__init__( - mime_type='image/png', + mime_type="image/png", b64_encode=True, - format='png', + format="png", width=width, height=height, - scale=scale) + scale=scale, + ) class SvgRenderer(ImageRenderer): @@ -162,14 +171,16 @@ class SvgRenderer(ImageRenderer): mime type: 'image/svg+xml' """ + def __init__(self, width=None, height=None, scale=None): super(SvgRenderer, self).__init__( - mime_type='image/svg+xml', + mime_type="image/svg+xml", b64_encode=False, - format='svg', + format="svg", width=width, height=height, - scale=scale) + scale=scale, + ) class JpegRenderer(ImageRenderer): @@ -181,14 +192,16 @@ class JpegRenderer(ImageRenderer): mime type: 'image/jpeg' """ + def __init__(self, width=None, height=None, scale=None): super(JpegRenderer, self).__init__( - mime_type='image/jpeg', + mime_type="image/jpeg", b64_encode=True, - format='jpg', + format="jpg", width=width, height=height, - scale=scale) + scale=scale, + ) class PdfRenderer(ImageRenderer): @@ -199,14 +212,16 @@ class PdfRenderer(ImageRenderer): mime type: 'application/pdf' """ + def __init__(self, width=None, height=None, scale=None): super(PdfRenderer, self).__init__( - mime_type='application/pdf', + mime_type="application/pdf", b64_encode=True, - format='pdf', + format="pdf", width=width, height=height, - scale=scale) + scale=scale, + ) # HTML @@ -225,15 +240,18 @@ class HtmlRenderer(MimetypeRenderer): mime type: 'text/html' """ - def __init__(self, - connected=False, - full_html=False, - requirejs=True, - global_init=False, - config=None, - auto_play=False, - post_script=None, - animation_opts=None): + + def __init__( + self, + connected=False, + full_html=False, + requirejs=True, + global_init=False, + config=None, + auto_play=False, + post_script=None, + animation_opts=None, + ): self.config = dict(config) if config else {} self.auto_play = auto_play @@ -248,12 +266,13 @@ def activate(self): if self.global_init: if not ipython_display: raise ValueError( - 'The {cls} class requires ipython but it is not installed' - .format(cls=self.__class__.__name__)) + "The {cls} class requires ipython but it is not installed".format( + cls=self.__class__.__name__ + ) + ) if not self.requirejs: - raise ValueError( - 'global_init is only supported with requirejs=True') + raise ValueError("global_init is only supported with requirejs=True") if self.connected: # Connected so we configure requirejs with the plotly CDN @@ -273,8 +292,9 @@ def activate(self): }}); }} - """.format(win_config=_window_plotly_config, - mathjax_config=_mathjax_config) + """.format( + win_config=_window_plotly_config, mathjax_config=_mathjax_config + ) else: # If not connected then we embed a copy of the plotly.js @@ -293,9 +313,11 @@ def activate(self): }}); }} - """.format(script=get_plotlyjs(), - win_config=_window_plotly_config, - mathjax_config=_mathjax_config) + """.format( + script=get_plotlyjs(), + win_config=_window_plotly_config, + mathjax_config=_mathjax_config, + ) ipython_display.display_html(script, raw=True) @@ -304,17 +326,18 @@ def to_mimebundle(self, fig_dict): from plotly.io import to_html if self.requirejs: - include_plotlyjs = 'require' + include_plotlyjs = "require" include_mathjax = False elif self.connected: - include_plotlyjs = 'cdn' - include_mathjax = 'cdn' + include_plotlyjs = "cdn" + include_mathjax = "cdn" else: include_plotlyjs = True - include_mathjax = 'cdn' + include_mathjax = "cdn" # build post script - post_script = [""" + post_script = [ + """ var gd = document.getElementById('{plot_id}'); var x = new MutationObserver(function (mutations, observer) {{ var display = window.getComputedStyle(gd).display; @@ -336,7 +359,8 @@ def to_mimebundle(self, fig_dict): if (outputEl) {{ x.observe(outputEl, {childList: true}); }} -"""] +""" + ] # Add user defined post script if self.post_script: @@ -354,12 +378,12 @@ def to_mimebundle(self, fig_dict): post_script=post_script, full_html=self.full_html, animation_opts=self.animation_opts, - default_width='100%', + default_width="100%", default_height=525, validate=False, ) - return {'text/html': html} + return {"text/html": html} class NotebookRenderer(HtmlRenderer): @@ -374,12 +398,15 @@ class NotebookRenderer(HtmlRenderer): mime type: 'text/html' """ - def __init__(self, - connected=False, - config=None, - auto_play=False, - post_script=None, - animation_opts=None): + + def __init__( + self, + connected=False, + config=None, + auto_play=False, + post_script=None, + animation_opts=None, + ): super(NotebookRenderer, self).__init__( connected=connected, full_html=False, @@ -388,7 +415,8 @@ def __init__(self, config=config, auto_play=auto_play, post_script=post_script, - animation_opts=animation_opts) + animation_opts=animation_opts, + ) class KaggleRenderer(HtmlRenderer): @@ -402,11 +430,10 @@ class KaggleRenderer(HtmlRenderer): mime type: 'text/html' """ - def __init__(self, - config=None, - auto_play=False, - post_script=None, - animation_opts=None): + + def __init__( + self, config=None, auto_play=False, post_script=None, animation_opts=None + ): super(KaggleRenderer, self).__init__( connected=True, @@ -416,7 +443,8 @@ def __init__(self, config=config, auto_play=auto_play, post_script=post_script, - animation_opts=animation_opts) + animation_opts=animation_opts, + ) class ColabRenderer(HtmlRenderer): @@ -427,11 +455,10 @@ class ColabRenderer(HtmlRenderer): mime type: 'text/html' """ - def __init__(self, - config=None, - auto_play=False, - post_script=None, - animation_opts=None): + + def __init__( + self, config=None, auto_play=False, post_script=None, animation_opts=None + ): super(ColabRenderer, self).__init__( connected=True, @@ -441,7 +468,8 @@ def __init__(self, config=config, auto_play=auto_play, post_script=post_script, - animation_opts=animation_opts) + animation_opts=animation_opts, + ) class IFrameRenderer(MimetypeRenderer): @@ -467,11 +495,10 @@ class IFrameRenderer(MimetypeRenderer): mime type: 'text/html' """ - def __init__(self, - config=None, - auto_play=False, - post_script=None, - animation_opts=None): + + def __init__( + self, config=None, auto_play=False, post_script=None, animation_opts=None + ): self.config = config self.auto_play = auto_play @@ -484,24 +511,25 @@ def to_mimebundle(self, fig_dict): # Make iframe size slightly larger than figure size to avoid # having iframe have its own scroll bar. iframe_buffer = 20 - layout = fig_dict.get('layout', {}) + layout = fig_dict.get("layout", {}) - if layout.get('width', False): - iframe_width = str(layout['width'] + iframe_buffer) + 'px' + if layout.get("width", False): + iframe_width = str(layout["width"] + iframe_buffer) + "px" else: - iframe_width = '100%' + iframe_width = "100%" - if layout.get('height', False): - iframe_height = layout['height'] + iframe_buffer + if layout.get("height", False): + iframe_height = layout["height"] + iframe_buffer else: - iframe_height = str(525 + iframe_buffer) + 'px' + iframe_height = str(525 + iframe_buffer) + "px" # Build filename using ipython cell number ip = IPython.get_ipython() cell_number = list(ip.history_manager.get_tail(1))[0][1] + 1 - dirname = 'iframe_figures' - filename = '{dirname}/figure_{cell_number}.html'.format( - dirname=dirname, cell_number=cell_number) + dirname = "iframe_figures" + filename = "{dirname}/figure_{cell_number}.html".format( + dirname=dirname, cell_number=cell_number + ) # Make directory for os.makedirs(dirname, exist_ok=True) @@ -511,12 +539,12 @@ def to_mimebundle(self, fig_dict): filename, config=self.config, auto_play=self.auto_play, - include_plotlyjs='directory', - include_mathjax='cdn', + include_plotlyjs="directory", + include_mathjax="cdn", auto_open=False, post_script=self.post_script, animation_opts=self.animation_opts, - default_width='100%', + default_width="100%", default_height=525, validate=False, ) @@ -531,9 +559,11 @@ def to_mimebundle(self, fig_dict): frameborder="0" allowfullscreen > -""".format(width=iframe_width, height=iframe_height, src=filename) +""".format( + width=iframe_width, height=iframe_height, src=filename + ) - return {'text/html': iframe_html} + return {"text/html": iframe_html} class ExternalRenderer(BaseRenderer): @@ -567,7 +597,7 @@ def open_html_in_browser(html, using=None, new=0, autoraise=True): See docstrings in webbrowser.get and webbrowser.open """ if isinstance(html, six.string_types): - html = html.encode('utf8') + html = html.encode("utf8") class OneShotRequestHandler(BaseHTTPRequestHandler): def do_GET(self): @@ -575,19 +605,18 @@ def do_GET(self): self.send_header("Content-type", "text/html") self.end_headers() - bufferSize = 1024*1024 + bufferSize = 1024 * 1024 for i in range(0, len(html), bufferSize): - self.wfile.write(html[i:i+bufferSize]) + self.wfile.write(html[i : i + bufferSize]) def log_message(self, format, *args): # Silence stderr logging pass - server = HTTPServer(('127.0.0.1', 0), OneShotRequestHandler) + server = HTTPServer(("127.0.0.1", 0), OneShotRequestHandler) webbrowser.get(using).open( - 'http://127.0.0.1:%s' % server.server_port, - new=new, - autoraise=autoraise) + "http://127.0.0.1:%s" % server.server_port, new=new, autoraise=autoraise + ) server.handle_request() @@ -604,14 +633,17 @@ class BrowserRenderer(ExternalRenderer): mime type: 'text/html' """ - def __init__(self, - config=None, - auto_play=False, - using=None, - new=0, - autoraise=True, - post_script=None, - animation_opts=None): + + def __init__( + self, + config=None, + auto_play=False, + using=None, + new=0, + autoraise=True, + post_script=None, + animation_opts=None, + ): self.config = config self.auto_play = auto_play @@ -623,17 +655,18 @@ def __init__(self, def render(self, fig_dict): from plotly.io import to_html + html = to_html( fig_dict, config=self.config, auto_play=self.auto_play, include_plotlyjs=True, - include_mathjax='cdn', + include_mathjax="cdn", post_script=self.post_script, full_html=True, animation_opts=self.animation_opts, - default_width='100%', - default_height='100%', + default_width="100%", + default_height="100%", validate=False, ) open_html_in_browser(html, self.using, self.new, self.autoraise) diff --git a/packages/python/plotly/plotly/io/_html.py b/packages/python/plotly/plotly/io/_html.py index 7b9bdb0f760..b246d12bda7 100644 --- a/packages/python/plotly/plotly/io/_html.py +++ b/packages/python/plotly/plotly/io/_html.py @@ -23,17 +23,19 @@ """ -def to_html(fig, - config=None, - auto_play=True, - include_plotlyjs=True, - include_mathjax=False, - post_script=None, - full_html=True, - animation_opts=None, - default_width='100%', - default_height='100%', - validate=True): +def to_html( + fig, + config=None, + auto_play=True, + include_plotlyjs=True, + include_mathjax=False, + post_script=None, + full_html=True, + animation_opts=None, + default_width="100%", + default_height="100%", + validate=True, +): """ Convert a figure to an HTML string representation. @@ -133,17 +135,14 @@ def to_html(fig, # ## Serialize figure ## jdata = json.dumps( - fig_dict.get('data', []), - cls=utils.PlotlyJSONEncoder, - sort_keys=True) + fig_dict.get("data", []), cls=utils.PlotlyJSONEncoder, sort_keys=True + ) jlayout = json.dumps( - fig_dict.get('layout', {}), - cls=utils.PlotlyJSONEncoder, - sort_keys=True) + fig_dict.get("layout", {}), cls=utils.PlotlyJSONEncoder, sort_keys=True + ) - if fig_dict.get('frames', None): - jframes = json.dumps( - fig_dict.get('frames', []), cls=utils.PlotlyJSONEncoder) + if fig_dict.get("frames", None): + jframes = json.dumps(fig_dict.get("frames", []), cls=utils.PlotlyJSONEncoder) else: jframes = None @@ -151,21 +150,16 @@ def to_html(fig, config = _get_jconfig(config) # Set responsive - config.setdefault('responsive', True) + config.setdefault("responsive", True) jconfig = json.dumps(config) # Get div width/height - layout_dict = fig_dict.get('layout', {}) - template_dict = (fig_dict - .get('layout', {}) - .get('template', {}) - .get('layout', {})) + layout_dict = fig_dict.get("layout", {}) + template_dict = fig_dict.get("layout", {}).get("template", {}).get("layout", {}) - div_width = layout_dict.get( - 'width', template_dict.get('width', default_width)) - div_height = layout_dict.get( - 'height', template_dict.get('height', default_height)) + div_width = layout_dict.get("width", template_dict.get("width", default_width)) + div_height = layout_dict.get("height", template_dict.get("height", default_height)) # Add 'px' suffix to numeric widths try: @@ -173,23 +167,23 @@ def to_html(fig, except (ValueError, TypeError): pass else: - div_width = str(div_width) + 'px' + div_width = str(div_width) + "px" try: float(div_height) except (ValueError, TypeError): pass else: - div_height = str(div_height) + 'px' + div_height = str(div_height) + "px" # ## Get platform URL ## - plotly_platform_url = config.get('plotlyServerURL', 'https://plot.ly') + plotly_platform_url = config.get("plotlyServerURL", "https://plot.ly") # ## Build script body ## # This is the part that actually calls Plotly.js # build post script snippet(s) - then_post_script = '' + then_post_script = "" if post_script: if not isinstance(post_script, (list, tuple)): post_script = [post_script] @@ -197,24 +191,28 @@ def to_html(fig, then_post_script += """.then(function(){{ {post_script} }})""".format( - post_script=ps.replace('{plot_id}', plotdivid)) + post_script=ps.replace("{plot_id}", plotdivid) + ) - then_addframes = '' - then_animate = '' + then_addframes = "" + then_animate = "" if jframes: then_addframes = """.then(function(){{ Plotly.addFrames('{id}', {frames}); - }})""".format(id=plotdivid, frames=jframes) + }})""".format( + id=plotdivid, frames=jframes + ) if auto_play: if animation_opts: - animation_opts_arg = ', ' + json.dumps(animation_opts) + animation_opts_arg = ", " + json.dumps(animation_opts) else: - animation_opts_arg = '' + animation_opts_arg = "" then_animate = """.then(function(){{ Plotly.animate('{id}', null{animation_opts}); - }})""".format(id=plotdivid, - animation_opts=animation_opts_arg) + }})""".format( + id=plotdivid, animation_opts=animation_opts_arg + ) script = """ if (document.getElementById("{id}")) {{ @@ -231,7 +229,8 @@ def to_html(fig, config=jconfig, then_addframes=then_addframes, then_animate=then_animate, - then_post_script=then_post_script) + then_post_script=then_post_script, + ) # ## Handle loading/initializing plotly.js ## include_plotlyjs_orig = include_plotlyjs @@ -239,44 +238,51 @@ def to_html(fig, include_plotlyjs = include_plotlyjs.lower() # Start/end of requirejs block (if any) - require_start = '' - require_end = '' + require_start = "" + require_end = "" # Init and load - load_plotlyjs = '' + load_plotlyjs = "" # Init plotlyjs. This block needs to run before plotly.js is loaded in # order for MathJax configuration to work properly - if include_plotlyjs == 'require': + if include_plotlyjs == "require": require_start = 'require(["plotly"], function(Plotly) {' - require_end = '});' + require_end = "});" - elif include_plotlyjs == 'cdn': + elif include_plotlyjs == "cdn": load_plotlyjs = """\ {win_config} \ - """.format(win_config=_window_plotly_config) + """.format( + win_config=_window_plotly_config + ) - elif include_plotlyjs == 'directory': + elif include_plotlyjs == "directory": load_plotlyjs = """\ {win_config} \ - """.format(win_config=_window_plotly_config) + """.format( + win_config=_window_plotly_config + ) - elif (isinstance(include_plotlyjs, six.string_types) and - include_plotlyjs.endswith('.js')): + elif isinstance(include_plotlyjs, six.string_types) and include_plotlyjs.endswith( + ".js" + ): load_plotlyjs = """\ {win_config} \ - """.format(win_config=_window_plotly_config, - url=include_plotlyjs_orig) + """.format( + win_config=_window_plotly_config, url=include_plotlyjs_orig + ) elif include_plotlyjs: load_plotlyjs = """\ {win_config} \ - """.format(win_config=_window_plotly_config, - plotlyjs=get_plotlyjs()) + """.format( + win_config=_window_plotly_config, plotlyjs=get_plotlyjs() + ) # ## Handle loading/initializing MathJax ## include_mathjax_orig = include_mathjax @@ -286,25 +292,36 @@ def to_html(fig, mathjax_template = """\ """ - if include_mathjax == 'cdn': - mathjax_script = mathjax_template.format( - url=('https://cdnjs.cloudflare.com' - '/ajax/libs/mathjax/2.7.5/MathJax.js')) + _mathjax_config - - elif (isinstance(include_mathjax, six.string_types) and - include_mathjax.endswith('.js')): - - mathjax_script = mathjax_template.format( - url=include_mathjax_orig) + _mathjax_config + if include_mathjax == "cdn": + mathjax_script = ( + mathjax_template.format( + url=( + "https://cdnjs.cloudflare.com" "/ajax/libs/mathjax/2.7.5/MathJax.js" + ) + ) + + _mathjax_config + ) + + elif isinstance(include_mathjax, six.string_types) and include_mathjax.endswith( + ".js" + ): + + mathjax_script = ( + mathjax_template.format(url=include_mathjax_orig) + _mathjax_config + ) elif not include_mathjax: - mathjax_script = '' + mathjax_script = "" else: - raise ValueError("""\ + raise ValueError( + """\ Invalid value of type {typ} received as the include_mathjax argument Received value: {val} include_mathjax may be specified as False, 'cdn', or a string ending with '.js' - """.format(typ=type(include_mathjax), val=repr(include_mathjax))) + """.format( + typ=type(include_mathjax), val=repr(include_mathjax) + ) + ) plotly_html_div = """\
@@ -328,7 +345,8 @@ def to_html(fig, plotly_platform_url=plotly_platform_url, require_start=require_start, script=script, - require_end=require_end) + require_end=require_end, + ) if full_html: return """\ @@ -337,24 +355,28 @@ def to_html(fig, {div} -""".format(div=plotly_html_div) +""".format( + div=plotly_html_div + ) else: return plotly_html_div -def write_html(fig, - file, - config=None, - auto_play=True, - include_plotlyjs=True, - include_mathjax=False, - post_script=None, - full_html=True, - animation_opts=None, - validate=True, - default_width='100%', - default_height='100%', - auto_open=False): +def write_html( + fig, + file, + config=None, + auto_play=True, + include_plotlyjs=True, + include_mathjax=False, + post_script=None, + full_html=True, + animation_opts=None, + validate=True, + default_width="100%", + default_height="100%", + auto_open=False, +): """ Write a figure to an HTML file representation @@ -487,21 +509,20 @@ def write_html(fig, # Write HTML string if file_is_str: - with open(file, 'w') as f: + with open(file, "w") as f: f.write(html_str) else: file.write(html_str) # Check if we should copy plotly.min.js to output directory - if file_is_str and full_html and include_plotlyjs == 'directory': - bundle_path = os.path.join( - os.path.dirname(file), 'plotly.min.js') + if file_is_str and full_html and include_plotlyjs == "directory": + bundle_path = os.path.join(os.path.dirname(file), "plotly.min.js") if not os.path.exists(bundle_path): - with open(bundle_path, 'w') as f: + with open(bundle_path, "w") as f: f.write(get_plotlyjs()) # Handle auto_open if file_is_str and full_html and auto_open: - url = 'file://' + os.path.abspath(file) + url = "file://" + os.path.abspath(file) webbrowser.open(url) diff --git a/packages/python/plotly/plotly/io/_json.py b/packages/python/plotly/plotly/io/_json.py index 9ba129e16ba..f5b7fbb5a60 100644 --- a/packages/python/plotly/plotly/io/_json.py +++ b/packages/python/plotly/plotly/io/_json.py @@ -4,14 +4,10 @@ import json -from plotly.io._utils import (validate_coerce_fig_to_dict, - validate_coerce_output_type) +from plotly.io._utils import validate_coerce_fig_to_dict, validate_coerce_output_type -def to_json(fig, - validate=True, - pretty=False, - remove_uids=True): +def to_json(fig, validate=True, pretty=False, remove_uids=True): """ Convert a figure to a JSON string representation @@ -45,17 +41,17 @@ def to_json(fig, # Remove trace uid # ---------------- if remove_uids: - for trace in fig_dict.get('data', []): - trace.pop('uid', None) + for trace in fig_dict.get("data", []): + trace.pop("uid", None) # Dump to a JSON string and return # -------------------------------- - opts = {'sort_keys': True} + opts = {"sort_keys": True} if pretty: - opts['indent'] = 2 + opts["indent"] = 2 else: # Remove all whitespace - opts['separators'] = (',', ':') + opts["separators"] = (",", ":") return json.dumps(fig_dict, cls=PlotlyJSONEncoder, **opts) @@ -89,8 +85,7 @@ def write_json(fig, file, validate=True, pretty=False, remove_uids=True): # Get JSON string # --------------- # Pass through validate argument and let to_json handle validation logic - json_str = to_json( - fig, validate=validate, pretty=pretty, remove_uids=remove_uids) + json_str = to_json(fig, validate=validate, pretty=pretty, remove_uids=remove_uids) # Check if file is a string # ------------------------- @@ -99,13 +94,13 @@ def write_json(fig, file, validate=True, pretty=False, remove_uids=True): # Open file # --------- if file_is_str: - with open(file, 'w') as f: + with open(file, "w") as f: f.write(json_str) else: file.write(json_str) -def from_json(value, output_type='Figure', skip_invalid=False): +def from_json(value, output_type="Figure", skip_invalid=False): """ Construct a figure from a JSON string @@ -137,10 +132,13 @@ def from_json(value, output_type='Figure', skip_invalid=False): # Validate value # -------------- if not isinstance(value, string_types): - raise ValueError(""" + raise ValueError( + """ from_json requires a string argument but received value of type {typ} - Received value: {value}""".format(typ=type(value), - value=value)) + Received value: {value}""".format( + typ=type(value), value=value + ) + ) # Decode JSON # ----------- @@ -156,7 +154,7 @@ def from_json(value, output_type='Figure', skip_invalid=False): return fig -def read_json(file, output_type='Figure', skip_invalid=False): +def read_json(file, output_type="Figure", skip_invalid=False): """ Construct a figure from the JSON contents of a local file or readable Python object @@ -190,13 +188,11 @@ def read_json(file, output_type='Figure', skip_invalid=False): # Read file contents into JSON string # ----------------------------------- if file_is_str: - with open(file, 'r') as f: + with open(file, "r") as f: json_str = f.read() else: json_str = file.read() # Construct and return figure # --------------------------- - return from_json(json_str, - skip_invalid=skip_invalid, - output_type=output_type) + return from_json(json_str, skip_invalid=skip_invalid, output_type=output_type) diff --git a/packages/python/plotly/plotly/io/_orca.py b/packages/python/plotly/plotly/io/_orca.py index a66f9686239..8fe3fdef784 100644 --- a/packages/python/plotly/plotly/io/_orca.py +++ b/packages/python/plotly/plotly/io/_orca.py @@ -20,28 +20,28 @@ from plotly.io._utils import validate_coerce_fig_to_dict from plotly.optional_imports import get_module -psutil = get_module('psutil') +psutil = get_module("psutil") # Valid image format constants # ---------------------------- -valid_formats = ('png', 'jpeg', 'webp', 'svg', 'pdf', 'eps') -format_conversions = {fmt: fmt - for fmt in valid_formats} -format_conversions.update({'jpg': 'jpeg'}) +valid_formats = ("png", "jpeg", "webp", "svg", "pdf", "eps") +format_conversions = {fmt: fmt for fmt in valid_formats} +format_conversions.update({"jpg": "jpeg"}) # Utility functions # ----------------- def raise_format_value_error(val): - raise ValueError(""" + raise ValueError( + """ Invalid value of type {typ} receive as an image format specification. Received value: {v} An image format must be specified as one of the following string values: {valid_formats}""".format( - typ=type(val), - v=val, - valid_formats=sorted(format_conversions.keys()))) + typ=type(val), v=val, valid_formats=sorted(format_conversions.keys()) + ) + ) def validate_coerce_format(fmt): @@ -84,7 +84,7 @@ def validate_coerce_format(fmt): # Remove leading period, if any. # For example '.png' is accepted and converted to 'png' - if fmt[0] == '.': + if fmt[0] == ".": fmt = fmt[1:] # Check string value @@ -106,7 +106,7 @@ def find_open_port(): """ s = socket.socket() s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) - s.bind(('', 0)) + s.bind(("", 0)) _, port = s.getsockname() s.close() @@ -130,8 +130,7 @@ def which_py2(cmd, mode=os.F_OK | os.X_OK, path=None): # Additionally check that `file` is not a directory, as on Windows # directories pass the os.access check. def _access_check(fn, mode): - return (os.path.exists(fn) and os.access(fn, mode) - and not os.path.isdir(fn)) + return os.path.exists(fn) and os.access(fn, mode) and not os.path.isdir(fn) # If we're given a path with a directory part, look it up directly rather # than referring to PATH directories. This includes checking relative to @@ -200,6 +199,7 @@ def which(cmd): """ if sys.version_info > (3, 0): import shutil + return shutil.which(cmd) else: return which_py2(cmd) @@ -216,6 +216,7 @@ class OrcaConfig(object): directory using the `save` method, in which case they are automatically restored in future sessions. """ + def __init__(self): # Initialize properties dict @@ -223,16 +224,16 @@ def __init__(self): # Compute absolute path to the 'plotly/package_data/' directory root_dir = os.path.dirname(os.path.abspath(plotly.__file__)) - self.package_dir = os.path.join(root_dir, 'package_data') + self.package_dir = os.path.join(root_dir, "package_data") # Load pre-existing configuration self.reload(warn=False) # Compute constants - plotlyjs = os.path.join(self.package_dir, 'plotly.min.js') + plotlyjs = os.path.join(self.package_dir, "plotly.min.js") self._constants = { - 'plotlyjs': plotlyjs, - 'config_file': os.path.join(PLOTLY_DIR, ".orca") + "plotlyjs": plotlyjs, + "config_file": os.path.join(PLOTLY_DIR, ".orca"), } def restore_defaults(self, reset_server=True): @@ -276,10 +277,14 @@ def update(self, d={}, **kwargs): """ # Combine d and kwargs if not isinstance(d, dict): - raise ValueError(""" + raise ValueError( + """ The first argument to update must be a dict, \ but received value of type {typ}l - Received value: {val}""".format(typ=type(d), val=d)) + Received value: {val}""".format( + typ=type(d), val=d + ) + ) updates = copy(d) updates.update(kwargs) @@ -287,7 +292,7 @@ def update(self, d={}, **kwargs): # Validate keys for k in updates: if k not in self._props: - raise ValueError('Invalid property name: {k}'.format(k=k)) + raise ValueError("Invalid property name: {k}".format(k=k)) # Apply keys for k, v in updates.items(): @@ -315,14 +320,16 @@ def reload(self, warn=True): # ### Load file into a string ### try: - with open(self.config_file, 'r') as f: + with open(self.config_file, "r") as f: orca_str = f.read() except: if warn: - warnings.warn("""\ + warnings.warn( + """\ Unable to read orca configuration file at {path}""".format( - path=self.config_file - )) + path=self.config_file + ) + ) return # ### Parse as JSON ### @@ -330,10 +337,12 @@ def reload(self, warn=True): orca_props = json.loads(orca_str) except ValueError: if warn: - warnings.warn("""\ + warnings.warn( + """\ Orca configuration file at {path} is not valid JSON""".format( - path=self.config_file - )) + path=self.config_file + ) + ) return # ### Update _props ### @@ -341,9 +350,12 @@ def reload(self, warn=True): self._props[k] = v elif warn: - warnings.warn("""\ + warnings.warn( + """\ Orca configuration file at {path} not found""".format( - path=self.config_file)) + path=self.config_file + ) + ) def save(self): """ @@ -358,12 +370,15 @@ def save(self): None """ if ensure_writable_plotly_dir(): - with open(self.config_file, 'w') as f: + with open(self.config_file, "w") as f: json.dump(self._props, f, indent=4) else: - warnings.warn("""\ + warnings.warn( + """\ Failed to write orca configuration file at '{path}'""".format( - path=self.config_file)) + path=self.config_file + ) + ) @property def port(self): @@ -378,20 +393,24 @@ def port(self): ------- int or None """ - return self._props.get('port', None) + return self._props.get("port", None) @port.setter def port(self, val): if val is None: - self._props.pop('port', None) + self._props.pop("port", None) return if not isinstance(val, int): - raise ValueError(""" + raise ValueError( + """ The port property must be an integer, but received value of type {typ}. - Received value: {val}""".format(typ=type(val), val=val)) + Received value: {val}""".format( + typ=type(val), val=val + ) + ) - self._props['port'] = val + self._props["port"] = val @property def executable(self): @@ -417,25 +436,29 @@ def executable(self): ------- str """ - executable_list = self._props.get('executable_list', ['orca']) + executable_list = self._props.get("executable_list", ["orca"]) if executable_list is None: return None else: - return ' '.join(executable_list) + return " ".join(executable_list) @executable.setter def executable(self, val): if val is None: - self._props.pop('executable', None) + self._props.pop("executable", None) else: if not isinstance(val, string_types): - raise ValueError(""" + raise ValueError( + """ The executable property must be a string, but received value of type {typ}. - Received value: {val}""".format(typ=type(val), val=val)) + Received value: {val}""".format( + typ=type(val), val=val + ) + ) if isinstance(val, string_types): val = [val] - self._props['executable_list'] = val + self._props["executable_list"] = val # Server and validation must restart before setting is active reset_status() @@ -461,19 +484,23 @@ def timeout(self): ------- int or float or None """ - return self._props.get('timeout', None) + return self._props.get("timeout", None) @timeout.setter def timeout(self, val): if val is None: - self._props.pop('timeout', None) + self._props.pop("timeout", None) else: if not isinstance(val, (int, float)): - raise ValueError(""" + raise ValueError( + """ The timeout property must be a number, but received value of type {typ}. - Received value: {val}""".format(typ=type(val), val=val)) - self._props['timeout'] = val + Received value: {val}""".format( + typ=type(val), val=val + ) + ) + self._props["timeout"] = val # Server must restart before setting is active shutdown_server() @@ -489,19 +516,23 @@ def default_width(self): ------- int or None """ - return self._props.get('default_width', None) + return self._props.get("default_width", None) @default_width.setter def default_width(self, val): if val is None: - self._props.pop('default_width', None) + self._props.pop("default_width", None) return if not isinstance(val, int): - raise ValueError(""" + raise ValueError( + """ The default_width property must be an int, but received value of type {typ}. - Received value: {val}""".format(typ=type(val), val=val)) - self._props['default_width'] = val + Received value: {val}""".format( + typ=type(val), val=val + ) + ) + self._props["default_width"] = val @property def default_height(self): @@ -514,19 +545,23 @@ def default_height(self): ------- int or None """ - return self._props.get('default_height', None) + return self._props.get("default_height", None) @default_height.setter def default_height(self, val): if val is None: - self._props.pop('default_height', None) + self._props.pop("default_height", None) return if not isinstance(val, int): - raise ValueError(""" + raise ValueError( + """ The default_height property must be an int, but received value of type {typ}. - Received value: {val}""".format(typ=type(val), val=val)) - self._props['default_height'] = val + Received value: {val}""".format( + typ=type(val), val=val + ) + ) + self._props["default_height"] = val @property def default_format(self): @@ -548,16 +583,16 @@ def default_format(self): ------- str or None """ - return self._props.get('default_format', 'png') + return self._props.get("default_format", "png") @default_format.setter def default_format(self, val): if val is None: - self._props.pop('default_format', None) + self._props.pop("default_format", None) return val = validate_coerce_format(val) - self._props['default_format'] = val + self._props["default_format"] = val @property def default_scale(self): @@ -570,19 +605,23 @@ def default_scale(self): ------- int or None """ - return self._props.get('default_scale', 1) + return self._props.get("default_scale", 1) @default_scale.setter def default_scale(self, val): if val is None: - self._props.pop('default_scale', None) + self._props.pop("default_scale", None) return if not isinstance(val, (int, float)): - raise ValueError(""" + raise ValueError( + """ The default_scale property must be a number, but received value of type {typ}. - Received value: {val}""".format(typ=type(val), val=val)) - self._props['default_scale'] = val + Received value: {val}""".format( + typ=type(val), val=val + ) + ) + self._props["default_scale"] = val @property def topojson(self): @@ -595,19 +634,23 @@ def topojson(self): ------- str """ - return self._props.get('topojson', None) + return self._props.get("topojson", None) @topojson.setter def topojson(self, val): if val is None: - self._props.pop('topojson', None) + self._props.pop("topojson", None) else: if not isinstance(val, string_types): - raise ValueError(""" + raise ValueError( + """ The topojson property must be a string, but received value of type {typ}. - Received value: {val}""".format(typ=type(val), val=val)) - self._props['topojson'] = val + Received value: {val}""".format( + typ=type(val), val=val + ) + ) + self._props["topojson"] = val # Server must restart before setting is active shutdown_server() @@ -621,21 +664,26 @@ def mathjax(self): ------- str """ - return self._props.get('mathjax', - ('https://cdnjs.cloudflare.com' - '/ajax/libs/mathjax/2.7.5/MathJax.js')) + return self._props.get( + "mathjax", + ("https://cdnjs.cloudflare.com" "/ajax/libs/mathjax/2.7.5/MathJax.js"), + ) @mathjax.setter def mathjax(self, val): if val is None: - self._props.pop('mathjax', None) + self._props.pop("mathjax", None) else: if not isinstance(val, string_types): - raise ValueError(""" + raise ValueError( + """ The mathjax property must be a string, but received value of type {typ}. - Received value: {val}""".format(typ=type(val), val=val)) - self._props['mathjax'] = val + Received value: {val}""".format( + typ=type(val), val=val + ) + ) + self._props["mathjax"] = val # Server must restart before setting is active shutdown_server() @@ -649,42 +697,49 @@ def mapbox_access_token(self): ------- str """ - return self._props.get('mapbox_access_token', None) + return self._props.get("mapbox_access_token", None) @mapbox_access_token.setter def mapbox_access_token(self, val): if val is None: - self._props.pop('mapbox_access_token', None) + self._props.pop("mapbox_access_token", None) else: if not isinstance(val, string_types): - raise ValueError(""" + raise ValueError( + """ The mapbox_access_token property must be a string, \ but received value of type {typ}. - Received value: {val}""".format(typ=type(val), val=val)) - self._props['mapbox_access_token'] = val + Received value: {val}""".format( + typ=type(val), val=val + ) + ) + self._props["mapbox_access_token"] = val # Server must restart before setting is active shutdown_server() @property def use_xvfb(self): - dflt = 'auto' - return self._props.get('use_xvfb', dflt) + dflt = "auto" + return self._props.get("use_xvfb", dflt) @use_xvfb.setter def use_xvfb(self, val): - valid_vals = [True, False, 'auto'] + valid_vals = [True, False, "auto"] if val is None: - self._props.pop('use_xvfb', None) + self._props.pop("use_xvfb", None) else: if val not in valid_vals: - raise ValueError(""" + raise ValueError( + """ The use_xvfb property must be one of {valid_vals} Received value of type {typ}: {val}""".format( - valid_vals=valid_vals, typ=type(val), val=repr(val))) + valid_vals=valid_vals, typ=type(val), val=repr(val) + ) + ) - self._props['use_xvfb'] = val + self._props["use_xvfb"] = val # Server and validation must restart before setting is active reset_status() @@ -698,7 +753,7 @@ def plotlyjs(self): ------- str """ - return self._constants.get('plotlyjs', None) + return self._constants.get("plotlyjs", None) @property def config_file(self): @@ -739,19 +794,21 @@ def __repr__(self): plotlyjs: {plotlyjs} config_file: {config_file} -""".format(port=self.port, - executable=self.executable, - timeout=self.timeout, - default_width=self.default_width, - default_height=self.default_height, - default_scale=self.default_scale, - default_format=self.default_format, - mathjax=self.mathjax, - topojson=self.topojson, - mapbox_access_token=self.mapbox_access_token, - plotlyjs=self.plotlyjs, - config_file=self.config_file, - use_xvfb=self.use_xvfb) +""".format( + port=self.port, + executable=self.executable, + timeout=self.timeout, + default_width=self.default_width, + default_height=self.default_height, + default_scale=self.default_scale, + default_format=self.default_format, + mathjax=self.mathjax, + topojson=self.topojson, + mapbox_access_token=self.mapbox_access_token, + plotlyjs=self.plotlyjs, + config_file=self.config_file, + use_xvfb=self.use_xvfb, + ) # Make config a singleton object @@ -766,13 +823,14 @@ class OrcaStatus(object): """ Class to store information about the current status of the orca server. """ + _props = { - 'state': 'unvalidated', # or 'validated' or 'running' - 'executable_list': None, - 'version': None, - 'pid': None, - 'port': None, - 'command': None + "state": "unvalidated", # or 'validated' or 'running' + "executable_list": None, + "version": None, + "pid": None, + "port": None, + "command": None, } @property @@ -787,7 +845,7 @@ def state(self): validity, but it is not running. - running: The orca server process is currently running. """ - return self._props['state'] + return self._props["state"] @property def executable(self): @@ -800,11 +858,11 @@ def executable(self): This property will be None if the `state` is 'unvalidated'. """ - executable_list = self._props['executable_list'] + executable_list = self._props["executable_list"] if executable_list is None: return None else: - return ' '.join(executable_list) + return " ".join(executable_list) @property def version(self): @@ -814,7 +872,7 @@ def version(self): This property will be None if the `state` is 'unvalidated'. """ - return self._props['version'] + return self._props["version"] @property def pid(self): @@ -822,7 +880,7 @@ def pid(self): The process id of the orca server process, if any. This property will be None if the `state` is not 'running'. """ - return self._props['pid'] + return self._props["pid"] @property def port(self): @@ -833,7 +891,7 @@ def port(self): This port can be specified explicitly by setting the `port` property of the `plotly.io.orca.config` object. """ - return self._props['port'] + return self._props["port"] @property def command(self): @@ -841,7 +899,7 @@ def command(self): The command arguments used to launch the running orca server, if any. This property will be None if the `state` is not 'running'. """ - return self._props['command'] + return self._props["command"] def __repr__(self): """ @@ -857,12 +915,14 @@ def __repr__(self): pid: {pid} command: {command} -""".format(executable=self.executable, - version=self.version, - port=self.port, - pid=self.pid, - state=self.state, - command=self.command) +""".format( + executable=self.executable, + version=self.version, + port=self.port, + pid=self.pid, + state=self.state, + command=self.command, + ) # Make status a singleton object @@ -885,19 +945,14 @@ def orca_env(): to orca is transformed into a call to nodejs. See https://github.com/plotly/orca/issues/149#issuecomment-443506732 """ - clear_env_vars = [ - 'NODE_OPTIONS', - 'ELECTRON_RUN_AS_NODE', - 'LD_PRELOAD' - ] + clear_env_vars = ["NODE_OPTIONS", "ELECTRON_RUN_AS_NODE", "LD_PRELOAD"] orig_env_vars = {} try: # Clear and save - orig_env_vars.update({ - var: os.environ.pop(var) - for var in clear_env_vars - if var in os.environ}) + orig_env_vars.update( + {var: os.environ.pop(var) for var in clear_env_vars if var in os.environ} + ) yield finally: # Restore @@ -934,7 +989,7 @@ def validate_executable(): """ # Check state # ----------- - if status.state != 'unvalidated': + if status.state != "unvalidated": # Nothing more to do return @@ -971,10 +1026,11 @@ def validate_executable(): # Search for executable name or path in config.executable executable = which(config.executable) path = os.environ.get("PATH", os.defpath) - formatted_path = path.replace(os.pathsep, '\n ') + formatted_path = path.replace(os.pathsep, "\n ") if executable is None: - raise ValueError(""" + raise ValueError( + """ The orca executable is required to export figures as static images, but it could not be found on the system path. @@ -982,36 +1038,46 @@ def validate_executable(): {formatted_path} {instructions}""".format( - executable=config.executable, - formatted_path=formatted_path, - instructions=install_location_instructions)) + executable=config.executable, + formatted_path=formatted_path, + instructions=install_location_instructions, + ) + ) # Check if we should run with Xvfb # -------------------------------- - xvfb_args = ["--auto-servernum", - "--server-args", - "-screen 0 640x480x24 +extension RANDR +extension GLX", - executable] + xvfb_args = [ + "--auto-servernum", + "--server-args", + "-screen 0 640x480x24 +extension RANDR +extension GLX", + executable, + ] if config.use_xvfb == True: # Use xvfb - xvfb_run_executable = which('xvfb-run') + xvfb_run_executable = which("xvfb-run") if not xvfb_run_executable: - raise ValueError(""" + raise ValueError( + """ The plotly.io.orca.config.use_xvfb property is set to True, but the xvfb-run executable could not be found on the system path. Searched for the executable 'xvfb-run' on the following path: - {formatted_path}""".format(formatted_path=formatted_path)) + {formatted_path}""".format( + formatted_path=formatted_path + ) + ) executable_list = [xvfb_run_executable] + xvfb_args - elif (config.use_xvfb == 'auto' and - sys.platform.startswith('linux') and - not os.environ.get('DISPLAY') and - which('xvfb-run')): + elif ( + config.use_xvfb == "auto" + and sys.platform.startswith("linux") + and not os.environ.get("DISPLAY") + and which("xvfb-run") + ): # use_xvfb is 'auto', we're on linux without a display server, # and xvfb-run is available. Use it. - xvfb_run_executable = which('xvfb-run') + xvfb_run_executable = which("xvfb-run") executable_list = [xvfb_run_executable] + xvfb_args else: # Do not use xvfb @@ -1026,32 +1092,35 @@ def validate_executable(): this message for details on what went wrong. {instructions}""".format( - executable=executable, - instructions=install_location_instructions) + executable=executable, instructions=install_location_instructions + ) # ### Run with Popen so we get access to stdout and stderr with orca_env(): p = subprocess.Popen( - executable_list + ['--help'], - stdout=subprocess.PIPE, - stderr=subprocess.PIPE) + executable_list + ["--help"], stdout=subprocess.PIPE, stderr=subprocess.PIPE + ) help_result, help_error = p.communicate() if p.returncode != 0: - err_msg = invalid_executable_msg + """ + err_msg = ( + invalid_executable_msg + + """ Here is the error that was returned by the command $ {executable} --help [Return code: {returncode}] {err_msg} -""".format(executable=' '.join(executable_list), - err_msg=help_error.decode('utf-8'), - returncode=p.returncode) +""".format( + executable=" ".join(executable_list), + err_msg=help_error.decode("utf-8"), + returncode=p.returncode, + ) + ) # Check for Linux without X installed. - if (sys.platform.startswith('linux') and - not os.environ.get('DISPLAY')): + if sys.platform.startswith("linux") and not os.environ.get("DISPLAY"): err_msg += """\ Note: When used on Linux, orca requires an X11 display server, but none was @@ -1070,33 +1139,45 @@ def validate_executable(): raise ValueError(err_msg) if not help_result: - raise ValueError(invalid_executable_msg + """ + raise ValueError( + invalid_executable_msg + + """ The error encountered is that no output was returned by the command $ {executable} --help -""".format(executable=' '.join(executable_list))) - - if ("Plotly's image-exporting utilities" not in - help_result.decode('utf-8')): - raise ValueError(invalid_executable_msg + """ +""".format( + executable=" ".join(executable_list) + ) + ) + + if "Plotly's image-exporting utilities" not in help_result.decode("utf-8"): + raise ValueError( + invalid_executable_msg + + """ The error encountered is that unexpected output was returned by the command $ {executable} --help {help_result} -""".format(executable=' '.join(executable_list), help_result=help_result)) +""".format( + executable=" ".join(executable_list), help_result=help_result + ) + ) # Get orca version # ---------------- # ### Run with Popen so we get access to stdout and stderr with orca_env(): p = subprocess.Popen( - executable_list + ['--version'], + executable_list + ["--version"], stdout=subprocess.PIPE, - stderr=subprocess.PIPE) + stderr=subprocess.PIPE, + ) version_result, version_error = p.communicate() if p.returncode != 0: - raise ValueError(invalid_executable_msg + """ + raise ValueError( + invalid_executable_msg + + """ An error occurred while trying to get the version of the orca executable. Here is the command that plotly.py ran to request the version $ {executable} --version @@ -1105,23 +1186,31 @@ def validate_executable(): [Return code: {returncode}] {err_msg} - """.format(executable=' '.join(executable_list), - err_msg=version_error.decode('utf-8'), - returncode=p.returncode)) + """.format( + executable=" ".join(executable_list), + err_msg=version_error.decode("utf-8"), + returncode=p.returncode, + ) + ) if not version_result: - raise ValueError(invalid_executable_msg + """ + raise ValueError( + invalid_executable_msg + + """ The error encountered is that no version was reported by the orca executable. Here is the command that plotly.py ran to request the version: $ {executable} --version -""".format(executable=' '.join(executable_list))) +""".format( + executable=" ".join(executable_list) + ) + ) else: version_result = version_result.decode() - status._props['executable_list'] = executable_list - status._props['version'] = version_result.strip() - status._props['state'] = 'validated' + status._props["executable_list"] = executable_list + status._props["version"] = version_result.strip() + status._props["state"] = "validated" def reset_status(): @@ -1137,15 +1226,15 @@ def reset_status(): None """ shutdown_server() - status._props['executable_list'] = None - status._props['version'] = None - status._props['state'] = 'unvalidated' + status._props["executable_list"] = None + status._props["version"] = None + status._props["state"] = "unvalidated" # Initialze process control variables # ----------------------------------- orca_lock = threading.Lock() -orca_state = {'proc': None, 'shutdown_timer': None} +orca_state = {"proc": None, "shutdown_timer": None} # Shutdown @@ -1167,16 +1256,16 @@ def shutdown_server(): """ # Use double-check locking to make sure the properties of orca_state # are updated consistently across threads. - if orca_state['proc'] is not None: + if orca_state["proc"] is not None: with orca_lock: - if orca_state['proc'] is not None: + if orca_state["proc"] is not None: # We use psutil to kill all child processes of the main orca # process. This prevents any zombie processes from being # left over, and it saves us from needing to write # OS-specific process management code here. - parent = psutil.Process(orca_state['proc'].pid) + parent = psutil.Process(orca_state["proc"].pid) for child in parent.children(recursive=True): try: child.terminate() @@ -1186,29 +1275,29 @@ def shutdown_server(): try: # Kill parent process - orca_state['proc'].terminate() + orca_state["proc"].terminate() # Wait for the process to shutdown - child_status = orca_state['proc'].wait() + child_status = orca_state["proc"].wait() except: # We tried, move on pass # Update our internal process management state - orca_state['proc'] = None + orca_state["proc"] = None - if orca_state['shutdown_timer'] is not None: - orca_state['shutdown_timer'].cancel() - orca_state['shutdown_timer'] = None + if orca_state["shutdown_timer"] is not None: + orca_state["shutdown_timer"].cancel() + orca_state["shutdown_timer"] = None - orca_state['port'] = None + orca_state["port"] = None # Update orca.status so the user has an accurate view # of the state of the orca server - status._props['state'] = 'validated' - status._props['pid'] = None - status._props['port'] = None - status._props['command'] = None + status._props["state"] = "validated" + status._props["pid"] = None + status._props["port"] = None + status._props["command"] = None # Launch or get server @@ -1224,7 +1313,8 @@ def ensure_server(): # Validate psutil if psutil is None: - raise ValueError("""\ + raise ValueError( + """\ Image generation requires the psutil package. Install using pip: @@ -1232,59 +1322,60 @@ def ensure_server(): Install using conda: $ conda install psutil -""") +""" + ) # Validate orca executable - if status.state == 'unvalidated': + if status.state == "unvalidated": validate_executable() # Acquire lock to make sure that we keep the properties of orca_state # consistent across threads with orca_lock: # Cancel the current shutdown timer, if any - if orca_state['shutdown_timer'] is not None: - orca_state['shutdown_timer'].cancel() + if orca_state["shutdown_timer"] is not None: + orca_state["shutdown_timer"].cancel() # Start a new server process if none is active - if orca_state['proc'] is None: + if orca_state["proc"] is None: # Determine server port if config.port is None: - orca_state['port'] = find_open_port() + orca_state["port"] = find_open_port() else: - orca_state['port'] = config.port + orca_state["port"] = config.port # Build orca command list - cmd_list = status._props['executable_list'] + [ - 'serve', - '-p', str(orca_state['port']), - '--plotly', config.plotlyjs, - '--graph-only'] + cmd_list = status._props["executable_list"] + [ + "serve", + "-p", + str(orca_state["port"]), + "--plotly", + config.plotlyjs, + "--graph-only", + ] if config.topojson: - cmd_list.extend(['--topojson', config.topojson]) + cmd_list.extend(["--topojson", config.topojson]) if config.mathjax: - cmd_list.extend(['--mathjax', config.mathjax]) + cmd_list.extend(["--mathjax", config.mathjax]) if config.mapbox_access_token: - cmd_list.extend(['--mapbox-access-token', - config.mapbox_access_token]) + cmd_list.extend(["--mapbox-access-token", config.mapbox_access_token]) # Create subprocess that launches the orca server on the # specified port. - DEVNULL = open(os.devnull, 'wb') + DEVNULL = open(os.devnull, "wb") with orca_env(): - orca_state['proc'] = subprocess.Popen( - cmd_list, stdout=DEVNULL - ) + orca_state["proc"] = subprocess.Popen(cmd_list, stdout=DEVNULL) # Update orca.status so the user has an accurate view # of the state of the orca server - status._props['state'] = 'running' - status._props['pid'] = orca_state['proc'].pid - status._props['port'] = orca_state['port'] - status._props['command'] = cmd_list + status._props["state"] = "running" + status._props["pid"] = orca_state["proc"].pid + status._props["port"] = orca_state["port"] + status._props["command"] = cmd_list # Create new shutdown timer if a timeout was specified if config.timeout is not None: @@ -1293,7 +1384,7 @@ def ensure_server(): # complete t.daemon = True t.start() - orca_state['shutdown_timer'] = t + orca_state["shutdown_timer"] = t @retrying.retry(wait_random_min=5, wait_random_max=10, stop_max_delay=30000) @@ -1303,21 +1394,18 @@ def request_image_with_retrying(**kwargs): with retrying logic. """ from requests import post - server_url = 'http://{hostname}:{port}'.format( - hostname='localhost', port=orca_state['port']) + + server_url = "http://{hostname}:{port}".format( + hostname="localhost", port=orca_state["port"] + ) request_params = {k: v for k, v, in kwargs.items() if v is not None} json_str = json.dumps(request_params, cls=_plotly_utils.utils.PlotlyJSONEncoder) - response = post(server_url + '/', data=json_str) + response = post(server_url + "/", data=json_str) return response -def to_image(fig, - format=None, - width=None, - height=None, - scale=None, - validate=True): +def to_image(fig, format=None, width=None, height=None, scale=None, validate=True): """ Convert a figure to a static image bytes string @@ -1397,11 +1485,8 @@ def to_image(fig, # ------------------------- try: response = request_image_with_retrying( - figure=fig_dict, - format=format, - scale=scale, - width=width, - height=height) + figure=fig_dict, format=format, scale=scale, width=width, height=height + ) except OSError as err: # Get current status string status_str = repr(status) @@ -1411,19 +1496,24 @@ def to_image(fig, # Raise error message based on whether the server process existed if pid_exists: - raise ValueError(""" + raise ValueError( + """ For some reason plotly.py was unable to communicate with the local orca server process, even though the server process seems to be running. Please review the process and connection information below: {info} -""".format(info=status_str)) +""".format( + info=status_str + ) + ) else: # Reset the status so that if the user tries again, we'll try to # start the server again reset_status() - raise ValueError(""" + raise ValueError( + """ For some reason the orca server process is no longer running. Please review the process and connection information below: @@ -1431,7 +1521,10 @@ def to_image(fig, {info} plotly.py will attempt to start the local server process again the next time an image export operation is performed. -""".format(info=status_str)) +""".format( + info=status_str + ) + ) # Check response # -------------- @@ -1444,8 +1537,9 @@ def to_image(fig, The image request was rejected by the orca conversion utility with the following error: {status}: {msg} -""".format(status=response.status_code, - msg=response.content.decode('utf-8')) +""".format( + status=response.status_code, msg=response.content.decode("utf-8") + ) # ### Try to be helpful ### # Status codes from /src/component/plotly-graph/constants.js in the @@ -1456,15 +1550,17 @@ def to_image(fig, # 526: 'plotly.js version 1.11.0 or up required', # 530: 'image conversion error' # } - if (response.status_code == 400 and - isinstance(fig, dict) and - not validate): + if response.status_code == 400 and isinstance(fig, dict) and not validate: err_message += """ Try setting the `validate` argument to True to check for errors in the figure specification""" elif response.status_code == 525: - any_mapbox = any([trace.get('type', None) == 'scattermapbox' - for trace in fig_dict.get('data', [])]) + any_mapbox = any( + [ + trace.get("type", None) == "scattermapbox" + for trace in fig_dict.get("data", []) + ] + ) if any_mapbox and config.mapbox_access_token is None: err_message += """ Exporting scattermapbox traces requires a mapbox access token. @@ -1477,7 +1573,7 @@ def to_image(fig, >>> plotly.io.orca.config.save() """ - elif response.status_code == 530 and format == 'eps': + elif response.status_code == 530 and format == "eps": err_message += """ Exporting to EPS format requires the poppler library. You can install poppler on MacOS or Linux with: @@ -1496,13 +1592,9 @@ def to_image(fig, raise ValueError(err_message) -def write_image(fig, - file, - format=None, - scale=None, - width=None, - height=None, - validate=True): +def write_image( + fig, file, format=None, scale=None, width=None, height=None, validate=True +): """ Convert a figure to a static image and write it to a file or writeable object @@ -1571,29 +1663,30 @@ def write_image(fig, if ext: format = validate_coerce_format(ext) else: - raise ValueError(""" + raise ValueError( + """ Cannot infer image type from output path '{file}'. Please add a file extension or specify the type using the format parameter. For example: >>> import plotly.io as pio >>> pio.write_image(fig, file_path, format='png') -""".format(file=file)) +""".format( + file=file + ) + ) # Request image # ------------- # Do this first so we don't create a file if image conversion fails - img_data = to_image(fig, - format=format, - scale=scale, - width=width, - height=height, - validate=validate) + img_data = to_image( + fig, format=format, scale=scale, width=width, height=height, validate=validate + ) # Open file # --------- if file_is_str: - with open(file, 'wb') as f: + with open(file, "wb") as f: f.write(img_data) else: file.write(img_data) diff --git a/packages/python/plotly/plotly/io/_renderers.py b/packages/python/plotly/plotly/io/_renderers.py index 5ff06e5ea14..c39d0c32e8a 100644 --- a/packages/python/plotly/plotly/io/_renderers.py +++ b/packages/python/plotly/plotly/io/_renderers.py @@ -9,13 +9,24 @@ from plotly import optional_imports from plotly.io._base_renderers import ( - MimetypeRenderer, ExternalRenderer, PlotlyRenderer, NotebookRenderer, - KaggleRenderer, ColabRenderer, JsonRenderer, PngRenderer, JpegRenderer, - SvgRenderer, PdfRenderer, BrowserRenderer, IFrameRenderer) + MimetypeRenderer, + ExternalRenderer, + PlotlyRenderer, + NotebookRenderer, + KaggleRenderer, + ColabRenderer, + JsonRenderer, + PngRenderer, + JpegRenderer, + SvgRenderer, + PdfRenderer, + BrowserRenderer, + IFrameRenderer, +) from plotly.io._utils import validate_coerce_fig_to_dict -ipython = optional_imports.get_module('IPython') -ipython_display = optional_imports.get_module('IPython.display') +ipython = optional_imports.get_module("IPython") +ipython_display = optional_imports.get_module("IPython.display") # Renderer configuration class @@ -24,6 +35,7 @@ class RenderersConfig(object): """ Singleton object containing the current renderer configurations """ + def __init__(self): self._renderers = {} self._default_name = None @@ -48,9 +60,13 @@ def __getitem__(self, item): def __setitem__(self, key, value): if not isinstance(value, (MimetypeRenderer, ExternalRenderer)): - raise ValueError("""\ + raise ValueError( + """\ Renderer must be a subclass of MimetypeRenderer or ExternalRenderer. - Received value with type: {typ}""".format(typ=type(value))) + Received value with type: {typ}""".format( + typ=type(value) + ) + ) self._renderers[key] = value @@ -122,7 +138,7 @@ def default(self, value): if not value: # _default_name should always be a string so we can do # pio.renderers.default.split('+') - self._default_name = '' + self._default_name = "" self._default_renderers = [] return @@ -159,8 +175,9 @@ def _activate_pending_renderers(self, cls=object): cls Only activate renders that are subclasses of this class """ - to_activate_with_cls = [r for r in self._to_activate - if cls and isinstance(r, cls)] + to_activate_with_cls = [ + r for r in self._to_activate if cls and isinstance(r, cls) + ] while to_activate_with_cls: # Activate renderers from left to right so that right-most @@ -168,8 +185,9 @@ def _activate_pending_renderers(self, cls=object): renderer = to_activate_with_cls.pop(0) renderer.activate() - self._to_activate = [r for r in self._to_activate - if not (cls and isinstance(r, cls))] + self._to_activate = [ + r for r in self._to_activate if not (cls and isinstance(r, cls)) + ] def _validate_coerce_renderers(self, renderers_string): """ @@ -187,13 +205,17 @@ def _validate_coerce_renderers(self, renderers_string): """ # Validate value if not isinstance(renderers_string, six.string_types): - raise ValueError('Renderer must be specified as a string') + raise ValueError("Renderer must be specified as a string") - renderer_names = renderers_string.split('+') + renderer_names = renderers_string.split("+") invalid = [name for name in renderer_names if name not in self] if invalid: - raise ValueError(""" -Invalid named renderer(s) received: {}""".format(str(invalid))) + raise ValueError( + """ +Invalid named renderer(s) received: {}""".format( + str(invalid) + ) + ) return renderer_names @@ -204,20 +226,23 @@ def __repr__(self): Default renderer: {default} Available renderers: {available} -""".format(default=repr(self.default), - available=self._available_renderers_str()) +""".format( + default=repr(self.default), available=self._available_renderers_str() + ) def _available_renderers_str(self): """ Return nicely wrapped string representation of all available renderer names """ - available = '\n'.join(textwrap.wrap( - repr(list(self)), - width=79 - 8, - initial_indent=' ' * 8, - subsequent_indent=' ' * 9 - )) + available = "\n".join( + textwrap.wrap( + repr(list(self)), + width=79 - 8, + initial_indent=" " * 8, + subsequent_indent=" " * 9, + ) + ) return available def _build_mime_bundle(self, fig_dict, renderers_string=None, **kwargs): @@ -266,8 +291,7 @@ def _build_mime_bundle(self, fig_dict, renderers_string=None, **kwargs): return bundle - def _perform_external_rendering( - self, fig_dict, renderers_string=None, **kwargs): + def _perform_external_rendering(self, fig_dict, renderers_string=None, **kwargs): """ Perform external rendering for each ExternalRenderer specified in either the default renderer string, or in the supplied @@ -343,18 +367,17 @@ def show(fig, renderer=None, validate=True, **kwargs): fig_dict = validate_coerce_fig_to_dict(fig, validate) # Mimetype renderers - bundle = renderers._build_mime_bundle( - fig_dict, renderers_string=renderer, **kwargs) + bundle = renderers._build_mime_bundle(fig_dict, renderers_string=renderer, **kwargs) if bundle: if not ipython_display: raise ValueError( - 'Mime type rendering requires ipython but it is not installed') + "Mime type rendering requires ipython but it is not installed" + ) ipython_display.display(bundle, raw=True) # external renderers - renderers._perform_external_rendering( - fig_dict, renderers_string=renderer, **kwargs) + renderers._perform_external_rendering(fig_dict, renderers_string=renderer, **kwargs) # Register renderers @@ -362,37 +385,36 @@ def show(fig, renderer=None, validate=True, **kwargs): # Plotly mime type plotly_renderer = PlotlyRenderer() -renderers['plotly_mimetype'] = plotly_renderer -renderers['jupyterlab'] = plotly_renderer -renderers['nteract'] = plotly_renderer -renderers['vscode'] = plotly_renderer +renderers["plotly_mimetype"] = plotly_renderer +renderers["jupyterlab"] = plotly_renderer +renderers["nteract"] = plotly_renderer +renderers["vscode"] = plotly_renderer # HTML-based config = {} -renderers['notebook'] = NotebookRenderer(config=config) -renderers['notebook_connected'] = NotebookRenderer( - config=config, connected=True) -renderers['kaggle'] = KaggleRenderer(config=config) -renderers['colab'] = ColabRenderer(config=config) +renderers["notebook"] = NotebookRenderer(config=config) +renderers["notebook_connected"] = NotebookRenderer(config=config, connected=True) +renderers["kaggle"] = KaggleRenderer(config=config) +renderers["colab"] = ColabRenderer(config=config) # JSON -renderers['json'] = JsonRenderer() +renderers["json"] = JsonRenderer() # Static Image img_kwargs = dict(height=450, width=700) -renderers['png'] = PngRenderer(**img_kwargs) +renderers["png"] = PngRenderer(**img_kwargs) jpeg_renderer = JpegRenderer(**img_kwargs) -renderers['jpeg'] = jpeg_renderer -renderers['jpg'] = jpeg_renderer -renderers['svg'] = SvgRenderer(**img_kwargs) -renderers['pdf'] = PdfRenderer(**img_kwargs) +renderers["jpeg"] = jpeg_renderer +renderers["jpg"] = jpeg_renderer +renderers["svg"] = SvgRenderer(**img_kwargs) +renderers["pdf"] = PdfRenderer(**img_kwargs) # External -renderers['browser'] = BrowserRenderer(config=config) -renderers['firefox'] = BrowserRenderer(config=config, using='firefox') -renderers['chrome'] = BrowserRenderer(config=config, using='chrome') -renderers['chromium'] = BrowserRenderer(config=config, using='chromium') -renderers['iframe'] = IFrameRenderer(config=config) +renderers["browser"] = BrowserRenderer(config=config) +renderers["firefox"] = BrowserRenderer(config=config, using="firefox") +renderers["chrome"] = BrowserRenderer(config=config, using="chrome") +renderers["chromium"] = BrowserRenderer(config=config, using="chromium") +renderers["iframe"] = IFrameRenderer(config=config) # Set default renderer # -------------------- @@ -400,14 +422,18 @@ def show(fig, renderer=None, validate=True, **kwargs): default_renderer = None # Handle the PLOTLY_RENDERER environment variable -env_renderer = os.environ.get('PLOTLY_RENDERER', None) +env_renderer = os.environ.get("PLOTLY_RENDERER", None) if env_renderer: try: renderers._validate_coerce_renderers(env_renderer) except ValueError: - raise ValueError(""" + raise ValueError( + """ Invalid named renderer(s) specified in the 'PLOTLY_RENDERER' -environment variable: {env_renderer}""".format(env_renderer=env_renderer)) +environment variable: {env_renderer}""".format( + env_renderer=env_renderer + ) + ) default_renderer = env_renderer elif ipython and ipython.get_ipython(): @@ -417,30 +443,31 @@ def show(fig, renderer=None, validate=True, **kwargs): try: import google.colab - default_renderer = 'colab' + default_renderer = "colab" except ImportError: pass # Check if we're running in a Kaggle notebook - if not default_renderer and os.path.exists('/kaggle/input'): - default_renderer = 'kaggle' + if not default_renderer and os.path.exists("/kaggle/input"): + default_renderer = "kaggle" # Check if we're running in VSCode - if not default_renderer and 'VSCODE_PID' in os.environ: - default_renderer = 'vscode' + if not default_renderer and "VSCODE_PID" in os.environ: + default_renderer = "vscode" # Fallback to renderer combination that will work automatically # in the classic notebook (offline), jupyterlab, nteract, vscode, and # nbconvert HTML export. if not default_renderer: - default_renderer = 'plotly_mimetype+notebook' + default_renderer = "plotly_mimetype+notebook" else: # If ipython isn't available, try to display figures in the default # browser import webbrowser + try: webbrowser.get() - default_renderer = 'browser' + default_renderer = "browser" except webbrowser.Error: # Default browser could not be loaded pass diff --git a/packages/python/plotly/plotly/io/_templates.py b/packages/python/plotly/plotly/io/_templates.py index 17a2518534b..4af0a8b8c39 100644 --- a/packages/python/plotly/plotly/io/_templates.py +++ b/packages/python/plotly/plotly/io/_templates.py @@ -25,16 +25,23 @@ class TemplatesConfig(object): """ Singleton object containing the current figure templates (aka themes) """ + def __init__(self): # Initialize properties dict self._templates = {} # Initialize built-in templates - default_templates = ['ggplot2', 'seaborn', - 'plotly', 'plotly_white', - 'plotly_dark', 'presentation', 'xgridoff', - 'plotly_v4_colors'] + default_templates = [ + "ggplot2", + "seaborn", + "plotly", + "plotly_white", + "plotly_dark", + "presentation", + "xgridoff", + "plotly_v4_colors", + ] for template_name in default_templates: self._templates[template_name] = Lazy @@ -59,8 +66,8 @@ def __getitem__(self, item): from plotly.graph_objs.layout import Template # Load template from package data - path = os.path.join('package_data', 'templates', item + '.json') - template_str = pkgutil.get_data('plotly', path).decode('utf-8') + path = os.path.join("package_data", "templates", item + ".json") + template_str = pkgutil.get_data("plotly", path).decode("utf-8") template_dict = json.loads(template_str) template = Template(template_dict) @@ -82,6 +89,7 @@ def __delitem__(self, key): def _validate(self, value): if not self._validator: from plotly.validators.layout import TemplateValidator + self._validator = TemplateValidator() return self._validator.validate_coerce(value) @@ -147,20 +155,23 @@ def __repr__(self): Default template: {default} Available templates: {available} -""".format(default=repr(self.default), - available=self._available_templates_str()) +""".format( + default=repr(self.default), available=self._available_templates_str() + ) def _available_templates_str(self): """ Return nicely wrapped string representation of all available template names """ - available = '\n'.join(textwrap.wrap( - repr(list(self)), - width=79 - 8, - initial_indent=' ' * 8, - subsequent_indent=' ' * 9 - )) + available = "\n".join( + textwrap.wrap( + repr(list(self)), + width=79 - 8, + initial_indent=" " * 8, + subsequent_indent=" " * 9, + ) + ) return available def merge_templates(self, *args): @@ -195,6 +206,7 @@ def merge_templates(self, *args): return reduce(self._merge_2_templates, args) else: from plotly.graph_objs.layout import Template + return Template() def _merge_2_templates(self, template1, template2): @@ -221,16 +233,17 @@ def _merge_2_templates(self, template1, template2): other_traces = other.data[trace_type] if result_traces and other_traces: - lcm = (len(result_traces) * len(other_traces) // - gcd(len(result_traces), len(other_traces))) + lcm = ( + len(result_traces) + * len(other_traces) + // gcd(len(result_traces), len(other_traces)) + ) # Cycle result traces - result.data[trace_type] = result_traces * ( - lcm // len(result_traces)) + result.data[trace_type] = result_traces * (lcm // len(result_traces)) # Cycle other traces - other.data[trace_type] = other_traces * ( - lcm // len(other_traces)) + other.data[trace_type] = other_traces * (lcm // len(other_traces)) # Perform update result.update(other) @@ -257,10 +270,13 @@ def walk_push_to_template(fig_obj, template_obj, skip): Set of names of properties to skip """ from _plotly_utils.basevalidators import ( - CompoundValidator, CompoundArrayValidator, is_array) + CompoundValidator, + CompoundArrayValidator, + is_array, + ) for prop in list(fig_obj._props): - if prop == 'template' or prop in skip: + if prop == "template" or prop in skip: # Avoid infinite recursion continue @@ -277,7 +293,7 @@ def walk_push_to_template(fig_obj, template_obj, skip): elif isinstance(validator, CompoundArrayValidator) and fig_val: template_elements = list(template_val) template_element_names = [el.name for el in template_elements] - template_propdefaults = template_obj[prop[:-1] + 'defaults'] + template_propdefaults = template_obj[prop[:-1] + "defaults"] for fig_el in fig_val: element_name = fig_el.name @@ -312,7 +328,7 @@ def walk_push_to_template(fig_obj, template_obj, skip): pass -def to_templated(fig, skip=('title', 'text')): +def to_templated(fig, skip=("title", "text")): """ Return a copy of a figure where all styling properties have been moved into the figure's template. The template property of the resulting figure @@ -404,6 +420,7 @@ def to_templated(fig, skip=('title', 'text')): # process fig from plotly.basedatatypes import BaseFigure from plotly.graph_objs import Figure + if not isinstance(fig, BaseFigure): fig = Figure(fig) @@ -414,15 +431,15 @@ def to_templated(fig, skip=('title', 'text')): skip = set(skip) # Always skip uids - skip.add('uid') + skip.add("uid") # Initialize templated figure with deep copy of input figure templated_fig = copy.deepcopy(fig) # Handle layout - walk_push_to_template(templated_fig.layout, - templated_fig.layout.template.layout, - skip=skip) + walk_push_to_template( + templated_fig.layout, templated_fig.layout.template.layout, skip=skip + ) # Handle traces trace_type_indexes = {} @@ -450,8 +467,7 @@ def to_templated(fig, skip=('title', 'text')): # Remove useless trace arrays for trace_type in templated_fig.layout.template.data: traces = templated_fig.layout.template.data[trace_type] - is_empty = [trace.to_plotly_json() == {'type': trace_type} - for trace in traces] + is_empty = [trace.to_plotly_json() == {"type": trace_type} for trace in traces] if all(is_empty): templated_fig.layout.template.data[trace_type] = None diff --git a/packages/python/plotly/plotly/io/_utils.py b/packages/python/plotly/plotly/io/_utils.py index fbb8985d25d..b3b376e9d89 100644 --- a/packages/python/plotly/plotly/io/_utils.py +++ b/packages/python/plotly/plotly/io/_utils.py @@ -6,6 +6,7 @@ def validate_coerce_fig_to_dict(fig, validate): from plotly.basedatatypes import BaseFigure + if isinstance(fig, BaseFigure): fig_dict = fig.to_dict() elif isinstance(fig, dict): @@ -15,20 +16,27 @@ def validate_coerce_fig_to_dict(fig, validate): else: fig_dict = fig else: - raise ValueError(""" + raise ValueError( + """ The fig parameter must be a dict or Figure. - Received value of type {typ}: {v}""".format(typ=type(fig), v=fig)) + Received value of type {typ}: {v}""".format( + typ=type(fig), v=fig + ) + ) return fig_dict def validate_coerce_output_type(output_type): - if output_type == 'Figure' or output_type == go.Figure: + if output_type == "Figure" or output_type == go.Figure: cls = go.Figure - elif (output_type == 'FigureWidget' or - (hasattr(go, 'FigureWidget') and output_type == go.FigureWidget)): + elif output_type == "FigureWidget" or ( + hasattr(go, "FigureWidget") and output_type == go.FigureWidget + ): cls = go.FigureWidget else: - raise ValueError(""" + raise ValueError( + """ Invalid output type: {output_type} - Must be one of: 'Figure', 'FigureWidget'""") + Must be one of: 'Figure', 'FigureWidget'""" + ) return cls diff --git a/packages/python/plotly/plotly/io/base_renderers.py b/packages/python/plotly/plotly/io/base_renderers.py index 6042296a644..c47ffc4ca90 100644 --- a/packages/python/plotly/plotly/io/base_renderers.py +++ b/packages/python/plotly/plotly/io/base_renderers.py @@ -1,5 +1,16 @@ from ._base_renderers import ( - MimetypeRenderer, PlotlyRenderer, JsonRenderer, ImageRenderer, - PngRenderer, SvgRenderer, PdfRenderer, JpegRenderer, HtmlRenderer, - ColabRenderer, KaggleRenderer, NotebookRenderer, ExternalRenderer, - BrowserRenderer) + MimetypeRenderer, + PlotlyRenderer, + JsonRenderer, + ImageRenderer, + PngRenderer, + SvgRenderer, + PdfRenderer, + JpegRenderer, + HtmlRenderer, + ColabRenderer, + KaggleRenderer, + NotebookRenderer, + ExternalRenderer, + BrowserRenderer, +) diff --git a/packages/python/plotly/plotly/io/orca.py b/packages/python/plotly/plotly/io/orca.py index 20ad7d4a36f..f774dc1aaf5 100644 --- a/packages/python/plotly/plotly/io/orca.py +++ b/packages/python/plotly/plotly/io/orca.py @@ -4,4 +4,5 @@ validate_executable, reset_status, config, - status) + status, +) diff --git a/packages/python/plotly/plotly/matplotlylib/mpltools.py b/packages/python/plotly/plotly/matplotlylib/mpltools.py index 02bd17fa007..2a432bd68be 100644 --- a/packages/python/plotly/plotly/matplotlylib/mpltools.py +++ b/packages/python/plotly/plotly/matplotlylib/mpltools.py @@ -20,18 +20,18 @@ def check_bar_match(old_bar, new_bar): """ tests = [] - tests += new_bar['orientation'] == old_bar['orientation'], - tests += new_bar['facecolor'] == old_bar['facecolor'], - if new_bar['orientation'] == 'v': - new_width = new_bar['x1'] - new_bar['x0'] - old_width = old_bar['x1'] - old_bar['x0'] - tests += new_width - old_width < 0.000001, - tests += new_bar['y0'] == old_bar['y0'], - elif new_bar['orientation'] == 'h': - new_height = new_bar['y1'] - new_bar['y0'] - old_height = old_bar['y1'] - old_bar['y0'] - tests += new_height - old_height < 0.000001, - tests += new_bar['x0'] == old_bar['x0'], + tests += (new_bar["orientation"] == old_bar["orientation"],) + tests += (new_bar["facecolor"] == old_bar["facecolor"],) + if new_bar["orientation"] == "v": + new_width = new_bar["x1"] - new_bar["x0"] + old_width = old_bar["x1"] - old_bar["x0"] + tests += (new_width - old_width < 0.000001,) + tests += (new_bar["y0"] == old_bar["y0"],) + elif new_bar["orientation"] == "h": + new_height = new_bar["y1"] - new_bar["y0"] + old_height = old_bar["y1"] - old_bar["y0"] + tests += (new_height - old_height < 0.000001,) + tests += (new_bar["x0"] == old_bar["x0"],) if all(tests): return True else: @@ -58,28 +58,28 @@ def convert_dash(mpl_dash): if mpl_dash in DASH_MAP: return DASH_MAP[mpl_dash] else: - dash_array = mpl_dash.split(',') + dash_array = mpl_dash.split(",") - if (len(dash_array) < 2): - return 'solid' + if len(dash_array) < 2: + return "solid" # Catch the exception where the off length is zero, in case # matplotlib 'solid' changes from '10,0' to 'N,0' - if (math.isclose(float(dash_array[1]), 0.)): - return 'solid' + if math.isclose(float(dash_array[1]), 0.0): + return "solid" # If we can't find the dash pattern in the map, convert it # into custom values in px, e.g. '7,5' -> '7px,5px' - dashpx = ','.join([x + 'px' for x in dash_array]) + dashpx = ",".join([x + "px" for x in dash_array]) # TODO: rewrite the convert_dash code # only strings 'solid', 'dashed', etc allowed - if dashpx == '7.4px,3.2px': - dashpx = 'dashed' - elif dashpx == '12.8px,3.2px,2.0px,3.2px': - dashpx = 'dashdot' - elif dashpx == '2.0px,3.3px': - dashpx = 'dotted' + if dashpx == "7.4px,3.2px": + dashpx = "dashed" + elif dashpx == "12.8px,3.2px,2.0px,3.2px": + dashpx = "dashdot" + elif dashpx == "2.0px,3.3px": + dashpx = "dotted" return dashpx @@ -102,7 +102,7 @@ def convert_symbol(mpl_symbol): elif mpl_symbol in SYMBOL_MAP: return SYMBOL_MAP[mpl_symbol] else: - return 'circle' # default + return "circle" # default def hex_to_rgb(value): @@ -117,9 +117,9 @@ def hex_to_rgb(value): '#FFFFFF' --> (255, 255, 255) """ - value = value.lstrip('#') + value = value.lstrip("#") lv = len(value) - return tuple(int(value[i:i + lv // 3], 16) for i in range(0, lv, lv // 3)) + return tuple(int(value[i : i + lv // 3], 16) for i in range(0, lv, lv // 3)) def merge_color_and_opacity(color, opacity): @@ -136,10 +136,10 @@ def merge_color_and_opacity(color, opacity): rgb_tup = hex_to_rgb(color) if opacity is None: - return 'rgb {}'.format(rgb_tup) + return "rgb {}".format(rgb_tup) rgba_tup = rgb_tup + (opacity,) - return 'rgba {}'.format(rgba_tup) + return "rgba {}".format(rgba_tup) def convert_va(mpl_va): @@ -182,10 +182,10 @@ def convert_x_domain(mpl_plot_bounds, mpl_max_x_bounds): ** these are all specified in mpl figure coordinates """ - mpl_x_dom = [mpl_plot_bounds[0], mpl_plot_bounds[0]+mpl_plot_bounds[2]] - plotting_width = (mpl_max_x_bounds[1]-mpl_max_x_bounds[0]) - x0 = (mpl_x_dom[0]-mpl_max_x_bounds[0])/plotting_width - x1 = (mpl_x_dom[1]-mpl_max_x_bounds[0])/plotting_width + mpl_x_dom = [mpl_plot_bounds[0], mpl_plot_bounds[0] + mpl_plot_bounds[2]] + plotting_width = mpl_max_x_bounds[1] - mpl_max_x_bounds[0] + x0 = (mpl_x_dom[0] - mpl_max_x_bounds[0]) / plotting_width + x1 = (mpl_x_dom[1] - mpl_max_x_bounds[0]) / plotting_width return [x0, x1] @@ -213,10 +213,10 @@ def convert_y_domain(mpl_plot_bounds, mpl_max_y_bounds): ** these are all specified in mpl figure coordinates """ - mpl_y_dom = [mpl_plot_bounds[1], mpl_plot_bounds[1]+mpl_plot_bounds[3]] - plotting_height = (mpl_max_y_bounds[1]-mpl_max_y_bounds[0]) - y0 = (mpl_y_dom[0]-mpl_max_y_bounds[0])/plotting_height - y1 = (mpl_y_dom[1]-mpl_max_y_bounds[0])/plotting_height + mpl_y_dom = [mpl_plot_bounds[1], mpl_plot_bounds[1] + mpl_plot_bounds[3]] + plotting_height = mpl_max_y_bounds[1] - mpl_max_y_bounds[0] + y0 = (mpl_y_dom[0] - mpl_max_y_bounds[0]) / plotting_height + y1 = (mpl_y_dom[1] - mpl_max_y_bounds[0]) / plotting_height return [y0, y1] @@ -234,11 +234,11 @@ def display_to_paper(x, y, layout): figheight are in inches and dpi are the dots per inch resolution. """ - num_x = x - layout['margin']['l'] - den_x = layout['width'] - (layout['margin']['l'] + layout['margin']['r']) - num_y = y - layout['margin']['b'] - den_y = layout['height'] - (layout['margin']['b'] + layout['margin']['t']) - return num_x/den_x, num_y/den_y + num_x = x - layout["margin"]["l"] + den_x = layout["width"] - (layout["margin"]["l"] + layout["margin"]["r"]) + num_y = y - layout["margin"]["b"] + den_y = layout["height"] - (layout["margin"]["b"] + layout["margin"]["t"]) + return num_x / den_x, num_y / den_y def get_axes_bounds(fig): @@ -259,16 +259,16 @@ def get_axes_bounds(fig): for axes_obj in fig.get_axes(): bounds = axes_obj.get_position().bounds x_min.append(bounds[0]) - x_max.append(bounds[0]+bounds[2]) + x_max.append(bounds[0] + bounds[2]) y_min.append(bounds[1]) - y_max.append(bounds[1]+bounds[3]) + y_max.append(bounds[1] + bounds[3]) x_min, y_min, x_max, y_max = min(x_min), min(y_min), max(x_max), max(y_max) return (x_min, x_max), (y_min, y_max) def get_axis_mirror(main_spine, mirror_spine): if main_spine and mirror_spine: - return 'ticks' + return "ticks" elif main_spine and not mirror_spine: return False elif not main_spine and mirror_spine: @@ -281,9 +281,9 @@ def get_bar_gap(bar_starts, bar_ends, tol=1e-10): if len(bar_starts) == len(bar_ends) and len(bar_starts) > 1: sides1 = bar_starts[1:] sides2 = bar_ends[:-1] - gaps = [s2-s1 for s2, s1 in zip(sides1, sides2)] + gaps = [s2 - s1 for s2, s1 in zip(sides1, sides2)] gap0 = gaps[0] - uniform = all([abs(gap0-gap) < tol for gap in gaps]) + uniform = all([abs(gap0 - gap) < tol for gap in gaps]) if uniform: return gap0 @@ -291,11 +291,9 @@ def get_bar_gap(bar_starts, bar_ends, tol=1e-10): def convert_rgba_array(color_list): clean_color_list = list() for c in color_list: - clean_color_list += [(dict(r=int(c[0]*255), - g=int(c[1]*255), - b=int(c[2]*255), - a=c[3] - ))] + clean_color_list += [ + (dict(r=int(c[0] * 255), g=int(c[1] * 255), b=int(c[2] * 255), a=c[3])) + ] plotly_colors = list() for rgba in clean_color_list: plotly_colors += ["rgba({r},{g},{b},{a})".format(**rgba)] @@ -314,6 +312,7 @@ def convert_path_array(path_array): else: return symbols + def convert_linewidth_array(width_array): if len(width_array) == 1: return width_array[0] @@ -330,14 +329,14 @@ def convert_size_array(size_array): def get_markerstyle_from_collection(props): - markerstyle=dict( + markerstyle = dict( alpha=None, - facecolor=convert_rgba_array(props['styles']['facecolor']), - marker=convert_path_array(props['paths']), - edgewidth=convert_linewidth_array(props['styles']['linewidth']), + facecolor=convert_rgba_array(props["styles"]["facecolor"]), + marker=convert_path_array(props["paths"]), + edgewidth=convert_linewidth_array(props["styles"]["linewidth"]), # markersize=convert_size_array(props['styles']['size']), # TODO! - markersize=convert_size_array(props['mplobj'].get_sizes()), - edgecolor=convert_rgba_array(props['styles']['edgecolor']) + markersize=convert_size_array(props["mplobj"].get_sizes()), + edgecolor=convert_rgba_array(props["styles"]["edgecolor"]), ) return markerstyle @@ -361,6 +360,7 @@ def get_rect_ymax(data): """Find maximum y value from four (x,y) vertices.""" return max(data[0][1], data[1][1], data[2][1], data[3][1]) + def get_spine_visible(ax, spine_key): """Return some spine parameters for the spine, `spine_key`.""" spine = ax.spines[spine_key] @@ -377,7 +377,7 @@ def get_spine_visible(ax, spine_key): elif not ax_frame_on and not spine_frame_like: return True # we've already checked for that it's visible. else: - return False # oh man, and i thought we exhausted the options... + return False # oh man, and i thought we exhausted the options... def is_bar(bar_containers, **props): @@ -385,7 +385,7 @@ def is_bar(bar_containers, **props): # is this patch in a bar container? for container in bar_containers: - if props['mplobj'] in container: + if props["mplobj"] in container: return True return False @@ -402,19 +402,20 @@ def make_bar(**props): """ return { - 'bar': props['mplobj'], - 'x0': get_rect_xmin(props['data']), - 'y0': get_rect_ymin(props['data']), - 'x1': get_rect_xmax(props['data']), - 'y1': get_rect_ymax(props['data']), - 'alpha': props['style']['alpha'], - 'edgecolor': props['style']['edgecolor'], - 'facecolor': props['style']['facecolor'], - 'edgewidth': props['style']['edgewidth'], - 'dasharray': props['style']['dasharray'], - 'zorder': props['style']['zorder'] + "bar": props["mplobj"], + "x0": get_rect_xmin(props["data"]), + "y0": get_rect_ymin(props["data"]), + "x1": get_rect_xmax(props["data"]), + "y1": get_rect_ymax(props["data"]), + "alpha": props["style"]["alpha"], + "edgecolor": props["style"]["edgecolor"], + "facecolor": props["style"]["facecolor"], + "edgewidth": props["style"]["edgewidth"], + "dasharray": props["style"]["dasharray"], + "zorder": props["style"]["zorder"], } + def prep_ticks(ax, index, ax_type, props): """Prepare axis obj belonging to axes obj. @@ -426,97 +427,103 @@ def prep_ticks(ax, index, ax_type, props): """ axis_dict = dict() - if ax_type == 'x': + if ax_type == "x": axis = ax.get_xaxis() - elif ax_type == 'y': + elif ax_type == "y": axis = ax.get_yaxis() else: - return dict() # whoops! + return dict() # whoops! - scale = props['axes'][index]['scale'] - if scale == 'linear': + scale = props["axes"][index]["scale"] + if scale == "linear": # get tick location information try: - tickvalues = props['axes'][index]['tickvalues'] + tickvalues = props["axes"][index]["tickvalues"] tick0 = tickvalues[0] - dticks = [round(tickvalues[i]-tickvalues[i-1], 12) - for i in range(1, len(tickvalues) - 1)] - if all([dticks[i] == dticks[i-1] - for i in range(1, len(dticks) - 1)]): + dticks = [ + round(tickvalues[i] - tickvalues[i - 1], 12) + for i in range(1, len(tickvalues) - 1) + ] + if all([dticks[i] == dticks[i - 1] for i in range(1, len(dticks) - 1)]): dtick = tickvalues[1] - tickvalues[0] else: - warnings.warn("'linear' {0}-axis tick spacing not even, " - "ignoring mpl tick formatting.".format(ax_type)) + warnings.warn( + "'linear' {0}-axis tick spacing not even, " + "ignoring mpl tick formatting.".format(ax_type) + ) raise TypeError except (IndexError, TypeError): - axis_dict['nticks'] = props['axes'][index]['nticks'] + axis_dict["nticks"] = props["axes"][index]["nticks"] else: - axis_dict['tick0'] = tick0 - axis_dict['dtick'] = dtick - axis_dict['tickmode'] = None - elif scale == 'log': + axis_dict["tick0"] = tick0 + axis_dict["dtick"] = dtick + axis_dict["tickmode"] = None + elif scale == "log": try: - axis_dict['tick0'] = props['axes'][index]['tickvalues'][0] - axis_dict['dtick'] = props['axes'][index]['tickvalues'][1] - \ - props['axes'][index]['tickvalues'][0] - axis_dict['tickmode'] = None + axis_dict["tick0"] = props["axes"][index]["tickvalues"][0] + axis_dict["dtick"] = ( + props["axes"][index]["tickvalues"][1] + - props["axes"][index]["tickvalues"][0] + ) + axis_dict["tickmode"] = None except (IndexError, TypeError): - axis_dict = dict(nticks=props['axes'][index]['nticks']) + axis_dict = dict(nticks=props["axes"][index]["nticks"]) base = axis.get_transform().base if base == 10: - if ax_type == 'x': - axis_dict['range'] = [math.log10(props['xlim'][0]), - math.log10(props['xlim'][1])] - elif ax_type == 'y': - axis_dict['range'] = [math.log10(props['ylim'][0]), - math.log10(props['ylim'][1])] + if ax_type == "x": + axis_dict["range"] = [ + math.log10(props["xlim"][0]), + math.log10(props["xlim"][1]), + ] + elif ax_type == "y": + axis_dict["range"] = [ + math.log10(props["ylim"][0]), + math.log10(props["ylim"][1]), + ] else: - axis_dict = dict(range=None, type='linear') - warnings.warn("Converted non-base10 {0}-axis log scale to 'linear'" - "".format(ax_type)) + axis_dict = dict(range=None, type="linear") + warnings.warn( + "Converted non-base10 {0}-axis log scale to 'linear'" "".format(ax_type) + ) else: return dict() # get tick label formatting information formatter = axis.get_major_formatter().__class__.__name__ - if ax_type == 'x' and 'DateFormatter' in formatter: - axis_dict['type'] = 'date' + if ax_type == "x" and "DateFormatter" in formatter: + axis_dict["type"] = "date" try: - axis_dict['tick0'] = mpl_dates_to_datestrings( - axis_dict['tick0'], formatter - ) + axis_dict["tick0"] = mpl_dates_to_datestrings(axis_dict["tick0"], formatter) except KeyError: pass finally: - axis_dict.pop('dtick', None) - axis_dict.pop('tickmode', None) - axis_dict['range'] = mpl_dates_to_datestrings( - props['xlim'], formatter - ) + axis_dict.pop("dtick", None) + axis_dict.pop("tickmode", None) + axis_dict["range"] = mpl_dates_to_datestrings(props["xlim"], formatter) - if formatter == 'LogFormatterMathtext': - axis_dict['exponentformat'] = 'e' + if formatter == "LogFormatterMathtext": + axis_dict["exponentformat"] = "e" return axis_dict def prep_xy_axis(ax, props, x_bounds, y_bounds): xaxis = dict( - type=props['axes'][0]['scale'], - range=list(props['xlim']), - showgrid=props['axes'][0]['grid']['gridOn'], - domain=convert_x_domain(props['bounds'], x_bounds), - side=props['axes'][0]['position'], - tickfont=dict(size=props['axes'][0]['fontsize']) + type=props["axes"][0]["scale"], + range=list(props["xlim"]), + showgrid=props["axes"][0]["grid"]["gridOn"], + domain=convert_x_domain(props["bounds"], x_bounds), + side=props["axes"][0]["position"], + tickfont=dict(size=props["axes"][0]["fontsize"]), ) - xaxis.update(prep_ticks(ax, 0, 'x', props)) + xaxis.update(prep_ticks(ax, 0, "x", props)) yaxis = dict( - type=props['axes'][1]['scale'], - range=list(props['ylim']), - showgrid=props['axes'][1]['grid']['gridOn'], - domain=convert_y_domain(props['bounds'], y_bounds), - side=props['axes'][1]['position'], - tickfont=dict(size=props['axes'][1]['fontsize']) + type=props["axes"][1]["scale"], + range=list(props["ylim"]), + showgrid=props["axes"][1]["grid"]["gridOn"], + domain=convert_y_domain(props["bounds"], y_bounds), + side=props["axes"][1]["position"], + tickfont=dict(size=props["axes"][1]["fontsize"]), ) - yaxis.update(prep_ticks(ax, 1, 'y', props)) + yaxis.update(prep_ticks(ax, 1, "y", props)) return xaxis, yaxis @@ -534,9 +541,7 @@ def mpl_dates_to_datestrings(dates, mpl_formatter): # since the epoch (1970-01-01T00:00:00+00:00) if mpl_formatter == "TimeSeries_DateFormatter": try: - dates = matplotlib.dates.epoch2num( - [date*24*60*60 for date in dates] - ) + dates = matplotlib.dates.epoch2num([date * 24 * 60 * 60 for date in dates]) dates = matplotlib.dates.num2date(dates, tz=pytz.utc) except: return _dates @@ -550,49 +555,47 @@ def mpl_dates_to_datestrings(dates, mpl_formatter): except: return _dates - time_stings = [' '.join(date.isoformat().split('+')[0].split('T')) - for date in dates] + time_stings = [ + " ".join(date.isoformat().split("+")[0].split("T")) for date in dates + ] return time_stings + # dashed is dash in matplotlib DASH_MAP = { - '10,0': 'solid', - '6,6': 'dash', - '2,2': 'circle', - '4,4,2,4': 'dashdot', - 'none': 'solid', - '7.4,3.2': 'dash', + "10,0": "solid", + "6,6": "dash", + "2,2": "circle", + "4,4,2,4": "dashdot", + "none": "solid", + "7.4,3.2": "dash", } PATH_MAP = { - ('M', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'C', 'Z'): 'o', - ('M', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'Z'): '*', - ('M', 'L', 'L', 'L', 'L', 'L', 'L', 'L', 'Z'): '8', - ('M', 'L', 'L', 'L', 'L', 'L', 'Z'): 'h', - ('M', 'L', 'L', 'L', 'L', 'Z'): 'p', - ('M', 'L', 'M', 'L', 'M', 'L'): '1', - ('M', 'L', 'L', 'L', 'Z'): 's', - ('M', 'L', 'M', 'L'): '+', - ('M', 'L', 'L', 'Z'): '^', - ('M', 'L'): '|' + ("M", "C", "C", "C", "C", "C", "C", "C", "C", "Z"): "o", + ("M", "L", "L", "L", "L", "L", "L", "L", "L", "L", "Z"): "*", + ("M", "L", "L", "L", "L", "L", "L", "L", "Z"): "8", + ("M", "L", "L", "L", "L", "L", "Z"): "h", + ("M", "L", "L", "L", "L", "Z"): "p", + ("M", "L", "M", "L", "M", "L"): "1", + ("M", "L", "L", "L", "Z"): "s", + ("M", "L", "M", "L"): "+", + ("M", "L", "L", "Z"): "^", + ("M", "L"): "|", } SYMBOL_MAP = { - 'o': 'circle', - 'v': 'triangle-down', - '^': 'triangle-up', - '<': 'triangle-left', - '>': 'triangle-right', - 's': 'square', - '+': 'cross', - 'x': 'x', - '*': 'star', - 'D': 'diamond', - 'd': 'diamond', + "o": "circle", + "v": "triangle-down", + "^": "triangle-up", + "<": "triangle-left", + ">": "triangle-right", + "s": "square", + "+": "cross", + "x": "x", + "*": "star", + "D": "diamond", + "d": "diamond", } -VA_MAP = { - 'center': 'middle', - 'baseline': 'bottom', - 'top': 'top' -} +VA_MAP = {"center": "middle", "baseline": "bottom", "top": "top"} diff --git a/packages/python/plotly/plotly/matplotlylib/renderer.py b/packages/python/plotly/plotly/matplotlylib/renderer.py index 3d5897a9ebd..1a4ef289097 100644 --- a/packages/python/plotly/plotly/matplotlylib/renderer.py +++ b/packages/python/plotly/plotly/matplotlylib/renderer.py @@ -18,7 +18,9 @@ # Warning format def warning_on_one_line(msg, category, filename, lineno, file=None, line=None): - return '%s:%s: %s:\n\n%s\n\n' % (filename, lineno, category.__name__, msg) + return "%s:%s: %s:\n\n%s\n\n" % (filename, lineno, category.__name__, msg) + + warnings.formatwarning = warning_on_one_line @@ -40,6 +42,7 @@ class PlotlyRenderer(Renderer): exporter.run(fig) # ... et voila """ + def __init__(self): """Initialize PlotlyRenderer obj. @@ -78,21 +81,21 @@ def open_figure(self, fig, props): """ self.msg += "Opening figure\n" self.mpl_fig = fig - self.plotly_fig['layout'] = go.Layout( - width=int(props['figwidth'] * props['dpi']), - height=int(props['figheight'] * props['dpi']), + self.plotly_fig["layout"] = go.Layout( + width=int(props["figwidth"] * props["dpi"]), + height=int(props["figheight"] * props["dpi"]), autosize=False, - hovermode='closest') + hovermode="closest", + ) self.mpl_x_bounds, self.mpl_y_bounds = mpltools.get_axes_bounds(fig) margin = go.layout.Margin( - l=int(self.mpl_x_bounds[0] * self.plotly_fig['layout']['width']), - r=int( - (1-self.mpl_x_bounds[1]) * self.plotly_fig['layout']['width']), - t=int((1-self.mpl_y_bounds[1]) * self.plotly_fig['layout'][ - 'height']), - b=int(self.mpl_y_bounds[0] * self.plotly_fig['layout']['height']), - pad=0) - self.plotly_fig['layout']['margin'] = margin + l=int(self.mpl_x_bounds[0] * self.plotly_fig["layout"]["width"]), + r=int((1 - self.mpl_x_bounds[1]) * self.plotly_fig["layout"]["width"]), + t=int((1 - self.mpl_y_bounds[1]) * self.plotly_fig["layout"]["height"]), + b=int(self.mpl_y_bounds[0] * self.plotly_fig["layout"]["height"]), + pad=0, + ) + self.plotly_fig["layout"]["margin"] = margin def close_figure(self, fig): """Closes figure by cleaning up data and layout dictionaries. @@ -107,7 +110,7 @@ def close_figure(self, fig): fig -- a matplotlib.figure.Figure object. """ - self.plotly_fig['layout']['showlegend'] = False + self.plotly_fig["layout"]["showlegend"] = False self.msg += "Closing figure\n" def open_axes(self, ax, props): @@ -143,46 +146,44 @@ def open_axes(self, ax, props): """ self.msg += " Opening axes\n" self.current_mpl_ax = ax - self.bar_containers = [c for c in ax.containers # empty is OK - if c.__class__.__name__ == 'BarContainer'] + self.bar_containers = [ + c + for c in ax.containers # empty is OK + if c.__class__.__name__ == "BarContainer" + ] self.current_bars = [] self.axis_ct += 1 # set defaults in axes xaxis = go.layout.XAxis( - anchor='y{0}'.format(self.axis_ct), - zeroline=False, - ticks='inside') + anchor="y{0}".format(self.axis_ct), zeroline=False, ticks="inside" + ) yaxis = go.layout.YAxis( - anchor='x{0}'.format(self.axis_ct), - zeroline=False, - ticks='inside') + anchor="x{0}".format(self.axis_ct), zeroline=False, ticks="inside" + ) # update defaults with things set in mpl mpl_xaxis, mpl_yaxis = mpltools.prep_xy_axis( - ax=ax, - props=props, - x_bounds=self.mpl_x_bounds, - y_bounds=self.mpl_y_bounds) + ax=ax, props=props, x_bounds=self.mpl_x_bounds, y_bounds=self.mpl_y_bounds + ) xaxis.update(mpl_xaxis) yaxis.update(mpl_yaxis) - bottom_spine = mpltools.get_spine_visible(ax, 'bottom') - top_spine = mpltools.get_spine_visible(ax, 'top') - left_spine = mpltools.get_spine_visible(ax, 'left') - right_spine = mpltools.get_spine_visible(ax, 'right') - xaxis['mirror'] = mpltools.get_axis_mirror(bottom_spine, top_spine) - yaxis['mirror'] = mpltools.get_axis_mirror(left_spine, right_spine) - xaxis['showline'] = bottom_spine - yaxis['showline'] = top_spine + bottom_spine = mpltools.get_spine_visible(ax, "bottom") + top_spine = mpltools.get_spine_visible(ax, "top") + left_spine = mpltools.get_spine_visible(ax, "left") + right_spine = mpltools.get_spine_visible(ax, "right") + xaxis["mirror"] = mpltools.get_axis_mirror(bottom_spine, top_spine) + yaxis["mirror"] = mpltools.get_axis_mirror(left_spine, right_spine) + xaxis["showline"] = bottom_spine + yaxis["showline"] = top_spine # put axes in our figure - self.plotly_fig['layout']['xaxis{0}'.format(self.axis_ct)] = xaxis - self.plotly_fig['layout']['yaxis{0}'.format(self.axis_ct)] = yaxis + self.plotly_fig["layout"]["xaxis{0}".format(self.axis_ct)] = xaxis + self.plotly_fig["layout"]["yaxis{0}".format(self.axis_ct)] = yaxis # let all subsequent dates be handled properly if required - if 'type' in dir(xaxis) and xaxis['type'] == 'date': + if "type" in dir(xaxis) and xaxis["type"] == "date": self.x_is_mpl_date = True - def close_axes(self, ax): """Close the axes object and clean up. @@ -204,8 +205,13 @@ def draw_bars(self, bars): # sort bars according to bar containers mpl_traces = [] for container in self.bar_containers: - mpl_traces.append([bar_props for bar_props in self.current_bars - if bar_props['mplobj'] in container]) + mpl_traces.append( + [ + bar_props + for bar_props in self.current_bars + if bar_props["mplobj"] in container + ] + ) for trace in mpl_traces: self.draw_bar(trace) @@ -223,80 +229,88 @@ def draw_bar(self, coll): """ tol = 1e-10 trace = [mpltools.make_bar(**bar_props) for bar_props in coll] - widths = [bar_props['x1'] - bar_props['x0'] for bar_props in trace] - heights = [bar_props['y1'] - bar_props['y0'] for bar_props in trace] - vertical = abs( - sum(widths[0] - widths[iii] for iii in range(len(widths))) - ) < tol - horizontal = abs( - sum(heights[0] - heights[iii] for iii in range(len(heights))) - ) < tol + widths = [bar_props["x1"] - bar_props["x0"] for bar_props in trace] + heights = [bar_props["y1"] - bar_props["y0"] for bar_props in trace] + vertical = abs(sum(widths[0] - widths[iii] for iii in range(len(widths)))) < tol + horizontal = ( + abs(sum(heights[0] - heights[iii] for iii in range(len(heights)))) < tol + ) if vertical and horizontal: # Check for monotonic x. Can't both be true! - x_zeros = [bar_props['x0'] for bar_props in trace] - if all((x_zeros[iii + 1] > x_zeros[iii] - for iii in range(len(x_zeros[:-1])))): - orientation = 'v' + x_zeros = [bar_props["x0"] for bar_props in trace] + if all( + (x_zeros[iii + 1] > x_zeros[iii] for iii in range(len(x_zeros[:-1]))) + ): + orientation = "v" else: - orientation = 'h' + orientation = "h" elif vertical: - orientation = 'v' + orientation = "v" else: - orientation = 'h' - if orientation == 'v': + orientation = "h" + if orientation == "v": self.msg += " Attempting to draw a vertical bar chart\n" - old_heights = [bar_props['y1'] for bar_props in trace] + old_heights = [bar_props["y1"] for bar_props in trace] for bar in trace: - bar['y0'], bar['y1'] = 0, bar['y1'] - bar['y0'] - new_heights = [bar_props['y1'] for bar_props in trace] + bar["y0"], bar["y1"] = 0, bar["y1"] - bar["y0"] + new_heights = [bar_props["y1"] for bar_props in trace] # check if we're stacked or not... for old, new in zip(old_heights, new_heights): if abs(old - new) > tol: - self.plotly_fig['layout']['barmode'] = 'stack' - self.plotly_fig['layout']['hovermode'] = 'x' - x = [bar['x0'] + (bar['x1'] - bar['x0']) / 2 for bar in trace] - y = [bar['y1'] for bar in trace] - bar_gap = mpltools.get_bar_gap([bar['x0'] for bar in trace], - [bar['x1'] for bar in trace]) + self.plotly_fig["layout"]["barmode"] = "stack" + self.plotly_fig["layout"]["hovermode"] = "x" + x = [bar["x0"] + (bar["x1"] - bar["x0"]) / 2 for bar in trace] + y = [bar["y1"] for bar in trace] + bar_gap = mpltools.get_bar_gap( + [bar["x0"] for bar in trace], [bar["x1"] for bar in trace] + ) if self.x_is_mpl_date: - x = [bar['x0'] for bar in trace] - formatter = (self.current_mpl_ax.get_xaxis() - .get_major_formatter().__class__.__name__) + x = [bar["x0"] for bar in trace] + formatter = ( + self.current_mpl_ax.get_xaxis() + .get_major_formatter() + .__class__.__name__ + ) x = mpltools.mpl_dates_to_datestrings(x, formatter) else: self.msg += " Attempting to draw a horizontal bar chart\n" - old_rights = [bar_props['x1'] for bar_props in trace] + old_rights = [bar_props["x1"] for bar_props in trace] for bar in trace: - bar['x0'], bar['x1'] = 0, bar['x1'] - bar['x0'] - new_rights = [bar_props['x1'] for bar_props in trace] + bar["x0"], bar["x1"] = 0, bar["x1"] - bar["x0"] + new_rights = [bar_props["x1"] for bar_props in trace] # check if we're stacked or not... for old, new in zip(old_rights, new_rights): if abs(old - new) > tol: - self.plotly_fig['layout']['barmode'] = 'stack' - self.plotly_fig['layout']['hovermode'] = 'y' - x = [bar['x1'] for bar in trace] - y = [bar['y0'] + (bar['y1'] - bar['y0']) / 2 for bar in trace] - bar_gap = mpltools.get_bar_gap([bar['y0'] for bar in trace], - [bar['y1'] for bar in trace]) + self.plotly_fig["layout"]["barmode"] = "stack" + self.plotly_fig["layout"]["hovermode"] = "y" + x = [bar["x1"] for bar in trace] + y = [bar["y0"] + (bar["y1"] - bar["y0"]) / 2 for bar in trace] + bar_gap = mpltools.get_bar_gap( + [bar["y0"] for bar in trace], [bar["y1"] for bar in trace] + ) bar = go.Bar( orientation=orientation, x=x, y=y, - xaxis='x{0}'.format(self.axis_ct), - yaxis='y{0}'.format(self.axis_ct), - opacity=trace[0]['alpha'], # TODO: get all alphas if array? + xaxis="x{0}".format(self.axis_ct), + yaxis="y{0}".format(self.axis_ct), + opacity=trace[0]["alpha"], # TODO: get all alphas if array? marker=go.bar.Marker( - color=trace[0]['facecolor'], # TODO: get all - line=dict(width=trace[0]['edgewidth']))) # TODO ditto - if len(bar['x']) > 1: + color=trace[0]["facecolor"], # TODO: get all + line=dict(width=trace[0]["edgewidth"]), + ), + ) # TODO ditto + if len(bar["x"]) > 1: self.msg += " Heck yeah, I drew that bar chart\n" self.plotly_fig.add_trace(bar), if bar_gap is not None: - self.plotly_fig['layout']['bargap'] = bar_gap + self.plotly_fig["layout"]["bargap"] = bar_gap else: self.msg += " Bar chart not drawn\n" - warnings.warn('found box chart data with length <= 1, ' - 'assuming data redundancy, not plotting.') + warnings.warn( + "found box chart data with length <= 1, " + "assuming data redundancy, not plotting." + ) def draw_marked_line(self, **props): """Create a data dict for a line obj. @@ -333,63 +347,70 @@ def draw_marked_line(self, **props): """ self.msg += " Attempting to draw a line " line, marker = {}, {} - if props['linestyle'] and props['markerstyle']: + if props["linestyle"] and props["markerstyle"]: self.msg += "... with both lines+markers\n" mode = "lines+markers" - elif props['linestyle']: + elif props["linestyle"]: self.msg += "... with just lines\n" mode = "lines" - elif props['markerstyle']: + elif props["markerstyle"]: self.msg += "... with just markers\n" mode = "markers" - if props['linestyle']: - color = \ - mpltools.merge_color_and_opacity(props['linestyle']['color'], - props['linestyle']['alpha']) + if props["linestyle"]: + color = mpltools.merge_color_and_opacity( + props["linestyle"]["color"], props["linestyle"]["alpha"] + ) - #print(mpltools.convert_dash(props['linestyle']['dasharray'])) + # print(mpltools.convert_dash(props['linestyle']['dasharray'])) line = go.scatter.Line( color=color, - width=props['linestyle']['linewidth'], - dash=mpltools.convert_dash(props['linestyle']['dasharray']) + width=props["linestyle"]["linewidth"], + dash=mpltools.convert_dash(props["linestyle"]["dasharray"]), ) - if props['markerstyle']: + if props["markerstyle"]: marker = go.scatter.Marker( - opacity=props['markerstyle']['alpha'], - color=props['markerstyle']['facecolor'], - symbol=mpltools.convert_symbol(props['markerstyle']['marker']), - size=props['markerstyle']['markersize'], + opacity=props["markerstyle"]["alpha"], + color=props["markerstyle"]["facecolor"], + symbol=mpltools.convert_symbol(props["markerstyle"]["marker"]), + size=props["markerstyle"]["markersize"], line=dict( - color=props['markerstyle']['edgecolor'], - width=props['markerstyle']['edgewidth'] - ) + color=props["markerstyle"]["edgecolor"], + width=props["markerstyle"]["edgewidth"], + ), ) - if props['coordinates'] == 'data': + if props["coordinates"] == "data": marked_line = go.Scatter( mode=mode, - name=(str(props['label']) if - isinstance(props['label'], six.string_types) else - props['label']), - x=[xy_pair[0] for xy_pair in props['data']], - y=[xy_pair[1] for xy_pair in props['data']], - xaxis='x{0}'.format(self.axis_ct), - yaxis='y{0}'.format(self.axis_ct), + name=( + str(props["label"]) + if isinstance(props["label"], six.string_types) + else props["label"] + ), + x=[xy_pair[0] for xy_pair in props["data"]], + y=[xy_pair[1] for xy_pair in props["data"]], + xaxis="x{0}".format(self.axis_ct), + yaxis="y{0}".format(self.axis_ct), line=line, - marker=marker) + marker=marker, + ) if self.x_is_mpl_date: - formatter = (self.current_mpl_ax.get_xaxis() - .get_major_formatter().__class__.__name__) - marked_line['x'] = mpltools.mpl_dates_to_datestrings( - marked_line['x'], formatter + formatter = ( + self.current_mpl_ax.get_xaxis() + .get_major_formatter() + .__class__.__name__ + ) + marked_line["x"] = mpltools.mpl_dates_to_datestrings( + marked_line["x"], formatter ) self.plotly_fig.add_trace(marked_line), self.msg += " Heck yeah, I drew that line\n" else: - self.msg += " Line didn't have 'data' coordinates, " \ - "not drawing\n" - warnings.warn("Bummer! Plotly can currently only draw Line2D " - "objects from matplotlib that are in 'data' " - "coordinates!") + self.msg += " Line didn't have 'data' coordinates, " "not drawing\n" + warnings.warn( + "Bummer! Plotly can currently only draw Line2D " + "objects from matplotlib that are in 'data' " + "coordinates!" + ) def draw_image(self, **props): """Draw image. @@ -399,9 +420,11 @@ def draw_image(self, **props): """ self.msg += " Attempting to draw image\n" self.msg += " Not drawing image\n" - warnings.warn("Aw. Snap! You're gonna have to hold off on " - "the selfies for now. Plotly can't import " - "images from matplotlib yet!") + warnings.warn( + "Aw. Snap! You're gonna have to hold off on " + "the selfies for now. Plotly can't import " + "images from matplotlib yet!" + ) def draw_path_collection(self, **props): """Add a path collection to data list as a scatter plot. @@ -434,24 +457,25 @@ def draw_path_collection(self, **props): """ self.msg += " Attempting to draw a path collection\n" - if props['offset_coordinates'] is 'data': + if props["offset_coordinates"] is "data": markerstyle = mpltools.get_markerstyle_from_collection(props) scatter_props = { - 'coordinates': 'data', - 'data': props['offsets'], - 'label': None, - 'markerstyle': markerstyle, - 'linestyle': None + "coordinates": "data", + "data": props["offsets"], + "label": None, + "markerstyle": markerstyle, + "linestyle": None, } self.msg += " Drawing path collection as markers\n" self.draw_marked_line(**scatter_props) else: - self.msg += " Path collection not linked to 'data', " \ - "not drawing\n" - warnings.warn("Dang! That path collection is out of this " - "world. I totally don't know what to do with " - "it yet! Plotly can only import path " - "collections linked to 'data' coordinates") + self.msg += " Path collection not linked to 'data', " "not drawing\n" + warnings.warn( + "Dang! That path collection is out of this " + "world. I totally don't know what to do with " + "it yet! Plotly can only import path " + "collections linked to 'data' coordinates" + ) def draw_path(self, **props): """Draw path, currently only attempts to draw bar charts. @@ -484,8 +508,10 @@ def draw_path(self, **props): self.current_bars += [props] else: self.msg += " This path isn't a bar, not drawing\n" - warnings.warn("I found a path object that I don't think is part " - "of a bar chart. Ignoring.") + warnings.warn( + "I found a path object that I don't think is part " + "of a bar chart. Ignoring." + ) def draw_text(self, **props): """Create an annotation dict for a text obj. @@ -517,7 +543,7 @@ def draw_text(self, **props): """ self.msg += " Attempting to draw an mpl text object\n" - if not mpltools.check_corners(props['mplobj'], self.mpl_fig): + if not mpltools.check_corners(props["mplobj"], self.mpl_fig): warnings.warn( "Looks like the annotation(s) you are trying \n" "to draw lies/lay outside the given figure size.\n\n" @@ -525,62 +551,70 @@ def draw_text(self, **props): "large enough to view the full text. To adjust \n" "the size of the figure, use the 'width' and \n" "'height' keys in the Layout object. Alternatively,\n" - "use the Margin object to adjust the figure's margins.") - align = props['mplobj']._multialignment + "use the Margin object to adjust the figure's margins." + ) + align = props["mplobj"]._multialignment if not align: - align = props['style']['halign'] # mpl default - if 'annotations' not in self.plotly_fig['layout']: - self.plotly_fig['layout']['annotations'] = [] - if props['text_type'] == 'xlabel': + align = props["style"]["halign"] # mpl default + if "annotations" not in self.plotly_fig["layout"]: + self.plotly_fig["layout"]["annotations"] = [] + if props["text_type"] == "xlabel": self.msg += " Text object is an xlabel\n" self.draw_xlabel(**props) - elif props['text_type'] == 'ylabel': + elif props["text_type"] == "ylabel": self.msg += " Text object is a ylabel\n" self.draw_ylabel(**props) - elif props['text_type'] == 'title': + elif props["text_type"] == "title": self.msg += " Text object is a title\n" self.draw_title(**props) else: # just a regular text annotation... self.msg += " Text object is a normal annotation\n" - if props['coordinates'] is not 'data': - self.msg += " Text object isn't linked to 'data' " \ - "coordinates\n" - x_px, y_px = props['mplobj'].get_transform().transform( - props['position']) - x, y = mpltools.display_to_paper( - x_px, y_px, self.plotly_fig['layout'] + if props["coordinates"] is not "data": + self.msg += ( + " Text object isn't linked to 'data' " "coordinates\n" + ) + x_px, y_px = ( + props["mplobj"].get_transform().transform(props["position"]) ) - xref = 'paper' - yref = 'paper' - xanchor = props['style']['halign'] # no difference here! - yanchor = mpltools.convert_va(props['style']['valign']) + x, y = mpltools.display_to_paper(x_px, y_px, self.plotly_fig["layout"]) + xref = "paper" + yref = "paper" + xanchor = props["style"]["halign"] # no difference here! + yanchor = mpltools.convert_va(props["style"]["valign"]) else: - self.msg += " Text object is linked to 'data' " \ - "coordinates\n" - x, y = props['position'] + self.msg += " Text object is linked to 'data' " "coordinates\n" + x, y = props["position"] axis_ct = self.axis_ct - xaxis = self.plotly_fig['layout']['xaxis{0}'.format(axis_ct)] - yaxis = self.plotly_fig['layout']['yaxis{0}'.format(axis_ct)] - if (xaxis['range'][0] < x < xaxis['range'][1] - and yaxis['range'][0] < y < yaxis['range'][1]): - xref = 'x{0}'.format(self.axis_ct) - yref = 'y{0}'.format(self.axis_ct) + xaxis = self.plotly_fig["layout"]["xaxis{0}".format(axis_ct)] + yaxis = self.plotly_fig["layout"]["yaxis{0}".format(axis_ct)] + if ( + xaxis["range"][0] < x < xaxis["range"][1] + and yaxis["range"][0] < y < yaxis["range"][1] + ): + xref = "x{0}".format(self.axis_ct) + yref = "y{0}".format(self.axis_ct) else: - self.msg += " Text object is outside " \ - "plotting area, making 'paper' reference.\n" - x_px, y_px = props['mplobj'].get_transform().transform( - props['position']) - x, y = mpltools.display_to_paper(x_px, y_px, - self.plotly_fig['layout']) - xref = 'paper' - yref = 'paper' - xanchor = props['style']['halign'] # no difference here! - yanchor = mpltools.convert_va(props['style']['valign']) + self.msg += ( + " Text object is outside " + "plotting area, making 'paper' reference.\n" + ) + x_px, y_px = ( + props["mplobj"].get_transform().transform(props["position"]) + ) + x, y = mpltools.display_to_paper( + x_px, y_px, self.plotly_fig["layout"] + ) + xref = "paper" + yref = "paper" + xanchor = props["style"]["halign"] # no difference here! + yanchor = mpltools.convert_va(props["style"]["valign"]) annotation = go.layout.Annotation( - text=(str(props['text']) if - isinstance(props['text'], six.string_types) else - props['text']), - opacity=props['style']['alpha'], + text=( + str(props["text"]) + if isinstance(props["text"], six.string_types) + else props["text"] + ), + opacity=props["style"]["alpha"], x=x, y=y, xref=xref, @@ -590,11 +624,10 @@ def draw_text(self, **props): yanchor=yanchor, showarrow=False, # change this later? font=go.layout.annotation.Font( - color=props['style']['color'], - size=props['style']['fontsize'] - ) + color=props["style"]["color"], size=props["style"]["fontsize"] + ), ) - self.plotly_fig['layout']['annotations'] += annotation, + self.plotly_fig["layout"]["annotations"] += (annotation,) self.msg += " Heck, yeah I drew that annotation\n" def draw_title(self, **props): @@ -625,36 +658,34 @@ def draw_title(self, **props): """ self.msg += " Attempting to draw a title\n" if len(self.mpl_fig.axes) > 1: - self.msg += " More than one subplot, adding title as " \ - "annotation\n" - x_px, y_px = props['mplobj'].get_transform().transform(props[ - 'position']) - x, y = mpltools.display_to_paper(x_px, y_px, - self.plotly_fig['layout']) + self.msg += ( + " More than one subplot, adding title as " "annotation\n" + ) + x_px, y_px = props["mplobj"].get_transform().transform(props["position"]) + x, y = mpltools.display_to_paper(x_px, y_px, self.plotly_fig["layout"]) annotation = go.layout.Annotation( - text=props['text'], + text=props["text"], font=go.layout.annotation.Font( - color=props['style']['color'], - size=props['style']['fontsize'] + color=props["style"]["color"], size=props["style"]["fontsize"] ), - xref='paper', - yref='paper', + xref="paper", + yref="paper", x=x, y=y, - xanchor='center', - yanchor='bottom', - showarrow=False # no arrow for a title! + xanchor="center", + yanchor="bottom", + showarrow=False, # no arrow for a title! ) - self.plotly_fig['layout']['annotations'] += annotation, + self.plotly_fig["layout"]["annotations"] += (annotation,) else: - self.msg += " Only one subplot found, adding as a " \ - "plotly title\n" - self.plotly_fig['layout']['title'] = props['text'] + self.msg += ( + " Only one subplot found, adding as a " "plotly title\n" + ) + self.plotly_fig["layout"]["title"] = props["text"] titlefont = dict( - size=props['style']['fontsize'], - color=props['style']['color'] + size=props["style"]["fontsize"], color=props["style"]["color"] ) - self.plotly_fig['layout']['titlefont'] = titlefont + self.plotly_fig["layout"]["titlefont"] = titlefont def draw_xlabel(self, **props): """Add an xaxis label to the current subplot in layout dictionary. @@ -680,12 +711,10 @@ def draw_xlabel(self, **props): """ self.msg += " Adding xlabel\n" - axis_key = 'xaxis{0}'.format(self.axis_ct) - self.plotly_fig['layout'][axis_key]['title'] = str(props['text']) - titlefont = dict( - size=props['style']['fontsize'], - color=props['style']['color']) - self.plotly_fig['layout'][axis_key]['titlefont'] = titlefont + axis_key = "xaxis{0}".format(self.axis_ct) + self.plotly_fig["layout"][axis_key]["title"] = str(props["text"]) + titlefont = dict(size=props["style"]["fontsize"], color=props["style"]["color"]) + self.plotly_fig["layout"][axis_key]["titlefont"] = titlefont def draw_ylabel(self, **props): """Add a yaxis label to the current subplot in layout dictionary. @@ -711,12 +740,10 @@ def draw_ylabel(self, **props): """ self.msg += " Adding ylabel\n" - axis_key = 'yaxis{0}'.format(self.axis_ct) - self.plotly_fig['layout'][axis_key]['title'] = props['text'] - titlefont = dict( - size=props['style']['fontsize'], - color=props['style']['color']) - self.plotly_fig['layout'][axis_key]['titlefont'] = titlefont + axis_key = "yaxis{0}".format(self.axis_ct) + self.plotly_fig["layout"][axis_key]["title"] = props["text"] + titlefont = dict(size=props["style"]["fontsize"], color=props["style"]["color"]) + self.plotly_fig["layout"][axis_key]["titlefont"] = titlefont def resize(self): """Revert figure layout to allow plotly to resize. @@ -728,9 +755,9 @@ def resize(self): """ self.msg += "Resizing figure, deleting keys from layout\n" - for key in ['width', 'height', 'autosize', 'margin']: + for key in ["width", "height", "autosize", "margin"]: try: - del self.plotly_fig['layout'][key] + del self.plotly_fig["layout"][key] except (KeyError, AttributeError): pass diff --git a/packages/python/plotly/plotly/offline/__init__.py b/packages/python/plotly/plotly/offline/__init__.py index f918c68c589..9f82e47a907 100644 --- a/packages/python/plotly/plotly/offline/__init__.py +++ b/packages/python/plotly/plotly/offline/__init__.py @@ -3,7 +3,7 @@ ====== This module provides offline functionality. """ -from . offline import ( +from .offline import ( download_plotlyjs, get_plotlyjs_version, get_plotlyjs, @@ -12,5 +12,5 @@ iplot, iplot_mpl, plot, - plot_mpl + plot_mpl, ) diff --git a/packages/python/plotly/plotly/offline/_plotlyjs_version.py b/packages/python/plotly/plotly/offline/_plotlyjs_version.py index 2d3848cfb69..21f1ead2ed3 100644 --- a/packages/python/plotly/plotly/offline/_plotlyjs_version.py +++ b/packages/python/plotly/plotly/offline/_plotlyjs_version.py @@ -1,3 +1,3 @@ # DO NOT EDIT # This file is generated by the updatebundle setup.py command -__plotlyjs_version__ = '1.48.1' +__plotlyjs_version__ = "1.48.1" diff --git a/packages/python/plotly/plotly/offline/offline.py b/packages/python/plotly/plotly/offline/offline.py index b3d765c3a0d..847f3e3be22 100644 --- a/packages/python/plotly/plotly/offline/offline.py +++ b/packages/python/plotly/plotly/offline/offline.py @@ -16,15 +16,18 @@ from ._plotlyjs_version import __plotlyjs_version__ -__IMAGE_FORMATS = ['jpeg', 'png', 'webp', 'svg'] +__IMAGE_FORMATS = ["jpeg", "png", "webp", "svg"] def download_plotlyjs(download_url): - warnings.warn(''' + warnings.warn( + """ `download_plotlyjs` is deprecated and will be removed in the next release. plotly.js is shipped with this module, it is no longer necessary to download this bundle separately. - ''', DeprecationWarning) + """, + DeprecationWarning, + ) pass @@ -83,65 +86,64 @@ def get_plotlyjs(): >>> with open('multi_plot.html', 'w') as f: ... f.write(html) """ - path = os.path.join('package_data', 'plotly.min.js') - plotlyjs = pkgutil.get_data('plotly', path).decode('utf-8') + path = os.path.join("package_data", "plotly.min.js") + plotlyjs = pkgutil.get_data("plotly", path).decode("utf-8") return plotlyjs -def _build_resize_script(plotdivid, plotly_root='Plotly'): +def _build_resize_script(plotdivid, plotly_root="Plotly"): resize_script = ( '' + "}};}})" + "" ).format(plotly_root=plotly_root, id=plotdivid) return resize_script def _build_mathjax_script(url): - return ('' - .format(url=url)) + return ''.format(url=url) def _get_jconfig(config=None): configkeys = ( - 'staticPlot', - 'plotlyServerURL', - 'editable', - 'edits', - 'autosizable', - 'responsive', - 'queueLength', - 'fillFrame', - 'frameMargins', - 'scrollZoom', - 'doubleClick', - 'showTips', - 'showAxisDragHandles', - 'showAxisRangeEntryBoxes', - 'showLink', - 'sendData', - 'showSendToCloud', - 'linkText', - 'showSources', - 'displayModeBar', - 'modeBarButtonsToRemove', - 'modeBarButtonsToAdd', - 'modeBarButtons', - 'toImageButtonOptions', - 'displaylogo', - 'watermark', - 'plotGlPixelRatio', - 'setBackground', - 'topojsonURL', - 'mapboxAccessToken', - 'logging', - 'globalTransforms', - 'locale', - 'locales', + "staticPlot", + "plotlyServerURL", + "editable", + "edits", + "autosizable", + "responsive", + "queueLength", + "fillFrame", + "frameMargins", + "scrollZoom", + "doubleClick", + "showTips", + "showAxisDragHandles", + "showAxisRangeEntryBoxes", + "showLink", + "sendData", + "showSendToCloud", + "linkText", + "showSources", + "displayModeBar", + "modeBarButtonsToRemove", + "modeBarButtonsToAdd", + "modeBarButtons", + "toImageButtonOptions", + "displaylogo", + "watermark", + "plotGlPixelRatio", + "setBackground", + "topojsonURL", + "mapboxAccessToken", + "logging", + "globalTransforms", + "locale", + "locales", ) if config and isinstance(config, dict): @@ -151,9 +153,12 @@ def _get_jconfig(config=None): # to date bad_config = [k for k in config if k not in configkeys] if bad_config: - warnings.warn(""" -Unrecognized config options supplied: {bad_config}""" - .format(bad_config=bad_config)) + warnings.warn( + """ +Unrecognized config options supplied: {bad_config}""".format( + bad_config=bad_config + ) + ) clean_config = config else: @@ -161,15 +166,15 @@ def _get_jconfig(config=None): plotly_platform_url = plotly.tools.get_config_plotly_server_url() - clean_config['plotlyServerURL'] = plotly_platform_url + clean_config["plotlyServerURL"] = plotly_platform_url - if (plotly_platform_url != 'https://plot.ly' and - clean_config.get('linkText', None) == 'Export to plot.ly'): - link_domain = plotly_platform_url\ - .replace('https://', '')\ - .replace('http://', '') - link_text = clean_config['linkText'].replace('plot.ly', link_domain) - clean_config['linkText'] = link_text + if ( + plotly_platform_url != "https://plot.ly" + and clean_config.get("linkText", None) == "Export to plot.ly" + ): + link_domain = plotly_platform_url.replace("https://", "").replace("http://", "") + link_text = clean_config["linkText"].replace("plot.ly", link_domain) + clean_config["linkText"] = link_text return clean_config @@ -199,41 +204,44 @@ def get_image_download_script(caller): page reloads. """ - if caller == 'iplot': - check_start = 'if(document.readyState == \'complete\') {{' - check_end = '}}' - elif caller == 'plot': - check_start = '' - check_end = '' + if caller == "iplot": + check_start = "if(document.readyState == 'complete') {{" + check_end = "}}" + elif caller == "plot": + check_start = "" + check_end = "" else: - raise ValueError('caller should only be one of `iplot` or `plot`') - - return( - ('function downloadimage(format, height, width,' - ' filename) {{' - 'var p = document.getElementById(\'{{plot_id}}\');' - 'Plotly.downloadImage(p, {{format: format, height: height, ' - 'width: width, filename: filename}});}};' + - check_start + - 'downloadimage(\'{format}\', {height}, {width}, ' - '\'{filename}\');' + - check_end)) + raise ValueError("caller should only be one of `iplot` or `plot`") + + return ( + "function downloadimage(format, height, width," + " filename) {{" + "var p = document.getElementById('{{plot_id}}');" + "Plotly.downloadImage(p, {{format: format, height: height, " + "width: width, filename: filename}});}};" + + check_start + + "downloadimage('{format}', {height}, {width}, " + "'{filename}');" + check_end + ) def build_save_image_post_script( - image, image_filename, image_height, image_width, caller): + image, image_filename, image_height, image_width, caller +): if image: if image not in __IMAGE_FORMATS: - raise ValueError('The image parameter must be one of the ' - 'following: {}'.format(__IMAGE_FORMATS) - ) + raise ValueError( + "The image parameter must be one of the " + "following: {}".format(__IMAGE_FORMATS) + ) script = get_image_download_script(caller) post_script = script.format( format=image, width=image_width, height=image_height, - filename=image_filename) + filename=image_filename, + ) else: post_script = None @@ -267,23 +275,34 @@ def init_notebook_mode(connected=False): where `connected=True`. """ import plotly.io as pio - ipython = get_module('IPython') + + ipython = get_module("IPython") if not ipython: - raise ImportError('`iplot` can only run inside an IPython Notebook.') + raise ImportError("`iplot` can only run inside an IPython Notebook.") if connected: - pio.renderers.default = 'plotly_mimetype+notebook_connected' + pio.renderers.default = "plotly_mimetype+notebook_connected" else: - pio.renderers.default = 'plotly_mimetype+notebook' + pio.renderers.default = "plotly_mimetype+notebook" # Trigger immediate activation of notebook. This way the plotly.js # library reference is available to the notebook immediately pio.renderers._activate_pending_renderers() -def iplot(figure_or_data, show_link=False, link_text='Export to plot.ly', - validate=True, image=None, filename='plot_image', image_width=800, - image_height=600, config=None, auto_play=True, animation_opts=None): +def iplot( + figure_or_data, + show_link=False, + link_text="Export to plot.ly", + validate=True, + image=None, + filename="plot_image", + image_width=800, + image_height=600, + config=None, + auto_play=True, + animation_opts=None, +): """ Draw plotly graphs inside an IPython or Jupyter notebook @@ -351,36 +370,51 @@ def iplot(figure_or_data, show_link=False, link_text='Export to plot.ly', """ import plotly.io as pio - ipython = get_module('IPython') + ipython = get_module("IPython") if not ipython: - raise ImportError('`iplot` can only run inside an IPython Notebook.') + raise ImportError("`iplot` can only run inside an IPython Notebook.") config = dict(config) if config else {} - config.setdefault('showLink', show_link) - config.setdefault('linkText', link_text) + config.setdefault("showLink", show_link) + config.setdefault("linkText", link_text) # Get figure figure = tools.return_figure_from_figure_or_data(figure_or_data, validate) # Handle image request post_script = build_save_image_post_script( - image, filename, image_height, image_width, 'iplot') + image, filename, image_height, image_width, "iplot" + ) # Show figure - pio.show(figure, - validate=validate, - config=config, - auto_play=auto_play, - post_script=post_script, - animation_opts=animation_opts) - - -def plot(figure_or_data, show_link=False, link_text='Export to plot.ly', - validate=True, output_type='file', include_plotlyjs=True, - filename='temp-plot.html', auto_open=True, image=None, - image_filename='plot_image', image_width=800, image_height=600, - config=None, include_mathjax=False, auto_play=True, - animation_opts=None): + pio.show( + figure, + validate=validate, + config=config, + auto_play=auto_play, + post_script=post_script, + animation_opts=animation_opts, + ) + + +def plot( + figure_or_data, + show_link=False, + link_text="Export to plot.ly", + validate=True, + output_type="file", + include_plotlyjs=True, + filename="temp-plot.html", + auto_open=True, + image=None, + image_filename="plot_image", + image_width=800, + image_height=600, + config=None, + include_mathjax=False, + auto_play=True, + animation_opts=None, +): """ Create a plotly graph locally as an HTML document or string. Example: @@ -517,33 +551,36 @@ def plot(figure_or_data, show_link=False, link_text='Export to plot.ly', import plotly.io as pio # Output type - if output_type not in ['div', 'file']: + if output_type not in ["div", "file"]: raise ValueError( "`output_type` argument must be 'div' or 'file'. " - "You supplied `" + output_type + "``") - if not filename.endswith('.html') and output_type == 'file': + "You supplied `" + output_type + "``" + ) + if not filename.endswith(".html") and output_type == "file": warnings.warn( "Your filename `" + filename + "` didn't end with .html. " - "Adding .html to the end of your file.") - filename += '.html' + "Adding .html to the end of your file." + ) + filename += ".html" # Config config = dict(config) if config else {} - config.setdefault('showLink', show_link) - config.setdefault('linkText', link_text) + config.setdefault("showLink", show_link) + config.setdefault("linkText", link_text) figure = tools.return_figure_from_figure_or_data(figure_or_data, validate) - width = figure.get('layout', {}).get('width', '100%') - height = figure.get('layout', {}).get('height', '100%') + width = figure.get("layout", {}).get("width", "100%") + height = figure.get("layout", {}).get("height", "100%") - if width == '100%' or height == '100%': - config.setdefault('responsive', True) + if width == "100%" or height == "100%": + config.setdefault("responsive", True) # Handle image request post_script = build_save_image_post_script( - image, image_filename, image_height, image_width, 'plot') + image, image_filename, image_height, image_width, "plot" + ) - if output_type == 'file': + if output_type == "file": pio.write_html( figure, filename, @@ -555,7 +592,8 @@ def plot(figure_or_data, show_link=False, link_text='Export to plot.ly', full_html=True, validate=validate, animation_opts=animation_opts, - auto_open=auto_open) + auto_open=auto_open, + ) return filename else: return pio.to_html( @@ -567,15 +605,27 @@ def plot(figure_or_data, show_link=False, link_text='Export to plot.ly', post_script=post_script, full_html=False, validate=validate, - animation_opts=animation_opts) - - -def plot_mpl(mpl_fig, resize=False, strip_style=False, - verbose=False, show_link=False, link_text='Export to plot.ly', - validate=True, output_type='file', include_plotlyjs=True, - filename='temp-plot.html', auto_open=True, - image=None, image_filename='plot_image', - image_height=600, image_width=800): + animation_opts=animation_opts, + ) + + +def plot_mpl( + mpl_fig, + resize=False, + strip_style=False, + verbose=False, + show_link=False, + link_text="Export to plot.ly", + validate=True, + output_type="file", + include_plotlyjs=True, + filename="temp-plot.html", + auto_open=True, + image=None, + image_filename="plot_image", + image_height=600, + image_width=800, +): """ Convert a matplotlib figure to a Plotly graph stored locally as HTML. @@ -646,17 +696,35 @@ def plot_mpl(mpl_fig, resize=False, strip_style=False, ``` """ plotly_plot = plotly.tools.mpl_to_plotly(mpl_fig, resize, strip_style, verbose) - return plot(plotly_plot, show_link, link_text, validate, output_type, - include_plotlyjs, filename, auto_open, - image=image, image_filename=image_filename, - image_height=image_height, image_width=image_width) + return plot( + plotly_plot, + show_link, + link_text, + validate, + output_type, + include_plotlyjs, + filename, + auto_open, + image=image, + image_filename=image_filename, + image_height=image_height, + image_width=image_width, + ) -def iplot_mpl(mpl_fig, resize=False, strip_style=False, - verbose=False, show_link=False, - link_text='Export to plot.ly', validate=True, - image=None, image_filename='plot_image', - image_height=600, image_width=800): +def iplot_mpl( + mpl_fig, + resize=False, + strip_style=False, + verbose=False, + show_link=False, + link_text="Export to plot.ly", + validate=True, + image=None, + image_filename="plot_image", + image_height=600, + image_width=800, +): """ Convert a matplotlib figure to a plotly graph and plot inside an IPython notebook without connecting to an external server. @@ -711,14 +779,26 @@ def iplot_mpl(mpl_fig, resize=False, strip_style=False, ``` """ plotly_plot = plotly.tools.mpl_to_plotly(mpl_fig, resize, strip_style, verbose) - return iplot(plotly_plot, show_link, link_text, validate, - image=image, filename=image_filename, - image_height=image_height, image_width=image_width) + return iplot( + plotly_plot, + show_link, + link_text, + validate, + image=image, + filename=image_filename, + image_height=image_height, + image_width=image_width, + ) -def enable_mpl_offline(resize=False, strip_style=False, - verbose=False, show_link=False, - link_text='Export to plot.ly', validate=True): +def enable_mpl_offline( + resize=False, + strip_style=False, + verbose=False, + show_link=False, + link_text="Export to plot.ly", + validate=True, +): """ Convert mpl plots to locally hosted HTML documents. @@ -745,11 +825,14 @@ def enable_mpl_offline(resize=False, strip_style=False, ``` """ init_notebook_mode() - ipython = get_module('IPython') - matplotlib = get_module('matplotlib') + ipython = get_module("IPython") + matplotlib = get_module("matplotlib") ip = ipython.core.getipython.get_ipython() - formatter = ip.display_formatter.formatters['text/html'] - formatter.for_type(matplotlib.figure.Figure, - lambda fig: iplot_mpl(fig, resize, strip_style, verbose, - show_link, link_text, validate)) + formatter = ip.display_formatter.formatters["text/html"] + formatter.for_type( + matplotlib.figure.Figure, + lambda fig: iplot_mpl( + fig, resize, strip_style, verbose, show_link, link_text, validate + ), + ) diff --git a/packages/python/plotly/plotly/plotly/__init__.py b/packages/python/plotly/plotly/plotly/__init__.py index fe71bf4ac05..2a0a2540675 100644 --- a/packages/python/plotly/plotly/plotly/__init__.py +++ b/packages/python/plotly/plotly/plotly/__init__.py @@ -1,3 +1,4 @@ from __future__ import absolute_import from _plotly_future_ import _chart_studio_error -_chart_studio_error('plotly') + +_chart_studio_error("plotly") diff --git a/packages/python/plotly/plotly/plotly/chunked_requests.py b/packages/python/plotly/plotly/plotly/chunked_requests.py index 971501a06b4..585e76b6c40 100644 --- a/packages/python/plotly/plotly/plotly/chunked_requests.py +++ b/packages/python/plotly/plotly/plotly/chunked_requests.py @@ -1,3 +1,4 @@ from __future__ import absolute_import from _plotly_future_ import _chart_studio_error -_chart_studio_error('plotly.chunked_requests') + +_chart_studio_error("plotly.chunked_requests") diff --git a/packages/python/plotly/plotly/presentation_objs.py b/packages/python/plotly/plotly/presentation_objs.py index 6e9ed0186bd..aa54c668bc2 100644 --- a/packages/python/plotly/plotly/presentation_objs.py +++ b/packages/python/plotly/plotly/presentation_objs.py @@ -1,3 +1,4 @@ from __future__ import absolute_import from _plotly_future_ import _chart_studio_error -_chart_studio_error('presentation_objs') + +_chart_studio_error("presentation_objs") diff --git a/packages/python/plotly/plotly/serializers.py b/packages/python/plotly/plotly/serializers.py index 27cdda23af0..3f02f7db45b 100644 --- a/packages/python/plotly/plotly/serializers.py +++ b/packages/python/plotly/plotly/serializers.py @@ -1,6 +1,7 @@ from .basedatatypes import Undefined from .optional_imports import get_module -np = get_module('numpy') + +np = get_module("numpy") def _py_to_js(v, widget_manager): @@ -39,16 +40,16 @@ def _py_to_js(v, widget_manager): elif np is not None and isinstance(v, np.ndarray): # Convert 1D numpy arrays with numeric types to memoryviews with # datatype and shape metadata. - if (v.ndim == 1 and - v.dtype.kind in ['u', 'i', 'f'] and - v.dtype != 'int64' and - v.dtype != 'uint64'): + if ( + v.ndim == 1 + and v.dtype.kind in ["u", "i", "f"] + and v.dtype != "int64" + and v.dtype != "uint64" + ): # We have a numpy array the we can directly map to a JavaScript # Typed array - return {'buffer': memoryview(v), - 'dtype': str(v.dtype), - 'shape': v.shape} + return {"buffer": memoryview(v), "dtype": str(v.dtype), "shape": v.shape} else: # Convert all other numpy arrays to lists return v.tolist() @@ -56,7 +57,7 @@ def _py_to_js(v, widget_manager): # Handle Undefined # ---------------- if v is Undefined: - return '_undefined_' + return "_undefined_" # Handle simple value # ------------------- @@ -92,7 +93,7 @@ def _js_to_py(v, widget_manager): # Handle Undefined # ---------------- - elif isinstance(v, str) and v == '_undefined_': + elif isinstance(v, str) and v == "_undefined_": return Undefined # Handle simple value @@ -102,7 +103,4 @@ def _js_to_py(v, widget_manager): # Custom serializer dict for use in ipywidget traitlet definitions -custom_serializers = { - 'from_json': _js_to_py, - 'to_json': _py_to_js -} +custom_serializers = {"from_json": _js_to_py, "to_json": _py_to_js} diff --git a/packages/python/plotly/plotly/session.py b/packages/python/plotly/plotly/session.py index cd5d3cba005..7ce9ecbf851 100644 --- a/packages/python/plotly/plotly/session.py +++ b/packages/python/plotly/plotly/session.py @@ -1,3 +1,4 @@ from __future__ import absolute_import from _plotly_future_ import _chart_studio_error -_chart_studio_error('session') + +_chart_studio_error("session") diff --git a/packages/python/plotly/plotly/subplots.py b/packages/python/plotly/plotly/subplots.py index 5bc933cba1c..3a62a319fab 100644 --- a/packages/python/plotly/plotly/subplots.py +++ b/packages/python/plotly/plotly/subplots.py @@ -11,8 +11,8 @@ # little differently. import collections -_single_subplot_types = {'scene', 'geo', 'polar', 'ternary', 'mapbox'} -_subplot_types = set.union(_single_subplot_types, {'xy', 'domain'}) +_single_subplot_types = {"scene", "geo", "polar", "ternary", "mapbox"} +_subplot_types = set.union(_single_subplot_types, {"xy", "domain"}) # For most subplot types, a trace is associated with a particular subplot # using a trace property with a name that matches the subplot type. For @@ -23,45 +23,44 @@ # the trace property is just named `subplot`. For example setting # the `scatterpolar.subplot` property to `polar3` associates the scatterpolar # trace with the third polar subplot in the figure -_subplot_prop_named_subplot = {'polar', 'ternary', 'mapbox'} +_subplot_prop_named_subplot = {"polar", "ternary", "mapbox"} # Named tuple to hold an xaxis/yaxis pair that represent a single subplot -SubplotXY = collections.namedtuple('SubplotXY', - ('xaxis', 'yaxis')) -SubplotDomain = collections.namedtuple('SubplotDomain', ('x', 'y')) +SubplotXY = collections.namedtuple("SubplotXY", ("xaxis", "yaxis")) +SubplotDomain = collections.namedtuple("SubplotDomain", ("x", "y")) SubplotRef = collections.namedtuple( - 'SubplotRef', ('subplot_type', 'layout_keys', 'trace_kwargs')) + "SubplotRef", ("subplot_type", "layout_keys", "trace_kwargs") +) def _get_initial_max_subplot_ids(): - max_subplot_ids = {subplot_type: 0 - for subplot_type in _single_subplot_types} - max_subplot_ids['xaxis'] = 0 - max_subplot_ids['yaxis'] = 0 + max_subplot_ids = {subplot_type: 0 for subplot_type in _single_subplot_types} + max_subplot_ids["xaxis"] = 0 + max_subplot_ids["yaxis"] = 0 return max_subplot_ids def make_subplots( - rows=1, - cols=1, - shared_xaxes=False, - shared_yaxes=False, - start_cell='top-left', - print_grid=False, - horizontal_spacing=None, - vertical_spacing=None, - subplot_titles=None, - column_widths=None, - row_heights=None, - specs=None, - insets=None, - column_titles=None, - row_titles=None, - x_title=None, - y_title=None, - **kwargs + rows=1, + cols=1, + shared_xaxes=False, + shared_yaxes=False, + start_cell="top-left", + print_grid=False, + horizontal_spacing=None, + vertical_spacing=None, + subplot_titles=None, + column_widths=None, + row_heights=None, + specs=None, + insets=None, + column_titles=None, + row_titles=None, + x_title=None, + y_title=None, + **kwargs ): """ Return an instance of plotly.graph_objs.Figure with predefined subplots @@ -317,44 +316,55 @@ def make_subplots( # Handle backward compatibility # ----------------------------- - use_legacy_row_heights_order = 'row_width' in kwargs - row_heights = kwargs.pop('row_width', row_heights) - column_widths = kwargs.pop('column_width', column_widths) + use_legacy_row_heights_order = "row_width" in kwargs + row_heights = kwargs.pop("row_width", row_heights) + column_widths = kwargs.pop("column_width", column_widths) if kwargs: raise TypeError( - 'make_subplots() got unexpected keyword argument(s): {}' - .format(list(kwargs))) + "make_subplots() got unexpected keyword argument(s): {}".format( + list(kwargs) + ) + ) # Validate coerce inputs # ---------------------- # ### rows ### if not isinstance(rows, int) or rows <= 0: - raise ValueError(""" + raise ValueError( + """ The 'rows' argument to make_suplots must be an int greater than 0. Received value of type {typ}: {val}""".format( - typ=type(rows), val=repr(rows))) + typ=type(rows), val=repr(rows) + ) + ) # ### cols ### if not isinstance(cols, int) or cols <= 0: - raise ValueError(""" + raise ValueError( + """ The 'cols' argument to make_suplots must be an int greater than 0. Received value of type {typ}: {val}""".format( - typ=type(cols), val=repr(cols))) + typ=type(cols), val=repr(cols) + ) + ) # ### start_cell ### - if start_cell == 'bottom-left': + if start_cell == "bottom-left": col_dir = 1 row_dir = 1 - elif start_cell == 'top-left': + elif start_cell == "top-left": col_dir = 1 row_dir = -1 else: - raise ValueError(""" + raise ValueError( + """ The 'start_cell` argument to make_subplots must be one of \ ['bottom-left', 'top-left'] Received value of type {typ}: {val}""".format( - typ=type(start_cell), val=repr(start_cell))) + typ=type(start_cell), val=repr(start_cell) + ) + ) # ### Helper to validate coerce elements of lists of dictionaries ### def _check_keys_and_fill(name, arg, defaults): @@ -362,22 +372,25 @@ def _checks(item, defaults): if item is None: return if not isinstance(item, dict): - raise ValueError(""" + raise ValueError( + """ Elements of the '{name}' argument to make_suplots must be dictionaries \ or None. Received value of type {typ}: {val}""".format( - name=name, typ=type(item), val=repr(item) - )) + name=name, typ=type(item), val=repr(item) + ) + ) for k in item: if k not in defaults: - raise ValueError(""" + raise ValueError( + """ Invalid key specified in an element of the '{name}' argument to \ make_subplots: {k} Valid keys include: {valid_keys}""".format( - k=repr(k), name=name, - valid_keys=repr(list(defaults)) - )) + k=repr(k), name=name, valid_keys=repr(list(defaults)) + ) + ) for k, v in defaults.items(): item.setdefault(k, v) @@ -394,102 +407,100 @@ def _checks(item, defaults): if specs is None: specs = [[{} for c in range(cols)] for r in range(rows)] elif not ( - isinstance(specs, (list, tuple)) - and specs - and all(isinstance(row, (list, tuple)) for row in specs) - and len(specs) == rows - and all(len(row) == cols for row in specs) - and all(all(v is None or isinstance(v, dict) - for v in row) - for row in specs) + isinstance(specs, (list, tuple)) + and specs + and all(isinstance(row, (list, tuple)) for row in specs) + and len(specs) == rows + and all(len(row) == cols for row in specs) + and all(all(v is None or isinstance(v, dict) for v in row) for row in specs) ): - raise ValueError(""" + raise ValueError( + """ The 'specs' argument to make_subplots must be a 2D list of dictionaries with \ dimensions ({rows} x {cols}). Received value of type {typ}: {val}""".format( - rows=rows, cols=cols, typ=type(specs), val=repr(specs) - )) + rows=rows, cols=cols, typ=type(specs), val=repr(specs) + ) + ) for row in specs: for spec in row: # For backward compatibility, # convert is_3d flag to type='scene' kwarg - if spec and spec.pop('is_3d', None): - spec['type'] = 'scene' + if spec and spec.pop("is_3d", None): + spec["type"] = "scene" spec_defaults = dict( - type='xy', - secondary_y=False, - colspan=1, - rowspan=1, - l=0.0, - r=0.0, - b=0.0, - t=0.0, + type="xy", secondary_y=False, colspan=1, rowspan=1, l=0.0, r=0.0, b=0.0, t=0.0 ) - _check_keys_and_fill('specs', specs, spec_defaults) + _check_keys_and_fill("specs", specs, spec_defaults) # Validate secondary_y has_secondary_y = False for row in specs: for spec in row: if spec is not None: - has_secondary_y = has_secondary_y or spec['secondary_y'] - if spec and spec['type'] != 'xy' and spec['secondary_y']: - raise ValueError(""" + has_secondary_y = has_secondary_y or spec["secondary_y"] + if spec and spec["type"] != "xy" and spec["secondary_y"]: + raise ValueError( + """ The 'secondary_y' spec property is not supported for subplot of type '{s_typ}' 'secondary_y' is only supported for subplots of type 'xy' -""".format(s_typ=spec['type'])) +""".format( + s_typ=spec["type"] + ) + ) # ### insets ### if insets is None or insets is False: insets = [] elif not ( - isinstance(insets, (list, tuple)) and - all(isinstance(v, dict) for v in insets) + isinstance(insets, (list, tuple)) and all(isinstance(v, dict) for v in insets) ): - raise ValueError(""" + raise ValueError( + """ The 'insets' argument to make_suplots must be a list of dictionaries. Received value of type {typ}: {val}""".format( - typ=type(insets), val=repr(insets))) + typ=type(insets), val=repr(insets) + ) + ) if insets: for inset in insets: - if inset and inset.pop('is_3d', None): - inset['type'] = 'scene' + if inset and inset.pop("is_3d", None): + inset["type"] = "scene" inset_defaults = dict( - cell=(1, 1), - type='xy', - l=0.0, - w='to_end', - b=0.0, - h='to_end' + cell=(1, 1), type="xy", l=0.0, w="to_end", b=0.0, h="to_end" ) - _check_keys_and_fill('insets', insets, inset_defaults) + _check_keys_and_fill("insets", insets, inset_defaults) # ### shared_xaxes / shared_yaxes - valid_shared_vals = [None, True, False, 'rows', 'columns', 'all'] + valid_shared_vals = [None, True, False, "rows", "columns", "all"] shared_err_msg = """ The {arg} argument to make_subplots must be one of: {valid_vals} Received value of type {typ}: {val}""" if shared_xaxes not in valid_shared_vals: val = shared_xaxes - raise ValueError(shared_err_msg.format( - arg='shared_xaxes', - valid_vals=valid_shared_vals, - typ=type(val), - val=repr(val) - )) + raise ValueError( + shared_err_msg.format( + arg="shared_xaxes", + valid_vals=valid_shared_vals, + typ=type(val), + val=repr(val), + ) + ) if shared_yaxes not in valid_shared_vals: val = shared_yaxes - raise ValueError(shared_err_msg.format( - arg='shared_yaxes', - valid_vals=valid_shared_vals, - typ=type(val), - val=repr(val) - )) + raise ValueError( + shared_err_msg.format( + arg="shared_yaxes", + valid_vals=valid_shared_vals, + typ=type(val), + val=repr(val), + ) + ) # ### horizontal_spacing ### if horizontal_spacing is None: @@ -520,56 +531,60 @@ def _checks(item, defaults): max_width = 1.0 if column_widths is None: - widths = [(max_width - horizontal_spacing * ( - cols - 1)) / cols] * cols - elif isinstance(column_widths, (list, tuple)) and len( - column_widths) == cols: + widths = [(max_width - horizontal_spacing * (cols - 1)) / cols] * cols + elif isinstance(column_widths, (list, tuple)) and len(column_widths) == cols: cum_sum = float(sum(column_widths)) widths = [] for w in column_widths: - widths.append( - (max_width - horizontal_spacing * (cols - 1)) * ( - w / cum_sum) - ) + widths.append((max_width - horizontal_spacing * (cols - 1)) * (w / cum_sum)) else: - raise ValueError(""" + raise ValueError( + """ The 'column_widths' argument to make_suplots must be a list of numbers of \ length {cols}. Received value of type {typ}: {val}""".format( - cols=cols, typ=type(column_widths), val=repr(column_widths))) + cols=cols, typ=type(column_widths), val=repr(column_widths) + ) + ) # ### row_heights ### if row_heights is None: - heights = [(1. - vertical_spacing * (rows - 1)) / rows] * rows - elif isinstance(row_heights, (list, tuple)) and len( - row_heights) == rows: + heights = [(1.0 - vertical_spacing * (rows - 1)) / rows] * rows + elif isinstance(row_heights, (list, tuple)) and len(row_heights) == rows: cum_sum = float(sum(row_heights)) heights = [] for h in row_heights: - heights.append( - (1. - vertical_spacing * (rows - 1)) * (h / cum_sum) - ) + heights.append((1.0 - vertical_spacing * (rows - 1)) * (h / cum_sum)) if row_dir < 0 and not use_legacy_row_heights_order: heights = list(reversed(heights)) else: - raise ValueError(""" + raise ValueError( + """ The 'row_heights' argument to make_suplots must be a list of numbers of \ length {rows}. Received value of type {typ}: {val}""".format( - rows=rows, typ=type(row_heights), val=repr(row_heights))) + rows=rows, typ=type(row_heights), val=repr(row_heights) + ) + ) # ### column_titles / row_titles ### if column_titles and not isinstance(column_titles, (list, tuple)): - raise ValueError(""" + raise ValueError( + """ The column_titles argument to make_subplots must be a list or tuple Received value of type {typ}: {val}""".format( - typ=type(column_titles), val=repr(column_titles))) + typ=type(column_titles), val=repr(column_titles) + ) + ) if row_titles and not isinstance(row_titles, (list, tuple)): - raise ValueError(""" + raise ValueError( + """ The row_titles argument to make_subplots must be a list or tuple Received value of type {typ}: {val}""".format( - typ=type(row_titles), val=repr(row_titles))) + typ=type(row_titles), val=repr(row_titles) + ) + ) # Init layout # ----------- @@ -587,9 +602,11 @@ def _checks(item, defaults): [ ( (sum(widths[:c]) + c * horizontal_spacing), - (sum(heights[:r]) + r * vertical_spacing) - ) for c in col_seq - ] for r in row_seq + (sum(heights[:r]) + r * vertical_spacing), + ) + for c in col_seq + ] + for r in row_seq ] domains_grid = [[None for _ in range(cols)] for _ in range(rows)] @@ -609,30 +626,32 @@ def _checks(item, defaults): continue # ### Compute x and y domain for subplot ### - c_spanned = c + spec['colspan'] - 1 # get spanned c - r_spanned = r + spec['rowspan'] - 1 # get spanned r + c_spanned = c + spec["colspan"] - 1 # get spanned c + r_spanned = r + spec["rowspan"] - 1 # get spanned r # Throw exception if 'colspan' | 'rowspan' is too large for grid if c_spanned >= cols: - raise Exception("Some 'colspan' value is too large for " - "this subplot grid.") + raise Exception( + "Some 'colspan' value is too large for " "this subplot grid." + ) if r_spanned >= rows: - raise Exception("Some 'rowspan' value is too large for " - "this subplot grid.") + raise Exception( + "Some 'rowspan' value is too large for " "this subplot grid." + ) # Get x domain using grid and colspan - x_s = grid[r][c][0] + spec['l'] + x_s = grid[r][c][0] + spec["l"] - x_e = grid[r][c_spanned][0] + widths[c_spanned] - spec['r'] + x_e = grid[r][c_spanned][0] + widths[c_spanned] - spec["r"] x_domain = [x_s, x_e] # Get y domain (dep. on row_dir) using grid & r_spanned if row_dir > 0: - y_s = grid[r][c][1] + spec['b'] - y_e = grid[r_spanned][c][1] + heights[r_spanned] - spec['t'] + y_s = grid[r][c][1] + spec["b"] + y_e = grid[r_spanned][c][1] + heights[r_spanned] - spec["t"] else: - y_s = grid[r_spanned][c][1] + spec['b'] - y_e = grid[r][c][1] + heights[-1 - r] - spec['t'] + y_s = grid[r_spanned][c][1] + spec["b"] + y_e = grid[r][c][1] + heights[-1 - r] - spec["t"] y_domain = [y_s, y_e] list_of_domains.append(x_domain) @@ -641,15 +660,15 @@ def _checks(item, defaults): domains_grid[r][c] = [x_domain, y_domain] # ### construct subplot container ### - subplot_type = spec['type'] - secondary_y = spec['secondary_y'] + subplot_type = spec["type"] + secondary_y = spec["secondary_y"] subplot_refs = _init_subplot( - layout, subplot_type, secondary_y, - x_domain, y_domain, max_subplot_ids) + layout, subplot_type, secondary_y, x_domain, y_domain, max_subplot_ids + ) grid_ref[r][c] = subplot_refs - _configure_shared_axes(layout, grid_ref, specs, 'x', shared_xaxes, row_dir) - _configure_shared_axes(layout, grid_ref, specs, 'y', shared_yaxes, row_dir) + _configure_shared_axes(layout, grid_ref, specs, "x", shared_xaxes, row_dir) + _configure_shared_axes(layout, grid_ref, specs, "y", shared_yaxes, row_dir) # Build inset reference # --------------------- @@ -658,41 +677,45 @@ def _checks(item, defaults): if insets: for i_inset, inset in enumerate(insets): - r = inset['cell'][0] - 1 - c = inset['cell'][1] - 1 + r = inset["cell"][0] - 1 + c = inset["cell"][1] - 1 # Throw exception if r | c is out of range if not (0 <= r < rows): - raise Exception("Some 'cell' row value is out of range. " - "Note: the starting cell is (1, 1)") + raise Exception( + "Some 'cell' row value is out of range. " + "Note: the starting cell is (1, 1)" + ) if not (0 <= c < cols): - raise Exception("Some 'cell' col value is out of range. " - "Note: the starting cell is (1, 1)") + raise Exception( + "Some 'cell' col value is out of range. " + "Note: the starting cell is (1, 1)" + ) # Get inset x domain using grid - x_s = grid[r][c][0] + inset['l'] * widths[c] - if inset['w'] == 'to_end': + x_s = grid[r][c][0] + inset["l"] * widths[c] + if inset["w"] == "to_end": x_e = grid[r][c][0] + widths[c] else: - x_e = x_s + inset['w'] * widths[c] + x_e = x_s + inset["w"] * widths[c] x_domain = [x_s, x_e] # Get inset y domain using grid - y_s = grid[r][c][1] + inset['b'] * heights[-1 - r] - if inset['h'] == 'to_end': + y_s = grid[r][c][1] + inset["b"] * heights[-1 - r] + if inset["h"] == "to_end": y_e = grid[r][c][1] + heights[-1 - r] else: - y_e = y_s + inset['h'] * heights[-1 - r] + y_e = y_s + inset["h"] * heights[-1 - r] y_domain = [y_s, y_e] list_of_domains.append(x_domain) list_of_domains.append(y_domain) - subplot_type = inset['type'] + subplot_type = inset["type"] subplot_refs = _init_subplot( - layout, subplot_type, False, - x_domain, y_domain, max_subplot_ids) + layout, subplot_type, False, x_domain, y_domain, max_subplot_ids + ) insets_ref[i_inset] = subplot_refs @@ -702,11 +725,10 @@ def _checks(item, defaults): # Add subplot titles plot_title_annotations = _build_subplot_title_annotations( - subplot_titles, - list_of_domains, + subplot_titles, list_of_domains ) - layout['annotations'] = plot_title_annotations + layout["annotations"] = plot_title_annotations # Add column titles if column_titles: @@ -724,11 +746,10 @@ def _checks(item, defaults): # Add subplot titles column_title_annotations = _build_subplot_title_annotations( - column_titles, - domains_list, + column_titles, domains_list ) - layout['annotations'] += tuple(column_title_annotations) + layout["annotations"] += tuple(column_title_annotations) if row_titles: domains_list = [] @@ -744,49 +765,41 @@ def _checks(item, defaults): # Add subplot titles column_title_annotations = _build_subplot_title_annotations( - row_titles, - domains_list, - title_edge='right' + row_titles, domains_list, title_edge="right" ) - layout['annotations'] += tuple(column_title_annotations) + layout["annotations"] += tuple(column_title_annotations) if x_title: domains_list = [(0, max_width), (0, 1)] # Add subplot titles column_title_annotations = _build_subplot_title_annotations( - [x_title], - domains_list, - title_edge='bottom', - offset=30 + [x_title], domains_list, title_edge="bottom", offset=30 ) - layout['annotations'] += tuple(column_title_annotations) + layout["annotations"] += tuple(column_title_annotations) if y_title: domains_list = [(0, 1), (0, 1)] # Add subplot titles column_title_annotations = _build_subplot_title_annotations( - [y_title], - domains_list, - title_edge='left', - offset=40 + [y_title], domains_list, title_edge="left", offset=40 ) - layout['annotations'] += tuple(column_title_annotations) + layout["annotations"] += tuple(column_title_annotations) # Handle displaying grid information if print_grid: - print(grid_str) + print (grid_str) # Build resulting figure fig = go.Figure(layout=layout) # Attach subpot grid info to the figure - fig.__dict__['_grid_ref'] = grid_ref - fig.__dict__['_grid_str'] = grid_str + fig.__dict__["_grid_ref"] = grid_ref + fig.__dict__["_grid_str"] = grid_str return fig @@ -795,10 +808,10 @@ def _configure_shared_axes(layout, grid_ref, specs, x_or_y, shared, row_dir): rows = len(grid_ref) cols = len(grid_ref[0]) - layout_key_ind = ['x', 'y'].index(x_or_y) + layout_key_ind = ["x", "y"].index(x_or_y) if row_dir < 0: - rows_iter = range(rows-1, -1, -1) + rows_iter = range(rows - 1, -1, -1) else: rows_iter = range(rows) @@ -806,15 +819,15 @@ def update_axis_matches(first_axis_id, subplot_ref, spec, remove_label): if subplot_ref is None: return first_axis_id - if x_or_y == 'x': - span = spec['colspan'] + if x_or_y == "x": + span = spec["colspan"] else: - span = spec['rowspan'] + span = spec["rowspan"] - if subplot_ref.subplot_type == 'xy' and span == 1: + if subplot_ref.subplot_type == "xy" and span == 1: if first_axis_id is None: first_axis_name = subplot_ref.layout_keys[layout_key_ind] - first_axis_id = first_axis_name.replace('axis', '') + first_axis_id = first_axis_name.replace("axis", "") else: axis_name = subplot_ref.layout_keys[layout_key_ind] axis_to_match = layout[axis_name] @@ -824,31 +837,33 @@ def update_axis_matches(first_axis_id, subplot_ref, spec, remove_label): return first_axis_id - if shared == 'columns' or (x_or_y == 'x' and shared is True): + if shared == "columns" or (x_or_y == "x" and shared is True): for c in range(cols): first_axis_id = None - ok_to_remove_label = x_or_y == 'x' + ok_to_remove_label = x_or_y == "x" for r in rows_iter: if not grid_ref[r][c]: continue subplot_ref = grid_ref[r][c][0] spec = specs[r][c] first_axis_id = update_axis_matches( - first_axis_id, subplot_ref, spec, ok_to_remove_label) + first_axis_id, subplot_ref, spec, ok_to_remove_label + ) - elif shared == 'rows' or (x_or_y == 'y' and shared is True): + elif shared == "rows" or (x_or_y == "y" and shared is True): for r in rows_iter: first_axis_id = None - ok_to_remove_label = x_or_y == 'y' + ok_to_remove_label = x_or_y == "y" for c in range(cols): if not grid_ref[r][c]: continue subplot_ref = grid_ref[r][c][0] spec = specs[r][c] first_axis_id = update_axis_matches( - first_axis_id, subplot_ref, spec, ok_to_remove_label) + first_axis_id, subplot_ref, spec, ok_to_remove_label + ) - elif shared == 'all': + elif shared == "all": first_axis_id = None for c in range(cols): for ri, r in enumerate(rows_iter): @@ -857,95 +872,93 @@ def update_axis_matches(first_axis_id, subplot_ref, spec, remove_label): subplot_ref = grid_ref[r][c][0] spec = specs[r][c] - if x_or_y == 'y': + if x_or_y == "y": ok_to_remove_label = c > 0 else: ok_to_remove_label = ri > 0 if row_dir > 0 else r < rows - 1 first_axis_id = update_axis_matches( - first_axis_id, subplot_ref, spec, ok_to_remove_label) + first_axis_id, subplot_ref, spec, ok_to_remove_label + ) -def _init_subplot_xy( - layout, secondary_y, x_domain, y_domain, max_subplot_ids=None -): +def _init_subplot_xy(layout, secondary_y, x_domain, y_domain, max_subplot_ids=None): if max_subplot_ids is None: max_subplot_ids = _get_initial_max_subplot_ids() # Get axis label and anchor - x_cnt = max_subplot_ids['xaxis'] + 1 - y_cnt = max_subplot_ids['yaxis'] + 1 + x_cnt = max_subplot_ids["xaxis"] + 1 + y_cnt = max_subplot_ids["yaxis"] + 1 # Compute x/y labels (the values of trace.xaxis/trace.yaxis - x_label = "x{cnt}".format(cnt=x_cnt if x_cnt > 1 else '') - y_label = "y{cnt}".format(cnt=y_cnt if y_cnt > 1 else '') + x_label = "x{cnt}".format(cnt=x_cnt if x_cnt > 1 else "") + y_label = "y{cnt}".format(cnt=y_cnt if y_cnt > 1 else "") # Anchor x and y axes to each other x_anchor, y_anchor = y_label, x_label # Build layout.xaxis/layout.yaxis containers - xaxis_name = 'xaxis{cnt}'.format(cnt=x_cnt if x_cnt > 1 else '') - yaxis_name = 'yaxis{cnt}'.format(cnt=y_cnt if y_cnt > 1 else '') - x_axis = {'domain': x_domain, 'anchor': x_anchor} - y_axis = {'domain': y_domain, 'anchor': y_anchor} + xaxis_name = "xaxis{cnt}".format(cnt=x_cnt if x_cnt > 1 else "") + yaxis_name = "yaxis{cnt}".format(cnt=y_cnt if y_cnt > 1 else "") + x_axis = {"domain": x_domain, "anchor": x_anchor} + y_axis = {"domain": y_domain, "anchor": y_anchor} layout[xaxis_name] = x_axis layout[yaxis_name] = y_axis - subplot_refs = [SubplotRef( - subplot_type='xy', - layout_keys=(xaxis_name, yaxis_name), - trace_kwargs={'xaxis': x_label, 'yaxis': y_label} - )] + subplot_refs = [ + SubplotRef( + subplot_type="xy", + layout_keys=(xaxis_name, yaxis_name), + trace_kwargs={"xaxis": x_label, "yaxis": y_label}, + ) + ] if secondary_y: y_cnt += 1 - secondary_yaxis_name = 'yaxis{cnt}'.format( - cnt=y_cnt if y_cnt > 1 else '') + secondary_yaxis_name = "yaxis{cnt}".format(cnt=y_cnt if y_cnt > 1 else "") secondary_y_label = "y{cnt}".format(cnt=y_cnt) # Add secondary y-axis to subplot reference - subplot_refs.append(SubplotRef( - subplot_type='xy', - layout_keys=(xaxis_name, secondary_yaxis_name), - trace_kwargs={'xaxis': x_label, 'yaxis': secondary_y_label} - )) + subplot_refs.append( + SubplotRef( + subplot_type="xy", + layout_keys=(xaxis_name, secondary_yaxis_name), + trace_kwargs={"xaxis": x_label, "yaxis": secondary_y_label}, + ) + ) # Add secondary y axis to layout - secondary_y_axis = { - 'anchor': y_anchor, 'overlaying': y_label, 'side': 'right' - } + secondary_y_axis = {"anchor": y_anchor, "overlaying": y_label, "side": "right"} layout[secondary_yaxis_name] = secondary_y_axis # increment max_subplot_ids - max_subplot_ids['xaxis'] = x_cnt - max_subplot_ids['yaxis'] = y_cnt + max_subplot_ids["xaxis"] = x_cnt + max_subplot_ids["yaxis"] = y_cnt return tuple(subplot_refs) def _init_subplot_single( - layout, subplot_type, x_domain, y_domain, max_subplot_ids=None + layout, subplot_type, x_domain, y_domain, max_subplot_ids=None ): if max_subplot_ids is None: max_subplot_ids = _get_initial_max_subplot_ids() # Add scene to layout cnt = max_subplot_ids[subplot_type] + 1 - label = '{subplot_type}{cnt}'.format( - subplot_type=subplot_type, - cnt=cnt if cnt > 1 else '') - scene = dict(domain={'x': x_domain, 'y': y_domain}) + label = "{subplot_type}{cnt}".format( + subplot_type=subplot_type, cnt=cnt if cnt > 1 else "" + ) + scene = dict(domain={"x": x_domain, "y": y_domain}) layout[label] = scene - trace_key = ('subplot' - if subplot_type in _subplot_prop_named_subplot - else subplot_type) + trace_key = ( + "subplot" if subplot_type in _subplot_prop_named_subplot else subplot_type + ) subplot_ref = SubplotRef( - subplot_type=subplot_type, - layout_keys=(label,), - trace_kwargs={trace_key: label} + subplot_type=subplot_type, layout_keys=(label,), trace_kwargs={trace_key: label} ) # increment max_subplot_id @@ -957,10 +970,9 @@ def _init_subplot_single( def _init_subplot_domain(x_domain, y_domain): # No change to layout since domain traces are labeled individually subplot_ref = SubplotRef( - subplot_type='domain', + subplot_type="domain", layout_keys=(), - trace_kwargs={ - 'domain': {'x': tuple(x_domain), 'y': tuple(y_domain)}} + trace_kwargs={"domain": {"x": tuple(x_domain), "y": tuple(y_domain)}}, ) return (subplot_ref,) @@ -968,19 +980,20 @@ def _init_subplot_domain(x_domain, y_domain): def _subplot_type_for_trace_type(trace_type): from plotly.validators import DataValidator + trace_validator = DataValidator() if trace_type in trace_validator.class_strs_map: # subplot_type is a trace name, find the subplot type for trace - trace = trace_validator.validate_coerce([{'type': trace_type}])[0] - if 'domain' in trace: - return 'domain' - elif 'xaxis' in trace and 'yaxis' in trace: - return 'xy' - elif 'geo' in trace: - return 'geo' - elif 'scene' in trace: - return 'scene' - elif 'subplot' in trace: + trace = trace_validator.validate_coerce([{"type": trace_type}])[0] + if "domain" in trace: + return "domain" + elif "xaxis" in trace and "yaxis" in trace: + return "xy" + elif "geo" in trace: + return "geo" + elif "scene" in trace: + return "scene" + elif "subplot" in trace: for t in _subplot_prop_named_subplot: try: trace.subplot = t @@ -1005,15 +1018,13 @@ def _validate_coerce_subplot_type(subplot_type): subplot_type = _subplot_type_for_trace_type(subplot_type) if subplot_type is None: - raise ValueError('Unsupported subplot type: {}' - .format(repr(orig_subplot_type))) + raise ValueError("Unsupported subplot type: {}".format(repr(orig_subplot_type))) else: return subplot_type def _init_subplot( - layout, subplot_type, secondary_y, - x_domain, y_domain, max_subplot_ids=None + layout, subplot_type, secondary_y, x_domain, y_domain, max_subplot_ids=None ): # Normalize subplot type subplot_type = _validate_coerce_subplot_type(subplot_type) @@ -1027,7 +1038,7 @@ def _init_subplot( x_domain = [max(0.0, x_domain[0]), min(1.0, x_domain[1])] y_domain = [max(0.0, y_domain[0]), min(1.0, y_domain[1])] - if subplot_type == 'xy': + if subplot_type == "xy": subplot_refs = _init_subplot_xy( layout, secondary_y, x_domain, y_domain, max_subplot_ids ) @@ -1035,11 +1046,10 @@ def _init_subplot( subplot_refs = _init_subplot_single( layout, subplot_type, x_domain, y_domain, max_subplot_ids ) - elif subplot_type == 'domain': + elif subplot_type == "domain": subplot_refs = _init_subplot_domain(x_domain, y_domain) else: - raise ValueError('Unsupported subplot type: {}' - .format(repr(subplot_type))) + raise ValueError("Unsupported subplot type: {}".format(repr(subplot_type))) return subplot_refs @@ -1051,10 +1061,7 @@ def _get_cartesian_label(x_or_y, r, c, cnt): def _build_subplot_title_annotations( - subplot_titles, - list_of_domains, - title_edge='top', - offset=0 + subplot_titles, list_of_domains, title_edge="top", offset=0 ): # If shared_axes is False (default) use list_of_domains # This is used for insets and irregular layouts @@ -1064,10 +1071,10 @@ def _build_subplot_title_annotations( subtitle_pos_x = [] subtitle_pos_y = [] - if title_edge == 'top': + if title_edge == "top": text_angle = 0 - xanchor = 'center' - yanchor = 'bottom' + xanchor = "center" + yanchor = "bottom" for x_domains in x_dom: subtitle_pos_x.append(sum(x_domains) / 2.0) @@ -1076,10 +1083,10 @@ def _build_subplot_title_annotations( yshift = offset xshift = 0 - elif title_edge == 'bottom': + elif title_edge == "bottom": text_angle = 0 - xanchor = 'center' - yanchor = 'top' + xanchor = "center" + yanchor = "top" for x_domains in x_dom: subtitle_pos_x.append(sum(x_domains) / 2.0) @@ -1088,10 +1095,10 @@ def _build_subplot_title_annotations( yshift = -offset xshift = 0 - elif title_edge == 'right': + elif title_edge == "right": text_angle = 90 - xanchor = 'left' - yanchor = 'middle' + xanchor = "left" + yanchor = "middle" for x_domains in x_dom: subtitle_pos_x.append(x_domains[1]) @@ -1100,10 +1107,10 @@ def _build_subplot_title_annotations( yshift = 0 xshift = offset - elif title_edge == 'left': + elif title_edge == "left": text_angle = -90 - xanchor = 'right' - yanchor = 'middle' + xanchor = "right" + yanchor = "middle" for x_domains in x_dom: subtitle_pos_x.append(x_domains[0]) @@ -1113,8 +1120,7 @@ def _build_subplot_title_annotations( yshift = 0 xshift = -offset else: - raise ValueError("Invalid annotation edge '{edge}'" - .format(edge=title_edge)) + raise ValueError("Invalid annotation edge '{edge}'".format(edge=title_edge)) plot_titles = [] for index in range(len(subplot_titles)): @@ -1122,25 +1128,25 @@ def _build_subplot_title_annotations( pass else: annot = { - 'y': subtitle_pos_y[index], - 'xref': 'paper', - 'x': subtitle_pos_x[index], - 'yref': 'paper', - 'text': subplot_titles[index], - 'showarrow': False, - 'font': dict(size=16), - 'xanchor': xanchor, - 'yanchor': yanchor, + "y": subtitle_pos_y[index], + "xref": "paper", + "x": subtitle_pos_x[index], + "yref": "paper", + "text": subplot_titles[index], + "showarrow": False, + "font": dict(size=16), + "xanchor": xanchor, + "yanchor": yanchor, } if xshift != 0: - annot['xshift'] = xshift + annot["xshift"] = xshift if yshift != 0: - annot['yshift'] = yshift + annot["yshift"] = yshift if text_angle != 0: - annot['textangle'] = text_angle + annot["textangle"] = text_angle plot_titles.append(annot) return plot_titles @@ -1157,48 +1163,49 @@ def _build_grid_str(specs, grid_ref, insets, insets_ref, row_seq): s_str = "[ " # cell start string e_str = " ]" # cell end string - s_top = '⎡ ' # U+23A1 - s_mid = '⎢ ' # U+23A2 - s_bot = '⎣ ' # U+23A3 + s_top = "⎡ " # U+23A1 + s_mid = "⎢ " # U+23A2 + s_bot = "⎣ " # U+23A3 - e_top = ' ⎤' # U+23A4 - e_mid = ' ⎟' # U+239F - e_bot = ' ⎦' # U+23A6 + e_top = " ⎤" # U+23A4 + e_mid = " ⎟" # U+239F + e_bot = " ⎦" # U+23A6 - colspan_str = ' -' # colspan string - rowspan_str = ' :' # rowspan string - empty_str = ' (empty) ' # empty cell string + colspan_str = " -" # colspan string + rowspan_str = " :" # rowspan string + empty_str = " (empty) " # empty cell string # Init grid_str with intro message grid_str = "This is the format of your plot grid:\n" # Init tmp list of lists of strings (sorta like 'grid_ref' but w/ strings) - _tmp = [['' for c in range(cols)] for r in range(rows)] + _tmp = [["" for c in range(cols)] for r in range(rows)] # Define cell string as function of (r, c) and grid_ref def _get_cell_str(r, c, subplot_refs): - layout_keys = sorted({ - k - for ref in subplot_refs - for k in ref.layout_keys - }) + layout_keys = sorted({k for ref in subplot_refs for k in ref.layout_keys}) - ref_str = ','.join(layout_keys) + ref_str = ",".join(layout_keys) # Replace yaxis2 -> y2 - ref_str = ref_str.replace('axis', '') - return '({r},{c}) {ref}'.format( - r=r + 1, - c=c + 1, - ref=ref_str) + ref_str = ref_str.replace("axis", "") + return "({r},{c}) {ref}".format(r=r + 1, c=c + 1, ref=ref_str) # Find max len of _cell_str, add define a padding function - cell_len = max([len(_get_cell_str(r, c, ref)) - for r, row_ref in enumerate(grid_ref) - for c, ref in enumerate(row_ref) - if ref]) + len(s_str) + len(e_str) + cell_len = ( + max( + [ + len(_get_cell_str(r, c, ref)) + for r, row_ref in enumerate(grid_ref) + for c, ref in enumerate(row_ref) + if ref + ] + ) + + len(s_str) + + len(e_str) + ) def _pad(s, cell_len=cell_len): - return ' ' * (cell_len - len(s)) + return " " * (cell_len - len(s)) # Loop through specs, fill in _tmp for r, spec_row in enumerate(specs): @@ -1206,44 +1213,46 @@ def _pad(s, cell_len=cell_len): ref = grid_ref[r][c] if ref is None: - if _tmp[r][c] == '': + if _tmp[r][c] == "": _tmp[r][c] = empty_str + _pad(empty_str) continue - if spec['rowspan'] > 1: + if spec["rowspan"] > 1: cell_str = s_top + _get_cell_str(r, c, ref) else: cell_str = s_str + _get_cell_str(r, c, ref) - if spec['colspan'] > 1: - for cc in range(1, spec['colspan'] - 1): + if spec["colspan"] > 1: + for cc in range(1, spec["colspan"] - 1): _tmp[r][c + cc] = colspan_str + _pad(colspan_str) - if spec['rowspan'] > 1: - _tmp[r][c + spec['colspan'] - 1] = \ - (colspan_str + _pad(colspan_str + e_str)) + e_top + if spec["rowspan"] > 1: + _tmp[r][c + spec["colspan"] - 1] = ( + colspan_str + _pad(colspan_str + e_str) + ) + e_top else: - _tmp[r][c + spec['colspan'] - 1] = \ - (colspan_str + _pad(colspan_str + e_str)) + e_str + _tmp[r][c + spec["colspan"] - 1] = ( + colspan_str + _pad(colspan_str + e_str) + ) + e_str else: - padding = ' ' * (cell_len - len(cell_str) - 2) - if spec['rowspan'] > 1: + padding = " " * (cell_len - len(cell_str) - 2) + if spec["rowspan"] > 1: cell_str += padding + e_top else: cell_str += padding + e_str - if spec['rowspan'] > 1: - for cc in range(spec['colspan']): - for rr in range(1, spec['rowspan']): + if spec["rowspan"] > 1: + for cc in range(spec["colspan"]): + for rr in range(1, spec["rowspan"]): row_str = rowspan_str + _pad(rowspan_str) if cc == 0: - if rr < spec['rowspan'] - 1: + if rr < spec["rowspan"] - 1: row_str = s_mid + row_str[2:] else: row_str = s_bot + row_str[2:] - if cc == spec['colspan'] - 1: - if rr < spec['rowspan'] - 1: + if cc == spec["colspan"] - 1: + if rr < spec["rowspan"] - 1: row_str = row_str[:-2] + e_mid else: row_str = row_str[:-2] + e_bot @@ -1254,76 +1263,89 @@ def _pad(s, cell_len=cell_len): # Append grid_str using data from _tmp in the correct order for r in row_seq[::-1]: - grid_str += sp.join(_tmp[r]) + '\n' + grid_str += sp.join(_tmp[r]) + "\n" # Append grid_str to include insets info if insets: grid_str += "\nWith insets:\n" for i_inset, inset in enumerate(insets): - r = inset['cell'][0] - 1 - c = inset['cell'][1] - 1 + r = inset["cell"][0] - 1 + c = inset["cell"][1] - 1 ref = grid_ref[r][c] - subplot_labels_str = ','.join(insets_ref[i_inset][0].layout_keys) + subplot_labels_str = ",".join(insets_ref[i_inset][0].layout_keys) # Replace, e.g., yaxis2 -> y2 - subplot_labels_str = subplot_labels_str.replace('axis', '') + subplot_labels_str = subplot_labels_str.replace("axis", "") grid_str += ( - s_str + subplot_labels_str - + e_str + ' over ' + - s_str + _get_cell_str(r, c, ref) + e_str + '\n' + s_str + + subplot_labels_str + + e_str + + " over " + + s_str + + _get_cell_str(r, c, ref) + + e_str + + "\n" ) return grid_str -def _set_trace_grid_reference( - trace, layout, grid_ref, row, col, secondary_y=False): +def _set_trace_grid_reference(trace, layout, grid_ref, row, col, secondary_y=False): if row <= 0: - raise Exception("Row value is out of range. " - "Note: the starting cell is (1, 1)") + raise Exception( + "Row value is out of range. " "Note: the starting cell is (1, 1)" + ) if col <= 0: - raise Exception("Col value is out of range. " - "Note: the starting cell is (1, 1)") + raise Exception( + "Col value is out of range. " "Note: the starting cell is (1, 1)" + ) try: subplot_refs = grid_ref[row - 1][col - 1] except IndexError: - raise Exception("The (row, col) pair sent is out of " - "range. Use Figure.print_grid to view the " - "subplot grid. ") + raise Exception( + "The (row, col) pair sent is out of " + "range. Use Figure.print_grid to view the " + "subplot grid. " + ) if not subplot_refs: - raise ValueError(""" + raise ValueError( + """ No subplot specified at grid position ({row}, {col})""".format( - row=row, - col=col - )) + row=row, col=col + ) + ) if secondary_y: if len(subplot_refs) < 2: - raise ValueError(""" + raise ValueError( + """ Subplot with type '{subplot_type}' at grid position ({row}, {col}) was not created with the secondary_y spec property set to True. See the docstring for the specs argument to plotly.subplots.make_subplots for more information. -""") +""" + ) trace_kwargs = subplot_refs[1].trace_kwargs else: trace_kwargs = subplot_refs[0].trace_kwargs for k in trace_kwargs: if k not in trace: - raise ValueError("""\ + raise ValueError( + """\ Trace type '{typ}' is not compatible with subplot type '{subplot_type}' at grid position ({row}, {col}) See the docstring for the specs argument to plotly.subplots.make_subplot for more information on subplot types""".format( - typ=trace.type, - subplot_type=subplot_refs[0].subplot_type, - row=row, - col=col - )) + typ=trace.type, + subplot_type=subplot_refs[0].subplot_type, + row=row, + col=col, + ) + ) # Update trace reference trace.update(trace_kwargs) @@ -1333,32 +1355,34 @@ def _get_grid_subplot(fig, row, col, secondary_y=False): try: grid_ref = fig._grid_ref except AttributeError: - raise Exception("In order to reference traces by row and column, " - "you must first use " - "plotly.tools.make_subplots " - "to create the figure with a subplot grid.") + raise Exception( + "In order to reference traces by row and column, " + "you must first use " + "plotly.tools.make_subplots " + "to create the figure with a subplot grid." + ) rows = len(grid_ref) cols = len(grid_ref[0]) # Validate row if not isinstance(row, int) or row < 1 or rows < row: - raise ValueError(""" + raise ValueError( + """ The row argument to get_subplot must be an integer where 1 <= row <= {rows} Received value of type {typ}: {val}""".format( - rows=rows, - typ=type(row), - val=repr(row) - )) + rows=rows, typ=type(row), val=repr(row) + ) + ) if not isinstance(col, int) or col < 1 or cols < col: - raise ValueError(""" + raise ValueError( + """ The col argument to get_subplot must be an integer where 1 <= row <= {cols} Received value of type {typ}: {val}""".format( - cols=cols, - typ=type(col), - val=repr(col) - )) + cols=cols, typ=type(col), val=repr(col) + ) + ) subplot_refs = fig._grid_ref[row - 1][col - 1] if not subplot_refs: @@ -1373,59 +1397,61 @@ def _get_grid_subplot(fig, row, col, secondary_y=False): layout_keys = subplot_refs[0].layout_keys if len(layout_keys) == 0: - return SubplotDomain(**subplot_refs[0].trace_kwargs['domain']) + return SubplotDomain(**subplot_refs[0].trace_kwargs["domain"]) elif len(layout_keys) == 1: return fig.layout[layout_keys[0]] elif len(layout_keys) == 2: return SubplotXY( - xaxis=fig.layout[layout_keys[0]], - yaxis=fig.layout[layout_keys[1]]) + xaxis=fig.layout[layout_keys[0]], yaxis=fig.layout[layout_keys[1]] + ) else: - raise ValueError(""" -Unexpected subplot type with layout_keys of {}""".format(layout_keys)) + raise ValueError( + """ +Unexpected subplot type with layout_keys of {}""".format( + layout_keys + ) + ) def _get_subplot_ref_for_trace(trace): - if 'domain' in trace: + if "domain" in trace: return SubplotRef( - subplot_type='domain', + subplot_type="domain", layout_keys=(), - trace_kwargs={ - 'domain': {'x': trace.domain.x, - 'y': trace.domain.y}} + trace_kwargs={"domain": {"x": trace.domain.x, "y": trace.domain.y}}, ) - elif 'xaxis' in trace and 'yaxis' in trace: - xaxis_name = 'xaxis' + trace.xaxis[1:] if trace.xaxis else 'xaxis' - yaxis_name = 'yaxis' + trace.yaxis[1:] if trace.yaxis else 'yaxis' + elif "xaxis" in trace and "yaxis" in trace: + xaxis_name = "xaxis" + trace.xaxis[1:] if trace.xaxis else "xaxis" + yaxis_name = "yaxis" + trace.yaxis[1:] if trace.yaxis else "yaxis" return SubplotRef( - subplot_type='xy', + subplot_type="xy", layout_keys=(xaxis_name, yaxis_name), - trace_kwargs={'xaxis': trace.xaxis, 'yaxis': trace.yaxis} + trace_kwargs={"xaxis": trace.xaxis, "yaxis": trace.yaxis}, ) - elif 'geo' in trace: + elif "geo" in trace: return SubplotRef( - subplot_type='geo', + subplot_type="geo", layout_keys=(trace.geo,), - trace_kwargs={'geo': trace.geo} + trace_kwargs={"geo": trace.geo}, ) - elif 'scene' in trace: + elif "scene" in trace: return SubplotRef( - subplot_type='scene', + subplot_type="scene", layout_keys=(trace.scene,), - trace_kwargs={'scene': trace.scene} + trace_kwargs={"scene": trace.scene}, ) - elif 'subplot' in trace: + elif "subplot" in trace: for t in _subplot_prop_named_subplot: try: - validator = trace._get_prop_validator('subplot') + validator = trace._get_prop_validator("subplot") validator.validate_coerce(t) return SubplotRef( subplot_type=t, layout_keys=(trace.subplot,), - trace_kwargs={'subplot': trace.subplot} + trace_kwargs={"subplot": trace.subplot}, ) except ValueError: pass diff --git a/packages/python/plotly/plotly/tests/test_core/test_colors/test_colors.py b/packages/python/plotly/plotly/tests/test_core/test_colors/test_colors.py index 36da8c6cc59..053b595e507 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_colors/test_colors.py +++ b/packages/python/plotly/plotly/tests/test_core/test_colors/test_colors.py @@ -7,118 +7,134 @@ class TestColors(TestCase): - def test_validate_colors(self): # test string input - color_string = 'foo' + color_string = "foo" - pattern = ("If your colors variable is a string, it must be a " - "Plotly scale, an rgb color or a hex color.") + pattern = ( + "If your colors variable is a string, it must be a " + "Plotly scale, an rgb color or a hex color." + ) - self.assertRaisesRegexp(PlotlyError, pattern, colors.validate_colors, - color_string) + self.assertRaisesRegexp( + PlotlyError, pattern, colors.validate_colors, color_string + ) # test rgb color - color_string2 = 'rgb(265, 0, 0)' + color_string2 = "rgb(265, 0, 0)" - pattern2 = ("Whoops! The elements in your rgb colors tuples cannot " - "exceed 255.0.") + pattern2 = ( + "Whoops! The elements in your rgb colors tuples cannot " "exceed 255.0." + ) - self.assertRaisesRegexp(PlotlyError, pattern2, colors.validate_colors, - color_string2) + self.assertRaisesRegexp( + PlotlyError, pattern2, colors.validate_colors, color_string2 + ) # test tuple color color_tuple = (1, 1, 2) - pattern3 = ("Whoops! The elements in your colors tuples cannot " - "exceed 1.0.") + pattern3 = "Whoops! The elements in your colors tuples cannot " "exceed 1.0." - self.assertRaisesRegexp(PlotlyError, pattern3, colors.validate_colors, - color_tuple) + self.assertRaisesRegexp( + PlotlyError, pattern3, colors.validate_colors, color_tuple + ) def test_convert_colors_to_same_type(self): # test colortype - color_tuple = ['#aaaaaa', '#bbbbbb', '#cccccc'] + color_tuple = ["#aaaaaa", "#bbbbbb", "#cccccc"] scale = [0, 1] - self.assertRaises(PlotlyError, colors.convert_colors_to_same_type, - color_tuple, scale=scale) + self.assertRaises( + PlotlyError, colors.convert_colors_to_same_type, color_tuple, scale=scale + ) # test colortype color_tuple = (1, 1, 1) colortype = 2 - pattern2 = ("You must select either rgb or tuple for your colortype " - "variable.") + pattern2 = "You must select either rgb or tuple for your colortype " "variable." - self.assertRaisesRegexp(PlotlyError, pattern2, - colors.convert_colors_to_same_type, - color_tuple, colortype) + self.assertRaisesRegexp( + PlotlyError, + pattern2, + colors.convert_colors_to_same_type, + color_tuple, + colortype, + ) def test_convert_dict_colors_to_same_type(self): # test colortype - color_dict = dict(apple='rgb(1, 1, 1)') + color_dict = dict(apple="rgb(1, 1, 1)") colortype = 2 - pattern = ("You must select either rgb or tuple for your colortype " - "variable.") + pattern = "You must select either rgb or tuple for your colortype " "variable." - self.assertRaisesRegexp(PlotlyError, pattern, - colors.convert_dict_colors_to_same_type, - color_dict, colortype) + self.assertRaisesRegexp( + PlotlyError, + pattern, + colors.convert_dict_colors_to_same_type, + color_dict, + colortype, + ) def test_validate_scale_values(self): # test that scale length is at least 2 scale = [0] - pattern = ("You must input a list of scale values that has at least " - "two values.") + pattern = ( + "You must input a list of scale values that has at least " "two values." + ) - self.assertRaisesRegexp(PlotlyError, pattern, - colors.validate_scale_values, - scale) + self.assertRaisesRegexp( + PlotlyError, pattern, colors.validate_scale_values, scale + ) # test if first and last number is 0 and 1 respectively scale = [0, 1.1] - pattern = ("The first and last number in your scale must be 0.0 and " - "1.0 respectively.") + pattern = ( + "The first and last number in your scale must be 0.0 and " + "1.0 respectively." + ) - self.assertRaisesRegexp(PlotlyError, pattern, - colors.validate_scale_values, - scale) + self.assertRaisesRegexp( + PlotlyError, pattern, colors.validate_scale_values, scale + ) # test numbers increase scale = [0, 2, 1] - pattern = ("'scale' must be a list that contains a strictly " - "increasing sequence of numbers.") + pattern = ( + "'scale' must be a list that contains a strictly " + "increasing sequence of numbers." + ) - self.assertRaisesRegexp(PlotlyError, pattern, - colors.validate_scale_values, - scale) + self.assertRaisesRegexp( + PlotlyError, pattern, colors.validate_scale_values, scale + ) def test_make_colorscale(self): # test minimum colors length color_list = [(0, 0, 0)] - pattern = ( - "You must input a list of colors that has at least two colors." - ) + pattern = "You must input a list of colors that has at least two colors." - self.assertRaisesRegexp(PlotlyError, pattern, colors.make_colorscale, - color_list) + self.assertRaisesRegexp( + PlotlyError, pattern, colors.make_colorscale, color_list + ) # test length of colors and scale color_list2 = [(0, 0, 0), (1, 1, 1)] scale = [0] - pattern2 = ("The length of colors and scale must be the same.") + pattern2 = "The length of colors and scale must be the same." - self.assertRaisesRegexp(PlotlyError, pattern2, colors.make_colorscale, - color_list2, scale) + self.assertRaisesRegexp( + PlotlyError, pattern2, colors.make_colorscale, color_list2, scale + ) diff --git a/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_add_traces.py b/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_add_traces.py index 3d85dceee7b..43eaca6381c 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_add_traces.py +++ b/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_add_traces.py @@ -12,48 +12,54 @@ class TestAddTracesMessage(TestCase): def setUp(self): # Construct initial scatter object - self.figure = go.Figure(data=[ - go.Scatter(y=[3, 2, 1], marker={'color': 'green'}), - go.Bar(y=[3, 2, 1, 0, -1], marker={'opacity': 0.5})], - layout={'xaxis': {'range': [-1, 4]}}, - frames=[go.Frame( - layout={'yaxis': - {'title': 'f1'}})]) + self.figure = go.Figure( + data=[ + go.Scatter(y=[3, 2, 1], marker={"color": "green"}), + go.Bar(y=[3, 2, 1, 0, -1], marker={"opacity": 0.5}), + ], + layout={"xaxis": {"range": [-1, 4]}}, + frames=[go.Frame(layout={"yaxis": {"title": "f1"}})], + ) # Mock out the message method self.figure._send_addTraces_msg = MagicMock() def test_add_trace(self): # Add a trace - self.figure.add_trace(go.Sankey(arrangement='snap')) + self.figure.add_trace(go.Sankey(arrangement="snap")) # Check access properties - self.assertEqual(self.figure.data[-1].type, 'sankey') - self.assertEqual(self.figure.data[-1].arrangement, 'snap') + self.assertEqual(self.figure.data[-1].type, "sankey") + self.assertEqual(self.figure.data[-1].arrangement, "snap") # Check message self.figure._send_addTraces_msg.assert_called_once_with( - [{'type': 'sankey', 'arrangement': 'snap'}]) + [{"type": "sankey", "arrangement": "snap"}] + ) def test_add_traces(self): # Add two traces - self.figure.add_traces([go.Sankey(arrangement='snap'), - go.Histogram2dContour( - line={'color': 'cyan'})]) + self.figure.add_traces( + [ + go.Sankey(arrangement="snap"), + go.Histogram2dContour(line={"color": "cyan"}), + ] + ) # Check access properties - self.assertEqual(self.figure.data[-2].type, 'sankey') - self.assertEqual(self.figure.data[-2].arrangement, 'snap') + self.assertEqual(self.figure.data[-2].type, "sankey") + self.assertEqual(self.figure.data[-2].arrangement, "snap") - self.assertEqual(self.figure.data[-1].type, 'histogram2dcontour') - self.assertEqual(self.figure.data[-1].line.color, 'cyan') + self.assertEqual(self.figure.data[-1].type, "histogram2dcontour") + self.assertEqual(self.figure.data[-1].line.color, "cyan") # Check message new_uid1 = self.figure.data[-2].uid new_uid2 = self.figure.data[-1].uid self.figure._send_addTraces_msg.assert_called_once_with( - [{'type': 'sankey', - 'arrangement': 'snap'}, - {'type': 'histogram2dcontour', - 'line': {'color': 'cyan'}}]) + [ + {"type": "sankey", "arrangement": "snap"}, + {"type": "histogram2dcontour", "line": {"color": "cyan"}}, + ] + ) diff --git a/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_batch_animate.py b/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_batch_animate.py index c482756288a..e3bfd1d0385 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_batch_animate.py +++ b/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_batch_animate.py @@ -12,51 +12,53 @@ class TestBatchAnimateMessage(TestCase): def setUp(self): # Construct initial scatter object - self.figure = go.Figure(data=[ - go.Scatter(y=[3, 2, 1], marker={'color': 'green'}), - go.Bar(y=[3, 2, 1, 0, -1], marker={'opacity': 0.5})], - layout={'xaxis': {'range': [-1, 4]}}, - frames=[go.Frame( - layout={'yaxis': - {'title': 'f1'}})]) + self.figure = go.Figure( + data=[ + go.Scatter(y=[3, 2, 1], marker={"color": "green"}), + go.Bar(y=[3, 2, 1, 0, -1], marker={"opacity": 0.5}), + ], + layout={"xaxis": {"range": [-1, 4]}}, + frames=[go.Frame(layout={"yaxis": {"title": "f1"}})], + ) # Mock out the message method self.figure._send_animate_msg = MagicMock() def test_batch_animate(self): - with self.figure.batch_animate(easing='elastic', duration=1200): + with self.figure.batch_animate(easing="elastic", duration=1200): # Assign trace property - self.figure.data[0].marker.color = 'yellow' + self.figure.data[0].marker.color = "yellow" self.figure.data[1].marker.opacity = 0.9 # Assign layout property self.figure.layout.xaxis.range = [10, 20] # Assign frame property - self.figure.frames[0].layout.yaxis.title.text = 'f2' + self.figure.frames[0].layout.yaxis.title.text = "f2" # Make sure that trace/layout assignments haven't been applied yet - self.assertEqual(self.figure.data[0].marker.color, 'green') + self.assertEqual(self.figure.data[0].marker.color, "green") self.assertEqual(self.figure.data[1].marker.opacity, 0.5) self.assertEqual(self.figure.layout.xaxis.range, (-1, 4)) # Expect the frame update to be applied immediately - self.assertEqual( - self.figure.frames[0].layout.yaxis.title.text, 'f2') + self.assertEqual(self.figure.frames[0].layout.yaxis.title.text, "f2") # Make sure that trace/layout assignments have been applied after # context exits - self.assertEqual(self.figure.data[0].marker.color, 'yellow') + self.assertEqual(self.figure.data[0].marker.color, "yellow") self.assertEqual(self.figure.data[1].marker.opacity, 0.9) self.assertEqual(self.figure.layout.xaxis.range, (10, 20)) # Check that update message was sent self.figure._send_animate_msg.assert_called_once_with( - styles_data=[{'marker.color': 'yellow'}, {'marker.opacity': 0.9}], - relayout_data={'xaxis.range': [10, 20]}, + styles_data=[{"marker.color": "yellow"}, {"marker.opacity": 0.9}], + relayout_data={"xaxis.range": [10, 20]}, trace_indexes=[0, 1], - animation_opts={'transition': {'easing': 'elastic', - 'duration': 1200}, - 'frame': {'duration': 1200}}) + animation_opts={ + "transition": {"easing": "elastic", "duration": 1200}, + "frame": {"duration": 1200}, + }, + ) diff --git a/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_move_delete_traces.py b/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_move_delete_traces.py index b622c98819b..81aae892228 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_move_delete_traces.py +++ b/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_move_delete_traces.py @@ -13,11 +13,13 @@ class TestMoveDeleteTracesMessages(TestCase): def setUp(self): # Construct initial scatter object - self.figure = go.Figure(data=[ - go.Scatter(y=[3, 2, 1], marker={'color': 'green'}), - go.Bar(y=[3, 2, 1, 0, -1], marker={'opacity': 0.5}), - go.Sankey(arrangement='snap') - ]) + self.figure = go.Figure( + data=[ + go.Scatter(y=[3, 2, 1], marker={"color": "green"}), + go.Bar(y=[3, 2, 1, 0, -1], marker={"opacity": 0.5}), + go.Sankey(arrangement="snap"), + ] + ) # Mock out the message methods self.figure._send_moveTraces_msg = MagicMock() @@ -30,8 +32,7 @@ def test_move_traces_swap(self): self.figure.data = [traces[2], traces[1], traces[0]] # Check messages - self.figure._send_moveTraces_msg.assert_called_once_with( - [0, 1, 2], [2, 1, 0]) + self.figure._send_moveTraces_msg.assert_called_once_with([0, 1, 2], [2, 1, 0]) self.assertFalse(self.figure._send_deleteTraces_msg.called) def test_move_traces_cycle(self): @@ -41,8 +42,7 @@ def test_move_traces_cycle(self): self.figure.data = [traces[2], traces[0], traces[1]] # Check messages - self.figure._send_moveTraces_msg.assert_called_once_with( - [0, 1, 2], [1, 2, 0]) + self.figure._send_moveTraces_msg.assert_called_once_with([0, 1, 2], [1, 2, 0]) self.assertFalse(self.figure._send_deleteTraces_msg.called) def test_delete_single_traces(self): @@ -78,19 +78,14 @@ def test_move_and_delete_traces(self): # Check messages self.figure._send_deleteTraces_msg.assert_called_once_with([1]) - self.figure._send_moveTraces_msg.assert_called_once_with( - [0, 1], [1, 0]) + self.figure._send_moveTraces_msg.assert_called_once_with([0, 1], [1, 0]) @raises(ValueError) def test_validate_assigned_traces_are_subset(self): traces = self.figure.data - self.figure.data = [traces[2], - go.Scatter(y=[3, 2, 1]), - traces[1]] + self.figure.data = [traces[2], go.Scatter(y=[3, 2, 1]), traces[1]] @raises(ValueError) def test_validate_assigned_traces_are_not_duplicates(self): traces = self.figure.data - self.figure.data = [traces[2], - traces[1], - traces[1]] \ No newline at end of file + self.figure.data = [traces[2], traces[1], traces[1]] diff --git a/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_on_change.py b/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_on_change.py index 148497c8986..abd70a97706 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_on_change.py +++ b/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_on_change.py @@ -13,15 +13,14 @@ class TestOnChangeCallbacks(TestCase): def setUp(self): # Construct initial scatter object - self.figure = go.Figure(data=[ - go.Scatter(y=[3, 2, 1], marker={'color': 'green'}), - go.Bar(y=[3, 2, 1, 0, -1], marker={'opacity': 0.5})], - layout={ - 'xaxis': {'range': [-1, 4]}, - 'width': 1000}, - frames=[go.Frame( - layout={'yaxis': - {'title': 'f1'}})]) + self.figure = go.Figure( + data=[ + go.Scatter(y=[3, 2, 1], marker={"color": "green"}), + go.Bar(y=[3, 2, 1, 0, -1], marker={"opacity": 0.5}), + ], + layout={"xaxis": {"range": [-1, 4]}, "width": 1000}, + frames=[go.Frame(layout={"yaxis": {"title": "f1"}})], + ) # on_change validation # -------------------- @@ -29,22 +28,22 @@ def setUp(self): def test_raise_if_no_figure(self): scatt = go.Scatter() fn = MagicMock() - scatt.on_change(fn, 'x') + scatt.on_change(fn, "x") @raises(ValueError) def test_raise_on_frame_hierarchy(self): fn = MagicMock() - self.figure.frames[0].layout.xaxis.on_change(fn, 'range') + self.figure.frames[0].layout.xaxis.on_change(fn, "range") @raises(ValueError) def test_validate_property_path_nested(self): fn = MagicMock() - self.figure.layout.xaxis.on_change(fn, 'bogus') + self.figure.layout.xaxis.on_change(fn, "bogus") @raises(ValueError) def test_validate_property_path_nested(self): fn = MagicMock() - self.figure.layout.on_change(fn, 'xaxis.titlefont.bogus') + self.figure.layout.on_change(fn, "xaxis.titlefont.bogus") # Python triggered changes # ------------------------ @@ -52,8 +51,8 @@ def test_single_prop_callback_on_assignment(self): # Install callbacks on 'x', and 'y' property of first trace fn_x = MagicMock() fn_y = MagicMock() - self.figure.data[0].on_change(fn_x, 'x') - self.figure.data[0].on_change(fn_y, 'y') + self.figure.data[0].on_change(fn_x, "x") + self.figure.data[0].on_change(fn_y, "y") # Setting x and y on second trace does not trigger callback self.figure.data[1].x = [1, 2, 3] @@ -74,24 +73,20 @@ def test_single_prop_callback_on_assignment(self): def test_multi_prop_callback_on_assignment_trace(self): # Register callback if either 'x' or 'y' changes on first trace fn = MagicMock() - self.figure.data[0].on_change(fn, 'x', 'y') + self.figure.data[0].on_change(fn, "x", "y") # Perform assignment on one of the properties self.figure.data[0].x = [11, 22, 33] # Check function called once with new value of x and old value of y - fn.assert_called_once_with(self.figure.data[0], - (11, 22, 33), - (3, 2, 1)) + fn.assert_called_once_with(self.figure.data[0], (11, 22, 33), (3, 2, 1)) def test_multi_prop_callback_on_assignment_layout(self): fn_range = MagicMock() # Register callback if either axis range is changed. Both tuple and # dot syntax are supported for nested properties - self.figure.layout.on_change(fn_range, - ('xaxis', 'range'), - 'yaxis.range') + self.figure.layout.on_change(fn_range, ("xaxis", "range"), "yaxis.range") self.figure.layout.xaxis.range = [-10, 10] fn_range.assert_called_once_with(self.figure.layout, (-10, 10), None) @@ -102,98 +97,78 @@ def test_multi_prop_callback_on_assignment_layout_nested(self): fn_layout = MagicMock() # Register callback on change to family property under titlefont - self.figure.layout.xaxis.titlefont.on_change(fn_titlefont, - 'family') + self.figure.layout.xaxis.titlefont.on_change(fn_titlefont, "family") # Register callback on the range and titlefont.family properties # under xaxis - self.figure.layout.xaxis.on_change(fn_xaxis, - 'range', - 'title.font.family') + self.figure.layout.xaxis.on_change(fn_xaxis, "range", "title.font.family") # Register callback on xaxis object itself - self.figure.layout.on_change(fn_layout, 'xaxis') + self.figure.layout.on_change(fn_layout, "xaxis") # Assign a new xaxis range and titlefont.family - self.figure.layout.xaxis.title.font.family = 'courier' + self.figure.layout.xaxis.title.font.family = "courier" # Check that all callbacks were executed once fn_titlefont.assert_called_once_with( - self.figure.layout.xaxis.title.font, - 'courier') + self.figure.layout.xaxis.title.font, "courier" + ) - fn_xaxis.assert_called_once_with( - self.figure.layout.xaxis, - (-1, 4), - 'courier') + fn_xaxis.assert_called_once_with(self.figure.layout.xaxis, (-1, 4), "courier") fn_layout.assert_called_once_with( self.figure.layout, - go.layout.XAxis(range=(-1, 4), - title={'font': {'family': 'courier'}})) + go.layout.XAxis(range=(-1, 4), title={"font": {"family": "courier"}}), + ) def test_prop_callback_nested_arrays(self): # Initialize updatemenus and buttons self.figure.layout.updatemenus = [{}, {}, {}] self.figure.layout.updatemenus[2].buttons = [{}, {}] - self.figure.layout.updatemenus[2].buttons[1].label = 'button 1' - self.figure.layout.updatemenus[2].buttons[1].method = 'relayout' + self.figure.layout.updatemenus[2].buttons[1].label = "button 1" + self.figure.layout.updatemenus[2].buttons[1].method = "relayout" # Register method callback fn_button = MagicMock() fn_layout = MagicMock() - self.figure.layout.updatemenus[2].buttons[1].on_change( - fn_button, 'method') + self.figure.layout.updatemenus[2].buttons[1].on_change(fn_button, "method") - self.figure.layout.on_change( - fn_layout, 'updatemenus[2].buttons[1].method') + self.figure.layout.on_change(fn_layout, "updatemenus[2].buttons[1].method") # Update button method - self.figure.layout.updatemenus[2].buttons[1].method = 'restyle' + self.figure.layout.updatemenus[2].buttons[1].method = "restyle" # Check that both callbacks are called once fn_button.assert_called_once_with( - self.figure.layout.updatemenus[2].buttons[1], 'restyle') + self.figure.layout.updatemenus[2].buttons[1], "restyle" + ) - fn_layout.assert_called_once_with(self.figure.layout, 'restyle') + fn_layout.assert_called_once_with(self.figure.layout, "restyle") def test_callback_on_update(self): fn_range = MagicMock() - self.figure.layout.on_change(fn_range, - 'xaxis.range', - 'yaxis.range') + self.figure.layout.on_change(fn_range, "xaxis.range", "yaxis.range") - self.figure.update({'layout': {'yaxis': {'range': [11, 22]}}}) - fn_range.assert_called_once_with(self.figure.layout, - (-1, 4), - (11, 22)) + self.figure.update({"layout": {"yaxis": {"range": [11, 22]}}}) + fn_range.assert_called_once_with(self.figure.layout, (-1, 4), (11, 22)) def test_callback_on_update_single_call(self): fn_range = MagicMock() - self.figure.layout.on_change(fn_range, - 'xaxis.range', - 'yaxis.range', - 'width') + self.figure.layout.on_change(fn_range, "xaxis.range", "yaxis.range", "width") - self.figure.update({'layout': { - 'xaxis': {'range': [-10, 10]}, - 'yaxis': {'range': [11, 22]}}}) + self.figure.update( + {"layout": {"xaxis": {"range": [-10, 10]}, "yaxis": {"range": [11, 22]}}} + ) # Even though both properties changed, callback should be called # only once with the new value of both properties - fn_range.assert_called_once_with(self.figure.layout, - (-10, 10), - (11, 22), - 1000) + fn_range.assert_called_once_with(self.figure.layout, (-10, 10), (11, 22), 1000) def test_callback_on_batch_update(self): fn_range = MagicMock() - self.figure.layout.on_change(fn_range, - 'xaxis.range', - 'yaxis.range', - 'width') + self.figure.layout.on_change(fn_range, "xaxis.range", "yaxis.range", "width") with self.figure.batch_update(): self.figure.layout.xaxis.range = [-10, 10] @@ -201,73 +176,50 @@ def test_callback_on_batch_update(self): # Check fn not called before context exits self.assertFalse(fn_range.called) - fn_range.assert_called_once_with(self.figure.layout, - (-10, 10), - None, - 500) + fn_range.assert_called_once_with(self.figure.layout, (-10, 10), None, 500) def test_callback_on_batch_animate(self): fn_range = MagicMock() - self.figure.layout.on_change(fn_range, - 'xaxis.range', - 'yaxis.range', - 'width') + self.figure.layout.on_change(fn_range, "xaxis.range", "yaxis.range", "width") with self.figure.batch_animate(): - self.figure['layout.xaxis.range'] = [-10, 10] - self.figure[('layout', 'yaxis', 'range')] = (11, 22) + self.figure["layout.xaxis.range"] = [-10, 10] + self.figure[("layout", "yaxis", "range")] = (11, 22) # Check fn not called before context exits self.assertFalse(fn_range.called) - fn_range.assert_called_once_with(self.figure.layout, - (-10, 10), - (11, 22), - 1000) + fn_range.assert_called_once_with(self.figure.layout, (-10, 10), (11, 22), 1000) def test_callback_on_plotly_relayout(self): fn_range = MagicMock() - self.figure.layout.on_change(fn_range, - 'xaxis.range', - 'yaxis.range', - 'width') + self.figure.layout.on_change(fn_range, "xaxis.range", "yaxis.range", "width") self.figure.plotly_relayout( - relayout_data={'xaxis.range': [-10, 10], - 'yaxis.range': [11, 22]}) + relayout_data={"xaxis.range": [-10, 10], "yaxis.range": [11, 22]} + ) - fn_range.assert_called_once_with(self.figure.layout, - (-10, 10), - (11, 22), - 1000) + fn_range.assert_called_once_with(self.figure.layout, (-10, 10), (11, 22), 1000) def test_callback_on_plotly_restyle(self): # Register callback if either 'x' or 'y' changes on first trace fn = MagicMock() - self.figure.data[0].on_change(fn, 'x', 'y') + self.figure.data[0].on_change(fn, "x", "y") # Perform assignment on one of pthe properties - self.figure.plotly_restyle({'x': [[11, 22, 33], - [1, 11, 111]]}, - trace_indexes=[0, 1]) + self.figure.plotly_restyle( + {"x": [[11, 22, 33], [1, 11, 111]]}, trace_indexes=[0, 1] + ) # Check function called once with new value of x and old value of y - fn.assert_called_once_with(self.figure.data[0], - (11, 22, 33), - (3, 2, 1)) + fn.assert_called_once_with(self.figure.data[0], (11, 22, 33), (3, 2, 1)) def test_callback_on_plotly_update(self): fn_range = MagicMock() - self.figure.layout.on_change(fn_range, - 'xaxis.range', - 'yaxis.range', - 'width') + self.figure.layout.on_change(fn_range, "xaxis.range", "yaxis.range", "width") self.figure.plotly_update( - restyle_data={'marker.color': 'blue'}, - relayout_data={'xaxis.range': [-10, 10], - 'yaxis.range': [11, 22]}) - - fn_range.assert_called_once_with(self.figure.layout, - (-10, 10), - (11, 22), - 1000) + restyle_data={"marker.color": "blue"}, + relayout_data={"xaxis.range": [-10, 10], "yaxis.range": [11, 22]}, + ) + + fn_range.assert_called_once_with(self.figure.layout, (-10, 10), (11, 22), 1000) diff --git a/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_plotly_relayout.py b/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_plotly_relayout.py index 74d8e2025d2..31bf548896e 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_plotly_relayout.py +++ b/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_plotly_relayout.py @@ -10,127 +10,145 @@ class TestRelayoutMessage(TestCase): - def setUp(self): # Construct with mocked _send_relayout_msg method - self.figure = go.Figure(layout={'xaxis': {'range': [-1, 4]}}) + self.figure = go.Figure(layout={"xaxis": {"range": [-1, 4]}}) # Mock out the message method self.figure._send_relayout_msg = MagicMock() def test_property_assignment_toplevel(self): - self.figure.layout.title.text = 'hello' - self.figure._send_relayout_msg.assert_called_once_with( - {'title.text': 'hello'}) + self.figure.layout.title.text = "hello" + self.figure._send_relayout_msg.assert_called_once_with({"title.text": "hello"}) def test_property_assignment_nested(self): - self.figure.layout.xaxis.title.font.family = 'courier' + self.figure.layout.xaxis.title.font.family = "courier" self.figure._send_relayout_msg.assert_called_once_with( - {'xaxis.title.font.family': 'courier'}) + {"xaxis.title.font.family": "courier"} + ) def test_property_assignment_nested_subplot2(self): # Initialize xaxis2 - self.figure.layout.xaxis2 = {'range': [0, 1]} + self.figure.layout.xaxis2 = {"range": [0, 1]} self.figure._send_relayout_msg.assert_called_once_with( - {'xaxis2': {'range': [0, 1]}}) + {"xaxis2": {"range": [0, 1]}} + ) # Reset mock and perform property assignment self.figure._send_relayout_msg = MagicMock() - self.figure.layout.xaxis2.title.font.family = 'courier' + self.figure.layout.xaxis2.title.font.family = "courier" self.figure._send_relayout_msg.assert_called_once_with( - {'xaxis2.title.font.family': 'courier'}) + {"xaxis2.title.font.family": "courier"} + ) def test_property_assignment_nested_array(self): # Initialize images self.figure.layout.updatemenus = [ {}, - go.layout.Updatemenu(buttons=[ - {}, {}, go.layout.updatemenu.Button(method='relayout')]), - {}] + go.layout.Updatemenu( + buttons=[{}, {}, go.layout.updatemenu.Button(method="relayout")] + ), + {}, + ] self.figure._send_relayout_msg.assert_called_once_with( - {'updatemenus': [{}, {'buttons': [ - {}, {}, {'method': 'relayout'}]}, {}]}) + {"updatemenus": [{}, {"buttons": [{}, {}, {"method": "relayout"}]}, {}]} + ) # Reset mock and perform property assignment self.figure._send_relayout_msg = MagicMock() - self.figure.layout.updatemenus[1].buttons[0].method = 'restyle' + self.figure.layout.updatemenus[1].buttons[0].method = "restyle" self.figure._send_relayout_msg.assert_called_once_with( - {'updatemenus.1.buttons.0.method': 'restyle'}) + {"updatemenus.1.buttons.0.method": "restyle"} + ) def test_property_assignment_template(self): # Initialize template object - self.figure.layout.template = {'layout': { - 'xaxis': {'title': {'text': 'x-label'}}}} + self.figure.layout.template = { + "layout": {"xaxis": {"title": {"text": "x-label"}}} + } self.figure._send_relayout_msg.assert_called_with( - {'template': - {'layout': {'xaxis': {'title': {'text': 'x-label'}}}}}) + {"template": {"layout": {"xaxis": {"title": {"text": "x-label"}}}}} + ) # template layout property - self.figure.layout.template.layout.title.text = 'Template Title' + self.figure.layout.template.layout.title.text = "Template Title" self.figure._send_relayout_msg.assert_called_with( - {'template.layout.title.text': 'Template Title'}) + {"template.layout.title.text": "Template Title"} + ) # template add trace - self.figure.layout.template.data = {'bar': [ - {'marker': {'color': 'blue'}}, - {'marker': {'color': 'yellow'}}]} + self.figure.layout.template.data = { + "bar": [{"marker": {"color": "blue"}}, {"marker": {"color": "yellow"}}] + } self.figure._send_relayout_msg.assert_called_with( - {'template.data': {'bar': [ - {'type': 'bar', 'marker': {'color': 'blue'}}, - {'type': 'bar', 'marker': {'color': 'yellow'}}]}}) + { + "template.data": { + "bar": [ + {"type": "bar", "marker": {"color": "blue"}}, + {"type": "bar", "marker": {"color": "yellow"}}, + ] + } + } + ) # template set trace property self.figure.layout.template.data.bar[1].marker.opacity = 0.5 self.figure._send_relayout_msg.assert_called_with( - {'template.data.bar.1.marker.opacity': 0.5}) + {"template.data.bar.1.marker.opacity": 0.5} + ) # Set elementdefaults property self.figure.layout.template.layout.imagedefaults.sizex = 300 self.figure._send_relayout_msg.assert_called_with( - {'template.layout.imagedefaults.sizex': 300}) + {"template.layout.imagedefaults.sizex": 300} + ) def test_plotly_relayout_toplevel(self): - self.figure.plotly_relayout({'title': 'hello'}) - self.figure._send_relayout_msg.assert_called_once_with( - {'title': 'hello'}) + self.figure.plotly_relayout({"title": "hello"}) + self.figure._send_relayout_msg.assert_called_once_with({"title": "hello"}) def test_plotly_relayout_nested(self): - self.figure.plotly_relayout({'xaxis.title.font.family': 'courier'}) + self.figure.plotly_relayout({"xaxis.title.font.family": "courier"}) self.figure._send_relayout_msg.assert_called_once_with( - {'xaxis.title.font.family': 'courier'}) + {"xaxis.title.font.family": "courier"} + ) def test_plotly_relayout_nested_subplot2(self): # Initialize xaxis2 - self.figure.layout.xaxis2 = {'range': [0, 1]} + self.figure.layout.xaxis2 = {"range": [0, 1]} self.figure._send_relayout_msg.assert_called_once_with( - {'xaxis2': {'range': [0, 1]}}) + {"xaxis2": {"range": [0, 1]}} + ) # Reset mock and perform property assignment self.figure._send_relayout_msg = MagicMock() - self.figure.plotly_relayout({'xaxis2.title.font.family': 'courier'}) + self.figure.plotly_relayout({"xaxis2.title.font.family": "courier"}) self.figure._send_relayout_msg.assert_called_once_with( - {'xaxis2.title.font.family': 'courier'}) + {"xaxis2.title.font.family": "courier"} + ) def test_plotly_relayout_nested_array(self): # Initialize images self.figure.layout.updatemenus = [ {}, - go.layout.Updatemenu(buttons=[ - {}, {}, go.layout.updatemenu.Button(method='relayout')]), - {}] + go.layout.Updatemenu( + buttons=[{}, {}, go.layout.updatemenu.Button(method="relayout")] + ), + {}, + ] self.figure._send_relayout_msg.assert_called_once_with( - {'updatemenus': [{}, {'buttons': [ - {}, {}, {'method': 'relayout'}]}, {}]}) + {"updatemenus": [{}, {"buttons": [{}, {}, {"method": "relayout"}]}, {}]} + ) # Reset mock and perform property assignment self.figure._send_relayout_msg = MagicMock() - self.figure.plotly_relayout( - {'updatemenus[1].buttons.0.method': 'restyle'}) + self.figure.plotly_relayout({"updatemenus[1].buttons.0.method": "restyle"}) self.figure._send_relayout_msg.assert_called_once_with( - {'updatemenus[1].buttons.0.method': 'restyle'}) + {"updatemenus[1].buttons.0.method": "restyle"} + ) diff --git a/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_plotly_restyle.py b/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_plotly_restyle.py index f3b46d8c08b..7c15fe1c18e 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_plotly_restyle.py +++ b/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_plotly_restyle.py @@ -10,75 +10,79 @@ class TestRestyleMessage(TestCase): - def setUp(self): # Construct with mocked _send_restyle_msg method - self.figure = go.Figure(data=[ - go.Scatter(), - go.Bar(), - go.Parcoords(dimensions=[{}, {'label': 'dim 2'}, {}]) - ]) + self.figure = go.Figure( + data=[ + go.Scatter(), + go.Bar(), + go.Parcoords(dimensions=[{}, {"label": "dim 2"}, {}]), + ] + ) # Mock out the message method self.figure._send_restyle_msg = MagicMock() def test_property_assignment_toplevel(self): # Set bar marker - self.figure.data[1].marker = {'color': 'green'} + self.figure.data[1].marker = {"color": "green"} self.figure._send_restyle_msg.assert_called_once_with( - {'marker': [{'color': 'green'}]}, trace_indexes=1) + {"marker": [{"color": "green"}]}, trace_indexes=1 + ) def test_property_assignment_nested(self): # Set scatter marker color - self.figure.data[0].marker.color = 'green' + self.figure.data[0].marker.color = "green" self.figure._send_restyle_msg.assert_called_once_with( - {'marker.color': ['green']}, trace_indexes=0) + {"marker.color": ["green"]}, trace_indexes=0 + ) def test_property_assignment_nested_array(self): # Set parcoords dimension - self.figure.data[2].dimensions[0].label = 'dim 1' + self.figure.data[2].dimensions[0].label = "dim 1" self.figure._send_restyle_msg.assert_called_once_with( - {'dimensions.0.label': ['dim 1']}, trace_indexes=2) + {"dimensions.0.label": ["dim 1"]}, trace_indexes=2 + ) # plotly_restyle def test_plotly_restyle_toplevel(self): # Set bar marker - self.figure.plotly_restyle( - {'marker': {'color': 'green'}}, trace_indexes=1) + self.figure.plotly_restyle({"marker": {"color": "green"}}, trace_indexes=1) self.figure._send_restyle_msg.assert_called_once_with( - {'marker': {'color': 'green'}}, trace_indexes=[1]) + {"marker": {"color": "green"}}, trace_indexes=[1] + ) def test_plotly_restyle_nested(self): # Set scatter marker color - self.figure.plotly_restyle( - {'marker.color': 'green'}, trace_indexes=0) + self.figure.plotly_restyle({"marker.color": "green"}, trace_indexes=0) self.figure._send_restyle_msg.assert_called_once_with( - {'marker.color': 'green'}, trace_indexes=[0]) + {"marker.color": "green"}, trace_indexes=[0] + ) def test_plotly_restyle_nested_array(self): # Set parcoords dimension - self.figure.plotly_restyle( - {'dimensions[0].label': 'dim 1'}, trace_indexes=2) + self.figure.plotly_restyle({"dimensions[0].label": "dim 1"}, trace_indexes=2) self.figure._send_restyle_msg.assert_called_once_with( - {'dimensions[0].label': 'dim 1'}, trace_indexes=[2]) + {"dimensions[0].label": "dim 1"}, trace_indexes=[2] + ) def test_plotly_restyle_multi_prop(self): self.figure.plotly_restyle( - {'marker': {'color': 'green'}, - 'name': 'MARKER 1'}, trace_indexes=1) + {"marker": {"color": "green"}, "name": "MARKER 1"}, trace_indexes=1 + ) self.figure._send_restyle_msg.assert_called_once_with( - {'marker': {'color': 'green'}, - 'name': 'MARKER 1'}, trace_indexes=[1]) + {"marker": {"color": "green"}, "name": "MARKER 1"}, trace_indexes=[1] + ) def test_plotly_restyle_multi_trace(self): self.figure.plotly_restyle( - {'marker': {'color': 'green'}, - 'name': 'MARKER 1'}, trace_indexes=[0, 1]) + {"marker": {"color": "green"}, "name": "MARKER 1"}, trace_indexes=[0, 1] + ) self.figure._send_restyle_msg.assert_called_once_with( - {'marker': {'color': 'green'}, - 'name': 'MARKER 1'}, trace_indexes=[0, 1]) + {"marker": {"color": "green"}, "name": "MARKER 1"}, trace_indexes=[0, 1] + ) diff --git a/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_plotly_update.py b/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_plotly_update.py index e855a448223..701942873e2 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_plotly_update.py +++ b/packages/python/plotly/plotly/tests/test_core/test_figure_messages/test_plotly_update.py @@ -13,13 +13,14 @@ class TestBatchUpdateMessage(TestCase): def setUp(self): # Construct initial scatter object - self.figure = go.Figure(data=[ - go.Scatter(y=[3, 2, 1], marker={'color': 'green'}), - go.Bar(y=[3, 2, 1, 0, -1], marker={'opacity': 0.5})], - layout={'xaxis': {'range': [-1, 4]}}, - frames=[go.Frame( - layout={'yaxis': - {'title': 'f1'}})]) + self.figure = go.Figure( + data=[ + go.Scatter(y=[3, 2, 1], marker={"color": "green"}), + go.Bar(y=[3, 2, 1, 0, -1], marker={"opacity": 0.5}), + ], + layout={"xaxis": {"range": [-1, 4]}}, + frames=[go.Frame(layout={"yaxis": {"title": "f1"}})], + ) # Mock out the message method self.figure._send_update_msg = MagicMock() @@ -29,53 +30,61 @@ def test_batch_update(self): with self.figure.batch_update(): # Assign trace property - self.figure.data[0].marker.color = 'yellow' + self.figure.data[0].marker.color = "yellow" self.figure.data[1].marker.opacity = 0.9 # Assign layout property self.figure.layout.xaxis.range = [10, 20] # Assign frame property - self.figure.frames[0].layout.yaxis.title.text = 'f2' + self.figure.frames[0].layout.yaxis.title.text = "f2" # Make sure that trace/layout assignments haven't been applied yet - self.assertEqual(self.figure.data[0].marker.color, 'green') + self.assertEqual(self.figure.data[0].marker.color, "green") self.assertEqual(self.figure.data[1].marker.opacity, 0.5) self.assertEqual(self.figure.layout.xaxis.range, (-1, 4)) # Expect the frame update to be applied immediately - self.assertEqual(self.figure.frames[0].layout.yaxis.title.text, - 'f2') + self.assertEqual(self.figure.frames[0].layout.yaxis.title.text, "f2") # Make sure that trace/layout assignments have been applied after # context exits - self.assertEqual(self.figure.data[0].marker.color, 'yellow') + self.assertEqual(self.figure.data[0].marker.color, "yellow") self.assertEqual(self.figure.data[1].marker.opacity, 0.9) self.assertEqual(self.figure.layout.xaxis.range, (10, 20)) # Check that update message was sent self.figure._send_update_msg.assert_called_once_with( - restyle_data={'marker.color': ['yellow', Undefined], - 'marker.opacity': [Undefined, 0.9]}, - relayout_data={'xaxis.range': [10, 20]}, - trace_indexes=[0, 1]) + restyle_data={ + "marker.color": ["yellow", Undefined], + "marker.opacity": [Undefined, 0.9], + }, + relayout_data={"xaxis.range": [10, 20]}, + trace_indexes=[0, 1], + ) def test_plotly_update(self): self.figure.plotly_update( - restyle_data={'marker.color': ['yellow', Undefined], - 'marker.opacity': [Undefined, 0.9]}, - relayout_data={'xaxis.range': [10, 20]}, - trace_indexes=[0, 1]) + restyle_data={ + "marker.color": ["yellow", Undefined], + "marker.opacity": [Undefined, 0.9], + }, + relayout_data={"xaxis.range": [10, 20]}, + trace_indexes=[0, 1], + ) # Make sure that trace/layout assignments have been applied after # context exits - self.assertEqual(self.figure.data[0].marker.color, 'yellow') + self.assertEqual(self.figure.data[0].marker.color, "yellow") self.assertEqual(self.figure.data[1].marker.opacity, 0.9) self.assertEqual(self.figure.layout.xaxis.range, (10, 20)) # Check that update message was sent self.figure._send_update_msg.assert_called_once_with( - restyle_data={'marker.color': ['yellow', Undefined], - 'marker.opacity': [Undefined, 0.9]}, - relayout_data={'xaxis.range': [10, 20]}, - trace_indexes=[0, 1]) + restyle_data={ + "marker.color": ["yellow", Undefined], + "marker.opacity": [Undefined, 0.9], + }, + relayout_data={"xaxis.range": [10, 20]}, + trace_indexes=[0, 1], + ) diff --git a/packages/python/plotly/plotly/tests/test_core/test_figure_widget_backend/test_validate_no_frames.py b/packages/python/plotly/plotly/tests/test_core/test_figure_widget_backend/test_validate_no_frames.py index ea5ae9e1eb9..d7331872e86 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_figure_widget_backend/test_validate_no_frames.py +++ b/packages/python/plotly/plotly/tests/test_core/test_figure_widget_backend/test_validate_no_frames.py @@ -4,7 +4,8 @@ class TestNoFrames(TestCase): - if 'FigureWidget' in go.__dict__.keys(): + if "FigureWidget" in go.__dict__.keys(): + @raises(ValueError) def test_no_frames_in_constructor_kwarg(self): go.FigureWidget(frames=[{}]) @@ -14,10 +15,10 @@ def test_emtpy_frames_ok_as_constructor_kwarg(self): @raises(ValueError) def test_no_frames_in_constructor_dict(self): - go.FigureWidget({'frames': [{}]}) + go.FigureWidget({"frames": [{}]}) def test_emtpy_frames_ok_as_constructor_dict_key(self): - go.FigureWidget({'frames': []}) + go.FigureWidget({"frames": []}) @raises(ValueError) def test_no_frames_assignment(self): diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/__init__.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/__init__.py index 1118eb01e82..e1565c83f71 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/__init__.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/__init__.py @@ -2,4 +2,4 @@ def setup_package(): - warnings.filterwarnings('ignore') + warnings.filterwarnings("ignore") diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_annotations.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_annotations.py index 6dff760ec33..c551bc5be13 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_annotations.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_annotations.py @@ -10,14 +10,19 @@ from nose.tools import raises -from plotly.exceptions import (PlotlyError, PlotlyDictKeyError, - PlotlyDictValueError, PlotlyListEntryError) +from plotly.exceptions import ( + PlotlyError, + PlotlyDictKeyError, + PlotlyDictValueError, + PlotlyListEntryError, +) from plotly.graph_objs import Annotation, Annotations, Data, Figure, Layout def setup(): import warnings - warnings.filterwarnings('ignore') + + warnings.filterwarnings("ignore") def test_trivial(): @@ -29,15 +34,15 @@ def test_weird_instantiation(): # Python allows this, but nonsensical for us. def test_dict_instantiation(): - Annotations([{'text': 'annotation text'}]) + Annotations([{"text": "annotation text"}]) def test_dict_instantiation_key_error(): - assert Annotations([{'not-a-key': 'anything'}]) == [{'not-a-key': 'anything'}] + assert Annotations([{"not-a-key": "anything"}]) == [{"not-a-key": "anything"}] def test_dict_instantiation_key_error_2(): - assert Annotations([{'font': 'not-a-dict'}]) == [{'font': 'not-a-dict'}] + assert Annotations([{"font": "not-a-dict"}]) == [{"font": "not-a-dict"}] def test_dict_instantiation_graph_obj_error_0(): @@ -46,4 +51,3 @@ def test_dict_instantiation_graph_obj_error_0(): def test_dict_instantiation_graph_obj_error_2(): assert Annotations([Annotations()]) == [[]] - diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_append_trace.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_append_trace.py index d90b8893408..9f522492226 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_append_trace.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_append_trace.py @@ -2,8 +2,16 @@ from nose.tools import raises -from plotly.graph_objs import (Data, Figure, Layout, Scatter, Scatter3d, Scene, - XAxis, YAxis) +from plotly.graph_objs import ( + Data, + Figure, + Layout, + Scatter, + Scatter3d, + Scene, + XAxis, + YAxis, +) from plotly.tests.utils import strip_dict_params import plotly.tools as tls @@ -40,115 +48,60 @@ def test_append_trace_col_out_of_range(): def test_append_scatter(): expected = Figure( - data=Data([ - Scatter( - x=[1, 2, 3], - y=[2, 3, 4], - xaxis='x5', - yaxis='y5' - ) - ]), + data=Data([Scatter(x=[1, 2, 3], y=[2, 3, 4], xaxis="x5", yaxis="y5")]), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 0.2888888888888889], - anchor='y1' - ), - xaxis2=XAxis( - domain=[0.35555555555555557, 0.6444444444444445], - anchor='y2' - ), - xaxis3=XAxis( - domain=[0.7111111111111111, 1.0], - anchor='y3' - ), - xaxis4=XAxis( - domain=[0.0, 0.2888888888888889], - anchor='y4' - ), - xaxis5=XAxis( - domain=[0.35555555555555557, 0.6444444444444445], - anchor='y5' - ), - xaxis6=XAxis( - domain=[0.7111111111111111, 1.0], - anchor='y6' - ), - yaxis1=YAxis( - domain=[0.575, 1.0], - anchor='x1' - ), - yaxis2=YAxis( - domain=[0.575, 1.0], - anchor='x2' - ), - yaxis3=YAxis( - domain=[0.575, 1.0], - anchor='x3' - ), - yaxis4=YAxis( - domain=[0.0, 0.425], - anchor='x4' - ), - yaxis5=YAxis( - domain=[0.0, 0.425], - anchor='x5' - ), - yaxis6=YAxis( - domain=[0.0, 0.425], - anchor='x6' - ) - ) + xaxis1=XAxis(domain=[0.0, 0.2888888888888889], anchor="y1"), + xaxis2=XAxis(domain=[0.35555555555555557, 0.6444444444444445], anchor="y2"), + xaxis3=XAxis(domain=[0.7111111111111111, 1.0], anchor="y3"), + xaxis4=XAxis(domain=[0.0, 0.2888888888888889], anchor="y4"), + xaxis5=XAxis(domain=[0.35555555555555557, 0.6444444444444445], anchor="y5"), + xaxis6=XAxis(domain=[0.7111111111111111, 1.0], anchor="y6"), + yaxis1=YAxis(domain=[0.575, 1.0], anchor="x1"), + yaxis2=YAxis(domain=[0.575, 1.0], anchor="x2"), + yaxis3=YAxis(domain=[0.575, 1.0], anchor="x3"), + yaxis4=YAxis(domain=[0.0, 0.425], anchor="x4"), + yaxis5=YAxis(domain=[0.0, 0.425], anchor="x5"), + yaxis6=YAxis(domain=[0.0, 0.425], anchor="x6"), + ), ) trace = Scatter(x=[1, 2, 3], y=[2, 3, 4]) fig = tls.make_subplots(rows=2, cols=3) fig.append_trace(trace, 2, 2) - d1, d2 = strip_dict_params(fig['data'][0], expected['data'][0]) + d1, d2 = strip_dict_params(fig["data"][0], expected["data"][0]) assert d1 == d2 - d1, d2 = strip_dict_params(fig['layout'], expected['layout']) + d1, d2 = strip_dict_params(fig["layout"], expected["layout"]) assert d1 == d2 def test_append_scatter3d(): expected = Figure( - data=Data([ - Scatter3d( - x=[1, 2, 3], - y=[2, 3, 4], - z=[1, 2, 3], - scene='scene1' - ), - Scatter3d( - x=[1, 2, 3], - y=[2, 3, 4], - z=[1, 2, 3], - scene='scene2' - ) - ]), + data=Data( + [ + Scatter3d(x=[1, 2, 3], y=[2, 3, 4], z=[1, 2, 3], scene="scene1"), + Scatter3d(x=[1, 2, 3], y=[2, 3, 4], z=[1, 2, 3], scene="scene2"), + ] + ), layout=Layout( - scene1=Scene( - domain={'y': [0.575, 1.0], 'x': [0.0, 1.0]} - ), - scene2=Scene( - domain={'y': [0.0, 0.425], 'x': [0.0, 1.0]} - ) - ) + scene1=Scene(domain={"y": [0.575, 1.0], "x": [0.0, 1.0]}), + scene2=Scene(domain={"y": [0.0, 0.425], "x": [0.0, 1.0]}), + ), ) - fig = tls.make_subplots(rows=2, cols=1, - specs=[[{'is_3d': True}], - [{'is_3d': True}]]) + fig = tls.make_subplots( + rows=2, cols=1, specs=[[{"is_3d": True}], [{"is_3d": True}]] + ) trace = Scatter3d(x=[1, 2, 3], y=[2, 3, 4], z=[1, 2, 3]) fig.append_trace(trace, 1, 1) fig.append_trace(trace, 2, 1) - d1, d2 = strip_dict_params(fig['data'][0], expected['data'][0]) + d1, d2 = strip_dict_params(fig["data"][0], expected["data"][0]) assert d1 == d2 - d1, d2 = strip_dict_params(fig['data'][1], expected['data'][1]) + d1, d2 = strip_dict_params(fig["data"][1], expected["data"][1]) assert d1 == d2 - d1, d2 = strip_dict_params(fig['layout'], expected['layout']) + d1, d2 = strip_dict_params(fig["layout"], expected["layout"]) assert d1 == d2 diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_constructor.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_constructor.py index ddb30bc8a6b..870b11b3de2 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_constructor.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_constructor.py @@ -4,41 +4,29 @@ class TestGraphObjConstructor(TestCase): - def test_kwarg(self): - m = go.scatter.Marker(color='green') - self.assertEqual(m.to_plotly_json(), - {'color': 'green'}) + m = go.scatter.Marker(color="green") + self.assertEqual(m.to_plotly_json(), {"color": "green"}) def test_valid_arg_dict(self): - m = go.scatter.Marker(dict(color='green')) - self.assertEqual(m.to_plotly_json(), - {'color': 'green'}) + m = go.scatter.Marker(dict(color="green")) + self.assertEqual(m.to_plotly_json(), {"color": "green"}) def test_valid_underscore_kwarg(self): - m = go.scatter.Marker(line_color='green') - self.assertEqual(m.to_plotly_json(), - {'line': {'color': 'green'}}) + m = go.scatter.Marker(line_color="green") + self.assertEqual(m.to_plotly_json(), {"line": {"color": "green"}}) def test_valid_arg_obj(self): - m = go.scatter.Marker( - go.scatter.Marker(color='green')) + m = go.scatter.Marker(go.scatter.Marker(color="green")) - self.assertEqual(m.to_plotly_json(), - {'color': 'green'}) + self.assertEqual(m.to_plotly_json(), {"color": "green"}) def test_kwarg_takes_precedence(self): - m = go.scatter.Marker( - dict(color='green', - size=12), - color='blue', - opacity=0.6 - ) + m = go.scatter.Marker(dict(color="green", size=12), color="blue", opacity=0.6) - self.assertEqual(m.to_plotly_json(), - {'color': 'blue', - 'size': 12, - 'opacity': 0.6}) + self.assertEqual( + m.to_plotly_json(), {"color": "blue", "size": 12, "opacity": 0.6} + ) @raises(ValueError) def test_invalid_kwarg(self): @@ -50,8 +38,8 @@ def test_invalid_arg(self): @raises(ValueError) def test_valid_arg_with_invalid_key_name(self): - go.scatter.Marker({'bogus': 12}) + go.scatter.Marker({"bogus": 12}) @raises(ValueError) def test_valid_arg_with_invalid_key_value(self): - go.scatter.Marker({'color': 'bogus'}) + go.scatter.Marker({"color": "bogus"}) diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_data.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_data.py index 81b7ed526bf..faec80efcd0 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_data.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_data.py @@ -10,22 +10,27 @@ from nose.tools import raises -from plotly.exceptions import (PlotlyError, PlotlyDictKeyError, - PlotlyDictValueError, PlotlyDataTypeError, - PlotlyListEntryError) +from plotly.exceptions import ( + PlotlyError, + PlotlyDictKeyError, + PlotlyDictValueError, + PlotlyDataTypeError, + PlotlyListEntryError, +) from plotly.graph_objs import Annotations, Data, Figure, Layout def setup(): import warnings - warnings.filterwarnings('ignore') + + warnings.filterwarnings("ignore") def test_trivial(): assert Data() == list() -#@raises(PlotlyError) +# @raises(PlotlyError) def test_weird_instantiation(): # Python allows this... assert Data({}) == [] @@ -35,22 +40,22 @@ def test_default_scatter(): def test_dict_instantiation(): - Data([{'type': 'scatter'}]) + Data([{"type": "scatter"}]) # @raises(PlotlyDictKeyError) def test_dict_instantiation_key_error(): - assert Data([{'not-a-key': 'anything'}]) == [{'not-a-key': 'anything'}] + assert Data([{"not-a-key": "anything"}]) == [{"not-a-key": "anything"}] # @raises(PlotlyDictValueError) def test_dict_instantiation_key_error_2(): - assert Data([{'marker': 'not-a-dict'}]) == [{'marker': 'not-a-dict'}] + assert Data([{"marker": "not-a-dict"}]) == [{"marker": "not-a-dict"}] # @raises(PlotlyDataTypeError) def test_dict_instantiation_type_error(): - assert Data([{'type': 'invalid_type'}]) == [{'type': 'invalid_type'}] + assert Data([{"type": "invalid_type"}]) == [{"type": "invalid_type"}] # @raises(PlotlyListEntryError) diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_error_bars.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_error_bars.py index 2e5ed335471..7526135d154 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_error_bars.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_error_bars.py @@ -14,32 +14,40 @@ def test_instantiate_error_x(): ErrorX() - ErrorX(array=[1, 2, 3], - arrayminus=[2, 1, 2], - color='red', - copy_ystyle=False, - symmetric=False, - thickness=2, - type='percent', - value=1, - valueminus=4, - visible=True, - width=5) + ErrorX( + array=[1, 2, 3], + arrayminus=[2, 1, 2], + color="red", + copy_ystyle=False, + symmetric=False, + thickness=2, + type="percent", + value=1, + valueminus=4, + visible=True, + width=5, + ) def test_instantiate_error_y(): ErrorY() - ErrorY(array=[1, 2, 3], - arrayminus=[2, 1, 2], - color='red', - symmetric=False, - thickness=2, - type='percent', - value=1, - valueminus=4, - visible=True, - width=5) + ErrorY( + array=[1, 2, 3], + arrayminus=[2, 1, 2], + color="red", + symmetric=False, + thickness=2, + type="percent", + value=1, + valueminus=4, + visible=True, + width=5, + ) def test_key_error(): - assert ErrorX(value=0.1, typ='percent', color='red') == {'color': 'red', 'typ': 'percent', 'value': 0.1} + assert ErrorX(value=0.1, typ="percent", color="red") == { + "color": "red", + "typ": "percent", + "value": 0.1, + } diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_figure.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_figure.py index 527ee0dc85c..04051bffc4e 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_figure.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_figure.py @@ -5,14 +5,9 @@ class FigureTest(TestCaseNoTemplate): - def test_instantiation(self): - native_figure = { - 'data': [], - 'layout': {}, - 'frames': [] - } + native_figure = {"data": [], "layout": {}, "frames": []} go.Figure(native_figure) go.Figure() @@ -26,138 +21,148 @@ def test_access_top_level(self): self.assertEqual(go.Figure().frames, ()) def test_nested_frames(self): - with self.assertRaisesRegexp(ValueError, 'frames'): - go.Figure({'frames': [{'frames': []}]}) + with self.assertRaisesRegexp(ValueError, "frames"): + go.Figure({"frames": [{"frames": []}]}) figure = go.Figure() figure.frames = [{}] - with self.assertRaisesRegexp(ValueError, 'frames'): - figure.to_plotly_json()['frames'][0]['frames'] = [] + with self.assertRaisesRegexp(ValueError, "frames"): + figure.to_plotly_json()["frames"][0]["frames"] = [] figure.frames[0].frames = [] def test_raises_invalid_property_name(self): with self.assertRaises(ValueError): go.Figure( - data=[{'type': 'bar', 'bogus': 123}], - layout={'bogus': 23, 'title': 'Figure title'}, - frames=[{ - 'data': [{'type': 'bar', 'bogus': 123}], - 'layout': {'bogus': 23, 'title': 'Figure title'}, - }]) + data=[{"type": "bar", "bogus": 123}], + layout={"bogus": 23, "title": "Figure title"}, + frames=[ + { + "data": [{"type": "bar", "bogus": 123}], + "layout": {"bogus": 23, "title": "Figure title"}, + } + ], + ) def test_skip_invalid_property_name(self): fig = go.Figure( - data=[{'type': 'bar', 'bogus': 123}], - layout={'bogus': 23, 'title': {'text': 'Figure title'}}, - frames=[{ - 'data': [{'type': 'bar', 'bogus': 123}], - 'layout': {'bogus': 23, 'title': 'Figure title'}, - }], + data=[{"type": "bar", "bogus": 123}], + layout={"bogus": 23, "title": {"text": "Figure title"}}, + frames=[ + { + "data": [{"type": "bar", "bogus": 123}], + "layout": {"bogus": 23, "title": "Figure title"}, + } + ], bogus=123, - skip_invalid=True) + skip_invalid=True, + ) fig_dict = fig.to_dict() # Remove trace uid property - for trace in fig_dict['data']: - trace.pop('uid', None) - - self.assertEqual(fig_dict['data'], - [{'type': 'bar'}]) - self.assertEqual(fig_dict['layout'], - {'title': {'text': 'Figure title'}}) - self.assertEqual(fig_dict['frames'], - [{ - 'data': [{'type': 'bar'}], - 'layout': {'title': {'text': 'Figure title'}} - }]) + for trace in fig_dict["data"]: + trace.pop("uid", None) + + self.assertEqual(fig_dict["data"], [{"type": "bar"}]) + self.assertEqual(fig_dict["layout"], {"title": {"text": "Figure title"}}) + self.assertEqual( + fig_dict["frames"], + [ + { + "data": [{"type": "bar"}], + "layout": {"title": {"text": "Figure title"}}, + } + ], + ) def test_raises_invalid_property_value(self): with self.assertRaises(ValueError): go.Figure( - data=[{'type': 'bar', 'showlegend': 'bad_value'}], - layout={'paper_bgcolor': 'bogus_color', - 'title': 'Figure title'}, - frames=[{ - 'data': [{'type': 'bar', 'showlegend': 'bad_value'}], - 'layout': {'bgcolor': 'bad_color', - 'title': 'Figure title'}, - }]) + data=[{"type": "bar", "showlegend": "bad_value"}], + layout={"paper_bgcolor": "bogus_color", "title": "Figure title"}, + frames=[ + { + "data": [{"type": "bar", "showlegend": "bad_value"}], + "layout": {"bgcolor": "bad_color", "title": "Figure title"}, + } + ], + ) def test_skip_invalid_property_value(self): fig = go.Figure( - data=[{'type': 'bar', 'showlegend': 'bad_value'}], - layout={'paper_bgcolor': 'bogus_color', 'title': 'Figure title'}, - frames=[{ - 'data': [{'type': 'bar', 'showlegend': 'bad_value'}], - 'layout': {'bgcolor': 'bad_color', 'title': 'Figure title'}, - }], + data=[{"type": "bar", "showlegend": "bad_value"}], + layout={"paper_bgcolor": "bogus_color", "title": "Figure title"}, + frames=[ + { + "data": [{"type": "bar", "showlegend": "bad_value"}], + "layout": {"bgcolor": "bad_color", "title": "Figure title"}, + } + ], skip_invalid=True, ) fig_dict = fig.to_dict() # Remove trace uid property - for trace in fig_dict['data']: - trace.pop('uid', None) - - self.assertEqual(fig_dict['data'], - [{'type': 'bar'}]) - self.assertEqual(fig_dict['layout'], - {'title': {'text': 'Figure title'}}) - self.assertEqual(fig_dict['frames'], - [{ - 'data': [{'type': 'bar'}], - 'layout': - {'title': {'text': 'Figure title'}} - }]) + for trace in fig_dict["data"]: + trace.pop("uid", None) + + self.assertEqual(fig_dict["data"], [{"type": "bar"}]) + self.assertEqual(fig_dict["layout"], {"title": {"text": "Figure title"}}) + self.assertEqual( + fig_dict["frames"], + [ + { + "data": [{"type": "bar"}], + "layout": {"title": {"text": "Figure title"}}, + } + ], + ) def test_raises_invalid_toplevel_kwarg(self): with self.assertRaises(TypeError): go.Figure( - data=[{'type': 'bar'}], - layout={'title': 'Figure title'}, - frames=[{ - 'data': [{'type': 'bar'}], - 'layout': {'title': 'Figure title'}, - }], - bogus=123 + data=[{"type": "bar"}], + layout={"title": "Figure title"}, + frames=[ + {"data": [{"type": "bar"}], "layout": {"title": "Figure title"}} + ], + bogus=123, ) def test_toplevel_underscore_kwarg(self): fig = go.Figure( - data=[{'type': 'bar'}], - layout_title_text='Hello, Figure title!' + data=[{"type": "bar"}], layout_title_text="Hello, Figure title!" ) - self.assertEqual(fig.layout.title.text, 'Hello, Figure title!') + self.assertEqual(fig.layout.title.text, "Hello, Figure title!") def test_add_trace_underscore_kwarg(self): fig = go.Figure() - fig.add_scatter(y=[2, 1, 3], marker_line_color='green') + fig.add_scatter(y=[2, 1, 3], marker_line_color="green") - self.assertEqual(fig.data[0].marker.line.color, 'green') + self.assertEqual(fig.data[0].marker.line.color, "green") def test_scalar_trace_as_data(self): fig = go.Figure(data=go.Waterfall(y=[2, 1, 3])) self.assertEqual(fig.data, (go.Waterfall(y=[2, 1, 3]),)) - fig = go.Figure(data=dict(type='waterfall', y=[2, 1, 3])) + fig = go.Figure(data=dict(type="waterfall", y=[2, 1, 3])) self.assertEqual(fig.data, (go.Waterfall(y=[2, 1, 3]),)) def test_pop_data(self): fig = go.Figure(data=go.Waterfall(y=[2, 1, 3])) - self.assertEqual(fig.pop('data'), (go.Waterfall(y=[2, 1, 3]),)) + self.assertEqual(fig.pop("data"), (go.Waterfall(y=[2, 1, 3]),)) self.assertEqual(fig.data, ()) def test_pop_layout(self): fig = go.Figure(layout=go.Layout(width=1000)) - self.assertEqual(fig.pop('layout'), go.Layout(width=1000)) + self.assertEqual(fig.pop("layout"), go.Layout(width=1000)) self.assertEqual(fig.layout, go.Layout()) def test_pop_invalid_key(self): fig = go.Figure(layout=go.Layout(width=1000)) with self.assertRaises(KeyError): - fig.pop('bogus') + fig.pop("bogus") diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_figure_properties.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_figure_properties.py index f601b0f7070..26a256de9f1 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_figure_properties.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_figure_properties.py @@ -3,53 +3,51 @@ from nose.tools import raises import plotly.io as pio -class TestFigureProperties(TestCase): +class TestFigureProperties(TestCase): def setUp(self): # Disable default template pio.templates.default = None # Construct initial scatter object - self.figure = go.Figure(data=[go.Scatter(y=[3, 2, 1], - marker={'color': 'green'})], - layout={'xaxis': {'range': [-1, 4]}}, - frames=[go.Frame( - layout={'yaxis': - {'title': 'f1'}})]) + self.figure = go.Figure( + data=[go.Scatter(y=[3, 2, 1], marker={"color": "green"})], + layout={"xaxis": {"range": [-1, 4]}}, + frames=[go.Frame(layout={"yaxis": {"title": "f1"}})], + ) def tearDown(self): # Reenable default template - pio.templates.default = 'plotly' + pio.templates.default = "plotly" def test_attr_access(self): scatt_uid = self.figure.data[0].uid - self.assertEqual(self.figure.data, - (go.Scatter(y=[3, 2, 1], - marker={'color': 'green'}, - uid=scatt_uid),)) + self.assertEqual( + self.figure.data, + (go.Scatter(y=[3, 2, 1], marker={"color": "green"}, uid=scatt_uid),), + ) - self.assertEqual(self.figure.layout, - go.Layout(xaxis={'range': [-1, 4]})) + self.assertEqual(self.figure.layout, go.Layout(xaxis={"range": [-1, 4]})) - self.assertEqual(self.figure.frames, - (go.Frame( - layout={'yaxis': {'title': 'f1'}}),)) + self.assertEqual( + self.figure.frames, (go.Frame(layout={"yaxis": {"title": "f1"}}),) + ) def test_contains(self): - self.assertIn('data', self.figure) - self.assertIn('layout', self.figure) - self.assertIn('frames', self.figure) + self.assertIn("data", self.figure) + self.assertIn("layout", self.figure) + self.assertIn("frames", self.figure) def test_iter(self): - self.assertEqual(set(self.figure), {'data', 'layout', 'frames'}) + self.assertEqual(set(self.figure), {"data", "layout", "frames"}) def test_attr_item(self): # test that equal objects can be retrieved using attr or item # syntax - self.assertEqual(self.figure.data, self.figure['data']) - self.assertEqual(self.figure.layout, self.figure['layout']) - self.assertEqual(self.figure.frames, self.figure['frames']) + self.assertEqual(self.figure.data, self.figure["data"]) + self.assertEqual(self.figure.layout, self.figure["layout"]) + self.assertEqual(self.figure.frames, self.figure["frames"]) def test_property_assignment_tuple(self): @@ -57,32 +55,31 @@ def test_property_assignment_tuple(self): self.assertIs(self.figure[()], self.figure) # Layout - self.figure[('layout', 'xaxis', 'range')] = (-10, 10) - self.assertEqual(self.figure[('layout', 'xaxis', 'range')], (-10, 10)) + self.figure[("layout", "xaxis", "range")] = (-10, 10) + self.assertEqual(self.figure[("layout", "xaxis", "range")], (-10, 10)) # Data - self.figure[('data', 0, 'marker', 'color')] = 'red' - self.assertEqual(self.figure[('data', 0, 'marker', 'color')], 'red') + self.figure[("data", 0, "marker", "color")] = "red" + self.assertEqual(self.figure[("data", 0, "marker", "color")], "red") # Frames - self.figure[('frames', 0, 'layout', 'yaxis', 'title', 'text')] = 'f2' + self.figure[("frames", 0, "layout", "yaxis", "title", "text")] = "f2" self.assertEqual( - self.figure[('frames', 0, 'layout', 'yaxis', 'title', 'text')], - 'f2') + self.figure[("frames", 0, "layout", "yaxis", "title", "text")], "f2" + ) def test_property_assignment_dots(self): # Layout - self.figure['layout.xaxis.range'] = (-10, 10) - self.assertEqual(self.figure['layout.xaxis.range'], (-10, 10)) + self.figure["layout.xaxis.range"] = (-10, 10) + self.assertEqual(self.figure["layout.xaxis.range"], (-10, 10)) # Data - self.figure['data.0.marker.color'] = 'red' - self.assertEqual(self.figure['data[0].marker.color'], 'red') + self.figure["data.0.marker.color"] = "red" + self.assertEqual(self.figure["data[0].marker.color"], "red") # Frames - self.figure['frames[0].layout.yaxis.title.text'] = 'f2' - self.assertEqual( - self.figure['frames.0.layout.yaxis.title.text'], 'f2') + self.figure["frames[0].layout.yaxis.title.text"] = "f2" + self.assertEqual(self.figure["frames.0.layout.yaxis.title.text"], "f2") @raises(AttributeError) def test_access_invalid_attr(self): @@ -90,15 +87,15 @@ def test_access_invalid_attr(self): @raises(KeyError) def test_access_invalid_item(self): - self.figure['bogus'] + self.figure["bogus"] @raises(AttributeError) def test_assign_invalid_attr(self): - self.figure.bogus = 'val' + self.figure.bogus = "val" @raises(KeyError) def test_access_invalid_item(self): - self.figure['bogus'] = 'val' + self.figure["bogus"] = "val" # Update def test_update_layout(self): @@ -106,77 +103,79 @@ def test_update_layout(self): self.assertEqual(self.figure.layout.xaxis.range, (-1, 4)) # Update with kwarg - self.figure.update(layout={'xaxis': {'range': [10, 20]}}) + self.figure.update(layout={"xaxis": {"range": [10, 20]}}) self.assertEqual(self.figure.layout.xaxis.range, (10, 20)) # Update with dict - self.figure.update({'layout': {'xaxis': {'range': [100, 200]}}}) + self.figure.update({"layout": {"xaxis": {"range": [100, 200]}}}) self.assertEqual(self.figure.layout.xaxis.range, (100, 200)) def test_update_data(self): # Check initial marker color - self.assertEqual(self.figure.data[0].marker.color, 'green') + self.assertEqual(self.figure.data[0].marker.color, "green") # Update with dict kwarg - self.figure.update(data={0: {'marker': {'color': 'blue'}}}) - self.assertEqual(self.figure.data[0].marker.color, 'blue') + self.figure.update(data={0: {"marker": {"color": "blue"}}}) + self.assertEqual(self.figure.data[0].marker.color, "blue") # Update with list kwarg - self.figure.update(data=[{'marker': {'color': 'red'}}]) - self.assertEqual(self.figure.data[0].marker.color, 'red') + self.figure.update(data=[{"marker": {"color": "red"}}]) + self.assertEqual(self.figure.data[0].marker.color, "red") # Update with dict - self.figure.update({'data': {0: {'marker': {'color': 'yellow'}}}}) - self.assertEqual(self.figure.data[0].marker.color, 'yellow') + self.figure.update({"data": {0: {"marker": {"color": "yellow"}}}}) + self.assertEqual(self.figure.data[0].marker.color, "yellow") def test_update_data_dots(self): # Check initial marker color - self.assertEqual(self.figure.data[0].marker.color, 'green') + self.assertEqual(self.figure.data[0].marker.color, "green") # Update with dict kwarg - self.figure.update(data={0: {'marker.color': 'blue'}}) - self.assertEqual(self.figure.data[0].marker.color, 'blue') + self.figure.update(data={0: {"marker.color": "blue"}}) + self.assertEqual(self.figure.data[0].marker.color, "blue") # Update with list kwarg - self.figure.update(data=[{'marker.color': 'red'}]) - self.assertEqual(self.figure.data[0].marker.color, 'red') + self.figure.update(data=[{"marker.color": "red"}]) + self.assertEqual(self.figure.data[0].marker.color, "red") # Update with dict - self.figure.update({'data[0].marker.color': 'yellow'}) - self.assertEqual(self.figure.data[0].marker.color, 'yellow') + self.figure.update({"data[0].marker.color": "yellow"}) + self.assertEqual(self.figure.data[0].marker.color, "yellow") def test_update_data_underscores(self): # Check initial marker color - self.assertEqual(self.figure.data[0].marker.color, 'green') + self.assertEqual(self.figure.data[0].marker.color, "green") # Update with dict kwarg - self.figure.update(data={0: {'marker_color': 'blue'}}) - self.assertEqual(self.figure.data[0].marker.color, 'blue') + self.figure.update(data={0: {"marker_color": "blue"}}) + self.assertEqual(self.figure.data[0].marker.color, "blue") # Update with list kwarg - self.figure.update(data=[{'marker_color': 'red'}]) - self.assertEqual(self.figure.data[0].marker.color, 'red') + self.figure.update(data=[{"marker_color": "red"}]) + self.assertEqual(self.figure.data[0].marker.color, "red") # Update with dict - self.figure.update({'data_0_marker_color': 'yellow'}) - self.assertEqual(self.figure.data[0].marker.color, 'yellow') + self.figure.update({"data_0_marker_color": "yellow"}) + self.assertEqual(self.figure.data[0].marker.color, "yellow") # Update with kwarg - self.figure.update(data_0_marker_color='yellow') - self.assertEqual(self.figure.data[0].marker.color, 'yellow') + self.figure.update(data_0_marker_color="yellow") + self.assertEqual(self.figure.data[0].marker.color, "yellow") def test_update_data_empty(self): # Create figure with empty data (no traces) - figure = go.Figure(layout={'width': 1000}) + figure = go.Figure(layout={"width": 1000}) # Update data with new traces figure.update(data=[go.Scatter(y=[2, 1, 3]), go.Bar(y=[1, 2, 3])]) # Build expected dict expected = { - 'data': [{'y': [2, 1, 3], 'type': 'scatter'}, - {'y': [1, 2, 3], 'type': 'bar'}], - 'layout': {'width': 1000} + "data": [ + {"y": [2, 1, 3], "type": "scatter"}, + {"y": [1, 2, 3], "type": "bar"}, + ], + "layout": {"width": 1000}, } # Compute expected figure dict (pop uids for comparison) @@ -187,49 +186,45 @@ def test_update_data_empty(self): def test_update_frames(self): # Check initial frame axis title - self.assertEqual(self.figure.frames[0].layout.yaxis.title.text, - 'f1') + self.assertEqual(self.figure.frames[0].layout.yaxis.title.text, "f1") # Update with dict kwarg - self.figure.update(frames={0: { - 'layout': {'yaxis': {'title': {'text': 'f2'}}}}}) - self.assertEqual(self.figure.frames[0].layout.yaxis.title.text, 'f2') + self.figure.update(frames={0: {"layout": {"yaxis": {"title": {"text": "f2"}}}}}) + self.assertEqual(self.figure.frames[0].layout.yaxis.title.text, "f2") # Update with list kwarg - self.figure.update(frames=[{ - 'layout': {'yaxis': {'title': {'text': 'f3'}}}}]) - self.assertEqual(self.figure.frames[0].layout.yaxis.title.text, - 'f3') + self.figure.update(frames=[{"layout": {"yaxis": {"title": {"text": "f3"}}}}]) + self.assertEqual(self.figure.frames[0].layout.yaxis.title.text, "f3") # Update with dict - self.figure.update({'frames': - [{'layout': - {'yaxis': {'title': {'text': 'f4'}}}}]}) - self.assertEqual(self.figure.frames[0].layout.yaxis.title.text, 'f4') + self.figure.update( + {"frames": [{"layout": {"yaxis": {"title": {"text": "f4"}}}}]} + ) + self.assertEqual(self.figure.frames[0].layout.yaxis.title.text, "f4") @raises(ValueError) def test_update_invalid_attr(self): - self.figure.layout.update({'xaxis': {'bogus': 32}}) + self.figure.layout.update({"xaxis": {"bogus": 32}}) # plotly_restyle def test_plotly_restyle(self): # Check initial marker color - self.assertEqual(self.figure.data[0].marker.color, 'green') + self.assertEqual(self.figure.data[0].marker.color, "green") # Update with dict kwarg self.figure.plotly_restyle( - restyle_data={'marker.color': 'blue'}, - trace_indexes=0) + restyle_data={"marker.color": "blue"}, trace_indexes=0 + ) - self.assertEqual(self.figure.data[0].marker.color, 'blue') + self.assertEqual(self.figure.data[0].marker.color, "blue") @raises(ValueError) def test_restyle_validate_property(self): - self.figure.plotly_restyle({'bogus': 3}, trace_indexes=[0]) + self.figure.plotly_restyle({"bogus": 3}, trace_indexes=[0]) @raises(ValueError) def test_restyle_validate_property_nested(self): - self.figure.plotly_restyle({'marker.bogus': 3}, trace_indexes=[0]) + self.figure.plotly_restyle({"marker.bogus": 3}, trace_indexes=[0]) # plotly_relayout def test_plotly_relayout(self): @@ -237,21 +232,20 @@ def test_plotly_relayout(self): self.assertEqual(self.figure.layout.xaxis.range, (-1, 4)) # Update with kwarg - self.figure.plotly_relayout( - relayout_data={'xaxis.range': [10, 20]}) + self.figure.plotly_relayout(relayout_data={"xaxis.range": [10, 20]}) self.assertEqual(self.figure.layout.xaxis.range, (10, 20)) @raises(ValueError) def test_relayout_validate_property(self): - self.figure.plotly_relayout({'bogus': [1, 3]}) + self.figure.plotly_relayout({"bogus": [1, 3]}) @raises(ValueError) def test_relayout_validate_property_nested(self): - self.figure.plotly_relayout({'xaxis.bogus': [1, 3]}) + self.figure.plotly_relayout({"xaxis.bogus": [1, 3]}) @raises(ValueError) def test_relayout_validate_unintialized_subplot(self): - self.figure.plotly_relayout({'xaxis2.range': [1, 3]}) + self.figure.plotly_relayout({"xaxis2.range": [1, 3]}) # plotly_update def test_plotly_update_layout(self): @@ -259,26 +253,24 @@ def test_plotly_update_layout(self): self.assertEqual(self.figure.layout.xaxis.range, (-1, 4)) # Update with kwarg - self.figure.plotly_update( - relayout_data={'xaxis.range': [10, 20]}) + self.figure.plotly_update(relayout_data={"xaxis.range": [10, 20]}) self.assertEqual(self.figure.layout.xaxis.range, (10, 20)) def test_plotly_update_data(self): # Check initial marker color - self.assertEqual(self.figure.data[0].marker.color, 'green') + self.assertEqual(self.figure.data[0].marker.color, "green") # Update with dict kwarg self.figure.plotly_update( - restyle_data={'marker.color': 'blue'}, - trace_indexes=0) + restyle_data={"marker.color": "blue"}, trace_indexes=0 + ) - self.assertEqual(self.figure.data[0].marker.color, 'blue') + self.assertEqual(self.figure.data[0].marker.color, "blue") @raises(ValueError) def test_plotly_update_validate_property_trace(self): - self.figure.plotly_update(restyle_data={'bogus': 3}, - trace_indexes=[0]) + self.figure.plotly_update(restyle_data={"bogus": 3}, trace_indexes=[0]) @raises(ValueError) def test_plotly_update_validate_property_layout(self): - self.figure.plotly_update(relayout_data={'xaxis.bogus': [1, 3]}) + self.figure.plotly_update(relayout_data={"xaxis.bogus": [1, 3]}) diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_frames.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_frames.py index 1e7c0615ea2..37a33b20265 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_frames.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_frames.py @@ -10,26 +10,23 @@ def return_prop_descriptions(prop_descrip_text): - raw_matches = re.findall( - "\n [a-z]+| [a-z]+\n", prop_descrip_text - ) + raw_matches = re.findall("\n [a-z]+| [a-z]+\n", prop_descrip_text) matches = [] for r in raw_matches: - r = r.replace(' ', '') - r = r.replace('\n', '') + r = r.replace(" ", "") + r = r.replace("\n", "") matches.append(r) return matches class FramesTest(TestCase): - def test_instantiation(self): native_frames = [ {}, - {'data': []}, - 'foo', - {'data': [], 'group': 'baz', 'layout': {}, 'name': 'hoopla'} + {"data": []}, + "foo", + {"data": [], "group": "baz", "layout": {}, "name": "hoopla"}, ] Frames(native_frames) @@ -46,25 +43,22 @@ def test_non_string_frame(self): # with self.assertRaises(exceptions.PlotlyListEntryError): # frames.append(0) - @attr('nodev') + @attr("nodev") def test_deeply_nested_layout_attributes(self): frames = Frame frames.layout = [Layout()] - frames.layout[0].xaxis.showexponent = 'all' + frames.layout[0].xaxis.showexponent = "all" prop_descrip_text = frames.layout[0].font._prop_descriptions matches = return_prop_descriptions(prop_descrip_text) # It's OK if this needs to change, but we should check *something*. - self.assertEqual( - set(matches), - {'color', 'family', 'size'} - ) + self.assertEqual(set(matches), {"color", "family", "size"}) def test_deeply_nested_data_attributes(self): frames = Frame frames.data = [Bar()] - frames.data[0].marker.color = 'red' + frames.data[0].marker.color = "red" # parse out valid attrs from ._prop_descriptions prop_descrip_text = frames.data[0].marker.line._prop_descriptions @@ -72,13 +66,24 @@ def test_deeply_nested_data_attributes(self): matches = return_prop_descriptions(prop_descrip_text) # Skip 'cmid' that is going to be added in plotly.js 1.45.0 - matches = [m for m in matches if m != 'cmid'] + matches = [m for m in matches if m != "cmid"] # It's OK if this needs to change, but we should check *something*. self.assertEqual( set(matches), - {'colorsrc', 'autocolorscale', 'cmin', 'colorscale', 'color', - 'reversescale', 'width', 'cauto', 'widthsrc', 'cmax', 'coloraxis'} + { + "colorsrc", + "autocolorscale", + "cmin", + "colorscale", + "color", + "reversescale", + "width", + "cauto", + "widthsrc", + "cmax", + "coloraxis", + }, ) def test_frame_only_attrs(self): @@ -91,6 +96,5 @@ def test_frame_only_attrs(self): matches = return_prop_descriptions(prop_descrip_text) self.assertEqual( - set(matches), - {'group', 'name', 'data', 'layout', 'baseframe', 'traces'} + set(matches), {"group", "name", "data", "layout", "baseframe", "traces"} ) diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_graph_objs.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_graph_objs.py index 2cf2f4ded78..5002e82059a 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_graph_objs.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_graph_objs.py @@ -3,18 +3,49 @@ import plotly.graph_objs as go -OLD_CLASS_NAMES = ['AngularAxis', 'Annotation', 'Annotations', 'Area', - 'Bar', 'Box', 'ColorBar', 'Contour', 'Contours', - 'Data', 'ErrorX', 'ErrorY', 'ErrorZ', 'Figure', - 'Font', 'Frame', 'Frames', 'Heatmap', 'Histogram', - 'Histogram2d', 'Histogram2dContour', 'Layout', 'Legend', - 'Line', 'Margin', 'Marker', 'RadialAxis', 'Scatter', - 'Scatter3d', 'Scene', 'Stream', 'Surface', 'Trace', - 'XAxis', 'XBins', 'YAxis', 'YBins', 'ZAxis'] +OLD_CLASS_NAMES = [ + "AngularAxis", + "Annotation", + "Annotations", + "Area", + "Bar", + "Box", + "ColorBar", + "Contour", + "Contours", + "Data", + "ErrorX", + "ErrorY", + "ErrorZ", + "Figure", + "Font", + "Frame", + "Frames", + "Heatmap", + "Histogram", + "Histogram2d", + "Histogram2dContour", + "Layout", + "Legend", + "Line", + "Margin", + "Marker", + "RadialAxis", + "Scatter", + "Scatter3d", + "Scene", + "Stream", + "Surface", + "Trace", + "XAxis", + "XBins", + "YAxis", + "YBins", + "ZAxis", +] class TestBackwardsCompat(TestCase): - def test_old_class_names(self): # these were all defined at one point, we want to maintain backwards @@ -43,53 +74,50 @@ def test_title_as_string_layout(self): go.layout.scene.ZAxis(), go.layout.polar.RadialAxis(), go.scatter.marker.ColorBar(), - go.cone.ColorBar() - ] + go.cone.ColorBar(), + ] for obj in layout_title_parents: - obj.title = 'A title' + obj.title = "A title" - self.assertEqual(obj.title.text, 'A title') - self.assertEqual(obj.to_plotly_json(), - {'title': {'text': 'A title'}}) + self.assertEqual(obj.title.text, "A title") + self.assertEqual(obj.to_plotly_json(), {"title": {"text": "A title"}}) # And update - obj.update(title='A title 2') - self.assertEqual(obj.title.text, 'A title 2') - self.assertEqual(obj.to_plotly_json(), - {'title': {'text': 'A title 2'}}) + obj.update(title="A title 2") + self.assertEqual(obj.title.text, "A title 2") + self.assertEqual(obj.to_plotly_json(), {"title": {"text": "A title 2"}}) # Update titlefont - obj.update(titlefont={'size': 23}) + obj.update(titlefont={"size": 23}) self.assertEqual(obj.title.font.size, 23) - self.assertEqual(obj.to_plotly_json(), - {'title': - {'text': 'A title 2', - 'font': {'size': 23}}}) + self.assertEqual( + obj.to_plotly_json(), + {"title": {"text": "A title 2", "font": {"size": 23}}}, + ) # Pie obj = go.Pie() - obj.title = 'A title' - self.assertEqual(obj.title.text, 'A title') - self.assertEqual(obj.to_plotly_json(), - {'title': {'text': 'A title'}, - 'type': 'pie'}) + obj.title = "A title" + self.assertEqual(obj.title.text, "A title") + self.assertEqual( + obj.to_plotly_json(), {"title": {"text": "A title"}, "type": "pie"} + ) # And update - obj.update(title='A title 2') - self.assertEqual(obj.title.text, 'A title 2') - self.assertEqual(obj.to_plotly_json(), - {'type': 'pie', - 'title': {'text': 'A title 2'}}) + obj.update(title="A title 2") + self.assertEqual(obj.title.text, "A title 2") + self.assertEqual( + obj.to_plotly_json(), {"type": "pie", "title": {"text": "A title 2"}} + ) # Update titlefont - obj.update(titlefont={'size': 23}) + obj.update(titlefont={"size": 23}) self.assertEqual(obj.title.font.size, 23) - self.assertEqual(obj.to_plotly_json(), - {'type': 'pie', - 'title': - {'text': 'A title 2', - 'font': {'size': 23}}}) + self.assertEqual( + obj.to_plotly_json(), + {"type": "pie", "title": {"text": "A title 2", "font": {"size": 23}}}, + ) def test_legacy_title_props_remapped(self): @@ -99,56 +127,56 @@ def test_legacy_title_props_remapped(self): self.assertIsNone(obj.title.font.family) # Set titlefont in constructor - obj = go.Layout(titlefont={'family': 'Courier'}) + obj = go.Layout(titlefont={"family": "Courier"}) self.assertIs(obj.titlefont, obj.title.font) - self.assertEqual(obj.titlefont.family, 'Courier') - self.assertEqual(obj.title.font.family, 'Courier') + self.assertEqual(obj.titlefont.family, "Courier") + self.assertEqual(obj.title.font.family, "Courier") # Property assignment obj = go.Layout() - obj.titlefont.family = 'Courier' + obj.titlefont.family = "Courier" self.assertIs(obj.titlefont, obj.title.font) - self.assertEqual(obj['titlefont.family'], 'Courier') - self.assertEqual(obj.title.font.family, 'Courier') + self.assertEqual(obj["titlefont.family"], "Courier") + self.assertEqual(obj.title.font.family, "Courier") # In/Iter - self.assertIn('titlefont', obj) - self.assertIn('titlefont.family', obj) - self.assertIn('titlefont', iter(obj)) + self.assertIn("titlefont", obj) + self.assertIn("titlefont.family", obj) + self.assertIn("titlefont", iter(obj)) class TestPop(TestCase): def setUp(self): self.layout = go.Layout( width=1000, - title={'text': 'the title', 'font': {'size': 20}}, + title={"text": "the title", "font": {"size": 20}}, annotations=[{}, {}], - xaxis2={'range': [1, 2]} + xaxis2={"range": [1, 2]}, ) def test_pop_valid_simple_prop(self): self.assertEqual(self.layout.width, 1000) - self.assertEqual(self.layout.pop('width'), 1000) + self.assertEqual(self.layout.pop("width"), 1000) self.assertIsNone(self.layout.width) def test_pop_valid_compound_prop(self): val = self.layout.title - self.assertEqual(self.layout.pop('title'), val) + self.assertEqual(self.layout.pop("title"), val) self.assertEqual(self.layout.title, go.layout.Title()) def test_pop_valid_array_prop(self): val = self.layout.annotations - self.assertEqual(self.layout.pop('annotations'), val) + self.assertEqual(self.layout.pop("annotations"), val) self.assertEqual(self.layout.annotations, ()) def test_pop_valid_subplot_prop(self): val = self.layout.xaxis2 - self.assertEqual(self.layout.pop('xaxis2'), val) + self.assertEqual(self.layout.pop("xaxis2"), val) self.assertEqual(self.layout.xaxis2, go.layout.XAxis()) def test_pop_invalid_prop_key_error(self): with self.assertRaises(KeyError): - self.layout.pop('bogus') + self.layout.pop("bogus") def test_pop_invalid_prop_with_default(self): - self.assertEqual(self.layout.pop('bogus', 42), 42) \ No newline at end of file + self.assertEqual(self.layout.pop("bogus", 42), 42) diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_instantiate_hierarchy.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_instantiate_hierarchy.py index cfe77b5510b..11b5f6cbc73 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_instantiate_hierarchy.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_instantiate_hierarchy.py @@ -5,32 +5,35 @@ import inspect from plotly.basedatatypes import BasePlotlyType, BaseFigure -datatypes_root = 'plotly/graph_objs' -datatype_modules = [dirpath.replace('/', '.') - for dirpath, _, _ in os.walk(datatypes_root) - if not dirpath.endswith('__pycache__')] +datatypes_root = "plotly/graph_objs" +datatype_modules = [ + dirpath.replace("/", ".") + for dirpath, _, _ in os.walk(datatypes_root) + if not dirpath.endswith("__pycache__") +] -class HierarchyTest(TestCase): +class HierarchyTest(TestCase): def test_construct_datatypes(self): for datatypes_module in datatype_modules: module = importlib.import_module(datatypes_module) for name, obj in inspect.getmembers(module, inspect.isclass): - if name.startswith('_'): + if name.startswith("_"): continue try: v = obj() except Exception: - print('Failed to construct {obj} in module {module}' - .format(obj=obj, module=datatypes_module)) - - if obj.__module__ == 'plotly.graph_objs._deprecations': - self.assertTrue( - isinstance(v, list) or isinstance(v, dict) + print ( + "Failed to construct {obj} in module {module}".format( + obj=obj, module=datatypes_module + ) ) + + if obj.__module__ == "plotly.graph_objs._deprecations": + self.assertTrue(isinstance(v, list) or isinstance(v, dict)) obj() - elif name in ('Figure', 'FigureWidget'): + elif name in ("Figure", "FigureWidget"): self.assertIsInstance(v, BaseFigure) else: self.assertIsInstance(v, BasePlotlyType) diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_layout_subplots.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_layout_subplots.py index cff47b2aec9..1401512ada4 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_layout_subplots.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_layout_subplots.py @@ -5,7 +5,6 @@ class TestLayoutSubplots(TestCase): - def setUp(self): # Construct initial scatter object self.layout = go.Layout() @@ -13,14 +12,14 @@ def setUp(self): pio.templates.default = None def tearDown(self): - pio.templates.default = 'plotly' + pio.templates.default = "plotly" def test_initial_access_subplots(self): # It should be possible to access base subplots initially self.assertEqual(self.layout.xaxis, go.layout.XAxis()) self.assertEqual(self.layout.yaxis, go.layout.YAxis()) - self.assertEqual(self.layout['geo'], go.layout.Geo()) + self.assertEqual(self.layout["geo"], go.layout.Geo()) self.assertEqual(self.layout.scene, go.layout.Scene()) self.assertEqual(self.layout.mapbox, go.layout.Mapbox()) self.assertEqual(self.layout.polar, go.layout.Polar()) @@ -40,13 +39,13 @@ def test_initial_access_subplot2(self): @raises(KeyError) def test_initial_access_subplot2(self): - self.layout['xaxis2'] + self.layout["xaxis2"] def test_assign_subplots(self): self.assertIsNone(self.layout.xaxis.title.text) self.assertIsNone(self.layout.xaxis1.title.text) - title_str = 'xaxis title' + title_str = "xaxis title" self.layout.xaxis.title.text = title_str self.assertEqual(self.layout.xaxis.title.text, title_str) self.assertEqual(self.layout.xaxis1.title.text, title_str) @@ -70,66 +69,66 @@ def test_assign_subplot2(self): def test_contains(self): # Initially xaxis and xaxis1 are `in` layout, but xaxis2 and 3 are not - self.assertTrue('xaxis' in self.layout) - self.assertTrue('xaxis1' in self.layout) - self.assertFalse('xaxis2' in self.layout) - self.assertFalse('xaxis3' in self.layout) + self.assertTrue("xaxis" in self.layout) + self.assertTrue("xaxis1" in self.layout) + self.assertFalse("xaxis2" in self.layout) + self.assertFalse("xaxis3" in self.layout) # xaxis is in iter props, but xaxis1, 2, and 3 are not iter_props = list(self.layout) - self.assertIn('xaxis', iter_props) - self.assertNotIn('xaxis1', iter_props) - self.assertNotIn('xaxis2', iter_props) - self.assertNotIn('xaxis3', iter_props) + self.assertIn("xaxis", iter_props) + self.assertNotIn("xaxis1", iter_props) + self.assertNotIn("xaxis2", iter_props) + self.assertNotIn("xaxis3", iter_props) # test dir props (these drive ipython tab completion) dir_props = self.layout.__dir__() - self.assertIn('xaxis', dir_props) - self.assertNotIn('xaxis1', dir_props) - self.assertNotIn('xaxis2', dir_props) - self.assertNotIn('xaxis3', dir_props) + self.assertIn("xaxis", dir_props) + self.assertNotIn("xaxis1", dir_props) + self.assertNotIn("xaxis2", dir_props) + self.assertNotIn("xaxis3", dir_props) # Initialize xaxis2 self.layout.xaxis2 = {} - self.assertTrue('xaxis' in self.layout) - self.assertTrue('xaxis1' in self.layout) - self.assertTrue('xaxis2' in self.layout) - self.assertFalse('xaxis3' in self.layout) + self.assertTrue("xaxis" in self.layout) + self.assertTrue("xaxis1" in self.layout) + self.assertTrue("xaxis2" in self.layout) + self.assertFalse("xaxis3" in self.layout) # xaxis and xaxis2 are in iter props iter_props = list(self.layout) - self.assertIn('xaxis', iter_props) - self.assertNotIn('xaxis1', iter_props) - self.assertIn('xaxis2', iter_props) - self.assertNotIn('xaxis3', iter_props) + self.assertIn("xaxis", iter_props) + self.assertNotIn("xaxis1", iter_props) + self.assertIn("xaxis2", iter_props) + self.assertNotIn("xaxis3", iter_props) # test dir props dir_props = self.layout.__dir__() - self.assertIn('xaxis', dir_props) - self.assertNotIn('xaxis1', dir_props) - self.assertIn('xaxis2', dir_props) - self.assertNotIn('xaxis3', dir_props) + self.assertIn("xaxis", dir_props) + self.assertNotIn("xaxis1", dir_props) + self.assertIn("xaxis2", dir_props) + self.assertNotIn("xaxis3", dir_props) # Initialize xaxis3 - self.layout['xaxis3'] = {} - self.assertTrue('xaxis' in self.layout) - self.assertTrue('xaxis1' in self.layout) - self.assertTrue('xaxis2' in self.layout) - self.assertTrue('xaxis3' in self.layout) + self.layout["xaxis3"] = {} + self.assertTrue("xaxis" in self.layout) + self.assertTrue("xaxis1" in self.layout) + self.assertTrue("xaxis2" in self.layout) + self.assertTrue("xaxis3" in self.layout) # xaxis, xaxis2, and xaxis3 are in iter props iter_props = list(self.layout) - self.assertIn('xaxis', iter_props) - self.assertNotIn('xaxis1', iter_props) - self.assertIn('xaxis2', iter_props) - self.assertIn('xaxis3', iter_props) + self.assertIn("xaxis", iter_props) + self.assertNotIn("xaxis1", iter_props) + self.assertIn("xaxis2", iter_props) + self.assertIn("xaxis3", iter_props) # test dir props dir_props = self.layout.__dir__() - self.assertIn('xaxis', dir_props) - self.assertNotIn('xaxis1', dir_props) - self.assertIn('xaxis2', dir_props) - self.assertIn('xaxis3', dir_props) + self.assertIn("xaxis", dir_props) + self.assertNotIn("xaxis1", dir_props) + self.assertIn("xaxis2", dir_props) + self.assertIn("xaxis3", dir_props) def test_subplot_objs_have_proper_type(self): self.layout.xaxis2 = {} @@ -154,76 +153,86 @@ def test_subplot_objs_have_proper_type(self): self.assertIsInstance(self.layout.polar8, go.layout.Polar) def test_subplot_1_in_constructor(self): - layout = go.Layout(xaxis1=go.layout.XAxis(title={'text': 'xaxis 1'})) - self.assertEqual(layout.xaxis1.title.text, 'xaxis 1') + layout = go.Layout(xaxis1=go.layout.XAxis(title={"text": "xaxis 1"})) + self.assertEqual(layout.xaxis1.title.text, "xaxis 1") def test_subplot_props_in_constructor(self): - layout = go.Layout(xaxis2=go.layout.XAxis(title={'text': 'xaxis 2'}), - yaxis3=go.layout.YAxis(title={'text': 'yaxis 3'}), - geo4=go.layout.Geo(bgcolor='blue'), - ternary5=go.layout.Ternary(sum=120), - scene6=go.layout.Scene(dragmode='zoom'), - mapbox7=go.layout.Mapbox(zoom=2), - polar8=go.layout.Polar(sector=[0, 90])) - - self.assertEqual(layout.xaxis2.title.text, 'xaxis 2') - self.assertEqual(layout.yaxis3.title.text, 'yaxis 3') - self.assertEqual(layout.geo4.bgcolor, 'blue') + layout = go.Layout( + xaxis2=go.layout.XAxis(title={"text": "xaxis 2"}), + yaxis3=go.layout.YAxis(title={"text": "yaxis 3"}), + geo4=go.layout.Geo(bgcolor="blue"), + ternary5=go.layout.Ternary(sum=120), + scene6=go.layout.Scene(dragmode="zoom"), + mapbox7=go.layout.Mapbox(zoom=2), + polar8=go.layout.Polar(sector=[0, 90]), + ) + + self.assertEqual(layout.xaxis2.title.text, "xaxis 2") + self.assertEqual(layout.yaxis3.title.text, "yaxis 3") + self.assertEqual(layout.geo4.bgcolor, "blue") self.assertEqual(layout.ternary5.sum, 120) - self.assertEqual(layout.scene6.dragmode, 'zoom') + self.assertEqual(layout.scene6.dragmode, "zoom") self.assertEqual(layout.mapbox7.zoom, 2) self.assertEqual(layout.polar8.sector, (0, 90)) def test_create_subplot_with_update(self): self.layout.update( - xaxis1=go.layout.XAxis(title={'text': 'xaxis 1'}), - xaxis2=go.layout.XAxis(title={'text': 'xaxis 2'}), - yaxis3=go.layout.YAxis(title={'text': 'yaxis 3'}), - geo4=go.layout.Geo(bgcolor='blue'), + xaxis1=go.layout.XAxis(title={"text": "xaxis 1"}), + xaxis2=go.layout.XAxis(title={"text": "xaxis 2"}), + yaxis3=go.layout.YAxis(title={"text": "yaxis 3"}), + geo4=go.layout.Geo(bgcolor="blue"), ternary5=go.layout.Ternary(sum=120), - scene6=go.layout.Scene(dragmode='zoom'), + scene6=go.layout.Scene(dragmode="zoom"), mapbox7=go.layout.Mapbox(zoom=2), - polar8=go.layout.Polar(sector=[0, 90])) + polar8=go.layout.Polar(sector=[0, 90]), + ) - self.assertEqual(self.layout.xaxis1.title.text, 'xaxis 1') - self.assertEqual(self.layout.xaxis2.title.text, 'xaxis 2') - self.assertEqual(self.layout.yaxis3.title.text, 'yaxis 3') - self.assertEqual(self.layout.geo4.bgcolor, 'blue') + self.assertEqual(self.layout.xaxis1.title.text, "xaxis 1") + self.assertEqual(self.layout.xaxis2.title.text, "xaxis 2") + self.assertEqual(self.layout.yaxis3.title.text, "yaxis 3") + self.assertEqual(self.layout.geo4.bgcolor, "blue") self.assertEqual(self.layout.ternary5.sum, 120) - self.assertEqual(self.layout.scene6.dragmode, 'zoom') + self.assertEqual(self.layout.scene6.dragmode, "zoom") self.assertEqual(self.layout.mapbox7.zoom, 2) self.assertEqual(self.layout.polar8.sector, (0, 90)) def test_create_subplot_with_update_dict(self): - self.layout.update({'xaxis1': {'title': {'text': 'xaxis 1'}}, - 'xaxis2': {'title': {'text': 'xaxis 2'}}, - 'yaxis3': {'title': {'text': 'yaxis 3'}}, - 'geo4': {'bgcolor': 'blue'}, - 'ternary5': {'sum': 120}, - 'scene6': {'dragmode': 'zoom'}, - 'mapbox7': {'zoom': 2}, - 'polar8': {'sector': [0, 90]}}) - - self.assertEqual(self.layout.xaxis1.title.text, 'xaxis 1') - self.assertEqual(self.layout.xaxis2.title.text, 'xaxis 2') - self.assertEqual(self.layout.yaxis3.title.text, 'yaxis 3') - self.assertEqual(self.layout.geo4.bgcolor, 'blue') + self.layout.update( + { + "xaxis1": {"title": {"text": "xaxis 1"}}, + "xaxis2": {"title": {"text": "xaxis 2"}}, + "yaxis3": {"title": {"text": "yaxis 3"}}, + "geo4": {"bgcolor": "blue"}, + "ternary5": {"sum": 120}, + "scene6": {"dragmode": "zoom"}, + "mapbox7": {"zoom": 2}, + "polar8": {"sector": [0, 90]}, + } + ) + + self.assertEqual(self.layout.xaxis1.title.text, "xaxis 1") + self.assertEqual(self.layout.xaxis2.title.text, "xaxis 2") + self.assertEqual(self.layout.yaxis3.title.text, "yaxis 3") + self.assertEqual(self.layout.geo4.bgcolor, "blue") self.assertEqual(self.layout.ternary5.sum, 120) - self.assertEqual(self.layout.scene6.dragmode, 'zoom') + self.assertEqual(self.layout.scene6.dragmode, "zoom") self.assertEqual(self.layout.mapbox7.zoom, 2) self.assertEqual(self.layout.polar8.sector, (0, 90)) def test_bug_1462(self): # https: // github.com / plotly / plotly.py / issues / 1462 - fig = go.Figure(data=[ - go.Scatter(x=[1, 2], y=[1, 2], xaxis='x'), - go.Scatter(x=[2, 3], y=[2, 3], xaxis='x2')]) + fig = go.Figure( + data=[ + go.Scatter(x=[1, 2], y=[1, 2], xaxis="x"), + go.Scatter(x=[2, 3], y=[2, 3], xaxis="x2"), + ] + ) layout_dict = { - 'grid': {'xaxes': ['x', 'x2'], 'yaxes': ['y']}, - 'xaxis2': {'matches': 'x', 'title': {'text': 'total_bill'}} + "grid": {"xaxes": ["x", "x2"], "yaxes": ["y"]}, + "xaxis2": {"matches": "x", "title": {"text": "total_bill"}}, } fig.update(layout=layout_dict) diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_properties_validated.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_properties_validated.py index 897b2104c7a..74fe1e6b7aa 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_properties_validated.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_properties_validated.py @@ -4,11 +4,10 @@ class TestPropertyValidation(TestCase): - def setUp(self): # Construct initial scatter object self.scatter = go.Scatter() - self.scatter.name = 'Scatter 1' + self.scatter.name = "Scatter 1" @raises(ValueError) def test_validators_work_attr(self): @@ -26,7 +25,7 @@ def test_validators_work_item(self): `_plotly_utils/tests/validators`. Here we're just making sure that datatypes make use of validators """ - self.scatter['name'] = [1, 2, 3] + self.scatter["name"] = [1, 2, 3] @raises(ValueError) def test_invalid_attr_assignment(self): @@ -34,15 +33,15 @@ def test_invalid_attr_assignment(self): @raises(ValueError) def test_invalid_item_assignment(self): - self.scatter['bogus'] = 87 + self.scatter["bogus"] = 87 @raises(ValueError) def test_invalid_dot_assignment(self): - self.scatter['marker.bogus'] = 87 + self.scatter["marker.bogus"] = 87 @raises(ValueError) def test_invalid_tuple_assignment(self): - self.scatter[('marker', 'bogus')] = 87 + self.scatter[("marker", "bogus")] = 87 @raises(ValueError) def test_invalid_constructor_kwarg(self): @@ -50,11 +49,10 @@ def test_invalid_constructor_kwarg(self): class TestPropertyPresentation(TestCase): - def setUp(self): # Construct initial scatter object self.scatter = go.Scatter() - self.scatter.name = 'Scatter 1' + self.scatter.name = "Scatter 1" self.layout = go.Layout() @@ -65,44 +63,47 @@ def test_present_dataarray(self): self.scatter.x = [1, 2, 3, 4] # Stored as list - self.assertEqual(self.scatter.to_plotly_json()['x'], - [1, 2, 3, 4]) + self.assertEqual(self.scatter.to_plotly_json()["x"], [1, 2, 3, 4]) # Returned as tuple - self.assertEqual(self.scatter.x, - (1, 2, 3, 4)) + self.assertEqual(self.scatter.x, (1, 2, 3, 4)) def test_present_compound_array(self): self.assertEqual(self.layout.images, ()) # Assign compound list - self.layout.images = [go.layout.Image(layer='above'), - go.layout.Image(layer='below')] + self.layout.images = [ + go.layout.Image(layer="above"), + go.layout.Image(layer="below"), + ] # Stored as list of dicts - self.assertEqual(self.layout.to_plotly_json()['images'], - [{'layer': 'above'}, {'layer': 'below'}]) + self.assertEqual( + self.layout.to_plotly_json()["images"], + [{"layer": "above"}, {"layer": "below"}], + ) # Presented as compound tuple - self.assertEqual(self.layout.images, - (go.layout.Image(layer='above'), - go.layout.Image(layer='below'))) + self.assertEqual( + self.layout.images, + (go.layout.Image(layer="above"), go.layout.Image(layer="below")), + ) def test_present_colorscale(self): self.assertIsNone(self.scatter.marker.colorscale) # Assign list of tuples - self.scatter.marker.colorscale = [(0, 'red'), (1, 'green')] + self.scatter.marker.colorscale = [(0, "red"), (1, "green")] # Stored as list of lists self.assertEqual( - self.scatter.to_plotly_json()['marker']['colorscale'], - [[0, 'red'], [1, 'green']]) + self.scatter.to_plotly_json()["marker"]["colorscale"], + [[0, "red"], [1, "green"]], + ) # Presented as tuple of tuples - self.assertEqual(self.scatter.marker.colorscale, - ((0, 'red'), (1, 'green'))) - + self.assertEqual(self.scatter.marker.colorscale, ((0, "red"), (1, "green"))) + def test_present_colorscale_str(self): self.assertIsNone(self.scatter.marker.colorscale) @@ -110,48 +111,46 @@ def test_present_colorscale_str(self): self.scatter.marker.colorscale = "Viridis" # Presented as a string - self.assertEqual(self.scatter.marker.colorscale, - "Viridis") + self.assertEqual(self.scatter.marker.colorscale, "Viridis") class TestPropertyIterContains(TestCase): - def setUp(self): # Construct initial scatter object self.parcoords = go.Parcoords() - self.parcoords.name = 'Scatter 1' + self.parcoords.name = "Scatter 1" def test_contains(self): # Primitive property - self.assertTrue('name' in self.parcoords) + self.assertTrue("name" in self.parcoords) # Compound property - self.assertTrue('line' in self.parcoords) + self.assertTrue("line" in self.parcoords) # Literal - self.assertTrue('type' in self.parcoords) + self.assertTrue("type" in self.parcoords) # Compound array property - self.assertTrue('dimensions' in self.parcoords) + self.assertTrue("dimensions" in self.parcoords) # Bogus - self.assertFalse('bogus' in self.parcoords) + self.assertFalse("bogus" in self.parcoords) def test_iter(self): parcoords_list = list(self.parcoords) # Primitive property - self.assertTrue('name' in parcoords_list) + self.assertTrue("name" in parcoords_list) # Compound property - self.assertTrue('line' in parcoords_list) + self.assertTrue("line" in parcoords_list) # Literal - self.assertTrue('type' in parcoords_list) + self.assertTrue("type" in parcoords_list) # Compound array property - self.assertTrue('dimensions' in parcoords_list) + self.assertTrue("dimensions" in parcoords_list) # Bogus - self.assertFalse('bogus' in parcoords_list) + self.assertFalse("bogus" in parcoords_list) diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_property_assignment.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_property_assignment.py index 84669af8ad4..59c12f67b85 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_property_assignment.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_property_assignment.py @@ -5,158 +5,155 @@ class TestAssignmentPrimitive(TestCase): - def setUp(self): # Construct initial scatter object - self.scatter = go.Scatter(name='scatter A') + self.scatter = go.Scatter(name="scatter A") # Assert initial state d1, d2 = strip_dict_params( - self.scatter, - {'type': 'scatter', - 'name': 'scatter A'} + self.scatter, {"type": "scatter", "name": "scatter A"} ) assert d1 == d2 # Construct expected results self.expected_toplevel = { - 'type': 'scatter', - 'name': 'scatter A', - 'fillcolor': 'green'} + "type": "scatter", + "name": "scatter A", + "fillcolor": "green", + } self.expected_nested = { - 'type': 'scatter', - 'name': 'scatter A', - 'marker': {'colorbar': { - 'title': {'font': {'family': 'courier'}}}}} + "type": "scatter", + "name": "scatter A", + "marker": {"colorbar": {"title": {"font": {"family": "courier"}}}}, + } self.expected_nested_error_x = { - 'type': 'scatter', - 'name': 'scatter A', - 'error_x': {'type': 'percent'}} + "type": "scatter", + "name": "scatter A", + "error_x": {"type": "percent"}, + } def test_toplevel_attr(self): assert self.scatter.fillcolor is None - self.scatter.fillcolor = 'green' - assert self.scatter.fillcolor == 'green' + self.scatter.fillcolor = "green" + assert self.scatter.fillcolor == "green" d1, d2 = strip_dict_params(self.scatter, self.expected_toplevel) assert d1 == d2 def test_toplevel_item(self): - assert self.scatter['fillcolor'] is None - self.scatter['fillcolor'] = 'green' - assert self.scatter['fillcolor'] == 'green' + assert self.scatter["fillcolor"] is None + self.scatter["fillcolor"] = "green" + assert self.scatter["fillcolor"] == "green" d1, d2 = strip_dict_params(self.scatter, self.expected_toplevel) assert d1 == d2 def test_nested_attr(self): assert self.scatter.marker.colorbar.titlefont.family is None - self.scatter.marker.colorbar.titlefont.family = 'courier' - assert self.scatter.marker.colorbar.titlefont.family == 'courier' + self.scatter.marker.colorbar.titlefont.family = "courier" + assert self.scatter.marker.colorbar.titlefont.family == "courier" d1, d2 = strip_dict_params(self.scatter, self.expected_nested) assert d1 == d2 def test_nested_item(self): - assert (self.scatter['marker']['colorbar']['title']['font']['family'] - is None) - self.scatter['marker']['colorbar']['title']['font']['family'] = \ - 'courier' - assert (self.scatter['marker']['colorbar']['title']['font']['family'] - == 'courier') + assert self.scatter["marker"]["colorbar"]["title"]["font"]["family"] is None + self.scatter["marker"]["colorbar"]["title"]["font"]["family"] = "courier" + assert ( + self.scatter["marker"]["colorbar"]["title"]["font"]["family"] == "courier" + ) d1, d2 = strip_dict_params(self.scatter, self.expected_nested) assert d1 == d2 def test_nested_item_dots(self): - assert self.scatter['marker.colorbar.title.font.family'] is None - self.scatter['marker.colorbar.title.font.family'] = 'courier' - assert self.scatter['marker.colorbar.title.font.family'] == 'courier' + assert self.scatter["marker.colorbar.title.font.family"] is None + self.scatter["marker.colorbar.title.font.family"] = "courier" + assert self.scatter["marker.colorbar.title.font.family"] == "courier" d1, d2 = strip_dict_params(self.scatter, self.expected_nested) assert d1 == d2 def test_nested_item_tuple(self): - assert self.scatter['marker.colorbar.title.font.family'] is None - self.scatter[('marker', 'colorbar', 'title.font', 'family')] = 'courier' - assert (self.scatter[('marker', 'colorbar', 'title.font', 'family')] - == 'courier') + assert self.scatter["marker.colorbar.title.font.family"] is None + self.scatter[("marker", "colorbar", "title.font", "family")] = "courier" + assert self.scatter[("marker", "colorbar", "title.font", "family")] == "courier" d1, d2 = strip_dict_params(self.scatter, self.expected_nested) assert d1 == d2 def test_nested_update(self): self.scatter.update( - marker={'colorbar': {'title': {'font': {'family': 'courier'}}}}) - assert (self.scatter[('marker', 'colorbar', 'title', 'font', 'family')] - == 'courier') + marker={"colorbar": {"title": {"font": {"family": "courier"}}}} + ) + assert ( + self.scatter[("marker", "colorbar", "title", "font", "family")] == "courier" + ) d1, d2 = strip_dict_params(self.scatter, self.expected_nested) assert d1 == d2 def test_nested_update_dots(self): - assert self.scatter['marker.colorbar.title.font.family'] is None - self.scatter.update({'marker.colorbar.title.font.family': 'courier'}) + assert self.scatter["marker.colorbar.title.font.family"] is None + self.scatter.update({"marker.colorbar.title.font.family": "courier"}) - assert self.scatter['marker.colorbar.title.font.family'] == 'courier' + assert self.scatter["marker.colorbar.title.font.family"] == "courier" d1, d2 = strip_dict_params(self.scatter, self.expected_nested) assert d1 == d2 def test_nested_update_underscores(self): - assert self.scatter['error_x.type'] is None - self.scatter.update({'error_x_type': 'percent'}) + assert self.scatter["error_x.type"] is None + self.scatter.update({"error_x_type": "percent"}) - assert self.scatter['error_x_type'] == 'percent' + assert self.scatter["error_x_type"] == "percent" d1, d2 = strip_dict_params(self.scatter, self.expected_nested_error_x) assert d1 == d2 class TestAssignmentCompound(TestCase): - def setUp(self): # Construct initial scatter object - self.scatter = go.Scatter(name='scatter A') + self.scatter = go.Scatter(name="scatter A") # Assert initial state d1, d2 = strip_dict_params( - self.scatter, - {'type': 'scatter', - 'name': 'scatter A'} + self.scatter, {"type": "scatter", "name": "scatter A"} ) assert d1 == d2 # Construct expected results self.expected_toplevel = { - 'type': 'scatter', - 'name': 'scatter A', - 'marker': {'color': 'yellow', - 'size': 10}} + "type": "scatter", + "name": "scatter A", + "marker": {"color": "yellow", "size": 10}, + } self.expected_nested = { - 'type': 'scatter', - 'name': 'scatter A', - 'marker': {'colorbar': { - 'bgcolor': 'yellow', - 'thickness': 5}}} + "type": "scatter", + "name": "scatter A", + "marker": {"colorbar": {"bgcolor": "yellow", "thickness": 5}}, + } def test_toplevel_obj(self): d1, d2 = strip_dict_params(self.scatter.marker, {}) assert d1 == d2 - self.scatter.marker = go.scatter.Marker(color='yellow', size=10) + self.scatter.marker = go.scatter.Marker(color="yellow", size=10) assert isinstance(self.scatter.marker, go.scatter.Marker) - d1, d2 = strip_dict_params(self.scatter.marker, - self.expected_toplevel['marker']) + d1, d2 = strip_dict_params( + self.scatter.marker, self.expected_toplevel["marker"] + ) assert d1 == d2 d1, d2 = strip_dict_params(self.scatter, self.expected_toplevel) assert d1 == d2 def test_toplevel_dict(self): - d1, d2 = strip_dict_params(self.scatter['marker'], {}) + d1, d2 = strip_dict_params(self.scatter["marker"], {}) assert d1 == d2 - self.scatter['marker'] = dict(color='yellow', size=10) + self.scatter["marker"] = dict(color="yellow", size=10) - assert isinstance(self.scatter['marker'], go.scatter.Marker) - d1, d2 = strip_dict_params(self.scatter.marker, - self.expected_toplevel['marker']) + assert isinstance(self.scatter["marker"], go.scatter.Marker) + d1, d2 = strip_dict_params( + self.scatter.marker, self.expected_toplevel["marker"] + ) assert d1 == d2 d1, d2 = strip_dict_params(self.scatter, self.expected_toplevel) @@ -166,27 +163,30 @@ def test_nested_obj(self): d1, d2 = strip_dict_params(self.scatter.marker.colorbar, {}) assert d1 == d2 self.scatter.marker.colorbar = go.scatter.marker.ColorBar( - bgcolor='yellow', thickness=5) + bgcolor="yellow", thickness=5 + ) - assert isinstance(self.scatter.marker.colorbar, - go.scatter.marker.ColorBar) - d1, d2 = strip_dict_params(self.scatter.marker.colorbar, - self.expected_nested['marker']['colorbar']) + assert isinstance(self.scatter.marker.colorbar, go.scatter.marker.ColorBar) + d1, d2 = strip_dict_params( + self.scatter.marker.colorbar, self.expected_nested["marker"]["colorbar"] + ) assert d1 == d2 d1, d2 = strip_dict_params(self.scatter, self.expected_nested) assert d1 == d2 def test_nested_dict(self): - d1, d2 = strip_dict_params(self.scatter['marker']['colorbar'], {}) + d1, d2 = strip_dict_params(self.scatter["marker"]["colorbar"], {}) assert d1 == d2 - self.scatter['marker']['colorbar'] = dict( - bgcolor='yellow', thickness=5) + self.scatter["marker"]["colorbar"] = dict(bgcolor="yellow", thickness=5) - assert isinstance(self.scatter['marker']['colorbar'], - go.scatter.marker.ColorBar) - d1, d2 = strip_dict_params(self.scatter['marker']['colorbar'], - self.expected_nested['marker']['colorbar']) + assert isinstance( + self.scatter["marker"]["colorbar"], go.scatter.marker.ColorBar + ) + d1, d2 = strip_dict_params( + self.scatter["marker"]["colorbar"], + self.expected_nested["marker"]["colorbar"], + ) assert d1 == d2 d1, d2 = strip_dict_params(self.scatter, self.expected_nested) @@ -195,28 +195,29 @@ def test_nested_dict(self): def test_nested_dict_dot(self): d1, d2 = strip_dict_params(self.scatter.marker.colorbar, {}) assert d1 == d2 - self.scatter['marker.colorbar'] = dict( - bgcolor='yellow', thickness=5) + self.scatter["marker.colorbar"] = dict(bgcolor="yellow", thickness=5) - assert isinstance(self.scatter['marker.colorbar'], - go.scatter.marker.ColorBar) - d1, d2 = strip_dict_params(self.scatter['marker.colorbar'], - self.expected_nested['marker']['colorbar']) + assert isinstance(self.scatter["marker.colorbar"], go.scatter.marker.ColorBar) + d1, d2 = strip_dict_params( + self.scatter["marker.colorbar"], self.expected_nested["marker"]["colorbar"] + ) assert d1 == d2 d1, d2 = strip_dict_params(self.scatter, self.expected_nested) assert d1 == d2 def test_nested_dict_tuple(self): - d1, d2 = strip_dict_params(self.scatter[('marker', 'colorbar')], {}) + d1, d2 = strip_dict_params(self.scatter[("marker", "colorbar")], {}) assert d1 == d2 - self.scatter[('marker', 'colorbar')] = dict( - bgcolor='yellow', thickness=5) + self.scatter[("marker", "colorbar")] = dict(bgcolor="yellow", thickness=5) - assert isinstance(self.scatter[('marker', 'colorbar')], - go.scatter.marker.ColorBar) - d1, d2 = strip_dict_params(self.scatter[('marker', 'colorbar')], - self.expected_nested['marker']['colorbar']) + assert isinstance( + self.scatter[("marker", "colorbar")], go.scatter.marker.ColorBar + ) + d1, d2 = strip_dict_params( + self.scatter[("marker", "colorbar")], + self.expected_nested["marker"]["colorbar"], + ) assert d1 == d2 d1, d2 = strip_dict_params(self.scatter, self.expected_nested) @@ -225,14 +226,18 @@ def test_nested_dict_tuple(self): def test_nested_update_obj(self): self.scatter.update( - marker={'colorbar': - go.scatter.marker.ColorBar(bgcolor='yellow', - thickness=5)}) + marker={ + "colorbar": go.scatter.marker.ColorBar(bgcolor="yellow", thickness=5) + } + ) - assert isinstance(self.scatter['marker']['colorbar'], - go.scatter.marker.ColorBar) - d1, d2 = strip_dict_params(self.scatter['marker']['colorbar'], - self.expected_nested['marker']['colorbar']) + assert isinstance( + self.scatter["marker"]["colorbar"], go.scatter.marker.ColorBar + ) + d1, d2 = strip_dict_params( + self.scatter["marker"]["colorbar"], + self.expected_nested["marker"]["colorbar"], + ) assert d1 == d2 d1, d2 = strip_dict_params(self.scatter, self.expected_nested) @@ -240,13 +245,15 @@ def test_nested_update_obj(self): def test_nested_update_dict(self): - self.scatter.update( - marker={'colorbar': dict(bgcolor='yellow', thickness=5)}) + self.scatter.update(marker={"colorbar": dict(bgcolor="yellow", thickness=5)}) - assert isinstance(self.scatter['marker']['colorbar'], - go.scatter.marker.ColorBar) - d1, d2 = strip_dict_params(self.scatter['marker']['colorbar'], - self.expected_nested['marker']['colorbar']) + assert isinstance( + self.scatter["marker"]["colorbar"], go.scatter.marker.ColorBar + ) + d1, d2 = strip_dict_params( + self.scatter["marker"]["colorbar"], + self.expected_nested["marker"]["colorbar"], + ) assert d1 == d2 d1, d2 = strip_dict_params(self.scatter, self.expected_nested) @@ -254,21 +261,19 @@ def test_nested_update_dict(self): class TestAssignmnetNone(TestCase): - def test_toplevel(self): # Initialize scatter - scatter = go.Scatter(name='scatter A', - y=[3, 2, 4], - marker={ - 'colorbar': { - 'title': {'font': { - 'family': 'courier'}}}}) + scatter = go.Scatter( + name="scatter A", + y=[3, 2, 4], + marker={"colorbar": {"title": {"font": {"family": "courier"}}}}, + ) expected = { - 'type': 'scatter', - 'name': 'scatter A', - 'y': [3, 2, 4], - 'marker': {'colorbar': { - 'title': {'font': {'family': 'courier'}}}}} + "type": "scatter", + "name": "scatter A", + "y": [3, 2, 4], + "marker": {"colorbar": {"title": {"font": {"family": "courier"}}}}, + } d1, d2 = strip_dict_params(scatter, expected) assert d1 == d2 @@ -278,82 +283,77 @@ def test_toplevel(self): d1, d2 = strip_dict_params(scatter, expected) assert d1 == d2 - scatter['line.width'] = None + scatter["line.width"] = None d1, d2 = strip_dict_params(scatter, expected) assert d1 == d2 # Set defined property to None scatter.y = None - expected.pop('y') + expected.pop("y") d1, d2 = strip_dict_params(scatter, expected) assert d1 == d2 # Set compound properties to None - scatter[('marker', 'colorbar', 'title', 'font')] = None - expected['marker']['colorbar']['title'].pop('font') + scatter[("marker", "colorbar", "title", "font")] = None + expected["marker"]["colorbar"]["title"].pop("font") d1, d2 = strip_dict_params(scatter, expected) assert d1 == d2 scatter.marker = None - expected.pop('marker') + expected.pop("marker") d1, d2 = strip_dict_params(scatter, expected) assert d1 == d2 class TestAssignCompoundArray(TestCase): - def setUp(self): # Construct initial scatter object - self.parcoords = go.Parcoords(name='parcoords A') + self.parcoords = go.Parcoords(name="parcoords A") # Assert initial state d1, d2 = strip_dict_params( - self.parcoords, - {'type': 'parcoords', - 'name': 'parcoords A'} + self.parcoords, {"type": "parcoords", "name": "parcoords A"} ) assert d1 == d2 # Construct expected results self.expected_toplevel = { - 'type': 'parcoords', - 'name': 'parcoords A', - 'dimensions': [ - {'values': [2, 3, 1], 'visible': True}, - {'values': [1, 2, 3], 'label': 'dim1'}]} + "type": "parcoords", + "name": "parcoords A", + "dimensions": [ + {"values": [2, 3, 1], "visible": True}, + {"values": [1, 2, 3], "label": "dim1"}, + ], + } self.layout = go.Layout() - self.expected_layout1 = { - 'updatemenus': [{}, - {'font': {'family': 'courier'}}] - } + self.expected_layout1 = {"updatemenus": [{}, {"font": {"family": "courier"}}]} self.expected_layout2 = { - 'updatemenus': [{}, - {'buttons': [ - {}, {}, {'method': 'restyle'}]}] + "updatemenus": [{}, {"buttons": [{}, {}, {"method": "restyle"}]}] } def test_assign_toplevel_array(self): self.assertEqual(self.parcoords.dimensions, ()) - self.parcoords['dimensions'] = [ + self.parcoords["dimensions"] = [ go.parcoords.Dimension(values=[2, 3, 1], visible=True), - dict(values=[1, 2, 3], label='dim1')] + dict(values=[1, 2, 3], label="dim1"), + ] - self.assertEqual(self.parcoords.to_plotly_json(), - self.expected_toplevel) + self.assertEqual(self.parcoords.to_plotly_json(), self.expected_toplevel) def test_assign_nested_attr(self): self.assertEqual(self.layout.updatemenus, ()) # Initialize empty updatemenus self.layout.updatemenus = [{}, {}] - self.assertEqual(self.layout['updatemenus'], - (go.layout.Updatemenu(), go.layout.Updatemenu())) + self.assertEqual( + self.layout["updatemenus"], (go.layout.Updatemenu(), go.layout.Updatemenu()) + ) - self.layout.updatemenus[1].font.family = 'courier' + self.layout.updatemenus[1].font.family = "courier" d1, d2 = strip_dict_params(self.layout, self.expected_layout1) assert d1 == d2 @@ -367,12 +367,10 @@ def test_assign_double_nested_attr(self): self.layout.updatemenus[1].buttons = [{}, {}, {}] # Assign - self.layout.updatemenus[1].buttons[2].method = 'restyle' + self.layout.updatemenus[1].buttons[2].method = "restyle" # Check - self.assertEqual( - self.layout.updatemenus[1].buttons[2].method, - 'restyle') + self.assertEqual(self.layout.updatemenus[1].buttons[2].method, "restyle") d1, d2 = strip_dict_params(self.layout, self.expected_layout2) assert d1 == d2 @@ -383,15 +381,14 @@ def test_assign_double_nested_item(self): self.layout.updatemenus = [{}, {}] # Initialize empty buttons in updatemenu[1] - self.layout['updatemenus'][1]['buttons'] = [{}, {}, {}] + self.layout["updatemenus"][1]["buttons"] = [{}, {}, {}] # Assign - self.layout['updatemenus'][1]['buttons'][2]['method'] = 'restyle' + self.layout["updatemenus"][1]["buttons"][2]["method"] = "restyle" # Check self.assertEqual( - self.layout['updatemenus'][1]['buttons'][2]['method'], - 'restyle' + self.layout["updatemenus"][1]["buttons"][2]["method"], "restyle" ) d1, d2 = strip_dict_params(self.layout, self.expected_layout2) @@ -404,15 +401,15 @@ def test_assign_double_nested_tuple(self): self.layout.updatemenus = [{}, {}] # Initialize empty buttons in updatemenu[1] - self.layout[('updatemenus', 1, 'buttons')] = [{}, {}, {}] + self.layout[("updatemenus", 1, "buttons")] = [{}, {}, {}] # Assign - self.layout[('updatemenus', 1, 'buttons', 2, 'method')] = 'restyle' + self.layout[("updatemenus", 1, "buttons", 2, "method")] = "restyle" # Check self.assertEqual( - self.layout[('updatemenus', 1, 'buttons', 2, 'method')], - 'restyle') + self.layout[("updatemenus", 1, "buttons", 2, "method")], "restyle" + ) d1, d2 = strip_dict_params(self.layout, self.expected_layout2) assert d1 == d2 @@ -421,18 +418,16 @@ def test_assign_double_nested_dot(self): self.assertEqual(self.layout.updatemenus, ()) # Initialize empty updatemenus - self.layout['updatemenus'] = [{}, {}] + self.layout["updatemenus"] = [{}, {}] # Initialize empty buttons in updatemenu[1] - self.layout['updatemenus.1.buttons'] = [{}, {}, {}] + self.layout["updatemenus.1.buttons"] = [{}, {}, {}] # Assign - self.layout['updatemenus[1].buttons[2].method'] = 'restyle' + self.layout["updatemenus[1].buttons[2].method"] = "restyle" # Check - self.assertEqual( - self.layout['updatemenus[1].buttons[2].method'], - 'restyle') + self.assertEqual(self.layout["updatemenus[1].buttons[2].method"], "restyle") d1, d2 = strip_dict_params(self.layout, self.expected_layout2) assert d1 == d2 @@ -445,13 +440,10 @@ def test_assign_double_nested_update_dict(self): self.layout.updatemenus[1].buttons = [{}, {}, {}] # Update - self.layout.update( - updatemenus={1: {'buttons': {2: {'method': 'restyle'}}}}) + self.layout.update(updatemenus={1: {"buttons": {2: {"method": "restyle"}}}}) # Check - self.assertEqual( - self.layout.updatemenus[1].buttons[2].method, - 'restyle') + self.assertEqual(self.layout.updatemenus[1].buttons[2].method, "restyle") d1, d2 = strip_dict_params(self.layout, self.expected_layout2) assert d1 == d2 @@ -465,12 +457,11 @@ def test_assign_double_nested_update_array(self): # Update self.layout.update( - updatemenus=[{}, {'buttons': [{}, {}, {'method': 'restyle'}]}]) + updatemenus=[{}, {"buttons": [{}, {}, {"method": "restyle"}]}] + ) # Check - self.assertEqual( - self.layout.updatemenus[1].buttons[2].method, - 'restyle') + self.assertEqual(self.layout.updatemenus[1].buttons[2].method, "restyle") d1, d2 = strip_dict_params(self.layout, self.expected_layout2) assert d1 == d2 @@ -478,18 +469,16 @@ def test_update_double_nested_dot(self): self.assertEqual(self.layout.updatemenus, ()) # Initialize empty updatemenus - self.layout['updatemenus'] = [{}, {}] + self.layout["updatemenus"] = [{}, {}] # Initialize empty buttons in updatemenu[1] - self.layout['updatemenus.1.buttons'] = [{}, {}, {}] + self.layout["updatemenus.1.buttons"] = [{}, {}, {}] # Update - self.layout.update({'updatemenus[1].buttons[2].method': 'restyle'}) + self.layout.update({"updatemenus[1].buttons[2].method": "restyle"}) # Check - self.assertEqual( - self.layout['updatemenus[1].buttons[2].method'], - 'restyle') + self.assertEqual(self.layout["updatemenus[1].buttons[2].method"], "restyle") d1, d2 = strip_dict_params(self.layout, self.expected_layout2) assert d1 == d2 @@ -497,17 +486,15 @@ def test_update_double_nested_underscore(self): self.assertEqual(self.layout.updatemenus, ()) # Initialize empty updatemenus - self.layout['updatemenus'] = [{}, {}] + self.layout["updatemenus"] = [{}, {}] # Initialize empty buttons in updatemenu[1] - self.layout['updatemenus_1_buttons'] = [{}, {}, {}] + self.layout["updatemenus_1_buttons"] = [{}, {}, {}] # Update - self.layout.update({'updatemenus_1_buttons_2_method': 'restyle'}) + self.layout.update({"updatemenus_1_buttons_2_method": "restyle"}) # Check - self.assertEqual( - self.layout['updatemenus[1].buttons[2].method'], - 'restyle') + self.assertEqual(self.layout["updatemenus[1].buttons[2].method"], "restyle") d1, d2 = strip_dict_params(self.layout, self.expected_layout2) assert d1 == d2 diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_repr.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_repr.py index 317660eb802..4ecdf05bcc7 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_repr.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_repr.py @@ -4,13 +4,12 @@ class TestGraphObjRepr(TestCase): - def test_trace_repr(self): N = 100 scatt = go.Scatter( y=list(range(N)), - marker={'color': 'green', - 'opacity': [e / N for e in range(N)]}) + marker={"color": "green", "opacity": [e / N for e in range(N)]}, + ) expected = """\ Scatter({ @@ -40,8 +39,8 @@ def test_trace_repr_elided(self): N = 1000 scatt = go.Scatter( y=list(range(N)), - marker={'color': 'green', - 'opacity': [e / N for e in range(N)]}) + marker={"color": "green", "opacity": [e / N for e in range(N)]}, + ) expected = """\ Scatter({ diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_scatter.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_scatter.py index 1f7e04ae0c2..1999055a599 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_scatter.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_scatter.py @@ -13,8 +13,9 @@ def test_trivial(): - print(Scatter()) - assert Scatter().to_plotly_json() == dict(type='scatter') + print (Scatter()) + assert Scatter().to_plotly_json() == dict(type="scatter") + # @raises(PlotlyError) # TODO: decide if this SHOULD raise error... # def test_instantiation_error(): @@ -23,7 +24,7 @@ def test_trivial(): # TODO: decide if this should raise error -#def test_validate(): +# def test_validate(): # Scatter().validate() # @raises(PlotlyError) diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_template.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_template.py index 53560452e2e..1065cd7f3a8 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_template.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_template.py @@ -14,17 +14,16 @@ class TemplateTest(TestCase): # Fixtures # -------- def setUp(self): - pio.templates['test_template'] = { - 'layout': {'font': {'family': 'Rockwell'}}} + pio.templates["test_template"] = {"layout": {"font": {"family": "Rockwell"}}} pio.templates.default = None def tearDown(self): try: - del pio.templates['test_template'] + del pio.templates["test_template"] except KeyError: pass - pio.templates.default = 'plotly' + pio.templates.default = "plotly" # template graph_objs tests # ------------------------- @@ -33,250 +32,296 @@ def test_starts_as_empty(self): self.assertEqual(fig.layout.template, go.layout.Template()) def test_init_in_figure_constructor(self): - fig = go.Figure(layout={ - 'template': {'layout': {'title': {'text': 'Hello, world'}}}}) + fig = go.Figure( + layout={"template": {"layout": {"title": {"text": "Hello, world"}}}} + ) - self.assertEqual(fig.layout.template, - go.layout.Template(layout={ - 'title': {'text': 'Hello, world'}})) + self.assertEqual( + fig.layout.template, + go.layout.Template(layout={"title": {"text": "Hello, world"}}), + ) - self.assertEqual(fig.to_dict(), - {'data': [], - 'layout': { - 'template': { - 'layout': { - 'title': {'text': 'Hello, world'}}}}}) + self.assertEqual( + fig.to_dict(), + { + "data": [], + "layout": {"template": {"layout": {"title": {"text": "Hello, world"}}}}, + }, + ) def test_init_in_property_assignment(self): fig = go.Figure() fig.layout.template = go.layout.Template( - layout={'title': {'text': 'Hello, world'}}) + layout={"title": {"text": "Hello, world"}} + ) - self.assertEqual(fig.layout.template, - go.layout.Template( - layout={'title': {'text': 'Hello, world'}})) + self.assertEqual( + fig.layout.template, + go.layout.Template(layout={"title": {"text": "Hello, world"}}), + ) - self.assertEqual(fig.to_dict(), - {'data': [], - 'layout': { - 'template': { - 'layout': { - 'title': {'text': 'Hello, world'}}}}}) + self.assertEqual( + fig.to_dict(), + { + "data": [], + "layout": {"template": {"layout": {"title": {"text": "Hello, world"}}}}, + }, + ) def test_defaults_in_constructor(self): - fig = go.Figure(layout={ - 'template': { - 'layout': { - 'imagedefaults': {'sizex': 500}}}}) + fig = go.Figure( + layout={"template": {"layout": {"imagedefaults": {"sizex": 500}}}} + ) - self.assertEqual(fig.layout.template.layout.imagedefaults, - go.layout.Image(sizex=500)) + self.assertEqual( + fig.layout.template.layout.imagedefaults, go.layout.Image(sizex=500) + ) - self.assertEqual(fig.to_dict(), - {'data': [], - 'layout': { - 'template': { - 'layout': { - 'imagedefaults': {'sizex': 500}}}}}) + self.assertEqual( + fig.to_dict(), + { + "data": [], + "layout": {"template": {"layout": {"imagedefaults": {"sizex": 500}}}}, + }, + ) def test_defaults_in_property_assignment(self): fig = go.Figure() - fig.layout.template.layout.sliderdefaults = \ - go.layout.Slider(bgcolor='green') + fig.layout.template.layout.sliderdefaults = go.layout.Slider(bgcolor="green") - self.assertEqual(fig.layout.template.layout.sliderdefaults, - go.layout.Slider(bgcolor='green')) + self.assertEqual( + fig.layout.template.layout.sliderdefaults, go.layout.Slider(bgcolor="green") + ) - self.assertEqual(fig.to_dict(), - {'data': [], - 'layout': { - 'template': { - 'layout': { - 'sliderdefaults': { - 'bgcolor': 'green'}}}}}) + self.assertEqual( + fig.to_dict(), + { + "data": [], + "layout": { + "template": {"layout": {"sliderdefaults": {"bgcolor": "green"}}} + }, + }, + ) @raises(ValueError) def test_invalid_defaults_property_name_constructor(self): - go.Figure(layout={ - 'template': { - 'layout': { - 'imagedefaults': {'bogus': 500}}}}) + go.Figure(layout={"template": {"layout": {"imagedefaults": {"bogus": 500}}}}) @raises(ValueError) def test_invalid_defaults_property_value_constructor(self): - go.Figure(layout={ - 'template': { - 'layout': { - 'imagedefaults': {'sizex': 'str not number'}}}}) + go.Figure( + layout={ + "template": {"layout": {"imagedefaults": {"sizex": "str not number"}}} + } + ) @raises(ValueError) def test_invalid_defaults_property_name_constructor(self): - go.Figure(layout={ - 'template': { - 'layout': { - 'xaxis': {'bogus': 500}}}}) + go.Figure(layout={"template": {"layout": {"xaxis": {"bogus": 500}}}}) @raises(ValueError) def test_invalid_defaults_property_value_constructor(self): - go.Figure(layout={ - 'template': { - 'layout': { - 'xaxis': {'range': 'str not tuple'}}}}) + go.Figure( + layout={"template": {"layout": {"xaxis": {"range": "str not tuple"}}}} + ) # plotly.io.template tests # ------------------------ def test_template_as_name_constructor(self): - fig = go.Figure(layout={'template': 'test_template'}) - self.assertEqual(fig.layout.template, pio.templates['test_template']) + fig = go.Figure(layout={"template": "test_template"}) + self.assertEqual(fig.layout.template, pio.templates["test_template"]) def test_template_as_name_assignment(self): fig = go.Figure() self.assertEqual(fig.layout.template, go.layout.Template()) - fig.layout.template = 'test_template' - self.assertEqual(fig.layout.template, pio.templates['test_template']) + fig.layout.template = "test_template" + self.assertEqual(fig.layout.template, pio.templates["test_template"]) def test_template_default(self): - pio.templates.default = 'test_template' + pio.templates.default = "test_template" fig = go.Figure() - self.assertEqual(fig.layout.template, pio.templates['test_template']) + self.assertEqual(fig.layout.template, pio.templates["test_template"]) def test_template_default_override(self): - pio.templates.default = 'test_template' - template = go.layout.Template(layout={'font': {'size': 30}}) - fig = go.Figure(layout={'template': template}) + pio.templates.default = "test_template" + template = go.layout.Template(layout={"font": {"size": 30}}) + fig = go.Figure(layout={"template": template}) self.assertEqual(fig.layout.template, template) def test_template_default_override_empty(self): - pio.templates.default = 'test_template' - fig = go.Figure(layout={'template': {}}) + pio.templates.default = "test_template" + fig = go.Figure(layout={"template": {}}) self.assertEqual(fig.layout.template, go.layout.Template()) def test_delete_default_template(self): - pio.templates.default = 'test_template' - self.assertEqual(pio.templates.default, 'test_template') + pio.templates.default = "test_template" + self.assertEqual(pio.templates.default, "test_template") - del pio.templates['test_template'] + del pio.templates["test_template"] self.assertIsNone(pio.templates.default) def test_template_in(self): - self.assertTrue('test_template' in pio.templates) - self.assertFalse('bogus' in pio.templates) + self.assertTrue("test_template" in pio.templates) + self.assertFalse("bogus" in pio.templates) self.assertFalse(42 in pio.templates) def test_template_iter(self): - self.assertIn('test_template', set(pio.templates)) + self.assertIn("test_template", set(pio.templates)) class TestToTemplated(TestCaseNoTemplate): - def test_move_layout_nested_properties(self): - fig = go.Figure(layout={'font': {'family': 'Courier New'}, - 'paper_bgcolor': 'yellow', - 'title': 'Hello'}) + fig = go.Figure( + layout={ + "font": {"family": "Courier New"}, + "paper_bgcolor": "yellow", + "title": "Hello", + } + ) templated_fig = pio.to_templated(fig) # Note that properties named 'title' are not moved to template by # default - expected_fig = go.Figure(layout={ - 'template': {'layout': {'font': {'family': 'Courier New'}, - 'paper_bgcolor': 'yellow'}}, - 'title': 'Hello'}) + expected_fig = go.Figure( + layout={ + "template": { + "layout": { + "font": {"family": "Courier New"}, + "paper_bgcolor": "yellow", + } + }, + "title": "Hello", + } + ) self.assertEqual(templated_fig, expected_fig) def test_move_layout_nested_properties_no_skip(self): - fig = go.Figure(layout={'font': {'family': 'Courier New'}, - 'paper_bgcolor': 'yellow', - 'title': 'Hello'}) + fig = go.Figure( + layout={ + "font": {"family": "Courier New"}, + "paper_bgcolor": "yellow", + "title": "Hello", + } + ) templated_fig = pio.to_templated(fig, skip=None) # With skip=None properties named 'title' should be moved to template - expected_fig = go.Figure(layout={ - 'template': {'layout': {'font': {'family': 'Courier New'}, - 'paper_bgcolor': 'yellow', - 'title': 'Hello'}}}) + expected_fig = go.Figure( + layout={ + "template": { + "layout": { + "font": {"family": "Courier New"}, + "paper_bgcolor": "yellow", + "title": "Hello", + } + } + } + ) self.assertEqual(templated_fig, expected_fig) def test_move_layout_nested_with_existing_template(self): - fig = go.Figure(layout={'font': {'family': 'Courier New'}, - 'title': 'Hello', - 'template': {'layout': { - 'font': {'family': 'Arial', - 'size': 10}}}}) + fig = go.Figure( + layout={ + "font": {"family": "Courier New"}, + "title": "Hello", + "template": {"layout": {"font": {"family": "Arial", "size": 10}}}, + } + ) templated_fig = pio.to_templated(fig) - expected_fig = go.Figure(layout={ - 'template': {'layout': {'font': {'family': 'Courier New', - 'size': 10}}}, - 'title': 'Hello'}) + expected_fig = go.Figure( + layout={ + "template": {"layout": {"font": {"family": "Courier New", "size": 10}}}, + "title": "Hello", + } + ) self.assertEqual(templated_fig, expected_fig) def test_move_unnamed_annotation_property(self): - fig = go.Figure(layout={ - 'annotations': [{'arrowcolor': 'blue', - 'text': 'First one', - 'font': {'size': 23}}, - {'arrowcolor': 'green', - 'text': 'Second one', - 'font': {'family': 'Rockwell'}}]}) + fig = go.Figure( + layout={ + "annotations": [ + {"arrowcolor": "blue", "text": "First one", "font": {"size": 23}}, + { + "arrowcolor": "green", + "text": "Second one", + "font": {"family": "Rockwell"}, + }, + ] + } + ) templated_fig = pio.to_templated(fig) # Note that properties named 'text' are not moved to template by # default, unless they are part of a named array element - expected_fig = go.Figure(layout={ - 'annotations': [{'text': 'First one'}, {'text': 'Second one'}], - 'template': {'layout': {'annotationdefaults': { - 'arrowcolor': 'green', - 'font': {'size': 23, 'family': 'Rockwell'} - }}} - }) + expected_fig = go.Figure( + layout={ + "annotations": [{"text": "First one"}, {"text": "Second one"}], + "template": { + "layout": { + "annotationdefaults": { + "arrowcolor": "green", + "font": {"size": 23, "family": "Rockwell"}, + } + } + }, + } + ) self.assertEqual(templated_fig, expected_fig) def test_move_named_annotation_property(self): - fig = go.Figure(layout={ - 'annotations': [{'arrowcolor': 'blue', - 'text': 'First one', - 'font': {'size': 23}}, - {'arrowcolor': 'green', - 'text': 'Second one', - 'font': {'family': 'Rockwell'}, - 'name': 'First'}]}) + fig = go.Figure( + layout={ + "annotations": [ + {"arrowcolor": "blue", "text": "First one", "font": {"size": 23}}, + { + "arrowcolor": "green", + "text": "Second one", + "font": {"family": "Rockwell"}, + "name": "First", + }, + ] + } + ) templated_fig = pio.to_templated(fig) - expected_fig = go.Figure(layout={ - 'annotations': [{'text': 'First one'}, {'name': 'First'}], - 'template': {'layout': { - 'annotationdefaults': { - 'arrowcolor': 'blue', - 'font': {'size': 23} + expected_fig = go.Figure( + layout={ + "annotations": [{"text": "First one"}, {"name": "First"}], + "template": { + "layout": { + "annotationdefaults": { + "arrowcolor": "blue", + "font": {"size": 23}, + }, + "annotations": [ + { + "arrowcolor": "green", + "font": {"family": "Rockwell"}, + "text": "Second one", + "name": "First", + } + ], + } }, - 'annotations': [{'arrowcolor': 'green', - 'font': {'family': 'Rockwell'}, - 'text': 'Second one', - 'name': 'First'}] - }} - }) + } + ) self.assertEqual(templated_fig, expected_fig) def test_move_nested_trace_properties(self): fig = go.Figure( data=[ - go.Bar(y=[1, 2, 3], - marker={'opacity': 0.6, - 'color': 'green'}), - go.Scatter(x=[1, 3, 2], - marker={'size': 30, - 'color': [1, 1, 0]}), - go.Bar(y=[3, 2, 1], - marker={'opacity': 0.4, - 'color': [1, 0.5, 0]}) + go.Bar(y=[1, 2, 3], marker={"opacity": 0.6, "color": "green"}), + go.Scatter(x=[1, 3, 2], marker={"size": 30, "color": [1, 1, 0]}), + go.Bar(y=[3, 2, 1], marker={"opacity": 0.4, "color": [1, 0.5, 0]}), ], - layout={'barmode': 'group'} + layout={"barmode": "group"}, ) templated_fig = pio.to_templated(fig) @@ -284,48 +329,38 @@ def test_move_nested_trace_properties(self): expected_fig = go.Figure( data=[ go.Bar(y=[1, 2, 3]), - go.Scatter(x=[1, 3, 2], marker={'color': [1, 1, 0]}), - go.Bar(y=[3, 2, 1], marker={'color': [1, 0.5, 0]}) + go.Scatter(x=[1, 3, 2], marker={"color": [1, 1, 0]}), + go.Bar(y=[3, 2, 1], marker={"color": [1, 0.5, 0]}), ], layout={ - 'template': { - 'data': { - 'scatter': [go.Scatter(marker={'size': 30})], - 'bar': [ - go.Bar(marker={'opacity': 0.6, - 'color': 'green'}), - go.Bar(marker={'opacity': 0.4}) - ]}, - 'layout': { - 'barmode': 'group' - } + "template": { + "data": { + "scatter": [go.Scatter(marker={"size": 30})], + "bar": [ + go.Bar(marker={"opacity": 0.6, "color": "green"}), + go.Bar(marker={"opacity": 0.4}), + ], + }, + "layout": {"barmode": "group"}, } - } + }, ) - self.assertEqual(pio.to_json(templated_fig), - pio.to_json(expected_fig)) + self.assertEqual(pio.to_json(templated_fig), pio.to_json(expected_fig)) def test_move_nested_trace_properties_existing_traces(self): fig = go.Figure( data=[ - go.Bar(y=[1, 2, 3], - marker={'opacity': 0.6, - 'color': 'green'}), - go.Scatter(x=[1, 3, 2], - marker={'size': 30, - 'color': [1, 1, 0]}), - go.Bar(y=[3, 2, 1], - marker={'opacity': 0.4, - 'color': [1, 0.5, 0]}) + go.Bar(y=[1, 2, 3], marker={"opacity": 0.6, "color": "green"}), + go.Scatter(x=[1, 3, 2], marker={"size": 30, "color": [1, 1, 0]}), + go.Bar(y=[3, 2, 1], marker={"opacity": 0.4, "color": [1, 0.5, 0]}), ], - layout={'barmode': 'group', - 'template': { - 'data': { - 'bar': [go.Bar(marker={ - 'line': {'color': 'purple'}})] - } - }} + layout={ + "barmode": "group", + "template": { + "data": {"bar": [go.Bar(marker={"line": {"color": "purple"}})]} + }, + }, ) templated_fig = pio.to_templated(fig) @@ -333,109 +368,109 @@ def test_move_nested_trace_properties_existing_traces(self): expected_fig = go.Figure( data=[ go.Bar(y=[1, 2, 3]), - go.Scatter(x=[1, 3, 2], marker={'color': [1, 1, 0]}), - go.Bar(y=[3, 2, 1], marker={'color': [1, 0.5, 0]}) + go.Scatter(x=[1, 3, 2], marker={"color": [1, 1, 0]}), + go.Bar(y=[3, 2, 1], marker={"color": [1, 0.5, 0]}), ], layout={ - 'template': { - 'data': { - 'scatter': [go.Scatter(marker={'size': 30})], - 'bar': [ - go.Bar(marker={'opacity': 0.6, - 'color': 'green', - 'line': { - 'color': 'purple' - }}), - go.Bar(marker={'opacity': 0.4}) - ]}, - 'layout': { - 'barmode': 'group' - } + "template": { + "data": { + "scatter": [go.Scatter(marker={"size": 30})], + "bar": [ + go.Bar( + marker={ + "opacity": 0.6, + "color": "green", + "line": {"color": "purple"}, + } + ), + go.Bar(marker={"opacity": 0.4}), + ], + }, + "layout": {"barmode": "group"}, } - } + }, ) - self.assertEqual(pio.to_json(templated_fig), - pio.to_json(expected_fig)) + self.assertEqual(pio.to_json(templated_fig), pio.to_json(expected_fig)) class TestMergeTemplates(TestCase): - def setUp(self): self.template1 = go.layout.Template( - layout={'font': {'size': 20, 'family': 'Rockwell'}}, + layout={"font": {"size": 20, "family": "Rockwell"}}, data={ - 'scatter': [go.Scatter(line={'dash': 'solid'}), - go.Scatter(line={'dash': 'dot'})], - 'bar': [go.Bar(marker={'opacity': 0.7}), - go.Bar(marker={'opacity': 0.4})], - 'parcoords': [ - go.Parcoords(dimensiondefaults={'multiselect': True}) - ] + "scatter": [ + go.Scatter(line={"dash": "solid"}), + go.Scatter(line={"dash": "dot"}), + ], + "bar": [ + go.Bar(marker={"opacity": 0.7}), + go.Bar(marker={"opacity": 0.4}), + ], + "parcoords": [go.Parcoords(dimensiondefaults={"multiselect": True})] # no 'scattergl' - } + }, ) - pio.templates['template1'] = self.template1 + pio.templates["template1"] = self.template1 self.template1_orig = copy.deepcopy(self.template1) self.template2 = go.layout.Template( - layout={'paper_bgcolor': 'green', - 'font': {'size': 14, 'color': 'yellow'}}, + layout={"paper_bgcolor": "green", "font": {"size": 14, "color": "yellow"}}, data={ - 'scatter': [go.Scatter(marker={'color': 'red'}), - go.Scatter(marker={'color': 'green'}), - go.Scatter(marker={'color': 'blue'})], + "scatter": [ + go.Scatter(marker={"color": "red"}), + go.Scatter(marker={"color": "green"}), + go.Scatter(marker={"color": "blue"}), + ], # no 'bar' - 'parcoords': [ - go.Parcoords(line={'colorscale': 'Viridis'}), - go.Parcoords(line={'colorscale': 'Blues'}) + "parcoords": [ + go.Parcoords(line={"colorscale": "Viridis"}), + go.Parcoords(line={"colorscale": "Blues"}), ], - 'scattergl': [go.Scattergl(hoverinfo='x+y')] - } + "scattergl": [go.Scattergl(hoverinfo="x+y")], + }, ) - pio.templates['template2'] = self.template2 + pio.templates["template2"] = self.template2 self.template2_orig = copy.deepcopy(self.template2) self.expected1_2 = go.layout.Template( - layout={'paper_bgcolor': 'green', - 'font': {'size': 14, - 'color': 'yellow', - 'family': 'Rockwell'}}, + layout={ + "paper_bgcolor": "green", + "font": {"size": 14, "color": "yellow", "family": "Rockwell"}, + }, data={ - 'scatter': [ - go.Scatter(marker={'color': 'red'}, - line={'dash': 'solid'}), - go.Scatter(marker={'color': 'green'}, - line={'dash': 'dot'}), - go.Scatter(marker={'color': 'blue'}, - line={'dash': 'solid'}), - go.Scatter(marker={'color': 'red'}, - line={'dash': 'dot'}), - go.Scatter(marker={'color': 'green'}, - line={'dash': 'solid'}), - go.Scatter(marker={'color': 'blue'}, - line={'dash': 'dot'}), + "scatter": [ + go.Scatter(marker={"color": "red"}, line={"dash": "solid"}), + go.Scatter(marker={"color": "green"}, line={"dash": "dot"}), + go.Scatter(marker={"color": "blue"}, line={"dash": "solid"}), + go.Scatter(marker={"color": "red"}, line={"dash": "dot"}), + go.Scatter(marker={"color": "green"}, line={"dash": "solid"}), + go.Scatter(marker={"color": "blue"}, line={"dash": "dot"}), ], - 'bar': [go.Bar(marker={'opacity': 0.7}), - go.Bar(marker={'opacity': 0.4})], - 'parcoords': [ - go.Parcoords(dimensiondefaults={'multiselect': True}, - line={'colorscale': 'Viridis'}), - go.Parcoords(dimensiondefaults={'multiselect': True}, - line={'colorscale': 'Blues'}) + "bar": [ + go.Bar(marker={"opacity": 0.7}), + go.Bar(marker={"opacity": 0.4}), ], - 'scattergl': [go.Scattergl(hoverinfo='x+y')] - } + "parcoords": [ + go.Parcoords( + dimensiondefaults={"multiselect": True}, + line={"colorscale": "Viridis"}, + ), + go.Parcoords( + dimensiondefaults={"multiselect": True}, + line={"colorscale": "Blues"}, + ), + ], + "scattergl": [go.Scattergl(hoverinfo="x+y")], + }, ) def test_merge_0(self): - self.assertEqual(pio.templates.merge_templates(), - go.layout.Template()) + self.assertEqual(pio.templates.merge_templates(), go.layout.Template()) def test_merge_1(self): - self.assertEqual(pio.templates.merge_templates(self.template1), - self.template1) + self.assertEqual(pio.templates.merge_templates(self.template1), self.template1) def test_merge_2(self): result = pio.templates.merge_templates(self.template1, self.template2) @@ -448,11 +483,10 @@ def test_merge_2(self): self.assertEqual(self.template2, self.template2_orig) def test_merge_3(self): - template3 = go.layout.Template(layout={'margin': {'l': 0, 'r': 0}}) + template3 = go.layout.Template(layout={"margin": {"l": 0, "r": 0}}) result = pio.templates.merge_templates( - self.template1, - self.template2, - template3) + self.template1, self.template2, template3 + ) expected = self.expected1_2 expected.update(template3) @@ -464,7 +498,7 @@ def test_merge_3(self): def test_merge_by_flaglist_string(self): layout = go.Layout() - layout.template = 'template1+template2' + layout.template = "template1+template2" result = layout.template expected = self.expected1_2 @@ -476,8 +510,10 @@ def test_merge_by_flaglist_string(self): def test_set_default_template(self): orig_default = pio.templates.default - pio.templates.default = 'plotly' + pio.templates.default = "plotly" fig = go.Figure() - self.assertEqual(fig.layout.template.to_plotly_json(), - pio.templates['plotly'].to_plotly_json()) + self.assertEqual( + fig.layout.template.to_plotly_json(), + pio.templates["plotly"].to_plotly_json(), + ) pio.templates.default = orig_default diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_to_ordered_dict.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_to_ordered_dict.py index 9f14b46c601..1a577bffe54 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_to_ordered_dict.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_to_ordered_dict.py @@ -6,86 +6,132 @@ class FigureTest(TestCaseNoTemplate): - def test_to_ordered_dict(self): - fig = go.Figure(layout={'yaxis': {'range': [1, 2]}, - 'xaxis': {'range': [1, 2]}, - 'shapes': [{'xsizemode': 'pixel', - 'type': 'circle'}, - {'type': 'line', - 'xsizemode': 'pixel'}]}, - data=[{'type': 'scatter', - 'marker': {'size': 12, 'color': 'green'}}, - {'type': 'bar', - 'y': [1, 2], - 'x': [1, 2]}]) + fig = go.Figure( + layout={ + "yaxis": {"range": [1, 2]}, + "xaxis": {"range": [1, 2]}, + "shapes": [ + {"xsizemode": "pixel", "type": "circle"}, + {"type": "line", "xsizemode": "pixel"}, + ], + }, + data=[ + {"type": "scatter", "marker": {"size": 12, "color": "green"}}, + {"type": "bar", "y": [1, 2], "x": [1, 2]}, + ], + ) result = fig.to_ordered_dict() - expected = OrderedDict([('data', [ - OrderedDict([('marker', - OrderedDict([('color', 'green'), ('size', 12)])), - ('type', 'scatter')]), - OrderedDict([('type', 'bar'), - ('x', [1, 2]), - ('y', [1, 2])])]), - ('layout',OrderedDict([ - ('shapes', [ - OrderedDict([ - ('type', 'circle'), - ('xsizemode', 'pixel')]), - OrderedDict([ - ('type', 'line'), - ('xsizemode', 'pixel')])]), - ('xaxis', OrderedDict( - [('range', [1, 2])])), - ('yaxis', OrderedDict( - [('range', [1, 2])])) - ]))]) + expected = OrderedDict( + [ + ( + "data", + [ + OrderedDict( + [ + ( + "marker", + OrderedDict([("color", "green"), ("size", 12)]), + ), + ("type", "scatter"), + ] + ), + OrderedDict([("type", "bar"), ("x", [1, 2]), ("y", [1, 2])]), + ], + ), + ( + "layout", + OrderedDict( + [ + ( + "shapes", + [ + OrderedDict( + [("type", "circle"), ("xsizemode", "pixel")] + ), + OrderedDict( + [("type", "line"), ("xsizemode", "pixel")] + ), + ], + ), + ("xaxis", OrderedDict([("range", [1, 2])])), + ("yaxis", OrderedDict([("range", [1, 2])])), + ] + ), + ), + ] + ) self.assertEqual(result, expected) def test_to_ordered_with_frames(self): - frame = go.Frame(layout={'yaxis': {'range': [1, 2]}, - 'xaxis': {'range': [1, 2]}, - 'shapes': [{'xsizemode': 'pixel', - 'type': 'circle'}, - {'type': 'line', - 'xsizemode': 'pixel'}]}, - data=[{'type': 'scatter', - 'marker': {'size': 12, 'color': 'green'}}, - {'type': 'bar', - 'y': [1, 2], - 'x': [1, 2]}]) + frame = go.Frame( + layout={ + "yaxis": {"range": [1, 2]}, + "xaxis": {"range": [1, 2]}, + "shapes": [ + {"xsizemode": "pixel", "type": "circle"}, + {"type": "line", "xsizemode": "pixel"}, + ], + }, + data=[ + {"type": "scatter", "marker": {"size": 12, "color": "green"}}, + {"type": "bar", "y": [1, 2], "x": [1, 2]}, + ], + ) fig = go.Figure(frames=[{}, frame]) result = fig.to_ordered_dict() - expected_frame = OrderedDict([('data', [ - OrderedDict([('marker', - OrderedDict([('color', 'green'), ('size', 12)])), - ('type', 'scatter')]), - OrderedDict([('type', 'bar'), - ('x', [1, 2]), - ('y', [1, 2])])]), - ('layout', OrderedDict([ - ('shapes', [ - OrderedDict([ - ('type', 'circle'), - ('xsizemode', 'pixel')]), - OrderedDict([ - ('type', 'line'), - ('xsizemode', 'pixel')])]), - ('xaxis', OrderedDict( - [('range', [1, 2])])), - ('yaxis', OrderedDict( - [('range', [1, 2])])) - ]))]) + expected_frame = OrderedDict( + [ + ( + "data", + [ + OrderedDict( + [ + ( + "marker", + OrderedDict([("color", "green"), ("size", 12)]), + ), + ("type", "scatter"), + ] + ), + OrderedDict([("type", "bar"), ("x", [1, 2]), ("y", [1, 2])]), + ], + ), + ( + "layout", + OrderedDict( + [ + ( + "shapes", + [ + OrderedDict( + [("type", "circle"), ("xsizemode", "pixel")] + ), + OrderedDict( + [("type", "line"), ("xsizemode", "pixel")] + ), + ], + ), + ("xaxis", OrderedDict([("range", [1, 2])])), + ("yaxis", OrderedDict([("range", [1, 2])])), + ] + ), + ), + ] + ) - expected = OrderedDict([('data', []), - ('layout', OrderedDict()), - ('frames', [OrderedDict(), - expected_frame])]) + expected = OrderedDict( + [ + ("data", []), + ("layout", OrderedDict()), + ("frames", [OrderedDict(), expected_frame]), + ] + ) self.assertEqual(result, expected) diff --git a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_update.py b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_update.py index 7932c7c790e..fbe60f83b25 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_update.py +++ b/packages/python/plotly/plotly/tests/test_core/test_graph_objs/test_update.py @@ -10,19 +10,18 @@ class TestUpdateMethod(TestCase): def setUp(self): - print('Setup!') + print ("Setup!") def test_update_dict(self): - title = 'this' + title = "this" fig = Figure() update_res1 = fig.update(layout=Layout(title=title)) assert fig == Figure(layout=Layout(title=title)) - update_res2 = fig['layout'].update(xaxis=XAxis()) + update_res2 = fig["layout"].update(xaxis=XAxis()) assert fig == Figure(layout=Layout(title=title, xaxis=XAxis())) assert update_res1 is fig assert update_res2 is fig.layout - def test_update_list(self): trace1 = Scatter(x=[1, 2, 3], y=[2, 1, 2]) trace2 = Scatter(x=[1, 2, 3], y=[3, 2, 1]) @@ -38,7 +37,6 @@ def test_update_list(self): assert update_res1 is fig.data[0] assert update_res2 is fig.data[1] - def test_update_dict_empty(self): trace1 = Scatter(x=[1, 2, 3], y=[2, 1, 2]) trace2 = Scatter(x=[1, 2, 3], y=[3, 2, 1]) @@ -50,7 +48,6 @@ def test_update_dict_empty(self): assert d1 == d2 assert update_res is fig - def test_update_list_empty(self): trace1 = Scatter(x=[1, 2, 3], y=[2, 1, 2]) trace2 = Scatter(x=[1, 2, 3], y=[3, 2, 1]) @@ -61,15 +58,14 @@ def test_update_list_empty(self): d1, d2 = strip_dict_params(fig.data[1], Scatter(x=[1, 2, 3], y=[3, 2, 1])) assert d1 == d2 - - @skip('See https://github.com/plotly/python-api/issues/291') + @skip("See https://github.com/plotly/python-api/issues/291") def test_update_list_make_copies_false(self): trace1 = Scatter(x=[1, 2, 3], y=[2, 1, 2]) trace2 = Scatter(x=[1, 2, 3], y=[3, 2, 1]) data = Data([trace1, trace2]) update = dict(x=[2, 3, 4], y=[1, 2, 3], line=Line()) data.update(update, make_copies=False) - assert data[0]['line'] is data[1]['line'] + assert data[0]["line"] is data[1]["line"] def test_update_uninitialized_list_with_list(self): """ @@ -79,12 +75,14 @@ def test_update_uninitialized_list_with_list(self): See GH1072 """ layout = go.Layout() - layout.update(annotations=[ - go.layout.Annotation(text='one'), - go.layout.Annotation(text='two'), - ]) + layout.update( + annotations=[ + go.layout.Annotation(text="one"), + go.layout.Annotation(text="two"), + ] + ) - expected = {'annotations': [{'text': 'one'}, {'text': 'two'}]} + expected = {"annotations": [{"text": "one"}, {"text": "two"}]} self.assertEqual(len(layout.annotations), 2) self.assertEqual(layout.to_plotly_json(), expected) @@ -98,12 +96,14 @@ def test_update_initialized_empty_list_with_list(self): is not obvious to the user. """ layout = go.Layout(annotations=[]) - layout.update(annotations=[ - go.layout.Annotation(text='one'), - go.layout.Annotation(text='two'), - ]) + layout.update( + annotations=[ + go.layout.Annotation(text="one"), + go.layout.Annotation(text="two"), + ] + ) - expected = {'annotations': [{'text': 'one'}, {'text': 'two'}]} + expected = {"annotations": [{"text": "one"}, {"text": "two"}]} self.assertEqual(len(layout.annotations), 2) self.assertEqual(layout.to_plotly_json(), expected) @@ -114,15 +114,16 @@ def test_update_initialized_nonempty_list_with_dict(self): index numbers to property dicts may be used to update select elements of the existing list """ - layout = go.Layout(annotations=[ - go.layout.Annotation(text='one'), - go.layout.Annotation(text='two'), - ]) + layout = go.Layout( + annotations=[ + go.layout.Annotation(text="one"), + go.layout.Annotation(text="two"), + ] + ) layout.update(annotations={1: go.layout.Annotation(width=30)}) - expected = {'annotations': [{'text': 'one'}, - {'text': 'two', 'width': 30}]} + expected = {"annotations": [{"text": "one"}, {"text": "two", "width": 30}]} self.assertEqual(len(layout.annotations), 2) self.assertEqual(layout.to_plotly_json(), expected) diff --git a/packages/python/plotly/plotly/tests/test_core/test_offline/test_offline.py b/packages/python/plotly/plotly/tests/test_core/test_offline/test_offline.py index 9b937263246..21e33572c3a 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_offline/test_offline.py +++ b/packages/python/plotly/plotly/tests/test_core/test_offline/test_offline.py @@ -15,34 +15,22 @@ import json packages_root = os.path.dirname( - os.path.dirname( - os.path.dirname( - os.path.dirname( - os.path.realpath(plotly.__file__))))) + os.path.dirname(os.path.dirname(os.path.dirname(os.path.realpath(plotly.__file__)))) +) here = os.path.dirname(os.path.realpath(__file__)) -html_filename = os.path.join(here, 'temp-plot.html') +html_filename = os.path.join(here, "temp-plot.html") fig = { - 'data': [ - plotly.graph_objs.Scatter(x=[1, 2, 3], y=[10, 20, 30]) - ], - 'layout': plotly.graph_objs.Layout( - title='offline plot' - ) + "data": [plotly.graph_objs.Scatter(x=[1, 2, 3], y=[10, 20, 30])], + "layout": plotly.graph_objs.Layout(title="offline plot"), } fig_frames = { - 'data': [ - plotly.graph_objs.Scatter(x=[1, 2, 3], y=[10, 20, 30]) - ], - 'layout': plotly.graph_objs.Layout( - title='offline plot' - ), - 'frames': [ - {'layout': {'title': 'frame 1'}} - ] + "data": [plotly.graph_objs.Scatter(x=[1, 2, 3], y=[10, 20, 30])], + "layout": plotly.graph_objs.Layout(title="offline plot"), + "frames": [{"layout": {"title": "frame 1"}}], } PLOTLYJS = plotly.offline.get_plotlyjs() @@ -51,88 +39,88 @@ """ -cdn_script = ('') +cdn_script = '" directory_script = '' -mathjax_cdn = ('https://cdnjs.cloudflare.com' - '/ajax/libs/mathjax/2.7.5/MathJax.js') +mathjax_cdn = "https://cdnjs.cloudflare.com" "/ajax/libs/mathjax/2.7.5/MathJax.js" -mathjax_config_str = '?config=TeX-AMS-MML_SVG' +mathjax_config_str = "?config=TeX-AMS-MML_SVG" -mathjax_cdn_script = ('' - .format(cdn=mathjax_cdn, config=mathjax_config_str)) +mathjax_cdn_script = ''.format( + cdn=mathjax_cdn, config=mathjax_config_str +) -mathjax_font = 'STIX-Web' +mathjax_font = "STIX-Web" -add_frames = 'Plotly.addFrames' +add_frames = "Plotly.addFrames" -do_auto_play = 'Plotly.animate' +do_auto_play = "Plotly.animate" -download_image = 'Plotly.downloadImage' +download_image = "Plotly.downloadImage" class PlotlyOfflineBaseTestCase(TestCase): def tearDown(self): # Some offline tests produce an html file. Make sure we clean up :) try: - os.remove(os.path.join(here, 'temp-plot.html')) + os.remove(os.path.join(here, "temp-plot.html")) # Some tests that produce temp-plot.html # also produce plotly.min.js - os.remove(os.path.join(here, 'plotly.min.js')) + os.remove(os.path.join(here, "plotly.min.js")) except OSError: pass class PlotlyOfflineTestCase(PlotlyOfflineBaseTestCase): - def setUp(self): pio.templates.default = None def tearDown(self): - pio.templates.default = 'plotly' + pio.templates.default = "plotly" def _read_html(self, file_url): """ Read and return the HTML contents from a file_url in the form e.g. file:///Users/chriddyp/Repos/plotly.py/plotly-temp.html """ - with open(file_url.replace('file://', '').replace(' ', '')) as f: + with open(file_url.replace("file://", "").replace(" ", "")) as f: return f.read() def test_default_plot_generates_expected_html(self): - layout_json = _json.dumps( - fig['layout'], - cls=plotly.utils.PlotlyJSONEncoder) + layout_json = _json.dumps(fig["layout"], cls=plotly.utils.PlotlyJSONEncoder) - html = self._read_html(plotly.offline.plot( - fig, auto_open=False, filename=html_filename)) + html = self._read_html( + plotly.offline.plot(fig, auto_open=False, filename=html_filename) + ) # I don't really want to test the entire script output, so # instead just make sure a few of the parts are in here? - self.assertIn('Plotly.newPlot', html) # plot command is in there + self.assertIn("Plotly.newPlot", html) # plot command is in there x_data = '"x": [1, 2, 3]' y_data = '"y": [10, 20, 30]' self.assertTrue(x_data in html and y_data in html) # data in there - self.assertIn(layout_json, html) # so is layout - self.assertIn(plotly_config_script, html) # so is config - self.assertIn(PLOTLYJS, html) # and the source code + self.assertIn(layout_json, html) # so is layout + self.assertIn(plotly_config_script, html) # so is config + self.assertIn(PLOTLYJS, html) # and the source code # and it's an doc - self.assertTrue(html.startswith('') and html.endswith('')) + self.assertTrue(html.startswith("") and html.endswith("")) def test_including_plotlyjs_truthy_html(self): # For backwards compatibility all truthy values that aren't otherwise # recognized are considered true - for include_plotlyjs in [True, 34, 'non-empty-str']: - html = self._read_html(plotly.offline.plot( - fig, - include_plotlyjs=include_plotlyjs, - output_type='file', - filename=html_filename, - auto_open=False)) + for include_plotlyjs in [True, 34, "non-empty-str"]: + html = self._read_html( + plotly.offline.plot( + fig, + include_plotlyjs=include_plotlyjs, + output_type="file", + filename=html_filename, + auto_open=False, + ) + ) self.assertIn(plotly_config_script, html) self.assertIn(PLOTLYJS, html) @@ -142,11 +130,10 @@ def test_including_plotlyjs_truthy_html(self): def test_including_plotlyjs_truthy_div(self): # For backwards compatibility all truthy values that aren't otherwise # recognized are considered true - for include_plotlyjs in [True, 34, 'non-empty-str']: + for include_plotlyjs in [True, 34, "non-empty-str"]: html = plotly.offline.plot( - fig, - include_plotlyjs=include_plotlyjs, - output_type='div') + fig, include_plotlyjs=include_plotlyjs, output_type="div" + ) self.assertIn(plotly_config_script, html) self.assertIn(PLOTLYJS, html) @@ -156,13 +143,16 @@ def test_including_plotlyjs_truthy_div(self): def test_including_plotlyjs_false_html(self): # For backwards compatibility all truthy values that aren't otherwise # recognized are considered true - for include_plotlyjs in [False, 0, '']: - html = self._read_html(plotly.offline.plot( - fig, - include_plotlyjs=include_plotlyjs, - output_type='file', - filename=html_filename, - auto_open=False)) + for include_plotlyjs in [False, 0, ""]: + html = self._read_html( + plotly.offline.plot( + fig, + include_plotlyjs=include_plotlyjs, + output_type="file", + filename=html_filename, + auto_open=False, + ) + ) self.assertNotIn(plotly_config_script, html) self.assertNotIn(PLOTLYJS, html) @@ -170,71 +160,73 @@ def test_including_plotlyjs_false_html(self): self.assertNotIn(directory_script, html) def test_including_plotlyjs_false_div(self): - for include_plotlyjs in [False, 0, '']: + for include_plotlyjs in [False, 0, ""]: html = plotly.offline.plot( - fig, - include_plotlyjs=include_plotlyjs, - output_type='div') + fig, include_plotlyjs=include_plotlyjs, output_type="div" + ) self.assertNotIn(plotly_config_script, html) self.assertNotIn(PLOTLYJS, html) self.assertNotIn(cdn_script, html) self.assertNotIn(directory_script, html) def test_including_plotlyjs_cdn_html(self): - for include_plotlyjs in ['cdn', 'CDN', 'Cdn']: - html = self._read_html(plotly.offline.plot( - fig, - include_plotlyjs=include_plotlyjs, - output_type='file', - filename=html_filename, - auto_open=False)) + for include_plotlyjs in ["cdn", "CDN", "Cdn"]: + html = self._read_html( + plotly.offline.plot( + fig, + include_plotlyjs=include_plotlyjs, + output_type="file", + filename=html_filename, + auto_open=False, + ) + ) self.assertIn(plotly_config_script, html) self.assertNotIn(PLOTLYJS, html) self.assertIn(cdn_script, html) self.assertNotIn(directory_script, html) def test_including_plotlyjs_cdn_div(self): - for include_plotlyjs in ['cdn', 'CDN', 'Cdn']: + for include_plotlyjs in ["cdn", "CDN", "Cdn"]: html = plotly.offline.plot( - fig, - include_plotlyjs=include_plotlyjs, - output_type='div') + fig, include_plotlyjs=include_plotlyjs, output_type="div" + ) self.assertIn(plotly_config_script, html) self.assertNotIn(PLOTLYJS, html) self.assertIn(cdn_script, html) self.assertNotIn(directory_script, html) def test_including_plotlyjs_directory_html(self): - self.assertFalse( - os.path.exists(os.path.join(here, 'plotly.min.js'))) - - for include_plotlyjs in ['directory', 'Directory', 'DIRECTORY']: - html = self._read_html(plotly.offline.plot( - fig, - include_plotlyjs=include_plotlyjs, - filename=html_filename, - auto_open=False)) + self.assertFalse(os.path.exists(os.path.join(here, "plotly.min.js"))) + + for include_plotlyjs in ["directory", "Directory", "DIRECTORY"]: + html = self._read_html( + plotly.offline.plot( + fig, + include_plotlyjs=include_plotlyjs, + filename=html_filename, + auto_open=False, + ) + ) self.assertIn(plotly_config_script, html) self.assertNotIn(PLOTLYJS, html) self.assertNotIn(cdn_script, html) self.assertIn(directory_script, html) # plot creates plotly.min.js in the output directory - self.assertTrue( - os.path.exists(os.path.join(here, 'plotly.min.js'))) - with open(os.path.join(here, 'plotly.min.js'), 'r') as f: + self.assertTrue(os.path.exists(os.path.join(here, "plotly.min.js"))) + with open(os.path.join(here, "plotly.min.js"), "r") as f: self.assertEqual(f.read(), PLOTLYJS) def test_including_plotlyjs_directory_div(self): - self.assertFalse( - os.path.exists(os.path.join(here, 'plotly.min.js'))) + self.assertFalse(os.path.exists(os.path.join(here, "plotly.min.js"))) - for include_plotlyjs in ['directory', 'Directory', 'DIRECTORY']: + for include_plotlyjs in ["directory", "Directory", "DIRECTORY"]: html = plotly.offline.plot( fig, include_plotlyjs=include_plotlyjs, - output_type='div', - auto_open=False) + output_type="div", + auto_open=False, + ) self.assertIn(plotly_config_script, html) self.assertNotIn(PLOTLYJS, html) @@ -243,21 +235,27 @@ def test_including_plotlyjs_directory_div(self): # plot does NOT create a plotly.min.js file in the output directory # when output_type is div - self.assertFalse(os.path.exists('plotly.min.js')) + self.assertFalse(os.path.exists("plotly.min.js")) def test_including_plotlyjs_path_html(self): for include_plotlyjs in [ - ('https://cdnjs.cloudflare.com/ajax/libs/plotly.js/1.40.1/' - 'plotly.min.js'), - 'subpath/to/plotly.min.js', - 'something.js']: - - html = self._read_html(plotly.offline.plot( - fig, - include_plotlyjs=include_plotlyjs, - output_type='file', - filename=html_filename, - auto_open=False)) + ( + "https://cdnjs.cloudflare.com/ajax/libs/plotly.js/1.40.1/" + "plotly.min.js" + ), + "subpath/to/plotly.min.js", + "something.js", + ]: + + html = self._read_html( + plotly.offline.plot( + fig, + include_plotlyjs=include_plotlyjs, + output_type="file", + filename=html_filename, + auto_open=False, + ) + ) self.assertNotIn(PLOTLYJS, html) self.assertNotIn(cdn_script, html) self.assertNotIn(directory_script, html) @@ -265,33 +263,36 @@ def test_including_plotlyjs_path_html(self): def test_including_plotlyjs_path_div(self): for include_plotlyjs in [ - ('https://cdnjs.cloudflare.com/ajax/libs/plotly.js/1.40.1/' - 'plotly.min.js'), - 'subpath/to/plotly.min.js', - 'something.js']: + ( + "https://cdnjs.cloudflare.com/ajax/libs/plotly.js/1.40.1/" + "plotly.min.js" + ), + "subpath/to/plotly.min.js", + "something.js", + ]: html = plotly.offline.plot( - fig, - include_plotlyjs=include_plotlyjs, - output_type='div') + fig, include_plotlyjs=include_plotlyjs, output_type="div" + ) self.assertNotIn(PLOTLYJS, html) self.assertNotIn(cdn_script, html) self.assertNotIn(directory_script, html) self.assertIn(include_plotlyjs, html) def test_div_output(self): - html = plotly.offline.plot(fig, output_type='div', auto_open=False) + html = plotly.offline.plot(fig, output_type="div", auto_open=False) - self.assertNotIn('', html) - self.assertNotIn('', html) - self.assertTrue(html.startswith('
') and html.endswith('
')) + self.assertNotIn("", html) + self.assertNotIn("", html) + self.assertTrue(html.startswith("
") and html.endswith("
")) def test_config(self): - config = dict(linkText='Plotly rocks!', - showLink=True, - editable=True) - html = self._read_html(plotly.offline.plot( - fig, config=config, auto_open=False, filename=html_filename)) + config = dict(linkText="Plotly rocks!", showLink=True, editable=True) + html = self._read_html( + plotly.offline.plot( + fig, config=config, auto_open=False, filename=html_filename + ) + ) self.assertIn('"linkText": "Plotly rocks!"', html) self.assertIn('"showLink": true', html) self.assertIn('"editable": true', html) @@ -300,8 +301,11 @@ def test_config_bad_options(self): config = dict(bogus=42) def get_html(): - return self._read_html(plotly.offline.plot( - fig, config=config, auto_open=False, filename=html_filename)) + return self._read_html( + plotly.offline.plot( + fig, config=config, auto_open=False, filename=html_filename + ) + ) # Attempts to validate warning ran into # https://bugs.python.org/issue29620, don't check warning for now. @@ -310,28 +314,27 @@ def get_html(): self.assertIn('"bogus": 42', html) - @attr('nodev') + @attr("nodev") def test_plotlyjs_version(self): path = os.path.join( - packages_root, - 'javascript', - 'jupyterlab-plotly', - 'package.json', + packages_root, "javascript", "jupyterlab-plotly", "package.json" ) - with open(path, 'rt') as f: + with open(path, "rt") as f: package_json = json.load(f) - expected_version = package_json['dependencies']['plotly.js'] + expected_version = package_json["dependencies"]["plotly.js"] - self.assertEqual(expected_version, - plotly.offline.get_plotlyjs_version()) + self.assertEqual(expected_version, plotly.offline.get_plotlyjs_version()) def test_include_mathjax_false_html(self): - html = self._read_html(plotly.offline.plot( - fig, - include_mathjax=False, - output_type='file', - filename=html_filename, - auto_open=False)) + html = self._read_html( + plotly.offline.plot( + fig, + include_mathjax=False, + output_type="file", + filename=html_filename, + auto_open=False, + ) + ) self.assertIn(plotly_config_script, html) self.assertIn(PLOTLYJS, html) @@ -339,10 +342,7 @@ def test_include_mathjax_false_html(self): self.assertNotIn(mathjax_font, html) def test_include_mathjax_false_div(self): - html = plotly.offline.plot( - fig, - include_mathjax=False, - output_type='div') + html = plotly.offline.plot(fig, include_mathjax=False, output_type="div") self.assertIn(plotly_config_script, html) self.assertIn(PLOTLYJS, html) @@ -350,12 +350,15 @@ def test_include_mathjax_false_div(self): self.assertNotIn(mathjax_font, html) def test_include_mathjax_cdn_html(self): - html = self._read_html(plotly.offline.plot( - fig, - include_mathjax='cdn', - output_type='file', - filename=html_filename, - auto_open=False)) + html = self._read_html( + plotly.offline.plot( + fig, + include_mathjax="cdn", + output_type="file", + filename=html_filename, + auto_open=False, + ) + ) self.assertIn(plotly_config_script, html) self.assertIn(PLOTLYJS, html) @@ -363,10 +366,7 @@ def test_include_mathjax_cdn_html(self): self.assertIn(mathjax_font, html) def test_include_mathjax_cdn_div(self): - html = plotly.offline.plot( - fig, - include_mathjax='cdn', - output_type='div') + html = plotly.offline.plot(fig, include_mathjax="cdn", output_type="div") self.assertIn(plotly_config_script, html) self.assertIn(PLOTLYJS, html) @@ -374,70 +374,73 @@ def test_include_mathjax_cdn_div(self): self.assertIn(mathjax_font, html) def test_include_mathjax_path_html(self): - other_cdn = 'http://another/cdn/MathJax.js' - html = self._read_html(plotly.offline.plot( - fig, - include_mathjax=other_cdn, - output_type='file', - filename=html_filename, - auto_open=False)) + other_cdn = "http://another/cdn/MathJax.js" + html = self._read_html( + plotly.offline.plot( + fig, + include_mathjax=other_cdn, + output_type="file", + filename=html_filename, + auto_open=False, + ) + ) self.assertIn(plotly_config_script, html) self.assertIn(PLOTLYJS, html) self.assertNotIn(mathjax_cdn_script, html) - self.assertIn(other_cdn+mathjax_config_str, html) + self.assertIn(other_cdn + mathjax_config_str, html) self.assertIn(mathjax_font, html) def test_include_mathjax_path_div(self): - other_cdn = 'http://another/cdn/MathJax.js' - html = plotly.offline.plot( - fig, - include_mathjax=other_cdn, - output_type='div') + other_cdn = "http://another/cdn/MathJax.js" + html = plotly.offline.plot(fig, include_mathjax=other_cdn, output_type="div") self.assertIn(plotly_config_script, html) self.assertIn(PLOTLYJS, html) self.assertNotIn(mathjax_cdn_script, html) - self.assertIn(other_cdn+mathjax_config_str, html) + self.assertIn(other_cdn + mathjax_config_str, html) self.assertIn(mathjax_font, html) def test_auto_play(self): - html = plotly.offline.plot(fig_frames, output_type='div') + html = plotly.offline.plot(fig_frames, output_type="div") self.assertIn(add_frames, html) self.assertIn(do_auto_play, html) def test_no_auto_play(self): - html = plotly.offline.plot( - fig_frames, output_type='div', auto_play=False) + html = plotly.offline.plot(fig_frames, output_type="div", auto_play=False) self.assertIn(add_frames, html) self.assertNotIn(do_auto_play, html) def test_animation_opts(self): - animation_opts = {'frame': {'duration': 5000}} + animation_opts = {"frame": {"duration": 5000}} expected_opts_str = json.dumps(animation_opts) # When auto_play is False, animation options are skipped html = plotly.offline.plot( - fig_frames, output_type='div', auto_play=False, animation_opts=animation_opts) + fig_frames, + output_type="div", + auto_play=False, + animation_opts=animation_opts, + ) self.assertIn(add_frames, html) self.assertNotIn(do_auto_play, html) self.assertNotIn(expected_opts_str, html) # When auto_play is True, animation options are included html = plotly.offline.plot( - fig_frames, output_type='div', auto_play=True, - animation_opts=animation_opts) + fig_frames, output_type="div", auto_play=True, animation_opts=animation_opts + ) self.assertIn(add_frames, html) self.assertIn(do_auto_play, html) self.assertIn(expected_opts_str, html) def test_download_image(self): # Not download image by default - html = plotly.offline.plot( - fig_frames, output_type='div', auto_play=False) + html = plotly.offline.plot(fig_frames, output_type="div", auto_play=False) self.assertNotIn(download_image, html) # Request download image html = plotly.offline.plot( - fig_frames, output_type='div', auto_play=False, image='png') + fig_frames, output_type="div", auto_play=False, image="png" + ) self.assertIn(download_image, html) diff --git a/packages/python/plotly/plotly/tests/test_core/test_optional_imports/test_optional_imports.py b/packages/python/plotly/plotly/tests/test_core/test_optional_imports/test_optional_imports.py index 8fec76dc6f4..4cf539dc705 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_optional_imports/test_optional_imports.py +++ b/packages/python/plotly/plotly/tests/test_core/test_optional_imports/test_optional_imports.py @@ -5,46 +5,46 @@ class OptionalImportsTest(TestCase): - def test_get_module_exists(self): import math - module = get_module('math') + + module = get_module("math") self.assertIsNotNone(module) self.assertEqual(math, module) def test_get_module_exists_submodule(self): import requests.sessions - module = get_module('requests.sessions') + + module = get_module("requests.sessions") self.assertIsNotNone(module) self.assertEqual(requests.sessions, module) def test_get_module_does_not_exist(self): - module = get_module('hoopla') + module = get_module("hoopla") self.assertIsNone(module) def test_get_module_import_exception(self): # Get module that raises an exception on import - module_str = ('plotly.tests.test_core.' - 'test_optional_imports.exploding_module') + module_str = "plotly.tests.test_core." "test_optional_imports.exploding_module" if sys.version_info.major == 3 and sys.version_info.minor >= 4: - with self.assertLogs('_plotly_utils.optional_imports', level='ERROR') as cm: + with self.assertLogs("_plotly_utils.optional_imports", level="ERROR") as cm: module = get_module(module_str) # No exception should be raised and None should be returned self.assertIsNone(module) # Check logging level and log message - expected_start = ('ERROR:_plotly_utils.optional_imports:' - 'Error importing optional module ' + module_str) + expected_start = ( + "ERROR:_plotly_utils.optional_imports:" + "Error importing optional module " + module_str + ) - self.assertEqual( - cm.output[0][:len(expected_start)], expected_start) + self.assertEqual(cm.output[0][: len(expected_start)], expected_start) # Check that exception message is included after log message - expected_end = 'Boom!' - self.assertEqual( - cm.output[0][-len(expected_end):], expected_end) + expected_end = "Boom!" + self.assertEqual(cm.output[0][-len(expected_end) :], expected_end) else: # Don't check logging module = get_module(module_str) diff --git a/packages/python/plotly/plotly/tests/test_core/test_subplots/test_get_subplot.py b/packages/python/plotly/plotly/tests/test_core/test_subplots/test_get_subplot.py index cf98eaadd16..faa16e0d19f 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_subplots/test_get_subplot.py +++ b/packages/python/plotly/plotly/tests/test_core/test_subplots/test_get_subplot.py @@ -13,76 +13,109 @@ def test_get_subplot(self): fig = subplots.make_subplots( rows=4, cols=2, - specs=[[{}, {'secondary_y': True}], - [{'type': 'polar'}, {'type': 'ternary'}], - [{'type': 'scene'}, {'type': 'geo'}], - [{'type': 'domain', 'colspan': 2}, None]] + specs=[ + [{}, {"secondary_y": True}], + [{"type": "polar"}, {"type": "ternary"}], + [{"type": "scene"}, {"type": "geo"}], + [{"type": "domain", "colspan": 2}, None], + ], ) fig.add_scatter(y=[2, 1, 3], row=1, col=1) fig.add_scatter(y=[2, 1, 3], row=1, col=2) fig.add_scatter(y=[1, 3, 2], row=1, col=2, secondary_y=True) - fig.add_trace(go.Scatterpolar( - r=[2, 1, 3], theta=[20, 50, 125]), row=2, col=1) - fig.add_traces([go.Scatterternary(a=[.2, .1, .3], b=[.4, .6, .5])], - rows=[2], cols=[2]) - fig.add_scatter3d(x=[2, 0, 1], y=[0, 1, 0], z=[0, 1, 2], mode='lines', - row=3, col=1) - fig.add_scattergeo(lat=[0, 40], lon=[10, 5], mode='lines', row=3, - col=2) + fig.add_trace(go.Scatterpolar(r=[2, 1, 3], theta=[20, 50, 125]), row=2, col=1) + fig.add_traces( + [go.Scatterternary(a=[0.2, 0.1, 0.3], b=[0.4, 0.6, 0.5])], + rows=[2], + cols=[2], + ) + fig.add_scatter3d( + x=[2, 0, 1], y=[0, 1, 0], z=[0, 1, 2], mode="lines", row=3, col=1 + ) + fig.add_scattergeo(lat=[0, 40], lon=[10, 5], mode="lines", row=3, col=2) fig.add_parcats( dimensions=[ - {'values': ['A', 'A', 'B', 'A', 'B']}, - {'values': ['a', 'a', 'a', 'b', 'b']}, - ], row=4, col=1) + {"values": ["A", "A", "B", "A", "B"]}, + {"values": ["a", "a", "a", "b", "b"]}, + ], + row=4, + col=1, + ) fig.update_traces(uid=None) fig.update(layout_height=1200) # Check - expected = Figure({ - 'data': [ - {'type': 'scatter', 'xaxis': 'x', - 'y': [2, 1, 3], 'yaxis': 'y'}, - {'type': 'scatter', 'xaxis': 'x2', - 'y': [2, 1, 3], 'yaxis': 'y2'}, - {'type': 'scatter', 'xaxis': 'x2', - 'y': [1, 3, 2], 'yaxis': 'y3'}, - {'r': [2, 1, 3], 'subplot': 'polar', - 'theta': [20, 50, 125], 'type': 'scatterpolar'}, - {'a': [0.2, 0.1, 0.3], 'b': [0.4, 0.6, 0.5], - 'subplot': 'ternary', 'type': 'scatterternary'}, - {'mode': 'lines', 'scene': 'scene', 'type': 'scatter3d', - 'x': [2, 0, 1], 'y': [0, 1, 0], 'z': [0, 1, 2]}, - {'geo': 'geo', 'lat': [0, 40], 'lon': [10, 5], - 'mode': 'lines', 'type': 'scattergeo'}, - {'dimensions': [{'values': ['A', 'A', 'B', 'A', 'B']}, - {'values': ['a', 'a', 'a', 'b', 'b']}], - 'domain': {'x': [0.0, 0.9400000000000001], - 'y': [0.0, 0.19375]}, - 'type': 'parcats'}], - 'layout': { - 'geo': {'domain': {'x': [0.5700000000000001, - 0.9400000000000001], - 'y': [0.26875, 0.4625]}}, - 'height': 1200, - 'polar': {'domain': {'x': [0.0, 0.37], - 'y': [0.5375, 0.73125]}}, - 'scene': {'domain': {'x': [0.0, 0.37], - 'y': [0.26875, 0.4625]}}, - 'ternary': {'domain': {'x': [0.5700000000000001, - 0.9400000000000001], - 'y': [0.5375, 0.73125]}}, - 'xaxis': {'anchor': 'y', 'domain': [0.0, 0.37]}, - 'xaxis2': {'anchor': 'y2', - 'domain': [0.5700000000000001, - 0.9400000000000001]}, - 'yaxis': {'anchor': 'x', 'domain': [0.80625, 1.0]}, - 'yaxis2': {'anchor': 'x2', 'domain': [0.80625, 1.0]}, - 'yaxis3': {'anchor': 'x2', - 'overlaying': 'y2', - 'side': 'right'}} - }) + expected = Figure( + { + "data": [ + {"type": "scatter", "xaxis": "x", "y": [2, 1, 3], "yaxis": "y"}, + {"type": "scatter", "xaxis": "x2", "y": [2, 1, 3], "yaxis": "y2"}, + {"type": "scatter", "xaxis": "x2", "y": [1, 3, 2], "yaxis": "y3"}, + { + "r": [2, 1, 3], + "subplot": "polar", + "theta": [20, 50, 125], + "type": "scatterpolar", + }, + { + "a": [0.2, 0.1, 0.3], + "b": [0.4, 0.6, 0.5], + "subplot": "ternary", + "type": "scatterternary", + }, + { + "mode": "lines", + "scene": "scene", + "type": "scatter3d", + "x": [2, 0, 1], + "y": [0, 1, 0], + "z": [0, 1, 2], + }, + { + "geo": "geo", + "lat": [0, 40], + "lon": [10, 5], + "mode": "lines", + "type": "scattergeo", + }, + { + "dimensions": [ + {"values": ["A", "A", "B", "A", "B"]}, + {"values": ["a", "a", "a", "b", "b"]}, + ], + "domain": {"x": [0.0, 0.9400000000000001], "y": [0.0, 0.19375]}, + "type": "parcats", + }, + ], + "layout": { + "geo": { + "domain": { + "x": [0.5700000000000001, 0.9400000000000001], + "y": [0.26875, 0.4625], + } + }, + "height": 1200, + "polar": {"domain": {"x": [0.0, 0.37], "y": [0.5375, 0.73125]}}, + "scene": {"domain": {"x": [0.0, 0.37], "y": [0.26875, 0.4625]}}, + "ternary": { + "domain": { + "x": [0.5700000000000001, 0.9400000000000001], + "y": [0.5375, 0.73125], + } + }, + "xaxis": {"anchor": "y", "domain": [0.0, 0.37]}, + "xaxis2": { + "anchor": "y2", + "domain": [0.5700000000000001, 0.9400000000000001], + }, + "yaxis": {"anchor": "x", "domain": [0.80625, 1.0]}, + "yaxis2": {"anchor": "x2", "domain": [0.80625, 1.0]}, + "yaxis3": {"anchor": "x2", "overlaying": "y2", "side": "right"}, + }, + } + ) expected.update_traces(uid=None) @@ -92,46 +125,41 @@ def test_get_subplot(self): # (1, 1) subplot = fig.get_subplot(1, 1) self.assertEqual( - subplot, SubplotXY( - xaxis=fig.layout.xaxis, yaxis=fig.layout.yaxis)) + subplot, SubplotXY(xaxis=fig.layout.xaxis, yaxis=fig.layout.yaxis) + ) # (1, 2) Primary subplot = fig.get_subplot(1, 2) self.assertEqual( - subplot, SubplotXY( - xaxis=fig.layout.xaxis2, yaxis=fig.layout.yaxis2)) + subplot, SubplotXY(xaxis=fig.layout.xaxis2, yaxis=fig.layout.yaxis2) + ) # (1, 2) Primary subplot = fig.get_subplot(1, 2, secondary_y=True) self.assertEqual( - subplot, SubplotXY( - xaxis=fig.layout.xaxis2, yaxis=fig.layout.yaxis3)) + subplot, SubplotXY(xaxis=fig.layout.xaxis2, yaxis=fig.layout.yaxis3) + ) # (2, 1) subplot = fig.get_subplot(2, 1) - self.assertEqual( - subplot, fig.layout.polar) + self.assertEqual(subplot, fig.layout.polar) # (2, 2) subplot = fig.get_subplot(2, 2) - self.assertEqual( - subplot, fig.layout.ternary) + self.assertEqual(subplot, fig.layout.ternary) # (3, 1) subplot = fig.get_subplot(3, 1) - self.assertEqual( - subplot, fig.layout.scene) + self.assertEqual(subplot, fig.layout.scene) # (3, 2) subplot = fig.get_subplot(3, 2) - self.assertEqual( - subplot, fig.layout.geo) + self.assertEqual(subplot, fig.layout.geo) # (4, 1) subplot = fig.get_subplot(4, 1) domain = fig.data[-1].domain - self.assertEqual( - subplot, SubplotDomain(x=domain.x, y=domain.y)) + self.assertEqual(subplot, SubplotDomain(x=domain.x, y=domain.y)) def test_get_subplot_out_of_bounds(self): fig = subplots.make_subplots(rows=4, cols=2) diff --git a/packages/python/plotly/plotly/tests/test_core/test_subplots/test_make_subplots.py b/packages/python/plotly/plotly/tests/test_core/test_subplots/test_make_subplots.py index 9317490e12a..fa11f564941 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_subplots/test_make_subplots.py +++ b/packages/python/plotly/plotly/tests/test_core/test_subplots/test_make_subplots.py @@ -1,8 +1,18 @@ from __future__ import absolute_import from unittest import TestCase -from plotly.graph_objs import (Annotation, Annotations, Data, Figure, Font, - Layout, layout, Scene, XAxis, YAxis) +from plotly.graph_objs import ( + Annotation, + Annotations, + Data, + Figure, + Font, + Layout, + layout, + Scene, + XAxis, + YAxis, +) import plotly.tools as tls from plotly import subplots @@ -24,7 +34,7 @@ def test_less_than_zero_rows(self): def test_non_integer_cols(self): with self.assertRaises(Exception): - tls.make_subplots(cols=2/3) + tls.make_subplots(cols=2 / 3) def test_less_than_zero_cols(self): with self.assertRaises(Exception): @@ -32,11 +42,11 @@ def test_less_than_zero_cols(self): def test_wrong_kwarg(self): with self.assertRaises(Exception): - tls.make_subplots(stuff='no gonna work') + tls.make_subplots(stuff="no gonna work") def test_start_cell_wrong_values(self): with self.assertRaises(Exception): - tls.make_subplots(rows=2, cols=2, start_cell='not gonna work') + tls.make_subplots(rows=2, cols=2, start_cell="not gonna work") def test_specs_wrong_type(self): with self.assertRaises(Exception): @@ -48,11 +58,11 @@ def test_specs_wrong_inner_type(self): def test_specs_wrong_item_type(self): with self.assertRaises(Exception): - tls.make_subplots(specs=[[('not', 'going to work')]]) + tls.make_subplots(specs=[[("not", "going to work")]]) def test_specs_wrong_item_key(self): with self.assertRaises(Exception): - tls.make_subplots(specs=[{'not': "going to work"}]) + tls.make_subplots(specs=[{"not": "going to work"}]) def test_specs_underspecified(self): with self.assertRaises(Exception): @@ -66,11 +76,11 @@ def test_specs_overspecified(self): def test_specs_colspan_too_big(self): with self.assertRaises(Exception): - tls.make_subplots(cols=3, specs=[[{}, None, {'colspan': 2}]]) + tls.make_subplots(cols=3, specs=[[{}, None, {"colspan": 2}]]) def test_specs_rowspan_too_big(self): with self.assertRaises(Exception): - tls.make_subplots(rows=3, specs=[[{}], [None], [{'rowspan': 2}]]) + tls.make_subplots(rows=3, specs=[[{}], [None], [{"rowspan": 2}]]) def test_insets_wrong_type(self): with self.assertRaises(Exception): @@ -78,19 +88,19 @@ def test_insets_wrong_type(self): def test_insets_wrong_item(self): with self.assertRaises(Exception): - tls.make_subplots(insets=[{'not': "going to work"}]) + tls.make_subplots(insets=[{"not": "going to work"}]) def test_insets_wrong_cell_row(self): with self.assertRaises(Exception): - tls.make_subplots(insets=([{'cell': (0, 1)}])) + tls.make_subplots(insets=([{"cell": (0, 1)}])) def test_insets_wrong_cell_col(self): with self.assertRaises(Exception): - tls.make_subplots(insets=([{'cell': (1, 0)}])) + tls.make_subplots(insets=([{"cell": (1, 0)}])) def test_column_width_not_list(self): with self.assertRaises(Exception): - tls.make_subplots(rows=2, cols=2, column_widths='not gonna work') + tls.make_subplots(rows=2, cols=2, column_widths="not gonna work") def test_column_width_not_list_of_correct_numbers(self): with self.assertRaises(Exception): @@ -98,7 +108,7 @@ def test_column_width_not_list_of_correct_numbers(self): def test_row_width_not_list(self): with self.assertRaises(Exception): - tls.make_subplots(rows=2, cols=2, row_heights='not gonna work') + tls.make_subplots(rows=2, cols=2, row_heights="not gonna work") def test_row_width_not_list_of_correct_numbers(self): with self.assertRaises(Exception): @@ -108,321 +118,164 @@ def test_single_plot(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 1.0], - anchor='y' - ), - yaxis1=YAxis( - domain=[0.0, 1.0], - anchor='x' - ) - ) + xaxis1=XAxis(domain=[0.0, 1.0], anchor="y"), + yaxis1=YAxis(domain=[0.0, 1.0], anchor="x"), + ), + ) + self.assertEqual( + tls.make_subplots().to_plotly_json(), expected.to_plotly_json() ) - self.assertEqual(tls.make_subplots().to_plotly_json(), - expected.to_plotly_json()) def test_two_row(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 1.0], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.0, 1.0], - anchor='y2' - ), - yaxis1=YAxis( - domain=[0.575, 1.0], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.0, 0.425], - anchor='x2' - ) - ) + xaxis1=XAxis(domain=[0.0, 1.0], anchor="y"), + xaxis2=XAxis(domain=[0.0, 1.0], anchor="y2"), + yaxis1=YAxis(domain=[0.575, 1.0], anchor="x"), + yaxis2=YAxis(domain=[0.0, 0.425], anchor="x2"), + ), + ) + self.assertEqual( + tls.make_subplots(rows=2).to_plotly_json(), expected.to_plotly_json() ) - self.assertEqual(tls.make_subplots(rows=2).to_plotly_json(), expected.to_plotly_json()) def test_two_row_bottom_left(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=layout.XAxis( - domain=[0.0, 1.0], - anchor='y' - ), - xaxis2=layout.XAxis( - domain=[0.0, 1.0], - anchor='y2' - ), - yaxis1=layout.YAxis( - domain=[0.0, 0.425], - anchor='x' - ), - yaxis2=layout.YAxis( - domain=[0.575, 1.0], - anchor='x2' - ), - ) + xaxis1=layout.XAxis(domain=[0.0, 1.0], anchor="y"), + xaxis2=layout.XAxis(domain=[0.0, 1.0], anchor="y2"), + yaxis1=layout.YAxis(domain=[0.0, 0.425], anchor="x"), + yaxis2=layout.YAxis(domain=[0.575, 1.0], anchor="x2"), + ), ) - fig = tls.make_subplots(rows=2, start_cell='bottom-left') + fig = tls.make_subplots(rows=2, start_cell="bottom-left") self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_two_column(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 0.45], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.55, 1.0], - anchor='y2' - ), - yaxis1=YAxis( - domain=[0.0, 1.0], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.0, 1.0], - anchor='x2' - ) - ) + xaxis1=XAxis(domain=[0.0, 0.45], anchor="y"), + xaxis2=XAxis(domain=[0.55, 1.0], anchor="y2"), + yaxis1=YAxis(domain=[0.0, 1.0], anchor="x"), + yaxis2=YAxis(domain=[0.0, 1.0], anchor="x2"), + ), + ) + self.assertEqual( + tls.make_subplots(cols=2).to_plotly_json(), expected.to_plotly_json() ) - self.assertEqual(tls.make_subplots(cols=2).to_plotly_json(), expected.to_plotly_json()) def test_a_lot(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 0.1183673469387755], - anchor='y' - ), + xaxis1=XAxis(domain=[0.0, 0.1183673469387755], anchor="y"), xaxis10=XAxis( - domain=[0.29387755102040813, 0.4122448979591836], - anchor='y10' + domain=[0.29387755102040813, 0.4122448979591836], anchor="y10" ), xaxis11=XAxis( - domain=[0.4408163265306122, 0.5591836734693877], - anchor='y11' + domain=[0.4408163265306122, 0.5591836734693877], anchor="y11" ), xaxis12=XAxis( - domain=[0.5877551020408163, 0.7061224489795918], - anchor='y12' + domain=[0.5877551020408163, 0.7061224489795918], anchor="y12" ), xaxis13=XAxis( - domain=[0.7346938775510204, 0.8530612244897959], - anchor='y13' + domain=[0.7346938775510204, 0.8530612244897959], anchor="y13" ), xaxis14=XAxis( - domain=[0.8816326530612244, 0.9999999999999999], - anchor='y14' - ), - xaxis15=XAxis( - domain=[0.0, 0.1183673469387755], - anchor='y15' + domain=[0.8816326530612244, 0.9999999999999999], anchor="y14" ), + xaxis15=XAxis(domain=[0.0, 0.1183673469387755], anchor="y15"), xaxis16=XAxis( - domain=[0.14693877551020407, 0.26530612244897955], - anchor='y16' + domain=[0.14693877551020407, 0.26530612244897955], anchor="y16" ), xaxis17=XAxis( - domain=[0.29387755102040813, 0.4122448979591836], - anchor='y17' + domain=[0.29387755102040813, 0.4122448979591836], anchor="y17" ), xaxis18=XAxis( - domain=[0.4408163265306122, 0.5591836734693877], - anchor='y18' + domain=[0.4408163265306122, 0.5591836734693877], anchor="y18" ), xaxis19=XAxis( - domain=[0.5877551020408163, 0.7061224489795918], - anchor='y19' + domain=[0.5877551020408163, 0.7061224489795918], anchor="y19" ), xaxis2=XAxis( - domain=[0.14693877551020407, 0.26530612244897955], - anchor='y2' + domain=[0.14693877551020407, 0.26530612244897955], anchor="y2" ), xaxis20=XAxis( - domain=[0.7346938775510204, 0.8530612244897959], - anchor='y20' + domain=[0.7346938775510204, 0.8530612244897959], anchor="y20" ), xaxis21=XAxis( - domain=[0.8816326530612244, 0.9999999999999999], - anchor='y21' - ), - xaxis22=XAxis( - domain=[0.0, 0.1183673469387755], - anchor='y22' + domain=[0.8816326530612244, 0.9999999999999999], anchor="y21" ), + xaxis22=XAxis(domain=[0.0, 0.1183673469387755], anchor="y22"), xaxis23=XAxis( - domain=[0.14693877551020407, 0.26530612244897955], - anchor='y23' + domain=[0.14693877551020407, 0.26530612244897955], anchor="y23" ), xaxis24=XAxis( - domain=[0.29387755102040813, 0.4122448979591836], - anchor='y24' + domain=[0.29387755102040813, 0.4122448979591836], anchor="y24" ), xaxis25=XAxis( - domain=[0.4408163265306122, 0.5591836734693877], - anchor='y25' + domain=[0.4408163265306122, 0.5591836734693877], anchor="y25" ), xaxis26=XAxis( - domain=[0.5877551020408163, 0.7061224489795918], - anchor='y26' + domain=[0.5877551020408163, 0.7061224489795918], anchor="y26" ), xaxis27=XAxis( - domain=[0.7346938775510204, 0.8530612244897959], - anchor='y27' + domain=[0.7346938775510204, 0.8530612244897959], anchor="y27" ), xaxis28=XAxis( - domain=[0.8816326530612244, 0.9999999999999999], - anchor='y28' + domain=[0.8816326530612244, 0.9999999999999999], anchor="y28" ), xaxis3=XAxis( - domain=[0.29387755102040813, 0.4122448979591836], - anchor='y3' + domain=[0.29387755102040813, 0.4122448979591836], anchor="y3" ), xaxis4=XAxis( - domain=[0.4408163265306122, 0.5591836734693877], - anchor='y4' + domain=[0.4408163265306122, 0.5591836734693877], anchor="y4" ), xaxis5=XAxis( - domain=[0.5877551020408163, 0.7061224489795918], - anchor='y5' + domain=[0.5877551020408163, 0.7061224489795918], anchor="y5" ), xaxis6=XAxis( - domain=[0.7346938775510204, 0.8530612244897959], - anchor='y6' + domain=[0.7346938775510204, 0.8530612244897959], anchor="y6" ), xaxis7=XAxis( - domain=[0.8816326530612244, 0.9999999999999999], - anchor='y7' - ), - xaxis8=XAxis( - domain=[0.0, 0.1183673469387755], - anchor='y8' + domain=[0.8816326530612244, 0.9999999999999999], anchor="y7" ), + xaxis8=XAxis(domain=[0.0, 0.1183673469387755], anchor="y8"), xaxis9=XAxis( - domain=[0.14693877551020407, 0.26530612244897955], - anchor='y9' - ), - yaxis1=YAxis( - domain=[0.80625, 1.0], - anchor='x' - ), - yaxis10=YAxis( - domain=[0.5375, 0.73125], - anchor='x10' - ), - yaxis11=YAxis( - domain=[0.5375, 0.73125], - anchor='x11' - ), - yaxis12=YAxis( - domain=[0.5375, 0.73125], - anchor='x12' - ), - yaxis13=YAxis( - domain=[0.5375, 0.73125], - anchor='x13' - ), - yaxis14=YAxis( - domain=[0.5375, 0.73125], - anchor='x14' - ), - yaxis15=YAxis( - domain=[0.26875, 0.4625], - anchor='x15' - ), - yaxis16=YAxis( - domain=[0.26875, 0.4625], - anchor='x16' - ), - yaxis17=YAxis( - domain=[0.26875, 0.4625], - anchor='x17' - ), - yaxis18=YAxis( - domain=[0.26875, 0.4625], - anchor='x18' - ), - yaxis19=YAxis( - domain=[0.26875, 0.4625], - anchor='x19' - ), - yaxis2=YAxis( - domain=[0.80625, 1.0], - anchor='x2' - ), - yaxis20=YAxis( - domain=[0.26875, 0.4625], - anchor='x20' - ), - yaxis21=YAxis( - domain=[0.26875, 0.4625], - anchor='x21' - ), - yaxis22=YAxis( - domain=[0.0, 0.19375], - anchor='x22' - ), - yaxis23=YAxis( - domain=[0.0, 0.19375], - anchor='x23' - ), - yaxis24=YAxis( - domain=[0.0, 0.19375], - anchor='x24' - ), - yaxis25=YAxis( - domain=[0.0, 0.19375], - anchor='x25' - ), - yaxis26=YAxis( - domain=[0.0, 0.19375], - anchor='x26' - ), - yaxis27=YAxis( - domain=[0.0, 0.19375], - anchor='x27' - ), - yaxis28=YAxis( - domain=[0.0, 0.19375], - anchor='x28' - ), - yaxis3=YAxis( - domain=[0.80625, 1.0], - anchor='x3' - ), - yaxis4=YAxis( - domain=[0.80625, 1.0], - anchor='x4' - ), - yaxis5=YAxis( - domain=[0.80625, 1.0], - anchor='x5' - ), - yaxis6=YAxis( - domain=[0.80625, 1.0], - anchor='x6' - ), - yaxis7=YAxis( - domain=[0.80625, 1.0], - anchor='x7' - ), - yaxis8=YAxis( - domain=[0.5375, 0.73125], - anchor='x8' - ), - yaxis9=YAxis( - domain=[0.5375, 0.73125], - anchor='x9' - ) - ) + domain=[0.14693877551020407, 0.26530612244897955], anchor="y9" + ), + yaxis1=YAxis(domain=[0.80625, 1.0], anchor="x"), + yaxis10=YAxis(domain=[0.5375, 0.73125], anchor="x10"), + yaxis11=YAxis(domain=[0.5375, 0.73125], anchor="x11"), + yaxis12=YAxis(domain=[0.5375, 0.73125], anchor="x12"), + yaxis13=YAxis(domain=[0.5375, 0.73125], anchor="x13"), + yaxis14=YAxis(domain=[0.5375, 0.73125], anchor="x14"), + yaxis15=YAxis(domain=[0.26875, 0.4625], anchor="x15"), + yaxis16=YAxis(domain=[0.26875, 0.4625], anchor="x16"), + yaxis17=YAxis(domain=[0.26875, 0.4625], anchor="x17"), + yaxis18=YAxis(domain=[0.26875, 0.4625], anchor="x18"), + yaxis19=YAxis(domain=[0.26875, 0.4625], anchor="x19"), + yaxis2=YAxis(domain=[0.80625, 1.0], anchor="x2"), + yaxis20=YAxis(domain=[0.26875, 0.4625], anchor="x20"), + yaxis21=YAxis(domain=[0.26875, 0.4625], anchor="x21"), + yaxis22=YAxis(domain=[0.0, 0.19375], anchor="x22"), + yaxis23=YAxis(domain=[0.0, 0.19375], anchor="x23"), + yaxis24=YAxis(domain=[0.0, 0.19375], anchor="x24"), + yaxis25=YAxis(domain=[0.0, 0.19375], anchor="x25"), + yaxis26=YAxis(domain=[0.0, 0.19375], anchor="x26"), + yaxis27=YAxis(domain=[0.0, 0.19375], anchor="x27"), + yaxis28=YAxis(domain=[0.0, 0.19375], anchor="x28"), + yaxis3=YAxis(domain=[0.80625, 1.0], anchor="x3"), + yaxis4=YAxis(domain=[0.80625, 1.0], anchor="x4"), + yaxis5=YAxis(domain=[0.80625, 1.0], anchor="x5"), + yaxis6=YAxis(domain=[0.80625, 1.0], anchor="x6"), + yaxis7=YAxis(domain=[0.80625, 1.0], anchor="x7"), + yaxis8=YAxis(domain=[0.5375, 0.73125], anchor="x8"), + yaxis9=YAxis(domain=[0.5375, 0.73125], anchor="x9"), + ), ) fig = tls.make_subplots(rows=4, cols=7) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) @@ -431,807 +284,441 @@ def test_a_lot_bottom_left(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 0.1183673469387755], - anchor='y' - ), + xaxis1=XAxis(domain=[0.0, 0.1183673469387755], anchor="y"), xaxis10=XAxis( - domain=[0.29387755102040813, 0.4122448979591836], - anchor='y10' + domain=[0.29387755102040813, 0.4122448979591836], anchor="y10" ), xaxis11=XAxis( - domain=[0.4408163265306122, 0.5591836734693877], - anchor='y11' + domain=[0.4408163265306122, 0.5591836734693877], anchor="y11" ), xaxis12=XAxis( - domain=[0.5877551020408163, 0.7061224489795918], - anchor='y12' + domain=[0.5877551020408163, 0.7061224489795918], anchor="y12" ), xaxis13=XAxis( - domain=[0.7346938775510204, 0.8530612244897959], - anchor='y13' + domain=[0.7346938775510204, 0.8530612244897959], anchor="y13" ), xaxis14=XAxis( - domain=[0.8816326530612244, 0.9999999999999999], - anchor='y14' - ), - xaxis15=XAxis( - domain=[0.0, 0.1183673469387755], - anchor='y15' + domain=[0.8816326530612244, 0.9999999999999999], anchor="y14" ), + xaxis15=XAxis(domain=[0.0, 0.1183673469387755], anchor="y15"), xaxis16=XAxis( - domain=[0.14693877551020407, 0.26530612244897955], - anchor='y16' + domain=[0.14693877551020407, 0.26530612244897955], anchor="y16" ), xaxis17=XAxis( - domain=[0.29387755102040813, 0.4122448979591836], - anchor='y17' + domain=[0.29387755102040813, 0.4122448979591836], anchor="y17" ), xaxis18=XAxis( - domain=[0.4408163265306122, 0.5591836734693877], - anchor='y18' + domain=[0.4408163265306122, 0.5591836734693877], anchor="y18" ), xaxis19=XAxis( - domain=[0.5877551020408163, 0.7061224489795918], - anchor='y19' + domain=[0.5877551020408163, 0.7061224489795918], anchor="y19" ), xaxis2=XAxis( - domain=[0.14693877551020407, 0.26530612244897955], - anchor='y2' + domain=[0.14693877551020407, 0.26530612244897955], anchor="y2" ), xaxis20=XAxis( - domain=[0.7346938775510204, 0.8530612244897959], - anchor='y20' + domain=[0.7346938775510204, 0.8530612244897959], anchor="y20" ), xaxis21=XAxis( - domain=[0.8816326530612244, 0.9999999999999999], - anchor='y21' - ), - xaxis22=XAxis( - domain=[0.0, 0.1183673469387755], - anchor='y22' + domain=[0.8816326530612244, 0.9999999999999999], anchor="y21" ), + xaxis22=XAxis(domain=[0.0, 0.1183673469387755], anchor="y22"), xaxis23=XAxis( - domain=[0.14693877551020407, 0.26530612244897955], - anchor='y23' + domain=[0.14693877551020407, 0.26530612244897955], anchor="y23" ), xaxis24=XAxis( - domain=[0.29387755102040813, 0.4122448979591836], - anchor='y24' + domain=[0.29387755102040813, 0.4122448979591836], anchor="y24" ), xaxis25=XAxis( - domain=[0.4408163265306122, 0.5591836734693877], - anchor='y25' + domain=[0.4408163265306122, 0.5591836734693877], anchor="y25" ), xaxis26=XAxis( - domain=[0.5877551020408163, 0.7061224489795918], - anchor='y26' + domain=[0.5877551020408163, 0.7061224489795918], anchor="y26" ), xaxis27=XAxis( - domain=[0.7346938775510204, 0.8530612244897959], - anchor='y27' + domain=[0.7346938775510204, 0.8530612244897959], anchor="y27" ), xaxis28=XAxis( - domain=[0.8816326530612244, 0.9999999999999999], - anchor='y28' + domain=[0.8816326530612244, 0.9999999999999999], anchor="y28" ), xaxis3=XAxis( - domain=[0.29387755102040813, 0.4122448979591836], - anchor='y3' + domain=[0.29387755102040813, 0.4122448979591836], anchor="y3" ), xaxis4=XAxis( - domain=[0.4408163265306122, 0.5591836734693877], - anchor='y4' + domain=[0.4408163265306122, 0.5591836734693877], anchor="y4" ), xaxis5=XAxis( - domain=[0.5877551020408163, 0.7061224489795918], - anchor='y5' + domain=[0.5877551020408163, 0.7061224489795918], anchor="y5" ), xaxis6=XAxis( - domain=[0.7346938775510204, 0.8530612244897959], - anchor='y6' + domain=[0.7346938775510204, 0.8530612244897959], anchor="y6" ), xaxis7=XAxis( - domain=[0.8816326530612244, 0.9999999999999999], - anchor='y7' - ), - xaxis8=XAxis( - domain=[0.0, 0.1183673469387755], - anchor='y8' + domain=[0.8816326530612244, 0.9999999999999999], anchor="y7" ), + xaxis8=XAxis(domain=[0.0, 0.1183673469387755], anchor="y8"), xaxis9=XAxis( - domain=[0.14693877551020407, 0.26530612244897955], - anchor='y9' - ), - yaxis1=YAxis( - domain=[0.0, 0.19375], - anchor='x' - ), - yaxis10=YAxis( - domain=[0.26875, 0.4625], - anchor='x10' - ), - yaxis11=YAxis( - domain=[0.26875, 0.4625], - anchor='x11' - ), - yaxis12=YAxis( - domain=[0.26875, 0.4625], - anchor='x12' - ), - yaxis13=YAxis( - domain=[0.26875, 0.4625], - anchor='x13' - ), - yaxis14=YAxis( - domain=[0.26875, 0.4625], - anchor='x14' - ), - yaxis15=YAxis( - domain=[0.5375, 0.73125], - anchor='x15' - ), - yaxis16=YAxis( - domain=[0.5375, 0.73125], - anchor='x16' - ), - yaxis17=YAxis( - domain=[0.5375, 0.73125], - anchor='x17' - ), - yaxis18=YAxis( - domain=[0.5375, 0.73125], - anchor='x18' - ), - yaxis19=YAxis( - domain=[0.5375, 0.73125], - anchor='x19' - ), - yaxis2=YAxis( - domain=[0.0, 0.19375], - anchor='x2' - ), - yaxis20=YAxis( - domain=[0.5375, 0.73125], - anchor='x20' - ), - yaxis21=YAxis( - domain=[0.5375, 0.73125], - anchor='x21' - ), - yaxis22=YAxis( - domain=[0.80625, 1.0], - anchor='x22' - ), - yaxis23=YAxis( - domain=[0.80625, 1.0], - anchor='x23' - ), - yaxis24=YAxis( - domain=[0.80625, 1.0], - anchor='x24' - ), - yaxis25=YAxis( - domain=[0.80625, 1.0], - anchor='x25' - ), - yaxis26=YAxis( - domain=[0.80625, 1.0], - anchor='x26' - ), - yaxis27=YAxis( - domain=[0.80625, 1.0], - anchor='x27' - ), - yaxis28=YAxis( - domain=[0.80625, 1.0], - anchor='x28' - ), - yaxis3=YAxis( - domain=[0.0, 0.19375], - anchor='x3' - ), - yaxis4=YAxis( - domain=[0.0, 0.19375], - anchor='x4' - ), - yaxis5=YAxis( - domain=[0.0, 0.19375], - anchor='x5' - ), - yaxis6=YAxis( - domain=[0.0, 0.19375], - anchor='x6' - ), - yaxis7=YAxis( - domain=[0.0, 0.19375], - anchor='x7' - ), - yaxis8=YAxis( - domain=[0.26875, 0.4625], - anchor='x8' - ), - yaxis9=YAxis( - domain=[0.26875, 0.4625], - anchor='x9' - ) - ) + domain=[0.14693877551020407, 0.26530612244897955], anchor="y9" + ), + yaxis1=YAxis(domain=[0.0, 0.19375], anchor="x"), + yaxis10=YAxis(domain=[0.26875, 0.4625], anchor="x10"), + yaxis11=YAxis(domain=[0.26875, 0.4625], anchor="x11"), + yaxis12=YAxis(domain=[0.26875, 0.4625], anchor="x12"), + yaxis13=YAxis(domain=[0.26875, 0.4625], anchor="x13"), + yaxis14=YAxis(domain=[0.26875, 0.4625], anchor="x14"), + yaxis15=YAxis(domain=[0.5375, 0.73125], anchor="x15"), + yaxis16=YAxis(domain=[0.5375, 0.73125], anchor="x16"), + yaxis17=YAxis(domain=[0.5375, 0.73125], anchor="x17"), + yaxis18=YAxis(domain=[0.5375, 0.73125], anchor="x18"), + yaxis19=YAxis(domain=[0.5375, 0.73125], anchor="x19"), + yaxis2=YAxis(domain=[0.0, 0.19375], anchor="x2"), + yaxis20=YAxis(domain=[0.5375, 0.73125], anchor="x20"), + yaxis21=YAxis(domain=[0.5375, 0.73125], anchor="x21"), + yaxis22=YAxis(domain=[0.80625, 1.0], anchor="x22"), + yaxis23=YAxis(domain=[0.80625, 1.0], anchor="x23"), + yaxis24=YAxis(domain=[0.80625, 1.0], anchor="x24"), + yaxis25=YAxis(domain=[0.80625, 1.0], anchor="x25"), + yaxis26=YAxis(domain=[0.80625, 1.0], anchor="x26"), + yaxis27=YAxis(domain=[0.80625, 1.0], anchor="x27"), + yaxis28=YAxis(domain=[0.80625, 1.0], anchor="x28"), + yaxis3=YAxis(domain=[0.0, 0.19375], anchor="x3"), + yaxis4=YAxis(domain=[0.0, 0.19375], anchor="x4"), + yaxis5=YAxis(domain=[0.0, 0.19375], anchor="x5"), + yaxis6=YAxis(domain=[0.0, 0.19375], anchor="x6"), + yaxis7=YAxis(domain=[0.0, 0.19375], anchor="x7"), + yaxis8=YAxis(domain=[0.26875, 0.4625], anchor="x8"), + yaxis9=YAxis(domain=[0.26875, 0.4625], anchor="x9"), + ), ) - fig = tls.make_subplots(rows=4, cols=7, start_cell='bottom-left') + fig = tls.make_subplots(rows=4, cols=7, start_cell="bottom-left") self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_spacing(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 0.3], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.35, 0.6499999999999999], - anchor='y2' - ), - xaxis3=XAxis( - domain=[0.7, 1.0], - anchor='y3' - ), - xaxis4=XAxis( - domain=[0.0, 0.3], - anchor='y4' - ), - xaxis5=XAxis( - domain=[0.35, 0.6499999999999999], - anchor='y5' - ), - xaxis6=XAxis( - domain=[0.7, 1.0], - anchor='y6' - ), - yaxis1=YAxis( - domain=[0.55, 1.0], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.55, 1.0], - anchor='x2' - ), - yaxis3=YAxis( - domain=[0.55, 1.0], - anchor='x3' - ), - yaxis4=YAxis( - domain=[0.0, 0.45], - anchor='x4' - ), - yaxis5=YAxis( - domain=[0.0, 0.45], - anchor='x5' - ), - yaxis6=YAxis( - domain=[0.0, 0.45], - anchor='x6' - ) - ) - ) - fig = tls.make_subplots(rows=2, cols=3, - horizontal_spacing=.05, - vertical_spacing=.1) + xaxis1=XAxis(domain=[0.0, 0.3], anchor="y"), + xaxis2=XAxis(domain=[0.35, 0.6499999999999999], anchor="y2"), + xaxis3=XAxis(domain=[0.7, 1.0], anchor="y3"), + xaxis4=XAxis(domain=[0.0, 0.3], anchor="y4"), + xaxis5=XAxis(domain=[0.35, 0.6499999999999999], anchor="y5"), + xaxis6=XAxis(domain=[0.7, 1.0], anchor="y6"), + yaxis1=YAxis(domain=[0.55, 1.0], anchor="x"), + yaxis2=YAxis(domain=[0.55, 1.0], anchor="x2"), + yaxis3=YAxis(domain=[0.55, 1.0], anchor="x3"), + yaxis4=YAxis(domain=[0.0, 0.45], anchor="x4"), + yaxis5=YAxis(domain=[0.0, 0.45], anchor="x5"), + yaxis6=YAxis(domain=[0.0, 0.45], anchor="x6"), + ), + ) + fig = tls.make_subplots( + rows=2, cols=3, horizontal_spacing=0.05, vertical_spacing=0.1 + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_specs(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 0.2888888888888889], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.0, 0.2888888888888889], - anchor='y2' - ), + xaxis1=XAxis(domain=[0.0, 0.2888888888888889], anchor="y"), + xaxis2=XAxis(domain=[0.0, 0.2888888888888889], anchor="y2"), xaxis3=XAxis( - domain=[0.35555555555555557, 0.6444444444444445], - anchor='y3' - ), - xaxis4=XAxis( - domain=[0.7111111111111111, 1.0], - anchor='y4' - ), - yaxis1=YAxis( - domain=[0.575, 1.0], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.0, 0.425], - anchor='x2' - ), - yaxis3=YAxis( - domain=[0.0, 0.425], - anchor='x3' - ), - yaxis4=YAxis( - domain=[0.0, 0.425], - anchor='x4' - ) - ) - ) - fig = tls.make_subplots(rows=2, cols=3, - specs=[[{}, None, None], - [{}, {}, {}]]) + domain=[0.35555555555555557, 0.6444444444444445], anchor="y3" + ), + xaxis4=XAxis(domain=[0.7111111111111111, 1.0], anchor="y4"), + yaxis1=YAxis(domain=[0.575, 1.0], anchor="x"), + yaxis2=YAxis(domain=[0.0, 0.425], anchor="x2"), + yaxis3=YAxis(domain=[0.0, 0.425], anchor="x3"), + yaxis4=YAxis(domain=[0.0, 0.425], anchor="x4"), + ), + ) + fig = tls.make_subplots(rows=2, cols=3, specs=[[{}, None, None], [{}, {}, {}]]) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_specs_bottom_left(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 0.2888888888888889], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.0, 0.2888888888888889], - anchor='y2' - ), + xaxis1=XAxis(domain=[0.0, 0.2888888888888889], anchor="y"), + xaxis2=XAxis(domain=[0.0, 0.2888888888888889], anchor="y2"), xaxis3=XAxis( - domain=[0.35555555555555557, 0.6444444444444445], - anchor='y3' - ), - xaxis4=XAxis( - domain=[0.7111111111111111, 1.0], - anchor='y4' - ), - yaxis1=YAxis( - domain=[0.0, 0.425], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.575, 1.0], - anchor='x2' - ), - yaxis3=YAxis( - domain=[0.575, 1.0], - anchor='x3' - ), - yaxis4=YAxis( - domain=[0.575, 1.0], - anchor='x4' - ) - ) - ) - fig = tls.make_subplots(rows=2, cols=3, - specs=[[{}, None, None], - [{}, {}, {}]], - start_cell='bottom-left') + domain=[0.35555555555555557, 0.6444444444444445], anchor="y3" + ), + xaxis4=XAxis(domain=[0.7111111111111111, 1.0], anchor="y4"), + yaxis1=YAxis(domain=[0.0, 0.425], anchor="x"), + yaxis2=YAxis(domain=[0.575, 1.0], anchor="x2"), + yaxis3=YAxis(domain=[0.575, 1.0], anchor="x3"), + yaxis4=YAxis(domain=[0.575, 1.0], anchor="x4"), + ), + ) + fig = tls.make_subplots( + rows=2, + cols=3, + specs=[[{}, None, None], [{}, {}, {}]], + start_cell="bottom-left", + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_specs_colspan(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 1.0], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.0, 0.45], - anchor='y2' - ), - xaxis3=XAxis( - domain=[0.55, 1.0], - anchor='y3' - ), - xaxis4=XAxis( - domain=[0.0, 0.45], - anchor='y4' - ), - xaxis5=XAxis( - domain=[0.55, 1.0], - anchor='y5' - ), - yaxis1=YAxis( - domain=[0.7333333333333333, 1.0], - anchor='x' - ), + xaxis1=XAxis(domain=[0.0, 1.0], anchor="y"), + xaxis2=XAxis(domain=[0.0, 0.45], anchor="y2"), + xaxis3=XAxis(domain=[0.55, 1.0], anchor="y3"), + xaxis4=XAxis(domain=[0.0, 0.45], anchor="y4"), + xaxis5=XAxis(domain=[0.55, 1.0], anchor="y5"), + yaxis1=YAxis(domain=[0.7333333333333333, 1.0], anchor="x"), yaxis2=YAxis( - domain=[0.36666666666666664, 0.6333333333333333], - anchor='x2' + domain=[0.36666666666666664, 0.6333333333333333], anchor="x2" ), yaxis3=YAxis( - domain=[0.36666666666666664, 0.6333333333333333], - anchor='x3' + domain=[0.36666666666666664, 0.6333333333333333], anchor="x3" ), - yaxis4=YAxis( - domain=[0.0, 0.26666666666666666], - anchor='x4' - ), - yaxis5=YAxis( - domain=[0.0, 0.26666666666666666], - anchor='x5' - ) - ) - ) - fig = tls.make_subplots(rows=3, cols=2, - specs=[[{'colspan': 2}, None], - [{}, {}], - [{}, {}]]) + yaxis4=YAxis(domain=[0.0, 0.26666666666666666], anchor="x4"), + yaxis5=YAxis(domain=[0.0, 0.26666666666666666], anchor="x5"), + ), + ) + fig = tls.make_subplots( + rows=3, cols=2, specs=[[{"colspan": 2}, None], [{}, {}], [{}, {}]] + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_specs_rowspan(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 0.2888888888888889], - anchor='y' - ), + xaxis1=XAxis(domain=[0.0, 0.2888888888888889], anchor="y"), xaxis2=XAxis( - domain=[0.35555555555555557, 0.6444444444444445], - anchor='y2' - ), - xaxis3=XAxis( - domain=[0.7111111111111111, 1.0], - anchor='y3' + domain=[0.35555555555555557, 0.6444444444444445], anchor="y2" ), + xaxis3=XAxis(domain=[0.7111111111111111, 1.0], anchor="y3"), xaxis4=XAxis( - domain=[0.35555555555555557, 0.6444444444444445], - anchor='y4' - ), - xaxis5=XAxis( - domain=[0.7111111111111111, 1.0], - anchor='y5' - ), - xaxis6=XAxis( - domain=[0.35555555555555557, 1.0], - anchor='y6' - ), - yaxis1=YAxis( - domain=[0.0, 1.0], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.7333333333333333, 1.0], - anchor='x2' - ), - yaxis3=YAxis( - domain=[0.7333333333333333, 1.0], - anchor='x3' + domain=[0.35555555555555557, 0.6444444444444445], anchor="y4" ), + xaxis5=XAxis(domain=[0.7111111111111111, 1.0], anchor="y5"), + xaxis6=XAxis(domain=[0.35555555555555557, 1.0], anchor="y6"), + yaxis1=YAxis(domain=[0.0, 1.0], anchor="x"), + yaxis2=YAxis(domain=[0.7333333333333333, 1.0], anchor="x2"), + yaxis3=YAxis(domain=[0.7333333333333333, 1.0], anchor="x3"), yaxis4=YAxis( - domain=[0.36666666666666664, 0.6333333333333333], - anchor='x4' + domain=[0.36666666666666664, 0.6333333333333333], anchor="x4" ), yaxis5=YAxis( - domain=[0.36666666666666664, 0.6333333333333333], - anchor='x5' - ), - yaxis6=YAxis( - domain=[0.0, 0.26666666666666666], - anchor='x6' - ) - ) - ) - fig = tls.make_subplots(rows=3, cols=3, - specs=[[{'rowspan': 3}, {}, {}], - [None, {}, {}], [None, {'colspan': 2}, None]]) + domain=[0.36666666666666664, 0.6333333333333333], anchor="x5" + ), + yaxis6=YAxis(domain=[0.0, 0.26666666666666666], anchor="x6"), + ), + ) + fig = tls.make_subplots( + rows=3, + cols=3, + specs=[ + [{"rowspan": 3}, {}, {}], + [None, {}, {}], + [None, {"colspan": 2}, None], + ], + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_specs_rowspan2(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 0.2888888888888889], - anchor='y' - ), + xaxis1=XAxis(domain=[0.0, 0.2888888888888889], anchor="y"), xaxis2=XAxis( - domain=[0.35555555555555557, 0.6444444444444445], - anchor='y2' - ), - xaxis3=XAxis( - domain=[0.7111111111111111, 1.0], - anchor='y3' - ), - xaxis4=XAxis( - domain=[0.0, 0.6444444444444445], - anchor='y4' - ), - xaxis5=XAxis( - domain=[0.0, 1.0], - anchor='y5' - ), - yaxis1=YAxis( - domain=[0.7333333333333333, 1.0], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.7333333333333333, 1.0], - anchor='x2' - ), - yaxis3=YAxis( - domain=[0.36666666666666664, 1.0], - anchor='x3' - ), + domain=[0.35555555555555557, 0.6444444444444445], anchor="y2" + ), + xaxis3=XAxis(domain=[0.7111111111111111, 1.0], anchor="y3"), + xaxis4=XAxis(domain=[0.0, 0.6444444444444445], anchor="y4"), + xaxis5=XAxis(domain=[0.0, 1.0], anchor="y5"), + yaxis1=YAxis(domain=[0.7333333333333333, 1.0], anchor="x"), + yaxis2=YAxis(domain=[0.7333333333333333, 1.0], anchor="x2"), + yaxis3=YAxis(domain=[0.36666666666666664, 1.0], anchor="x3"), yaxis4=YAxis( - domain=[0.36666666666666664, 0.6333333333333333], - anchor='x4' + domain=[0.36666666666666664, 0.6333333333333333], anchor="x4" ), - yaxis5=YAxis( - domain=[0.0, 0.26666666666666666], - anchor='x5' - ) - ) - ) - fig = tls.make_subplots(rows=3, cols=3, specs=[[{}, {}, {'rowspan': 2}], - [{'colspan': 2}, None, None], - [{'colspan': 3}, None, None]]) + yaxis5=YAxis(domain=[0.0, 0.26666666666666666], anchor="x5"), + ), + ) + fig = tls.make_subplots( + rows=3, + cols=3, + specs=[ + [{}, {}, {"rowspan": 2}], + [{"colspan": 2}, None, None], + [{"colspan": 3}, None, None], + ], + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_specs_colspan_rowpan(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 0.6444444444444445], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.7111111111111111, 1.0], - anchor='y2' - ), - xaxis3=XAxis( - domain=[0.7111111111111111, 1.0], - anchor='y3' - ), - xaxis4=XAxis( - domain=[0.0, 0.2888888888888889], - anchor='y4' - ), + xaxis1=XAxis(domain=[0.0, 0.6444444444444445], anchor="y"), + xaxis2=XAxis(domain=[0.7111111111111111, 1.0], anchor="y2"), + xaxis3=XAxis(domain=[0.7111111111111111, 1.0], anchor="y3"), + xaxis4=XAxis(domain=[0.0, 0.2888888888888889], anchor="y4"), xaxis5=XAxis( - domain=[0.35555555555555557, 0.6444444444444445], - anchor='y5' - ), - xaxis6=XAxis( - domain=[0.7111111111111111, 1.0], - anchor='y6' - ), - yaxis1=YAxis( - domain=[0.36666666666666664, 1.0], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.7333333333333333, 1.0], - anchor='x2' + domain=[0.35555555555555557, 0.6444444444444445], anchor="y5" ), + xaxis6=XAxis(domain=[0.7111111111111111, 1.0], anchor="y6"), + yaxis1=YAxis(domain=[0.36666666666666664, 1.0], anchor="x"), + yaxis2=YAxis(domain=[0.7333333333333333, 1.0], anchor="x2"), yaxis3=YAxis( - domain=[0.36666666666666664, 0.6333333333333333], - anchor='x3' + domain=[0.36666666666666664, 0.6333333333333333], anchor="x3" ), - yaxis4=YAxis( - domain=[0.0, 0.26666666666666666], - anchor='x4' - ), - yaxis5=YAxis( - domain=[0.0, 0.26666666666666666], - anchor='x5' - ), - yaxis6=YAxis( - domain=[0.0, 0.26666666666666666], - anchor='x6' - ) - ) - ) - fig = tls.make_subplots(rows=3, cols=3, - specs=[[{'colspan': 2, 'rowspan': 2}, None, {}], - [None, None, {}], [{}, {}, {}]]) + yaxis4=YAxis(domain=[0.0, 0.26666666666666666], anchor="x4"), + yaxis5=YAxis(domain=[0.0, 0.26666666666666666], anchor="x5"), + yaxis6=YAxis(domain=[0.0, 0.26666666666666666], anchor="x6"), + ), + ) + fig = tls.make_subplots( + rows=3, + cols=3, + specs=[ + [{"colspan": 2, "rowspan": 2}, None, {}], + [None, None, {}], + [{}, {}, {}], + ], + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_specs_colspan_rowpan_bottom_left(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 0.6444444444444445], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.7111111111111111, 1.0], - anchor='y2' - ), - xaxis3=XAxis( - domain=[0.7111111111111111, 1.0], - anchor='y3' - ), - xaxis4=XAxis( - domain=[0.0, 0.2888888888888889], - anchor='y4' - ), + xaxis1=XAxis(domain=[0.0, 0.6444444444444445], anchor="y"), + xaxis2=XAxis(domain=[0.7111111111111111, 1.0], anchor="y2"), + xaxis3=XAxis(domain=[0.7111111111111111, 1.0], anchor="y3"), + xaxis4=XAxis(domain=[0.0, 0.2888888888888889], anchor="y4"), xaxis5=XAxis( - domain=[0.35555555555555557, 0.6444444444444445], - anchor='y5' - ), - xaxis6=XAxis( - domain=[0.7111111111111111, 1.0], - anchor='y6' - ), - yaxis1=YAxis( - domain=[0.0, 0.6333333333333333], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.0, 0.26666666666666666], - anchor='x2' + domain=[0.35555555555555557, 0.6444444444444445], anchor="y5" ), + xaxis6=XAxis(domain=[0.7111111111111111, 1.0], anchor="y6"), + yaxis1=YAxis(domain=[0.0, 0.6333333333333333], anchor="x"), + yaxis2=YAxis(domain=[0.0, 0.26666666666666666], anchor="x2"), yaxis3=YAxis( - domain=[0.36666666666666664, 0.6333333333333333], - anchor='x3' - ), - yaxis4=YAxis( - domain=[0.7333333333333333, 1.0], - anchor='x4' + domain=[0.36666666666666664, 0.6333333333333333], anchor="x3" ), - yaxis5=YAxis( - domain=[0.7333333333333333, 1.0], - anchor='x5' - ), - yaxis6=YAxis( - domain=[0.7333333333333333, 1.0], - anchor='x6' - ) - ) - ) - fig = tls.make_subplots(rows=3, cols=3, - specs=[[{'colspan': 2, 'rowspan': 2}, None, {}], - [None, None, {}], [{}, {}, {}]], - start_cell='bottom-left') + yaxis4=YAxis(domain=[0.7333333333333333, 1.0], anchor="x4"), + yaxis5=YAxis(domain=[0.7333333333333333, 1.0], anchor="x5"), + yaxis6=YAxis(domain=[0.7333333333333333, 1.0], anchor="x6"), + ), + ) + fig = tls.make_subplots( + rows=3, + cols=3, + specs=[ + [{"colspan": 2, "rowspan": 2}, None, {}], + [None, None, {}], + [{}, {}, {}], + ], + start_cell="bottom-left", + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_specs_is_3d(self): expected = Figure( data=Data(), layout=Layout( - scene=Scene( - domain={'y': [0.575, 1.0], 'x': [0.0, 0.45]} - ), - scene2=Scene( - domain={'y': [0.0, 0.425], 'x': [0.0, 0.45]} - ), - xaxis1=XAxis( - domain=[0.55, 1.0], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.55, 1.0], - anchor='y2' - ), - yaxis1=YAxis( - domain=[0.575, 1.0], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.0, 0.425], - anchor='x2' - ) - ) + scene=Scene(domain={"y": [0.575, 1.0], "x": [0.0, 0.45]}), + scene2=Scene(domain={"y": [0.0, 0.425], "x": [0.0, 0.45]}), + xaxis1=XAxis(domain=[0.55, 1.0], anchor="y"), + xaxis2=XAxis(domain=[0.55, 1.0], anchor="y2"), + yaxis1=YAxis(domain=[0.575, 1.0], anchor="x"), + yaxis2=YAxis(domain=[0.0, 0.425], anchor="x2"), + ), + ) + fig = tls.make_subplots( + rows=2, cols=2, specs=[[{"is_3d": True}, {}], [{"is_3d": True}, {}]] ) - fig = tls.make_subplots(rows=2, cols=2, specs=[[{'is_3d': True}, {}], - [{'is_3d': True}, {}]]) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_specs_padding(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.1, 0.5], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.5, 1.0], - anchor='y2' - ), - xaxis3=XAxis( - domain=[0.0, 0.5], - anchor='y3' - ), - xaxis4=XAxis( - domain=[0.5, 0.9], - anchor='y4' - ), - yaxis1=YAxis( - domain=[0.5, 1.0], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.7, 1.0], - anchor='x2' - ), - yaxis3=YAxis( - domain=[0.0, 0.3], - anchor='x3' - ), - yaxis4=YAxis( - domain=[0.0, 0.5], - anchor='x4' - ) - ) - ) - fig = tls.make_subplots(rows=2, cols=2, horizontal_spacing=0, - vertical_spacing=0, - specs=[[{'l': 0.1}, {'b': 0.2}], - [{'t': 0.2}, {'r': 0.1}]]) + xaxis1=XAxis(domain=[0.1, 0.5], anchor="y"), + xaxis2=XAxis(domain=[0.5, 1.0], anchor="y2"), + xaxis3=XAxis(domain=[0.0, 0.5], anchor="y3"), + xaxis4=XAxis(domain=[0.5, 0.9], anchor="y4"), + yaxis1=YAxis(domain=[0.5, 1.0], anchor="x"), + yaxis2=YAxis(domain=[0.7, 1.0], anchor="x2"), + yaxis3=YAxis(domain=[0.0, 0.3], anchor="x3"), + yaxis4=YAxis(domain=[0.0, 0.5], anchor="x4"), + ), + ) + fig = tls.make_subplots( + rows=2, + cols=2, + horizontal_spacing=0, + vertical_spacing=0, + specs=[[{"l": 0.1}, {"b": 0.2}], [{"t": 0.2}, {"r": 0.1}]], + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_specs_padding_bottom_left(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.1, 0.5], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.5, 1.0], - anchor='y2' - ), - xaxis3=XAxis( - domain=[0.0, 0.5], - anchor='y3' - ), - xaxis4=XAxis( - domain=[0.5, 0.9], - anchor='y4' - ), - yaxis1=YAxis( - domain=[0.0, 0.5], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.2, 0.5], - anchor='x2' - ), - yaxis3=YAxis( - domain=[0.5, 0.8], - anchor='x3' - ), - yaxis4=YAxis( - domain=[0.5, 1.0], - anchor='x4' - ) - ) - ) - fig = tls.make_subplots(rows=2, cols=2, - horizontal_spacing=0, vertical_spacing=0, - specs=[[{'l': 0.1}, {'b': 0.2}], - [{'t': 0.2}, {'r': 0.1}]], - start_cell='bottom-left') + xaxis1=XAxis(domain=[0.1, 0.5], anchor="y"), + xaxis2=XAxis(domain=[0.5, 1.0], anchor="y2"), + xaxis3=XAxis(domain=[0.0, 0.5], anchor="y3"), + xaxis4=XAxis(domain=[0.5, 0.9], anchor="y4"), + yaxis1=YAxis(domain=[0.0, 0.5], anchor="x"), + yaxis2=YAxis(domain=[0.2, 0.5], anchor="x2"), + yaxis3=YAxis(domain=[0.5, 0.8], anchor="x3"), + yaxis4=YAxis(domain=[0.5, 1.0], anchor="x4"), + ), + ) + fig = tls.make_subplots( + rows=2, + cols=2, + horizontal_spacing=0, + vertical_spacing=0, + specs=[[{"l": 0.1}, {"b": 0.2}], [{"t": 0.2}, {"r": 0.1}]], + start_cell="bottom-left", + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_shared_xaxes(self): expected = Figure( data=Data(), layout={ - 'xaxis': {'anchor': 'y', 'domain': [0.0, 0.2888888888888889], - 'matches': 'x4', 'showticklabels': False}, - 'xaxis2': {'anchor': 'y2', - 'domain': [0.35555555555555557, - 0.6444444444444445], - 'matches': 'x5', - 'showticklabels': False}, - 'xaxis3': {'anchor': 'y3', 'domain': [0.7111111111111111, 1.0], - 'matches': 'x6', 'showticklabels': False}, - 'xaxis4': {'anchor': 'y4', 'domain': [0.0, 0.2888888888888889]}, - 'xaxis5': {'anchor': 'y5', - 'domain': [0.35555555555555557, 0.6444444444444445]}, - 'xaxis6': {'anchor': 'y6', 'domain': [0.7111111111111111, 1.0]}, - 'yaxis': {'anchor': 'x', 'domain': [0.575, 1.0]}, - 'yaxis2': {'anchor': 'x2', 'domain': [0.575, 1.0]}, - 'yaxis3': {'anchor': 'x3', 'domain': [0.575, 1.0]}, - 'yaxis4': {'anchor': 'x4', 'domain': [0.0, 0.425]}, - 'yaxis5': {'anchor': 'x5', 'domain': [0.0, 0.425]}, - 'yaxis6': {'anchor': 'x6', 'domain': [0.0, 0.425]} - }) + "xaxis": { + "anchor": "y", + "domain": [0.0, 0.2888888888888889], + "matches": "x4", + "showticklabels": False, + }, + "xaxis2": { + "anchor": "y2", + "domain": [0.35555555555555557, 0.6444444444444445], + "matches": "x5", + "showticklabels": False, + }, + "xaxis3": { + "anchor": "y3", + "domain": [0.7111111111111111, 1.0], + "matches": "x6", + "showticklabels": False, + }, + "xaxis4": {"anchor": "y4", "domain": [0.0, 0.2888888888888889]}, + "xaxis5": { + "anchor": "y5", + "domain": [0.35555555555555557, 0.6444444444444445], + }, + "xaxis6": {"anchor": "y6", "domain": [0.7111111111111111, 1.0]}, + "yaxis": {"anchor": "x", "domain": [0.575, 1.0]}, + "yaxis2": {"anchor": "x2", "domain": [0.575, 1.0]}, + "yaxis3": {"anchor": "x3", "domain": [0.575, 1.0]}, + "yaxis4": {"anchor": "x4", "domain": [0.0, 0.425]}, + "yaxis5": {"anchor": "x5", "domain": [0.0, 0.425]}, + "yaxis6": {"anchor": "x6", "domain": [0.0, 0.425]}, + }, + ) fig = tls.make_subplots(rows=2, cols=3, shared_xaxes=True) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) @@ -1240,60 +727,96 @@ def test_shared_xaxes_bottom_left(self): expected = Figure( data=Data(), layout={ - 'xaxis': {'anchor': 'y', 'domain': [0.0, 0.2888888888888889]}, - 'xaxis2': {'anchor': 'y2','domain': [0.35555555555555557, 0.6444444444444445]}, - 'xaxis3': {'anchor': 'y3', 'domain': [0.7111111111111111, 1.0]}, - 'xaxis4': {'anchor': 'y4', 'domain': [0.0, 0.2888888888888889], - 'matches': 'x', 'showticklabels': False}, - 'xaxis5': {'anchor': 'y5', - 'domain': [0.35555555555555557, 0.6444444444444445], - 'matches': 'x2', - 'showticklabels': False}, - 'xaxis6': {'anchor': 'y6', 'domain': [0.7111111111111111, 1.0], - 'matches': 'x3', 'showticklabels': False}, - 'yaxis': {'anchor': 'x', 'domain': [0.0, 0.425]}, - 'yaxis2': {'anchor': 'x2', 'domain': [0.0, 0.425]}, - 'yaxis3': {'anchor': 'x3', 'domain': [0.0, 0.425]}, - 'yaxis4': {'anchor': 'x4', 'domain': [0.575, 1.0]}, - 'yaxis5': {'anchor': 'x5', 'domain': [0.575, 1.0]}, - 'yaxis6': {'anchor': 'x6', 'domain': [0.575, 1.0]}} - ) - fig = tls.make_subplots(rows=2, cols=3, - shared_xaxes=True, start_cell='bottom-left') + "xaxis": {"anchor": "y", "domain": [0.0, 0.2888888888888889]}, + "xaxis2": { + "anchor": "y2", + "domain": [0.35555555555555557, 0.6444444444444445], + }, + "xaxis3": {"anchor": "y3", "domain": [0.7111111111111111, 1.0]}, + "xaxis4": { + "anchor": "y4", + "domain": [0.0, 0.2888888888888889], + "matches": "x", + "showticklabels": False, + }, + "xaxis5": { + "anchor": "y5", + "domain": [0.35555555555555557, 0.6444444444444445], + "matches": "x2", + "showticklabels": False, + }, + "xaxis6": { + "anchor": "y6", + "domain": [0.7111111111111111, 1.0], + "matches": "x3", + "showticklabels": False, + }, + "yaxis": {"anchor": "x", "domain": [0.0, 0.425]}, + "yaxis2": {"anchor": "x2", "domain": [0.0, 0.425]}, + "yaxis3": {"anchor": "x3", "domain": [0.0, 0.425]}, + "yaxis4": {"anchor": "x4", "domain": [0.575, 1.0]}, + "yaxis5": {"anchor": "x5", "domain": [0.575, 1.0]}, + "yaxis6": {"anchor": "x6", "domain": [0.575, 1.0]}, + }, + ) + fig = tls.make_subplots( + rows=2, cols=3, shared_xaxes=True, start_cell="bottom-left" + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_shared_yaxes(self): expected = Figure( data=Data(), layout={ - 'xaxis': {'anchor': 'y', 'domain': [0.0, 0.45]}, - 'xaxis10': {'anchor': 'y10', 'domain': [0.55, 1.0]}, - 'xaxis2': {'anchor': 'y2', 'domain': [0.55, 1.0]}, - 'xaxis3': {'anchor': 'y3', 'domain': [0.0, 0.45]}, - 'xaxis4': {'anchor': 'y4', 'domain': [0.55, 1.0]}, - 'xaxis5': {'anchor': 'y5', 'domain': [0.0, 0.45]}, - 'xaxis6': {'anchor': 'y6', 'domain': [0.55, 1.0]}, - 'xaxis7': {'anchor': 'y7', 'domain': [0.0, 0.45]}, - 'xaxis8': {'anchor': 'y8', 'domain': [0.55, 1.0]}, - 'xaxis9': {'anchor': 'y9', 'domain': [0.0, 0.45]}, - 'yaxis': {'anchor': 'x', 'domain': [0.848, 1.0]}, - 'yaxis10': {'anchor': 'x10', 'domain': [0.0, 0.152], - 'matches': 'y9', 'showticklabels': False}, - 'yaxis2': {'anchor': 'x2', 'domain': [0.848, 1.0], - 'matches': 'y', 'showticklabels': False}, - 'yaxis3': {'anchor': 'x3', - 'domain': [0.6359999999999999, 0.7879999999999999]}, - 'yaxis4': {'anchor': 'x4', - 'domain': [0.6359999999999999, 0.7879999999999999], - 'matches': 'y3', - 'showticklabels': False}, - 'yaxis5': {'anchor': 'x5', 'domain': [0.424, 0.576]}, - 'yaxis6': {'anchor': 'x6', 'domain': [0.424, 0.576], - 'matches': 'y5', 'showticklabels': False}, - 'yaxis7': {'anchor': 'x7', 'domain': [0.212, 0.364]}, - 'yaxis8': {'anchor': 'x8', 'domain': [0.212, 0.364], - 'matches': 'y7', 'showticklabels': False}, - 'yaxis9': {'anchor': 'x9', 'domain': [0.0, 0.152]}} + "xaxis": {"anchor": "y", "domain": [0.0, 0.45]}, + "xaxis10": {"anchor": "y10", "domain": [0.55, 1.0]}, + "xaxis2": {"anchor": "y2", "domain": [0.55, 1.0]}, + "xaxis3": {"anchor": "y3", "domain": [0.0, 0.45]}, + "xaxis4": {"anchor": "y4", "domain": [0.55, 1.0]}, + "xaxis5": {"anchor": "y5", "domain": [0.0, 0.45]}, + "xaxis6": {"anchor": "y6", "domain": [0.55, 1.0]}, + "xaxis7": {"anchor": "y7", "domain": [0.0, 0.45]}, + "xaxis8": {"anchor": "y8", "domain": [0.55, 1.0]}, + "xaxis9": {"anchor": "y9", "domain": [0.0, 0.45]}, + "yaxis": {"anchor": "x", "domain": [0.848, 1.0]}, + "yaxis10": { + "anchor": "x10", + "domain": [0.0, 0.152], + "matches": "y9", + "showticklabels": False, + }, + "yaxis2": { + "anchor": "x2", + "domain": [0.848, 1.0], + "matches": "y", + "showticklabels": False, + }, + "yaxis3": { + "anchor": "x3", + "domain": [0.6359999999999999, 0.7879999999999999], + }, + "yaxis4": { + "anchor": "x4", + "domain": [0.6359999999999999, 0.7879999999999999], + "matches": "y3", + "showticklabels": False, + }, + "yaxis5": {"anchor": "x5", "domain": [0.424, 0.576]}, + "yaxis6": { + "anchor": "x6", + "domain": [0.424, 0.576], + "matches": "y5", + "showticklabels": False, + }, + "yaxis7": {"anchor": "x7", "domain": [0.212, 0.364]}, + "yaxis8": { + "anchor": "x8", + "domain": [0.212, 0.364], + "matches": "y7", + "showticklabels": False, + }, + "yaxis9": {"anchor": "x9", "domain": [0.0, 0.152]}, + }, ) fig = tls.make_subplots(rows=5, cols=2, shared_yaxes=True) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) @@ -1302,292 +825,281 @@ def test_shared_xaxes_yaxes(self): expected = Figure( data=Data(), layout={ - 'xaxis': {'anchor': 'y', 'domain': [0.0, 0.2888888888888889], - 'matches': 'x7', 'showticklabels': False}, - 'xaxis2': {'anchor': 'y2', - 'domain': [0.35555555555555557, 0.6444444444444445], - 'matches': 'x8', - 'showticklabels': False}, - 'xaxis3': {'anchor': 'y3', 'domain': [0.7111111111111111, 1.0], - 'matches': 'x9', 'showticklabels': False}, - 'xaxis4': {'anchor': 'y4', 'domain': [0.0, 0.2888888888888889], - 'matches': 'x7', 'showticklabels': False}, - 'xaxis5': {'anchor': 'y5', - 'domain': [0.35555555555555557, 0.6444444444444445], - 'matches': 'x8', - 'showticklabels': False}, - 'xaxis6': {'anchor': 'y6', 'domain': [0.7111111111111111, 1.0], - 'matches': 'x9', 'showticklabels': False}, - 'xaxis7': {'anchor': 'y7', - 'domain': [0.0, 0.2888888888888889]}, - 'xaxis8': {'anchor': 'y8', 'domain': [0.35555555555555557, - 0.6444444444444445]}, - 'xaxis9': {'anchor': 'y9', - 'domain': [0.7111111111111111, 1.0]}, - 'yaxis': {'anchor': 'x', 'domain': [0.7333333333333333, 1.0]}, - 'yaxis2': {'anchor': 'x2', 'domain': [0.7333333333333333, 1.0], - 'matches': 'y', 'showticklabels': False}, - 'yaxis3': {'anchor': 'x3', 'domain': [0.7333333333333333, 1.0], - 'matches': 'y', 'showticklabels': False}, - 'yaxis4': {'anchor': 'x4', 'domain': [0.36666666666666664, - 0.6333333333333333]}, - 'yaxis5': {'anchor': 'x5', - 'domain': [0.36666666666666664, 0.6333333333333333], - 'matches': 'y4', - 'showticklabels': False}, - 'yaxis6': {'anchor': 'x6', - 'domain': [0.36666666666666664, 0.6333333333333333], - 'matches': 'y4', - 'showticklabels': False}, - 'yaxis7': {'anchor': 'x7', - 'domain': [0.0, 0.26666666666666666]}, - 'yaxis8': {'anchor': 'x8', - 'domain': [0.0, 0.26666666666666666], - 'matches': 'y7', 'showticklabels': False}, - 'yaxis9': {'anchor': 'x9', - 'domain': [0.0, 0.26666666666666666], - 'matches': 'y7', 'showticklabels': False} - } + "xaxis": { + "anchor": "y", + "domain": [0.0, 0.2888888888888889], + "matches": "x7", + "showticklabels": False, + }, + "xaxis2": { + "anchor": "y2", + "domain": [0.35555555555555557, 0.6444444444444445], + "matches": "x8", + "showticklabels": False, + }, + "xaxis3": { + "anchor": "y3", + "domain": [0.7111111111111111, 1.0], + "matches": "x9", + "showticklabels": False, + }, + "xaxis4": { + "anchor": "y4", + "domain": [0.0, 0.2888888888888889], + "matches": "x7", + "showticklabels": False, + }, + "xaxis5": { + "anchor": "y5", + "domain": [0.35555555555555557, 0.6444444444444445], + "matches": "x8", + "showticklabels": False, + }, + "xaxis6": { + "anchor": "y6", + "domain": [0.7111111111111111, 1.0], + "matches": "x9", + "showticklabels": False, + }, + "xaxis7": {"anchor": "y7", "domain": [0.0, 0.2888888888888889]}, + "xaxis8": { + "anchor": "y8", + "domain": [0.35555555555555557, 0.6444444444444445], + }, + "xaxis9": {"anchor": "y9", "domain": [0.7111111111111111, 1.0]}, + "yaxis": {"anchor": "x", "domain": [0.7333333333333333, 1.0]}, + "yaxis2": { + "anchor": "x2", + "domain": [0.7333333333333333, 1.0], + "matches": "y", + "showticklabels": False, + }, + "yaxis3": { + "anchor": "x3", + "domain": [0.7333333333333333, 1.0], + "matches": "y", + "showticklabels": False, + }, + "yaxis4": { + "anchor": "x4", + "domain": [0.36666666666666664, 0.6333333333333333], + }, + "yaxis5": { + "anchor": "x5", + "domain": [0.36666666666666664, 0.6333333333333333], + "matches": "y4", + "showticklabels": False, + }, + "yaxis6": { + "anchor": "x6", + "domain": [0.36666666666666664, 0.6333333333333333], + "matches": "y4", + "showticklabels": False, + }, + "yaxis7": {"anchor": "x7", "domain": [0.0, 0.26666666666666666]}, + "yaxis8": { + "anchor": "x8", + "domain": [0.0, 0.26666666666666666], + "matches": "y7", + "showticklabels": False, + }, + "yaxis9": { + "anchor": "x9", + "domain": [0.0, 0.26666666666666666], + "matches": "y7", + "showticklabels": False, + }, + }, ) - fig = tls.make_subplots(rows=3, cols=3, - shared_xaxes=True, shared_yaxes=True) + fig = tls.make_subplots(rows=3, cols=3, shared_xaxes=True, shared_yaxes=True) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_shared_xaxes_yaxes_bottom_left(self): expected = Figure( data=Data(), - layout= {'xaxis': {'anchor': 'y', 'domain': [0.0, 0.2888888888888889]}, - 'xaxis2': {'anchor': 'y2', 'domain': [0.35555555555555557, 0.6444444444444445]}, - 'xaxis3': {'anchor': 'y3', 'domain': [0.7111111111111111, 1.0]}, - 'xaxis4': {'anchor': 'y4', 'domain': [0.0, 0.2888888888888889], - 'matches': 'x', 'showticklabels': False}, - 'xaxis5': {'anchor': 'y5', - 'domain': [0.35555555555555557, 0.6444444444444445], - 'matches': 'x2', - 'showticklabels': False}, - 'xaxis6': {'anchor': 'y6', 'domain': [0.7111111111111111, 1.0], - 'matches': 'x3', 'showticklabels': False}, - 'xaxis7': {'anchor': 'y7', 'domain': [0.0, 0.2888888888888889], - 'matches': 'x', 'showticklabels': False}, - 'xaxis8': {'anchor': 'y8', - 'domain': [0.35555555555555557, 0.6444444444444445], - 'matches': 'x2', - 'showticklabels': False}, - 'xaxis9': {'anchor': 'y9', 'domain': [0.7111111111111111, 1.0], - 'matches': 'x3', 'showticklabels': False}, - 'yaxis': {'anchor': 'x', 'domain': [0.0, 0.26666666666666666]}, - 'yaxis2': {'anchor': 'x2', 'domain': [0.0, 0.26666666666666666], - 'matches': 'y', 'showticklabels': False}, - 'yaxis3': {'anchor': 'x3', 'domain': [0.0, 0.26666666666666666], - 'matches': 'y', 'showticklabels': False}, - 'yaxis4': {'anchor': 'x4', 'domain': [0.36666666666666664, 0.6333333333333333]}, - 'yaxis5': {'anchor': 'x5', - 'domain': [0.36666666666666664, 0.6333333333333333], - 'matches': 'y4', - 'showticklabels': False}, - 'yaxis6': {'anchor': 'x6', - 'domain': [0.36666666666666664, 0.6333333333333333], - 'matches': 'y4', - 'showticklabels': False}, - 'yaxis7': {'anchor': 'x7', 'domain': [0.7333333333333333, 1.0]}, - 'yaxis8': {'anchor': 'x8', 'domain': [0.7333333333333333, 1.0], - 'matches': 'y7', 'showticklabels': False}, - 'yaxis9': {'anchor': 'x9', 'domain': [0.7333333333333333, 1.0], - 'matches': 'y7', 'showticklabels': False} - } - ) - fig = tls.make_subplots(rows=3, cols=3, - shared_xaxes=True, shared_yaxes=True, - start_cell='bottom-left') + layout={ + "xaxis": {"anchor": "y", "domain": [0.0, 0.2888888888888889]}, + "xaxis2": { + "anchor": "y2", + "domain": [0.35555555555555557, 0.6444444444444445], + }, + "xaxis3": {"anchor": "y3", "domain": [0.7111111111111111, 1.0]}, + "xaxis4": { + "anchor": "y4", + "domain": [0.0, 0.2888888888888889], + "matches": "x", + "showticklabels": False, + }, + "xaxis5": { + "anchor": "y5", + "domain": [0.35555555555555557, 0.6444444444444445], + "matches": "x2", + "showticklabels": False, + }, + "xaxis6": { + "anchor": "y6", + "domain": [0.7111111111111111, 1.0], + "matches": "x3", + "showticklabels": False, + }, + "xaxis7": { + "anchor": "y7", + "domain": [0.0, 0.2888888888888889], + "matches": "x", + "showticklabels": False, + }, + "xaxis8": { + "anchor": "y8", + "domain": [0.35555555555555557, 0.6444444444444445], + "matches": "x2", + "showticklabels": False, + }, + "xaxis9": { + "anchor": "y9", + "domain": [0.7111111111111111, 1.0], + "matches": "x3", + "showticklabels": False, + }, + "yaxis": {"anchor": "x", "domain": [0.0, 0.26666666666666666]}, + "yaxis2": { + "anchor": "x2", + "domain": [0.0, 0.26666666666666666], + "matches": "y", + "showticklabels": False, + }, + "yaxis3": { + "anchor": "x3", + "domain": [0.0, 0.26666666666666666], + "matches": "y", + "showticklabels": False, + }, + "yaxis4": { + "anchor": "x4", + "domain": [0.36666666666666664, 0.6333333333333333], + }, + "yaxis5": { + "anchor": "x5", + "domain": [0.36666666666666664, 0.6333333333333333], + "matches": "y4", + "showticklabels": False, + }, + "yaxis6": { + "anchor": "x6", + "domain": [0.36666666666666664, 0.6333333333333333], + "matches": "y4", + "showticklabels": False, + }, + "yaxis7": {"anchor": "x7", "domain": [0.7333333333333333, 1.0]}, + "yaxis8": { + "anchor": "x8", + "domain": [0.7333333333333333, 1.0], + "matches": "y7", + "showticklabels": False, + }, + "yaxis9": { + "anchor": "x9", + "domain": [0.7333333333333333, 1.0], + "matches": "y7", + "showticklabels": False, + }, + }, + ) + fig = tls.make_subplots( + rows=3, + cols=3, + shared_xaxes=True, + shared_yaxes=True, + start_cell="bottom-left", + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_insets(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 0.45], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.55, 1.0], - anchor='y2' - ), - xaxis3=XAxis( - domain=[0.0, 0.45], - anchor='y3' - ), - xaxis4=XAxis( - domain=[0.55, 1.0], - anchor='y4' - ), - xaxis5=XAxis( - domain=[0.865, 0.955], - anchor='y5' - ), - yaxis1=YAxis( - domain=[0.575, 1.0], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.575, 1.0], - anchor='x2' - ), - yaxis3=YAxis( - domain=[0.0, 0.425], - anchor='x3' - ), - yaxis4=YAxis( - domain=[0.0, 0.425], - anchor='x4' - ), - yaxis5=YAxis( - domain=[0.085, 0.2975], - anchor='x5' - ) - ) - ) - fig = tls.make_subplots(rows=2, cols=2, - insets=[{'cell': (2, 2), 'l': 0.7, 'w': 0.2, - 'b': 0.2, 'h': 0.5}]) + xaxis1=XAxis(domain=[0.0, 0.45], anchor="y"), + xaxis2=XAxis(domain=[0.55, 1.0], anchor="y2"), + xaxis3=XAxis(domain=[0.0, 0.45], anchor="y3"), + xaxis4=XAxis(domain=[0.55, 1.0], anchor="y4"), + xaxis5=XAxis(domain=[0.865, 0.955], anchor="y5"), + yaxis1=YAxis(domain=[0.575, 1.0], anchor="x"), + yaxis2=YAxis(domain=[0.575, 1.0], anchor="x2"), + yaxis3=YAxis(domain=[0.0, 0.425], anchor="x3"), + yaxis4=YAxis(domain=[0.0, 0.425], anchor="x4"), + yaxis5=YAxis(domain=[0.085, 0.2975], anchor="x5"), + ), + ) + fig = tls.make_subplots( + rows=2, + cols=2, + insets=[{"cell": (2, 2), "l": 0.7, "w": 0.2, "b": 0.2, "h": 0.5}], + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_insets_bottom_left(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 0.45], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.55, 1.0], - anchor='y2' - ), - xaxis3=XAxis( - domain=[0.0, 0.45], - anchor='y3' - ), - xaxis4=XAxis( - domain=[0.55, 1.0], - anchor='y4' - ), - xaxis5=XAxis( - domain=[0.865, 0.955], - anchor='y5' - ), - yaxis1=YAxis( - domain=[0.0, 0.425], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.0, 0.425], - anchor='x2' - ), - yaxis3=YAxis( - domain=[0.575, 1.0], - anchor='x3' - ), - yaxis4=YAxis( - domain=[0.575, 1.0], - anchor='x4' - ), + xaxis1=XAxis(domain=[0.0, 0.45], anchor="y"), + xaxis2=XAxis(domain=[0.55, 1.0], anchor="y2"), + xaxis3=XAxis(domain=[0.0, 0.45], anchor="y3"), + xaxis4=XAxis(domain=[0.55, 1.0], anchor="y4"), + xaxis5=XAxis(domain=[0.865, 0.955], anchor="y5"), + yaxis1=YAxis(domain=[0.0, 0.425], anchor="x"), + yaxis2=YAxis(domain=[0.0, 0.425], anchor="x2"), + yaxis3=YAxis(domain=[0.575, 1.0], anchor="x3"), + yaxis4=YAxis(domain=[0.575, 1.0], anchor="x4"), yaxis5=YAxis( - domain=[0.6599999999999999, 0.8724999999999999], - anchor='x5' - ) - ) - ) - fig = tls.make_subplots(rows=2, cols=2, - insets=[{'cell': (2, 2), 'l': 0.7, 'w': 0.2, - 'b': 0.2, 'h': 0.5}], - start_cell='bottom-left') + domain=[0.6599999999999999, 0.8724999999999999], anchor="x5" + ), + ), + ) + fig = tls.make_subplots( + rows=2, + cols=2, + insets=[{"cell": (2, 2), "l": 0.7, "w": 0.2, "b": 0.2, "h": 0.5}], + start_cell="bottom-left", + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_insets_multiple(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 1.0], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.0, 1.0], - anchor='y2' - ), - xaxis3=XAxis( - domain=[0.8, 1.0], - anchor='y3' - ), - xaxis4=XAxis( - domain=[0.8, 1.0], - anchor='y4' - ), - yaxis1=YAxis( - domain=[0.575, 1.0], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.0, 0.425], - anchor='x2' - ), - yaxis3=YAxis( - domain=[0.575, 1.0], - anchor='x3' - ), - yaxis4=YAxis( - domain=[0.0, 0.425], - anchor='x4' - ) - ) + xaxis1=XAxis(domain=[0.0, 1.0], anchor="y"), + xaxis2=XAxis(domain=[0.0, 1.0], anchor="y2"), + xaxis3=XAxis(domain=[0.8, 1.0], anchor="y3"), + xaxis4=XAxis(domain=[0.8, 1.0], anchor="y4"), + yaxis1=YAxis(domain=[0.575, 1.0], anchor="x"), + yaxis2=YAxis(domain=[0.0, 0.425], anchor="x2"), + yaxis3=YAxis(domain=[0.575, 1.0], anchor="x3"), + yaxis4=YAxis(domain=[0.0, 0.425], anchor="x4"), + ), + ) + fig = tls.make_subplots( + rows=2, insets=[{"cell": (1, 1), "l": 0.8}, {"cell": (2, 1), "l": 0.8}] ) - fig = tls.make_subplots(rows=2, insets=[{'cell': (1, 1), 'l': 0.8}, - {'cell': (2, 1), 'l': 0.8}]) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_insets_multiple_bottom_left(self): expected = Figure( data=Data(), layout=Layout( - xaxis1=XAxis( - domain=[0.0, 1.0], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.0, 1.0], - anchor='y2' - ), - xaxis3=XAxis( - domain=[0.8, 1.0], - anchor='y3' - ), - xaxis4=XAxis( - domain=[0.8, 1.0], - anchor='y4' - ), - yaxis1=YAxis( - domain=[0.0, 0.425], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.575, 1.0], - anchor='x2' - ), - yaxis3=YAxis( - domain=[0.0, 0.425], - anchor='x3' - ), - yaxis4=YAxis( - domain=[0.575, 1.0], - anchor='x4' - ) - ) - ) - fig = tls.make_subplots(rows=2, - insets=[{'cell': (1, 1), 'l': 0.8}, - {'cell': (2, 1), 'l': 0.8}], - start_cell='bottom-left') + xaxis1=XAxis(domain=[0.0, 1.0], anchor="y"), + xaxis2=XAxis(domain=[0.0, 1.0], anchor="y2"), + xaxis3=XAxis(domain=[0.8, 1.0], anchor="y3"), + xaxis4=XAxis(domain=[0.8, 1.0], anchor="y4"), + yaxis1=YAxis(domain=[0.0, 0.425], anchor="x"), + yaxis2=YAxis(domain=[0.575, 1.0], anchor="x2"), + yaxis3=YAxis(domain=[0.0, 0.425], anchor="x3"), + yaxis4=YAxis(domain=[0.575, 1.0], anchor="x4"), + ), + ) + fig = tls.make_subplots( + rows=2, + insets=[{"cell": (1, 1), "l": 0.8}, {"cell": (2, 1), "l": 0.8}], + start_cell="bottom-left", + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_subplot_titles_2x1(self): @@ -1595,49 +1107,39 @@ def test_subplot_titles_2x1(self): expected = Figure( data=Data(), layout=Layout( - annotations=Annotations([ - Annotation( - x=0.5, - y=1.0, - xref='paper', - yref='paper', - text='Title 1', - showarrow=False, - font=Font(size=16), - xanchor='center', - yanchor='bottom' - ), - Annotation( - x=0.5, - y=0.375, - xref='paper', - yref='paper', - text='Title 2', - showarrow=False, - font=Font(size=16), - xanchor='center', - yanchor='bottom' - ) - ]), - xaxis1=XAxis( - domain=[0.0, 1.0], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.0, 1.0], - anchor='y2' - ), - yaxis1=YAxis( - domain=[0.625, 1.0], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.0, 0.375], - anchor='x2' - ) - ) + annotations=Annotations( + [ + Annotation( + x=0.5, + y=1.0, + xref="paper", + yref="paper", + text="Title 1", + showarrow=False, + font=Font(size=16), + xanchor="center", + yanchor="bottom", + ), + Annotation( + x=0.5, + y=0.375, + xref="paper", + yref="paper", + text="Title 2", + showarrow=False, + font=Font(size=16), + xanchor="center", + yanchor="bottom", + ), + ] + ), + xaxis1=XAxis(domain=[0.0, 1.0], anchor="y"), + xaxis2=XAxis(domain=[0.0, 1.0], anchor="y2"), + yaxis1=YAxis(domain=[0.625, 1.0], anchor="x"), + yaxis2=YAxis(domain=[0.0, 0.375], anchor="x2"), + ), ) - fig = tls.make_subplots(rows=2, subplot_titles=('Title 1', 'Title 2')) + fig = tls.make_subplots(rows=2, subplot_titles=("Title 1", "Title 2")) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_subplot_titles_1x3(self): @@ -1645,69 +1147,56 @@ def test_subplot_titles_1x3(self): expected = Figure( data=Data(), layout=Layout( - annotations=Annotations([ - Annotation( - x=0.14444444444444446, - y=1.0, - xref='paper', - yref='paper', - text='Title 1', - showarrow=False, - font=Font(size=16), - xanchor='center', - yanchor='bottom' - ), - Annotation( - x=0.5, - y=1.0, - xref='paper', - yref='paper', - text='Title 2', - showarrow=False, - font=Font(size=16), - xanchor='center', - yanchor='bottom' - ), - Annotation( - x=0.8555555555555556, - y=1.0, - xref='paper', - yref='paper', - text='Title 3', - showarrow=False, - font=Font(size=16), - xanchor='center', - yanchor='bottom' - ) - ]), - xaxis1=XAxis( - domain=[0.0, 0.2888888888888889], - anchor='y' - ), + annotations=Annotations( + [ + Annotation( + x=0.14444444444444446, + y=1.0, + xref="paper", + yref="paper", + text="Title 1", + showarrow=False, + font=Font(size=16), + xanchor="center", + yanchor="bottom", + ), + Annotation( + x=0.5, + y=1.0, + xref="paper", + yref="paper", + text="Title 2", + showarrow=False, + font=Font(size=16), + xanchor="center", + yanchor="bottom", + ), + Annotation( + x=0.8555555555555556, + y=1.0, + xref="paper", + yref="paper", + text="Title 3", + showarrow=False, + font=Font(size=16), + xanchor="center", + yanchor="bottom", + ), + ] + ), + xaxis1=XAxis(domain=[0.0, 0.2888888888888889], anchor="y"), xaxis2=XAxis( - domain=[0.35555555555555557, 0.6444444444444445], - anchor='y2' - ), - xaxis3=XAxis( - domain=[0.7111111111111111, 1.0], - anchor='y3' + domain=[0.35555555555555557, 0.6444444444444445], anchor="y2" ), - yaxis1=YAxis( - domain=[0.0, 1.0], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.0, 1.0], - anchor='x2' - ), - yaxis3=YAxis( - domain=[0.0, 1.0], - anchor='x3' - ) - ) + xaxis3=XAxis(domain=[0.7111111111111111, 1.0], anchor="y3"), + yaxis1=YAxis(domain=[0.0, 1.0], anchor="x"), + yaxis2=YAxis(domain=[0.0, 1.0], anchor="x2"), + yaxis3=YAxis(domain=[0.0, 1.0], anchor="x3"), + ), + ) + fig = tls.make_subplots( + cols=3, subplot_titles=("Title 1", "Title 2", "Title 3") ) - fig = tls.make_subplots(cols=3, - subplot_titles=('Title 1', 'Title 2', 'Title 3')) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_subplot_titles_shared_axes(self): @@ -1715,61 +1204,90 @@ def test_subplot_titles_shared_axes(self): expected = Figure( data=Data(), layout={ - 'annotations': [{'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 1', - 'x': 0.225, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 1.0, - 'yanchor': 'bottom', - 'yref': 'paper'}, - {'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 2', - 'x': 0.775, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 1.0, - 'yanchor': 'bottom', - 'yref': 'paper'}, - {'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 3', - 'x': 0.225, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 0.375, - 'yanchor': 'bottom', - 'yref': 'paper'}, - {'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 4', - 'x': 0.775, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 0.375, - 'yanchor': 'bottom', - 'yref': 'paper'}], - 'xaxis': {'anchor': 'y', 'domain': [0.0, 0.45], - 'matches': 'x3', 'showticklabels': False}, - 'xaxis2': {'anchor': 'y2', 'domain': [0.55, 1.0], - 'matches': 'x4', 'showticklabels': False}, - 'xaxis3': {'anchor': 'y3', 'domain': [0.0, 0.45]}, - 'xaxis4': {'anchor': 'y4', 'domain': [0.55, 1.0]}, - 'yaxis': {'anchor': 'x', 'domain': [0.625, 1.0]}, - 'yaxis2': {'anchor': 'x2', 'domain': [0.625, 1.0], - 'matches': 'y', 'showticklabels': False}, - 'yaxis3': {'anchor': 'x3', 'domain': [0.0, 0.375]}, - 'yaxis4': {'anchor': 'x4', 'domain': [0.0, 0.375], - 'matches': 'y3', 'showticklabels': False} - } + "annotations": [ + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 1", + "x": 0.225, + "xanchor": "center", + "xref": "paper", + "y": 1.0, + "yanchor": "bottom", + "yref": "paper", + }, + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 2", + "x": 0.775, + "xanchor": "center", + "xref": "paper", + "y": 1.0, + "yanchor": "bottom", + "yref": "paper", + }, + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 3", + "x": 0.225, + "xanchor": "center", + "xref": "paper", + "y": 0.375, + "yanchor": "bottom", + "yref": "paper", + }, + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 4", + "x": 0.775, + "xanchor": "center", + "xref": "paper", + "y": 0.375, + "yanchor": "bottom", + "yref": "paper", + }, + ], + "xaxis": { + "anchor": "y", + "domain": [0.0, 0.45], + "matches": "x3", + "showticklabels": False, + }, + "xaxis2": { + "anchor": "y2", + "domain": [0.55, 1.0], + "matches": "x4", + "showticklabels": False, + }, + "xaxis3": {"anchor": "y3", "domain": [0.0, 0.45]}, + "xaxis4": {"anchor": "y4", "domain": [0.55, 1.0]}, + "yaxis": {"anchor": "x", "domain": [0.625, 1.0]}, + "yaxis2": { + "anchor": "x2", + "domain": [0.625, 1.0], + "matches": "y", + "showticklabels": False, + }, + "yaxis3": {"anchor": "x3", "domain": [0.0, 0.375]}, + "yaxis4": { + "anchor": "x4", + "domain": [0.0, 0.375], + "matches": "y3", + "showticklabels": False, + }, + }, ) - fig = tls.make_subplots(rows=2, cols=2, - subplot_titles=('Title 1', 'Title 2', - 'Title 3', 'Title 4'), - shared_xaxes=True, shared_yaxes=True) + fig = tls.make_subplots( + rows=2, + cols=2, + subplot_titles=("Title 1", "Title 2", "Title 3", "Title 4"), + shared_xaxes=True, + shared_yaxes=True, + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_subplot_titles_shared_axes_all(self): @@ -1777,63 +1295,90 @@ def test_subplot_titles_shared_axes_all(self): expected = Figure( data=Data(), layout={ - 'annotations': [{'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 1', - 'x': 0.225, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 1.0, - 'yanchor': 'bottom', - 'yref': 'paper'}, - {'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 2', - 'x': 0.775, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 1.0, - 'yanchor': 'bottom', - 'yref': 'paper'}, - {'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 3', - 'x': 0.225, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 0.375, - 'yanchor': 'bottom', - 'yref': 'paper'}, - {'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 4', - 'x': 0.775, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 0.375, - 'yanchor': 'bottom', - 'yref': 'paper'}], - 'xaxis': {'anchor': 'y', 'domain': [0.0, 0.45], - 'matches': 'x3', 'showticklabels': False}, - 'xaxis2': {'anchor': 'y2', 'domain': [0.55, 1.0], - 'matches': 'x3', 'showticklabels': False}, - 'xaxis3': {'anchor': 'y3', 'domain': [0.0, 0.45]}, - 'xaxis4': {'anchor': 'y4', 'domain': [0.55, 1.0], - 'matches': 'x3'}, - 'yaxis': {'anchor': 'x', 'domain': [0.625, 1.0], - 'matches': 'y3'}, - 'yaxis2': {'anchor': 'x2', 'domain': [0.625, 1.0], - 'matches': 'y3', 'showticklabels': False}, - 'yaxis3': {'anchor': 'x3', 'domain': [0.0, 0.375]}, - 'yaxis4': {'anchor': 'x4', 'domain': [0.0, 0.375], - 'matches': 'y3', 'showticklabels': False} - } + "annotations": [ + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 1", + "x": 0.225, + "xanchor": "center", + "xref": "paper", + "y": 1.0, + "yanchor": "bottom", + "yref": "paper", + }, + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 2", + "x": 0.775, + "xanchor": "center", + "xref": "paper", + "y": 1.0, + "yanchor": "bottom", + "yref": "paper", + }, + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 3", + "x": 0.225, + "xanchor": "center", + "xref": "paper", + "y": 0.375, + "yanchor": "bottom", + "yref": "paper", + }, + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 4", + "x": 0.775, + "xanchor": "center", + "xref": "paper", + "y": 0.375, + "yanchor": "bottom", + "yref": "paper", + }, + ], + "xaxis": { + "anchor": "y", + "domain": [0.0, 0.45], + "matches": "x3", + "showticklabels": False, + }, + "xaxis2": { + "anchor": "y2", + "domain": [0.55, 1.0], + "matches": "x3", + "showticklabels": False, + }, + "xaxis3": {"anchor": "y3", "domain": [0.0, 0.45]}, + "xaxis4": {"anchor": "y4", "domain": [0.55, 1.0], "matches": "x3"}, + "yaxis": {"anchor": "x", "domain": [0.625, 1.0], "matches": "y3"}, + "yaxis2": { + "anchor": "x2", + "domain": [0.625, 1.0], + "matches": "y3", + "showticklabels": False, + }, + "yaxis3": {"anchor": "x3", "domain": [0.0, 0.375]}, + "yaxis4": { + "anchor": "x4", + "domain": [0.0, 0.375], + "matches": "y3", + "showticklabels": False, + }, + }, ) - fig = tls.make_subplots(rows=2, cols=2, - subplot_titles=('Title 1', 'Title 2', - 'Title 3', 'Title 4'), - shared_xaxes='all', shared_yaxes='all') + fig = tls.make_subplots( + rows=2, + cols=2, + subplot_titles=("Title 1", "Title 2", "Title 3", "Title 4"), + shared_xaxes="all", + shared_yaxes="all", + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_subplot_titles_shared_axes_rows_columns(self): @@ -1841,58 +1386,70 @@ def test_subplot_titles_shared_axes_rows_columns(self): expected = Figure( data=Data(), layout={ - 'annotations': [{'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 1', - 'x': 0.225, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 1.0, - 'yanchor': 'bottom', - 'yref': 'paper'}, - {'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 2', - 'x': 0.775, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 1.0, - 'yanchor': 'bottom', - 'yref': 'paper'}, - {'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 3', - 'x': 0.225, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 0.375, - 'yanchor': 'bottom', - 'yref': 'paper'}, - {'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 4', - 'x': 0.775, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 0.375, - 'yanchor': 'bottom', - 'yref': 'paper'}], - 'xaxis': {'anchor': 'y', 'domain': [0.0, 0.45]}, - 'xaxis2': {'anchor': 'y2', 'domain': [0.55, 1.0], 'matches': 'x'}, - 'xaxis3': {'anchor': 'y3', 'domain': [0.0, 0.45]}, - 'xaxis4': {'anchor': 'y4', 'domain': [0.55, 1.0], 'matches': 'x3'}, - 'yaxis': {'anchor': 'x', 'domain': [0.625, 1.0], 'matches': 'y3'}, - 'yaxis2': {'anchor': 'x2', 'domain': [0.625, 1.0], 'matches': 'y4'}, - 'yaxis3': {'anchor': 'x3', 'domain': [0.0, 0.375]}, - 'yaxis4': {'anchor': 'x4', 'domain': [0.0, 0.375]} - } + "annotations": [ + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 1", + "x": 0.225, + "xanchor": "center", + "xref": "paper", + "y": 1.0, + "yanchor": "bottom", + "yref": "paper", + }, + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 2", + "x": 0.775, + "xanchor": "center", + "xref": "paper", + "y": 1.0, + "yanchor": "bottom", + "yref": "paper", + }, + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 3", + "x": 0.225, + "xanchor": "center", + "xref": "paper", + "y": 0.375, + "yanchor": "bottom", + "yref": "paper", + }, + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 4", + "x": 0.775, + "xanchor": "center", + "xref": "paper", + "y": 0.375, + "yanchor": "bottom", + "yref": "paper", + }, + ], + "xaxis": {"anchor": "y", "domain": [0.0, 0.45]}, + "xaxis2": {"anchor": "y2", "domain": [0.55, 1.0], "matches": "x"}, + "xaxis3": {"anchor": "y3", "domain": [0.0, 0.45]}, + "xaxis4": {"anchor": "y4", "domain": [0.55, 1.0], "matches": "x3"}, + "yaxis": {"anchor": "x", "domain": [0.625, 1.0], "matches": "y3"}, + "yaxis2": {"anchor": "x2", "domain": [0.625, 1.0], "matches": "y4"}, + "yaxis3": {"anchor": "x3", "domain": [0.0, 0.375]}, + "yaxis4": {"anchor": "x4", "domain": [0.0, 0.375]}, + }, ) - fig = tls.make_subplots(rows=2, cols=2, - subplot_titles=('Title 1', 'Title 2', - 'Title 3', 'Title 4'), - shared_xaxes='rows', - shared_yaxes='columns') + fig = tls.make_subplots( + rows=2, + cols=2, + subplot_titles=("Title 1", "Title 2", "Title 3", "Title 4"), + shared_xaxes="rows", + shared_yaxes="columns", + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_subplot_titles_irregular_layout(self): @@ -1900,70 +1457,57 @@ def test_subplot_titles_irregular_layout(self): expected = Figure( data=Data(), layout=Layout( - annotations=Annotations([ - Annotation( - x=0.225, - y=1.0, - xref='paper', - yref='paper', - text='Title 1', - showarrow=False, - font=Font(size=16), - xanchor='center', - yanchor='bottom' - ), - Annotation( - x=0.775, - y=1.0, - xref='paper', - yref='paper', - text='Title 2', - showarrow=False, - font=Font(size=16), - xanchor='center', - yanchor='bottom' - ), - Annotation( - x=0.5, - y=0.375, - xref='paper', - yref='paper', - text='Title 3', - showarrow=False, - font=Font(size=16), - xanchor='center', - yanchor='bottom' - ) - ]), - xaxis1=XAxis( - domain=[0.0, 0.45], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.55, 1.0], - anchor='y2' - ), - xaxis3=XAxis( - domain=[0.0, 1.0], - anchor='y3' - ), - yaxis1=YAxis( - domain=[0.625, 1.0], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.625, 1.0], - anchor='x2' - ), - yaxis3=YAxis( - domain=[0.0, 0.375], - anchor='x3' - ) - ) - ) - fig = tls.make_subplots(rows=2, cols=2, - subplot_titles=('Title 1', 'Title 2', 'Title 3'), - specs=[[{}, {}], [{'colspan': 2}, None]]) + annotations=Annotations( + [ + Annotation( + x=0.225, + y=1.0, + xref="paper", + yref="paper", + text="Title 1", + showarrow=False, + font=Font(size=16), + xanchor="center", + yanchor="bottom", + ), + Annotation( + x=0.775, + y=1.0, + xref="paper", + yref="paper", + text="Title 2", + showarrow=False, + font=Font(size=16), + xanchor="center", + yanchor="bottom", + ), + Annotation( + x=0.5, + y=0.375, + xref="paper", + yref="paper", + text="Title 3", + showarrow=False, + font=Font(size=16), + xanchor="center", + yanchor="bottom", + ), + ] + ), + xaxis1=XAxis(domain=[0.0, 0.45], anchor="y"), + xaxis2=XAxis(domain=[0.55, 1.0], anchor="y2"), + xaxis3=XAxis(domain=[0.0, 1.0], anchor="y3"), + yaxis1=YAxis(domain=[0.625, 1.0], anchor="x"), + yaxis2=YAxis(domain=[0.625, 1.0], anchor="x2"), + yaxis3=YAxis(domain=[0.0, 0.375], anchor="x3"), + ), + ) + fig = tls.make_subplots( + rows=2, + cols=2, + subplot_titles=("Title 1", "Title 2", "Title 3"), + specs=[[{}, {}], [{"colspan": 2}, None]], + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_subplot_titles_insets(self): @@ -1972,39 +1516,30 @@ def test_subplot_titles_insets(self): expected = Figure( data=Data(), layout=Layout( - annotations=Annotations([ - Annotation( - x=0.85, - y=1.0, - xref='paper', - yref='paper', - text='Inset', - showarrow=False, - font=Font(size=16), - xanchor='center', - yanchor='bottom' - ) - ]), - xaxis1=XAxis( - domain=[0.0, 1.0], - anchor='y' - ), - xaxis2=XAxis( - domain=[0.7, 1.0], - anchor='y2' - ), - yaxis1=YAxis( - domain=[0.0, 1.0], - anchor='x' - ), - yaxis2=YAxis( - domain=[0.3, 1.0], - anchor='x2' - ) - ) + annotations=Annotations( + [ + Annotation( + x=0.85, + y=1.0, + xref="paper", + yref="paper", + text="Inset", + showarrow=False, + font=Font(size=16), + xanchor="center", + yanchor="bottom", + ) + ] + ), + xaxis1=XAxis(domain=[0.0, 1.0], anchor="y"), + xaxis2=XAxis(domain=[0.7, 1.0], anchor="y2"), + yaxis1=YAxis(domain=[0.0, 1.0], anchor="x"), + yaxis2=YAxis(domain=[0.3, 1.0], anchor="x2"), + ), + ) + fig = tls.make_subplots( + insets=[{"cell": (1, 1), "l": 0.7, "b": 0.3}], subplot_titles=("", "Inset") ) - fig = tls.make_subplots(insets=[{'cell': (1, 1), 'l': 0.7, 'b': 0.3}], - subplot_titles=("", 'Inset')) self.assertEqual(fig, expected) def test_large_columns_no_errors(self): @@ -2030,64 +1565,83 @@ def test_large_columns_no_errors(self): fig = tls.make_subplots(100, 1, vertical_spacing=v_space) # 3D - fig = tls.make_subplots(100, 1, - vertical_spacing=v_space, - specs=[[{'is_3d': True}] for _ in range(100)]) + fig = tls.make_subplots( + 100, + 1, + vertical_spacing=v_space, + specs=[[{"is_3d": True}] for _ in range(100)], + ) def test_row_width_and_column_width(self): - expected = Figure({ - 'data': [], - 'layout': {'annotations': [{'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 1', - 'x': 0.405, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 1.0, - 'yanchor': 'bottom', - 'yref': 'paper'}, - {'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 2', - 'x': 0.9550000000000001, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 1.0, - 'yanchor': 'bottom', - 'yref': 'paper'}, - {'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 3', - 'x': 0.405, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 0.1875, - 'yanchor': 'bottom', - 'yref': 'paper'}, - {'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 4', - 'x': 0.9550000000000001, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 0.1875, - 'yanchor': 'bottom', - 'yref': 'paper'}], - 'xaxis': {'anchor': 'y', 'domain': [0.0, 0.81]}, - 'xaxis2': {'anchor': 'y2', 'domain': [0.91, 1.0]}, - 'xaxis3': {'anchor': 'y3', 'domain': [0.0, 0.81]}, - 'xaxis4': {'anchor': 'y4', 'domain': [0.91, 1.0]}, - 'yaxis': {'anchor': 'x', 'domain': [0.4375, 1.0]}, - 'yaxis2': {'anchor': 'x2', 'domain': [0.4375, 1.0]}, - 'yaxis3': {'anchor': 'x3', 'domain': [0.0, 0.1875]}, - 'yaxis4': {'anchor': 'x4', 'domain': [0.0, 0.1875]}} - }) - fig = tls.make_subplots(rows=2, cols=2, - subplot_titles=( - 'Title 1', 'Title 2', - 'Title 3', 'Title 4'), - row_heights=[3, 1], column_widths=[9, 1]) + expected = Figure( + { + "data": [], + "layout": { + "annotations": [ + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 1", + "x": 0.405, + "xanchor": "center", + "xref": "paper", + "y": 1.0, + "yanchor": "bottom", + "yref": "paper", + }, + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 2", + "x": 0.9550000000000001, + "xanchor": "center", + "xref": "paper", + "y": 1.0, + "yanchor": "bottom", + "yref": "paper", + }, + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 3", + "x": 0.405, + "xanchor": "center", + "xref": "paper", + "y": 0.1875, + "yanchor": "bottom", + "yref": "paper", + }, + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 4", + "x": 0.9550000000000001, + "xanchor": "center", + "xref": "paper", + "y": 0.1875, + "yanchor": "bottom", + "yref": "paper", + }, + ], + "xaxis": {"anchor": "y", "domain": [0.0, 0.81]}, + "xaxis2": {"anchor": "y2", "domain": [0.91, 1.0]}, + "xaxis3": {"anchor": "y3", "domain": [0.0, 0.81]}, + "xaxis4": {"anchor": "y4", "domain": [0.91, 1.0]}, + "yaxis": {"anchor": "x", "domain": [0.4375, 1.0]}, + "yaxis2": {"anchor": "x2", "domain": [0.4375, 1.0]}, + "yaxis3": {"anchor": "x3", "domain": [0.0, 0.1875]}, + "yaxis4": {"anchor": "x4", "domain": [0.0, 0.1875]}, + }, + } + ) + fig = tls.make_subplots( + rows=2, + cols=2, + subplot_titles=("Title 1", "Title 2", "Title 3", "Title 4"), + row_heights=[3, 1], + column_widths=[9, 1], + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) # Check backward compatible using kwargs @@ -2097,113 +1651,147 @@ def test_row_width_and_column_width(self): # `row_width` because the legacy argument is always applied from # bottom to top, whereas the new row_heights argument follows the # direction specified by start_cell - fig = tls.make_subplots(rows=2, cols=2, - subplot_titles=( - 'Title 1', 'Title 2', - 'Title 3', 'Title 4'), - row_width=[1, 3], column_width=[9, 1]) + fig = tls.make_subplots( + rows=2, + cols=2, + subplot_titles=("Title 1", "Title 2", "Title 3", "Title 4"), + row_width=[1, 3], + column_width=[9, 1], + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_row_width_and_shared_yaxes(self): - expected = Figure({ - 'data': [], - 'layout': {'annotations': [{'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 1', - 'x': 0.225, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 1.0, - 'yanchor': 'bottom', - 'yref': 'paper'}, - {'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 2', - 'x': 0.775, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 1.0, - 'yanchor': 'bottom', - 'yref': 'paper'}, - {'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 3', - 'x': 0.225, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 0.1875, - 'yanchor': 'bottom', - 'yref': 'paper'}, - {'font': {'size': 16}, - 'showarrow': False, - 'text': 'Title 4', - 'x': 0.775, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 0.1875, - 'yanchor': 'bottom', - 'yref': 'paper'}], - 'xaxis': {'anchor': 'y', 'domain': [0.0, 0.45]}, - 'xaxis2': {'anchor': 'y2', 'domain': [0.55, 1.0]}, - 'xaxis3': {'anchor': 'y3', 'domain': [0.0, 0.45]}, - 'xaxis4': {'anchor': 'y4', 'domain': [0.55, 1.0]}, - 'yaxis': {'anchor': 'x', 'domain': [0.4375, 1.0]}, - 'yaxis2': {'anchor': 'x2', 'domain': [0.4375, 1.0], - 'matches': 'y', - 'showticklabels': False}, - 'yaxis3': {'anchor': 'x3', 'domain': [0.0, 0.1875]}, - 'yaxis4': {'anchor': 'x4', 'domain': [0.0, 0.1875], - 'matches': 'y3', - 'showticklabels': False}} - }) - - fig = tls.make_subplots(rows=2, cols=2, row_heights=[3, 1], shared_yaxes=True, - subplot_titles=('Title 1', 'Title 2', 'Title 3', 'Title 4')) + expected = Figure( + { + "data": [], + "layout": { + "annotations": [ + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 1", + "x": 0.225, + "xanchor": "center", + "xref": "paper", + "y": 1.0, + "yanchor": "bottom", + "yref": "paper", + }, + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 2", + "x": 0.775, + "xanchor": "center", + "xref": "paper", + "y": 1.0, + "yanchor": "bottom", + "yref": "paper", + }, + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 3", + "x": 0.225, + "xanchor": "center", + "xref": "paper", + "y": 0.1875, + "yanchor": "bottom", + "yref": "paper", + }, + { + "font": {"size": 16}, + "showarrow": False, + "text": "Title 4", + "x": 0.775, + "xanchor": "center", + "xref": "paper", + "y": 0.1875, + "yanchor": "bottom", + "yref": "paper", + }, + ], + "xaxis": {"anchor": "y", "domain": [0.0, 0.45]}, + "xaxis2": {"anchor": "y2", "domain": [0.55, 1.0]}, + "xaxis3": {"anchor": "y3", "domain": [0.0, 0.45]}, + "xaxis4": {"anchor": "y4", "domain": [0.55, 1.0]}, + "yaxis": {"anchor": "x", "domain": [0.4375, 1.0]}, + "yaxis2": { + "anchor": "x2", + "domain": [0.4375, 1.0], + "matches": "y", + "showticklabels": False, + }, + "yaxis3": {"anchor": "x3", "domain": [0.0, 0.1875]}, + "yaxis4": { + "anchor": "x4", + "domain": [0.0, 0.1875], + "matches": "y3", + "showticklabels": False, + }, + }, + } + ) + + fig = tls.make_subplots( + rows=2, + cols=2, + row_heights=[3, 1], + shared_yaxes=True, + subplot_titles=("Title 1", "Title 2", "Title 3", "Title 4"), + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_secondary_y(self): - fig = subplots.make_subplots( - rows=1, cols=1, specs=[[{'secondary_y': True}]]) + fig = subplots.make_subplots(rows=1, cols=1, specs=[[{"secondary_y": True}]]) - expected = Figure({ - 'data': [], - 'layout': {'xaxis': {'anchor': 'y', 'domain': [0.0, 0.94]}, - 'yaxis': {'anchor': 'x', 'domain': [0.0, 1.0]}, - 'yaxis2': {'anchor': 'x', - 'overlaying': 'y', - 'side': 'right'}} - }) + expected = Figure( + { + "data": [], + "layout": { + "xaxis": {"anchor": "y", "domain": [0.0, 0.94]}, + "yaxis": {"anchor": "x", "domain": [0.0, 1.0]}, + "yaxis2": {"anchor": "x", "overlaying": "y", "side": "right"}, + }, + } + ) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) def test_secondary_y_traces(self): - fig = subplots.make_subplots( - rows=1, cols=1, specs=[[{'secondary_y': True}]]) + fig = subplots.make_subplots(rows=1, cols=1, specs=[[{"secondary_y": True}]]) - fig.add_scatter(y=[1, 3, 2], name='First', row=1, col=1) - fig.add_scatter( - y=[2, 1, 3], name='second', row=1, col=1, secondary_y=True) + fig.add_scatter(y=[1, 3, 2], name="First", row=1, col=1) + fig.add_scatter(y=[2, 1, 3], name="second", row=1, col=1, secondary_y=True) fig.update_traces(uid=None) - expected = Figure({ - 'data': [{'name': 'First', - 'type': 'scatter', - 'y': [1, 3, 2], - 'xaxis': 'x', - 'yaxis': 'y'}, - {'name': 'second', - 'type': 'scatter', - 'y': [2, 1, 3], - 'xaxis': 'x', - 'yaxis': 'y2'}], - 'layout': {'xaxis': {'anchor': 'y', 'domain': [0.0, 0.94]}, - 'yaxis': {'anchor': 'x', 'domain': [0.0, 1.0]}, - 'yaxis2': {'anchor': 'x', - 'overlaying': 'y', - 'side': 'right'}} - }) + expected = Figure( + { + "data": [ + { + "name": "First", + "type": "scatter", + "y": [1, 3, 2], + "xaxis": "x", + "yaxis": "y", + }, + { + "name": "second", + "type": "scatter", + "y": [2, 1, 3], + "xaxis": "x", + "yaxis": "y2", + }, + ], + "layout": { + "xaxis": {"anchor": "y", "domain": [0.0, 0.94]}, + "yaxis": {"anchor": "x", "domain": [0.0, 1.0]}, + "yaxis2": {"anchor": "x", "overlaying": "y", "side": "right"}, + }, + } + ) expected.update_traces(uid=None) self.assertEqual(fig.to_plotly_json(), expected.to_plotly_json()) @@ -2212,69 +1800,108 @@ def test_secondary_y_subplots(self): fig = subplots.make_subplots( rows=2, cols=2, - specs=[[{'secondary_y': True}, {'secondary_y': True}], - [{'secondary_y': True}, {'secondary_y': True}]] + specs=[ + [{"secondary_y": True}, {"secondary_y": True}], + [{"secondary_y": True}, {"secondary_y": True}], + ], ) - fig.add_scatter(y=[1, 3, 2], name='First', row=1, col=1) - fig.add_scatter( - y=[2, 1, 3], name='Second', row=1, col=1, secondary_y=True) + fig.add_scatter(y=[1, 3, 2], name="First", row=1, col=1) + fig.add_scatter(y=[2, 1, 3], name="Second", row=1, col=1, secondary_y=True) - fig.add_scatter(y=[4, 3, 2], name='Third', row=1, col=2) - fig.add_scatter( - y=[8, 1, 3], name='Forth', row=1, col=2, secondary_y=True) + fig.add_scatter(y=[4, 3, 2], name="Third", row=1, col=2) + fig.add_scatter(y=[8, 1, 3], name="Forth", row=1, col=2, secondary_y=True) - fig.add_scatter(y=[0, 2, 4], name='Fifth', row=2, col=1) - fig.add_scatter( - y=[2, 1, 3], name='Sixth', row=2, col=1, secondary_y=True) + fig.add_scatter(y=[0, 2, 4], name="Fifth", row=2, col=1) + fig.add_scatter(y=[2, 1, 3], name="Sixth", row=2, col=1, secondary_y=True) - fig.add_scatter(y=[2, 4, 0], name='Fifth', row=2, col=2) - fig.add_scatter( - y=[2, 3, 6], name='Sixth', row=2, col=2, secondary_y=True) + fig.add_scatter(y=[2, 4, 0], name="Fifth", row=2, col=2) + fig.add_scatter(y=[2, 3, 6], name="Sixth", row=2, col=2, secondary_y=True) fig.update_traces(uid=None) - expected = Figure({ - 'data': [ - {'name': 'First', 'type': 'scatter', - 'xaxis': 'x', 'y': [1, 3, 2], 'yaxis': 'y'}, - {'name': 'Second', 'type': 'scatter', - 'xaxis': 'x', 'y': [2, 1, 3], 'yaxis': 'y2'}, - {'name': 'Third', 'type': 'scatter', - 'xaxis': 'x2', 'y': [4, 3, 2], 'yaxis': 'y3'}, - {'name': 'Forth', 'type': 'scatter', - 'xaxis': 'x2', 'y': [8, 1, 3], 'yaxis': 'y4'}, - {'name': 'Fifth', 'type': 'scatter', - 'xaxis': 'x3', 'y': [0, 2, 4], 'yaxis': 'y5'}, - {'name': 'Sixth', 'type': 'scatter', - 'xaxis': 'x3', 'y': [2, 1, 3], 'yaxis': 'y6'}, - {'name': 'Fifth', 'type': 'scatter', - 'xaxis': 'x4', 'y': [2, 4, 0], 'yaxis': 'y7'}, - {'name': 'Sixth', 'type': 'scatter', - 'xaxis': 'x4', 'y': [2, 3, 6], 'yaxis': 'y8'}], - 'layout': { - 'xaxis': {'anchor': 'y', 'domain': [0.0, 0.37]}, - 'xaxis2': {'anchor': 'y3', - 'domain': [0.5700000000000001, 0.9400000000000001]}, - 'xaxis3': {'anchor': 'y5', 'domain': [0.0, 0.37]}, - 'xaxis4': {'anchor': 'y7', - 'domain': [0.5700000000000001, 0.9400000000000001]}, - 'yaxis': {'anchor': 'x', 'domain': [0.575, 1.0]}, - 'yaxis2': {'anchor': 'x', - 'overlaying': 'y', 'side': 'right'}, - 'yaxis3': {'anchor': 'x2', - 'domain': [0.575, 1.0]}, - 'yaxis4': {'anchor': 'x2', - 'overlaying': 'y3', 'side': 'right'}, - 'yaxis5': {'anchor': 'x3', - 'domain': [0.0, 0.425]}, - 'yaxis6': {'anchor': 'x3', - 'overlaying': 'y5', 'side': 'right'}, - 'yaxis7': {'anchor': 'x4', - 'domain': [0.0, 0.425]}, - 'yaxis8': {'anchor': 'x4', - 'overlaying': 'y7', 'side': 'right'}} - }) + expected = Figure( + { + "data": [ + { + "name": "First", + "type": "scatter", + "xaxis": "x", + "y": [1, 3, 2], + "yaxis": "y", + }, + { + "name": "Second", + "type": "scatter", + "xaxis": "x", + "y": [2, 1, 3], + "yaxis": "y2", + }, + { + "name": "Third", + "type": "scatter", + "xaxis": "x2", + "y": [4, 3, 2], + "yaxis": "y3", + }, + { + "name": "Forth", + "type": "scatter", + "xaxis": "x2", + "y": [8, 1, 3], + "yaxis": "y4", + }, + { + "name": "Fifth", + "type": "scatter", + "xaxis": "x3", + "y": [0, 2, 4], + "yaxis": "y5", + }, + { + "name": "Sixth", + "type": "scatter", + "xaxis": "x3", + "y": [2, 1, 3], + "yaxis": "y6", + }, + { + "name": "Fifth", + "type": "scatter", + "xaxis": "x4", + "y": [2, 4, 0], + "yaxis": "y7", + }, + { + "name": "Sixth", + "type": "scatter", + "xaxis": "x4", + "y": [2, 3, 6], + "yaxis": "y8", + }, + ], + "layout": { + "xaxis": {"anchor": "y", "domain": [0.0, 0.37]}, + "xaxis2": { + "anchor": "y3", + "domain": [0.5700000000000001, 0.9400000000000001], + }, + "xaxis3": {"anchor": "y5", "domain": [0.0, 0.37]}, + "xaxis4": { + "anchor": "y7", + "domain": [0.5700000000000001, 0.9400000000000001], + }, + "yaxis": {"anchor": "x", "domain": [0.575, 1.0]}, + "yaxis2": {"anchor": "x", "overlaying": "y", "side": "right"}, + "yaxis3": {"anchor": "x2", "domain": [0.575, 1.0]}, + "yaxis4": {"anchor": "x2", "overlaying": "y3", "side": "right"}, + "yaxis5": {"anchor": "x3", "domain": [0.0, 0.425]}, + "yaxis6": {"anchor": "x3", "overlaying": "y5", "side": "right"}, + "yaxis7": {"anchor": "x4", "domain": [0.0, 0.425]}, + "yaxis8": {"anchor": "x4", "overlaying": "y7", "side": "right"}, + }, + } + ) expected.update_traces(uid=None) diff --git a/packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_layout.py b/packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_layout.py index 1b152191c04..595aa6ae8b0 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_layout.py +++ b/packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_layout.py @@ -3,7 +3,6 @@ class TestUpdateLayout(TestCase): - def test_update_layout_kwargs(self): # Create initial figure fig = go.Figure() @@ -12,8 +11,8 @@ def test_update_layout_kwargs(self): # Grab copy of original figure orig_fig = go.Figure(fig) - fig.update_layout(title_font_family='Courier New') - orig_fig.layout.update(title_font_family='Courier New') + fig.update_layout(title_font_family="Courier New") + orig_fig.layout.update(title_font_family="Courier New") self.assertEqual(fig, orig_fig) def test_update_layout_dict(self): @@ -24,6 +23,6 @@ def test_update_layout_dict(self): # Grab copy of original figure orig_fig = go.Figure(fig) - fig.update_layout(dict(title=dict(font=dict(family='Courier New')))) - orig_fig.layout.update(title_font_family='Courier New') + fig.update_layout(dict(title=dict(font=dict(family="Courier New")))) + orig_fig.layout.update(title_font_family="Courier New") self.assertEqual(fig, orig_fig) diff --git a/packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_subplots.py b/packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_subplots.py index 6256188f851..19f81db2e8e 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_subplots.py +++ b/packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_subplots.py @@ -9,48 +9,54 @@ class TestSelectForEachUpdateSubplots(TestCase): - def setUp(self): fig = make_subplots( rows=3, cols=3, - specs=[[{}, {'type': 'scene'}, {}], - [{'secondary_y': True}, - {'type': 'polar'}, - {'type': 'polar'}], - [{'type': 'xy', 'colspan': 2}, None, {'type': 'ternary'}]] - ).update(layout={'height': 800}) - - fig.layout.xaxis.title.text = 'A' - fig.layout.xaxis2.title.text = 'A' - fig.layout.xaxis3.title.text = 'B' - fig.layout.xaxis4.title.text = 'B' - - fig.layout.yaxis.title.text = 'A' - fig.layout.yaxis2.title.text = 'B' - fig.layout.yaxis3.title.text = 'A' - fig.layout.yaxis4.title.text = 'B' + specs=[ + [{}, {"type": "scene"}, {}], + [{"secondary_y": True}, {"type": "polar"}, {"type": "polar"}], + [{"type": "xy", "colspan": 2}, None, {"type": "ternary"}], + ], + ).update(layout={"height": 800}) + + fig.layout.xaxis.title.text = "A" + fig.layout.xaxis2.title.text = "A" + fig.layout.xaxis3.title.text = "B" + fig.layout.xaxis4.title.text = "B" + + fig.layout.yaxis.title.text = "A" + fig.layout.yaxis2.title.text = "B" + fig.layout.yaxis3.title.text = "A" + fig.layout.yaxis4.title.text = "B" fig.layout.polar.angularaxis.rotation = 45 fig.layout.polar2.angularaxis.rotation = 45 - fig.layout.polar.radialaxis.title.text = 'A' - fig.layout.polar2.radialaxis.title.text = 'B' + fig.layout.polar.radialaxis.title.text = "A" + fig.layout.polar2.radialaxis.title.text = "B" - fig.layout.scene.xaxis.title.text = 'A' - fig.layout.scene.yaxis.title.text = 'B' + fig.layout.scene.xaxis.title.text = "A" + fig.layout.scene.yaxis.title.text = "B" - fig.layout.ternary.aaxis.title.text = 'A' + fig.layout.ternary.aaxis.title.text = "A" self.fig = fig self.fig_no_grid = go.Figure(self.fig.to_dict()) def assert_select_subplots( - self, subplot_type, subplots_name, expected_nums, - selector=None, row=None, col=None, secondary_y=None, - test_no_grid=False): - - select_fn = getattr(Figure, 'select_' + subplots_name) - for_each_fn = getattr(Figure, 'for_each_' + subplot_type) + self, + subplot_type, + subplots_name, + expected_nums, + selector=None, + row=None, + col=None, + secondary_y=None, + test_no_grid=False, + ): + + select_fn = getattr(Figure, "select_" + subplots_name) + for_each_fn = getattr(Figure, "for_each_" + subplot_type) if secondary_y is not None: sec_y_args = dict(secondary_y=secondary_y) @@ -60,253 +66,261 @@ def assert_select_subplots( def check_select(fig): # Check select_* subplots = list( - select_fn(fig, selector=selector, - row=row, col=col, **sec_y_args)) + select_fn(fig, selector=selector, row=row, col=col, **sec_y_args) + ) expected_keys = [ - subplot_type + (str(cnt) if cnt > 1 else '') - for cnt in expected_nums + subplot_type + (str(cnt) if cnt > 1 else "") for cnt in expected_nums ] self.assertEqual(len(subplots), len(expected_keys)) - self.assertTrue(all( - v1 is fig.layout[k] - for v1, k in zip(subplots, expected_keys))) + self.assertTrue( + all(v1 is fig.layout[k] for v1, k in zip(subplots, expected_keys)) + ) # Check for_each_* subplots = [] res = for_each_fn( - fig, lambda obj: subplots.append(obj), - selector=selector, row=row, col=col, **sec_y_args) + fig, + lambda obj: subplots.append(obj), + selector=selector, + row=row, + col=col, + **sec_y_args + ) self.assertIs(res, fig) self.assertEqual(len(subplots), len(expected_keys)) - self.assertTrue(all( - v1 is fig.layout[k] - for v1, k in zip(subplots, expected_keys))) + self.assertTrue( + all(v1 is fig.layout[k] for v1, k in zip(subplots, expected_keys)) + ) check_select(self.fig) if test_no_grid: check_select(self.fig_no_grid) def test_select_by_type(self): - self.assert_select_subplots( - 'xaxis', 'xaxes', [1, 2, 3, 4], test_no_grid=True) + self.assert_select_subplots("xaxis", "xaxes", [1, 2, 3, 4], test_no_grid=True) self.assert_select_subplots( - 'yaxis', 'yaxes', [1, 2, 3, 4, 5], test_no_grid=True) + "yaxis", "yaxes", [1, 2, 3, 4, 5], test_no_grid=True + ) - self.assert_select_subplots( - 'scene', 'scenes', [1], test_no_grid=True) + self.assert_select_subplots("scene", "scenes", [1], test_no_grid=True) - self.assert_select_subplots( - 'polar', 'polars', [1, 2], test_no_grid=True) + self.assert_select_subplots("polar", "polars", [1, 2], test_no_grid=True) - self.assert_select_subplots( - 'ternary', 'ternaries', [1], test_no_grid=True) + self.assert_select_subplots("ternary", "ternaries", [1], test_no_grid=True) # No 'geo' or 'mapbox' subplots initialized, but the first subplot # object is always present - self.assert_select_subplots( - 'geo', 'geos', [1], test_no_grid=True) + self.assert_select_subplots("geo", "geos", [1], test_no_grid=True) - self.assert_select_subplots( - 'mapbox', 'mapboxes', [1], test_no_grid=True) + self.assert_select_subplots("mapbox", "mapboxes", [1], test_no_grid=True) def test_select_by_type_and_grid(self): - self.assert_select_subplots( - 'xaxis', 'xaxes', [1, 2], row=1) + self.assert_select_subplots("xaxis", "xaxes", [1, 2], row=1) - self.assert_select_subplots( - 'xaxis', 'xaxes', [1, 3, 4], col=1) + self.assert_select_subplots("xaxis", "xaxes", [1, 3, 4], col=1) - self.assert_select_subplots( - 'xaxis', 'xaxes', [2], col=3) + self.assert_select_subplots("xaxis", "xaxes", [2], col=3) - self.assert_select_subplots( - 'xaxis', 'xaxes', [4], row=3, col=1) + self.assert_select_subplots("xaxis", "xaxes", [4], row=3, col=1) - self.assert_select_subplots( - 'xaxis', 'xaxes', [], row=2, col=2) + self.assert_select_subplots("xaxis", "xaxes", [], row=2, col=2) def test_select_by_secondary_y(self): - self.assert_select_subplots( - 'yaxis', 'yaxes', [4], secondary_y=True) + self.assert_select_subplots("yaxis", "yaxes", [4], secondary_y=True) - self.assert_select_subplots( - 'yaxis', 'yaxes', [1, 2, 3, 5], secondary_y=False) + self.assert_select_subplots("yaxis", "yaxes", [1, 2, 3, 5], secondary_y=False) - self.assert_select_subplots( - 'yaxis', 'yaxes', [4], col=1, secondary_y=True) + self.assert_select_subplots("yaxis", "yaxes", [4], col=1, secondary_y=True) - self.assert_select_subplots( - 'yaxis', 'yaxes', [], col=3, secondary_y=True) + self.assert_select_subplots("yaxis", "yaxes", [], col=3, secondary_y=True) def test_select_by_type_and_selector(self): # xaxis self.assert_select_subplots( - 'xaxis', 'xaxes', [1, 2], - selector={'title.text': 'A'}, test_no_grid=True) + "xaxis", "xaxes", [1, 2], selector={"title.text": "A"}, test_no_grid=True + ) self.assert_select_subplots( - 'xaxis', 'xaxes', [3, 4], - selector={'title.text': 'B'}, test_no_grid=True) + "xaxis", "xaxes", [3, 4], selector={"title.text": "B"}, test_no_grid=True + ) self.assert_select_subplots( - 'xaxis', 'xaxes', [], - selector={'title.text': 'C'}, test_no_grid=True) + "xaxis", "xaxes", [], selector={"title.text": "C"}, test_no_grid=True + ) # yaxis self.assert_select_subplots( - 'yaxis', 'yaxes', [1, 3], - selector={'title.text': 'A'}, test_no_grid=True) + "yaxis", "yaxes", [1, 3], selector={"title.text": "A"}, test_no_grid=True + ) self.assert_select_subplots( - 'yaxis', 'yaxes', [2, 4], - selector={'title.text': 'B'}, test_no_grid=True) + "yaxis", "yaxes", [2, 4], selector={"title.text": "B"}, test_no_grid=True + ) self.assert_select_subplots( - 'yaxis', 'yaxes', [], - selector={'title.text': 'C'}, test_no_grid=True) + "yaxis", "yaxes", [], selector={"title.text": "C"}, test_no_grid=True + ) # scene self.assert_select_subplots( - 'scene', 'scenes', [1], - selector={'xaxis.title.text': 'A'}, test_no_grid=True) + "scene", + "scenes", + [1], + selector={"xaxis.title.text": "A"}, + test_no_grid=True, + ) self.assert_select_subplots( - 'scene', 'scenes', [1], - selector={'xaxis.title.text': 'A', - 'yaxis.title.text': 'B'}, - test_no_grid=True) + "scene", + "scenes", + [1], + selector={"xaxis.title.text": "A", "yaxis.title.text": "B"}, + test_no_grid=True, + ) self.assert_select_subplots( - 'scene', 'scenes', [], - selector={'xaxis.title.text': 'A', - 'yaxis.title.text': 'C'}, - test_no_grid=True) + "scene", + "scenes", + [], + selector={"xaxis.title.text": "A", "yaxis.title.text": "C"}, + test_no_grid=True, + ) # polar self.assert_select_subplots( - 'polar', 'polars', [1, 2], - selector={'angularaxis.rotation': 45}, - test_no_grid=True) + "polar", + "polars", + [1, 2], + selector={"angularaxis.rotation": 45}, + test_no_grid=True, + ) self.assert_select_subplots( - 'polar', 'polars', [2], - selector={'angularaxis.rotation': 45, - 'radialaxis_title_text': 'B'}, - test_no_grid=True) + "polar", + "polars", + [2], + selector={"angularaxis.rotation": 45, "radialaxis_title_text": "B"}, + test_no_grid=True, + ) self.assert_select_subplots( - 'polar', 'polars', [], - selector={'angularaxis.rotation': 45, - 'radialaxis_title_text': 'C'}, - test_no_grid=True) + "polar", + "polars", + [], + selector={"angularaxis.rotation": 45, "radialaxis_title_text": "C"}, + test_no_grid=True, + ) # ternary self.assert_select_subplots( - 'ternary', 'ternaries', [1], - selector={'aaxis.title.text': 'A'}, - test_no_grid=True) + "ternary", + "ternaries", + [1], + selector={"aaxis.title.text": "A"}, + test_no_grid=True, + ) self.assert_select_subplots( - 'ternary', 'ternaries', [], - selector={'aaxis.title.text': 'C'}, - test_no_grid=True) + "ternary", + "ternaries", + [], + selector={"aaxis.title.text": "C"}, + test_no_grid=True, + ) self.assert_select_subplots( - 'ternary', 'ternaries', [], - selector={'aaxis.bogus.text': 'A'}, - test_no_grid=True) + "ternary", + "ternaries", + [], + selector={"aaxis.bogus.text": "A"}, + test_no_grid=True, + ) # No 'geo' or 'mapbox' subplots initialized, but the first subplot # object is always present self.assert_select_subplots( - 'geo', 'geos', [], - selector={'bgcolor': 'blue'}, - test_no_grid=True) + "geo", "geos", [], selector={"bgcolor": "blue"}, test_no_grid=True + ) self.assert_select_subplots( - 'geo', 'geos', [], - selector={'bogus': 'blue'}, - test_no_grid=True) + "geo", "geos", [], selector={"bogus": "blue"}, test_no_grid=True + ) self.assert_select_subplots( - 'mapbox', 'mapboxes', [], - selector={'pitch': 45}, - test_no_grid=True) + "mapbox", "mapboxes", [], selector={"pitch": 45}, test_no_grid=True + ) def test_select_by_type_and_grid_and_selector(self): # xaxis self.assert_select_subplots( - 'xaxis', 'xaxes', [1, 2], - row=1, - selector={'title.text': 'A'}) + "xaxis", "xaxes", [1, 2], row=1, selector={"title.text": "A"} + ) self.assert_select_subplots( - 'xaxis', 'xaxes', [1], - col=1, - selector={'title.text': 'A'}) + "xaxis", "xaxes", [1], col=1, selector={"title.text": "A"} + ) self.assert_select_subplots( - 'xaxis', 'xaxes', [], - col=2, - selector={'title.text': 'A'}) + "xaxis", "xaxes", [], col=2, selector={"title.text": "A"} + ) self.assert_select_subplots( - 'xaxis', 'xaxes', [3, 4], - col=1, - selector={'title.text': 'B'}) + "xaxis", "xaxes", [3, 4], col=1, selector={"title.text": "B"} + ) self.assert_select_subplots( - 'xaxis', 'xaxes', [3], - row=2, - selector={'title.text': 'B'}) + "xaxis", "xaxes", [3], row=2, selector={"title.text": "B"} + ) self.assert_select_subplots( - 'xaxis', 'xaxes', [4], - row=3, col=1, - selector={'title.text': 'B'}) + "xaxis", "xaxes", [4], row=3, col=1, selector={"title.text": "B"} + ) # yaxis self.assert_select_subplots( - 'yaxis', 'yaxes', [1, 3], - col=1, - selector={'title.text': 'A'}) + "yaxis", "yaxes", [1, 3], col=1, selector={"title.text": "A"} + ) self.assert_select_subplots( - 'yaxis', 'yaxes', [4], - col=1, - selector={'title.text': 'B'}) + "yaxis", "yaxes", [4], col=1, selector={"title.text": "B"} + ) # polar self.assert_select_subplots( - 'polar', 'polars', [1, 2], - row=2, - selector={'angularaxis.rotation': 45}) + "polar", "polars", [1, 2], row=2, selector={"angularaxis.rotation": 45} + ) self.assert_select_subplots( - 'polar', 'polars', [1], - col=2, - selector={'angularaxis.rotation': 45}) + "polar", "polars", [1], col=2, selector={"angularaxis.rotation": 45} + ) self.assert_select_subplots( - 'polar', 'polars', [2], - row=2, col=3, - selector={'angularaxis.rotation': 45}) + "polar", "polars", [2], row=2, col=3, selector={"angularaxis.rotation": 45} + ) self.assert_select_subplots( - 'polar', 'polars', [], - row=2, col=3, - selector={'angularaxis.rotation': 0}) + "polar", "polars", [], row=2, col=3, selector={"angularaxis.rotation": 0} + ) def assert_update_subplots( - self, subplot_type, subplots_name, expected_nums, patch=None, - selector=None, row=None, col=None, secondary_y=None, - test_no_grid=False, **kwargs): - - update_fn = getattr(Figure, 'update_' + subplots_name) + self, + subplot_type, + subplots_name, + expected_nums, + patch=None, + selector=None, + row=None, + col=None, + secondary_y=None, + test_no_grid=False, + **kwargs + ): + + update_fn = getattr(Figure, "update_" + subplots_name) if secondary_y is not None: secy_kwargs = dict(secondary_y=secondary_y) @@ -321,15 +335,19 @@ def check_update(fig): # perform update_* update_res = update_fn( - fig, patch, selector=selector, row=row, col=col, - **dict(kwargs, **secy_kwargs)) + fig, + patch, + selector=selector, + row=row, + col=col, + **dict(kwargs, **secy_kwargs) + ) self.assertIs(update_res, fig) # Build expected layout keys expected_keys = [ - subplot_type + (str(cnt) if cnt > 1 else '') - for cnt in expected_nums + subplot_type + (str(cnt) if cnt > 1 else "") for cnt in expected_nums ] # Iterate over all layout keys @@ -349,166 +367,199 @@ def check_update(fig): def test_update_by_type(self): self.assert_update_subplots( - 'xaxis', 'xaxes', [1, 2, 3, 4], - {'title.font.family': 'Rockwell'}, - test_no_grid=True) + "xaxis", + "xaxes", + [1, 2, 3, 4], + {"title.font.family": "Rockwell"}, + test_no_grid=True, + ) self.assert_update_subplots( - 'yaxis', 'yaxes', [1, 2, 3, 4, 5], - {'range': [5, 10]}, - test_no_grid=True) + "yaxis", "yaxes", [1, 2, 3, 4, 5], {"range": [5, 10]}, test_no_grid=True + ) self.assert_update_subplots( - 'scene', 'scenes', [1], - {'zaxis.title.text': 'Z-AXIS'}, - test_no_grid=True) + "scene", "scenes", [1], {"zaxis.title.text": "Z-AXIS"}, test_no_grid=True + ) self.assert_update_subplots( - 'polar', 'polars', [1, 2], - {'angularaxis.rotation': 15}, - test_no_grid=True) + "polar", "polars", [1, 2], {"angularaxis.rotation": 15}, test_no_grid=True + ) self.assert_update_subplots( - 'ternary', 'ternaries', [1], - {'aaxis.title.font.family': 'Rockwell'}, - test_no_grid=True) + "ternary", + "ternaries", + [1], + {"aaxis.title.font.family": "Rockwell"}, + test_no_grid=True, + ) # No 'geo' or 'mapbox' subplots initialized, but the first subplot # object is always present self.assert_update_subplots( - 'geo', 'geos', [1], - {'bgcolor': 'purple'}, - test_no_grid=True) + "geo", "geos", [1], {"bgcolor": "purple"}, test_no_grid=True + ) self.assert_update_subplots( - 'mapbox', 'mapboxes', [1], - {'pitch': 99}, - test_no_grid=True) + "mapbox", "mapboxes", [1], {"pitch": 99}, test_no_grid=True + ) def test_update_by_type_and_grid(self): self.assert_update_subplots( - 'xaxis', 'xaxes', [1, 3, 4], - {'title.font.family': 'Rockwell'}, - col=1) + "xaxis", "xaxes", [1, 3, 4], {"title.font.family": "Rockwell"}, col=1 + ) self.assert_update_subplots( - 'xaxis', 'xaxes', [1, 2], - {'title.font.family': 'Rockwell'}, - row=1) + "xaxis", "xaxes", [1, 2], {"title.font.family": "Rockwell"}, row=1 + ) self.assert_update_subplots( - 'xaxis', 'xaxes', [1], - {'title.font.family': 'Rockwell'}, - row=1, - col=1) + "xaxis", "xaxes", [1], {"title.font.family": "Rockwell"}, row=1, col=1 + ) self.assert_update_subplots( - 'polar', 'polars', [1, 2], - {'angularaxis.rotation': 15}, - row=2) + "polar", "polars", [1, 2], {"angularaxis.rotation": 15}, row=2 + ) self.assert_update_subplots( - 'polar', 'polars', [1], - {'angularaxis.rotation': 15}, - col=2) + "polar", "polars", [1], {"angularaxis.rotation": 15}, col=2 + ) self.assert_update_subplots( - 'polar', 'polars', [2], - {'angularaxis.rotation': 15}, - row=2, - col=3) + "polar", "polars", [2], {"angularaxis.rotation": 15}, row=2, col=3 + ) def test_update_by_secondary_y(self): self.assert_update_subplots( - 'yaxis', 'yaxes', [4], - {'range': [5, 10]}, - secondary_y=True) + "yaxis", "yaxes", [4], {"range": [5, 10]}, secondary_y=True + ) self.assert_update_subplots( - 'yaxis', 'yaxes', [1, 2, 3, 5], - {'range': [5, 10]}, - secondary_y=False) + "yaxis", "yaxes", [1, 2, 3, 5], {"range": [5, 10]}, secondary_y=False + ) def test_update_by_type_and_grid_and_selector(self): # xaxis self.assert_update_subplots( - 'xaxis', 'xaxes', [1, 2], - {'title.font.family': 'Rockwell'}, + "xaxis", + "xaxes", + [1, 2], + {"title.font.family": "Rockwell"}, row=1, - selector={'title.text': 'A'}) + selector={"title.text": "A"}, + ) self.assert_update_subplots( - 'xaxis', 'xaxes', [1], - {'title.font.family': 'Rockwell'}, + "xaxis", + "xaxes", + [1], + {"title.font.family": "Rockwell"}, col=1, - selector={'title.text': 'A'}) + selector={"title.text": "A"}, + ) self.assert_update_subplots( - 'xaxis', 'xaxes', [], - {'title.font.family': 'Rockwell'}, + "xaxis", + "xaxes", + [], + {"title.font.family": "Rockwell"}, col=2, - selector={'title.text': 'A'}) + selector={"title.text": "A"}, + ) self.assert_update_subplots( - 'xaxis', 'xaxes', [3, 4], - {'title.font.family': 'Rockwell'}, + "xaxis", + "xaxes", + [3, 4], + {"title.font.family": "Rockwell"}, col=1, - selector={'title.text': 'B'}) + selector={"title.text": "B"}, + ) self.assert_update_subplots( - 'xaxis', 'xaxes', [3], - {'title.font.family': 'Rockwell'}, + "xaxis", + "xaxes", + [3], + {"title.font.family": "Rockwell"}, row=2, - selector={'title.text': 'B'}) + selector={"title.text": "B"}, + ) self.assert_update_subplots( - 'xaxis', 'xaxes', [4], - {'title.font.family': 'Rockwell'}, - row=3, col=1, - selector={'title.text': 'B'}) + "xaxis", + "xaxes", + [4], + {"title.font.family": "Rockwell"}, + row=3, + col=1, + selector={"title.text": "B"}, + ) # yaxis self.assert_update_subplots( - 'yaxis', 'yaxes', [1, 3], - {'title.font.family': 'Rockwell'}, + "yaxis", + "yaxes", + [1, 3], + {"title.font.family": "Rockwell"}, col=1, - selector={'title.text': 'A'}) + selector={"title.text": "A"}, + ) self.assert_update_subplots( - 'yaxis', 'yaxes', [4], - {'title.font.family': 'Rockwell'}, + "yaxis", + "yaxes", + [4], + {"title.font.family": "Rockwell"}, col=1, - selector={'title.text': 'B'}) + selector={"title.text": "B"}, + ) # polar self.assert_update_subplots( - 'polar', 'polars', [1, 2], - {'radialaxis.title.font.family': 'Rockwell'}, + "polar", + "polars", + [1, 2], + {"radialaxis.title.font.family": "Rockwell"}, row=2, - selector={'angularaxis.rotation': 45}) + selector={"angularaxis.rotation": 45}, + ) self.assert_update_subplots( - 'polar', 'polars', [1], - {'radialaxis.title.font.family': 'Rockwell'}, + "polar", + "polars", + [1], + {"radialaxis.title.font.family": "Rockwell"}, col=2, - selector={'angularaxis.rotation': 45}) + selector={"angularaxis.rotation": 45}, + ) self.assert_update_subplots( - 'polar', 'polars', [2], - {'radialaxis.title.font.family': 'Rockwell'}, - row=2, col=3, - selector={'angularaxis.rotation': 45}) + "polar", + "polars", + [2], + {"radialaxis.title.font.family": "Rockwell"}, + row=2, + col=3, + selector={"angularaxis.rotation": 45}, + ) self.assert_update_subplots( - 'polar', 'polars', [], - {'radialaxis.title.font.family': 'Rockwell'}, - row=2, col=3, - selector={'angularaxis.rotation': 0}) + "polar", + "polars", + [], + {"radialaxis.title.font.family": "Rockwell"}, + row=2, + col=3, + selector={"angularaxis.rotation": 0}, + ) # kwargs self.assert_update_subplots( - 'xaxis', 'xaxes', [1, 2], - title_font_family='Courier', - title_font_color='yellow', + "xaxis", + "xaxes", + [1, 2], + title_font_family="Courier", + title_font_color="yellow", row=1, - selector={'title.text': 'A'}) + selector={"title.text": "A"}, + ) diff --git a/packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_traces.py b/packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_traces.py index 2b395e460e9..3bd16adac27 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_traces.py +++ b/packages/python/plotly/plotly/tests/test_core/test_update_objects/test_update_traces.py @@ -8,55 +8,48 @@ class TestSelectForEachUpdateTraces(TestCase): - def setUp(self): fig = make_subplots( rows=3, cols=2, - specs=[[{}, {'type': 'scene'}], - [{'secondary_y': True}, {'type': 'polar'}], - [{'type': 'domain', 'colspan': 2}, None]] - ).update(layout={'height': 800}) + specs=[ + [{}, {"type": "scene"}], + [{"secondary_y": True}, {"type": "polar"}], + [{"type": "domain", "colspan": 2}, None], + ], + ).update(layout={"height": 800}) # data[0], (1, 1) fig.add_scatter( - mode='markers', + mode="markers", y=[2, 3, 1], - name='A', - marker={'color': 'green', 'size': 10}, - row=1, col=1) + name="A", + marker={"color": "green", "size": 10}, + row=1, + col=1, + ) # data[1], (1, 1) - fig.add_bar(y=[2, 3, 1], row=1, col=1, name='B') + fig.add_bar(y=[2, 3, 1], row=1, col=1, name="B") # data[2], (2, 1) fig.add_scatter( - mode='lines', - y=[1, 2, 0], - line={'color': 'purple'}, - name='C', - row=2, - col=1, + mode="lines", y=[1, 2, 0], line={"color": "purple"}, name="C", row=2, col=1 ) # data[3], (2, 1) - fig.add_heatmap( - z=[[2, 3, 1], [2, 1, 3], [3, 2, 1]], - row=2, - col=1, - name='D', - ) + fig.add_heatmap(z=[[2, 3, 1], [2, 1, 3], [3, 2, 1]], row=2, col=1, name="D") # data[4], (1, 2) fig.add_scatter3d( x=[0, 0, 0], y=[0, 0, 0], z=[0, 1, 2], - mode='markers', - marker={'color': 'green', 'size': 10}, - name='E', + mode="markers", + marker={"color": "green", "size": 10}, + name="E", row=1, - col=2 + col=2, ) # data[5], (1, 2) @@ -64,53 +57,47 @@ def setUp(self): x=[0, 0, -1], y=[-1, 0, 0], z=[0, 1, 2], - mode='lines', - line={'color': 'purple', 'width': 4}, - name='F', + mode="lines", + line={"color": "purple", "width": 4}, + name="F", row=1, - col=2 + col=2, ) # data[6], (2, 2) fig.add_scatterpolar( - mode='markers', + mode="markers", r=[0, 3, 2], theta=[0, 20, 87], - marker={'color': 'green', 'size': 8}, - name='G', + marker={"color": "green", "size": 8}, + name="G", row=2, - col=2 + col=2, ) # data[7], (2, 2) fig.add_scatterpolar( - mode='lines', - r=[0, 3, 2], - theta=[20, 87, 111], - name='H', - row=2, - col=2 + mode="lines", r=[0, 3, 2], theta=[20, 87, 111], name="H", row=2, col=2 ) # data[8], (3, 1) fig.add_parcoords( - dimensions=[{'values': [1, 2, 3, 2, 1]}, - {'values': [3, 2, 1, 3, 2, 1]}], - line={'color': 'purple'}, - name='I', + dimensions=[{"values": [1, 2, 3, 2, 1]}, {"values": [3, 2, 1, 3, 2, 1]}], + line={"color": "purple"}, + name="I", row=3, - col=1 + col=1, ) # data[9], (2, 1) with secondary_y fig.add_scatter( - mode='lines', + mode="lines", y=[1, 2, 0], - line={'color': 'purple'}, - name='C', + line={"color": "purple"}, + name="C", row=2, col=1, - secondary_y=True + secondary_y=True, ) self.fig = fig @@ -119,12 +106,19 @@ def setUp(self): # select_traces and for_each_trace # -------------------------------- def assert_select_traces( - self, expected_inds, selector=None, - row=None, col=None, secondary_y=None, test_no_grid=False): + self, + expected_inds, + selector=None, + row=None, + col=None, + secondary_y=None, + test_no_grid=False, + ): # Select traces on figure initialized with make_subplots trace_generator = self.fig.select_traces( - selector=selector, row=row, col=col, secondary_y=secondary_y) + selector=selector, row=row, col=col, secondary_y=secondary_y + ) self.assertTrue(inspect.isgenerator(trace_generator)) trace_list = list(trace_generator) @@ -133,9 +127,12 @@ def assert_select_traces( # Select traces on figure not containing subplot info if test_no_grid: trace_generator = self.fig_no_grid.select_traces( - selector=selector, row=row, col=col, secondary_y=secondary_y) + selector=selector, row=row, col=col, secondary_y=secondary_y + ) trace_list = list(trace_generator) - self.assertEqual(trace_list, [self.fig_no_grid.data[i] for i in expected_inds]) + self.assertEqual( + trace_list, [self.fig_no_grid.data[i] for i in expected_inds] + ) # Test for each trace trace_list = [] @@ -144,28 +141,28 @@ def assert_select_traces( selector=selector, row=row, col=col, - secondary_y=secondary_y + secondary_y=secondary_y, ) self.assertIs(for_each_res, self.fig) - self.assertEqual( - trace_list, [self.fig.data[i] for i in expected_inds]) + self.assertEqual(trace_list, [self.fig.data[i] for i in expected_inds]) def test_select_by_type(self): self.assert_select_traces( - [0, 2, 9], selector={'type': 'scatter'}, test_no_grid=True) - self.assert_select_traces( - [1], selector={'type': 'bar'}, test_no_grid=True) - self.assert_select_traces( - [3], selector={'type': 'heatmap'}, test_no_grid=True) - self.assert_select_traces( - [4, 5], selector={'type': 'scatter3d'}, test_no_grid=True) + [0, 2, 9], selector={"type": "scatter"}, test_no_grid=True + ) + self.assert_select_traces([1], selector={"type": "bar"}, test_no_grid=True) + self.assert_select_traces([3], selector={"type": "heatmap"}, test_no_grid=True) self.assert_select_traces( - [6, 7], selector={'type': 'scatterpolar'}, test_no_grid=True) + [4, 5], selector={"type": "scatter3d"}, test_no_grid=True + ) self.assert_select_traces( - [8], selector={'type': 'parcoords'}, test_no_grid=True) + [6, 7], selector={"type": "scatterpolar"}, test_no_grid=True + ) self.assert_select_traces( - [], selector={'type': 'pie'}, test_no_grid=True) + [8], selector={"type": "parcoords"}, test_no_grid=True + ) + self.assert_select_traces([], selector={"type": "pie"}, test_no_grid=True) def test_select_by_grid(self): # Row and column @@ -191,41 +188,42 @@ def test_select_by_secondary_y(self): def test_select_by_property_across_trace_types(self): self.assert_select_traces( - [0, 4, 6], selector={'mode': 'markers'}, test_no_grid=True) + [0, 4, 6], selector={"mode": "markers"}, test_no_grid=True + ) self.assert_select_traces( - [2, 5, 7, 9], selector={'mode': 'lines'}, test_no_grid=True) + [2, 5, 7, 9], selector={"mode": "lines"}, test_no_grid=True + ) self.assert_select_traces( [0, 4], - selector={'marker': {'color': 'green', 'size': 10}}, - test_no_grid=True) + selector={"marker": {"color": "green", "size": 10}}, + test_no_grid=True, + ) # Several traces have 'marker.color' == 'green', but they all have # additional marker properties so there should be no exact match. self.assert_select_traces( - [], selector={'marker': {'color': 'green'}}, test_no_grid=True) + [], selector={"marker": {"color": "green"}}, test_no_grid=True + ) self.assert_select_traces( - [0, 4, 6], selector={'marker.color': 'green'}, test_no_grid=True) + [0, 4, 6], selector={"marker.color": "green"}, test_no_grid=True + ) self.assert_select_traces( - [2, 5, 8, 9], selector={'line.color': 'purple'}, test_no_grid=True) + [2, 5, 8, 9], selector={"line.color": "purple"}, test_no_grid=True + ) def test_select_property_and_grid(self): # (1, 1) - self.assert_select_traces( - [0], selector={'mode': 'markers'}, row=1, col=1) - self.assert_select_traces( - [1], selector={'type': 'bar'}, row=1, col=1) + self.assert_select_traces([0], selector={"mode": "markers"}, row=1, col=1) + self.assert_select_traces([1], selector={"type": "bar"}, row=1, col=1) # (2, 1) - self.assert_select_traces( - [2, 9], selector={'mode': 'lines'}, row=2, col=1) + self.assert_select_traces([2, 9], selector={"mode": "lines"}, row=2, col=1) # (1, 2) - self.assert_select_traces( - [4], selector={'marker.color': 'green'}, row=1, col=2) + self.assert_select_traces([4], selector={"marker.color": "green"}, row=1, col=2) # Valid row/col and valid selector but the intersection is empty - self.assert_select_traces( - [], selector={'type': 'markers'}, row=3, col=1) + self.assert_select_traces([], selector={"type": "markers"}, row=3, col=1) def test_for_each_trace_lowercase_names(self): # Names are all uppercase to start @@ -233,22 +231,28 @@ def test_for_each_trace_lowercase_names(self): self.assertTrue([str.isupper(n) for n in original_names]) # Lower case names - result_fig = self.fig.for_each_trace( - lambda t: t.update(name=t.name.lower()) - ) + result_fig = self.fig.for_each_trace(lambda t: t.update(name=t.name.lower())) # Check chaning self.assertIs(result_fig, self.fig) # Check that names were altered self.assertTrue( - all([t.name == n.lower() - for t, n in zip(result_fig.data, original_names)])) + all([t.name == n.lower() for t, n in zip(result_fig.data, original_names)]) + ) # test update_traces # ------------------ - def assert_update_traces(self, expected_inds, patch=None, selector=None, - row=None, col=None, secondary_y=None, **kwargs): + def assert_update_traces( + self, + expected_inds, + patch=None, + selector=None, + row=None, + col=None, + secondary_y=None, + **kwargs + ): # Save off original figure fig_orig = copy.deepcopy(self.fig) for trace1, trace2 in zip(fig_orig.data, self.fig.data): @@ -256,8 +260,12 @@ def assert_update_traces(self, expected_inds, patch=None, selector=None, # Perform update update_res = self.fig.update_traces( - patch, selector=selector, row=row, col=col, - secondary_y=secondary_y, **kwargs + patch, + selector=selector, + row=row, + col=col, + secondary_y=secondary_y, + **kwargs ) # Check chaining support @@ -276,67 +284,81 @@ def assert_update_traces(self, expected_inds, patch=None, selector=None, self.assertEqual(t_orig, t) def test_update_traces_by_type(self): - self.assert_update_traces([0, 2, 9], {'visible': 'legendonly'}, - selector={'type': 'scatter'}) + self.assert_update_traces( + [0, 2, 9], {"visible": "legendonly"}, selector={"type": "scatter"} + ) - self.assert_update_traces([0, 2, 9], - selector={'type': 'scatter'}, - visible=False) + self.assert_update_traces( + [0, 2, 9], selector={"type": "scatter"}, visible=False + ) - self.assert_update_traces([1], {'visible': 'legendonly'}, - selector={'type': 'bar'}) + self.assert_update_traces( + [1], {"visible": "legendonly"}, selector={"type": "bar"} + ) - self.assert_update_traces([3], {'colorscale': 'Viridis'}, - selector={'type': 'heatmap'}) + self.assert_update_traces( + [3], {"colorscale": "Viridis"}, selector={"type": "heatmap"} + ) # Nest dictionaries - self.assert_update_traces([4, 5], - {'marker': {'line': {'color': 'yellow'}}}, - selector={'type': 'scatter3d'}) + self.assert_update_traces( + [4, 5], + {"marker": {"line": {"color": "yellow"}}}, + selector={"type": "scatter3d"}, + ) # dot syntax - self.assert_update_traces([4, 5], {'marker.line.color': 'cyan'}, - selector={'type': 'scatter3d'}) + self.assert_update_traces( + [4, 5], {"marker.line.color": "cyan"}, selector={"type": "scatter3d"} + ) # underscore syntax - self.assert_update_traces([4, 5], dict(marker_line_color='pink'), - selector={'type': 'scatter3d'}) + self.assert_update_traces( + [4, 5], dict(marker_line_color="pink"), selector={"type": "scatter3d"} + ) # underscore syntax with kwarg - self.assert_update_traces([4, 5], - selector={'type': 'scatter3d'}, - marker_line_color='red') + self.assert_update_traces( + [4, 5], selector={"type": "scatter3d"}, marker_line_color="red" + ) - self.assert_update_traces([6, 7], {'line': {'dash': 'dot'}}, - selector={'type': 'scatterpolar'}) + self.assert_update_traces( + [6, 7], {"line": {"dash": "dot"}}, selector={"type": "scatterpolar"} + ) # Nested dictionaries - self.assert_update_traces([8], { - 'dimensions': {1: {'label': 'Dimension 1'}}}, - selector={'type': 'parcoords'}) + self.assert_update_traces( + [8], + {"dimensions": {1: {"label": "Dimension 1"}}}, + selector={"type": "parcoords"}, + ) # Dot syntax - self.assert_update_traces([8], {'dimensions[1].label': 'Dimension A'}, - selector={'type': 'parcoords'}) + self.assert_update_traces( + [8], {"dimensions[1].label": "Dimension A"}, selector={"type": "parcoords"} + ) # underscore syntax # Dot syntax - self.assert_update_traces([8], dict(dimensions_1_label='Dimension X'), - selector={'type': 'parcoords'}) + self.assert_update_traces( + [8], dict(dimensions_1_label="Dimension X"), selector={"type": "parcoords"} + ) - self.assert_update_traces([], {'hoverinfo': 'label+percent'}, - selector={'type': 'pie'}) + self.assert_update_traces( + [], {"hoverinfo": "label+percent"}, selector={"type": "pie"} + ) def test_update_traces_by_grid_and_selector(self): - self.assert_update_traces([4, 6], {'marker.size': 5}, - selector={'marker.color': 'green'}, col=2) + self.assert_update_traces( + [4, 6], {"marker.size": 5}, selector={"marker.color": "green"}, col=2 + ) - self.assert_update_traces([0, 4], {'marker.size': 6}, - selector={'marker.color': 'green'}, row=1) + self.assert_update_traces( + [0, 4], {"marker.size": 6}, selector={"marker.color": "green"}, row=1 + ) - self.assert_update_traces([6], {'marker.size': 6}, - selector={'marker.color': 'green'}, row=2, - col=2) + self.assert_update_traces( + [6], {"marker.size": 6}, selector={"marker.color": "green"}, row=2, col=2 + ) - self.assert_update_traces([9], {'marker.size': 6}, - col=1, secondary_y=True) + self.assert_update_traces([9], {"marker.size": 6}, col=1, secondary_y=True) diff --git a/packages/python/plotly/plotly/tests/test_core/test_utils/__init__.py b/packages/python/plotly/plotly/tests/test_core/test_utils/__init__.py index f367e6011a3..e1565c83f71 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_utils/__init__.py +++ b/packages/python/plotly/plotly/tests/test_core/test_utils/__init__.py @@ -1,4 +1,5 @@ import warnings + def setup_package(): - warnings.filterwarnings('ignore') + warnings.filterwarnings("ignore") diff --git a/packages/python/plotly/plotly/tests/test_core/test_utils/test_utils.py b/packages/python/plotly/plotly/tests/test_core/test_utils/test_utils.py index aa2559bfe76..1587e388bdc 100644 --- a/packages/python/plotly/plotly/tests/test_core/test_utils/test_utils.py +++ b/packages/python/plotly/plotly/tests/test_core/test_utils/test_utils.py @@ -5,50 +5,46 @@ import json as _json -from plotly.utils import (PlotlyJSONEncoder, get_by_path, memoize, - node_generator) +from plotly.utils import PlotlyJSONEncoder, get_by_path, memoize, node_generator class TestJSONEncoder(TestCase): - def test_nan_to_null(self): - array = [1, float('NaN'), float('Inf'), float('-Inf'), 'platypus'] + array = [1, float("NaN"), float("Inf"), float("-Inf"), "platypus"] result = _json.dumps(array, cls=PlotlyJSONEncoder) expected_result = '[1, null, null, null, "platypus"]' self.assertEqual(result, expected_result) class TestGetByPath(TestCase): - def test_get_by_path(self): # should be able to traverse into a nested dict/list with key array - figure = {'data': [{}, {'marker': {'color': ['red', 'blue']}}]} - path = ('data', 1, 'marker', 'color') + figure = {"data": [{}, {"marker": {"color": ["red", "blue"]}}]} + path = ("data", 1, "marker", "color") value = get_by_path(figure, path) - expected_value = ['red', 'blue'] + expected_value = ["red", "blue"] self.assertEqual(value, expected_value) class TestNodeGenerator(TestCase): - def test_node_generator(self): # should generate a (node, path) pair for each dict in a dict - node4 = {'h': 5} - node3 = {'g': 7} - node2 = {'e': node3} - node1 = {'c': node2, 'd': ['blah']} - node0 = {'a': node1, 'b': 8} + node4 = {"h": 5} + node3 = {"g": 7} + node2 = {"e": node3} + node1 = {"c": node2, "d": ["blah"]} + node0 = {"a": node1, "b": 8} expected_node_path_tuples = [ (node0, ()), - (node1, ('a',)), - (node2, ('a', 'c')), - (node3, ('a', 'c', 'e')), - (node4, ('a', 'c', 'f')) + (node1, ("a",)), + (node2, ("a", "c")), + (node3, ("a", "c", "e")), + (node4, ("a", "c", "f")), ] for i, item in enumerate(node_generator(node0)): self.assertEqual(item, expected_node_path_tuples[i]) @@ -139,11 +135,11 @@ def test_memoize_function_info(self): # overwritten by the decorator. @memoize() - def foo(a, b, c='see?'): + def foo(a, b, c="see?"): """Foo is foo.""" pass - self.assertEqual(foo.__doc__, 'Foo is foo.') - self.assertEqual(foo.__name__, 'foo') - self.assertEqual(getargspec(foo).args, ['a', 'b', 'c']) - self.assertEqual(getargspec(foo).defaults, ('see?',)) + self.assertEqual(foo.__doc__, "Foo is foo.") + self.assertEqual(foo.__name__, "foo") + self.assertEqual(getargspec(foo).args, ["a", "b", "c"]) + self.assertEqual(getargspec(foo).defaults, ("see?",)) diff --git a/packages/python/plotly/plotly/tests/test_io/test_deepcopy_pickle.py b/packages/python/plotly/plotly/tests/test_io/test_deepcopy_pickle.py index 63ad5a92476..4cbccdd2baa 100644 --- a/packages/python/plotly/plotly/tests/test_io/test_deepcopy_pickle.py +++ b/packages/python/plotly/plotly/tests/test_io/test_deepcopy_pickle.py @@ -11,13 +11,17 @@ # -------- @pytest.fixture def fig1(request): - return go.Figure(data=[{'type': 'scattergl', - 'marker': {'color': 'green'}}, - {'type': 'parcoords', - 'dimensions': [{'values': [1, 2, 3]}, - {'values': [3, 2, 1]}], - 'line': {'color': 'blue'}}], - layout={'title': 'Figure title'}) + return go.Figure( + data=[ + {"type": "scattergl", "marker": {"color": "green"}}, + { + "type": "parcoords", + "dimensions": [{"values": [1, 2, 3]}, {"values": [3, 2, 1]}], + "line": {"color": "blue"}, + }, + ], + layout={"title": "Figure title"}, + ) @pytest.fixture diff --git a/packages/python/plotly/plotly/tests/test_io/test_renderers.py b/packages/python/plotly/plotly/tests/test_io/test_renderers.py index a916523f549..fddee0823c9 100644 --- a/packages/python/plotly/plotly/tests/test_io/test_renderers.py +++ b/packages/python/plotly/plotly/tests/test_io/test_renderers.py @@ -24,18 +24,23 @@ # -------- @pytest.fixture def fig1(request): - return go.Figure(data=[{'type': 'scatter', - 'y': np.array([2, 1, 3, 2, 4, 2]), - 'marker': {'color': 'green'}}], - layout={'title': {'text': 'Figure title'}}) + return go.Figure( + data=[ + { + "type": "scatter", + "y": np.array([2, 1, 3, 2, 4, 2]), + "marker": {"color": "green"}, + } + ], + layout={"title": {"text": "Figure title"}}, + ) # JSON # ---- def test_json_renderer_mimetype(fig1): - pio.renderers.default = 'json' - expected = {'application/json': json.loads( - pio.to_json(fig1, remove_uids=False))} + pio.renderers.default = "json" + expected = {"application/json": json.loads(pio.to_json(fig1, remove_uids=False))} pio.renderers.render_on_display = False assert fig1._repr_mimebundle_(None, None) is None @@ -46,42 +51,41 @@ def test_json_renderer_mimetype(fig1): def test_json_renderer_show(fig1): - pio.renderers.default = 'json' - expected_bundle = {'application/json': json.loads( - pio.to_json(fig1, remove_uids=False))} + pio.renderers.default = "json" + expected_bundle = { + "application/json": json.loads(pio.to_json(fig1, remove_uids=False)) + } - with mock.patch('IPython.display.display') as mock_display: + with mock.patch("IPython.display.display") as mock_display: pio.show(fig1) mock_display.assert_called_once_with(expected_bundle, raw=True) def test_json_renderer_show_override(fig1): - pio.renderers.default = 'notebook' - expected_bundle = {'application/json': json.loads( - pio.to_json(fig1, remove_uids=False))} + pio.renderers.default = "notebook" + expected_bundle = { + "application/json": json.loads(pio.to_json(fig1, remove_uids=False)) + } - with mock.patch('IPython.display.display') as mock_display: - pio.show(fig1, renderer='json') + with mock.patch("IPython.display.display") as mock_display: + pio.show(fig1, renderer="json") mock_display.assert_called_once_with(expected_bundle, raw=True) # Plotly mimetype # --------------- -plotly_mimetype = 'application/vnd.plotly.v1+json' -plotly_mimetype_renderers = [ - 'plotly_mimetype', 'jupyterlab', 'vscode', 'nteract'] +plotly_mimetype = "application/vnd.plotly.v1+json" +plotly_mimetype_renderers = ["plotly_mimetype", "jupyterlab", "vscode", "nteract"] -@pytest.mark.parametrize('renderer', plotly_mimetype_renderers) +@pytest.mark.parametrize("renderer", plotly_mimetype_renderers) def test_plotly_mimetype_renderer_mimetype(fig1, renderer): pio.renderers.default = renderer - expected = {plotly_mimetype: json.loads( - pio.to_json(fig1, remove_uids=False))} + expected = {plotly_mimetype: json.loads(pio.to_json(fig1, remove_uids=False))} - expected[plotly_mimetype]['config'] = { - 'plotlyServerURL': 'https://plot.ly'} + expected[plotly_mimetype]["config"] = {"plotlyServerURL": "https://plot.ly"} pio.renderers.render_on_display = False assert fig1._repr_mimebundle_(None, None) is None @@ -91,16 +95,14 @@ def test_plotly_mimetype_renderer_mimetype(fig1, renderer): assert bundle == expected -@pytest.mark.parametrize('renderer', plotly_mimetype_renderers) +@pytest.mark.parametrize("renderer", plotly_mimetype_renderers) def test_plotly_mimetype_renderer_show(fig1, renderer): pio.renderers.default = renderer - expected = {plotly_mimetype: json.loads( - pio.to_json(fig1, remove_uids=False))} + expected = {plotly_mimetype: json.loads(pio.to_json(fig1, remove_uids=False))} - expected[plotly_mimetype]['config'] = { - 'plotlyServerURL': 'https://plot.ly'} + expected[plotly_mimetype]["config"] = {"plotlyServerURL": "https://plot.ly"} - with mock.patch('IPython.display.display') as mock_display: + with mock.patch("IPython.display.display") as mock_display: pio.show(fig1) mock_display.assert_called_once_with(expected, raw=True) @@ -113,15 +115,15 @@ def test_plotly_mimetype_renderer_show(fig1, renderer): # HTML # ---- def assert_full_html(html): - assert html.startswith('= 0).all()) - dendro_bottom = ff.create_dendrogram(X, orientation='bottom') - self.assertEqual(len(dendro_bottom['layout']['xaxis']['ticktext']), 5) - tickvals_bottom = np.array( - dendro_bottom['layout']['xaxis']['tickvals'] - ) + dendro_bottom = ff.create_dendrogram(X, orientation="bottom") + self.assertEqual(len(dendro_bottom["layout"]["xaxis"]["ticktext"]), 5) + tickvals_bottom = np.array(dendro_bottom["layout"]["xaxis"]["tickvals"]) self.assertTrue((tickvals_bottom >= 0).all()) - dendro_top = ff.create_dendrogram(X, orientation='top') - tickvals_top = np.array(dendro_top['layout']['xaxis']['tickvals']) + dendro_top = ff.create_dendrogram(X, orientation="top") + tickvals_top = np.array(dendro_top["layout"]["xaxis"]["tickvals"]) self.assertTrue((tickvals_top <= 0).all()) def test_dendrogram_colorscale(self): - X = np.array([[1, 2, 3, 4], - [1, 1, 3, 4], - [1, 2, 1, 4], - [1, 2, 3, 1]]) + X = np.array([[1, 2, 3, 4], [1, 1, 3, 4], [1, 2, 1, 4], [1, 2, 3, 1]]) greyscale = [ - 'rgb(0,0,0)', # black - 'rgb(05,105,105)', # dim grey - 'rgb(128,128,128)', # grey - 'rgb(169,169,169)', # dark grey - 'rgb(192,192,192)', # silver - 'rgb(211,211,211)', # light grey - 'rgb(220,220,220)', # gainsboro - 'rgb(245,245,245)' # white smoke + "rgb(0,0,0)", # black + "rgb(05,105,105)", # dim grey + "rgb(128,128,128)", # grey + "rgb(169,169,169)", # dark grey + "rgb(192,192,192)", # silver + "rgb(211,211,211)", # light grey + "rgb(220,220,220)", # gainsboro + "rgb(245,245,245)", # white smoke ] dendro = ff.create_dendrogram(X, colorscale=greyscale) @@ -711,80 +1185,80 @@ def test_dendrogram_colorscale(self): expected_dendro = go.Figure( data=[ go.Scatter( - x=np.array([25., 25., 35., 35.]), - y=np.array([0., 1., 1., 0.]), - marker=go.scatter.Marker(color='rgb(128,128,128)'), - mode='lines', - xaxis='x', - yaxis='y', - hoverinfo='text', - text=None + x=np.array([25.0, 25.0, 35.0, 35.0]), + y=np.array([0.0, 1.0, 1.0, 0.0]), + marker=go.scatter.Marker(color="rgb(128,128,128)"), + mode="lines", + xaxis="x", + yaxis="y", + hoverinfo="text", + text=None, ), go.Scatter( - x=np.array([15., 15., 30., 30.]), - y=np.array([0., 2.23606798, 2.23606798, 1.]), - marker=go.scatter.Marker(color='rgb(128,128,128)'), - mode='lines', - xaxis='x', - yaxis='y', - hoverinfo='text', - text=None + x=np.array([15.0, 15.0, 30.0, 30.0]), + y=np.array([0.0, 2.23606798, 2.23606798, 1.0]), + marker=go.scatter.Marker(color="rgb(128,128,128)"), + mode="lines", + xaxis="x", + yaxis="y", + hoverinfo="text", + text=None, ), go.Scatter( - x=np.array([5., 5., 22.5, 22.5]), - y=np.array([0., 3.60555128, 3.60555128, 2.23606798]), - marker=go.scatter.Marker(color='rgb(0,0,0)'), - mode='lines', - xaxis='x', - yaxis='y', - hoverinfo='text', - text=None - ) + x=np.array([5.0, 5.0, 22.5, 22.5]), + y=np.array([0.0, 3.60555128, 3.60555128, 2.23606798]), + marker=go.scatter.Marker(color="rgb(0,0,0)"), + mode="lines", + xaxis="x", + yaxis="y", + hoverinfo="text", + text=None, + ), ], layout=go.Layout( autosize=False, height=np.inf, - hovermode='closest', + hovermode="closest", showlegend=False, width=np.inf, xaxis=go.layout.XAxis( - mirror='allticks', - rangemode='tozero', + mirror="allticks", + rangemode="tozero", showgrid=False, showline=True, showticklabels=True, - tickmode='array', - ticks='outside', - ticktext=np.array(['3', '2', '0', '1']), + tickmode="array", + ticks="outside", + ticktext=np.array(["3", "2", "0", "1"]), tickvals=[5.0, 15.0, 25.0, 35.0], - type='linear', - zeroline=False + type="linear", + zeroline=False, ), yaxis=go.layout.YAxis( - mirror='allticks', - rangemode='tozero', + mirror="allticks", + rangemode="tozero", showgrid=False, showline=True, showticklabels=True, - ticks='outside', - type='linear', - zeroline=False - ) - ) + ticks="outside", + type="linear", + zeroline=False, + ), + ), ) - self.assertEqual(len(dendro['data']), 3) + self.assertEqual(len(dendro["data"]), 3) # this is actually a bit clearer when debugging tests. - self.assert_fig_equal(dendro['data'][0], expected_dendro['data'][0]) - self.assert_fig_equal(dendro['data'][1], expected_dendro['data'][1]) - self.assert_fig_equal(dendro['data'][2], expected_dendro['data'][2]) + self.assert_fig_equal(dendro["data"][0], expected_dendro["data"][0]) + self.assert_fig_equal(dendro["data"][1], expected_dendro["data"][1]) + self.assert_fig_equal(dendro["data"][2], expected_dendro["data"][2]) def test_dendrogram_ticklabels(self): X = np.array([[1, 2, 3, 4], [1, 2, 3, 4], [1, 3, 5, 6], [1, 4, 2, 3]]) dendro = ff.create_dendrogram(X=X) - expected_ticktext = ['2', '3', '0', '1'] + expected_ticktext = ["2", "3", "0", "1"] expected_tickvals = [5, 15, 25, 35] self.assertEqual(len(dendro.layout.xaxis.ticktext), 4) @@ -792,7 +1266,6 @@ def test_dendrogram_ticklabels(self): class TestTrisurf(NumpyTestUtilsMixin, TestCaseNoTemplate): - def test_vmin_and_vmax(self): # check if vmin is greater than or equal to vmax @@ -804,7 +1277,7 @@ def test_vmin_and_vmax(self): x = u y = v - z = u*v + z = u * v points2D = np.vstack([u, v]).T tri = Delaunay(points2D) @@ -815,9 +1288,9 @@ def test_vmin_and_vmax(self): "be bigger than or equal to the value of vmax." ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_trisurf, - x, y, z, simplices) + self.assertRaisesRegexp( + PlotlyError, pattern, ff.create_trisurf, x, y, z, simplices + ) def test_valid_colormap(self): @@ -829,8 +1302,8 @@ def test_valid_colormap(self): v = v.flatten() x = u - y = u*np.cos(v) - z = u*np.sin(v) + y = u * np.cos(v) + z = u * np.sin(v) points2D = np.vstack([u, v]).T tri = Delaunay(points2D) @@ -843,34 +1316,43 @@ def test_valid_colormap(self): "an rgb color or a hex color." ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_trisurf, - x, y, z, simplices, colormap='foo') + self.assertRaisesRegexp( + PlotlyError, pattern, ff.create_trisurf, x, y, z, simplices, colormap="foo" + ) # check: if colormap is a list of rgb color strings, make sure the # entries of each color are no greater than 255.0 pattern2 = ( - "Whoops! The elements in your rgb colors tuples " - "cannot exceed 255.0." + "Whoops! The elements in your rgb colors tuples " "cannot exceed 255.0." ) - self.assertRaisesRegexp(PlotlyError, pattern2, - ff.create_trisurf, - x, y, z, simplices, - colormap=['rgb(4, 5, 600)']) + self.assertRaisesRegexp( + PlotlyError, + pattern2, + ff.create_trisurf, + x, + y, + z, + simplices, + colormap=["rgb(4, 5, 600)"], + ) # check: if colormap is a list of tuple colors, make sure the entries # of each tuple are no greater than 1.0 - pattern3 = ( - "Whoops! The elements in your colors tuples cannot exceed 1.0." - ) + pattern3 = "Whoops! The elements in your colors tuples cannot exceed 1.0." - self.assertRaisesRegexp(PlotlyError, pattern3, - ff.create_trisurf, - x, y, z, simplices, - colormap=[(0.8, 1.0, 1.2)]) + self.assertRaisesRegexp( + PlotlyError, + pattern3, + ff.create_trisurf, + x, + y, + z, + simplices, + colormap=[(0.8, 1.0, 1.2)], + ) def test_trisurf_all_args(self): @@ -883,129 +1365,257 @@ def test_trisurf_all_args(self): x = u y = v - z = u*v + z = u * v points2D = np.vstack([u, v]).T tri = Delaunay(points2D) simplices = tri.simplices - test_trisurf_plot = ff.create_trisurf( - x, y, z, simplices - ) + test_trisurf_plot = ff.create_trisurf(x, y, z, simplices) exp_trisurf_plot = { - 'data': [{'facecolor': ['rgb(143, 123, 97)', 'rgb(255, 127, 14)', - 'rgb(143, 123, 97)', 'rgb(31, 119, 180)', - 'rgb(143, 123, 97)', 'rgb(31, 119, 180)', - 'rgb(143, 123, 97)', 'rgb(255, 127, 14)'], - 'i': [3, 1, 1, 5, 7, 3, 5, 7], - 'j': [1, 3, 5, 1, 3, 7, 7, 5], - 'k': [4, 0, 4, 2, 4, 6, 4, 8], - 'name': '', - 'type': 'mesh3d', - 'x': [-1., 0., 1., -1., 0., 1., -1., 0., 1.], - 'y': [-1., -1., -1., 0., 0., 0., 1., 1., 1.], - 'z': [1., -0., -1., -0., 0., 0., -1., 0., 1.]}, - {'line': {'color': 'rgb(50, 50, 50)', 'width': 1.5}, - 'mode': 'lines', - 'showlegend': False, - 'type': 'scatter3d', - 'x': [-1.0, 0.0, 0.0, -1.0, None, 0.0, -1.0, -1.0, 0.0, - None, 0.0, 1.0, 0.0, 0.0, None, 1.0, 0.0, 1.0, - 1.0, None, 0.0, -1.0, 0.0, 0.0, None, -1.0, 0.0, - -1.0, -1.0, None, 1.0, 0.0, 0.0, 1.0, None, 0.0, - 1.0, 1.0, 0.0, None], - 'y': [0.0, -1.0, 0.0, 0.0, None, -1.0, 0.0, -1.0, -1.0, - None, -1.0, 0.0, 0.0, -1.0, None, 0.0, -1.0, -1.0, - 0.0, None, 1.0, 0.0, 0.0, 1.0, None, 0.0, 1.0, - 1.0, 0.0, None, 0.0, 1.0, 0.0, 0.0, None, 1.0, - 0.0, 1.0, 1.0, None], - 'z': [-0.0, -0.0, 0.0, -0.0, None, -0.0, -0.0, 1.0, - -0.0, None, -0.0, 0.0, 0.0, -0.0, None, 0.0, -0.0, - -1.0, 0.0, None, 0.0, -0.0, 0.0, 0.0, None, -0.0, - 0.0, -1.0, -0.0, None, 0.0, 0.0, 0.0, 0.0, None, - 0.0, 0.0, 1.0, 0.0, None]}, - {'hoverinfo': 'none', - 'marker': {'color': [-0.33333333333333331, - 0.33333333333333331], - 'colorscale': [[0.0, 'rgb(31, 119, 180)'], - [1.0, 'rgb(255, 127, 14)']], - 'showscale': True, - 'size': 0.1}, - 'mode': 'markers', - 'showlegend': False, - 'type': 'scatter3d', - 'x': [-1.], - 'y': [-1.], - 'z': [1.]}], - 'layout': {'height': 800, - 'scene': {'aspectratio': {'x': 1, 'y': 1, 'z': 1}, - 'xaxis': {'backgroundcolor': 'rgb(230, 230, 230)', - 'gridcolor': 'rgb(255, 255, 255)', - 'showbackground': True, - 'zerolinecolor': 'rgb(255, 255, 255)'}, - 'yaxis': {'backgroundcolor': 'rgb(230, 230, 230)', - 'gridcolor': 'rgb(255, 255, 255)', - 'showbackground': True, - 'zerolinecolor': 'rgb(255, 255, 255)'}, - 'zaxis': {'backgroundcolor': 'rgb(230, 230, 230)', - 'gridcolor': 'rgb(255, 255, 255)', - 'showbackground': True, - 'zerolinecolor': 'rgb(255, 255, 255)'}}, - 'title': {'text': 'Trisurf Plot'}, - 'width': 800} + "data": [ + { + "facecolor": [ + "rgb(143, 123, 97)", + "rgb(255, 127, 14)", + "rgb(143, 123, 97)", + "rgb(31, 119, 180)", + "rgb(143, 123, 97)", + "rgb(31, 119, 180)", + "rgb(143, 123, 97)", + "rgb(255, 127, 14)", + ], + "i": [3, 1, 1, 5, 7, 3, 5, 7], + "j": [1, 3, 5, 1, 3, 7, 7, 5], + "k": [4, 0, 4, 2, 4, 6, 4, 8], + "name": "", + "type": "mesh3d", + "x": [-1.0, 0.0, 1.0, -1.0, 0.0, 1.0, -1.0, 0.0, 1.0], + "y": [-1.0, -1.0, -1.0, 0.0, 0.0, 0.0, 1.0, 1.0, 1.0], + "z": [1.0, -0.0, -1.0, -0.0, 0.0, 0.0, -1.0, 0.0, 1.0], + }, + { + "line": {"color": "rgb(50, 50, 50)", "width": 1.5}, + "mode": "lines", + "showlegend": False, + "type": "scatter3d", + "x": [ + -1.0, + 0.0, + 0.0, + -1.0, + None, + 0.0, + -1.0, + -1.0, + 0.0, + None, + 0.0, + 1.0, + 0.0, + 0.0, + None, + 1.0, + 0.0, + 1.0, + 1.0, + None, + 0.0, + -1.0, + 0.0, + 0.0, + None, + -1.0, + 0.0, + -1.0, + -1.0, + None, + 1.0, + 0.0, + 0.0, + 1.0, + None, + 0.0, + 1.0, + 1.0, + 0.0, + None, + ], + "y": [ + 0.0, + -1.0, + 0.0, + 0.0, + None, + -1.0, + 0.0, + -1.0, + -1.0, + None, + -1.0, + 0.0, + 0.0, + -1.0, + None, + 0.0, + -1.0, + -1.0, + 0.0, + None, + 1.0, + 0.0, + 0.0, + 1.0, + None, + 0.0, + 1.0, + 1.0, + 0.0, + None, + 0.0, + 1.0, + 0.0, + 0.0, + None, + 1.0, + 0.0, + 1.0, + 1.0, + None, + ], + "z": [ + -0.0, + -0.0, + 0.0, + -0.0, + None, + -0.0, + -0.0, + 1.0, + -0.0, + None, + -0.0, + 0.0, + 0.0, + -0.0, + None, + 0.0, + -0.0, + -1.0, + 0.0, + None, + 0.0, + -0.0, + 0.0, + 0.0, + None, + -0.0, + 0.0, + -1.0, + -0.0, + None, + 0.0, + 0.0, + 0.0, + 0.0, + None, + 0.0, + 0.0, + 1.0, + 0.0, + None, + ], + }, + { + "hoverinfo": "none", + "marker": { + "color": [-0.33333333333333331, 0.33333333333333331], + "colorscale": [ + [0.0, "rgb(31, 119, 180)"], + [1.0, "rgb(255, 127, 14)"], + ], + "showscale": True, + "size": 0.1, + }, + "mode": "markers", + "showlegend": False, + "type": "scatter3d", + "x": [-1.0], + "y": [-1.0], + "z": [1.0], + }, + ], + "layout": { + "height": 800, + "scene": { + "aspectratio": {"x": 1, "y": 1, "z": 1}, + "xaxis": { + "backgroundcolor": "rgb(230, 230, 230)", + "gridcolor": "rgb(255, 255, 255)", + "showbackground": True, + "zerolinecolor": "rgb(255, 255, 255)", + }, + "yaxis": { + "backgroundcolor": "rgb(230, 230, 230)", + "gridcolor": "rgb(255, 255, 255)", + "showbackground": True, + "zerolinecolor": "rgb(255, 255, 255)", + }, + "zaxis": { + "backgroundcolor": "rgb(230, 230, 230)", + "gridcolor": "rgb(255, 255, 255)", + "showbackground": True, + "zerolinecolor": "rgb(255, 255, 255)", + }, + }, + "title": {"text": "Trisurf Plot"}, + "width": 800, + }, } - self.assert_fig_equal(test_trisurf_plot['data'][0], - exp_trisurf_plot['data'][0]) + self.assert_fig_equal(test_trisurf_plot["data"][0], exp_trisurf_plot["data"][0]) - self.assert_fig_equal(test_trisurf_plot['data'][1], - exp_trisurf_plot['data'][1]) + self.assert_fig_equal(test_trisurf_plot["data"][1], exp_trisurf_plot["data"][1]) - self.assert_fig_equal(test_trisurf_plot['data'][2], - exp_trisurf_plot['data'][2]) + self.assert_fig_equal(test_trisurf_plot["data"][2], exp_trisurf_plot["data"][2]) - self.assert_fig_equal(test_trisurf_plot['layout'], - exp_trisurf_plot['layout']) + self.assert_fig_equal(test_trisurf_plot["layout"], exp_trisurf_plot["layout"]) # Test passing custom colors colors_raw = np.random.randn(simplices.shape[0]) - colors_str = ['rgb(%s, %s, %s)' % (i, j, k) - for i, j, k in np.random.randn(simplices.shape[0], 3)] + colors_str = [ + "rgb(%s, %s, %s)" % (i, j, k) + for i, j, k in np.random.randn(simplices.shape[0], 3) + ] # Color == strings should be kept the same - test_colors_plot = ff.create_trisurf( - x, y, z, simplices, color_func=colors_str + test_colors_plot = ff.create_trisurf(x, y, z, simplices, color_func=colors_str) + self.assertListEqual( + list(test_colors_plot["data"][0]["facecolor"]), list(colors_str) ) - self.assertListEqual(list(test_colors_plot['data'][0]['facecolor']), - list(colors_str)) # Colors must match length of simplices colors_bad = colors_str[:-1] - self.assertRaises(ValueError, ff.create_trisurf, x, y, - z, simplices, color_func=colors_bad) - # Check converting custom colors to strings - test_colors_plot = ff.create_trisurf( - x, y, z, simplices, color_func=colors_raw + self.assertRaises( + ValueError, ff.create_trisurf, x, y, z, simplices, color_func=colors_bad ) - self.assertTrue(isinstance(test_colors_plot['data'][0]['facecolor'][0], - str)) + # Check converting custom colors to strings + test_colors_plot = ff.create_trisurf(x, y, z, simplices, color_func=colors_raw) + self.assertTrue(isinstance(test_colors_plot["data"][0]["facecolor"][0], str)) class TestScatterPlotMatrix(NumpyTestUtilsMixin, TestCaseNoTemplate): - def test_dataframe_input(self): # check: dataframe is imported - df = 'foo' + df = "foo" pattern = ( "Dataframe not inputed. Please use a pandas dataframe to produce " "a scatterplot matrix." ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_scatterplotmatrix, - df) + self.assertRaisesRegexp(PlotlyError, pattern, ff.create_scatterplotmatrix, df) def test_one_column_dataframe(self): @@ -1017,25 +1627,21 @@ def test_one_column_dataframe(self): "use at least 2 columns." ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_scatterplotmatrix, - df) + self.assertRaisesRegexp(PlotlyError, pattern, ff.create_scatterplotmatrix, df) def test_valid_diag_choice(self): # make sure that the diagonal param is valid df = pd.DataFrame([[1, 2, 3], [4, 5, 6]]) - self.assertRaises(PlotlyError, - ff.create_scatterplotmatrix, - df, diag='foo') + self.assertRaises(PlotlyError, ff.create_scatterplotmatrix, df, diag="foo") def test_forbidden_params(self): # check: the forbidden params of 'marker' in **kwargs df = pd.DataFrame([[1, 2, 3], [4, 5, 6]]) - kwargs = {'marker': {'size': 15}} + kwargs = {"marker": {"size": 15}} pattern = ( "Your kwargs dictionary cannot include the 'size', 'color' or " @@ -1044,425 +1650,566 @@ def test_forbidden_params(self): "'color' and 'colorscale are set internally." ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_scatterplotmatrix, - df, **kwargs) + self.assertRaisesRegexp( + PlotlyError, pattern, ff.create_scatterplotmatrix, df, **kwargs + ) def test_valid_index_choice(self): # check: index is a column name - df = pd.DataFrame([[1, 2], [3, 4]], columns=['apple', 'pear']) + df = pd.DataFrame([[1, 2], [3, 4]], columns=["apple", "pear"]) pattern = ( "Make sure you set the index input variable to one of the column " "names of your dataframe." ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_scatterplotmatrix, - df, index='grape') + self.assertRaisesRegexp( + PlotlyError, pattern, ff.create_scatterplotmatrix, df, index="grape" + ) def test_same_data_in_dataframe_columns(self): # check: either all numbers or strings in each dataframe column - df = pd.DataFrame([['a', 2], [3, 4]]) + df = pd.DataFrame([["a", 2], [3, 4]]) pattern = ( "Error in dataframe. Make sure all entries of each column are " "either numbers or strings." ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_scatterplotmatrix, - df) + self.assertRaisesRegexp(PlotlyError, pattern, ff.create_scatterplotmatrix, df) - df = pd.DataFrame([[1, 2], ['a', 4]]) + df = pd.DataFrame([[1, 2], ["a", 4]]) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_scatterplotmatrix, - df) + self.assertRaisesRegexp(PlotlyError, pattern, ff.create_scatterplotmatrix, df) def test_same_data_in_index(self): # check: either all numbers or strings in index column - df = pd.DataFrame([['a', 2], [3, 4]], columns=['apple', 'pear']) + df = pd.DataFrame([["a", 2], [3, 4]], columns=["apple", "pear"]) pattern = ( "Error in indexing column. Make sure all entries of each column " "are all numbers or all strings." ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_scatterplotmatrix, - df, index='apple') + self.assertRaisesRegexp( + PlotlyError, pattern, ff.create_scatterplotmatrix, df, index="apple" + ) - df = pd.DataFrame([[1, 2], ['a', 4]], columns=['apple', 'pear']) + df = pd.DataFrame([[1, 2], ["a", 4]], columns=["apple", "pear"]) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_scatterplotmatrix, - df, index='apple') + self.assertRaisesRegexp( + PlotlyError, pattern, ff.create_scatterplotmatrix, df, index="apple" + ) def test_valid_colormap(self): # check: the colormap argument is in a valid form - df = pd.DataFrame([[1, 2, 3], [4, 5, 6], [7, 8, 9]], - columns=['a', 'b', 'c']) + df = pd.DataFrame([[1, 2, 3], [4, 5, 6], [7, 8, 9]], columns=["a", "b", "c"]) # check: valid plotly scalename is entered - self.assertRaises(PlotlyError, - ff.create_scatterplotmatrix, - df, index='a', colormap='fake_scale') + self.assertRaises( + PlotlyError, + ff.create_scatterplotmatrix, + df, + index="a", + colormap="fake_scale", + ) pattern_rgb = ( - "Whoops! The elements in your rgb colors tuples cannot " - "exceed 255.0." + "Whoops! The elements in your rgb colors tuples cannot " "exceed 255.0." ) # check: proper 'rgb' color - self.assertRaisesRegexp(PlotlyError, pattern_rgb, - ff.create_scatterplotmatrix, - df, colormap='rgb(500, 1, 1)', index='c') + self.assertRaisesRegexp( + PlotlyError, + pattern_rgb, + ff.create_scatterplotmatrix, + df, + colormap="rgb(500, 1, 1)", + index="c", + ) - self.assertRaisesRegexp(PlotlyError, pattern_rgb, - ff.create_scatterplotmatrix, - df, colormap=['rgb(500, 1, 1)'], index='c') + self.assertRaisesRegexp( + PlotlyError, + pattern_rgb, + ff.create_scatterplotmatrix, + df, + colormap=["rgb(500, 1, 1)"], + index="c", + ) pattern_tuple = ( - "Whoops! The elements in your colors tuples cannot " - "exceed 1.0." + "Whoops! The elements in your colors tuples cannot " "exceed 1.0." ) # check: proper color tuple - self.assertRaisesRegexp(PlotlyError, pattern_tuple, - ff.create_scatterplotmatrix, - df, colormap=(2, 1, 1), index='c') + self.assertRaisesRegexp( + PlotlyError, + pattern_tuple, + ff.create_scatterplotmatrix, + df, + colormap=(2, 1, 1), + index="c", + ) - self.assertRaisesRegexp(PlotlyError, pattern_tuple, - ff.create_scatterplotmatrix, - df, colormap=[(2, 1, 1)], index='c') + self.assertRaisesRegexp( + PlotlyError, + pattern_tuple, + ff.create_scatterplotmatrix, + df, + colormap=[(2, 1, 1)], + index="c", + ) def test_valid_endpts(self): # check: the endpts is a list or a tuple - df = pd.DataFrame([[1, 2, 3], [4, 5, 6], [7, 8, 9]], - columns=['a', 'b', 'c']) + df = pd.DataFrame([[1, 2, 3], [4, 5, 6], [7, 8, 9]], columns=["a", "b", "c"]) pattern = ( "The intervals_endpts argument must be a list or tuple of a " "sequence of increasing numbers." ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_scatterplotmatrix, - df, index='a', colormap='Hot', endpts='foo') + self.assertRaisesRegexp( + PlotlyError, + pattern, + ff.create_scatterplotmatrix, + df, + index="a", + colormap="Hot", + endpts="foo", + ) # check: the endpts are a list of numbers - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_scatterplotmatrix, - df, index='a', colormap='Hot', endpts=['a']) + self.assertRaisesRegexp( + PlotlyError, + pattern, + ff.create_scatterplotmatrix, + df, + index="a", + colormap="Hot", + endpts=["a"], + ) # check: endpts is a list of INCREASING numbers - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_scatterplotmatrix, - df, index='a', colormap='Hot', endpts=[2, 1]) + self.assertRaisesRegexp( + PlotlyError, + pattern, + ff.create_scatterplotmatrix, + df, + index="a", + colormap="Hot", + endpts=[2, 1], + ) def test_dictionary_colormap(self): # if colormap is a dictionary, make sure it all the values in the # index column are keys in colormap - df = pd.DataFrame([['apple', 'happy'], ['pear', 'sad']], - columns=['Fruit', 'Emotion']) + df = pd.DataFrame( + [["apple", "happy"], ["pear", "sad"]], columns=["Fruit", "Emotion"] + ) - colormap = {'happy': 'rgb(5, 5, 5)'} + colormap = {"happy": "rgb(5, 5, 5)"} pattern = ( - "If colormap is a dictionary, all the names in the index " - "must be keys." + "If colormap is a dictionary, all the names in the index " "must be keys." ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_scatterplotmatrix, - df, index='Emotion', colormap=colormap) + self.assertRaisesRegexp( + PlotlyError, + pattern, + ff.create_scatterplotmatrix, + df, + index="Emotion", + colormap=colormap, + ) def test_scatter_plot_matrix(self): # check if test scatter plot matrix without index or theme matches # with the expected output - df = pd.DataFrame([[2, 'Apple'], [6, 'Pear'], - [-15, 'Apple'], [5, 'Pear'], - [-2, 'Apple'], [0, 'Apple']], - columns=['Numbers', 'Fruit']) + df = pd.DataFrame( + [ + [2, "Apple"], + [6, "Pear"], + [-15, "Apple"], + [5, "Pear"], + [-2, "Apple"], + [0, "Apple"], + ], + columns=["Numbers", "Fruit"], + ) test_scatter_plot_matrix = ff.create_scatterplotmatrix( - df=df, diag='box', height=1000, width=1000, size=13, - title='Scatterplot Matrix' + df=df, + diag="box", + height=1000, + width=1000, + size=13, + title="Scatterplot Matrix", ) exp_scatter_plot_matrix = { - 'data': [{'showlegend': False, - 'type': 'box', - 'xaxis': 'x', - 'y': [2, 6, -15, 5, -2, 0], - 'yaxis': 'y'}, - {'marker': {'size': 13}, - 'mode': 'markers', - 'showlegend': False, - 'type': 'scatter', - 'x': ['Apple', 'Pear', 'Apple', - 'Pear', 'Apple', 'Apple'], - 'xaxis': 'x2', - 'y': [2, 6, -15, 5, -2, 0], - 'yaxis': 'y2'}, - {'marker': {'size': 13}, - 'mode': 'markers', - 'showlegend': False, - 'type': 'scatter', - 'x': [2, 6, -15, 5, -2, 0], - 'xaxis': 'x3', - 'y': ['Apple', 'Pear', 'Apple', - 'Pear', 'Apple', 'Apple'], - 'yaxis': 'y3'}, - {'name': None, - 'showlegend': False, - 'type': 'box', - 'xaxis': 'x4', - 'y': ['Apple', 'Pear', 'Apple', - 'Pear', 'Apple', 'Apple'], - 'yaxis': 'y4'}], - 'layout': {'height': 1000, - 'showlegend': True, - 'title': {'text': 'Scatterplot Matrix'}, - 'width': 1000, - 'xaxis': {'anchor': 'y', - 'domain': [0.0, 0.45], - 'showticklabels': False}, - 'xaxis2': {'anchor': 'y2', - 'domain': [0.55, 1.0]}, - 'xaxis3': {'anchor': 'y3', - 'domain': [0.0, 0.45], - 'title': {'text': 'Numbers'}}, - 'xaxis4': {'anchor': 'y4', - 'domain': [0.55, 1.0], - 'showticklabels': False, - 'title': {'text': 'Fruit'}}, - 'yaxis': {'anchor': 'x', - 'domain': [0.575, 1.0], - 'title': {'text': 'Numbers'}}, - 'yaxis2': {'anchor': 'x2', - 'domain': [0.575, 1.0]}, - 'yaxis3': {'anchor': 'x3', - 'domain': [0.0, 0.425], - 'title': {'text': 'Fruit'}}, - 'yaxis4': {'anchor': 'x4', - 'domain': [0.0, 0.425]}} + "data": [ + { + "showlegend": False, + "type": "box", + "xaxis": "x", + "y": [2, 6, -15, 5, -2, 0], + "yaxis": "y", + }, + { + "marker": {"size": 13}, + "mode": "markers", + "showlegend": False, + "type": "scatter", + "x": ["Apple", "Pear", "Apple", "Pear", "Apple", "Apple"], + "xaxis": "x2", + "y": [2, 6, -15, 5, -2, 0], + "yaxis": "y2", + }, + { + "marker": {"size": 13}, + "mode": "markers", + "showlegend": False, + "type": "scatter", + "x": [2, 6, -15, 5, -2, 0], + "xaxis": "x3", + "y": ["Apple", "Pear", "Apple", "Pear", "Apple", "Apple"], + "yaxis": "y3", + }, + { + "name": None, + "showlegend": False, + "type": "box", + "xaxis": "x4", + "y": ["Apple", "Pear", "Apple", "Pear", "Apple", "Apple"], + "yaxis": "y4", + }, + ], + "layout": { + "height": 1000, + "showlegend": True, + "title": {"text": "Scatterplot Matrix"}, + "width": 1000, + "xaxis": { + "anchor": "y", + "domain": [0.0, 0.45], + "showticklabels": False, + }, + "xaxis2": {"anchor": "y2", "domain": [0.55, 1.0]}, + "xaxis3": { + "anchor": "y3", + "domain": [0.0, 0.45], + "title": {"text": "Numbers"}, + }, + "xaxis4": { + "anchor": "y4", + "domain": [0.55, 1.0], + "showticklabels": False, + "title": {"text": "Fruit"}, + }, + "yaxis": { + "anchor": "x", + "domain": [0.575, 1.0], + "title": {"text": "Numbers"}, + }, + "yaxis2": {"anchor": "x2", "domain": [0.575, 1.0]}, + "yaxis3": { + "anchor": "x3", + "domain": [0.0, 0.425], + "title": {"text": "Fruit"}, + }, + "yaxis4": {"anchor": "x4", "domain": [0.0, 0.425]}, + }, } - self.assert_fig_equal(test_scatter_plot_matrix['data'][0], - exp_scatter_plot_matrix['data'][0]) + self.assert_fig_equal( + test_scatter_plot_matrix["data"][0], exp_scatter_plot_matrix["data"][0] + ) - self.assert_fig_equal(test_scatter_plot_matrix['data'][1], - exp_scatter_plot_matrix['data'][1]) + self.assert_fig_equal( + test_scatter_plot_matrix["data"][1], exp_scatter_plot_matrix["data"][1] + ) - self.assert_fig_equal(test_scatter_plot_matrix['layout'], - exp_scatter_plot_matrix['layout']) + self.assert_fig_equal( + test_scatter_plot_matrix["layout"], exp_scatter_plot_matrix["layout"] + ) def test_scatter_plot_matrix_kwargs(self): # check if test scatter plot matrix matches with # the expected output - df = pd.DataFrame([[2, 'Apple'], [6, 'Pear'], - [-15, 'Apple'], [5, 'Pear'], - [-2, 'Apple'], [0, 'Apple']], - columns=['Numbers', 'Fruit']) + df = pd.DataFrame( + [ + [2, "Apple"], + [6, "Pear"], + [-15, "Apple"], + [5, "Pear"], + [-2, "Apple"], + [0, "Apple"], + ], + columns=["Numbers", "Fruit"], + ) test_scatter_plot_matrix = ff.create_scatterplotmatrix( - df, index='Fruit', endpts=[-10, -1], diag='histogram', - height=1000, width=1000, size=13, title='Scatterplot Matrix', - colormap='YlOrRd', marker=dict(symbol=136) + df, + index="Fruit", + endpts=[-10, -1], + diag="histogram", + height=1000, + width=1000, + size=13, + title="Scatterplot Matrix", + colormap="YlOrRd", + marker=dict(symbol=136), ) exp_scatter_plot_matrix = { - 'data': [{'marker': {'color': 'rgb(128, 0, 38)'}, - 'showlegend': False, - 'type': 'histogram', - 'x': [2, -15, -2, 0], - 'xaxis': 'x', - 'yaxis': 'y'}, - {'marker': {'color': 'rgb(255, 255, 204)'}, - 'showlegend': False, - 'type': 'histogram', - 'x': [6, 5], - 'xaxis': 'x', - 'yaxis': 'y'}], - 'layout': {'barmode': 'stack', - 'height': 1000, - 'showlegend': True, - 'title': {'text': 'Scatterplot Matrix'}, - 'width': 1000, - 'xaxis': {'anchor': 'y', - 'domain': [0.0, 1.0], - 'title': {'text': 'Numbers'}}, - 'yaxis': {'anchor': 'x', - 'domain': [0.0, 1.0], - 'title': {'text': 'Numbers'}}} + "data": [ + { + "marker": {"color": "rgb(128, 0, 38)"}, + "showlegend": False, + "type": "histogram", + "x": [2, -15, -2, 0], + "xaxis": "x", + "yaxis": "y", + }, + { + "marker": {"color": "rgb(255, 255, 204)"}, + "showlegend": False, + "type": "histogram", + "x": [6, 5], + "xaxis": "x", + "yaxis": "y", + }, + ], + "layout": { + "barmode": "stack", + "height": 1000, + "showlegend": True, + "title": {"text": "Scatterplot Matrix"}, + "width": 1000, + "xaxis": { + "anchor": "y", + "domain": [0.0, 1.0], + "title": {"text": "Numbers"}, + }, + "yaxis": { + "anchor": "x", + "domain": [0.0, 1.0], + "title": {"text": "Numbers"}, + }, + }, } - self.assert_fig_equal(test_scatter_plot_matrix['data'][0], - exp_scatter_plot_matrix['data'][0]) + self.assert_fig_equal( + test_scatter_plot_matrix["data"][0], exp_scatter_plot_matrix["data"][0] + ) - self.assert_fig_equal(test_scatter_plot_matrix['data'][1], - exp_scatter_plot_matrix['data'][1]) + self.assert_fig_equal( + test_scatter_plot_matrix["data"][1], exp_scatter_plot_matrix["data"][1] + ) - self.assert_fig_equal(test_scatter_plot_matrix['layout'], - exp_scatter_plot_matrix['layout']) + self.assert_fig_equal( + test_scatter_plot_matrix["layout"], exp_scatter_plot_matrix["layout"] + ) class TestGantt(NumpyTestUtilsMixin, TestCaseNoTemplate): - def test_df_dataframe(self): # validate dataframe has correct column names - df1 = pd.DataFrame([[2, 'Apple']], columns=['Numbers', 'Fruit']) + df1 = pd.DataFrame([[2, "Apple"]], columns=["Numbers", "Fruit"]) self.assertRaises(PlotlyError, ff.create_gantt, df1) def test_df_dataframe_all_args(self): # check if gantt chart matches with expected output - df = pd.DataFrame([['Job A', '2009-01-01', '2009-02-30'], - ['Job B', '2009-03-05', '2009-04-15']], - columns=['Task', 'Start', 'Finish']) + df = pd.DataFrame( + [ + ["Job A", "2009-01-01", "2009-02-30"], + ["Job B", "2009-03-05", "2009-04-15"], + ], + columns=["Task", "Start", "Finish"], + ) test_gantt_chart = ff.create_gantt(df) - exp_gantt_chart = {'data': [{'marker': {'color': 'white'}, - 'name': '', - 'type': 'scatter', - 'x': ['2009-01-01', '2009-02-30'], - 'y': [0, 0]}, - {'marker': {'color': 'white'}, - 'name': '', - 'type': 'scatter', - 'x': ['2009-03-05', '2009-04-15'], - 'y': [1, 1]}], - 'layout': {'height': 600, - 'hovermode': 'closest', - 'shapes': [{'fillcolor': 'rgb(31, 119, 180)', - 'line': {'width': 0}, - 'opacity': 1, - 'type': 'rect', - 'x0': '2009-01-01', - 'x1': '2009-02-30', - 'xref': 'x', - 'y0': -0.2, - 'y1': 0.2, - 'yref': 'y'}, - {'fillcolor': 'rgb(255, 127, 14)', - 'line': {'width': 0}, - 'opacity': 1, - 'type': 'rect', - 'x0': '2009-03-05', - 'x1': '2009-04-15', - 'xref': 'x', - 'y0': 0.8, - 'y1': 1.2, - 'yref': 'y'}], - 'showlegend': False, - 'title': {'text': 'Gantt Chart'}, - 'width': 900, - 'xaxis': {'rangeselector': {'buttons': [{'count': 7, - 'label': '1w', - 'step': 'day', - 'stepmode': 'backward'}, - {'count': 1, - 'label': '1m', - 'step': 'month', - 'stepmode': 'backward'}, - {'count': 6, - 'label': '6m', - 'step': 'month', - 'stepmode': 'backward'}, - {'count': 1, - 'label': 'YTD', - 'step': 'year', - 'stepmode': 'todate'}, - {'count': 1, - 'label': '1y', - 'step': 'year', - 'stepmode': 'backward'}, - {'step': 'all'}]}, - 'showgrid': False, - 'type': 'date', - 'zeroline': False}, - 'yaxis': {'autorange': False, - 'range': [-1, 3], - 'showgrid': False, - 'ticktext': ['Job A', 'Job B'], - 'tickvals': [0, 1], - 'zeroline': False}}} - - self.assert_fig_equal(test_gantt_chart['data'][0], - exp_gantt_chart['data'][0]) - - self.assert_fig_equal(test_gantt_chart['layout'], - exp_gantt_chart['layout']) + exp_gantt_chart = { + "data": [ + { + "marker": {"color": "white"}, + "name": "", + "type": "scatter", + "x": ["2009-01-01", "2009-02-30"], + "y": [0, 0], + }, + { + "marker": {"color": "white"}, + "name": "", + "type": "scatter", + "x": ["2009-03-05", "2009-04-15"], + "y": [1, 1], + }, + ], + "layout": { + "height": 600, + "hovermode": "closest", + "shapes": [ + { + "fillcolor": "rgb(31, 119, 180)", + "line": {"width": 0}, + "opacity": 1, + "type": "rect", + "x0": "2009-01-01", + "x1": "2009-02-30", + "xref": "x", + "y0": -0.2, + "y1": 0.2, + "yref": "y", + }, + { + "fillcolor": "rgb(255, 127, 14)", + "line": {"width": 0}, + "opacity": 1, + "type": "rect", + "x0": "2009-03-05", + "x1": "2009-04-15", + "xref": "x", + "y0": 0.8, + "y1": 1.2, + "yref": "y", + }, + ], + "showlegend": False, + "title": {"text": "Gantt Chart"}, + "width": 900, + "xaxis": { + "rangeselector": { + "buttons": [ + { + "count": 7, + "label": "1w", + "step": "day", + "stepmode": "backward", + }, + { + "count": 1, + "label": "1m", + "step": "month", + "stepmode": "backward", + }, + { + "count": 6, + "label": "6m", + "step": "month", + "stepmode": "backward", + }, + { + "count": 1, + "label": "YTD", + "step": "year", + "stepmode": "todate", + }, + { + "count": 1, + "label": "1y", + "step": "year", + "stepmode": "backward", + }, + {"step": "all"}, + ] + }, + "showgrid": False, + "type": "date", + "zeroline": False, + }, + "yaxis": { + "autorange": False, + "range": [-1, 3], + "showgrid": False, + "ticktext": ["Job A", "Job B"], + "tickvals": [0, 1], + "zeroline": False, + }, + }, + } + self.assert_fig_equal(test_gantt_chart["data"][0], exp_gantt_chart["data"][0]) -class TestViolin(NumpyTestUtilsMixin, TestCaseNoTemplate): + self.assert_fig_equal(test_gantt_chart["layout"], exp_gantt_chart["layout"]) + +class TestViolin(NumpyTestUtilsMixin, TestCaseNoTemplate): def test_colors_validation(self): # check: colors is in an acceptable form data = [1, 5, 8] - pattern = ("Whoops! The elements in your rgb colors tuples cannot " - "exceed 255.0.") + pattern = ( + "Whoops! The elements in your rgb colors tuples cannot " "exceed 255.0." + ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_violin, - data, colors='rgb(300, 2, 3)') + self.assertRaisesRegexp( + PlotlyError, pattern, ff.create_violin, data, colors="rgb(300, 2, 3)" + ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_violin, - data, colors=['rgb(300, 2, 3)']) + self.assertRaisesRegexp( + PlotlyError, pattern, ff.create_violin, data, colors=["rgb(300, 2, 3)"] + ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_violin, - data, colors={'apple': 'rgb(300, 2, 3)'}) + self.assertRaisesRegexp( + PlotlyError, + pattern, + ff.create_violin, + data, + colors={"apple": "rgb(300, 2, 3)"}, + ) - pattern2 = ("Whoops! The elements in your colors tuples cannot " - "exceed 1.0.") + pattern2 = "Whoops! The elements in your colors tuples cannot " "exceed 1.0." - self.assertRaisesRegexp(PlotlyError, pattern2, - ff.create_violin, - data, colors=(1.1, 1, 1)) + self.assertRaisesRegexp( + PlotlyError, pattern2, ff.create_violin, data, colors=(1.1, 1, 1) + ) - self.assertRaisesRegexp(PlotlyError, pattern2, - ff.create_violin, - data, colors=[(1.1, 1, 1)]) + self.assertRaisesRegexp( + PlotlyError, pattern2, ff.create_violin, data, colors=[(1.1, 1, 1)] + ) - self.assertRaisesRegexp(PlotlyError, pattern2, - ff.create_violin, - data, colors={'apple': (1.1, 1, 1)}) + self.assertRaisesRegexp( + PlotlyError, pattern2, ff.create_violin, data, colors={"apple": (1.1, 1, 1)} + ) # check: if valid string color is inputted - self.assertRaises(PlotlyError, ff.create_violin, - data, colors='foo') + self.assertRaises(PlotlyError, ff.create_violin, data, colors="foo") def test_data_header(self): # make sure data_header is entered - data = pd.DataFrame([['apple', 2], ['pear', 4]], - columns=['a', 'b']) + data = pd.DataFrame([["apple", 2], ["pear", 4]], columns=["a", "b"]) - pattern = ("data_header must be the column name with the desired " - "numeric data for the violin plot.") + pattern = ( + "data_header must be the column name with the desired " + "numeric data for the violin plot." + ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_violin, data, - group_header='a', colors=['rgb(1, 2, 3)']) + self.assertRaisesRegexp( + PlotlyError, + pattern, + ff.create_violin, + data, + group_header="a", + colors=["rgb(1, 2, 3)"], + ) def test_data_as_list(self): @@ -1470,19 +2217,18 @@ def test_data_as_list(self): data = [] - pattern = ("If data is a list, it must be nonempty and contain " - "either numbers or dictionaries.") + pattern = ( + "If data is a list, it must be nonempty and contain " + "either numbers or dictionaries." + ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_violin, - data) + self.assertRaisesRegexp(PlotlyError, pattern, ff.create_violin, data) - data = [1, 'foo'] + data = [1, "foo"] - pattern2 = ("If data is a list, it must contain only numbers.") + pattern2 = "If data is a list, it must contain only numbers." - self.assertRaisesRegexp(PlotlyError, pattern2, - ff.create_violin, data) + self.assertRaisesRegexp(PlotlyError, pattern2, ff.create_violin, data) def test_dataframe_input(self): @@ -1490,83 +2236,113 @@ def test_dataframe_input(self): data = [1, 2, 3] - pattern = ("Error. You must use a pandas DataFrame if you are using " - "a group header.") + pattern = ( + "Error. You must use a pandas DataFrame if you are using " "a group header." + ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_violin, data, - group_header=True) + self.assertRaisesRegexp( + PlotlyError, pattern, ff.create_violin, data, group_header=True + ) def test_colors_dict(self): # check: if colorscale is True, make sure colors is not a dictionary - data = pd.DataFrame([['apple', 2], ['pear', 4]], - columns=['a', 'b']) + data = pd.DataFrame([["apple", 2], ["pear", 4]], columns=["a", "b"]) - pattern = ("The colors param cannot be a dictionary if you are " - "using a colorscale.") + pattern = ( + "The colors param cannot be a dictionary if you are " "using a colorscale." + ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_violin, data, - data_header='b', group_header='a', - use_colorscale=True, - colors={'a': 'rgb(1, 2, 3)'}) + self.assertRaisesRegexp( + PlotlyError, + pattern, + ff.create_violin, + data, + data_header="b", + group_header="a", + use_colorscale=True, + colors={"a": "rgb(1, 2, 3)"}, + ) # check: colors contains all group names as keys - pattern2 = ("If colors is a dictionary, all the group names must " - "appear as keys in colors.") + pattern2 = ( + "If colors is a dictionary, all the group names must " + "appear as keys in colors." + ) - self.assertRaisesRegexp(PlotlyError, pattern2, - ff.create_violin, data, - data_header='b', group_header='a', - use_colorscale=False, - colors={'a': 'rgb(1, 2, 3)'}) + self.assertRaisesRegexp( + PlotlyError, + pattern2, + ff.create_violin, + data, + data_header="b", + group_header="a", + use_colorscale=False, + colors={"a": "rgb(1, 2, 3)"}, + ) def test_valid_colorscale(self): # check: if colorscale is enabled, colors is a list with 2+ items - data = pd.DataFrame([['apple', 2], ['pear', 4]], - columns=['a', 'b']) + data = pd.DataFrame([["apple", 2], ["pear", 4]], columns=["a", "b"]) - pattern = ("colors must be a list with at least 2 colors. A Plotly " - "scale is allowed.") + pattern = ( + "colors must be a list with at least 2 colors. A Plotly " + "scale is allowed." + ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_violin, data, - data_header='b', group_header='a', - use_colorscale=True, - colors='rgb(1, 2, 3)') + self.assertRaisesRegexp( + PlotlyError, + pattern, + ff.create_violin, + data, + data_header="b", + group_header="a", + use_colorscale=True, + colors="rgb(1, 2, 3)", + ) def test_group_stats(self): # check: group_stats is a dictionary - data = pd.DataFrame([['apple', 2], ['pear', 4]], - columns=['a', 'b']) + data = pd.DataFrame([["apple", 2], ["pear", 4]], columns=["a", "b"]) - pattern = ("Your group_stats param must be a dictionary.") + pattern = "Your group_stats param must be a dictionary." - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_violin, data, - data_header='b', group_header='a', - use_colorscale=True, - colors=['rgb(1, 2, 3)', 'rgb(4, 5, 6)'], - group_stats=1) + self.assertRaisesRegexp( + PlotlyError, + pattern, + ff.create_violin, + data, + data_header="b", + group_header="a", + use_colorscale=True, + colors=["rgb(1, 2, 3)", "rgb(4, 5, 6)"], + group_stats=1, + ) # check: all groups are represented as keys in group_stats - pattern2 = ("All values/groups in the index column must be " - "represented as a key in group_stats.") + pattern2 = ( + "All values/groups in the index column must be " + "represented as a key in group_stats." + ) - self.assertRaisesRegexp(PlotlyError, pattern2, - ff.create_violin, data, - data_header='b', group_header='a', - use_colorscale=True, - colors=['rgb(1, 2, 3)', 'rgb(4, 5, 6)'], - group_stats={'apple': 1}) + self.assertRaisesRegexp( + PlotlyError, + pattern2, + ff.create_violin, + data, + data_header="b", + group_header="a", + use_colorscale=True, + colors=["rgb(1, 2, 3)", "rgb(4, 5, 6)"], + group_stats={"apple": 1}, + ) def test_violin_fig(self): @@ -1575,500 +2351,815 @@ def test_violin_fig(self): test_violin = ff.create_violin(data=[1, 2]) exp_violin = { - 'data': [{'fill': 'tonextx', - 'fillcolor': 'rgb(31, 119, 180)', - 'hoverinfo': 'text', - 'line': {'color': 'rgb(0, 0, 0)', - 'shape': 'spline', - 'width': 0.5}, - 'mode': 'lines', - 'name': '', - 'opacity': 0.5, - 'text': ['(pdf(y), y)=(-0.41, 1.00)', - '(pdf(y), y)=(-0.41, 1.01)', - '(pdf(y), y)=(-0.42, 1.02)', - '(pdf(y), y)=(-0.42, 1.03)', - '(pdf(y), y)=(-0.42, 1.04)', - '(pdf(y), y)=(-0.42, 1.05)', - '(pdf(y), y)=(-0.42, 1.06)', - '(pdf(y), y)=(-0.43, 1.07)', - '(pdf(y), y)=(-0.43, 1.08)', - '(pdf(y), y)=(-0.43, 1.09)', - '(pdf(y), y)=(-0.43, 1.10)', - '(pdf(y), y)=(-0.43, 1.11)', - '(pdf(y), y)=(-0.43, 1.12)', - '(pdf(y), y)=(-0.44, 1.13)', - '(pdf(y), y)=(-0.44, 1.14)', - '(pdf(y), y)=(-0.44, 1.15)', - '(pdf(y), y)=(-0.44, 1.16)', - '(pdf(y), y)=(-0.44, 1.17)', - '(pdf(y), y)=(-0.44, 1.18)', - '(pdf(y), y)=(-0.45, 1.19)', - '(pdf(y), y)=(-0.45, 1.20)', - '(pdf(y), y)=(-0.45, 1.21)', - '(pdf(y), y)=(-0.45, 1.22)', - '(pdf(y), y)=(-0.45, 1.23)', - '(pdf(y), y)=(-0.45, 1.24)', - '(pdf(y), y)=(-0.45, 1.25)', - '(pdf(y), y)=(-0.45, 1.26)', - '(pdf(y), y)=(-0.45, 1.27)', - '(pdf(y), y)=(-0.46, 1.28)', - '(pdf(y), y)=(-0.46, 1.29)', - '(pdf(y), y)=(-0.46, 1.30)', - '(pdf(y), y)=(-0.46, 1.31)', - '(pdf(y), y)=(-0.46, 1.32)', - '(pdf(y), y)=(-0.46, 1.33)', - '(pdf(y), y)=(-0.46, 1.34)', - '(pdf(y), y)=(-0.46, 1.35)', - '(pdf(y), y)=(-0.46, 1.36)', - '(pdf(y), y)=(-0.46, 1.37)', - '(pdf(y), y)=(-0.46, 1.38)', - '(pdf(y), y)=(-0.46, 1.39)', - '(pdf(y), y)=(-0.46, 1.40)', - '(pdf(y), y)=(-0.46, 1.41)', - '(pdf(y), y)=(-0.46, 1.42)', - '(pdf(y), y)=(-0.47, 1.43)', - '(pdf(y), y)=(-0.47, 1.44)', - '(pdf(y), y)=(-0.47, 1.45)', - '(pdf(y), y)=(-0.47, 1.46)', - '(pdf(y), y)=(-0.47, 1.47)', - '(pdf(y), y)=(-0.47, 1.48)', - '(pdf(y), y)=(-0.47, 1.49)', - '(pdf(y), y)=(-0.47, 1.51)', - '(pdf(y), y)=(-0.47, 1.52)', - '(pdf(y), y)=(-0.47, 1.53)', - '(pdf(y), y)=(-0.47, 1.54)', - '(pdf(y), y)=(-0.47, 1.55)', - '(pdf(y), y)=(-0.47, 1.56)', - '(pdf(y), y)=(-0.47, 1.57)', - '(pdf(y), y)=(-0.46, 1.58)', - '(pdf(y), y)=(-0.46, 1.59)', - '(pdf(y), y)=(-0.46, 1.60)', - '(pdf(y), y)=(-0.46, 1.61)', - '(pdf(y), y)=(-0.46, 1.62)', - '(pdf(y), y)=(-0.46, 1.63)', - '(pdf(y), y)=(-0.46, 1.64)', - '(pdf(y), y)=(-0.46, 1.65)', - '(pdf(y), y)=(-0.46, 1.66)', - '(pdf(y), y)=(-0.46, 1.67)', - '(pdf(y), y)=(-0.46, 1.68)', - '(pdf(y), y)=(-0.46, 1.69)', - '(pdf(y), y)=(-0.46, 1.70)', - '(pdf(y), y)=(-0.46, 1.71)', - '(pdf(y), y)=(-0.46, 1.72)', - '(pdf(y), y)=(-0.45, 1.73)', - '(pdf(y), y)=(-0.45, 1.74)', - '(pdf(y), y)=(-0.45, 1.75)', - '(pdf(y), y)=(-0.45, 1.76)', - '(pdf(y), y)=(-0.45, 1.77)', - '(pdf(y), y)=(-0.45, 1.78)', - '(pdf(y), y)=(-0.45, 1.79)', - '(pdf(y), y)=(-0.45, 1.80)', - '(pdf(y), y)=(-0.45, 1.81)', - '(pdf(y), y)=(-0.44, 1.82)', - '(pdf(y), y)=(-0.44, 1.83)', - '(pdf(y), y)=(-0.44, 1.84)', - '(pdf(y), y)=(-0.44, 1.85)', - '(pdf(y), y)=(-0.44, 1.86)', - '(pdf(y), y)=(-0.44, 1.87)', - '(pdf(y), y)=(-0.43, 1.88)', - '(pdf(y), y)=(-0.43, 1.89)', - '(pdf(y), y)=(-0.43, 1.90)', - '(pdf(y), y)=(-0.43, 1.91)', - '(pdf(y), y)=(-0.43, 1.92)', - '(pdf(y), y)=(-0.43, 1.93)', - '(pdf(y), y)=(-0.42, 1.94)', - '(pdf(y), y)=(-0.42, 1.95)', - '(pdf(y), y)=(-0.42, 1.96)', - '(pdf(y), y)=(-0.42, 1.97)', - '(pdf(y), y)=(-0.42, 1.98)', - '(pdf(y), y)=(-0.41, 1.99)', - '(pdf(y), y)=(-0.41, 2.00)'], - 'type': 'scatter', - 'x': np.array([-0.41064744, -0.41293151, -0.41516635, - -0.41735177, -0.41948764, -0.42157385, - -0.42361031, -0.42559697, -0.42753381, - -0.42942082, -0.43125804, -0.43304552, - -0.43478334, -0.4364716, -0.4381104, - -0.4396999, -0.44124025, -0.44273162, - -0.4441742, -0.4455682, -0.44691382, - -0.44821129, -0.44946086, -0.45066275, - -0.45181723, -0.45292454, -0.45398495, - -0.45499871, -0.45596609, -0.45688735, - -0.45776275, -0.45859254, -0.45937698, - -0.46011631, -0.46081078, -0.46146061, - -0.46206603, -0.46262726, -0.46314449, - -0.46361791, -0.4640477, -0.46443404, - -0.46477705, -0.46507689, -0.46533367, - -0.46554749, -0.46571845, -0.4658466, - -0.46593201, -0.4659747, -0.4659747, - -0.46593201, -0.4658466, -0.46571845, - -0.46554749, -0.46533367, -0.46507689, - -0.46477705, -0.46443404, -0.4640477, - -0.46361791, -0.46314449, -0.46262726, - -0.46206603, -0.46146061, -0.46081078, - -0.46011631, -0.45937698, -0.45859254, - -0.45776275, -0.45688735, -0.45596609, - -0.45499871, -0.45398495, -0.45292454, - -0.45181723, -0.45066275, -0.44946086, - -0.44821129, -0.44691382, -0.4455682, - -0.4441742, -0.44273162, -0.44124025, - -0.4396999, -0.4381104, -0.4364716, - -0.43478334, -0.43304552, -0.43125804, - -0.42942082, -0.42753381, -0.42559697, - -0.42361031, -0.42157385, -0.41948764, - -0.41735177, -0.41516635, -0.41293151, - -0.41064744]), - 'y': np.array([1., 1.01010101, 1.02020202, - 1.03030303, 1.04040404, 1.05050505, - 1.06060606, 1.07070707, 1.08080808, - 1.09090909, 1.1010101, 1.11111111, - 1.12121212, 1.13131313, 1.14141414, - 1.15151515, 1.16161616, 1.17171717, - 1.18181818, 1.19191919, 1.2020202, - 1.21212121, 1.22222222, 1.23232323, - 1.24242424, 1.25252525, 1.26262626, - 1.27272727, 1.28282828, 1.29292929, - 1.3030303, 1.31313131, 1.32323232, - 1.33333333, 1.34343434, 1.35353535, - 1.36363636, 1.37373737, 1.38383838, - 1.39393939, 1.4040404, 1.41414141, - 1.42424242, 1.43434343, 1.44444444, - 1.45454545, 1.46464646, 1.47474747, - 1.48484848, 1.49494949, 1.50505051, - 1.51515152, 1.52525253, 1.53535354, - 1.54545455, 1.55555556, 1.56565657, - 1.57575758, 1.58585859, 1.5959596, - 1.60606061, 1.61616162, 1.62626263, - 1.63636364, 1.64646465, 1.65656566, - 1.66666667, 1.67676768, 1.68686869, - 1.6969697, 1.70707071, 1.71717172, - 1.72727273, 1.73737374, 1.74747475, - 1.75757576, 1.76767677, 1.77777778, - 1.78787879, 1.7979798, 1.80808081, - 1.81818182, 1.82828283, 1.83838384, - 1.84848485, 1.85858586, 1.86868687, - 1.87878788, 1.88888889, 1.8989899, - 1.90909091, 1.91919192, 1.92929293, - 1.93939394, 1.94949495, 1.95959596, - 1.96969697, 1.97979798, 1.98989899, - 2.])}, - {'fill': 'tonextx', - 'fillcolor': 'rgb(31, 119, 180)', - 'hoverinfo': 'text', - 'line': {'color': 'rgb(0, 0, 0)', - 'shape': 'spline', - 'width': 0.5}, - 'mode': 'lines', - 'name': '', - 'opacity': 0.5, - 'text': ['(pdf(y), y)=(0.41, 1.00)', - '(pdf(y), y)=(0.41, 1.01)', - '(pdf(y), y)=(0.42, 1.02)', - '(pdf(y), y)=(0.42, 1.03)', - '(pdf(y), y)=(0.42, 1.04)', - '(pdf(y), y)=(0.42, 1.05)', - '(pdf(y), y)=(0.42, 1.06)', - '(pdf(y), y)=(0.43, 1.07)', - '(pdf(y), y)=(0.43, 1.08)', - '(pdf(y), y)=(0.43, 1.09)', - '(pdf(y), y)=(0.43, 1.10)', - '(pdf(y), y)=(0.43, 1.11)', - '(pdf(y), y)=(0.43, 1.12)', - '(pdf(y), y)=(0.44, 1.13)', - '(pdf(y), y)=(0.44, 1.14)', - '(pdf(y), y)=(0.44, 1.15)', - '(pdf(y), y)=(0.44, 1.16)', - '(pdf(y), y)=(0.44, 1.17)', - '(pdf(y), y)=(0.44, 1.18)', - '(pdf(y), y)=(0.45, 1.19)', - '(pdf(y), y)=(0.45, 1.20)', - '(pdf(y), y)=(0.45, 1.21)', - '(pdf(y), y)=(0.45, 1.22)', - '(pdf(y), y)=(0.45, 1.23)', - '(pdf(y), y)=(0.45, 1.24)', - '(pdf(y), y)=(0.45, 1.25)', - '(pdf(y), y)=(0.45, 1.26)', - '(pdf(y), y)=(0.45, 1.27)', - '(pdf(y), y)=(0.46, 1.28)', - '(pdf(y), y)=(0.46, 1.29)', - '(pdf(y), y)=(0.46, 1.30)', - '(pdf(y), y)=(0.46, 1.31)', - '(pdf(y), y)=(0.46, 1.32)', - '(pdf(y), y)=(0.46, 1.33)', - '(pdf(y), y)=(0.46, 1.34)', - '(pdf(y), y)=(0.46, 1.35)', - '(pdf(y), y)=(0.46, 1.36)', - '(pdf(y), y)=(0.46, 1.37)', - '(pdf(y), y)=(0.46, 1.38)', - '(pdf(y), y)=(0.46, 1.39)', - '(pdf(y), y)=(0.46, 1.40)', - '(pdf(y), y)=(0.46, 1.41)', - '(pdf(y), y)=(0.46, 1.42)', - '(pdf(y), y)=(0.47, 1.43)', - '(pdf(y), y)=(0.47, 1.44)', - '(pdf(y), y)=(0.47, 1.45)', - '(pdf(y), y)=(0.47, 1.46)', - '(pdf(y), y)=(0.47, 1.47)', - '(pdf(y), y)=(0.47, 1.48)', - '(pdf(y), y)=(0.47, 1.49)', - '(pdf(y), y)=(0.47, 1.51)', - '(pdf(y), y)=(0.47, 1.52)', - '(pdf(y), y)=(0.47, 1.53)', - '(pdf(y), y)=(0.47, 1.54)', - '(pdf(y), y)=(0.47, 1.55)', - '(pdf(y), y)=(0.47, 1.56)', - '(pdf(y), y)=(0.47, 1.57)', - '(pdf(y), y)=(0.46, 1.58)', - '(pdf(y), y)=(0.46, 1.59)', - '(pdf(y), y)=(0.46, 1.60)', - '(pdf(y), y)=(0.46, 1.61)', - '(pdf(y), y)=(0.46, 1.62)', - '(pdf(y), y)=(0.46, 1.63)', - '(pdf(y), y)=(0.46, 1.64)', - '(pdf(y), y)=(0.46, 1.65)', - '(pdf(y), y)=(0.46, 1.66)', - '(pdf(y), y)=(0.46, 1.67)', - '(pdf(y), y)=(0.46, 1.68)', - '(pdf(y), y)=(0.46, 1.69)', - '(pdf(y), y)=(0.46, 1.70)', - '(pdf(y), y)=(0.46, 1.71)', - '(pdf(y), y)=(0.46, 1.72)', - '(pdf(y), y)=(0.45, 1.73)', - '(pdf(y), y)=(0.45, 1.74)', - '(pdf(y), y)=(0.45, 1.75)', - '(pdf(y), y)=(0.45, 1.76)', - '(pdf(y), y)=(0.45, 1.77)', - '(pdf(y), y)=(0.45, 1.78)', - '(pdf(y), y)=(0.45, 1.79)', - '(pdf(y), y)=(0.45, 1.80)', - '(pdf(y), y)=(0.45, 1.81)', - '(pdf(y), y)=(0.44, 1.82)', - '(pdf(y), y)=(0.44, 1.83)', - '(pdf(y), y)=(0.44, 1.84)', - '(pdf(y), y)=(0.44, 1.85)', - '(pdf(y), y)=(0.44, 1.86)', - '(pdf(y), y)=(0.44, 1.87)', - '(pdf(y), y)=(0.43, 1.88)', - '(pdf(y), y)=(0.43, 1.89)', - '(pdf(y), y)=(0.43, 1.90)', - '(pdf(y), y)=(0.43, 1.91)', - '(pdf(y), y)=(0.43, 1.92)', - '(pdf(y), y)=(0.43, 1.93)', - '(pdf(y), y)=(0.42, 1.94)', - '(pdf(y), y)=(0.42, 1.95)', - '(pdf(y), y)=(0.42, 1.96)', - '(pdf(y), y)=(0.42, 1.97)', - '(pdf(y), y)=(0.42, 1.98)', - '(pdf(y), y)=(0.41, 1.99)', - '(pdf(y), y)=(0.41, 2.00)'], - 'type': 'scatter', - 'x': np.array([0.41064744, 0.41293151, 0.41516635, - 0.41735177, 0.41948764, 0.42157385, - 0.42361031, 0.42559697, 0.42753381, - 0.42942082, 0.43125804, 0.43304552, - 0.43478334, 0.4364716, 0.4381104, - 0.4396999, 0.44124025, 0.44273162, - 0.4441742, 0.4455682, 0.44691382, - 0.44821129, 0.44946086, 0.45066275, - 0.45181723, 0.45292454, 0.45398495, - 0.45499871, 0.45596609, 0.45688735, - 0.45776275, 0.45859254, 0.45937698, - 0.46011631, 0.46081078, 0.46146061, - 0.46206603, 0.46262726, 0.46314449, - 0.46361791, 0.4640477, 0.46443404, - 0.46477705, 0.46507689, 0.46533367, - 0.46554749, 0.46571845, 0.4658466, - 0.46593201, 0.4659747, 0.4659747, - 0.46593201, 0.4658466, 0.46571845, - 0.46554749, 0.46533367, 0.46507689, - 0.46477705, 0.46443404, 0.4640477, - 0.46361791, 0.46314449, 0.46262726, - 0.46206603, 0.46146061, 0.46081078, - 0.46011631, 0.45937698, 0.45859254, - 0.45776275, 0.45688735, 0.45596609, - 0.45499871, 0.45398495, 0.45292454, - 0.45181723, 0.45066275, 0.44946086, - 0.44821129, 0.44691382, 0.4455682, - 0.4441742, 0.44273162, 0.44124025, - 0.4396999, 0.4381104, 0.4364716, - 0.43478334, 0.43304552, 0.43125804, - 0.42942082, 0.42753381, 0.42559697, - 0.42361031, 0.42157385, 0.41948764, - 0.41735177, 0.41516635, 0.41293151, - 0.41064744]), - 'y': np.array([1., 1.01010101, 1.02020202, - 1.03030303, 1.04040404, 1.05050505, - 1.06060606, 1.07070707, 1.08080808, - 1.09090909, 1.1010101, 1.11111111, - 1.12121212, 1.13131313, 1.14141414, - 1.15151515, 1.16161616, 1.17171717, - 1.18181818, 1.19191919, 1.2020202, - 1.21212121, 1.22222222, 1.23232323, - 1.24242424, 1.25252525, 1.26262626, - 1.27272727, 1.28282828, 1.29292929, - 1.3030303, 1.31313131, 1.32323232, - 1.33333333, 1.34343434, 1.35353535, - 1.36363636, 1.37373737, 1.38383838, - 1.39393939, 1.4040404, 1.41414141, - 1.42424242, 1.43434343, 1.44444444, - 1.45454545, 1.46464646, 1.47474747, - 1.48484848, 1.49494949, 1.50505051, - 1.51515152, 1.52525253, 1.53535354, - 1.54545455, 1.55555556, 1.56565657, - 1.57575758, 1.58585859, 1.5959596, - 1.60606061, 1.61616162, 1.62626263, - 1.63636364, 1.64646465, 1.65656566, - 1.66666667, 1.67676768, 1.68686869, - 1.6969697, 1.70707071, 1.71717172, - 1.72727273, 1.73737374, 1.74747475, - 1.75757576, 1.76767677, 1.77777778, - 1.78787879, 1.7979798, 1.80808081, - 1.81818182, 1.82828283, 1.83838384, - 1.84848485, 1.85858586, 1.86868687, - 1.87878788, 1.88888889, 1.8989899, - 1.90909091, 1.91919192, 1.92929293, - 1.93939394, 1.94949495, 1.95959596, - 1.96969697, 1.97979798, 1.98989899, - 2.])}, - {'line': {'color': 'rgb(0, 0, 0)', 'width': 1.5}, - 'mode': 'lines', - 'name': '', - 'type': 'scatter', - 'x': [0, 0], - 'y': [1.0, 2.0]}, - {'hoverinfo': 'text', - 'line': {'color': 'rgb(0, 0, 0)', 'width': 4}, - 'mode': 'lines', - 'text': ['lower-quartile: 1.00', - 'upper-quartile: 2.00'], - 'type': 'scatter', - 'x': [0, 0], - 'y': [1.0, 2.0]}, - {'hoverinfo': 'text', - 'marker': {'color': 'rgb(255, 255, 255)', - 'symbol': 'square'}, - 'mode': 'markers', - 'text': ['median: 1.50'], - 'type': 'scatter', - 'x': [0], - 'y': [1.5]}, - {'hoverinfo': 'y', - 'marker': {'color': 'rgb(31, 119, 180)', - 'symbol': 'line-ew-open'}, - 'mode': 'markers', - 'name': '', - 'showlegend': False, - 'type': 'scatter', - 'x': [-0.55916964093970667, -0.55916964093970667], - 'y': np.array([1., 2.])}], - 'layout': {'autosize': False, - 'font': {'size': 11}, - 'height': 450, - 'hovermode': 'closest', - 'showlegend': False, - 'title': {'text': 'Violin and Rug Plot'}, - 'width': 600, - 'xaxis': {'mirror': False, - 'range': [-0.65916964093970665, - 0.56597470078308887], - 'showgrid': False, - 'showline': False, - 'showticklabels': False, - 'ticks': '', - 'title': {'text': ''}, - 'zeroline': False}, - 'yaxis': {'autorange': True, - 'mirror': False, - 'showgrid': False, - 'showline': False, - 'showticklabels': False, - 'ticklen': 4, - 'ticks': '', - 'title': {'text': ''}, - 'zeroline': False}}} + "data": [ + { + "fill": "tonextx", + "fillcolor": "rgb(31, 119, 180)", + "hoverinfo": "text", + "line": {"color": "rgb(0, 0, 0)", "shape": "spline", "width": 0.5}, + "mode": "lines", + "name": "", + "opacity": 0.5, + "text": [ + "(pdf(y), y)=(-0.41, 1.00)", + "(pdf(y), y)=(-0.41, 1.01)", + "(pdf(y), y)=(-0.42, 1.02)", + "(pdf(y), y)=(-0.42, 1.03)", + "(pdf(y), y)=(-0.42, 1.04)", + "(pdf(y), y)=(-0.42, 1.05)", + "(pdf(y), y)=(-0.42, 1.06)", + "(pdf(y), y)=(-0.43, 1.07)", + "(pdf(y), y)=(-0.43, 1.08)", + "(pdf(y), y)=(-0.43, 1.09)", + "(pdf(y), y)=(-0.43, 1.10)", + "(pdf(y), y)=(-0.43, 1.11)", + "(pdf(y), y)=(-0.43, 1.12)", + "(pdf(y), y)=(-0.44, 1.13)", + "(pdf(y), y)=(-0.44, 1.14)", + "(pdf(y), y)=(-0.44, 1.15)", + "(pdf(y), y)=(-0.44, 1.16)", + "(pdf(y), y)=(-0.44, 1.17)", + "(pdf(y), y)=(-0.44, 1.18)", + "(pdf(y), y)=(-0.45, 1.19)", + "(pdf(y), y)=(-0.45, 1.20)", + "(pdf(y), y)=(-0.45, 1.21)", + "(pdf(y), y)=(-0.45, 1.22)", + "(pdf(y), y)=(-0.45, 1.23)", + "(pdf(y), y)=(-0.45, 1.24)", + "(pdf(y), y)=(-0.45, 1.25)", + "(pdf(y), y)=(-0.45, 1.26)", + "(pdf(y), y)=(-0.45, 1.27)", + "(pdf(y), y)=(-0.46, 1.28)", + "(pdf(y), y)=(-0.46, 1.29)", + "(pdf(y), y)=(-0.46, 1.30)", + "(pdf(y), y)=(-0.46, 1.31)", + "(pdf(y), y)=(-0.46, 1.32)", + "(pdf(y), y)=(-0.46, 1.33)", + "(pdf(y), y)=(-0.46, 1.34)", + "(pdf(y), y)=(-0.46, 1.35)", + "(pdf(y), y)=(-0.46, 1.36)", + "(pdf(y), y)=(-0.46, 1.37)", + "(pdf(y), y)=(-0.46, 1.38)", + "(pdf(y), y)=(-0.46, 1.39)", + "(pdf(y), y)=(-0.46, 1.40)", + "(pdf(y), y)=(-0.46, 1.41)", + "(pdf(y), y)=(-0.46, 1.42)", + "(pdf(y), y)=(-0.47, 1.43)", + "(pdf(y), y)=(-0.47, 1.44)", + "(pdf(y), y)=(-0.47, 1.45)", + "(pdf(y), y)=(-0.47, 1.46)", + "(pdf(y), y)=(-0.47, 1.47)", + "(pdf(y), y)=(-0.47, 1.48)", + "(pdf(y), y)=(-0.47, 1.49)", + "(pdf(y), y)=(-0.47, 1.51)", + "(pdf(y), y)=(-0.47, 1.52)", + "(pdf(y), y)=(-0.47, 1.53)", + "(pdf(y), y)=(-0.47, 1.54)", + "(pdf(y), y)=(-0.47, 1.55)", + "(pdf(y), y)=(-0.47, 1.56)", + "(pdf(y), y)=(-0.47, 1.57)", + "(pdf(y), y)=(-0.46, 1.58)", + "(pdf(y), y)=(-0.46, 1.59)", + "(pdf(y), y)=(-0.46, 1.60)", + "(pdf(y), y)=(-0.46, 1.61)", + "(pdf(y), y)=(-0.46, 1.62)", + "(pdf(y), y)=(-0.46, 1.63)", + "(pdf(y), y)=(-0.46, 1.64)", + "(pdf(y), y)=(-0.46, 1.65)", + "(pdf(y), y)=(-0.46, 1.66)", + "(pdf(y), y)=(-0.46, 1.67)", + "(pdf(y), y)=(-0.46, 1.68)", + "(pdf(y), y)=(-0.46, 1.69)", + "(pdf(y), y)=(-0.46, 1.70)", + "(pdf(y), y)=(-0.46, 1.71)", + "(pdf(y), y)=(-0.46, 1.72)", + "(pdf(y), y)=(-0.45, 1.73)", + "(pdf(y), y)=(-0.45, 1.74)", + "(pdf(y), y)=(-0.45, 1.75)", + "(pdf(y), y)=(-0.45, 1.76)", + "(pdf(y), y)=(-0.45, 1.77)", + "(pdf(y), y)=(-0.45, 1.78)", + "(pdf(y), y)=(-0.45, 1.79)", + "(pdf(y), y)=(-0.45, 1.80)", + "(pdf(y), y)=(-0.45, 1.81)", + "(pdf(y), y)=(-0.44, 1.82)", + "(pdf(y), y)=(-0.44, 1.83)", + "(pdf(y), y)=(-0.44, 1.84)", + "(pdf(y), y)=(-0.44, 1.85)", + "(pdf(y), y)=(-0.44, 1.86)", + "(pdf(y), y)=(-0.44, 1.87)", + "(pdf(y), y)=(-0.43, 1.88)", + "(pdf(y), y)=(-0.43, 1.89)", + "(pdf(y), y)=(-0.43, 1.90)", + "(pdf(y), y)=(-0.43, 1.91)", + "(pdf(y), y)=(-0.43, 1.92)", + "(pdf(y), y)=(-0.43, 1.93)", + "(pdf(y), y)=(-0.42, 1.94)", + "(pdf(y), y)=(-0.42, 1.95)", + "(pdf(y), y)=(-0.42, 1.96)", + "(pdf(y), y)=(-0.42, 1.97)", + "(pdf(y), y)=(-0.42, 1.98)", + "(pdf(y), y)=(-0.41, 1.99)", + "(pdf(y), y)=(-0.41, 2.00)", + ], + "type": "scatter", + "x": np.array( + [ + -0.41064744, + -0.41293151, + -0.41516635, + -0.41735177, + -0.41948764, + -0.42157385, + -0.42361031, + -0.42559697, + -0.42753381, + -0.42942082, + -0.43125804, + -0.43304552, + -0.43478334, + -0.4364716, + -0.4381104, + -0.4396999, + -0.44124025, + -0.44273162, + -0.4441742, + -0.4455682, + -0.44691382, + -0.44821129, + -0.44946086, + -0.45066275, + -0.45181723, + -0.45292454, + -0.45398495, + -0.45499871, + -0.45596609, + -0.45688735, + -0.45776275, + -0.45859254, + -0.45937698, + -0.46011631, + -0.46081078, + -0.46146061, + -0.46206603, + -0.46262726, + -0.46314449, + -0.46361791, + -0.4640477, + -0.46443404, + -0.46477705, + -0.46507689, + -0.46533367, + -0.46554749, + -0.46571845, + -0.4658466, + -0.46593201, + -0.4659747, + -0.4659747, + -0.46593201, + -0.4658466, + -0.46571845, + -0.46554749, + -0.46533367, + -0.46507689, + -0.46477705, + -0.46443404, + -0.4640477, + -0.46361791, + -0.46314449, + -0.46262726, + -0.46206603, + -0.46146061, + -0.46081078, + -0.46011631, + -0.45937698, + -0.45859254, + -0.45776275, + -0.45688735, + -0.45596609, + -0.45499871, + -0.45398495, + -0.45292454, + -0.45181723, + -0.45066275, + -0.44946086, + -0.44821129, + -0.44691382, + -0.4455682, + -0.4441742, + -0.44273162, + -0.44124025, + -0.4396999, + -0.4381104, + -0.4364716, + -0.43478334, + -0.43304552, + -0.43125804, + -0.42942082, + -0.42753381, + -0.42559697, + -0.42361031, + -0.42157385, + -0.41948764, + -0.41735177, + -0.41516635, + -0.41293151, + -0.41064744, + ] + ), + "y": np.array( + [ + 1.0, + 1.01010101, + 1.02020202, + 1.03030303, + 1.04040404, + 1.05050505, + 1.06060606, + 1.07070707, + 1.08080808, + 1.09090909, + 1.1010101, + 1.11111111, + 1.12121212, + 1.13131313, + 1.14141414, + 1.15151515, + 1.16161616, + 1.17171717, + 1.18181818, + 1.19191919, + 1.2020202, + 1.21212121, + 1.22222222, + 1.23232323, + 1.24242424, + 1.25252525, + 1.26262626, + 1.27272727, + 1.28282828, + 1.29292929, + 1.3030303, + 1.31313131, + 1.32323232, + 1.33333333, + 1.34343434, + 1.35353535, + 1.36363636, + 1.37373737, + 1.38383838, + 1.39393939, + 1.4040404, + 1.41414141, + 1.42424242, + 1.43434343, + 1.44444444, + 1.45454545, + 1.46464646, + 1.47474747, + 1.48484848, + 1.49494949, + 1.50505051, + 1.51515152, + 1.52525253, + 1.53535354, + 1.54545455, + 1.55555556, + 1.56565657, + 1.57575758, + 1.58585859, + 1.5959596, + 1.60606061, + 1.61616162, + 1.62626263, + 1.63636364, + 1.64646465, + 1.65656566, + 1.66666667, + 1.67676768, + 1.68686869, + 1.6969697, + 1.70707071, + 1.71717172, + 1.72727273, + 1.73737374, + 1.74747475, + 1.75757576, + 1.76767677, + 1.77777778, + 1.78787879, + 1.7979798, + 1.80808081, + 1.81818182, + 1.82828283, + 1.83838384, + 1.84848485, + 1.85858586, + 1.86868687, + 1.87878788, + 1.88888889, + 1.8989899, + 1.90909091, + 1.91919192, + 1.92929293, + 1.93939394, + 1.94949495, + 1.95959596, + 1.96969697, + 1.97979798, + 1.98989899, + 2.0, + ] + ), + }, + { + "fill": "tonextx", + "fillcolor": "rgb(31, 119, 180)", + "hoverinfo": "text", + "line": {"color": "rgb(0, 0, 0)", "shape": "spline", "width": 0.5}, + "mode": "lines", + "name": "", + "opacity": 0.5, + "text": [ + "(pdf(y), y)=(0.41, 1.00)", + "(pdf(y), y)=(0.41, 1.01)", + "(pdf(y), y)=(0.42, 1.02)", + "(pdf(y), y)=(0.42, 1.03)", + "(pdf(y), y)=(0.42, 1.04)", + "(pdf(y), y)=(0.42, 1.05)", + "(pdf(y), y)=(0.42, 1.06)", + "(pdf(y), y)=(0.43, 1.07)", + "(pdf(y), y)=(0.43, 1.08)", + "(pdf(y), y)=(0.43, 1.09)", + "(pdf(y), y)=(0.43, 1.10)", + "(pdf(y), y)=(0.43, 1.11)", + "(pdf(y), y)=(0.43, 1.12)", + "(pdf(y), y)=(0.44, 1.13)", + "(pdf(y), y)=(0.44, 1.14)", + "(pdf(y), y)=(0.44, 1.15)", + "(pdf(y), y)=(0.44, 1.16)", + "(pdf(y), y)=(0.44, 1.17)", + "(pdf(y), y)=(0.44, 1.18)", + "(pdf(y), y)=(0.45, 1.19)", + "(pdf(y), y)=(0.45, 1.20)", + "(pdf(y), y)=(0.45, 1.21)", + "(pdf(y), y)=(0.45, 1.22)", + "(pdf(y), y)=(0.45, 1.23)", + "(pdf(y), y)=(0.45, 1.24)", + "(pdf(y), y)=(0.45, 1.25)", + "(pdf(y), y)=(0.45, 1.26)", + "(pdf(y), y)=(0.45, 1.27)", + "(pdf(y), y)=(0.46, 1.28)", + "(pdf(y), y)=(0.46, 1.29)", + "(pdf(y), y)=(0.46, 1.30)", + "(pdf(y), y)=(0.46, 1.31)", + "(pdf(y), y)=(0.46, 1.32)", + "(pdf(y), y)=(0.46, 1.33)", + "(pdf(y), y)=(0.46, 1.34)", + "(pdf(y), y)=(0.46, 1.35)", + "(pdf(y), y)=(0.46, 1.36)", + "(pdf(y), y)=(0.46, 1.37)", + "(pdf(y), y)=(0.46, 1.38)", + "(pdf(y), y)=(0.46, 1.39)", + "(pdf(y), y)=(0.46, 1.40)", + "(pdf(y), y)=(0.46, 1.41)", + "(pdf(y), y)=(0.46, 1.42)", + "(pdf(y), y)=(0.47, 1.43)", + "(pdf(y), y)=(0.47, 1.44)", + "(pdf(y), y)=(0.47, 1.45)", + "(pdf(y), y)=(0.47, 1.46)", + "(pdf(y), y)=(0.47, 1.47)", + "(pdf(y), y)=(0.47, 1.48)", + "(pdf(y), y)=(0.47, 1.49)", + "(pdf(y), y)=(0.47, 1.51)", + "(pdf(y), y)=(0.47, 1.52)", + "(pdf(y), y)=(0.47, 1.53)", + "(pdf(y), y)=(0.47, 1.54)", + "(pdf(y), y)=(0.47, 1.55)", + "(pdf(y), y)=(0.47, 1.56)", + "(pdf(y), y)=(0.47, 1.57)", + "(pdf(y), y)=(0.46, 1.58)", + "(pdf(y), y)=(0.46, 1.59)", + "(pdf(y), y)=(0.46, 1.60)", + "(pdf(y), y)=(0.46, 1.61)", + "(pdf(y), y)=(0.46, 1.62)", + "(pdf(y), y)=(0.46, 1.63)", + "(pdf(y), y)=(0.46, 1.64)", + "(pdf(y), y)=(0.46, 1.65)", + "(pdf(y), y)=(0.46, 1.66)", + "(pdf(y), y)=(0.46, 1.67)", + "(pdf(y), y)=(0.46, 1.68)", + "(pdf(y), y)=(0.46, 1.69)", + "(pdf(y), y)=(0.46, 1.70)", + "(pdf(y), y)=(0.46, 1.71)", + "(pdf(y), y)=(0.46, 1.72)", + "(pdf(y), y)=(0.45, 1.73)", + "(pdf(y), y)=(0.45, 1.74)", + "(pdf(y), y)=(0.45, 1.75)", + "(pdf(y), y)=(0.45, 1.76)", + "(pdf(y), y)=(0.45, 1.77)", + "(pdf(y), y)=(0.45, 1.78)", + "(pdf(y), y)=(0.45, 1.79)", + "(pdf(y), y)=(0.45, 1.80)", + "(pdf(y), y)=(0.45, 1.81)", + "(pdf(y), y)=(0.44, 1.82)", + "(pdf(y), y)=(0.44, 1.83)", + "(pdf(y), y)=(0.44, 1.84)", + "(pdf(y), y)=(0.44, 1.85)", + "(pdf(y), y)=(0.44, 1.86)", + "(pdf(y), y)=(0.44, 1.87)", + "(pdf(y), y)=(0.43, 1.88)", + "(pdf(y), y)=(0.43, 1.89)", + "(pdf(y), y)=(0.43, 1.90)", + "(pdf(y), y)=(0.43, 1.91)", + "(pdf(y), y)=(0.43, 1.92)", + "(pdf(y), y)=(0.43, 1.93)", + "(pdf(y), y)=(0.42, 1.94)", + "(pdf(y), y)=(0.42, 1.95)", + "(pdf(y), y)=(0.42, 1.96)", + "(pdf(y), y)=(0.42, 1.97)", + "(pdf(y), y)=(0.42, 1.98)", + "(pdf(y), y)=(0.41, 1.99)", + "(pdf(y), y)=(0.41, 2.00)", + ], + "type": "scatter", + "x": np.array( + [ + 0.41064744, + 0.41293151, + 0.41516635, + 0.41735177, + 0.41948764, + 0.42157385, + 0.42361031, + 0.42559697, + 0.42753381, + 0.42942082, + 0.43125804, + 0.43304552, + 0.43478334, + 0.4364716, + 0.4381104, + 0.4396999, + 0.44124025, + 0.44273162, + 0.4441742, + 0.4455682, + 0.44691382, + 0.44821129, + 0.44946086, + 0.45066275, + 0.45181723, + 0.45292454, + 0.45398495, + 0.45499871, + 0.45596609, + 0.45688735, + 0.45776275, + 0.45859254, + 0.45937698, + 0.46011631, + 0.46081078, + 0.46146061, + 0.46206603, + 0.46262726, + 0.46314449, + 0.46361791, + 0.4640477, + 0.46443404, + 0.46477705, + 0.46507689, + 0.46533367, + 0.46554749, + 0.46571845, + 0.4658466, + 0.46593201, + 0.4659747, + 0.4659747, + 0.46593201, + 0.4658466, + 0.46571845, + 0.46554749, + 0.46533367, + 0.46507689, + 0.46477705, + 0.46443404, + 0.4640477, + 0.46361791, + 0.46314449, + 0.46262726, + 0.46206603, + 0.46146061, + 0.46081078, + 0.46011631, + 0.45937698, + 0.45859254, + 0.45776275, + 0.45688735, + 0.45596609, + 0.45499871, + 0.45398495, + 0.45292454, + 0.45181723, + 0.45066275, + 0.44946086, + 0.44821129, + 0.44691382, + 0.4455682, + 0.4441742, + 0.44273162, + 0.44124025, + 0.4396999, + 0.4381104, + 0.4364716, + 0.43478334, + 0.43304552, + 0.43125804, + 0.42942082, + 0.42753381, + 0.42559697, + 0.42361031, + 0.42157385, + 0.41948764, + 0.41735177, + 0.41516635, + 0.41293151, + 0.41064744, + ] + ), + "y": np.array( + [ + 1.0, + 1.01010101, + 1.02020202, + 1.03030303, + 1.04040404, + 1.05050505, + 1.06060606, + 1.07070707, + 1.08080808, + 1.09090909, + 1.1010101, + 1.11111111, + 1.12121212, + 1.13131313, + 1.14141414, + 1.15151515, + 1.16161616, + 1.17171717, + 1.18181818, + 1.19191919, + 1.2020202, + 1.21212121, + 1.22222222, + 1.23232323, + 1.24242424, + 1.25252525, + 1.26262626, + 1.27272727, + 1.28282828, + 1.29292929, + 1.3030303, + 1.31313131, + 1.32323232, + 1.33333333, + 1.34343434, + 1.35353535, + 1.36363636, + 1.37373737, + 1.38383838, + 1.39393939, + 1.4040404, + 1.41414141, + 1.42424242, + 1.43434343, + 1.44444444, + 1.45454545, + 1.46464646, + 1.47474747, + 1.48484848, + 1.49494949, + 1.50505051, + 1.51515152, + 1.52525253, + 1.53535354, + 1.54545455, + 1.55555556, + 1.56565657, + 1.57575758, + 1.58585859, + 1.5959596, + 1.60606061, + 1.61616162, + 1.62626263, + 1.63636364, + 1.64646465, + 1.65656566, + 1.66666667, + 1.67676768, + 1.68686869, + 1.6969697, + 1.70707071, + 1.71717172, + 1.72727273, + 1.73737374, + 1.74747475, + 1.75757576, + 1.76767677, + 1.77777778, + 1.78787879, + 1.7979798, + 1.80808081, + 1.81818182, + 1.82828283, + 1.83838384, + 1.84848485, + 1.85858586, + 1.86868687, + 1.87878788, + 1.88888889, + 1.8989899, + 1.90909091, + 1.91919192, + 1.92929293, + 1.93939394, + 1.94949495, + 1.95959596, + 1.96969697, + 1.97979798, + 1.98989899, + 2.0, + ] + ), + }, + { + "line": {"color": "rgb(0, 0, 0)", "width": 1.5}, + "mode": "lines", + "name": "", + "type": "scatter", + "x": [0, 0], + "y": [1.0, 2.0], + }, + { + "hoverinfo": "text", + "line": {"color": "rgb(0, 0, 0)", "width": 4}, + "mode": "lines", + "text": ["lower-quartile: 1.00", "upper-quartile: 2.00"], + "type": "scatter", + "x": [0, 0], + "y": [1.0, 2.0], + }, + { + "hoverinfo": "text", + "marker": {"color": "rgb(255, 255, 255)", "symbol": "square"}, + "mode": "markers", + "text": ["median: 1.50"], + "type": "scatter", + "x": [0], + "y": [1.5], + }, + { + "hoverinfo": "y", + "marker": {"color": "rgb(31, 119, 180)", "symbol": "line-ew-open"}, + "mode": "markers", + "name": "", + "showlegend": False, + "type": "scatter", + "x": [-0.55916964093970667, -0.55916964093970667], + "y": np.array([1.0, 2.0]), + }, + ], + "layout": { + "autosize": False, + "font": {"size": 11}, + "height": 450, + "hovermode": "closest", + "showlegend": False, + "title": {"text": "Violin and Rug Plot"}, + "width": 600, + "xaxis": { + "mirror": False, + "range": [-0.65916964093970665, 0.56597470078308887], + "showgrid": False, + "showline": False, + "showticklabels": False, + "ticks": "", + "title": {"text": ""}, + "zeroline": False, + }, + "yaxis": { + "autorange": True, + "mirror": False, + "showgrid": False, + "showline": False, + "showticklabels": False, + "ticklen": 4, + "ticks": "", + "title": {"text": ""}, + "zeroline": False, + }, + }, + } # test both items in 'data' for i in [0, 1]: - self.assert_fig_equal( - test_violin['data'][i], - exp_violin['data'][i] - ) + self.assert_fig_equal(test_violin["data"][i], exp_violin["data"][i]) - self.assert_fig_equal(test_violin['layout'], - exp_violin['layout']) + self.assert_fig_equal(test_violin["layout"], exp_violin["layout"]) class TestFacetGrid(NumpyTestUtilsMixin, TestCaseNoTemplate): - def test_data_must_be_dataframe(self): data = [] - pattern = ('You must input a pandas DataFrame.') + pattern = "You must input a pandas DataFrame." - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_facet_grid, - data, 'a', 'b') + self.assertRaisesRegexp( + PlotlyError, pattern, ff.create_facet_grid, data, "a", "b" + ) def test_x_and_y_for_scatter(self): - data = pd.DataFrame([[0, 0], [1, 1]], columns=['a', 'b']) + data = pd.DataFrame([[0, 0], [1, 1]], columns=["a", "b"]) pattern = ( "You need to input 'x' and 'y' if you are you are using a " "trace_type of 'scatter' or 'scattergl'." ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_facet_grid, - data, 'a') + self.assertRaisesRegexp(PlotlyError, pattern, ff.create_facet_grid, data, "a") def test_valid_col_selection(self): - data = pd.DataFrame([[0, 0], [1, 1]], columns=['a', 'b']) + data = pd.DataFrame([[0, 0], [1, 1]], columns=["a", "b"]) pattern = ( "x, y, facet_row, facet_col and color_name must be keys in your " "dataframe." ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_facet_grid, - data, 'a', 'c') + self.assertRaisesRegexp( + PlotlyError, pattern, ff.create_facet_grid, data, "a", "c" + ) def test_valid_trace_type(self): - data = pd.DataFrame([[0, 0], [1, 1]], columns=['a', 'b']) + data = pd.DataFrame([[0, 0], [1, 1]], columns=["a", "b"]) - self.assertRaises(PlotlyError, ff.create_facet_grid, - data, 'a', 'b', trace_type='foo') + self.assertRaises( + PlotlyError, ff.create_facet_grid, data, "a", "b", trace_type="foo" + ) def test_valid_scales(self): - data = pd.DataFrame([[0, 0], [1, 1]], columns=['a', 'b']) + data = pd.DataFrame([[0, 0], [1, 1]], columns=["a", "b"]) - pattern = ( - "'scales' must be set to 'fixed', 'free_x', 'free_y' and 'free'." - ) + pattern = "'scales' must be set to 'fixed', 'free_x', 'free_y' and 'free'." - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_facet_grid, - data, 'a', 'b', scales='not_free') + self.assertRaisesRegexp( + PlotlyError, + pattern, + ff.create_facet_grid, + data, + "a", + "b", + scales="not_free", + ) def test_valid_plotly_color_scale_name(self): - data = pd.DataFrame([[0, 0], [1, 1]], columns=['a', 'b']) - - self.assertRaises(PlotlyError, ff.create_facet_grid, - data, 'a', 'b', color_name='a', colormap='wrong one') + data = pd.DataFrame([[0, 0], [1, 1]], columns=["a", "b"]) + + self.assertRaises( + PlotlyError, + ff.create_facet_grid, + data, + "a", + "b", + color_name="a", + colormap="wrong one", + ) def test_facet_labels(self): - data = pd.DataFrame([['a1', 0], ['a2', 1]], columns=['a', 'b']) - - self.assertRaises(PlotlyError, ff.create_facet_grid, - data, 'a', 'b', facet_row='a', facet_row_labels={}) + data = pd.DataFrame([["a1", 0], ["a2", 1]], columns=["a", "b"]) + + self.assertRaises( + PlotlyError, + ff.create_facet_grid, + data, + "a", + "b", + facet_row="a", + facet_row_labels={}, + ) - self.assertRaises(PlotlyError, ff.create_facet_grid, - data, 'a', 'b', facet_col='a', facet_col_labels={}) + self.assertRaises( + PlotlyError, + ff.create_facet_grid, + data, + "a", + "b", + facet_col="a", + facet_col_labels={}, + ) def test_valid_color_dict(self): - data = pd.DataFrame([[0, 0, 'foo'], [1, 1, 'foo']], - columns=['a', 'b', 'foo']) + data = pd.DataFrame([[0, 0, "foo"], [1, 1, "foo"]], columns=["a", "b", "foo"]) pattern = ( "If using 'colormap' as a dictionary, make sure " @@ -2076,21 +3167,33 @@ def test_valid_color_dict(self): "the keys of your dictionary." ) - color_dict = {'bar': '#ffffff'} + color_dict = {"bar": "#ffffff"} - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_facet_grid, - data, 'a', 'b', color_name='a', - colormap=color_dict) + self.assertRaisesRegexp( + PlotlyError, + pattern, + ff.create_facet_grid, + data, + "a", + "b", + color_name="a", + colormap=color_dict, + ) def test_valid_colorscale_name(self): - data = pd.DataFrame([[0, 1, 2], [3, 4, 5]], - columns=['a', 'b', 'c']) - - colormap='foo' - - self.assertRaises(PlotlyError, ff.create_facet_grid, data, 'a', 'b', - color_name='c', colormap=colormap) + data = pd.DataFrame([[0, 1, 2], [3, 4, 5]], columns=["a", "b", "c"]) + + colormap = "foo" + + self.assertRaises( + PlotlyError, + ff.create_facet_grid, + data, + "a", + "b", + color_name="c", + colormap=colormap, + ) def test_valid_facet_grid_fig(self): mpg = [ @@ -2101,175 +3204,234 @@ def test_valid_facet_grid_fig(self): ["audi", "a4", 2.8, 1999, 6, "auto(l5)", "f", 16, 26, "p", "compact"], ["audi", "a4", 2.8, 1999, 6, "manual(m5)", "f", 18, 26, "p", "compact"], ["audi", "a4", 3.1, 2008, 6, "auto(av)", "f", 18, 27, "p", "compact"], - ["audi", "a4 quattro", 1.8, 1999, 4, "manual(m5)", "4", 18, 26, "p", "compact"], - ["audi", "a4 quattro", 1.8, 1999, 4, "auto(l5)", "4", 16, 25, "p", "compact"], - ["audi", "a4 quattro", 2, 2008, 4, "manual(m6)", "4", 20, 28, "p", "compact"], + [ + "audi", + "a4 quattro", + 1.8, + 1999, + 4, + "manual(m5)", + "4", + 18, + 26, + "p", + "compact", + ], + [ + "audi", + "a4 quattro", + 1.8, + 1999, + 4, + "auto(l5)", + "4", + 16, + 25, + "p", + "compact", + ], + [ + "audi", + "a4 quattro", + 2, + 2008, + 4, + "manual(m6)", + "4", + 20, + 28, + "p", + "compact", + ], ] df = pd.DataFrame( mpg, - columns=["manufacturer", "model", "displ", "year", "cyl", "trans", - "drv", "cty", "hwy", "fl", "class"] - ) - test_facet_grid = ff.create_facet_grid( - df, - x='displ', - y='cty', - facet_col='cyl', + columns=[ + "manufacturer", + "model", + "displ", + "year", + "cyl", + "trans", + "drv", + "cty", + "hwy", + "fl", + "class", + ], ) + test_facet_grid = ff.create_facet_grid(df, x="displ", y="cty", facet_col="cyl") exp_facet_grid = { - 'data': [{'marker': {'color': 'rgb(31, 119, 180)', - 'line': {'color': 'darkgrey', 'width': 1}, - 'size': 8}, - 'mode': 'markers', - 'opacity': 0.6, - 'type': 'scatter', - 'x': [1.8, 1.8, 2.0, 2.0, 1.8, 1.8, 2.0], - 'xaxis': 'x', - 'y': [18, 18, 20, 21, 18, 16, 20], - 'yaxis': 'y'}, - {'marker': {'color': 'rgb(31, 119, 180)', - 'line': {'color': 'darkgrey', 'width': 1}, - 'size': 8}, - 'mode': 'markers', - 'opacity': 0.6, - 'type': 'scatter', - 'x': [2.8, 2.8, 3.1], - 'xaxis': 'x2', - 'y': [16, 18, 18], - 'yaxis': 'y2'}], - 'layout': {'annotations': [{'font': {'color': '#0f0f0f', - 'size': 13}, - 'showarrow': False, - 'text': '4', - 'textangle': 0, - 'x': 0.24625, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 1.03, - 'yanchor': 'middle', - 'yref': 'paper'}, - {'font': {'color': '#0f0f0f', - 'size': 13}, - 'showarrow': False, - 'text': '6', - 'textangle': 0, - 'x': 0.7537499999999999, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 1.03, - 'yanchor': 'middle', - 'yref': 'paper'}, - {'font': {'color': '#000000', - 'size': 12}, - 'showarrow': False, - 'text': 'displ', - 'textangle': 0, - 'x': 0.5, - 'xanchor': 'center', - 'xref': 'paper', - 'y': -0.1, - 'yanchor': 'middle', - 'yref': 'paper'}, - {'font': {'color': '#000000', - 'size': 12}, - 'showarrow': False, - 'text': 'cty', - 'textangle': -90, - 'x': -0.1, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 0.5, - 'yanchor': 'middle', - 'yref': 'paper'}], - 'height': 600, - 'legend': {'bgcolor': '#efefef', - 'borderwidth': 1, - 'x': 1.05, - 'y': 1, - 'yanchor': 'top'}, - 'paper_bgcolor': 'rgb(251, 251, 251)', - 'showlegend': False, - 'title': {'text': ''}, - 'width': 600, - 'xaxis': {'anchor': 'y', - 'domain': [0.0, 0.4925], - 'dtick': 0, - 'range': [0.85, 4.1575], - 'ticklen': 0, - 'zeroline': False}, - 'xaxis2': {'anchor': 'y2', - 'domain': [0.5075, 1.0], - 'dtick': 0, - 'range': [0.85, 4.1575], - 'ticklen': 0, - 'zeroline': False}, - 'yaxis': {'anchor': 'x', - 'domain': [0.0, 1.0], - 'dtick': 1, - 'range': [15.75, 21.2625], - 'ticklen': 0, - 'zeroline': False}, - 'yaxis2': {'anchor': 'x2', - 'domain': [0.0, 1.0], - 'dtick': 1, - 'matches': 'y', - 'range': [15.75, 21.2625], - 'showticklabels': False, - 'ticklen': 0, - 'zeroline': False}}} + "data": [ + { + "marker": { + "color": "rgb(31, 119, 180)", + "line": {"color": "darkgrey", "width": 1}, + "size": 8, + }, + "mode": "markers", + "opacity": 0.6, + "type": "scatter", + "x": [1.8, 1.8, 2.0, 2.0, 1.8, 1.8, 2.0], + "xaxis": "x", + "y": [18, 18, 20, 21, 18, 16, 20], + "yaxis": "y", + }, + { + "marker": { + "color": "rgb(31, 119, 180)", + "line": {"color": "darkgrey", "width": 1}, + "size": 8, + }, + "mode": "markers", + "opacity": 0.6, + "type": "scatter", + "x": [2.8, 2.8, 3.1], + "xaxis": "x2", + "y": [16, 18, 18], + "yaxis": "y2", + }, + ], + "layout": { + "annotations": [ + { + "font": {"color": "#0f0f0f", "size": 13}, + "showarrow": False, + "text": "4", + "textangle": 0, + "x": 0.24625, + "xanchor": "center", + "xref": "paper", + "y": 1.03, + "yanchor": "middle", + "yref": "paper", + }, + { + "font": {"color": "#0f0f0f", "size": 13}, + "showarrow": False, + "text": "6", + "textangle": 0, + "x": 0.7537499999999999, + "xanchor": "center", + "xref": "paper", + "y": 1.03, + "yanchor": "middle", + "yref": "paper", + }, + { + "font": {"color": "#000000", "size": 12}, + "showarrow": False, + "text": "displ", + "textangle": 0, + "x": 0.5, + "xanchor": "center", + "xref": "paper", + "y": -0.1, + "yanchor": "middle", + "yref": "paper", + }, + { + "font": {"color": "#000000", "size": 12}, + "showarrow": False, + "text": "cty", + "textangle": -90, + "x": -0.1, + "xanchor": "center", + "xref": "paper", + "y": 0.5, + "yanchor": "middle", + "yref": "paper", + }, + ], + "height": 600, + "legend": { + "bgcolor": "#efefef", + "borderwidth": 1, + "x": 1.05, + "y": 1, + "yanchor": "top", + }, + "paper_bgcolor": "rgb(251, 251, 251)", + "showlegend": False, + "title": {"text": ""}, + "width": 600, + "xaxis": { + "anchor": "y", + "domain": [0.0, 0.4925], + "dtick": 0, + "range": [0.85, 4.1575], + "ticklen": 0, + "zeroline": False, + }, + "xaxis2": { + "anchor": "y2", + "domain": [0.5075, 1.0], + "dtick": 0, + "range": [0.85, 4.1575], + "ticklen": 0, + "zeroline": False, + }, + "yaxis": { + "anchor": "x", + "domain": [0.0, 1.0], + "dtick": 1, + "range": [15.75, 21.2625], + "ticklen": 0, + "zeroline": False, + }, + "yaxis2": { + "anchor": "x2", + "domain": [0.0, 1.0], + "dtick": 1, + "matches": "y", + "range": [15.75, 21.2625], + "showticklabels": False, + "ticklen": 0, + "zeroline": False, + }, + }, + } for j in [0, 1]: - self.assert_fig_equal( - test_facet_grid['data'][j], - exp_facet_grid['data'][j] - ) + self.assert_fig_equal(test_facet_grid["data"][j], exp_facet_grid["data"][j]) - self.assert_fig_equal( - test_facet_grid['layout'], - exp_facet_grid['layout'] - ) + self.assert_fig_equal(test_facet_grid["layout"], exp_facet_grid["layout"]) class TestBullet(NumpyTestUtilsMixin, TestCaseNoTemplate): - def test_df_as_list(self): - df = [ - {'titles': 'Revenue'}, - 'foo' - ] + df = [{"titles": "Revenue"}, "foo"] pattern = ( - 'Every entry of the data argument (list, tuple, etc) must ' - 'be a dictionary.' + "Every entry of the data argument (list, tuple, etc) must " + "be a dictionary." ) self.assertRaisesRegexp(PlotlyError, pattern, ff.create_bullet, df) def test_not_df_or_list(self): - df = 'foo' + df = "foo" - pattern = ('You must input a pandas DataFrame, or a list of dictionaries.') + pattern = "You must input a pandas DataFrame, or a list of dictionaries." self.assertRaisesRegexp(PlotlyError, pattern, ff.create_bullet, df) def test_valid_color_lists_of_2_rgb_colors(self): - df = [ - {'title': 'Revenue'} - ] + df = [{"title": "Revenue"}] - range_colors = ['rgb(0, 0, 0)'] - measure_colors = ['rgb(0, 0, 0)'] + range_colors = ["rgb(0, 0, 0)"] + measure_colors = ["rgb(0, 0, 0)"] - pattern = ("Both 'range_colors' or 'measure_colors' must be a list " - "of two valid colors.") + pattern = ( + "Both 'range_colors' or 'measure_colors' must be a list " + "of two valid colors." + ) self.assertRaisesRegexp( - PlotlyError, pattern, ff.create_bullet, df, - range_colors=range_colors + PlotlyError, pattern, ff.create_bullet, df, range_colors=range_colors ) self.assertRaisesRegexp( - PlotlyError, pattern, ff.create_bullet, df, - measure_colors=measure_colors + PlotlyError, pattern, ff.create_bullet, df, measure_colors=measure_colors ) def test_full_bullet(self): @@ -2278,526 +3440,646 @@ def test_full_bullet(self): "title": "Revenue", "subtitle": "US$, in thousands", "ranges": [150, 225, 300], - "measures":[220, 270], - "markers":[250] + "measures": [220, 270], + "markers": [250], }, { "title": "Profit", "subtitle": "%", "ranges": [20, 25, 30], "measures": [21, 23], - "markers": [26] + "markers": [26], }, { "title": "Order Size", "subtitle": "US$, average", "ranges": [350, 500, 600], "measures": [100, 320], - "markers": [550] + "markers": [550], }, { "title": "New Customers", "subtitle": "count", "ranges": [1400, 2000, 2500], - "measures":[1000, 1650], - "markers": [2100] + "measures": [1000, 1650], + "markers": [2100], }, { "title": "Satisfaction", "subtitle": "out of 5", "ranges": [3.5, 4.25, 5], "measures": [3.2, 4.7], - "markers": [4.4] - } + "markers": [4.4], + }, ] df = pd.DataFrame(data) - measure_colors = ['rgb(255, 127, 14)', 'rgb(44, 160, 44)'] - range_colors = ['rgb(255, 127, 14)', 'rgb(44, 160, 44)'] + measure_colors = ["rgb(255, 127, 14)", "rgb(44, 160, 44)"] + range_colors = ["rgb(255, 127, 14)", "rgb(44, 160, 44)"] fig = ff.create_bullet( - df, orientation='v', markers='markers', measures='measures', - ranges='ranges', subtitles='subtitle', titles='title', - range_colors=range_colors, measure_colors=measure_colors, - title='new title', - scatter_options={'marker': {'size': 30, - 'symbol': 'hourglass'}} + df, + orientation="v", + markers="markers", + measures="measures", + ranges="ranges", + subtitles="subtitle", + titles="title", + range_colors=range_colors, + measure_colors=measure_colors, + title="new title", + scatter_options={"marker": {"size": 30, "symbol": "hourglass"}}, ) exp_fig = { - 'data': [{'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(44.0, 160.0, 44.0)'}, - 'name': 'ranges', - 'orientation': 'v', - 'type': 'bar', - 'width': 2, - 'x': [0], - 'xaxis': 'x', - 'y': [300], - 'yaxis': 'y'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(149.5, 143.5, 29.0)'}, - 'name': 'ranges', - 'orientation': 'v', - 'type': 'bar', - 'width': 2, - 'x': [0], - 'xaxis': 'x', - 'y': [225], - 'yaxis': 'y'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(255.0, 127.0, 14.0)'}, - 'name': 'ranges', - 'orientation': 'v', - 'type': 'bar', - 'width': 2, - 'x': [0], - 'xaxis': 'x', - 'y': [150], - 'yaxis': 'y'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(44.0, 160.0, 44.0)'}, - 'name': 'measures', - 'orientation': 'v', - 'type': 'bar', - 'width': 0.4, - 'x': [0.5], - 'xaxis': 'x', - 'y': [270], - 'yaxis': 'y'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(255.0, 127.0, 14.0)'}, - 'name': 'measures', - 'orientation': 'v', - 'type': 'bar', - 'width': 0.4, - 'x': [0.5], - 'xaxis': 'x', - 'y': [220], - 'yaxis': 'y'}, - {'hoverinfo': 'y', - 'marker': {'color': 'rgb(0, 0, 0)', - 'size': 30, - 'symbol': 'hourglass'}, - 'name': 'markers', - 'type': 'scatter', - 'x': [0.5], - 'xaxis': 'x', - 'y': [250], - 'yaxis': 'y'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(44.0, 160.0, 44.0)'}, - 'name': 'ranges', - 'orientation': 'v', - 'type': 'bar', - 'width': 2, - 'x': [0], - 'xaxis': 'x2', - 'y': [30], - 'yaxis': 'y2'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(149.5, 143.5, 29.0)'}, - 'name': 'ranges', - 'orientation': 'v', - 'type': 'bar', - 'width': 2, - 'x': [0], - 'xaxis': 'x2', - 'y': [25], - 'yaxis': 'y2'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(255.0, 127.0, 14.0)'}, - 'name': 'ranges', - 'orientation': 'v', - 'type': 'bar', - 'width': 2, - 'x': [0], - 'xaxis': 'x2', - 'y': [20], - 'yaxis': 'y2'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(44.0, 160.0, 44.0)'}, - 'name': 'measures', - 'orientation': 'v', - 'type': 'bar', - 'width': 0.4, - 'x': [0.5], - 'xaxis': 'x2', - 'y': [23], - 'yaxis': 'y2'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(255.0, 127.0, 14.0)'}, - 'name': 'measures', - 'orientation': 'v', - 'type': 'bar', - 'width': 0.4, - 'x': [0.5], - 'xaxis': 'x2', - 'y': [21], - 'yaxis': 'y2'}, - {'hoverinfo': 'y', - 'marker': {'color': 'rgb(0, 0, 0)', - 'size': 30, - 'symbol': 'hourglass'}, - 'name': 'markers', - 'type': 'scatter', - 'x': [0.5], - 'xaxis': 'x2', - 'y': [26], - 'yaxis': 'y2'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(44.0, 160.0, 44.0)'}, - 'name': 'ranges', - 'orientation': 'v', - 'type': 'bar', - 'width': 2, - 'x': [0], - 'xaxis': 'x3', - 'y': [600], - 'yaxis': 'y3'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(149.5, 143.5, 29.0)'}, - 'name': 'ranges', - 'orientation': 'v', - 'type': 'bar', - 'width': 2, - 'x': [0], - 'xaxis': 'x3', - 'y': [500], - 'yaxis': 'y3'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(255.0, 127.0, 14.0)'}, - 'name': 'ranges', - 'orientation': 'v', - 'type': 'bar', - 'width': 2, - 'x': [0], - 'xaxis': 'x3', - 'y': [350], - 'yaxis': 'y3'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(44.0, 160.0, 44.0)'}, - 'name': 'measures', - 'orientation': 'v', - 'type': 'bar', - 'width': 0.4, - 'x': [0.5], - 'xaxis': 'x3', - 'y': [320], - 'yaxis': 'y3'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(255.0, 127.0, 14.0)'}, - 'name': 'measures', - 'orientation': 'v', - 'type': 'bar', - 'width': 0.4, - 'x': [0.5], - 'xaxis': 'x3', - 'y': [100], - 'yaxis': 'y3'}, - {'hoverinfo': 'y', - 'marker': {'color': 'rgb(0, 0, 0)', - 'size': 30, - 'symbol': 'hourglass'}, - 'name': 'markers', - 'type': 'scatter', - 'x': [0.5], - 'xaxis': 'x3', - 'y': [550], - 'yaxis': 'y3'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(44.0, 160.0, 44.0)'}, - 'name': 'ranges', - 'orientation': 'v', - 'type': 'bar', - 'width': 2, - 'x': [0], - 'xaxis': 'x4', - 'y': [2500], - 'yaxis': 'y4'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(149.5, 143.5, 29.0)'}, - 'name': 'ranges', - 'orientation': 'v', - 'type': 'bar', - 'width': 2, - 'x': [0], - 'xaxis': 'x4', - 'y': [2000], - 'yaxis': 'y4'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(255.0, 127.0, 14.0)'}, - 'name': 'ranges', - 'orientation': 'v', - 'type': 'bar', - 'width': 2, - 'x': [0], - 'xaxis': 'x4', - 'y': [1400], - 'yaxis': 'y4'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(44.0, 160.0, 44.0)'}, - 'name': 'measures', - 'orientation': 'v', - 'type': 'bar', - 'width': 0.4, - 'x': [0.5], - 'xaxis': 'x4', - 'y': [1650], - 'yaxis': 'y4'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(255.0, 127.0, 14.0)'}, - 'name': 'measures', - 'orientation': 'v', - 'type': 'bar', - 'width': 0.4, - 'x': [0.5], - 'xaxis': 'x4', - 'y': [1000], - 'yaxis': 'y4'}, - {'hoverinfo': 'y', - 'marker': {'color': 'rgb(0, 0, 0)', - 'size': 30, - 'symbol': 'hourglass'}, - 'name': 'markers', - 'type': 'scatter', - 'x': [0.5], - 'xaxis': 'x4', - 'y': [2100], - 'yaxis': 'y4'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(44.0, 160.0, 44.0)'}, - 'name': 'ranges', - 'orientation': 'v', - 'type': 'bar', - 'width': 2, - 'x': [0], - 'xaxis': 'x5', - 'y': [5], - 'yaxis': 'y5'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(149.5, 143.5, 29.0)'}, - 'name': 'ranges', - 'orientation': 'v', - 'type': 'bar', - 'width': 2, - 'x': [0], - 'xaxis': 'x5', - 'y': [4.25], - 'yaxis': 'y5'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(255.0, 127.0, 14.0)'}, - 'name': 'ranges', - 'orientation': 'v', - 'type': 'bar', - 'width': 2, - 'x': [0], - 'xaxis': 'x5', - 'y': [3.5], - 'yaxis': 'y5'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(44.0, 160.0, 44.0)'}, - 'name': 'measures', - 'orientation': 'v', - 'type': 'bar', - 'width': 0.4, - 'x': [0.5], - 'xaxis': 'x5', - 'y': [4.7], - 'yaxis': 'y5'}, - {'base': 0, - 'hoverinfo': 'y', - 'marker': {'color': 'rgb(255.0, 127.0, 14.0)'}, - 'name': 'measures', - 'orientation': 'v', - 'type': 'bar', - 'width': 0.4, - 'x': [0.5], - 'xaxis': 'x5', - 'y': [3.2], - 'yaxis': 'y5'}, - {'hoverinfo': 'y', - 'marker': {'color': 'rgb(0, 0, 0)', - 'size': 30, - 'symbol': 'hourglass'}, - 'name': 'markers', - 'type': 'scatter', - 'x': [0.5], - 'xaxis': 'x5', - 'y': [4.4], - 'yaxis': 'y5'}], - 'layout': {'annotations': [{'font': {'color': '#0f0f0f', 'size': 13}, - 'showarrow': False, - 'text': 'Revenue', - 'textangle': 0, - 'x': 0.019999999999999997, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 1.03, - 'yanchor': 'middle', - 'yref': 'paper'}, - {'font': {'color': '#0f0f0f', 'size': 13}, - 'showarrow': False, - 'text': 'Profit', - 'textangle': 0, - 'x': 0.26, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 1.03, - 'yanchor': 'middle', - 'yref': 'paper'}, - {'font': {'color': '#0f0f0f', 'size': 13}, - 'showarrow': False, - 'text': 'Order Size', - 'textangle': 0, - 'x': 0.5, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 1.03, - 'yanchor': 'middle', - 'yref': 'paper'}, - {'font': {'color': '#0f0f0f', 'size': 13}, - 'showarrow': False, - 'text': 'New Customers', - 'textangle': 0, - 'x': 0.74, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 1.03, - 'yanchor': 'middle', - 'yref': 'paper'}, - {'font': {'color': '#0f0f0f', 'size': 13}, - 'showarrow': False, - 'text': 'Satisfaction', - 'textangle': 0, - 'x': 0.98, - 'xanchor': 'center', - 'xref': 'paper', - 'y': 1.03, - 'yanchor': 'middle', - 'yref': 'paper'}], - 'barmode': 'stack', - 'height': 600, - 'margin': {'l': 80}, - 'shapes': [], - 'showlegend': False, - 'title': 'new title', - 'width': 1000, - 'xaxis1': {'anchor': 'y', - 'domain': [0.0, 0.039999999999999994], - 'range': [0, 1], - 'showgrid': False, - 'showticklabels': False, - 'zeroline': False}, - 'xaxis2': {'anchor': 'y2', - 'domain': [0.24, 0.27999999999999997], - 'range': [0, 1], - 'showgrid': False, - 'showticklabels': False, - 'zeroline': False}, - 'xaxis3': {'anchor': 'y3', - 'domain': [0.48, 0.52], - 'range': [0, 1], - 'showgrid': False, - 'showticklabels': False, - 'zeroline': False}, - 'xaxis4': {'anchor': 'y4', - 'domain': [0.72, 0.76], - 'range': [0, 1], - 'showgrid': False, - 'showticklabels': False, - 'zeroline': False}, - 'xaxis5': {'anchor': 'y5', - 'domain': [0.96, 1.0], - 'range': [0, 1], - 'showgrid': False, - 'showticklabels': False, - 'zeroline': False}, - 'yaxis1': {'anchor': 'x', - 'domain': [0.0, 1.0], - 'showgrid': False, - 'tickwidth': 1, - 'zeroline': False}, - 'yaxis2': {'anchor': 'x2', - 'domain': [0.0, 1.0], - 'showgrid': False, - 'tickwidth': 1, - 'zeroline': False}, - 'yaxis3': {'anchor': 'x3', - 'domain': [0.0, 1.0], - 'showgrid': False, - 'tickwidth': 1, - 'zeroline': False}, - 'yaxis4': {'anchor': 'x4', - 'domain': [0.0, 1.0], - 'showgrid': False, - 'tickwidth': 1, - 'zeroline': False}, - 'yaxis5': {'anchor': 'x5', - 'domain': [0.0, 1.0], - 'showgrid': False, - 'tickwidth': 1, - 'zeroline': False}} + "data": [ + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(44.0, 160.0, 44.0)"}, + "name": "ranges", + "orientation": "v", + "type": "bar", + "width": 2, + "x": [0], + "xaxis": "x", + "y": [300], + "yaxis": "y", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(149.5, 143.5, 29.0)"}, + "name": "ranges", + "orientation": "v", + "type": "bar", + "width": 2, + "x": [0], + "xaxis": "x", + "y": [225], + "yaxis": "y", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(255.0, 127.0, 14.0)"}, + "name": "ranges", + "orientation": "v", + "type": "bar", + "width": 2, + "x": [0], + "xaxis": "x", + "y": [150], + "yaxis": "y", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(44.0, 160.0, 44.0)"}, + "name": "measures", + "orientation": "v", + "type": "bar", + "width": 0.4, + "x": [0.5], + "xaxis": "x", + "y": [270], + "yaxis": "y", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(255.0, 127.0, 14.0)"}, + "name": "measures", + "orientation": "v", + "type": "bar", + "width": 0.4, + "x": [0.5], + "xaxis": "x", + "y": [220], + "yaxis": "y", + }, + { + "hoverinfo": "y", + "marker": { + "color": "rgb(0, 0, 0)", + "size": 30, + "symbol": "hourglass", + }, + "name": "markers", + "type": "scatter", + "x": [0.5], + "xaxis": "x", + "y": [250], + "yaxis": "y", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(44.0, 160.0, 44.0)"}, + "name": "ranges", + "orientation": "v", + "type": "bar", + "width": 2, + "x": [0], + "xaxis": "x2", + "y": [30], + "yaxis": "y2", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(149.5, 143.5, 29.0)"}, + "name": "ranges", + "orientation": "v", + "type": "bar", + "width": 2, + "x": [0], + "xaxis": "x2", + "y": [25], + "yaxis": "y2", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(255.0, 127.0, 14.0)"}, + "name": "ranges", + "orientation": "v", + "type": "bar", + "width": 2, + "x": [0], + "xaxis": "x2", + "y": [20], + "yaxis": "y2", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(44.0, 160.0, 44.0)"}, + "name": "measures", + "orientation": "v", + "type": "bar", + "width": 0.4, + "x": [0.5], + "xaxis": "x2", + "y": [23], + "yaxis": "y2", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(255.0, 127.0, 14.0)"}, + "name": "measures", + "orientation": "v", + "type": "bar", + "width": 0.4, + "x": [0.5], + "xaxis": "x2", + "y": [21], + "yaxis": "y2", + }, + { + "hoverinfo": "y", + "marker": { + "color": "rgb(0, 0, 0)", + "size": 30, + "symbol": "hourglass", + }, + "name": "markers", + "type": "scatter", + "x": [0.5], + "xaxis": "x2", + "y": [26], + "yaxis": "y2", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(44.0, 160.0, 44.0)"}, + "name": "ranges", + "orientation": "v", + "type": "bar", + "width": 2, + "x": [0], + "xaxis": "x3", + "y": [600], + "yaxis": "y3", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(149.5, 143.5, 29.0)"}, + "name": "ranges", + "orientation": "v", + "type": "bar", + "width": 2, + "x": [0], + "xaxis": "x3", + "y": [500], + "yaxis": "y3", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(255.0, 127.0, 14.0)"}, + "name": "ranges", + "orientation": "v", + "type": "bar", + "width": 2, + "x": [0], + "xaxis": "x3", + "y": [350], + "yaxis": "y3", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(44.0, 160.0, 44.0)"}, + "name": "measures", + "orientation": "v", + "type": "bar", + "width": 0.4, + "x": [0.5], + "xaxis": "x3", + "y": [320], + "yaxis": "y3", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(255.0, 127.0, 14.0)"}, + "name": "measures", + "orientation": "v", + "type": "bar", + "width": 0.4, + "x": [0.5], + "xaxis": "x3", + "y": [100], + "yaxis": "y3", + }, + { + "hoverinfo": "y", + "marker": { + "color": "rgb(0, 0, 0)", + "size": 30, + "symbol": "hourglass", + }, + "name": "markers", + "type": "scatter", + "x": [0.5], + "xaxis": "x3", + "y": [550], + "yaxis": "y3", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(44.0, 160.0, 44.0)"}, + "name": "ranges", + "orientation": "v", + "type": "bar", + "width": 2, + "x": [0], + "xaxis": "x4", + "y": [2500], + "yaxis": "y4", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(149.5, 143.5, 29.0)"}, + "name": "ranges", + "orientation": "v", + "type": "bar", + "width": 2, + "x": [0], + "xaxis": "x4", + "y": [2000], + "yaxis": "y4", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(255.0, 127.0, 14.0)"}, + "name": "ranges", + "orientation": "v", + "type": "bar", + "width": 2, + "x": [0], + "xaxis": "x4", + "y": [1400], + "yaxis": "y4", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(44.0, 160.0, 44.0)"}, + "name": "measures", + "orientation": "v", + "type": "bar", + "width": 0.4, + "x": [0.5], + "xaxis": "x4", + "y": [1650], + "yaxis": "y4", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(255.0, 127.0, 14.0)"}, + "name": "measures", + "orientation": "v", + "type": "bar", + "width": 0.4, + "x": [0.5], + "xaxis": "x4", + "y": [1000], + "yaxis": "y4", + }, + { + "hoverinfo": "y", + "marker": { + "color": "rgb(0, 0, 0)", + "size": 30, + "symbol": "hourglass", + }, + "name": "markers", + "type": "scatter", + "x": [0.5], + "xaxis": "x4", + "y": [2100], + "yaxis": "y4", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(44.0, 160.0, 44.0)"}, + "name": "ranges", + "orientation": "v", + "type": "bar", + "width": 2, + "x": [0], + "xaxis": "x5", + "y": [5], + "yaxis": "y5", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(149.5, 143.5, 29.0)"}, + "name": "ranges", + "orientation": "v", + "type": "bar", + "width": 2, + "x": [0], + "xaxis": "x5", + "y": [4.25], + "yaxis": "y5", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(255.0, 127.0, 14.0)"}, + "name": "ranges", + "orientation": "v", + "type": "bar", + "width": 2, + "x": [0], + "xaxis": "x5", + "y": [3.5], + "yaxis": "y5", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(44.0, 160.0, 44.0)"}, + "name": "measures", + "orientation": "v", + "type": "bar", + "width": 0.4, + "x": [0.5], + "xaxis": "x5", + "y": [4.7], + "yaxis": "y5", + }, + { + "base": 0, + "hoverinfo": "y", + "marker": {"color": "rgb(255.0, 127.0, 14.0)"}, + "name": "measures", + "orientation": "v", + "type": "bar", + "width": 0.4, + "x": [0.5], + "xaxis": "x5", + "y": [3.2], + "yaxis": "y5", + }, + { + "hoverinfo": "y", + "marker": { + "color": "rgb(0, 0, 0)", + "size": 30, + "symbol": "hourglass", + }, + "name": "markers", + "type": "scatter", + "x": [0.5], + "xaxis": "x5", + "y": [4.4], + "yaxis": "y5", + }, + ], + "layout": { + "annotations": [ + { + "font": {"color": "#0f0f0f", "size": 13}, + "showarrow": False, + "text": "Revenue", + "textangle": 0, + "x": 0.019999999999999997, + "xanchor": "center", + "xref": "paper", + "y": 1.03, + "yanchor": "middle", + "yref": "paper", + }, + { + "font": {"color": "#0f0f0f", "size": 13}, + "showarrow": False, + "text": "Profit", + "textangle": 0, + "x": 0.26, + "xanchor": "center", + "xref": "paper", + "y": 1.03, + "yanchor": "middle", + "yref": "paper", + }, + { + "font": {"color": "#0f0f0f", "size": 13}, + "showarrow": False, + "text": "Order Size", + "textangle": 0, + "x": 0.5, + "xanchor": "center", + "xref": "paper", + "y": 1.03, + "yanchor": "middle", + "yref": "paper", + }, + { + "font": {"color": "#0f0f0f", "size": 13}, + "showarrow": False, + "text": "New Customers", + "textangle": 0, + "x": 0.74, + "xanchor": "center", + "xref": "paper", + "y": 1.03, + "yanchor": "middle", + "yref": "paper", + }, + { + "font": {"color": "#0f0f0f", "size": 13}, + "showarrow": False, + "text": "Satisfaction", + "textangle": 0, + "x": 0.98, + "xanchor": "center", + "xref": "paper", + "y": 1.03, + "yanchor": "middle", + "yref": "paper", + }, + ], + "barmode": "stack", + "height": 600, + "margin": {"l": 80}, + "shapes": [], + "showlegend": False, + "title": "new title", + "width": 1000, + "xaxis1": { + "anchor": "y", + "domain": [0.0, 0.039999999999999994], + "range": [0, 1], + "showgrid": False, + "showticklabels": False, + "zeroline": False, + }, + "xaxis2": { + "anchor": "y2", + "domain": [0.24, 0.27999999999999997], + "range": [0, 1], + "showgrid": False, + "showticklabels": False, + "zeroline": False, + }, + "xaxis3": { + "anchor": "y3", + "domain": [0.48, 0.52], + "range": [0, 1], + "showgrid": False, + "showticklabels": False, + "zeroline": False, + }, + "xaxis4": { + "anchor": "y4", + "domain": [0.72, 0.76], + "range": [0, 1], + "showgrid": False, + "showticklabels": False, + "zeroline": False, + }, + "xaxis5": { + "anchor": "y5", + "domain": [0.96, 1.0], + "range": [0, 1], + "showgrid": False, + "showticklabels": False, + "zeroline": False, + }, + "yaxis1": { + "anchor": "x", + "domain": [0.0, 1.0], + "showgrid": False, + "tickwidth": 1, + "zeroline": False, + }, + "yaxis2": { + "anchor": "x2", + "domain": [0.0, 1.0], + "showgrid": False, + "tickwidth": 1, + "zeroline": False, + }, + "yaxis3": { + "anchor": "x3", + "domain": [0.0, 1.0], + "showgrid": False, + "tickwidth": 1, + "zeroline": False, + }, + "yaxis4": { + "anchor": "x4", + "domain": [0.0, 1.0], + "showgrid": False, + "tickwidth": 1, + "zeroline": False, + }, + "yaxis5": { + "anchor": "x5", + "domain": [0.0, 1.0], + "showgrid": False, + "tickwidth": 1, + "zeroline": False, + }, + }, } - for i in range(len(fig['data'])): - self.assert_fig_equal(fig['data'][i], - exp_fig['data'][i]) + for i in range(len(fig["data"])): + self.assert_fig_equal(fig["data"][i], exp_fig["data"][i]) class TestChoropleth(NumpyTestUtilsMixin, TestCaseNoTemplate): # run tests if required packages are installed if shapely and shapefile and gp: + def test_fips_values_same_length(self): - pattern = 'fips and values must be the same length' + pattern = "fips and values must be the same length" self.assertRaisesRegexp( - PlotlyError, pattern, ff.create_choropleth, - fips=[1001], values=[4004, 40004] + PlotlyError, + pattern, + ff.create_choropleth, + fips=[1001], + values=[4004, 40004], ) def test_correct_order_param(self): pattern = ( - 'if you are using a custom order of unique values from ' - 'your color column, you must: have all the unique values ' - 'in your order and have no duplicate items' + "if you are using a custom order of unique values from " + "your color column, you must: have all the unique values " + "in your order and have no duplicate items" ) self.assertRaisesRegexp( - PlotlyError, pattern, ff.create_choropleth, - fips=[1], values=[1], order=[1, 1, 1] + PlotlyError, + pattern, + ff.create_choropleth, + fips=[1], + values=[1], + order=[1, 1, 1], ) def test_colorscale_and_levels_same_length(self): self.assertRaises( - PlotlyError, ff.create_choropleth, - fips=[1001, 1003, 1005], values=[5, 2, 1], - colorscale=['rgb(0,0,0)'] + PlotlyError, + ff.create_choropleth, + fips=[1001, 1003, 1005], + values=[5, 2, 1], + colorscale=["rgb(0,0,0)"], ) def test_scope_is_not_list(self): @@ -2805,17 +4087,18 @@ def test_scope_is_not_list(self): pattern = "'scope' must be a list/tuple/sequence" self.assertRaisesRegexp( - PlotlyError, pattern, ff.create_choropleth, - fips=[1001, 1003], values=[5, 2], scope='foo', + PlotlyError, + pattern, + ff.create_choropleth, + fips=[1001, 1003], + values=[5, 2], + scope="foo", ) def test_full_choropleth(self): fips = [1001] values = [1] - fig = ff.create_choropleth( - fips=fips, values=values, - simplify_county=1 - ) + fig = ff.create_choropleth(fips=fips, values=values, simplify_county=1) exp_fig_head = ( -88.053375, @@ -2867,70 +4150,74 @@ def test_full_choropleth(self): -85.12218899999999, -85.142567, -85.113329, - -85.10533699999999 + -85.10533699999999, ) - self.assertEqual(fig['data'][2]['x'][:50], exp_fig_head) + self.assertEqual(fig["data"][2]["x"][:50], exp_fig_head) class TestQuiver(TestCaseNoTemplate): - def test_scaleratio_param(self): - x,y = np.meshgrid(np.arange(0.5, 3.5, .5), np.arange(0.5, 4.5, .5)) + x, y = np.meshgrid(np.arange(0.5, 3.5, 0.5), np.arange(0.5, 4.5, 0.5)) u = x v = y angle = np.arctan(v / u) norm = 0.25 u = norm * np.cos(angle) v = norm * np.sin(angle) - fig = ff.create_quiver(x, y, u, v, scale = 1, scaleratio = 0.5) - - exp_fig_head = [( - 0.5, - 0.5883883476483185, - None, - 1.0, - 1.1118033988749896, - None, - 1.5, - 1.6185854122563141, - None, - 2.0), - (0.5, - 0.6767766952966369, - None, - 0.5, - 0.6118033988749895, - None, - 0.5, - 0.5790569415042095, - None, - 0.5)] + fig = ff.create_quiver(x, y, u, v, scale=1, scaleratio=0.5) + + exp_fig_head = [ + ( + 0.5, + 0.5883883476483185, + None, + 1.0, + 1.1118033988749896, + None, + 1.5, + 1.6185854122563141, + None, + 2.0, + ), + ( + 0.5, + 0.6767766952966369, + None, + 0.5, + 0.6118033988749895, + None, + 0.5, + 0.5790569415042095, + None, + 0.5, + ), + ] - fig_head = [fig['data'][0]['x'][:10], fig['data'][0]['y'][:10]] + fig_head = [fig["data"][0]["x"][:10], fig["data"][0]["y"][:10]] self.assertEqual(fig_head, exp_fig_head) class TestTernarycontour(NumpyTestUtilsMixin, TestCaseNoTemplate): - def test_wrong_coordinates(self): a, b = np.mgrid[0:1:20j, 0:1:20j] a = a.ravel() b = b.ravel() z = a * b - with self.assertRaises(ValueError, - msg='Barycentric coordinates should be positive.'): + with self.assertRaises( + ValueError, msg="Barycentric coordinates should be positive." + ): _ = ff.create_ternary_contour(np.stack((a, b)), z) - mask = a + b <= 1. + mask = a + b <= 1.0 a = a[mask] b = b[mask] with self.assertRaises(ValueError): _ = ff.create_ternary_contour(np.stack((a, b, a, b)), z) - with self.assertRaises(ValueError, - msg='different number of values and points'): - _ = ff.create_ternary_contour(np.stack((a, b, 1 - a - b)), - np.concatenate((z, [1]))) + with self.assertRaises(ValueError, msg="different number of values and points"): + _ = ff.create_ternary_contour( + np.stack((a, b, 1 - a - b)), np.concatenate((z, [1])) + ) # Different sums for different points c = a with self.assertRaises(ValueError): @@ -2940,72 +4227,71 @@ def test_wrong_coordinates(self): with self.assertRaises(ValueError): _ = ff.create_ternary_contour(np.stack((a, b, 2 - a - b)), z) - def test_simple_ternary_contour(self): a, b = np.mgrid[0:1:20j, 0:1:20j] - mask = a + b < 1. + mask = a + b < 1.0 a = a[mask].ravel() b = b[mask].ravel() c = 1 - a - b z = a * b * c fig = ff.create_ternary_contour(np.stack((a, b, c)), z) fig2 = ff.create_ternary_contour(np.stack((a, b)), z) - np.testing.assert_array_almost_equal(fig2['data'][0]['a'], - fig['data'][0]['a'], - decimal=3) - + np.testing.assert_array_almost_equal( + fig2["data"][0]["a"], fig["data"][0]["a"], decimal=3 + ) def test_colorscale(self): a, b = np.mgrid[0:1:20j, 0:1:20j] - mask = a + b < 1. + mask = a + b < 1.0 a = a[mask].ravel() b = b[mask].ravel() c = 1 - a - b z = a * b * c z /= z.max() - fig = ff.create_ternary_contour(np.stack((a, b, c)), z, - showscale=True) - fig2 = ff.create_ternary_contour(np.stack((a, b, c)), z, - showscale=True, showmarkers=True) - assert isinstance(fig.data[-1]['marker']['colorscale'], tuple) - assert isinstance(fig2.data[-1]['marker']['colorscale'], str) - assert fig.data[-1]['marker']['cmax'] == 1 - assert fig2.data[-1]['marker']['cmax'] == 1 - + fig = ff.create_ternary_contour(np.stack((a, b, c)), z, showscale=True) + fig2 = ff.create_ternary_contour( + np.stack((a, b, c)), z, showscale=True, showmarkers=True + ) + assert isinstance(fig.data[-1]["marker"]["colorscale"], tuple) + assert isinstance(fig2.data[-1]["marker"]["colorscale"], str) + assert fig.data[-1]["marker"]["cmax"] == 1 + assert fig2.data[-1]["marker"]["cmax"] == 1 def check_pole_labels(self): a, b = np.mgrid[0:1:20j, 0:1:20j] - mask = a + b < 1. + mask = a + b < 1.0 a = a[mask].ravel() b = b[mask].ravel() c = 1 - a - b z = a * b * c - pole_labels = ['A', 'B', 'C'] - fig = ff.create_ternary_contour(np.stack((a, b, c)), z, - pole_labels=pole_labels) + pole_labels = ["A", "B", "C"] + fig = ff.create_ternary_contour(np.stack((a, b, c)), z, pole_labels=pole_labels) assert fig.layout.ternary.aaxis.title.text == pole_labels[0] assert fig.data[-1].hovertemplate[0] == pole_labels[0] - def test_optional_arguments(self): a, b = np.mgrid[0:1:20j, 0:1:20j] - mask = a + b <= 1. + mask = a + b <= 1.0 a = a[mask].ravel() b = b[mask].ravel() c = 1 - a - b z = a * b * c ncontours = 7 - args = [dict(showmarkers=False, showscale=False), - dict(showmarkers=True, showscale=False), - dict(showmarkers=False, showscale=True), - dict(showmarkers=True, showscale=True)] + args = [ + dict(showmarkers=False, showscale=False), + dict(showmarkers=True, showscale=False), + dict(showmarkers=False, showscale=True), + dict(showmarkers=True, showscale=True), + ] for arg_set in args: - fig = ff.create_ternary_contour(np.stack((a, b, c)), z, - interp_mode='cartesian', - ncontours=ncontours, - **arg_set) + fig = ff.create_ternary_contour( + np.stack((a, b, c)), + z, + interp_mode="cartesian", + ncontours=ncontours, + **arg_set + ) # This test does not work for ilr interpolation - print(len(fig.data)) - assert (len(fig.data) == ncontours + 2 + arg_set['showscale']) - + print (len(fig.data)) + assert len(fig.data) == ncontours + 2 + arg_set["showscale"] diff --git a/packages/python/plotly/plotly/tests/test_optional/test_jupyter/test_jupyter.py b/packages/python/plotly/plotly/tests/test_optional/test_jupyter/test_jupyter.py index af01ac7b08b..95099609559 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_jupyter/test_jupyter.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_jupyter/test_jupyter.py @@ -12,13 +12,12 @@ import subprocess PATH_ROOT = path.dirname(__file__) -PATH_NODE_MODULES = path.join(PATH_ROOT, 'node_modules') -PATH_FIXTURES = path.join(PATH_ROOT, 'fixtures') -PATH_JS_TESTS = path.join(PATH_ROOT, 'js_tests') +PATH_NODE_MODULES = path.join(PATH_ROOT, "node_modules") +PATH_FIXTURES = path.join(PATH_ROOT, "fixtures") +PATH_JS_TESTS = path.join(PATH_ROOT, "js_tests") class PlotlyJupyterTestDeps(TestCase): - def test_node_modules(self): self.assertTrue(path.isdir(PATH_NODE_MODULES)) @@ -28,45 +27,43 @@ class Common(TestCase): name = None def setUp(self): - self.path_test_nb = path.join(PATH_FIXTURES, self.name + '.ipynb') - self.path_test_html = path.join(PATH_FIXTURES, self.name + '.html') - self.path_test_js = path.join(PATH_JS_TESTS, self.name + '.js') + self.path_test_nb = path.join(PATH_FIXTURES, self.name + ".ipynb") + self.path_test_html = path.join(PATH_FIXTURES, self.name + ".html") + self.path_test_js = path.join(PATH_JS_TESTS, self.name + ".js") self.kernel_name = kernelspec.KERNEL_NAME - with open(self.path_test_nb, 'r') as f: + with open(self.path_test_nb, "r") as f: self.nb = nbformat.read(f, as_version=4) - self.ep = ExecutePreprocessor(timeout=600, - kernel_name=self.kernel_name) + self.ep = ExecutePreprocessor(timeout=600, kernel_name=self.kernel_name) self.html_exporter = HTMLExporter() - self.ep.preprocess(self.nb, {'metadata': {'path': '.'}}) + self.ep.preprocess(self.nb, {"metadata": {"path": "."}}) (self.body, _) = self.html_exporter.from_notebook_node(self.nb) - with open(self.path_test_html, 'w') as f: + with open(self.path_test_html, "w") as f: f.write(self.body) def test_js(self): - cmd = ['npm', 'test', '--', self.path_test_html, self.path_test_js] + cmd = ["npm", "test", "--", self.path_test_html, self.path_test_js] - proc = subprocess.Popen(cmd, - cwd=PATH_ROOT, - stdout=subprocess.PIPE, - stderr=subprocess.PIPE) + proc = subprocess.Popen( + cmd, cwd=PATH_ROOT, stdout=subprocess.PIPE, stderr=subprocess.PIPE + ) (_, stderr) = proc.communicate() if stderr: - self.fail('One or more javascript test failed') + self.fail("One or more javascript test failed") class PlotlyJupyterConnectedFalseTestCase(Common): __test__ = True - name = 'connected_false' + name = "connected_false" class PlotlyJupyterConnectedTrueTestCase(Common): __test__ = True - name = 'connected_true' + name = "connected_true" diff --git a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/__init__.py b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/__init__.py index f367e6011a3..e1565c83f71 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/__init__.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/__init__.py @@ -1,4 +1,5 @@ import warnings + def setup_package(): - warnings.filterwarnings('ignore') + warnings.filterwarnings("ignore") diff --git a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/annotations.py b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/annotations.py index 3103274c216..17bbeb845c6 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/annotations.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/annotations.py @@ -7,128 +7,102 @@ go.Scatter( x=[0.0, 1.0, 2.0], y=[1.0, 2.0, 3.0], - name='_line0', - mode='lines', - line=go.scatter.Line( - dash='solid', - color='rgba (0, 0, 255, 1)', - width=1.5 - ), - xaxis='x1', - yaxis='y1' + name="_line0", + mode="lines", + line=go.scatter.Line(dash="solid", color="rgba (0, 0, 255, 1)", width=1.5), + xaxis="x1", + yaxis="y1", ), go.Scatter( x=[0.0, 1.0, 2.0], y=[3.0, 2.0, 1.0], - name='_line1', - mode='lines', - line=go.scatter.Line( - dash='solid', - color='rgba (0, 0, 255, 1)', - width=1.5 - ), - xaxis='x1', - yaxis='y1' - ) + name="_line1", + mode="lines", + line=go.scatter.Line(dash="solid", color="rgba (0, 0, 255, 1)", width=1.5), + xaxis="x1", + yaxis="y1", + ), ], layout=go.Layout( width=640, height=480, autosize=False, - margin=go.layout.Margin( - l=80, - r=63, - b=47, - t=47, - pad=0 - ), - hovermode='closest', + margin=go.layout.Margin(l=80, r=63, b=47, t=47, pad=0), + hovermode="closest", showlegend=False, annotations=[ go.layout.Annotation( x=0.000997987927565, y=0.9973865229110511, - text='top-left', - xref='paper', - yref='paper', + text="top-left", + xref="paper", + yref="paper", showarrow=False, - align='left', - font=dict( - size=10.0, - color='#000000' - ), + align="left", + font=dict(size=10.0, color="#000000"), opacity=1, - xanchor='left', - yanchor='top' + xanchor="left", + yanchor="top", ), go.layout.Annotation( x=0.000997987927565, y=0.0031525606469002573, - text='bottom-left', - xref='paper', - yref='paper', - align='left', + text="bottom-left", + xref="paper", + yref="paper", + align="left", showarrow=False, - font=dict( - size=10.0, - color='#000000' - ), + font=dict(size=10.0, color="#000000"), opacity=1, - xanchor='left', - yanchor='bottom' + xanchor="left", + yanchor="bottom", ), go.layout.Annotation( x=0.996989939638, y=0.9973865229110511, - text='top-right', - xref='paper', - yref='paper', - align='right', + text="top-right", + xref="paper", + yref="paper", + align="right", showarrow=False, - font=dict( - size=10.0, - color='#000000' - ), + font=dict(size=10.0, color="#000000"), opacity=1, - xanchor='right', - yanchor='top' + xanchor="right", + yanchor="top", ), go.layout.Annotation( x=0.996989939638, y=0.0031525606469002573, - text='bottom-right', - xref='paper', - yref='paper', - align='right', + text="bottom-right", + xref="paper", + yref="paper", + align="right", showarrow=False, - font=dict( - size=10.0, - color='#000000' - ), + font=dict(size=10.0, color="#000000"), opacity=1, - xanchor='right', - yanchor='bottom' - ) + xanchor="right", + yanchor="bottom", + ), ], xaxis1=go.layout.XAxis( domain=[0.0, 1.0], range=(0.0, 2.0), showline=True, - ticks='inside', + ticks="inside", showgrid=False, zeroline=False, - anchor='y1', - mirror=True + anchor="y1", + mirror=True, ), yaxis1=go.layout.YAxis( domain=[0.0, 1.0], range=(1.0, 3.0), showline=True, - ticks='inside', + ticks="inside", showgrid=False, zeroline=False, - anchor='x1', - mirror=True - ) - ) + anchor="x1", + mirror=True, + ), + ), ) diff --git a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/axis_scales.py b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/axis_scales.py index ba113d85d8d..842b205c510 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/axis_scales.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/axis_scales.py @@ -2,9 +2,7 @@ import plotly.graph_objs as go -D = dict( - x=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], - y=[10, 3, 100, 6, 45, 4, 80, 45, 3, 59]) +D = dict(x=[1, 2, 3, 4, 5, 6, 7, 8, 9, 10], y=[10, 3, 100, 6, 45, 4, 80, 45, 3, 59]) EVEN_LINEAR_SCALE = go.Figure( @@ -12,61 +10,49 @@ go.Scatter( x=[1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0], y=[10.0, 3.0, 100.0, 6.0, 45.0, 4.0, 80.0, 45.0, 3.0, 59.0], - name='_line0', - mode='lines', + name="_line0", + mode="lines", line=go.scatter.Line( - dash='solid', - color='rgba (31, 119, 180, 1)', - width=1.5 + dash="solid", color="rgba (31, 119, 180, 1)", width=1.5 ), - xaxis='x1', - yaxis='y1' + xaxis="x1", + yaxis="y1", ) ], layout=go.Layout( width=640, height=480, autosize=False, - margin=go.layout.Margin( - l=80, - r=63, - b=52, - t=57, - pad=0 - ), - hovermode='closest', + margin=go.layout.Margin(l=80, r=63, b=52, t=57, pad=0), + hovermode="closest", showlegend=False, xaxis1=go.layout.XAxis( domain=[0.0, 1.0], range=[0.0, 18.0], - type='linear', + type="linear", showline=True, nticks=10, - ticks='inside', + ticks="inside", showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='y1', - side='bottom', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="y1", + side="bottom", + mirror="ticks", ), yaxis1=go.layout.YAxis( domain=[0.0, 1.0], range=[-1.8500000000000005, 195.0], - type='linear', + type="linear", showline=True, nticks=10, - ticks='inside', + ticks="inside", showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='x1', - side='left', - mirror='ticks' - ) - ) + tickfont=dict(size=10.0), + anchor="x1", + side="left", + mirror="ticks", + ), + ), ) diff --git a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/bars.py b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/bars.py index 67764453ff1..ad396cea67c 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/bars.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/bars.py @@ -10,7 +10,7 @@ multi_left=[0, 10, 20, 30, 40, 50], multi_height=[1, 4, 8, 16, 32, 64], multi_bottom=[15, 30, 45, 60, 75, 90], - multi_width=[30, 60, 20, 50, 60, 30] + multi_width=[30, 60, 20, 50, 60, 30], ) VERTICAL_BAR = go.Figure( @@ -18,65 +18,50 @@ go.Bar( x=[0.0, 1.0, 2.0, 3.0, 4.0, 5.0], y=[10.0, 20.0, 50.0, 80.0, 100.0, 200.0], - orientation='v', - marker=go.bar.Marker( - line=dict( - width=1.0 - ), - color='#1F77B4' - ), + orientation="v", + marker=go.bar.Marker(line=dict(width=1.0), color="#1F77B4"), opacity=1, - xaxis='x1', - yaxis='y1' + xaxis="x1", + yaxis="y1", ) ], layout=go.Layout( width=640, height=480, autosize=False, - margin=go.layout.Margin( - l=80, - r=63, - b=52, - t=57, - pad=0 - ), - hovermode='closest', + margin=go.layout.Margin(l=80, r=63, b=52, t=57, pad=0), + hovermode="closest", showlegend=False, bargap=0.2, xaxis1=go.layout.XAxis( domain=[0.0, 1.0], range=[-0.68999999999999995, 5.6899999999999995], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=8, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='y1', - side='bottom', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="y1", + side="bottom", + mirror="ticks", ), yaxis1=go.layout.YAxis( domain=[0.0, 1.0], range=[0.0, 210.0], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=10, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='x1', - side='left', - mirror='ticks' - ) - ) + tickfont=dict(size=10.0), + anchor="x1", + side="left", + mirror="ticks", + ), + ), ) HORIZONTAL_BAR = go.Figure( @@ -84,65 +69,50 @@ go.Bar( x=[1.0, 4.0, 8.0, 16.0, 32.0, 64.0, 128.0], y=[0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0], - orientation='h', - marker=go.bar.Marker( - line=dict( - width=1.0 - ), - color='#1F77B4' - ), + orientation="h", + marker=go.bar.Marker(line=dict(width=1.0), color="#1F77B4"), opacity=1, - xaxis='x1', - yaxis='y1' + xaxis="x1", + yaxis="y1", ) ], layout=go.Layout( width=640, height=480, autosize=False, - margin=go.layout.Margin( - l=80, - r=63, - b=52, - t=57, - pad=0 - ), - hovermode='closest', + margin=go.layout.Margin(l=80, r=63, b=52, t=57, pad=0), + hovermode="closest", showlegend=False, bargap=0.19999999999999996, xaxis1=go.layout.XAxis( domain=[0.0, 1.0], range=[0.0, 134.40000000000001], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=8, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='y1', - side='bottom', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="y1", + side="bottom", + mirror="ticks", ), yaxis1=go.layout.YAxis( domain=[0.0, 1.0], range=[-0.73999999999999999, 6.7399999999999993], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=9, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='x1', - side='left', - mirror='ticks' - ) - ) + tickfont=dict(size=10.0), + anchor="x1", + side="left", + mirror="ticks", + ), + ), ) H_AND_V_BARS = go.Figure( @@ -150,79 +120,57 @@ go.Bar( x=[0.0, 10.0, 20.0, 30.0, 40.0, 50.0], y=[1.0, 4.0, 8.0, 16.0, 32.0, 64.0], - orientation='v', - marker=go.bar.Marker( - line=dict( - width=1.0 - ), - color='rgba(0, 128, 0, 0.5)' - ), + orientation="v", + marker=go.bar.Marker(line=dict(width=1.0), color="rgba(0, 128, 0, 0.5)"), opacity=0.5, - xaxis='x1', - yaxis='y1' + xaxis="x1", + yaxis="y1", ), go.Bar( x=[30.0, 60.0, 20.0, 50.0, 60.0, 30.0], y=[15.0, 30.0, 45.0, 60.0, 75.0, 90.0], - orientation='h', - marker=go.bar.Marker( - line=dict( - width=1.0 - ), - color='rgba(255, 0, 0, 0.5)' - ), + orientation="h", + marker=go.bar.Marker(line=dict(width=1.0), color="rgba(255, 0, 0, 0.5)"), opacity=0.5, - xaxis='x1', - yaxis='y1' - ) + xaxis="x1", + yaxis="y1", + ), ], layout=go.Layout( width=640, height=480, autosize=False, - margin=go.layout.Margin( - l=80, - r=63, - b=52, - t=57, - pad=0 - ), - hovermode='closest', + margin=go.layout.Margin(l=80, r=63, b=52, t=57, pad=0), + hovermode="closest", showlegend=False, bargap=1, xaxis1=go.layout.XAxis( domain=[0.0, 1.0], range=[-8.25, 63.25], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=9, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='y1', - side='bottom', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="y1", + side="bottom", + mirror="ticks", ), yaxis1=go.layout.YAxis( domain=[0.0, 1.0], range=[0.0, 101.84999999999999], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=7, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='x1', - side='left', - mirror='ticks' - ) - ) + tickfont=dict(size=10.0), + anchor="x1", + side="left", + mirror="ticks", + ), + ), ) - - diff --git a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/data.py b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/data.py index e7798a5e342..9845f3a6a5f 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/data.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/data.py @@ -2,5 +2,5 @@ x1=[0, 1, 2, 3, 4, 5], y1=[10, 20, 50, 80, 100, 200], x2=[0, 1, 2, 3, 4, 5, 6], - y2=[1, 4, 8, 16, 32, 64, 128] + y2=[1, 4, 8, 16, 32, 64, 128], ) diff --git a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/lines.py b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/lines.py index 4441554d1c4..54fab5fb0c7 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/lines.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/lines.py @@ -6,7 +6,7 @@ x1=[0, 1, 2, 3, 4, 5], y1=[10, 20, 50, 80, 100, 200], x2=[0, 1, 2, 3, 4, 5, 6], - y2=[1, 4, 8, 16, 32, 64, 128] + y2=[1, 4, 8, 16, 32, 64, 128], ) SIMPLE_LINE = go.Figure( @@ -14,63 +14,51 @@ go.Scatter( x=[0.0, 1.0, 2.0, 3.0, 4.0, 5.0], y=[10.0, 20.0, 50.0, 80.0, 100.0, 200.0], - name='simple', - mode='lines', + name="simple", + mode="lines", line=go.scatter.Line( - dash='solid', - color='rgba (31, 119, 180, 1)', - width=1.5 + dash="solid", color="rgba (31, 119, 180, 1)", width=1.5 ), - xaxis='x1', - yaxis='y1' + xaxis="x1", + yaxis="y1", ) ], layout=go.Layout( width=640, height=480, autosize=False, - margin=go.layout.Margin( - l=80, - r=63, - b=52, - t=57, - pad=0 - ), - hovermode='closest', + margin=go.layout.Margin(l=80, r=63, b=52, t=57, pad=0), + hovermode="closest", showlegend=False, xaxis1=go.layout.XAxis( domain=[0.0, 1.0], range=[-0.25, 5.25], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=8, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='y1', - side='bottom', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="y1", + side="bottom", + mirror="ticks", ), yaxis1=go.layout.YAxis( domain=[0.0, 1.0], range=[0.5, 209.5], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=10, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='x1', - side='left', - mirror='ticks' - ) - ) + tickfont=dict(size=10.0), + anchor="x1", + side="left", + mirror="ticks", + ), + ), ) COMPLICATED_LINE = go.Figure( @@ -78,110 +66,86 @@ go.Scatter( x=[0.0, 1.0, 2.0, 3.0, 4.0, 5.0], y=[10.0, 20.0, 50.0, 80.0, 100.0, 200.0], - name='one', - mode='markers', + name="one", + mode="markers", marker=go.scatter.Marker( - symbol='circle', - line=dict( - color='#FF0000', - width=1.0 - ), + symbol="circle", + line=dict(color="#FF0000", width=1.0), size=10, - color='#FF0000', - opacity=0.5 + color="#FF0000", + opacity=0.5, ), - xaxis='x1', - yaxis='y1' + xaxis="x1", + yaxis="y1", ), go.Scatter( x=[0.0, 1.0, 2.0, 3.0, 4.0, 5.0], y=[10.0, 20.0, 50.0, 80.0, 100.0, 200.0], - name='two', - mode='lines', - line=dict( - dash='solid', - color='rgba (0, 0, 255, 0.7)', - width=2 - ), - xaxis='x1', - yaxis='y1' + name="two", + mode="lines", + line=dict(dash="solid", color="rgba (0, 0, 255, 0.7)", width=2), + xaxis="x1", + yaxis="y1", ), go.Scatter( x=[0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0], y=[1.0, 4.0, 8.0, 16.0, 32.0, 64.0, 128.0], - name='three', - mode='markers', + name="three", + mode="markers", marker=go.scatter.Marker( - symbol='cross', - line=dict( - color='#0000FF', - width=2 - ), + symbol="cross", + line=dict(color="#0000FF", width=2), size=10, - color='#0000FF', - opacity=0.6 + color="#0000FF", + opacity=0.6, ), - xaxis='x1', - yaxis='y1' + xaxis="x1", + yaxis="y1", ), go.Scatter( x=[0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0], y=[1.0, 4.0, 8.0, 16.0, 32.0, 64.0, 128.0], - name='four', - mode='lines', - line=go.scatter.Line( - dash='dash', - color='rgba (255, 0, 0, 0.8)', - width=2 - ), - xaxis='x1', - yaxis='y1' - ) + name="four", + mode="lines", + line=go.scatter.Line(dash="dash", color="rgba (255, 0, 0, 0.8)", width=2), + xaxis="x1", + yaxis="y1", + ), ], layout=go.Layout( width=640, height=480, autosize=False, - margin=go.layout.Margin( - l=80, - r=63, - b=52, - t=57, - pad=0 - ), - hovermode='closest', + margin=go.layout.Margin(l=80, r=63, b=52, t=57, pad=0), + hovermode="closest", showlegend=False, xaxis1=go.layout.XAxis( domain=[0.0, 1.0], range=[-0.30000000000000004, 6.2999999999999998], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=9, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='y1', - side='bottom', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="y1", + side="bottom", + mirror="ticks", ), yaxis1=go.layout.YAxis( domain=[0.0, 1.0], range=[-8.9500000000000011, 209.94999999999999], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=11, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='x1', - side='left', - mirror='ticks' - ) - ) -) \ No newline at end of file + tickfont=dict(size=10.0), + anchor="x1", + side="left", + mirror="ticks", + ), + ), +) diff --git a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/scatter.py b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/scatter.py index 17cbcb45148..f05f60e117b 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/scatter.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/scatter.py @@ -6,7 +6,7 @@ x1=[1, 2, 2, 4, 5, 6, 1, 7, 8, 5, 3], y1=[5, 3, 7, 2, 9, 7, 8, 4, 5, 9, 2], x2=[-1, 1, -0.3, -0.6, 0.4, 0.8, -0.1, 0.7], - y2=[-0.5, 0.4, 0.7, -0.6, 0.3, -1, 0, 0.3] + y2=[-0.5, 0.4, 0.7, -0.6, 0.3, -1, 0, 0.3], ) @@ -15,66 +15,53 @@ go.Scatter( x=[1.0, 2.0, 2.0, 4.0, 5.0, 6.0, 1.0, 7.0, 8.0, 5.0, 3.0], y=[5.0, 3.0, 7.0, 2.0, 9.0, 7.0, 8.0, 4.0, 5.0, 9.0, 2.0], - mode='markers', + mode="markers", marker=go.scatter.Marker( - symbol='circle', - line=dict( - color='rgba(31,119,180,1.0)', - width=1.0 - ), + symbol="circle", + line=dict(color="rgba(31,119,180,1.0)", width=1.0), size=6.0, - color='rgba(31,119,180,1.0)', + color="rgba(31,119,180,1.0)", ), - xaxis='x1', - yaxis='y1' + xaxis="x1", + yaxis="y1", ) ], layout=go.Layout( width=640, height=480, autosize=False, - margin=go.layout.Margin( - l=80, - r=63, - b=52, - t=57, - pad=0 - ), - hovermode='closest', + margin=go.layout.Margin(l=80, r=63, b=52, t=57, pad=0), + hovermode="closest", showlegend=False, xaxis1=go.layout.XAxis( domain=[0.0, 1.0], range=[0.64334677419354847, 8.3566532258064505], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=10, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='y1', - side='bottom', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="y1", + side="bottom", + mirror="ticks", ), yaxis1=go.layout.YAxis( domain=[0.0, 1.0], range=[1.6410714285714287, 9.3589285714285726], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=10, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='x1', - side='left', - mirror='ticks' - ) - ) + tickfont=dict(size=10.0), + anchor="x1", + side="left", + mirror="ticks", + ), + ), ) DOUBLE_SCATTER = go.Figure( @@ -82,80 +69,64 @@ go.Scatter( x=[1.0, 2.0, 2.0, 4.0, 5.0, 6.0, 1.0, 7.0, 8.0, 5.0, 3.0], y=[5.0, 3.0, 7.0, 2.0, 9.0, 7.0, 8.0, 4.0, 5.0, 9.0, 2.0], - mode='markers', + mode="markers", marker=go.scatter.Marker( - symbol='triangle-up', - line=dict( - color='rgba(255,0,0,0.5)', - width=1.0 - ), + symbol="triangle-up", + line=dict(color="rgba(255,0,0,0.5)", width=1.0), size=11.0, - color='rgba(255,0,0,0.5)', + color="rgba(255,0,0,0.5)", ), - xaxis='x1', - yaxis='y1' + xaxis="x1", + yaxis="y1", ), go.Scatter( x=[-1.0, 1.0, -0.3, -0.6, 0.4, 0.8, -0.1, 0.7], y=[-0.5, 0.4, 0.7, -0.6, 0.3, -1.0, 0.0, 0.3], - mode='markers', + mode="markers", marker=go.scatter.Marker( - symbol='square', - line=dict( - color='rgba(128,0,128,0.5)', - width=1.0 - ), + symbol="square", + line=dict(color="rgba(128,0,128,0.5)", width=1.0), size=8.0, - color='rgba(128,0,128,0.5)', + color="rgba(128,0,128,0.5)", ), - xaxis='x1', - yaxis='y1' - ) + xaxis="x1", + yaxis="y1", + ), ], layout=go.Layout( width=640, height=480, autosize=False, - margin=go.layout.Margin( - l=80, - r=63, - b=52, - t=57, - pad=0 - ), - hovermode='closest', + margin=go.layout.Margin(l=80, r=63, b=52, t=57, pad=0), + hovermode="closest", showlegend=False, xaxis1=go.layout.XAxis( domain=[0.0, 1.0], range=[-1.5159626203173777, 8.4647578206295506], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=7, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='y1', - side='bottom', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="y1", + side="bottom", + mirror="ticks", ), yaxis1=go.layout.YAxis( domain=[0.0, 1.0], range=[-1.588616071428572, 9.5198093820861693], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=7, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='x1', - side='left', - mirror='ticks' - ) - ) + tickfont=dict(size=10.0), + anchor="x1", + side="left", + mirror="ticks", + ), + ), ) diff --git a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/subplots.py b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/subplots.py index b2a981eb4a7..63dd06cf31f 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/subplots.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/data/subplots.py @@ -2,295 +2,250 @@ import plotly.graph_objs as go -D = dict( - x1=[0, 1], - y1=[1, 2] -) +D = dict(x1=[0, 1], y1=[1, 2]) BLANK_SUBPLOTS = go.Figure( data=[ go.Scatter( x=[0.0, 1.0], y=[1.0, 2.0], - name='_line0', - mode='lines', - line=go.scatter.Line( - dash='solid', - color='#0000FF', - width=1.0 - ), - xaxis='x1', - yaxis='y1' + name="_line0", + mode="lines", + line=go.scatter.Line(dash="solid", color="#0000FF", width=1.0), + xaxis="x1", + yaxis="y1", ) ], layout=go.Layout( width=640, height=480, autosize=False, - margin=go.layout.Margin( - l=168, - r=63, - b=52, - t=57, - pad=0 - ), - hovermode='closest', + margin=go.layout.Margin(l=168, r=63, b=52, t=57, pad=0), + hovermode="closest", showlegend=False, xaxis1=go.layout.XAxis( domain=[0.0, 0.13513513513513517], range=[-0.050000000000000003, 1.05], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=4, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='y1', - side='bottom', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="y1", + side="bottom", + mirror="ticks", ), xaxis2=go.layout.XAxis( domain=[0.0, 0.13513513513513517], range=[0.0, 1.0], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=2, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='y2', - side='bottom', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="y2", + side="bottom", + mirror="ticks", ), xaxis3=go.layout.XAxis( domain=[0.0, 0.13513513513513517], range=[0.0, 1.0], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=2, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='y3', - side='bottom', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="y3", + side="bottom", + mirror="ticks", ), xaxis4=go.layout.XAxis( domain=[0.2162162162162162, 1.0], range=[0.0, 1.0], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=6, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='y4', - side='bottom', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="y4", + side="bottom", + mirror="ticks", ), xaxis5=go.layout.XAxis( domain=[0.2162162162162162, 0.56756756756756754], range=[0.0, 1.0], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=3, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='y5', - side='bottom', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="y5", + side="bottom", + mirror="ticks", ), xaxis6=go.layout.XAxis( domain=[0.2162162162162162, 0.78378378378378377], range=[0.0, 1.0], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=6, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='y6', - side='bottom', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="y6", + side="bottom", + mirror="ticks", ), xaxis7=go.layout.XAxis( domain=[0.64864864864864857, 1.0], range=[0.0, 1.0], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=3, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='y7', - side='bottom', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="y7", + side="bottom", + mirror="ticks", ), xaxis8=go.layout.XAxis( domain=[0.8648648648648648, 1.0], range=[0.0, 1.0], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=2, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='y8', - side='bottom', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="y8", + side="bottom", + mirror="ticks", ), yaxis1=go.layout.YAxis( domain=[0.82758620689655171, 1.0], range=[0.94999999999999996, 2.0499999999999998], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=4, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='x1', - side='left', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="x1", + side="left", + mirror="ticks", ), yaxis2=go.layout.YAxis( domain=[0.55172413793103448, 0.72413793103448265], range=[0.0, 1.0], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=3, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='x2', - side='left', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="x2", + side="left", + mirror="ticks", ), yaxis3=go.layout.YAxis( domain=[0.0, 0.44827586206896547], range=[0.0, 1.0], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=6, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='x3', - side='left', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="x3", + side="left", + mirror="ticks", ), yaxis4=go.layout.YAxis( domain=[0.82758620689655171, 1.0], range=[0.0, 1.0], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=3, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='x4', - side='left', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="x4", + side="left", + mirror="ticks", ), yaxis5=go.layout.YAxis( domain=[0.27586206896551713, 0.72413793103448265], range=[0.0, 1.0], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=6, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='x5', - side='left', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="x5", + side="left", + mirror="ticks", ), yaxis6=go.layout.YAxis( domain=[0.0, 0.17241379310344826], range=[0.0, 1.0], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=3, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='x6', - side='left', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="x6", + side="left", + mirror="ticks", ), yaxis7=go.layout.YAxis( domain=[0.27586206896551713, 0.72413793103448265], range=[0.0, 1.0], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=6, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='x7', - side='left', - mirror='ticks' + tickfont=dict(size=10.0), + anchor="x7", + side="left", + mirror="ticks", ), yaxis8=go.layout.YAxis( domain=[0.0, 0.17241379310344826], range=[0.0, 1.0], - type='linear', + type="linear", showline=True, - ticks='inside', + ticks="inside", nticks=3, showgrid=False, zeroline=False, - tickfont=dict( - size=10.0 - ), - anchor='x8', - side='left', - mirror='ticks' - ) - ) + tickfont=dict(size=10.0), + anchor="x8", + side="left", + mirror="ticks", + ), + ), ) diff --git a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_annotations.py b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_annotations.py index b126500b61c..6d0b337cd73 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_annotations.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_annotations.py @@ -4,7 +4,7 @@ from plotly import optional_imports -matplotlylib = optional_imports.get_module('plotly.matplotlylib') +matplotlylib = optional_imports.get_module("plotly.matplotlylib") if matplotlylib: import matplotlib.pyplot as plt @@ -14,25 +14,26 @@ from plotly.tests.test_optional.test_matplotlylib.data.annotations import * -@attr('matplotlib') +@attr("matplotlib") def test_annotations(): fig, ax = plt.subplots() - ax.plot([1, 2, 3], 'b-') - ax.plot([3, 2, 1], 'b-') - ax.text(0.001, 0.999, - 'top-left', transform=ax.transAxes, va='top', ha='left') - ax.text(0.001, 0.001, - 'bottom-left', transform=ax.transAxes, va='baseline', ha='left') - ax.text(0.999, 0.999, - 'top-right', transform=ax.transAxes, va='top', ha='right') - ax.text(0.999, 0.001, - 'bottom-right', transform=ax.transAxes, va='baseline', ha='right') + ax.plot([1, 2, 3], "b-") + ax.plot([3, 2, 1], "b-") + ax.text(0.001, 0.999, "top-left", transform=ax.transAxes, va="top", ha="left") + ax.text( + 0.001, 0.001, "bottom-left", transform=ax.transAxes, va="baseline", ha="left" + ) + ax.text(0.999, 0.999, "top-right", transform=ax.transAxes, va="top", ha="right") + ax.text( + 0.999, 0.001, "bottom-right", transform=ax.transAxes, va="baseline", ha="right" + ) renderer = run_fig(fig) - for data_no, data_dict in enumerate(renderer.plotly_fig['data']): - d1, d2 = strip_dict_params(data_dict, ANNOTATIONS['data'][data_no], ignore=['uid']) + for data_no, data_dict in enumerate(renderer.plotly_fig["data"]): + d1, d2 = strip_dict_params( + data_dict, ANNOTATIONS["data"][data_no], ignore=["uid"] + ) equivalent, msg = compare_dict(d1, d2) assert equivalent, msg - for no, note in enumerate(renderer.plotly_fig['layout']['annotations']): - equivalent, msg = compare_dict(note, - ANNOTATIONS['layout']['annotations'][no]) + for no, note in enumerate(renderer.plotly_fig["layout"]["annotations"]): + equivalent, msg = compare_dict(note, ANNOTATIONS["layout"]["annotations"][no]) assert equivalent, msg diff --git a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_axis_scales.py b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_axis_scales.py index b872d41c97a..9063ce7319a 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_axis_scales.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_axis_scales.py @@ -7,13 +7,13 @@ from plotly.tests.test_optional.optional_utils import run_fig from plotly.tests.test_optional.test_matplotlylib.data.axis_scales import * -matplotlylib = optional_imports.get_module('plotly.matplotlylib') +matplotlylib = optional_imports.get_module("plotly.matplotlylib") if matplotlylib: import matplotlib.pyplot as plt -@attr('matplotlib') +@attr("matplotlib") def test_even_linear_scale(): fig, ax = plt.subplots() x = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] @@ -22,15 +22,18 @@ def test_even_linear_scale(): _ = ax.set_xticks(list(range(0, 20, 3)), True) _ = ax.set_yticks(list(range(0, 200, 13)), True) renderer = run_fig(fig) - for data_no, data_dict in enumerate(renderer.plotly_fig['data']): + for data_no, data_dict in enumerate(renderer.plotly_fig["data"]): # equivalent, msg = compare_dict(data_dict.to_plotly_json(), # EVEN_LINEAR_SCALE['data'][data_no].to_plotly_json()) # assert equivalent, msg - d1, d2 = strip_dict_params(data_dict, EVEN_LINEAR_SCALE['data'][data_no], ignore=['uid']) + d1, d2 = strip_dict_params( + data_dict, EVEN_LINEAR_SCALE["data"][data_no], ignore=["uid"] + ) equivalent, msg = compare_dict(d1, d2) assert equivalent, msg - equivalent, msg = compare_dict(renderer.plotly_fig['layout'], - EVEN_LINEAR_SCALE['layout']) + equivalent, msg = compare_dict( + renderer.plotly_fig["layout"], EVEN_LINEAR_SCALE["layout"] + ) assert equivalent, msg diff --git a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_bars.py b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_bars.py index e0da2635511..6a6df896150 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_bars.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_bars.py @@ -7,61 +7,80 @@ from plotly.tests.test_optional.optional_utils import run_fig from plotly.tests.test_optional.test_matplotlylib.data.bars import * -matplotlylib = optional_imports.get_module('plotly.matplotlylib') +matplotlylib = optional_imports.get_module("plotly.matplotlylib") if matplotlylib: import matplotlib.pyplot as plt -@attr('matplotlib') +@attr("matplotlib") def test_vertical_bar(): fig, ax = plt.subplots() - ax.bar(left=D['left'], height=D['height']) + ax.bar(left=D["left"], height=D["height"]) renderer = run_fig(fig) - for data_no, data_dict in enumerate(renderer.plotly_fig['data']): - d1, d2 = strip_dict_params(data_dict, VERTICAL_BAR['data'][data_no], ignore=['uid']) + for data_no, data_dict in enumerate(renderer.plotly_fig["data"]): + d1, d2 = strip_dict_params( + data_dict, VERTICAL_BAR["data"][data_no], ignore=["uid"] + ) equivalent, msg = compare_dict(d1, d2) assert equivalent, msg - equivalent, msg = compare_dict(renderer.plotly_fig['layout'], - VERTICAL_BAR['layout']) + equivalent, msg = compare_dict( + renderer.plotly_fig["layout"], VERTICAL_BAR["layout"] + ) assert equivalent, msg -@attr('matplotlib') +@attr("matplotlib") def test_horizontal_bar(): fig, ax = plt.subplots() - ax.barh(bottom=D['bottom'], width=D['width']) + ax.barh(bottom=D["bottom"], width=D["width"]) renderer = run_fig(fig) - for data_no, data_dict in enumerate(renderer.plotly_fig['data']): - d1, d2 = strip_dict_params(data_dict, HORIZONTAL_BAR['data'][data_no], ignore=['uid']) + for data_no, data_dict in enumerate(renderer.plotly_fig["data"]): + d1, d2 = strip_dict_params( + data_dict, HORIZONTAL_BAR["data"][data_no], ignore=["uid"] + ) equivalent, msg = compare_dict(d1, d2) assert equivalent, msg - equivalent, msg = compare_dict(renderer.plotly_fig['layout'], - HORIZONTAL_BAR['layout']) + equivalent, msg = compare_dict( + renderer.plotly_fig["layout"], HORIZONTAL_BAR["layout"] + ) assert equivalent, msg -@attr('matplotlib') +@attr("matplotlib") def test_h_and_v_bars(): fig, ax = plt.subplots() - ax.bar(left=D['multi_left'], height=D['multi_height'], - width=10, color='green', alpha=.5) + ax.bar( + left=D["multi_left"], + height=D["multi_height"], + width=10, + color="green", + alpha=0.5, + ) # changing height 10 -> 14 because ValueError if bargap not in [0, 1] - ax.barh(bottom=D['multi_bottom'], width=D['multi_width'], - height=14, color='red', alpha=.5) + ax.barh( + bottom=D["multi_bottom"], + width=D["multi_width"], + height=14, + color="red", + alpha=0.5, + ) renderer = run_fig(fig) - for data_no, data_dict in enumerate(renderer.plotly_fig['data']): - d1, d2 = strip_dict_params(data_dict, H_AND_V_BARS['data'][data_no], ignore=['uid']) + for data_no, data_dict in enumerate(renderer.plotly_fig["data"]): + d1, d2 = strip_dict_params( + data_dict, H_AND_V_BARS["data"][data_no], ignore=["uid"] + ) equivalent, msg = compare_dict(d1, d2) assert equivalent, msg - equivalent, msg = compare_dict(renderer.plotly_fig['layout'], - H_AND_V_BARS['layout']) + equivalent, msg = compare_dict( + renderer.plotly_fig["layout"], H_AND_V_BARS["layout"] + ) assert equivalent, msg diff --git a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_data.py b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_data.py index 581e8b96f43..050432c8987 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_data.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_data.py @@ -6,64 +6,85 @@ from plotly.tests.test_optional.optional_utils import run_fig from plotly.tests.test_optional.test_matplotlylib.data.data import * -matplotlylib = optional_imports.get_module('plotly.matplotlylib') +matplotlylib = optional_imports.get_module("plotly.matplotlylib") if matplotlylib: import matplotlib.pyplot as plt -@attr('matplotlib') +@attr("matplotlib") def test_line_data(): fig, ax = plt.subplots() - ax.plot(D['x1'], D['y1']) + ax.plot(D["x1"], D["y1"]) renderer = run_fig(fig) - for xi, xf, yi, yf in zip(renderer.plotly_fig['data'][0]['x'], D['x1'], - renderer.plotly_fig['data'][0]['y'], D['y1']): - assert xi == xf, str( - renderer.plotly_fig['data'][0]['x']) + ' is not ' + str(D['x1']) - assert yi == yf, str( - renderer.plotly_fig['data'][0]['y']) + ' is not ' + str(D['y1']) + for xi, xf, yi, yf in zip( + renderer.plotly_fig["data"][0]["x"], + D["x1"], + renderer.plotly_fig["data"][0]["y"], + D["y1"], + ): + assert xi == xf, ( + str(renderer.plotly_fig["data"][0]["x"]) + " is not " + str(D["x1"]) + ) + assert yi == yf, ( + str(renderer.plotly_fig["data"][0]["y"]) + " is not " + str(D["y1"]) + ) -@attr('matplotlib') +@attr("matplotlib") def test_lines_data(): fig, ax = plt.subplots() - ax.plot(D['x1'], D['y1']) - ax.plot(D['x2'], D['y2']) + ax.plot(D["x1"], D["y1"]) + ax.plot(D["x2"], D["y2"]) renderer = run_fig(fig) - for xi, xf, yi, yf in zip(renderer.plotly_fig['data'][0]['x'], D['x1'], - renderer.plotly_fig['data'][0]['y'], D['y1']): - assert xi == xf, str( - renderer.plotly_fig['data'][0]['x']) + ' is not ' + str(D['x1']) - assert yi == yf, str( - renderer.plotly_fig['data'][0]['y']) + ' is not ' + str(D['y1']) - for xi, xf, yi, yf in zip(renderer.plotly_fig['data'][1]['x'], D['x2'], - renderer.plotly_fig['data'][1]['y'], D['y2']): - assert xi == xf, str( - renderer.plotly_fig['data'][1]['x']) + ' is not ' + str(D['x2']) - assert yi == yf, str( - renderer.plotly_fig['data'][0]['y']) + ' is not ' + str(D['y2']) + for xi, xf, yi, yf in zip( + renderer.plotly_fig["data"][0]["x"], + D["x1"], + renderer.plotly_fig["data"][0]["y"], + D["y1"], + ): + assert xi == xf, ( + str(renderer.plotly_fig["data"][0]["x"]) + " is not " + str(D["x1"]) + ) + assert yi == yf, ( + str(renderer.plotly_fig["data"][0]["y"]) + " is not " + str(D["y1"]) + ) + for xi, xf, yi, yf in zip( + renderer.plotly_fig["data"][1]["x"], + D["x2"], + renderer.plotly_fig["data"][1]["y"], + D["y2"], + ): + assert xi == xf, ( + str(renderer.plotly_fig["data"][1]["x"]) + " is not " + str(D["x2"]) + ) + assert yi == yf, ( + str(renderer.plotly_fig["data"][0]["y"]) + " is not " + str(D["y2"]) + ) -@attr('matplotlib') +@attr("matplotlib") def test_bar_data(): fig, ax = plt.subplots() - ax.bar(D['x1'], D['y1']) + ax.bar(D["x1"], D["y1"]) renderer = run_fig(fig) - for yi, yf in zip(renderer.plotly_fig['data'][0]['y'], D['y1']): - assert yi == yf, str( - renderer.plotly_fig['data'][0]['y']) + ' is not ' + str(D['y1']) + for yi, yf in zip(renderer.plotly_fig["data"][0]["y"], D["y1"]): + assert yi == yf, ( + str(renderer.plotly_fig["data"][0]["y"]) + " is not " + str(D["y1"]) + ) -@attr('matplotlib') +@attr("matplotlib") def test_bars_data(): fig, ax = plt.subplots() - ax.bar(D['x1'], D['y1'], color='r') - ax.barh(D['x2'], D['y2'], color='b') + ax.bar(D["x1"], D["y1"], color="r") + ax.barh(D["x2"], D["y2"], color="b") renderer = run_fig(fig) - for yi, yf in zip(renderer.plotly_fig['data'][0]['y'], D['y1']): - assert yi == yf, str( - renderer.plotly_fig['data'][0]['y']) + ' is not ' + str(D['y1']) - for xi, yf in zip(renderer.plotly_fig['data'][1]['x'], D['y2']): - assert xi == yf, str( - renderer.plotly_fig['data'][1]['x']) + ' is not ' + str(D['y2']) + for yi, yf in zip(renderer.plotly_fig["data"][0]["y"], D["y1"]): + assert yi == yf, ( + str(renderer.plotly_fig["data"][0]["y"]) + " is not " + str(D["y1"]) + ) + for xi, yf in zip(renderer.plotly_fig["data"][1]["x"], D["y2"]): + assert xi == yf, ( + str(renderer.plotly_fig["data"][1]["x"]) + " is not " + str(D["y2"]) + ) diff --git a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_date_times.py b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_date_times.py index f12a0f40155..d9143d45fa2 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_date_times.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_date_times.py @@ -10,27 +10,30 @@ import plotly.tools as tls from plotly import optional_imports -matplotlylib = optional_imports.get_module('plotly.matplotlylib') +matplotlylib = optional_imports.get_module("plotly.matplotlylib") if matplotlylib: from matplotlib.dates import date2num import matplotlib.pyplot as plt -@attr('matplotlib') +@attr("matplotlib") class TestDateTimes(TestCase): - def test_normal_mpl_dates(self): - datetime_format = '%Y-%m-%d %H:%M:%S' + datetime_format = "%Y-%m-%d %H:%M:%S" y = [1, 2, 3, 4] - date_strings = ['2010-01-04 00:00:00', - '2010-01-04 10:00:00', - '2010-01-04 23:00:59', - '2010-01-05 00:00:00'] + date_strings = [ + "2010-01-04 00:00:00", + "2010-01-04 10:00:00", + "2010-01-04 23:00:59", + "2010-01-05 00:00:00", + ] # 1. create datetimes from the strings - dates = [datetime.datetime.strptime(date_string, datetime_format) - for date_string in date_strings] + dates = [ + datetime.datetime.strptime(date_string, datetime_format) + for date_string in date_strings + ] # 2. create the mpl_dates from these datetimes mpl_dates = date2num(dates) @@ -42,31 +45,31 @@ def test_normal_mpl_dates(self): # convert this figure to plotly's graph_objs pfig = tls.mpl_to_plotly(fig) - print(date_strings) - print(pfig['data'][0]['x']) + print (date_strings) + print (pfig["data"][0]["x"]) # we use the same format here, so we expect equality here - self.assertEqual( - fig.axes[0].lines[0].get_xydata()[0][0], 7.33776000e+05 - ) - self.assertEqual(tuple(pfig['data'][0]['x']), tuple(date_strings)) + self.assertEqual(fig.axes[0].lines[0].get_xydata()[0][0], 7.33776000e05) + self.assertEqual(tuple(pfig["data"][0]["x"]), tuple(date_strings)) def test_pandas_time_series_date_formatter(self): ndays = 3 - x = pd.date_range('1/1/2001', periods=ndays, freq='D') + x = pd.date_range("1/1/2001", periods=ndays, freq="D") y = [random.randint(0, 10) for i in range(ndays)] - s = pd.DataFrame(y, columns=['a']) + s = pd.DataFrame(y, columns=["a"]) - s['Date'] = x - s.plot(x='Date') + s["Date"] = x + s.plot(x="Date") fig = plt.gcf() pfig = tls.mpl_to_plotly(fig) - expected_x = ('2001-01-01 00:00:00', - '2001-01-02 00:00:00', - '2001-01-03 00:00:00') + expected_x = ( + "2001-01-01 00:00:00", + "2001-01-02 00:00:00", + "2001-01-03 00:00:00", + ) expected_x0 = 11323.0 # this is floating point days since epoch x0 = fig.axes[0].lines[0].get_xydata()[0][0] self.assertEqual(x0, expected_x0) - self.assertEqual(pfig['data'][0]['x'], expected_x) + self.assertEqual(pfig["data"][0]["x"], expected_x) diff --git a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_lines.py b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_lines.py index 7de24ca67a3..642936aed13 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_lines.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_lines.py @@ -7,42 +7,53 @@ from plotly.tests.test_optional.optional_utils import run_fig from plotly.tests.test_optional.test_matplotlylib.data.lines import * -matplotlylib = optional_imports.get_module('plotly.matplotlylib') +matplotlylib = optional_imports.get_module("plotly.matplotlylib") if matplotlylib: import matplotlib.pyplot as plt -@attr('matplotlib') +@attr("matplotlib") def test_simple_line(): fig, ax = plt.subplots() - ax.plot(D['x1'], D['y1'], label='simple') + ax.plot(D["x1"], D["y1"], label="simple") renderer = run_fig(fig) - for data_no, data_dict in enumerate(renderer.plotly_fig['data']): - d1, d2 = strip_dict_params(data_dict, SIMPLE_LINE['data'][data_no], ignore=['uid']) + for data_no, data_dict in enumerate(renderer.plotly_fig["data"]): + d1, d2 = strip_dict_params( + data_dict, SIMPLE_LINE["data"][data_no], ignore=["uid"] + ) equivalent, msg = compare_dict(d1, d2) assert equivalent, msg - equivalent, msg = compare_dict(renderer.plotly_fig['layout'], - SIMPLE_LINE['layout']) + equivalent, msg = compare_dict(renderer.plotly_fig["layout"], SIMPLE_LINE["layout"]) assert equivalent, msg -@attr('matplotlib') +@attr("matplotlib") def test_complicated_line(): fig, ax = plt.subplots() - ax.plot(D['x1'], D['y1'], 'ro', markersize=10, alpha=.5, label='one') - ax.plot(D['x1'], D['y1'], '-b', linewidth=2, alpha=.7, label='two') - ax.plot(D['x2'], D['y2'], 'b+', markeredgewidth=2, - markersize=10, alpha=.6, label='three') - ax.plot(D['x2'], D['y2'], '--r', linewidth=2, alpha=.8, label='four') + ax.plot(D["x1"], D["y1"], "ro", markersize=10, alpha=0.5, label="one") + ax.plot(D["x1"], D["y1"], "-b", linewidth=2, alpha=0.7, label="two") + ax.plot( + D["x2"], + D["y2"], + "b+", + markeredgewidth=2, + markersize=10, + alpha=0.6, + label="three", + ) + ax.plot(D["x2"], D["y2"], "--r", linewidth=2, alpha=0.8, label="four") renderer = run_fig(fig) - for data_no, data_dict in enumerate(renderer.plotly_fig['data']): - d1, d2 = strip_dict_params(data_dict, COMPLICATED_LINE['data'][data_no], ignore=['uid']) + for data_no, data_dict in enumerate(renderer.plotly_fig["data"]): + d1, d2 = strip_dict_params( + data_dict, COMPLICATED_LINE["data"][data_no], ignore=["uid"] + ) equivalent, msg = compare_dict(d1, d2) assert equivalent, msg - equivalent, msg = compare_dict(renderer.plotly_fig['layout'], - COMPLICATED_LINE['layout']) + equivalent, msg = compare_dict( + renderer.plotly_fig["layout"], COMPLICATED_LINE["layout"] + ) assert equivalent, msg diff --git a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_scatter.py b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_scatter.py index b24b8ff7dcc..c85928eda1a 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_scatter.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_scatter.py @@ -7,42 +7,48 @@ from plotly.tests.test_optional.optional_utils import run_fig from plotly.tests.test_optional.test_matplotlylib.data.scatter import * -matplotlylib = optional_imports.get_module('plotly.matplotlylib') +matplotlylib = optional_imports.get_module("plotly.matplotlylib") if matplotlylib: import matplotlib.pyplot as plt -@attr('matplotlib') +@attr("matplotlib") def test_simple_scatter(): fig, ax = plt.subplots() - ax.scatter(D['x1'], D['y1']) + ax.scatter(D["x1"], D["y1"]) renderer = run_fig(fig) - for data_no, data_dict in enumerate(renderer.plotly_fig['data']): - d1, d2 = strip_dict_params(data_dict, SIMPLE_SCATTER['data'][data_no], ignore=['uid']) - print(d1) - print('\n') - print(d2) + for data_no, data_dict in enumerate(renderer.plotly_fig["data"]): + d1, d2 = strip_dict_params( + data_dict, SIMPLE_SCATTER["data"][data_no], ignore=["uid"] + ) + print (d1) + print ("\n") + print (d2) assert d1 == d2 - equivalent, msg = compare_dict(renderer.plotly_fig['layout'], - SIMPLE_SCATTER['layout']) + equivalent, msg = compare_dict( + renderer.plotly_fig["layout"], SIMPLE_SCATTER["layout"] + ) assert equivalent, msg -@attr('matplotlib') +@attr("matplotlib") def test_double_scatter(): fig, ax = plt.subplots() - ax.scatter(D['x1'], D['y1'], color='red', s=121, marker='^', alpha=0.5) - ax.scatter(D['x2'], D['y2'], color='purple', s=64, marker='s', alpha=0.5) + ax.scatter(D["x1"], D["y1"], color="red", s=121, marker="^", alpha=0.5) + ax.scatter(D["x2"], D["y2"], color="purple", s=64, marker="s", alpha=0.5) renderer = run_fig(fig) - for data_no, data_dict in enumerate(renderer.plotly_fig['data']): - d1, d2 = strip_dict_params(data_dict, DOUBLE_SCATTER['data'][data_no], ignore=['uid']) - print(d1) - print('\n') - print(d2) + for data_no, data_dict in enumerate(renderer.plotly_fig["data"]): + d1, d2 = strip_dict_params( + data_dict, DOUBLE_SCATTER["data"][data_no], ignore=["uid"] + ) + print (d1) + print ("\n") + print (d2) assert d1 == d2 - equivalent, msg = compare_dict(renderer.plotly_fig['layout'], - DOUBLE_SCATTER['layout']) + equivalent, msg = compare_dict( + renderer.plotly_fig["layout"], DOUBLE_SCATTER["layout"] + ) assert equivalent, msg diff --git a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_subplots.py b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_subplots.py index 93472d6202d..4553eadeb43 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_subplots.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_matplotlylib/test_subplots.py @@ -7,19 +7,19 @@ from plotly.tests.test_optional.optional_utils import run_fig from plotly.tests.test_optional.test_matplotlylib.data.subplots import * -matplotlylib = optional_imports.get_module('plotly.matplotlylib') +matplotlylib = optional_imports.get_module("plotly.matplotlylib") if matplotlylib: from matplotlib.gridspec import GridSpec import matplotlib.pyplot as plt -@attr('matplotlib') +@attr("matplotlib") def test_blank_subplots(): fig = plt.figure() gs = GridSpec(4, 6) ax1 = fig.add_subplot(gs[0, 1]) - ax1.plot(D['x1'], D['y1']) + ax1.plot(D["x1"], D["y1"]) fig.add_subplot(gs[1, 1]) fig.add_subplot(gs[2:, 1]) fig.add_subplot(gs[0, 2:]) @@ -27,14 +27,16 @@ def test_blank_subplots(): fig.add_subplot(gs[3, 2:5]) fig.add_subplot(gs[1:3, 4:]) fig.add_subplot(gs[3, 5]) - gs.update(hspace=.6, wspace=.6) + gs.update(hspace=0.6, wspace=0.6) renderer = run_fig(fig) - for data_no, data_dict in enumerate(renderer.plotly_fig['data']): - d1, d2 = strip_dict_params(data_dict, BLANK_SUBPLOTS['data'][data_no], - ignore=['uid']) + for data_no, data_dict in enumerate(renderer.plotly_fig["data"]): + d1, d2 = strip_dict_params( + data_dict, BLANK_SUBPLOTS["data"][data_no], ignore=["uid"] + ) equivalent, msg = compare_dict(d1, d2) - equivalent, msg = compare_dict(renderer.plotly_fig['layout'], - BLANK_SUBPLOTS['layout']) + equivalent, msg = compare_dict( + renderer.plotly_fig["layout"], BLANK_SUBPLOTS["layout"] + ) assert equivalent, msg diff --git a/packages/python/plotly/plotly/tests/test_optional/test_offline/test_offline.py b/packages/python/plotly/plotly/tests/test_optional/test_offline/test_offline.py index 058594dd407..f16575d7c2e 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_offline/test_offline.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_offline/test_offline.py @@ -13,12 +13,13 @@ import plotly from plotly import optional_imports -matplotlylib = optional_imports.get_module('plotly.matplotlylib') +matplotlylib = optional_imports.get_module("plotly.matplotlylib") if matplotlylib: import matplotlib + # Force matplotlib to not use any Xwindows backend. - matplotlib.use('Agg') + matplotlib.use("Agg") import matplotlib.pyplot as plt @@ -37,7 +38,8 @@ def test_iplot_works_after_you_call_init_notebook_mode(self): plotly.offline.iplot([{}]) if matplotlylib: - @attr('matplotlib') + + @attr("matplotlib") def test_iplot_mpl_works(self): # Generate matplotlib plot for tests fig = plt.figure() @@ -57,11 +59,12 @@ def _read_html(self, file_url): """ Read and return the HTML contents from a file_url in the form e.g. file:///Users/chriddyp/Repos/plotly.py/plotly-temp.html """ - with open(file_url.replace('file://', '').replace(' ', '')) as f: + with open(file_url.replace("file://", "").replace(" ", "")) as f: return f.read() if matplotlylib: - @attr('matplotlib') + + @attr("matplotlib") def test_default_mpl_plot_generates_expected_html(self): # Generate matplotlib plot for tests fig = plt.figure() @@ -71,13 +74,15 @@ def test_default_mpl_plot_generates_expected_html(self): plt.plot(x, y) figure = plotly.tools.mpl_to_plotly(fig).to_dict() - data = figure['data'] + data = figure["data"] - layout = figure['layout'] + layout = figure["layout"] data_json = _json.dumps( - data, cls=plotly.utils.PlotlyJSONEncoder, sort_keys=True) + data, cls=plotly.utils.PlotlyJSONEncoder, sort_keys=True + ) layout_json = _json.dumps( - layout, cls=plotly.utils.PlotlyJSONEncoder, sort_keys=True) + layout, cls=plotly.utils.PlotlyJSONEncoder, sort_keys=True + ) html = self._read_html(plotly.offline.plot_mpl(fig)) # blank out uid before comparisons @@ -86,9 +91,8 @@ def test_default_mpl_plot_generates_expected_html(self): # just make sure a few of the parts are in here # like PlotlyOfflineTestCase(TestCase) in test_core - self.assertTrue(data_json in html) # data is in there - self.assertTrue(layout_json in html) # layout is in there too - self.assertTrue(PLOTLYJS in html) # and the source code + self.assertTrue(data_json in html) # data is in there + self.assertTrue(layout_json in html) # layout is in there too + self.assertTrue(PLOTLYJS in html) # and the source code # and it's an doc - self.assertTrue(html.startswith('') - and html.endswith('')) + self.assertTrue(html.startswith("") and html.endswith("")) diff --git a/packages/python/plotly/plotly/tests/test_optional/test_tools/test_figure_factory.py b/packages/python/plotly/plotly/tests/test_optional/test_tools/test_figure_factory.py index 4f0c27e4f7b..cfbc75a5cc8 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_tools/test_figure_factory.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_tools/test_figure_factory.py @@ -12,152 +12,145 @@ class TestQuiver(TestCaseNoTemplate, NumpyTestUtilsMixin): - def test_unequal_xy_length(self): # check: PlotlyError if x and y are not the same length - kwargs = {'x': [1, 2], 'y': [1], 'u': [1, 2], 'v': [1, 2]} - self.assertRaises(PlotlyError, ff.create_quiver, - **kwargs) + kwargs = {"x": [1, 2], "y": [1], "u": [1, 2], "v": [1, 2]} + self.assertRaises(PlotlyError, ff.create_quiver, **kwargs) def test_wrong_scale(self): # check: ValueError if scale is <= 0 - kwargs = {'x': [1, 2], 'y': [1, 2], - 'u': [1, 2], 'v': [1, 2], - 'scale': -1} - self.assertRaises(ValueError, ff.create_quiver, - **kwargs) + kwargs = {"x": [1, 2], "y": [1, 2], "u": [1, 2], "v": [1, 2], "scale": -1} + self.assertRaises(ValueError, ff.create_quiver, **kwargs) - kwargs = {'x': [1, 2], 'y': [1, 2], - 'u': [1, 2], 'v': [1, 2], - 'scale': 0} - self.assertRaises(ValueError, ff.create_quiver, - **kwargs) + kwargs = {"x": [1, 2], "y": [1, 2], "u": [1, 2], "v": [1, 2], "scale": 0} + self.assertRaises(ValueError, ff.create_quiver, **kwargs) def test_wrong_arrow_scale(self): # check: ValueError if arrow_scale is <= 0 - kwargs = {'x': [1, 2], 'y': [1, 2], - 'u': [1, 2], 'v': [1, 2], - 'arrow_scale': -1} - self.assertRaises(ValueError, ff.create_quiver, - **kwargs) + kwargs = {"x": [1, 2], "y": [1, 2], "u": [1, 2], "v": [1, 2], "arrow_scale": -1} + self.assertRaises(ValueError, ff.create_quiver, **kwargs) - kwargs = {'x': [1, 2], 'y': [1, 2], - 'u': [1, 2], 'v': [1, 2], - 'arrow_scale': 0} - self.assertRaises(ValueError, ff.create_quiver, - **kwargs) + kwargs = {"x": [1, 2], "y": [1, 2], "u": [1, 2], "v": [1, 2], "arrow_scale": 0} + self.assertRaises(ValueError, ff.create_quiver, **kwargs) def test_one_arrow(self): # we should be able to create a single arrow using create_quiver - quiver = ff.create_quiver(x=[1], y=[1], - u=[1], v=[1], - scale=1) + quiver = ff.create_quiver(x=[1], y=[1], u=[1], v=[1], scale=1) expected_quiver = { - 'data': [{'mode': 'lines', - 'type': u'scatter', - 'x': [1, 2, None, 1.820698256761928, 2, - 1.615486170766527, None], - 'y': [1, 2, None, 1.615486170766527, 2, - 1.820698256761928, None]}], - 'layout': {'hovermode': 'closest'}} - self.assert_fig_equal(quiver['data'][0], - expected_quiver['data'][0]) - self.assert_fig_equal(quiver['layout'], - expected_quiver['layout']) + "data": [ + { + "mode": "lines", + "type": "scatter", + "x": [1, 2, None, 1.820698256761928, 2, 1.615486170766527, None], + "y": [1, 2, None, 1.615486170766527, 2, 1.820698256761928, None], + } + ], + "layout": {"hovermode": "closest"}, + } + self.assert_fig_equal(quiver["data"][0], expected_quiver["data"][0]) + self.assert_fig_equal(quiver["layout"], expected_quiver["layout"]) def test_more_kwargs(self): # we should be able to create 2 arrows and change the arrow_scale, # angle, and arrow using create_quiver - quiver = ff.create_quiver(x=[1, 2], - y=[1, 2], - u=[math.cos(1), - math.cos(2)], - v=[math.sin(1), - math.sin(2)], - arrow_scale=.4, - angle=math.pi / 6, - line=graph_objs.scatter.Line(color='purple', - width=3)) - expected_quiver = {'data': [{'line': {'color': 'purple', 'width': 3}, - 'mode': 'lines', - 'type': u'scatter', - 'x': [1, - 1.0540302305868139, - None, - 2, - 1.9583853163452858, - None, - 1.052143029378767, - 1.0540302305868139, - 1.0184841899864512, - None, - 1.9909870141679737, - 1.9583853163452858, - 1.9546151170949464, - None], - 'y': [1, - 1.0841470984807897, - None, - 2, - 2.0909297426825684, - None, - 1.044191642387781, - 1.0841470984807897, - 1.0658037346225067, - None, - 2.0677536925644366, - 2.0909297426825684, - 2.051107819102551, - None]}], - 'layout': {'hovermode': 'closest'}} - self.assert_fig_equal(quiver['data'][0], - expected_quiver['data'][0]) - self.assert_fig_equal(quiver['layout'], - expected_quiver['layout']) + quiver = ff.create_quiver( + x=[1, 2], + y=[1, 2], + u=[math.cos(1), math.cos(2)], + v=[math.sin(1), math.sin(2)], + arrow_scale=0.4, + angle=math.pi / 6, + line=graph_objs.scatter.Line(color="purple", width=3), + ) + expected_quiver = { + "data": [ + { + "line": {"color": "purple", "width": 3}, + "mode": "lines", + "type": "scatter", + "x": [ + 1, + 1.0540302305868139, + None, + 2, + 1.9583853163452858, + None, + 1.052143029378767, + 1.0540302305868139, + 1.0184841899864512, + None, + 1.9909870141679737, + 1.9583853163452858, + 1.9546151170949464, + None, + ], + "y": [ + 1, + 1.0841470984807897, + None, + 2, + 2.0909297426825684, + None, + 1.044191642387781, + 1.0841470984807897, + 1.0658037346225067, + None, + 2.0677536925644366, + 2.0909297426825684, + 2.051107819102551, + None, + ], + } + ], + "layout": {"hovermode": "closest"}, + } + self.assert_fig_equal(quiver["data"][0], expected_quiver["data"][0]) + self.assert_fig_equal(quiver["layout"], expected_quiver["layout"]) class TestFinanceCharts(TestCaseNoTemplate, NumpyTestUtilsMixin): - def test_unequal_ohlc_length(self): # check: PlotlyError if open, high, low, close are not the same length # for TraceFactory.create_ohlc and TraceFactory.create_candlestick - kwargs = {'open': [1], 'high': [1, 3], - 'low': [1, 2], 'close': [1, 2], - 'direction': ['increasing']} + kwargs = { + "open": [1], + "high": [1, 3], + "low": [1, 2], + "close": [1, 2], + "direction": ["increasing"], + } self.assertRaises(PlotlyError, ff.create_ohlc, **kwargs) - self.assertRaises(PlotlyError, ff.create_candlestick, - **kwargs) - - kwargs = {'open': [1, 2], 'high': [1, 2, 3], - 'low': [1, 2], 'close': [1, 2], - 'direction': ['decreasing']} + self.assertRaises(PlotlyError, ff.create_candlestick, **kwargs) + + kwargs = { + "open": [1, 2], + "high": [1, 2, 3], + "low": [1, 2], + "close": [1, 2], + "direction": ["decreasing"], + } self.assertRaises(PlotlyError, ff.create_ohlc, **kwargs) - self.assertRaises(PlotlyError, ff.create_candlestick, - **kwargs) + self.assertRaises(PlotlyError, ff.create_candlestick, **kwargs) - kwargs = {'open': [1, 2], 'high': [2, 3], - 'low': [0], 'close': [1, 3]} + kwargs = {"open": [1, 2], "high": [2, 3], "low": [0], "close": [1, 3]} self.assertRaises(PlotlyError, ff.create_ohlc, **kwargs) - self.assertRaises(PlotlyError, ff.create_candlestick, - **kwargs) + self.assertRaises(PlotlyError, ff.create_candlestick, **kwargs) - kwargs = {'open': [1, 2], 'high': [2, 3], - 'low': [1, 2], 'close': [1]} + kwargs = {"open": [1, 2], "high": [2, 3], "low": [1, 2], "close": [1]} self.assertRaises(PlotlyError, ff.create_ohlc, **kwargs) - self.assertRaises(PlotlyError, ff.create_candlestick, - **kwargs) + self.assertRaises(PlotlyError, ff.create_candlestick, **kwargs) def test_direction_arg(self): @@ -165,29 +158,45 @@ def test_direction_arg(self): # "decreasing" for TraceFactory.create_ohlc and # TraceFactory.create_candlestick - kwargs = {'open': [1, 4], 'high': [1, 5], - 'low': [1, 2], 'close': [1, 2], - 'direction': ['inc']} - self.assertRaisesRegexp(PlotlyError, - "direction must be defined as " - "'increasing', 'decreasing', or 'both'", - ff.create_ohlc, **kwargs) - self.assertRaisesRegexp(PlotlyError, - "direction must be defined as " - "'increasing', 'decreasing', or 'both'", - ff.create_candlestick, **kwargs) - - kwargs = {'open': [1, 2], 'high': [1, 3], - 'low': [1, 2], 'close': [1, 2], - 'direction': ['d']} - self.assertRaisesRegexp(PlotlyError, - "direction must be defined as " - "'increasing', 'decreasing', or 'both'", - ff.create_ohlc, **kwargs) - self.assertRaisesRegexp(PlotlyError, - "direction must be defined as " - "'increasing', 'decreasing', or 'both'", - ff.create_candlestick, **kwargs) + kwargs = { + "open": [1, 4], + "high": [1, 5], + "low": [1, 2], + "close": [1, 2], + "direction": ["inc"], + } + self.assertRaisesRegexp( + PlotlyError, + "direction must be defined as " "'increasing', 'decreasing', or 'both'", + ff.create_ohlc, + **kwargs + ) + self.assertRaisesRegexp( + PlotlyError, + "direction must be defined as " "'increasing', 'decreasing', or 'both'", + ff.create_candlestick, + **kwargs + ) + + kwargs = { + "open": [1, 2], + "high": [1, 3], + "low": [1, 2], + "close": [1, 2], + "direction": ["d"], + } + self.assertRaisesRegexp( + PlotlyError, + "direction must be defined as " "'increasing', 'decreasing', or 'both'", + ff.create_ohlc, + **kwargs + ) + self.assertRaisesRegexp( + PlotlyError, + "direction must be defined as " "'increasing', 'decreasing', or 'both'", + ff.create_candlestick, + **kwargs + ) def test_high_highest_value(self): @@ -195,24 +204,29 @@ def test_high_highest_value(self): # open, low, or close value because if the "high" value is not the # highest (or equal) then the data may have been entered incorrectly. - kwargs = {'open': [2, 3], 'high': [4, 2], - 'low': [1, 1], 'close': [1, 2]} - self.assertRaisesRegexp(PlotlyError, "Oops! Looks like some of " - "your high values are less " - "the corresponding open, " - "low, or close values. " - "Double check that your data " - "is entered in O-H-L-C order", - ff.create_ohlc, - **kwargs) - self.assertRaisesRegexp(PlotlyError, "Oops! Looks like some of " - "your high values are less " - "the corresponding open, " - "low, or close values. " - "Double check that your data " - "is entered in O-H-L-C order", - ff.create_candlestick, - **kwargs) + kwargs = {"open": [2, 3], "high": [4, 2], "low": [1, 1], "close": [1, 2]} + self.assertRaisesRegexp( + PlotlyError, + "Oops! Looks like some of " + "your high values are less " + "the corresponding open, " + "low, or close values. " + "Double check that your data " + "is entered in O-H-L-C order", + ff.create_ohlc, + **kwargs + ) + self.assertRaisesRegexp( + PlotlyError, + "Oops! Looks like some of " + "your high values are less " + "the corresponding open, " + "low, or close values. " + "Double check that your data " + "is entered in O-H-L-C order", + ff.create_candlestick, + **kwargs + ) def test_low_lowest_value(self): @@ -222,153 +236,164 @@ def test_low_lowest_value(self): # incorrectly. # create_ohlc_increase - kwargs = {'open': [2, 3], 'high': [4, 6], - 'low': [3, 1], 'close': [1, 2]} - self.assertRaisesRegexp(PlotlyError, - "Oops! Looks like some of " - "your low values are greater " - "than the corresponding high" - ", open, or close values. " - "Double check that your data " - "is entered in O-H-L-C order", - ff.create_ohlc, - **kwargs) - self.assertRaisesRegexp(PlotlyError, - "Oops! Looks like some of " - "your low values are greater " - "than the corresponding high" - ", open, or close values. " - "Double check that your data " - "is entered in O-H-L-C order", - ff.create_candlestick, - **kwargs) + kwargs = {"open": [2, 3], "high": [4, 6], "low": [3, 1], "close": [1, 2]} + self.assertRaisesRegexp( + PlotlyError, + "Oops! Looks like some of " + "your low values are greater " + "than the corresponding high" + ", open, or close values. " + "Double check that your data " + "is entered in O-H-L-C order", + ff.create_ohlc, + **kwargs + ) + self.assertRaisesRegexp( + PlotlyError, + "Oops! Looks like some of " + "your low values are greater " + "than the corresponding high" + ", open, or close values. " + "Double check that your data " + "is entered in O-H-L-C order", + ff.create_candlestick, + **kwargs + ) def test_one_ohlc(self): # This should create one "increase" (i.e. close > open) ohlc stick - ohlc = ff.create_ohlc(open=[33.0], - high=[33.2], - low=[32.7], - close=[33.1]) - - expected_ohlc = {'layout': {'hovermode': 'closest', - 'xaxis': {'zeroline': False}}, - 'data': [{'y': [33.0, 33.0, 33.2, 32.7, - 33.1, 33.1, None], - 'line': {'width': 1, - 'color': '#3D9970'}, - 'showlegend': False, - 'name': 'Increasing', - 'text': ['Open', 'Open', 'High', 'Low', - 'Close', 'Close', ''], - 'mode': 'lines', 'type': 'scatter', - 'x': [-0.2, 0, 0, 0, 0, 0.2, None]}, - {'y': [], 'line': {'width': 1, - 'color': '#FF4136'}, - 'showlegend': False, - 'name': 'Decreasing', 'text': (), - 'mode': 'lines', 'type': 'scatter', - 'x': []}]} - - self.assert_fig_equal(ohlc['data'][0], - expected_ohlc['data'][0], - ignore=['uid', 'text']) - - self.assert_fig_equal(ohlc['data'][1], - expected_ohlc['data'][1], - ignore=['uid', 'text']) - - self.assert_fig_equal(ohlc['layout'], - expected_ohlc['layout']) + ohlc = ff.create_ohlc(open=[33.0], high=[33.2], low=[32.7], close=[33.1]) + + expected_ohlc = { + "layout": {"hovermode": "closest", "xaxis": {"zeroline": False}}, + "data": [ + { + "y": [33.0, 33.0, 33.2, 32.7, 33.1, 33.1, None], + "line": {"width": 1, "color": "#3D9970"}, + "showlegend": False, + "name": "Increasing", + "text": ["Open", "Open", "High", "Low", "Close", "Close", ""], + "mode": "lines", + "type": "scatter", + "x": [-0.2, 0, 0, 0, 0, 0.2, None], + }, + { + "y": [], + "line": {"width": 1, "color": "#FF4136"}, + "showlegend": False, + "name": "Decreasing", + "text": (), + "mode": "lines", + "type": "scatter", + "x": [], + }, + ], + } + + self.assert_fig_equal( + ohlc["data"][0], expected_ohlc["data"][0], ignore=["uid", "text"] + ) + + self.assert_fig_equal( + ohlc["data"][1], expected_ohlc["data"][1], ignore=["uid", "text"] + ) + + self.assert_fig_equal(ohlc["layout"], expected_ohlc["layout"]) def test_one_ohlc_increase(self): # This should create one "increase" (i.e. close > open) ohlc stick - ohlc_incr = ff.create_ohlc(open=[33.0], - high=[33.2], - low=[32.7], - close=[33.1], - direction="increasing") - - expected_ohlc_incr = {'data': [{'line': {'color': '#3D9970', - 'width': 1}, - 'mode': 'lines', - 'name': 'Increasing', - 'showlegend': False, - 'text': ['Open', 'Open', 'High', - 'Low', 'Close', 'Close', ''], - 'type': 'scatter', - 'x': [-0.2, 0, 0, 0, 0, 0.2, None], - 'y': [33.0, 33.0, 33.2, 32.7, 33.1, - 33.1, None]}], - 'layout': {'hovermode': 'closest', - 'xaxis': {'zeroline': False}}} - self.assert_fig_equal(ohlc_incr['data'][0], expected_ohlc_incr['data'][0]) - self.assert_fig_equal(ohlc_incr['layout'], expected_ohlc_incr['layout']) + ohlc_incr = ff.create_ohlc( + open=[33.0], high=[33.2], low=[32.7], close=[33.1], direction="increasing" + ) + + expected_ohlc_incr = { + "data": [ + { + "line": {"color": "#3D9970", "width": 1}, + "mode": "lines", + "name": "Increasing", + "showlegend": False, + "text": ["Open", "Open", "High", "Low", "Close", "Close", ""], + "type": "scatter", + "x": [-0.2, 0, 0, 0, 0, 0.2, None], + "y": [33.0, 33.0, 33.2, 32.7, 33.1, 33.1, None], + } + ], + "layout": {"hovermode": "closest", "xaxis": {"zeroline": False}}, + } + self.assert_fig_equal(ohlc_incr["data"][0], expected_ohlc_incr["data"][0]) + self.assert_fig_equal(ohlc_incr["layout"], expected_ohlc_incr["layout"]) def test_one_ohlc_decrease(self): # This should create one "increase" (i.e. close > open) ohlc stick - ohlc_decr = ff.create_ohlc(open=[33.0], - high=[33.2], - low=[30.7], - close=[31.1], - direction="decreasing") - - expected_ohlc_decr = {'data': [{'line': {'color': '#FF4136', - 'width': 1}, - 'mode': 'lines', - 'name': 'Decreasing', - 'showlegend': False, - 'text': ['Open', 'Open', 'High', 'Low', - 'Close', 'Close', ''], - 'type': 'scatter', - 'x': [-0.2, 0, 0, 0, 0, 0.2, None], - 'y': [33.0, 33.0, 33.2, 30.7, 31.1, - 31.1, None]}], - 'layout': {'hovermode': 'closest', - 'xaxis': {'zeroline': False}}} - - self.assert_fig_equal(ohlc_decr['data'][0], expected_ohlc_decr['data'][0]) - self.assert_fig_equal(ohlc_decr['layout'], expected_ohlc_decr['layout']) + ohlc_decr = ff.create_ohlc( + open=[33.0], high=[33.2], low=[30.7], close=[31.1], direction="decreasing" + ) + + expected_ohlc_decr = { + "data": [ + { + "line": {"color": "#FF4136", "width": 1}, + "mode": "lines", + "name": "Decreasing", + "showlegend": False, + "text": ["Open", "Open", "High", "Low", "Close", "Close", ""], + "type": "scatter", + "x": [-0.2, 0, 0, 0, 0, 0.2, None], + "y": [33.0, 33.0, 33.2, 30.7, 31.1, 31.1, None], + } + ], + "layout": {"hovermode": "closest", "xaxis": {"zeroline": False}}, + } + + self.assert_fig_equal(ohlc_decr["data"][0], expected_ohlc_decr["data"][0]) + self.assert_fig_equal(ohlc_decr["layout"], expected_ohlc_decr["layout"]) # TO-DO: put expected fig in a different file and then call to compare def test_one_candlestick(self): # This should create one "increase" (i.e. close > open) candlestick - can_inc = ff.create_candlestick(open=[33.0], - high=[33.2], - low=[32.7], - close=[33.1]) - - exp_can_inc = {'data': [{'boxpoints': False, - 'fillcolor': '#3D9970', - 'line': {'color': '#3D9970'}, - 'name': 'Increasing', - 'showlegend': False, - 'type': 'box', - 'whiskerwidth': 0, - 'x': [0, 0, 0, 0, 0, 0], - 'y': [32.7, 33.0, 33.1, 33.1, 33.1, 33.2]}, - {'boxpoints': False, - 'fillcolor': '#ff4136', - 'line': {'color': '#ff4136'}, - 'name': 'Decreasing', - 'showlegend': False, - 'type': 'box', - 'whiskerwidth': 0, - 'x': [], - 'y': []}], - 'layout': {}} - - self.assert_fig_equal(can_inc['data'][0], - exp_can_inc['data'][0]) - self.assert_fig_equal(can_inc['layout'], - exp_can_inc['layout']) + can_inc = ff.create_candlestick( + open=[33.0], high=[33.2], low=[32.7], close=[33.1] + ) + + exp_can_inc = { + "data": [ + { + "boxpoints": False, + "fillcolor": "#3D9970", + "line": {"color": "#3D9970"}, + "name": "Increasing", + "showlegend": False, + "type": "box", + "whiskerwidth": 0, + "x": [0, 0, 0, 0, 0, 0], + "y": [32.7, 33.0, 33.1, 33.1, 33.1, 33.2], + }, + { + "boxpoints": False, + "fillcolor": "#ff4136", + "line": {"color": "#ff4136"}, + "name": "Decreasing", + "showlegend": False, + "type": "box", + "whiskerwidth": 0, + "x": [], + "y": [], + }, + ], + "layout": {}, + } + + self.assert_fig_equal(can_inc["data"][0], exp_can_inc["data"][0]) + self.assert_fig_equal(can_inc["layout"], exp_can_inc["layout"]) def test_datetime_ohlc(self): @@ -379,202 +404,221 @@ def test_datetime_ohlc(self): close_data = [34.10, 31.93, 33.37, 33.18, 31.18, 33.10, 32.93, 33.70] open_data = [33.01, 33.31, 33.50, 32.06, 34.12, 33.05, 33.31, 33.50] - x = [datetime.datetime(year=2013, month=3, day=4), - datetime.datetime(year=2013, month=6, day=5), - datetime.datetime(year=2013, month=9, day=6), - datetime.datetime(year=2013, month=12, day=4), - datetime.datetime(year=2014, month=3, day=5), - datetime.datetime(year=2014, month=6, day=6), - datetime.datetime(year=2014, month=9, day=4), - datetime.datetime(year=2014, month=12, day=5)] - - ohlc_d = ff.create_ohlc(open_data, high_data, - low_data, close_data, - dates=x) - - ex_ohlc_d = {'data': [{'line': {'color': '#3D9970', 'width': 1}, - 'mode': 'lines', - 'name': 'Increasing', - 'showlegend': False, - 'text': ['Open', - 'Open', - 'High', - 'Low', - 'Close', - 'Close', - '', - 'Open', - 'Open', - 'High', - 'Low', - 'Close', - 'Close', - '', - 'Open', - 'Open', - 'High', - 'Low', - 'Close', - 'Close', - '', - 'Open', - 'Open', - 'High', - 'Low', - 'Close', - 'Close', - ''], - 'type': 'scatter', - 'x': [datetime.datetime(2013, 2, 14, 4, 48), - datetime.datetime(2013, 3, 4, 0, 0), - datetime.datetime(2013, 3, 4, 0, 0), - datetime.datetime(2013, 3, 4, 0, 0), - datetime.datetime(2013, 3, 4, 0, 0), - datetime.datetime(2013, 3, 21, 19, 12), - None, - datetime.datetime(2013, 11, 16, 4, 48), - datetime.datetime(2013, 12, 4, 0, 0), - datetime.datetime(2013, 12, 4, 0, 0), - datetime.datetime(2013, 12, 4, 0, 0), - datetime.datetime(2013, 12, 4, 0, 0), - datetime.datetime(2013, 12, 21, 19, 12), - None, - datetime.datetime(2014, 5, 19, 4, 48), - datetime.datetime(2014, 6, 6, 0, 0), - datetime.datetime(2014, 6, 6, 0, 0), - datetime.datetime(2014, 6, 6, 0, 0), - datetime.datetime(2014, 6, 6, 0, 0), - datetime.datetime(2014, 6, 23, 19, 12), - None, - datetime.datetime(2014, 11, 17, 4, 48), - datetime.datetime(2014, 12, 5, 0, 0), - datetime.datetime(2014, 12, 5, 0, 0), - datetime.datetime(2014, 12, 5, 0, 0), - datetime.datetime(2014, 12, 5, 0, 0), - datetime.datetime(2014, 12, 22, 19, 12), - None], - 'y': [33.01, - 33.01, - 34.2, - 31.7, - 34.1, - 34.1, - None, - 32.06, - 32.06, - 34.25, - 31.62, - 33.18, - 33.18, - None, - 33.05, - 33.05, - 33.25, - 32.75, - 33.1, - 33.1, - None, - 33.5, - 33.5, - 34.62, - 32.87, - 33.7, - 33.7, - None]}, - {'line': {'color': '#FF4136', 'width': 1}, - 'mode': 'lines', - 'name': 'Decreasing', - 'showlegend': False, - 'text': ['Open', - 'Open', - 'High', - 'Low', - 'Close', - 'Close', - '', - 'Open', - 'Open', - 'High', - 'Low', - 'Close', - 'Close', - '', - 'Open', - 'Open', - 'High', - 'Low', - 'Close', - 'Close', - '', - 'Open', - 'Open', - 'High', - 'Low', - 'Close', - 'Close', - ''], - 'type': 'scatter', - 'x': [datetime.datetime(2013, 5, 18, 4, 48), - datetime.datetime(2013, 6, 5, 0, 0), - datetime.datetime(2013, 6, 5, 0, 0), - datetime.datetime(2013, 6, 5, 0, 0), - datetime.datetime(2013, 6, 5, 0, 0), - datetime.datetime(2013, 6, 22, 19, 12), - None, - datetime.datetime(2013, 8, 19, 4, 48), - datetime.datetime(2013, 9, 6, 0, 0), - datetime.datetime(2013, 9, 6, 0, 0), - datetime.datetime(2013, 9, 6, 0, 0), - datetime.datetime(2013, 9, 6, 0, 0), - datetime.datetime(2013, 9, 23, 19, 12), - None, - datetime.datetime(2014, 2, 15, 4, 48), - datetime.datetime(2014, 3, 5, 0, 0), - datetime.datetime(2014, 3, 5, 0, 0), - datetime.datetime(2014, 3, 5, 0, 0), - datetime.datetime(2014, 3, 5, 0, 0), - datetime.datetime(2014, 3, 22, 19, 12), - None, - datetime.datetime(2014, 8, 17, 4, 48), - datetime.datetime(2014, 9, 4, 0, 0), - datetime.datetime(2014, 9, 4, 0, 0), - datetime.datetime(2014, 9, 4, 0, 0), - datetime.datetime(2014, 9, 4, 0, 0), - datetime.datetime(2014, 9, 21, 19, 12), - None], - 'y': [33.31, - 33.31, - 34.37, - 30.75, - 31.93, - 31.93, - None, - 33.5, - 33.5, - 33.62, - 32.87, - 33.37, - 33.37, - None, - 34.12, - 34.12, - 35.18, - 30.81, - 31.18, - 31.18, - None, - 33.31, - 33.31, - 35.37, - 32.75, - 32.93, - 32.93, - None]}], - 'layout': {'hovermode': 'closest', - 'xaxis': {'zeroline': False}}} - self.assert_fig_equal(ohlc_d['data'][0], ex_ohlc_d['data'][0]) - self.assert_fig_equal(ohlc_d['data'][1], ex_ohlc_d['data'][1]) - self.assert_fig_equal(ohlc_d['layout'], ex_ohlc_d['layout']) + x = [ + datetime.datetime(year=2013, month=3, day=4), + datetime.datetime(year=2013, month=6, day=5), + datetime.datetime(year=2013, month=9, day=6), + datetime.datetime(year=2013, month=12, day=4), + datetime.datetime(year=2014, month=3, day=5), + datetime.datetime(year=2014, month=6, day=6), + datetime.datetime(year=2014, month=9, day=4), + datetime.datetime(year=2014, month=12, day=5), + ] + + ohlc_d = ff.create_ohlc(open_data, high_data, low_data, close_data, dates=x) + + ex_ohlc_d = { + "data": [ + { + "line": {"color": "#3D9970", "width": 1}, + "mode": "lines", + "name": "Increasing", + "showlegend": False, + "text": [ + "Open", + "Open", + "High", + "Low", + "Close", + "Close", + "", + "Open", + "Open", + "High", + "Low", + "Close", + "Close", + "", + "Open", + "Open", + "High", + "Low", + "Close", + "Close", + "", + "Open", + "Open", + "High", + "Low", + "Close", + "Close", + "", + ], + "type": "scatter", + "x": [ + datetime.datetime(2013, 2, 14, 4, 48), + datetime.datetime(2013, 3, 4, 0, 0), + datetime.datetime(2013, 3, 4, 0, 0), + datetime.datetime(2013, 3, 4, 0, 0), + datetime.datetime(2013, 3, 4, 0, 0), + datetime.datetime(2013, 3, 21, 19, 12), + None, + datetime.datetime(2013, 11, 16, 4, 48), + datetime.datetime(2013, 12, 4, 0, 0), + datetime.datetime(2013, 12, 4, 0, 0), + datetime.datetime(2013, 12, 4, 0, 0), + datetime.datetime(2013, 12, 4, 0, 0), + datetime.datetime(2013, 12, 21, 19, 12), + None, + datetime.datetime(2014, 5, 19, 4, 48), + datetime.datetime(2014, 6, 6, 0, 0), + datetime.datetime(2014, 6, 6, 0, 0), + datetime.datetime(2014, 6, 6, 0, 0), + datetime.datetime(2014, 6, 6, 0, 0), + datetime.datetime(2014, 6, 23, 19, 12), + None, + datetime.datetime(2014, 11, 17, 4, 48), + datetime.datetime(2014, 12, 5, 0, 0), + datetime.datetime(2014, 12, 5, 0, 0), + datetime.datetime(2014, 12, 5, 0, 0), + datetime.datetime(2014, 12, 5, 0, 0), + datetime.datetime(2014, 12, 22, 19, 12), + None, + ], + "y": [ + 33.01, + 33.01, + 34.2, + 31.7, + 34.1, + 34.1, + None, + 32.06, + 32.06, + 34.25, + 31.62, + 33.18, + 33.18, + None, + 33.05, + 33.05, + 33.25, + 32.75, + 33.1, + 33.1, + None, + 33.5, + 33.5, + 34.62, + 32.87, + 33.7, + 33.7, + None, + ], + }, + { + "line": {"color": "#FF4136", "width": 1}, + "mode": "lines", + "name": "Decreasing", + "showlegend": False, + "text": [ + "Open", + "Open", + "High", + "Low", + "Close", + "Close", + "", + "Open", + "Open", + "High", + "Low", + "Close", + "Close", + "", + "Open", + "Open", + "High", + "Low", + "Close", + "Close", + "", + "Open", + "Open", + "High", + "Low", + "Close", + "Close", + "", + ], + "type": "scatter", + "x": [ + datetime.datetime(2013, 5, 18, 4, 48), + datetime.datetime(2013, 6, 5, 0, 0), + datetime.datetime(2013, 6, 5, 0, 0), + datetime.datetime(2013, 6, 5, 0, 0), + datetime.datetime(2013, 6, 5, 0, 0), + datetime.datetime(2013, 6, 22, 19, 12), + None, + datetime.datetime(2013, 8, 19, 4, 48), + datetime.datetime(2013, 9, 6, 0, 0), + datetime.datetime(2013, 9, 6, 0, 0), + datetime.datetime(2013, 9, 6, 0, 0), + datetime.datetime(2013, 9, 6, 0, 0), + datetime.datetime(2013, 9, 23, 19, 12), + None, + datetime.datetime(2014, 2, 15, 4, 48), + datetime.datetime(2014, 3, 5, 0, 0), + datetime.datetime(2014, 3, 5, 0, 0), + datetime.datetime(2014, 3, 5, 0, 0), + datetime.datetime(2014, 3, 5, 0, 0), + datetime.datetime(2014, 3, 22, 19, 12), + None, + datetime.datetime(2014, 8, 17, 4, 48), + datetime.datetime(2014, 9, 4, 0, 0), + datetime.datetime(2014, 9, 4, 0, 0), + datetime.datetime(2014, 9, 4, 0, 0), + datetime.datetime(2014, 9, 4, 0, 0), + datetime.datetime(2014, 9, 21, 19, 12), + None, + ], + "y": [ + 33.31, + 33.31, + 34.37, + 30.75, + 31.93, + 31.93, + None, + 33.5, + 33.5, + 33.62, + 32.87, + 33.37, + 33.37, + None, + 34.12, + 34.12, + 35.18, + 30.81, + 31.18, + 31.18, + None, + 33.31, + 33.31, + 35.37, + 32.75, + 32.93, + 32.93, + None, + ], + }, + ], + "layout": {"hovermode": "closest", "xaxis": {"zeroline": False}}, + } + self.assert_fig_equal(ohlc_d["data"][0], ex_ohlc_d["data"][0]) + self.assert_fig_equal(ohlc_d["data"][1], ex_ohlc_d["data"][1]) + self.assert_fig_equal(ohlc_d["layout"], ex_ohlc_d["layout"]) def test_datetime_candlestick(self): @@ -585,470 +629,549 @@ def test_datetime_candlestick(self): close_data = [34.10, 31.93, 33.37, 33.18, 31.18, 33.10, 32.93, 33.70] open_data = [33.01, 33.31, 33.50, 32.06, 34.12, 33.05, 33.31, 33.50] - x = [datetime.datetime(year=2013, month=3, day=4), - datetime.datetime(year=2013, month=6, day=5), - datetime.datetime(year=2013, month=9, day=6), - datetime.datetime(year=2013, month=12, day=4), - datetime.datetime(year=2014, month=3, day=5), - datetime.datetime(year=2014, month=6, day=6), - datetime.datetime(year=2014, month=9, day=4), - datetime.datetime(year=2014, month=12, day=5)] - - candle = ff.create_candlestick(open_data, high_data, - low_data, close_data, - dates=x) - exp_candle = {'data': [{'boxpoints': False, - 'fillcolor': '#3D9970', - 'line': {'color': '#3D9970'}, - 'name': 'Increasing', - 'showlegend': False, - 'type': 'box', - 'whiskerwidth': 0, - 'x': [datetime.datetime(2013, 3, 4, 0, 0), - datetime.datetime(2013, 3, 4, 0, 0), - datetime.datetime(2013, 3, 4, 0, 0), - datetime.datetime(2013, 3, 4, 0, 0), - datetime.datetime(2013, 3, 4, 0, 0), - datetime.datetime(2013, 3, 4, 0, 0), - datetime.datetime(2013, 12, 4, 0, 0), - datetime.datetime(2013, 12, 4, 0, 0), - datetime.datetime(2013, 12, 4, 0, 0), - datetime.datetime(2013, 12, 4, 0, 0), - datetime.datetime(2013, 12, 4, 0, 0), - datetime.datetime(2013, 12, 4, 0, 0), - datetime.datetime(2014, 6, 6, 0, 0), - datetime.datetime(2014, 6, 6, 0, 0), - datetime.datetime(2014, 6, 6, 0, 0), - datetime.datetime(2014, 6, 6, 0, 0), - datetime.datetime(2014, 6, 6, 0, 0), - datetime.datetime(2014, 6, 6, 0, 0), - datetime.datetime(2014, 12, 5, 0, 0), - datetime.datetime(2014, 12, 5, 0, 0), - datetime.datetime(2014, 12, 5, 0, 0), - datetime.datetime(2014, 12, 5, 0, 0), - datetime.datetime(2014, 12, 5, 0, 0), - datetime.datetime(2014, 12, 5, 0, 0)], - 'y': [31.7, - 33.01, - 34.1, - 34.1, - 34.1, - 34.2, - 31.62, - 32.06, - 33.18, - 33.18, - 33.18, - 34.25, - 32.75, - 33.05, - 33.1, - 33.1, - 33.1, - 33.25, - 32.87, - 33.5, - 33.7, - 33.7, - 33.7, - 34.62]}, - {'boxpoints': False, - 'fillcolor': '#FF4136', - 'line': {'color': '#FF4136'}, - 'name': 'Decreasing', - 'showlegend': False, - 'type': 'box', - 'whiskerwidth': 0, - 'x': [datetime.datetime(2013, 6, 5, 0, 0), - datetime.datetime(2013, 6, 5, 0, 0), - datetime.datetime(2013, 6, 5, 0, 0), - datetime.datetime(2013, 6, 5, 0, 0), - datetime.datetime(2013, 6, 5, 0, 0), - datetime.datetime(2013, 6, 5, 0, 0), - datetime.datetime(2013, 9, 6, 0, 0), - datetime.datetime(2013, 9, 6, 0, 0), - datetime.datetime(2013, 9, 6, 0, 0), - datetime.datetime(2013, 9, 6, 0, 0), - datetime.datetime(2013, 9, 6, 0, 0), - datetime.datetime(2013, 9, 6, 0, 0), - datetime.datetime(2014, 3, 5, 0, 0), - datetime.datetime(2014, 3, 5, 0, 0), - datetime.datetime(2014, 3, 5, 0, 0), - datetime.datetime(2014, 3, 5, 0, 0), - datetime.datetime(2014, 3, 5, 0, 0), - datetime.datetime(2014, 3, 5, 0, 0), - datetime.datetime(2014, 9, 4, 0, 0), - datetime.datetime(2014, 9, 4, 0, 0), - datetime.datetime(2014, 9, 4, 0, 0), - datetime.datetime(2014, 9, 4, 0, 0), - datetime.datetime(2014, 9, 4, 0, 0), - datetime.datetime(2014, 9, 4, 0, 0)], - 'y': [30.75, - 33.31, - 31.93, - 31.93, - 31.93, - 34.37, - 32.87, - 33.5, - 33.37, - 33.37, - 33.37, - 33.62, - 30.81, - 34.12, - 31.18, - 31.18, - 31.18, - 35.18, - 32.75, - 33.31, - 32.93, - 32.93, - 32.93, - 35.37]}], - 'layout': {}} - - self.assert_fig_equal(candle['data'][0], exp_candle['data'][0]) - self.assert_fig_equal(candle['data'][1], exp_candle['data'][1]) - self.assert_fig_equal(candle['layout'], exp_candle['layout']) + x = [ + datetime.datetime(year=2013, month=3, day=4), + datetime.datetime(year=2013, month=6, day=5), + datetime.datetime(year=2013, month=9, day=6), + datetime.datetime(year=2013, month=12, day=4), + datetime.datetime(year=2014, month=3, day=5), + datetime.datetime(year=2014, month=6, day=6), + datetime.datetime(year=2014, month=9, day=4), + datetime.datetime(year=2014, month=12, day=5), + ] + candle = ff.create_candlestick( + open_data, high_data, low_data, close_data, dates=x + ) + exp_candle = { + "data": [ + { + "boxpoints": False, + "fillcolor": "#3D9970", + "line": {"color": "#3D9970"}, + "name": "Increasing", + "showlegend": False, + "type": "box", + "whiskerwidth": 0, + "x": [ + datetime.datetime(2013, 3, 4, 0, 0), + datetime.datetime(2013, 3, 4, 0, 0), + datetime.datetime(2013, 3, 4, 0, 0), + datetime.datetime(2013, 3, 4, 0, 0), + datetime.datetime(2013, 3, 4, 0, 0), + datetime.datetime(2013, 3, 4, 0, 0), + datetime.datetime(2013, 12, 4, 0, 0), + datetime.datetime(2013, 12, 4, 0, 0), + datetime.datetime(2013, 12, 4, 0, 0), + datetime.datetime(2013, 12, 4, 0, 0), + datetime.datetime(2013, 12, 4, 0, 0), + datetime.datetime(2013, 12, 4, 0, 0), + datetime.datetime(2014, 6, 6, 0, 0), + datetime.datetime(2014, 6, 6, 0, 0), + datetime.datetime(2014, 6, 6, 0, 0), + datetime.datetime(2014, 6, 6, 0, 0), + datetime.datetime(2014, 6, 6, 0, 0), + datetime.datetime(2014, 6, 6, 0, 0), + datetime.datetime(2014, 12, 5, 0, 0), + datetime.datetime(2014, 12, 5, 0, 0), + datetime.datetime(2014, 12, 5, 0, 0), + datetime.datetime(2014, 12, 5, 0, 0), + datetime.datetime(2014, 12, 5, 0, 0), + datetime.datetime(2014, 12, 5, 0, 0), + ], + "y": [ + 31.7, + 33.01, + 34.1, + 34.1, + 34.1, + 34.2, + 31.62, + 32.06, + 33.18, + 33.18, + 33.18, + 34.25, + 32.75, + 33.05, + 33.1, + 33.1, + 33.1, + 33.25, + 32.87, + 33.5, + 33.7, + 33.7, + 33.7, + 34.62, + ], + }, + { + "boxpoints": False, + "fillcolor": "#FF4136", + "line": {"color": "#FF4136"}, + "name": "Decreasing", + "showlegend": False, + "type": "box", + "whiskerwidth": 0, + "x": [ + datetime.datetime(2013, 6, 5, 0, 0), + datetime.datetime(2013, 6, 5, 0, 0), + datetime.datetime(2013, 6, 5, 0, 0), + datetime.datetime(2013, 6, 5, 0, 0), + datetime.datetime(2013, 6, 5, 0, 0), + datetime.datetime(2013, 6, 5, 0, 0), + datetime.datetime(2013, 9, 6, 0, 0), + datetime.datetime(2013, 9, 6, 0, 0), + datetime.datetime(2013, 9, 6, 0, 0), + datetime.datetime(2013, 9, 6, 0, 0), + datetime.datetime(2013, 9, 6, 0, 0), + datetime.datetime(2013, 9, 6, 0, 0), + datetime.datetime(2014, 3, 5, 0, 0), + datetime.datetime(2014, 3, 5, 0, 0), + datetime.datetime(2014, 3, 5, 0, 0), + datetime.datetime(2014, 3, 5, 0, 0), + datetime.datetime(2014, 3, 5, 0, 0), + datetime.datetime(2014, 3, 5, 0, 0), + datetime.datetime(2014, 9, 4, 0, 0), + datetime.datetime(2014, 9, 4, 0, 0), + datetime.datetime(2014, 9, 4, 0, 0), + datetime.datetime(2014, 9, 4, 0, 0), + datetime.datetime(2014, 9, 4, 0, 0), + datetime.datetime(2014, 9, 4, 0, 0), + ], + "y": [ + 30.75, + 33.31, + 31.93, + 31.93, + 31.93, + 34.37, + 32.87, + 33.5, + 33.37, + 33.37, + 33.37, + 33.62, + 30.81, + 34.12, + 31.18, + 31.18, + 31.18, + 35.18, + 32.75, + 33.31, + 32.93, + 32.93, + 32.93, + 35.37, + ], + }, + ], + "layout": {}, + } -class TestAnnotatedHeatmap(TestCaseNoTemplate, NumpyTestUtilsMixin): + self.assert_fig_equal(candle["data"][0], exp_candle["data"][0]) + self.assert_fig_equal(candle["data"][1], exp_candle["data"][1]) + self.assert_fig_equal(candle["layout"], exp_candle["layout"]) + +class TestAnnotatedHeatmap(TestCaseNoTemplate, NumpyTestUtilsMixin): def test_unequal_z_text_size(self): # check: PlotlyError if z and text are not the same dimensions - kwargs = {'z': [[1, 2], [1, 2]], 'annotation_text': [[1, 2, 3], [1]]} - self.assertRaises(PlotlyError, - ff.create_annotated_heatmap, - **kwargs) + kwargs = {"z": [[1, 2], [1, 2]], "annotation_text": [[1, 2, 3], [1]]} + self.assertRaises(PlotlyError, ff.create_annotated_heatmap, **kwargs) - kwargs = {'z': [[1], [1]], 'annotation_text': [[1], [1], [1]]} - self.assertRaises(PlotlyError, - ff.create_annotated_heatmap, - **kwargs) + kwargs = {"z": [[1], [1]], "annotation_text": [[1], [1], [1]]} + self.assertRaises(PlotlyError, ff.create_annotated_heatmap, **kwargs) def test_incorrect_x_size(self): # check: PlotlyError if x is the wrong size - kwargs = {'z': [[1, 2], [1, 2]], 'x': ['A']} - self.assertRaises(PlotlyError, - ff.create_annotated_heatmap, - **kwargs) + kwargs = {"z": [[1, 2], [1, 2]], "x": ["A"]} + self.assertRaises(PlotlyError, ff.create_annotated_heatmap, **kwargs) def test_incorrect_y_size(self): # check: PlotlyError if y is the wrong size - kwargs = {'z': [[1, 2], [1, 2]], 'y': [1, 2, 3]} - self.assertRaises(PlotlyError, - ff.create_annotated_heatmap, - **kwargs) + kwargs = {"z": [[1, 2], [1, 2]], "y": [1, 2, 3]} + self.assertRaises(PlotlyError, ff.create_annotated_heatmap, **kwargs) def test_simple_annotated_heatmap(self): # we should be able to create a heatmap with annotated values with a # logical text color - z = [[1, 0, .5], [.25, .75, .45]] + z = [[1, 0, 0.5], [0.25, 0.75, 0.45]] a_heat = ff.create_annotated_heatmap(z) expected_a_heat = { - 'data': [{'colorscale': 'RdBu', - 'showscale': False, - 'reversescale': False, - 'type': 'heatmap', - 'z': [[1, 0, 0.5], [0.25, 0.75, 0.45]]}], - 'layout': {'annotations': [{'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '1', - 'x': 0, - 'xref': 'x', - 'y': 0, - 'yref': 'y'}, - {'font': {'color': '#FFFFFF'}, - 'showarrow': False, - 'text': '0', - 'x': 1, - 'xref': 'x', - 'y': 0, - 'yref': 'y'}, - {'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '0.5', - 'x': 2, - 'xref': 'x', - 'y': 0, - 'yref': 'y'}, - {'font': {'color': '#FFFFFF'}, - 'showarrow': False, - 'text': '0.25', - 'x': 0, - 'xref': 'x', - 'y': 1, - 'yref': 'y'}, - {'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '0.75', - 'x': 1, - 'xref': 'x', - 'y': 1, - 'yref': 'y'}, - {'font': {'color': '#FFFFFF'}, - 'showarrow': False, - 'text': '0.45', - 'x': 2, - 'xref': 'x', - 'y': 1, - 'yref': 'y'}], - 'xaxis': {'gridcolor': 'rgb(0, 0, 0)', - 'showticklabels': False, - 'side': 'top', - 'ticks': ''}, - 'yaxis': {'showticklabels': False, 'ticks': '', - 'ticksuffix': ' '}}} + "data": [ + { + "colorscale": "RdBu", + "showscale": False, + "reversescale": False, + "type": "heatmap", + "z": [[1, 0, 0.5], [0.25, 0.75, 0.45]], + } + ], + "layout": { + "annotations": [ + { + "font": {"color": "#000000"}, + "showarrow": False, + "text": "1", + "x": 0, + "xref": "x", + "y": 0, + "yref": "y", + }, + { + "font": {"color": "#FFFFFF"}, + "showarrow": False, + "text": "0", + "x": 1, + "xref": "x", + "y": 0, + "yref": "y", + }, + { + "font": {"color": "#000000"}, + "showarrow": False, + "text": "0.5", + "x": 2, + "xref": "x", + "y": 0, + "yref": "y", + }, + { + "font": {"color": "#FFFFFF"}, + "showarrow": False, + "text": "0.25", + "x": 0, + "xref": "x", + "y": 1, + "yref": "y", + }, + { + "font": {"color": "#000000"}, + "showarrow": False, + "text": "0.75", + "x": 1, + "xref": "x", + "y": 1, + "yref": "y", + }, + { + "font": {"color": "#FFFFFF"}, + "showarrow": False, + "text": "0.45", + "x": 2, + "xref": "x", + "y": 1, + "yref": "y", + }, + ], + "xaxis": { + "gridcolor": "rgb(0, 0, 0)", + "showticklabels": False, + "side": "top", + "ticks": "", + }, + "yaxis": {"showticklabels": False, "ticks": "", "ticksuffix": " "}, + }, + } - self.assert_fig_equal( - a_heat['data'][0], - expected_a_heat['data'][0], - ) + self.assert_fig_equal(a_heat["data"][0], expected_a_heat["data"][0]) - self.assert_fig_equal(a_heat['layout'], - expected_a_heat['layout']) + self.assert_fig_equal(a_heat["layout"], expected_a_heat["layout"]) def test_annotated_heatmap_kwargs(self): # we should be able to create an annotated heatmap with x and y axes # lables, a defined colorscale, and supplied text. - z = [[1, 0], [.25, .75], [.45, .5]] - text = [['first', 'second'], ['third', 'fourth'], ['fifth', 'sixth']] - a = ff.create_annotated_heatmap(z, - x=['A', 'B'], - y=['One', 'Two', 'Three'], - annotation_text=text, - colorscale=[[0, 'rgb(255,255,255)'], - [1, '#e6005a']]) - expected_a = {'data': [{'colorscale': - [[0, 'rgb(255,255,255)'], [1, '#e6005a']], - 'showscale': False, - 'reversescale': False, - 'type': 'heatmap', - 'x': ['A', 'B'], - 'y': ['One', 'Two', 'Three'], - 'z': [[1, 0], [0.25, 0.75], [0.45, 0.5]]}], - 'layout': {'annotations': [{'font': {'color': '#FFFFFF'}, - 'showarrow': False, - 'text': 'first', - 'x': 'A', - 'xref': 'x', - 'y': 'One', - 'yref': 'y'}, - {'font': {'color': '#000000'}, - 'showarrow': False, - 'text': 'second', - 'x': 'B', - 'xref': 'x', - 'y': 'One', - 'yref': 'y'}, - {'font': {'color': '#000000'}, - 'showarrow': False, - 'text': 'third', - 'x': 'A', - 'xref': 'x', - 'y': 'Two', - 'yref': 'y'}, - {'font': {'color': '#FFFFFF'}, - 'showarrow': False, - 'text': 'fourth', - 'x': 'B', - 'xref': 'x', - 'y': 'Two', - 'yref': 'y'}, - {'font': {'color': '#000000'}, - 'showarrow': False, - 'text': 'fifth', - 'x': 'A', - 'xref': 'x', - 'y': 'Three', - 'yref': 'y'}, - {'font': {'color': '#FFFFFF'}, - 'showarrow': False, - 'text': 'sixth', - 'x': 'B', - 'xref': 'x', - 'y': 'Three', - 'yref': 'y'}], - 'xaxis': {'dtick': 1, - 'gridcolor': 'rgb(0, 0, 0)', - 'side': 'top', - 'ticks': ''}, - 'yaxis': {'dtick': 1, 'ticks': '', - 'ticksuffix': ' '}}} - self.assert_fig_equal( - a['data'][0], - expected_a['data'][0], + z = [[1, 0], [0.25, 0.75], [0.45, 0.5]] + text = [["first", "second"], ["third", "fourth"], ["fifth", "sixth"]] + a = ff.create_annotated_heatmap( + z, + x=["A", "B"], + y=["One", "Two", "Three"], + annotation_text=text, + colorscale=[[0, "rgb(255,255,255)"], [1, "#e6005a"]], ) + expected_a = { + "data": [ + { + "colorscale": [[0, "rgb(255,255,255)"], [1, "#e6005a"]], + "showscale": False, + "reversescale": False, + "type": "heatmap", + "x": ["A", "B"], + "y": ["One", "Two", "Three"], + "z": [[1, 0], [0.25, 0.75], [0.45, 0.5]], + } + ], + "layout": { + "annotations": [ + { + "font": {"color": "#FFFFFF"}, + "showarrow": False, + "text": "first", + "x": "A", + "xref": "x", + "y": "One", + "yref": "y", + }, + { + "font": {"color": "#000000"}, + "showarrow": False, + "text": "second", + "x": "B", + "xref": "x", + "y": "One", + "yref": "y", + }, + { + "font": {"color": "#000000"}, + "showarrow": False, + "text": "third", + "x": "A", + "xref": "x", + "y": "Two", + "yref": "y", + }, + { + "font": {"color": "#FFFFFF"}, + "showarrow": False, + "text": "fourth", + "x": "B", + "xref": "x", + "y": "Two", + "yref": "y", + }, + { + "font": {"color": "#000000"}, + "showarrow": False, + "text": "fifth", + "x": "A", + "xref": "x", + "y": "Three", + "yref": "y", + }, + { + "font": {"color": "#FFFFFF"}, + "showarrow": False, + "text": "sixth", + "x": "B", + "xref": "x", + "y": "Three", + "yref": "y", + }, + ], + "xaxis": { + "dtick": 1, + "gridcolor": "rgb(0, 0, 0)", + "side": "top", + "ticks": "", + }, + "yaxis": {"dtick": 1, "ticks": "", "ticksuffix": " "}, + }, + } + self.assert_fig_equal(a["data"][0], expected_a["data"][0]) - self.assert_fig_equal(a['layout'], - expected_a['layout']) + self.assert_fig_equal(a["layout"], expected_a["layout"]) def test_annotated_heatmap_reversescale(self): # we should be able to create an annotated heatmap with x and y axes # lables, a defined colorscale, and supplied text. - z = [[1, 0], [.25, .75], [.45, .5]] - text = [['first', 'second'], ['third', 'fourth'], ['fifth', 'sixth']] - a = ff.create_annotated_heatmap(z, - x=['A', 'B'], - y=['One', 'Two', 'Three'], - annotation_text=text, - reversescale=True, - colorscale=[[0, 'rgb(255,255,255)'], - [1, '#e6005a']]) - expected_a = {'data': [{'colorscale': - [[0, 'rgb(255,255,255)'], [1, '#e6005a']], - 'showscale': False, - 'reversescale': True, - 'type': 'heatmap', - 'x': ['A', 'B'], - 'y': ['One', 'Two', 'Three'], - 'z': [[1, 0], [0.25, 0.75], [0.45, 0.5]]}], - 'layout': {'annotations': [ - {'font': {'color': '#000000'}, - 'showarrow': False, - 'text': 'first', - 'x': 'A', - 'xref': 'x', - 'y': 'One', - 'yref': 'y'}, - {'font': {'color': '#FFFFFF'}, - 'showarrow': False, - 'text': 'second', - 'x': 'B', - 'xref': 'x', - 'y': 'One', - 'yref': 'y'}, - {'font': {'color': '#FFFFFF'}, - 'showarrow': False, - 'text': 'third', - 'x': 'A', - 'xref': 'x', - 'y': 'Two', - 'yref': 'y'}, - {'font': {'color': '#000000'}, - 'showarrow': False, - 'text': 'fourth', - 'x': 'B', - 'xref': 'x', - 'y': 'Two', - 'yref': 'y'}, - {'font': {'color': '#FFFFFF'}, - 'showarrow': False, - 'text': 'fifth', - 'x': 'A', - 'xref': 'x', - 'y': 'Three', - 'yref': 'y'}, - {'font': {'color': '#000000'}, - 'showarrow': False, - 'text': 'sixth', - 'x': 'B', - 'xref': 'x', - 'y': 'Three', - 'yref': 'y'}], - 'xaxis': {'dtick': 1, - 'gridcolor': 'rgb(0, 0, 0)', - 'side': 'top', - 'ticks': ''}, - 'yaxis': {'dtick': 1, 'ticks': '', - 'ticksuffix': ' '}}} - self.assert_fig_equal( - a['data'][0], - expected_a['data'][0], + z = [[1, 0], [0.25, 0.75], [0.45, 0.5]] + text = [["first", "second"], ["third", "fourth"], ["fifth", "sixth"]] + a = ff.create_annotated_heatmap( + z, + x=["A", "B"], + y=["One", "Two", "Three"], + annotation_text=text, + reversescale=True, + colorscale=[[0, "rgb(255,255,255)"], [1, "#e6005a"]], ) + expected_a = { + "data": [ + { + "colorscale": [[0, "rgb(255,255,255)"], [1, "#e6005a"]], + "showscale": False, + "reversescale": True, + "type": "heatmap", + "x": ["A", "B"], + "y": ["One", "Two", "Three"], + "z": [[1, 0], [0.25, 0.75], [0.45, 0.5]], + } + ], + "layout": { + "annotations": [ + { + "font": {"color": "#000000"}, + "showarrow": False, + "text": "first", + "x": "A", + "xref": "x", + "y": "One", + "yref": "y", + }, + { + "font": {"color": "#FFFFFF"}, + "showarrow": False, + "text": "second", + "x": "B", + "xref": "x", + "y": "One", + "yref": "y", + }, + { + "font": {"color": "#FFFFFF"}, + "showarrow": False, + "text": "third", + "x": "A", + "xref": "x", + "y": "Two", + "yref": "y", + }, + { + "font": {"color": "#000000"}, + "showarrow": False, + "text": "fourth", + "x": "B", + "xref": "x", + "y": "Two", + "yref": "y", + }, + { + "font": {"color": "#FFFFFF"}, + "showarrow": False, + "text": "fifth", + "x": "A", + "xref": "x", + "y": "Three", + "yref": "y", + }, + { + "font": {"color": "#000000"}, + "showarrow": False, + "text": "sixth", + "x": "B", + "xref": "x", + "y": "Three", + "yref": "y", + }, + ], + "xaxis": { + "dtick": 1, + "gridcolor": "rgb(0, 0, 0)", + "side": "top", + "ticks": "", + }, + "yaxis": {"dtick": 1, "ticks": "", "ticksuffix": " "}, + }, + } + self.assert_fig_equal(a["data"][0], expected_a["data"][0]) - self.assert_fig_equal(a['layout'], - expected_a['layout']) + self.assert_fig_equal(a["layout"], expected_a["layout"]) def test_bug_1300(self): # https://github.com/plotly/plotly.py/issues/1300 - sub_z = [ - [0.1, 0.0, 0.0], - [0.0, 1.0, 0.1]] + sub_z = [[0.1, 0.0, 0.0], [0.0, 1.0, 0.1]] # sub_z = sub_z.tolist() # Standard scale direction fig = ff.create_annotated_heatmap( - sub_z, colorscale='Greens', showscale=True, reversescale=True) - - expected = graph_objs.Figure({ - 'data': [{'colorscale': 'Greens', - 'reversescale': True, - 'showscale': True, - 'type': 'heatmap', - 'uid': 'baeae9f0-d650-4507-99ba-97226bb8fe6c', - 'z': [[0.1, 0., 0.], - [0., 1., 0.1]]}], - 'layout': { - 'annotations': [ - {'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '0.1', - 'x': 0, - 'xref': 'x', - 'y': 0, - 'yref': 'y'}, - {'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '0.0', - 'x': 1, - 'xref': 'x', - 'y': 0, - 'yref': 'y'}, - {'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '0.0', - 'x': 2, - 'xref': 'x', - 'y': 0, - 'yref': 'y'}, - {'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '0.0', - 'x': 0, - 'xref': 'x', - 'y': 1, - 'yref': 'y'}, - {'font': {'color': '#FFFFFF'}, - 'showarrow': False, - 'text': '1.0', - 'x': 1, - 'xref': 'x', - 'y': 1, - 'yref': 'y'}, - {'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '0.1', - 'x': 2, - 'xref': 'x', - 'y': 1, - 'yref': 'y'} + sub_z, colorscale="Greens", showscale=True, reversescale=True + ) + + expected = graph_objs.Figure( + { + "data": [ + { + "colorscale": "Greens", + "reversescale": True, + "showscale": True, + "type": "heatmap", + "uid": "baeae9f0-d650-4507-99ba-97226bb8fe6c", + "z": [[0.1, 0.0, 0.0], [0.0, 1.0, 0.1]], + } ], - 'xaxis': { - 'gridcolor': 'rgb(0, 0, 0)', - 'showticklabels': False, - 'side': 'top', - 'ticks': ''}, - 'yaxis': { - 'showticklabels': False, - 'ticks': '', - 'ticksuffix': ' '}} - }) + "layout": { + "annotations": [ + { + "font": {"color": "#000000"}, + "showarrow": False, + "text": "0.1", + "x": 0, + "xref": "x", + "y": 0, + "yref": "y", + }, + { + "font": {"color": "#000000"}, + "showarrow": False, + "text": "0.0", + "x": 1, + "xref": "x", + "y": 0, + "yref": "y", + }, + { + "font": {"color": "#000000"}, + "showarrow": False, + "text": "0.0", + "x": 2, + "xref": "x", + "y": 0, + "yref": "y", + }, + { + "font": {"color": "#000000"}, + "showarrow": False, + "text": "0.0", + "x": 0, + "xref": "x", + "y": 1, + "yref": "y", + }, + { + "font": {"color": "#FFFFFF"}, + "showarrow": False, + "text": "1.0", + "x": 1, + "xref": "x", + "y": 1, + "yref": "y", + }, + { + "font": {"color": "#000000"}, + "showarrow": False, + "text": "0.1", + "x": 2, + "xref": "x", + "y": 1, + "yref": "y", + }, + ], + "xaxis": { + "gridcolor": "rgb(0, 0, 0)", + "showticklabels": False, + "side": "top", + "ticks": "", + }, + "yaxis": {"showticklabels": False, "ticks": "", "ticksuffix": " "}, + }, + } + ) # Remove uids for trace in fig.data: @@ -1061,731 +1184,964 @@ def test_bug_1300(self): class TestTable(TestCaseNoTemplate, NumpyTestUtilsMixin): - def test_fontcolor_input(self): # check: ValueError if fontcolor input is incorrect - kwargs = {'table_text': [['one', 'two'], [1, 2], [1, 2], [1, 2]], - 'fontcolor': '#000000'} - self.assertRaises(ValueError, - ff.create_table, **kwargs) + kwargs = { + "table_text": [["one", "two"], [1, 2], [1, 2], [1, 2]], + "fontcolor": "#000000", + } + self.assertRaises(ValueError, ff.create_table, **kwargs) - kwargs = {'table_text': [['one', 'two'], [1, 2], [1, 2], [1, 2]], - 'fontcolor': ['red', 'blue']} - self.assertRaises(ValueError, - ff.create_table, **kwargs) + kwargs = { + "table_text": [["one", "two"], [1, 2], [1, 2], [1, 2]], + "fontcolor": ["red", "blue"], + } + self.assertRaises(ValueError, ff.create_table, **kwargs) def test_simple_table(self): # we should be able to create a striped table by suppling a text matrix - text = [['Country', 'Year', 'Population'], ['US', 2000, 282200000], - ['Canada', 2000, 27790000], ['US', 1980, 226500000]] + text = [ + ["Country", "Year", "Population"], + ["US", 2000, 282200000], + ["Canada", 2000, 27790000], + ["US", 1980, 226500000], + ] table = ff.create_table(text) - expected_table = {'data': [{'colorscale': [[0, '#00083e'], - [0.5, '#ededee'], - [1, '#ffffff']], - 'hoverinfo': 'none', - 'opacity': 0.75, - 'showscale': False, - 'type': 'heatmap', - 'z': [[0, 0, 0], [0.5, 0.5, 0.5], - [1, 1, 1], [0.5, 0.5, 0.5]]}], - 'layout': {'annotations': [{'align': 'left', - 'font': {'color': '#ffffff'}, - 'showarrow': False, - 'text': 'Country', - 'x': -0.45, - 'xanchor': 'left', - 'xref': 'x', - 'y': 0, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#ffffff'}, - 'showarrow': False, - 'text': 'Year', - 'x': 0.55, - 'xanchor': 'left', - 'xref': 'x', - 'y': 0, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#ffffff'}, - 'showarrow': False, - 'text': 'Population', - 'x': 1.55, - 'xanchor': 'left', - 'xref': 'x', - 'y': 0, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#000000'}, - 'showarrow': False, - 'text': 'US', - 'x': -0.45, - 'xanchor': 'left', - 'xref': 'x', - 'y': 1, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '2000', - 'x': 0.55, - 'xanchor': 'left', - 'xref': 'x', - 'y': 1, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '282200000', - 'x': 1.55, - 'xanchor': 'left', - 'xref': 'x', - 'y': 1, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#000000'}, - 'showarrow': False, - 'text': 'Canada', - 'x': -0.45, - 'xanchor': 'left', - 'xref': 'x', - 'y': 2, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '2000', - 'x': 0.55, - 'xanchor': 'left', - 'xref': 'x', - 'y': 2, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '27790000', - 'x': 1.55, - 'xanchor': 'left', - 'xref': 'x', - 'y': 2, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#000000'}, - 'showarrow': False, - 'text': 'US', - 'x': -0.45, - 'xanchor': 'left', - 'xref': 'x', - 'y': 3, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '1980', - 'x': 0.55, - 'xanchor': 'left', - 'xref': 'x', - 'y': 3, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '226500000', - 'x': 1.55, - 'xanchor': 'left', - 'xref': 'x', - 'y': 3, - 'yref': 'y'}], - 'height': 170, - 'margin': {'b': 0, 'l': 0, 'r': 0, 't': 0}, - 'xaxis': {'dtick': 1, - 'gridwidth': 2, - 'showticklabels': False, - 'tick0': -0.5, - 'ticks': '', - 'zeroline': False}, - 'yaxis': {'autorange': 'reversed', - 'dtick': 1, - 'gridwidth': 2, - 'showticklabels': False, - 'tick0': 0.5, - 'ticks': '', - 'zeroline': False}}} + expected_table = { + "data": [ + { + "colorscale": [[0, "#00083e"], [0.5, "#ededee"], [1, "#ffffff"]], + "hoverinfo": "none", + "opacity": 0.75, + "showscale": False, + "type": "heatmap", + "z": [[0, 0, 0], [0.5, 0.5, 0.5], [1, 1, 1], [0.5, 0.5, 0.5]], + } + ], + "layout": { + "annotations": [ + { + "align": "left", + "font": {"color": "#ffffff"}, + "showarrow": False, + "text": "Country", + "x": -0.45, + "xanchor": "left", + "xref": "x", + "y": 0, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#ffffff"}, + "showarrow": False, + "text": "Year", + "x": 0.55, + "xanchor": "left", + "xref": "x", + "y": 0, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#ffffff"}, + "showarrow": False, + "text": "Population", + "x": 1.55, + "xanchor": "left", + "xref": "x", + "y": 0, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#000000"}, + "showarrow": False, + "text": "US", + "x": -0.45, + "xanchor": "left", + "xref": "x", + "y": 1, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#000000"}, + "showarrow": False, + "text": "2000", + "x": 0.55, + "xanchor": "left", + "xref": "x", + "y": 1, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#000000"}, + "showarrow": False, + "text": "282200000", + "x": 1.55, + "xanchor": "left", + "xref": "x", + "y": 1, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#000000"}, + "showarrow": False, + "text": "Canada", + "x": -0.45, + "xanchor": "left", + "xref": "x", + "y": 2, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#000000"}, + "showarrow": False, + "text": "2000", + "x": 0.55, + "xanchor": "left", + "xref": "x", + "y": 2, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#000000"}, + "showarrow": False, + "text": "27790000", + "x": 1.55, + "xanchor": "left", + "xref": "x", + "y": 2, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#000000"}, + "showarrow": False, + "text": "US", + "x": -0.45, + "xanchor": "left", + "xref": "x", + "y": 3, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#000000"}, + "showarrow": False, + "text": "1980", + "x": 0.55, + "xanchor": "left", + "xref": "x", + "y": 3, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#000000"}, + "showarrow": False, + "text": "226500000", + "x": 1.55, + "xanchor": "left", + "xref": "x", + "y": 3, + "yref": "y", + }, + ], + "height": 170, + "margin": {"b": 0, "l": 0, "r": 0, "t": 0}, + "xaxis": { + "dtick": 1, + "gridwidth": 2, + "showticklabels": False, + "tick0": -0.5, + "ticks": "", + "zeroline": False, + }, + "yaxis": { + "autorange": "reversed", + "dtick": 1, + "gridwidth": 2, + "showticklabels": False, + "tick0": 0.5, + "ticks": "", + "zeroline": False, + }, + }, + } - self.assert_fig_equal( - table['data'][0], - expected_table['data'][0] - ) + self.assert_fig_equal(table["data"][0], expected_table["data"][0]) - self.assert_fig_equal( - table['layout'], - expected_table['layout'] - ) + self.assert_fig_equal(table["layout"], expected_table["layout"]) def test_table_with_index(self): # we should be able to create a striped table where the first column # matches the coloring of the header - text = [['Country', 'Year', 'Population'], ['US', 2000, 282200000], - ['Canada', 2000, 27790000]] - index_table = ff.create_table(text, index=True, index_title='Title') - exp_index_table = {'data': [{'colorscale': [[0, '#00083e'], [0.5, '#ededee'], [1, '#ffffff']], - 'hoverinfo': 'none', - 'opacity': 0.75, - 'showscale': False, - 'type': 'heatmap', - 'z': [[0, 0, 0], [0, 0.5, 0.5], [0, 1, 1]]}], - 'layout': {'annotations': [{'align': 'left', - 'font': {'color': '#ffffff'}, - 'showarrow': False, - 'text': 'Country', - 'x': -0.45, - 'xanchor': 'left', - 'xref': 'x', - 'y': 0, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#ffffff'}, - 'showarrow': False, - 'text': 'Year', - 'x': 0.55, - 'xanchor': 'left', - 'xref': 'x', - 'y': 0, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#ffffff'}, - 'showarrow': False, - 'text': 'Population', - 'x': 1.55, - 'xanchor': 'left', - 'xref': 'x', - 'y': 0, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#ffffff'}, - 'showarrow': False, - 'text': 'US', - 'x': -0.45, - 'xanchor': 'left', - 'xref': 'x', - 'y': 1, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '2000', - 'x': 0.55, - 'xanchor': 'left', - 'xref': 'x', - 'y': 1, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '282200000', - 'x': 1.55, - 'xanchor': 'left', - 'xref': 'x', - 'y': 1, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#ffffff'}, - 'showarrow': False, - 'text': 'Canada', - 'x': -0.45, - 'xanchor': 'left', - 'xref': 'x', - 'y': 2, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '2000', - 'x': 0.55, - 'xanchor': 'left', - 'xref': 'x', - 'y': 2, - 'yref': 'y'}, - {'align': 'left', - 'font': {'color': '#000000'}, - 'showarrow': False, - 'text': '27790000', - 'x': 1.55, - 'xanchor': 'left', - 'xref': 'x', - 'y': 2, - 'yref': 'y'}], - 'height': 140, - 'margin': {'b': 0, 'l': 0, 'r': 0, 't': 0}, - 'xaxis': {'dtick': 1, - 'gridwidth': 2, - 'showticklabels': False, - 'tick0': -0.5, - 'ticks': '', - 'zeroline': False}, - 'yaxis': {'autorange': 'reversed', - 'dtick': 1, - 'gridwidth': 2, - 'showticklabels': False, - 'tick0': 0.5, - 'ticks': '', - 'zeroline': False}}} + text = [ + ["Country", "Year", "Population"], + ["US", 2000, 282200000], + ["Canada", 2000, 27790000], + ] + index_table = ff.create_table(text, index=True, index_title="Title") + exp_index_table = { + "data": [ + { + "colorscale": [[0, "#00083e"], [0.5, "#ededee"], [1, "#ffffff"]], + "hoverinfo": "none", + "opacity": 0.75, + "showscale": False, + "type": "heatmap", + "z": [[0, 0, 0], [0, 0.5, 0.5], [0, 1, 1]], + } + ], + "layout": { + "annotations": [ + { + "align": "left", + "font": {"color": "#ffffff"}, + "showarrow": False, + "text": "Country", + "x": -0.45, + "xanchor": "left", + "xref": "x", + "y": 0, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#ffffff"}, + "showarrow": False, + "text": "Year", + "x": 0.55, + "xanchor": "left", + "xref": "x", + "y": 0, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#ffffff"}, + "showarrow": False, + "text": "Population", + "x": 1.55, + "xanchor": "left", + "xref": "x", + "y": 0, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#ffffff"}, + "showarrow": False, + "text": "US", + "x": -0.45, + "xanchor": "left", + "xref": "x", + "y": 1, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#000000"}, + "showarrow": False, + "text": "2000", + "x": 0.55, + "xanchor": "left", + "xref": "x", + "y": 1, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#000000"}, + "showarrow": False, + "text": "282200000", + "x": 1.55, + "xanchor": "left", + "xref": "x", + "y": 1, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#ffffff"}, + "showarrow": False, + "text": "Canada", + "x": -0.45, + "xanchor": "left", + "xref": "x", + "y": 2, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#000000"}, + "showarrow": False, + "text": "2000", + "x": 0.55, + "xanchor": "left", + "xref": "x", + "y": 2, + "yref": "y", + }, + { + "align": "left", + "font": {"color": "#000000"}, + "showarrow": False, + "text": "27790000", + "x": 1.55, + "xanchor": "left", + "xref": "x", + "y": 2, + "yref": "y", + }, + ], + "height": 140, + "margin": {"b": 0, "l": 0, "r": 0, "t": 0}, + "xaxis": { + "dtick": 1, + "gridwidth": 2, + "showticklabels": False, + "tick0": -0.5, + "ticks": "", + "zeroline": False, + }, + "yaxis": { + "autorange": "reversed", + "dtick": 1, + "gridwidth": 2, + "showticklabels": False, + "tick0": 0.5, + "ticks": "", + "zeroline": False, + }, + }, + } - self.assert_fig_equal( - index_table['data'][0], - exp_index_table['data'][0] - ) + self.assert_fig_equal(index_table["data"][0], exp_index_table["data"][0]) - self.assert_fig_equal( - index_table['layout'], - exp_index_table['layout'] - ) + self.assert_fig_equal(index_table["layout"], exp_index_table["layout"]) class TestGantt(TestCase): - def test_validate_gantt(self): # validate the basic gantt inputs - df = [{'Task': 'Job A', - 'Start': '2009-02-01', - 'Finish': '2009-08-30', - 'Complete': 'a'}] + df = [ + { + "Task": "Job A", + "Start": "2009-02-01", + "Finish": "2009-08-30", + "Complete": "a", + } + ] - pattern2 = ('In order to use an indexing column and assign colors to ' - 'the values of the index, you must choose an actual ' - 'column name in the dataframe or key if a list of ' - 'dictionaries is being used.') + pattern2 = ( + "In order to use an indexing column and assign colors to " + "the values of the index, you must choose an actual " + "column name in the dataframe or key if a list of " + "dictionaries is being used." + ) - self.assertRaisesRegexp(PlotlyError, pattern2, - ff.create_gantt, - df, index_col='foo') + self.assertRaisesRegexp( + PlotlyError, pattern2, ff.create_gantt, df, index_col="foo" + ) - df = 'foo' + df = "foo" - pattern3 = ('You must input either a dataframe or a list of ' - 'dictionaries.') + pattern3 = "You must input either a dataframe or a list of " "dictionaries." - self.assertRaisesRegexp(PlotlyError, pattern3, - ff.create_gantt, df) + self.assertRaisesRegexp(PlotlyError, pattern3, ff.create_gantt, df) df = [] - pattern4 = ('Your list is empty. It must contain at least one ' - 'dictionary.') + pattern4 = "Your list is empty. It must contain at least one " "dictionary." - self.assertRaisesRegexp(PlotlyError, pattern4, - ff.create_gantt, df) + self.assertRaisesRegexp(PlotlyError, pattern4, ff.create_gantt, df) - df = ['foo'] + df = ["foo"] - pattern5 = ('Your list must only include dictionaries.') + pattern5 = "Your list must only include dictionaries." - self.assertRaisesRegexp(PlotlyError, pattern5, - ff.create_gantt, df) + self.assertRaisesRegexp(PlotlyError, pattern5, ff.create_gantt, df) def test_gantt_index(self): # validate the index used for gantt - df = [{'Task': 'Job A', - 'Start': '2009-02-01', - 'Finish': '2009-08-30', - 'Complete': 50}] + df = [ + { + "Task": "Job A", + "Start": "2009-02-01", + "Finish": "2009-08-30", + "Complete": 50, + } + ] - pattern = ('In order to use an indexing column and assign colors to ' - 'the values of the index, you must choose an actual ' - 'column name in the dataframe or key if a list of ' - 'dictionaries is being used.') + pattern = ( + "In order to use an indexing column and assign colors to " + "the values of the index, you must choose an actual " + "column name in the dataframe or key if a list of " + "dictionaries is being used." + ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_gantt, - df, index_col='foo') + self.assertRaisesRegexp( + PlotlyError, pattern, ff.create_gantt, df, index_col="foo" + ) - df = [{'Task': 'Job A', 'Start': '2009-02-01', - 'Finish': '2009-08-30', 'Complete': 'a'}, - {'Task': 'Job A', 'Start': '2009-02-01', - 'Finish': '2009-08-30', 'Complete': 50}] + df = [ + { + "Task": "Job A", + "Start": "2009-02-01", + "Finish": "2009-08-30", + "Complete": "a", + }, + { + "Task": "Job A", + "Start": "2009-02-01", + "Finish": "2009-08-30", + "Complete": 50, + }, + ] - pattern2 = ('Error in indexing column. Make sure all entries of each ' - 'column are all numbers or all strings.') + pattern2 = ( + "Error in indexing column. Make sure all entries of each " + "column are all numbers or all strings." + ) - self.assertRaisesRegexp(PlotlyError, pattern2, - ff.create_gantt, - df, index_col='Complete') + self.assertRaisesRegexp( + PlotlyError, pattern2, ff.create_gantt, df, index_col="Complete" + ) def test_gantt_validate_colors(self): # validate the gantt colors variable - df = [{'Task': 'Job A', 'Start': '2009-02-01', - 'Finish': '2009-08-30', 'Complete': 75, 'Resource': 'A'}, - {'Task': 'Job B', 'Start': '2009-02-01', - 'Finish': '2009-08-30', 'Complete': 50, 'Resource': 'B'}] + df = [ + { + "Task": "Job A", + "Start": "2009-02-01", + "Finish": "2009-08-30", + "Complete": 75, + "Resource": "A", + }, + { + "Task": "Job B", + "Start": "2009-02-01", + "Finish": "2009-08-30", + "Complete": 50, + "Resource": "B", + }, + ] - pattern = ('Whoops! The elements in your rgb colors tuples cannot ' - 'exceed 255.0.') + pattern = ( + "Whoops! The elements in your rgb colors tuples cannot " "exceed 255.0." + ) - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_gantt, df, - index_col='Complete', colors='rgb(300,1,1)') + self.assertRaisesRegexp( + PlotlyError, + pattern, + ff.create_gantt, + df, + index_col="Complete", + colors="rgb(300,1,1)", + ) - self.assertRaises(PlotlyError, ff.create_gantt, - df, index_col='Complete', colors='foo') + self.assertRaises( + PlotlyError, ff.create_gantt, df, index_col="Complete", colors="foo" + ) - pattern2 = ('Whoops! The elements in your colors tuples cannot ' - 'exceed 1.0.') + pattern2 = "Whoops! The elements in your colors tuples cannot " "exceed 1.0." - self.assertRaisesRegexp(PlotlyError, pattern2, - ff.create_gantt, df, - index_col='Complete', colors=(2, 1, 1)) + self.assertRaisesRegexp( + PlotlyError, + pattern2, + ff.create_gantt, + df, + index_col="Complete", + colors=(2, 1, 1), + ) # verify that if colors is a dictionary, its keys span all the # values in the index column - colors_dict = {75: 'rgb(1, 2, 3)'} + colors_dict = {75: "rgb(1, 2, 3)"} - pattern3 = ('If you are using colors as a dictionary, all of its ' - 'keys must be all the values in the index column.') + pattern3 = ( + "If you are using colors as a dictionary, all of its " + "keys must be all the values in the index column." + ) - self.assertRaisesRegexp(PlotlyError, pattern3, - ff.create_gantt, df, - index_col='Complete', colors=colors_dict) + self.assertRaisesRegexp( + PlotlyError, + pattern3, + ff.create_gantt, + df, + index_col="Complete", + colors=colors_dict, + ) # check: index is set if colors is a dictionary - colors_dict_good = {50: 'rgb(1, 2, 3)', 75: 'rgb(5, 10, 15)'} + colors_dict_good = {50: "rgb(1, 2, 3)", 75: "rgb(5, 10, 15)"} - pattern4 = ('Error. You have set colors to a dictionary but have not ' - 'picked an index. An index is required if you are ' - 'assigning colors to particular values in a dictioanry.') + pattern4 = ( + "Error. You have set colors to a dictionary but have not " + "picked an index. An index is required if you are " + "assigning colors to particular values in a dictioanry." + ) - self.assertRaisesRegexp(PlotlyError, pattern4, - ff.create_gantt, df, - colors=colors_dict_good) + self.assertRaisesRegexp( + PlotlyError, pattern4, ff.create_gantt, df, colors=colors_dict_good + ) # check: number of colors is equal to or greater than number of # unique index string values - pattern5 = ("Error. The number of colors in 'colors' must be no less " - "than the number of unique index values in your group " - "column.") + pattern5 = ( + "Error. The number of colors in 'colors' must be no less " + "than the number of unique index values in your group " + "column." + ) - self.assertRaisesRegexp(PlotlyError, pattern5, - ff.create_gantt, df, - index_col='Resource', - colors=['#ffffff']) + self.assertRaisesRegexp( + PlotlyError, + pattern5, + ff.create_gantt, + df, + index_col="Resource", + colors=["#ffffff"], + ) # check: if index is numeric, colors has at least 2 colors in it - pattern6 = ("You must use at least 2 colors in 'colors' if you " - "are using a colorscale. However only the first two " - "colors given will be used for the lower and upper " - "bounds on the colormap.") + pattern6 = ( + "You must use at least 2 colors in 'colors' if you " + "are using a colorscale. However only the first two " + "colors given will be used for the lower and upper " + "bounds on the colormap." + ) - self.assertRaisesRegexp(PlotlyError, pattern6, - ff.create_gantt, df, - index_col='Complete', - colors=['#ffffff']) + self.assertRaisesRegexp( + PlotlyError, + pattern6, + ff.create_gantt, + df, + index_col="Complete", + colors=["#ffffff"], + ) def test_gannt_groups_and_descriptions(self): # check if grouped gantt chart matches with expected output df = [ - dict(Task='Task A', Description='Task A - 1', Start='2008-10-05', - Finish='2009-04-15', IndexCol='TA'), - dict(Task="Task B", Description='Task B - 1', Start='2008-12-06', - Finish='2009-03-15', IndexCol='TB'), - dict(Task="Task C", Description='Task C - 1', Start='2008-09-07', - Finish='2009-03-15', IndexCol='TC'), - dict(Task="Task C", Description='Task C - 2', Start='2009-05-08', - Finish='2009-04-15', IndexCol='TC'), - dict(Task="Task A", Description='Task A - 2', Start='2009-04-20', - Finish='2009-05-30', IndexCol='TA') + dict( + Task="Task A", + Description="Task A - 1", + Start="2008-10-05", + Finish="2009-04-15", + IndexCol="TA", + ), + dict( + Task="Task B", + Description="Task B - 1", + Start="2008-12-06", + Finish="2009-03-15", + IndexCol="TB", + ), + dict( + Task="Task C", + Description="Task C - 1", + Start="2008-09-07", + Finish="2009-03-15", + IndexCol="TC", + ), + dict( + Task="Task C", + Description="Task C - 2", + Start="2009-05-08", + Finish="2009-04-15", + IndexCol="TC", + ), + dict( + Task="Task A", + Description="Task A - 2", + Start="2009-04-20", + Finish="2009-05-30", + IndexCol="TA", + ), ] test_gantt_chart = ff.create_gantt( - df, colors=dict(TA='rgb(220, 0, 0)', TB='rgb(170, 14, 200)', - TC=(1, 0.9, 0.16)), show_colorbar=True, index_col='IndexCol', - group_tasks=True + df, + colors=dict(TA="rgb(220, 0, 0)", TB="rgb(170, 14, 200)", TC=(1, 0.9, 0.16)), + show_colorbar=True, + index_col="IndexCol", + group_tasks=True, ) exp_gantt_chart = { - 'data': [{'marker': {'color': 'white'}, - 'name': '', - 'showlegend': False, - 'text': 'Task A - 1', - 'x': ['2008-10-05', '2009-04-15'], - 'y': [2, 2]}, - {'marker': {'color': 'white'}, - 'name': '', - 'showlegend': False, - 'text': 'Task B - 1', - 'x': ['2008-12-06', '2009-03-15'], - 'y': [1, 1]}, - {'marker': {'color': 'white'}, - 'name': '', - 'showlegend': False, - 'text': 'Task C - 1', - 'x': ['2008-09-07', '2009-03-15'], - 'y': [0, 0]}, - {'marker': {'color': 'white'}, - 'name': '', - 'showlegend': False, - 'text': 'Task C - 2', - 'x': ['2009-05-08', '2009-04-15'], - 'y': [0, 0]}, - {'marker': {'color': 'white'}, - 'name': '', - 'showlegend': False, - 'text': 'Task A - 2', - 'x': ['2009-04-20', '2009-05-30'], - 'y': [2, 2]}, - {'hoverinfo': 'none', - 'marker': {'color': 'rgb(220, 0, 0)', 'size': 1}, - 'name': 'TA', - 'showlegend': True, - 'x': ['2009-04-20', '2009-04-20'], - 'y': [0, 0]}, - {'hoverinfo': 'none', - 'marker': {'color': 'rgb(170, 14, 200)', 'size': 1}, - 'name': 'TB', - 'showlegend': True, - 'x': ['2009-04-20', '2009-04-20'], - 'y': [1, 1]}, - {'hoverinfo': 'none', - 'marker': {'color': 'rgb(255, 230, 41)', 'size': 1}, - 'name': 'TC', - 'showlegend': True, - 'x': ['2009-04-20', '2009-04-20'], - 'y': [2, 2]}], - 'layout': {'height': 600, - 'hovermode': 'closest', - 'shapes': [{'fillcolor': 'rgb(220, 0, 0)', - 'line': {'width': 0}, - 'opacity': 1, - 'type': 'rect', - 'x0': '2008-10-05', - 'x1': '2009-04-15', - 'xref': 'x', - 'y0': 1.8, - 'y1': 2.2, - 'yref': 'y'}, - {'fillcolor': 'rgb(170, 14, 200)', - 'line': {'width': 0}, - 'opacity': 1, - 'type': 'rect', - 'x0': '2008-12-06', - 'x1': '2009-03-15', - 'xref': 'x', - 'y0': 0.8, - 'y1': 1.2, - 'yref': 'y'}, - {'fillcolor': 'rgb(255, 230, 41)', - 'line': {'width': 0}, - 'opacity': 1, - 'type': 'rect', - 'x0': '2008-09-07', - 'x1': '2009-03-15', - 'xref': 'x', - 'y0': -0.2, - 'y1': 0.2, - 'yref': 'y'}, - {'fillcolor': 'rgb(255, 230, 41)', - 'line': {'width': 0}, - 'opacity': 1, - 'type': 'rect', - 'x0': '2009-05-08', - 'x1': '2009-04-15', - 'xref': 'x', - 'y0': -0.2, - 'y1': 0.2, - 'yref': 'y'}, - {'fillcolor': 'rgb(220, 0, 0)', - 'line': {'width': 0}, - 'opacity': 1, - 'type': 'rect', - 'x0': '2009-04-20', - 'x1': '2009-05-30', - 'xref': 'x', - 'y0': 1.8, - 'y1': 2.2, - 'yref': 'y'}], - 'showlegend': True, - 'title': 'Gantt Chart', - 'width': 900, - 'xaxis': {'rangeselector': {'buttons': [{'count': 7, - 'label': '1w', - 'step': 'day', - 'stepmode': 'backward'}, - {'count': 1, - 'label': '1m', - 'step': 'month', - 'stepmode': 'backward'}, - {'count': 6, - 'label': '6m', - 'step': 'month', - 'stepmode': 'backward'}, - {'count': 1, - 'label': 'YTD', - 'step': 'year', - 'stepmode': 'todate'}, - {'count': 1, - 'label': '1y', - 'step': 'year', - 'stepmode': 'backward'}, - {'step': 'all'}]}, - 'showgrid': False, - 'type': 'date', - 'zeroline': False}, - 'yaxis': {'autorange': False, - 'range': [-1, 4], - 'showgrid': False, - 'ticktext': ['Task C', 'Task B', 'Task A'], - 'tickvals': [0, 1, 2], - 'zeroline': False}} + "data": [ + { + "marker": {"color": "white"}, + "name": "", + "showlegend": False, + "text": "Task A - 1", + "x": ["2008-10-05", "2009-04-15"], + "y": [2, 2], + }, + { + "marker": {"color": "white"}, + "name": "", + "showlegend": False, + "text": "Task B - 1", + "x": ["2008-12-06", "2009-03-15"], + "y": [1, 1], + }, + { + "marker": {"color": "white"}, + "name": "", + "showlegend": False, + "text": "Task C - 1", + "x": ["2008-09-07", "2009-03-15"], + "y": [0, 0], + }, + { + "marker": {"color": "white"}, + "name": "", + "showlegend": False, + "text": "Task C - 2", + "x": ["2009-05-08", "2009-04-15"], + "y": [0, 0], + }, + { + "marker": {"color": "white"}, + "name": "", + "showlegend": False, + "text": "Task A - 2", + "x": ["2009-04-20", "2009-05-30"], + "y": [2, 2], + }, + { + "hoverinfo": "none", + "marker": {"color": "rgb(220, 0, 0)", "size": 1}, + "name": "TA", + "showlegend": True, + "x": ["2009-04-20", "2009-04-20"], + "y": [0, 0], + }, + { + "hoverinfo": "none", + "marker": {"color": "rgb(170, 14, 200)", "size": 1}, + "name": "TB", + "showlegend": True, + "x": ["2009-04-20", "2009-04-20"], + "y": [1, 1], + }, + { + "hoverinfo": "none", + "marker": {"color": "rgb(255, 230, 41)", "size": 1}, + "name": "TC", + "showlegend": True, + "x": ["2009-04-20", "2009-04-20"], + "y": [2, 2], + }, + ], + "layout": { + "height": 600, + "hovermode": "closest", + "shapes": [ + { + "fillcolor": "rgb(220, 0, 0)", + "line": {"width": 0}, + "opacity": 1, + "type": "rect", + "x0": "2008-10-05", + "x1": "2009-04-15", + "xref": "x", + "y0": 1.8, + "y1": 2.2, + "yref": "y", + }, + { + "fillcolor": "rgb(170, 14, 200)", + "line": {"width": 0}, + "opacity": 1, + "type": "rect", + "x0": "2008-12-06", + "x1": "2009-03-15", + "xref": "x", + "y0": 0.8, + "y1": 1.2, + "yref": "y", + }, + { + "fillcolor": "rgb(255, 230, 41)", + "line": {"width": 0}, + "opacity": 1, + "type": "rect", + "x0": "2008-09-07", + "x1": "2009-03-15", + "xref": "x", + "y0": -0.2, + "y1": 0.2, + "yref": "y", + }, + { + "fillcolor": "rgb(255, 230, 41)", + "line": {"width": 0}, + "opacity": 1, + "type": "rect", + "x0": "2009-05-08", + "x1": "2009-04-15", + "xref": "x", + "y0": -0.2, + "y1": 0.2, + "yref": "y", + }, + { + "fillcolor": "rgb(220, 0, 0)", + "line": {"width": 0}, + "opacity": 1, + "type": "rect", + "x0": "2009-04-20", + "x1": "2009-05-30", + "xref": "x", + "y0": 1.8, + "y1": 2.2, + "yref": "y", + }, + ], + "showlegend": True, + "title": "Gantt Chart", + "width": 900, + "xaxis": { + "rangeselector": { + "buttons": [ + { + "count": 7, + "label": "1w", + "step": "day", + "stepmode": "backward", + }, + { + "count": 1, + "label": "1m", + "step": "month", + "stepmode": "backward", + }, + { + "count": 6, + "label": "6m", + "step": "month", + "stepmode": "backward", + }, + { + "count": 1, + "label": "YTD", + "step": "year", + "stepmode": "todate", + }, + { + "count": 1, + "label": "1y", + "step": "year", + "stepmode": "backward", + }, + {"step": "all"}, + ] + }, + "showgrid": False, + "type": "date", + "zeroline": False, + }, + "yaxis": { + "autorange": False, + "range": [-1, 4], + "showgrid": False, + "ticktext": ["Task C", "Task B", "Task A"], + "tickvals": [0, 1, 2], + "zeroline": False, + }, + }, } - self.assertEqual(test_gantt_chart['data'][0], - exp_gantt_chart['data'][0]) + self.assertEqual(test_gantt_chart["data"][0], exp_gantt_chart["data"][0]) - self.assertEqual(test_gantt_chart['data'][1], - exp_gantt_chart['data'][1]) + self.assertEqual(test_gantt_chart["data"][1], exp_gantt_chart["data"][1]) - self.assertEqual(test_gantt_chart['data'][2], - exp_gantt_chart['data'][2]) + self.assertEqual(test_gantt_chart["data"][2], exp_gantt_chart["data"][2]) - self.assertEqual(test_gantt_chart['data'][3], - exp_gantt_chart['data'][3]) + self.assertEqual(test_gantt_chart["data"][3], exp_gantt_chart["data"][3]) - self.assertEqual(test_gantt_chart['data'][4], - exp_gantt_chart['data'][4]) + self.assertEqual(test_gantt_chart["data"][4], exp_gantt_chart["data"][4]) - self.assertEqual(test_gantt_chart['layout'], - exp_gantt_chart['layout']) + self.assertEqual(test_gantt_chart["layout"], exp_gantt_chart["layout"]) def test_gantt_all_args(self): # check if gantt chart matches with expected output - df = [{'Task': 'Run', - 'Start': '2010-01-01', - 'Finish': '2011-02-02', - 'Complete': 0}, - {'Task': 'Fast', - 'Start': '2011-01-01', - 'Finish': '2012-06-05', - 'Complete': 25}] + df = [ + { + "Task": "Run", + "Start": "2010-01-01", + "Finish": "2011-02-02", + "Complete": 0, + }, + { + "Task": "Fast", + "Start": "2011-01-01", + "Finish": "2012-06-05", + "Complete": 25, + }, + ] test_gantt_chart = ff.create_gantt( - df, colors='Blues', index_col='Complete', reverse_colors=True, - title='Title', bar_width=0.5, showgrid_x=True, showgrid_y=True, - height=500, width=500 + df, + colors="Blues", + index_col="Complete", + reverse_colors=True, + title="Title", + bar_width=0.5, + showgrid_x=True, + showgrid_y=True, + height=500, + width=500, ) exp_gantt_chart = { - 'data': [{'marker': {'color': 'white'}, - 'name': '', - 'x': ['2010-01-01', '2011-02-02'], - 'y': [0, 0]}, - {'marker': {'color': 'white'}, - 'name': '', - 'x': ['2011-01-01', '2012-06-05'], - 'y': [1, 1]}], - 'layout': {'height': 500, - 'hovermode': 'closest', - 'shapes': [{'fillcolor': 'rgb(220.0, 220.0, 220.0)', - 'line': {'width': 0}, - 'opacity': 1, - 'type': 'rect', - 'x0': '2010-01-01', - 'x1': '2011-02-02', - 'xref': 'x', - 'y0': -0.5, - 'y1': 0.5, - 'yref': 'y'}, - {'fillcolor': 'rgb(166.25, 167.5, 208.0)', - 'line': {'width': 0}, - 'opacity': 1, - 'type': 'rect', - 'x0': '2011-01-01', - 'x1': '2012-06-05', - 'xref': 'x', - 'y0': 0.5, - 'y1': 1.5, - 'yref': 'y'}], - 'showlegend': False, - 'title': 'Title', - 'width': 500, - 'xaxis': {'rangeselector': {'buttons': [ - {'count': 7, - 'label': '1w', - 'step': 'day', - 'stepmode': 'backward'}, - {'count': 1, - 'label': '1m', - 'step': 'month', - 'stepmode': 'backward'}, - {'count': 6, - 'label': '6m', - 'step': 'month', - 'stepmode': 'backward'}, - {'count': 1, - 'label': 'YTD', - 'step': 'year', - 'stepmode': 'todate'}, - {'count': 1, - 'label': '1y', - 'step': 'year', - 'stepmode': 'backward'}, - {'step': 'all'} - ]}, - 'showgrid': True, - 'type': 'date', - 'zeroline': False}, - 'yaxis': {'autorange': False, - 'range': [-1, 3], - 'showgrid': True, - 'ticktext': ['Run', 'Fast'], - 'tickvals': [0, 1], - 'zeroline': False}} + "data": [ + { + "marker": {"color": "white"}, + "name": "", + "x": ["2010-01-01", "2011-02-02"], + "y": [0, 0], + }, + { + "marker": {"color": "white"}, + "name": "", + "x": ["2011-01-01", "2012-06-05"], + "y": [1, 1], + }, + ], + "layout": { + "height": 500, + "hovermode": "closest", + "shapes": [ + { + "fillcolor": "rgb(220.0, 220.0, 220.0)", + "line": {"width": 0}, + "opacity": 1, + "type": "rect", + "x0": "2010-01-01", + "x1": "2011-02-02", + "xref": "x", + "y0": -0.5, + "y1": 0.5, + "yref": "y", + }, + { + "fillcolor": "rgb(166.25, 167.5, 208.0)", + "line": {"width": 0}, + "opacity": 1, + "type": "rect", + "x0": "2011-01-01", + "x1": "2012-06-05", + "xref": "x", + "y0": 0.5, + "y1": 1.5, + "yref": "y", + }, + ], + "showlegend": False, + "title": "Title", + "width": 500, + "xaxis": { + "rangeselector": { + "buttons": [ + { + "count": 7, + "label": "1w", + "step": "day", + "stepmode": "backward", + }, + { + "count": 1, + "label": "1m", + "step": "month", + "stepmode": "backward", + }, + { + "count": 6, + "label": "6m", + "step": "month", + "stepmode": "backward", + }, + { + "count": 1, + "label": "YTD", + "step": "year", + "stepmode": "todate", + }, + { + "count": 1, + "label": "1y", + "step": "year", + "stepmode": "backward", + }, + {"step": "all"}, + ] + }, + "showgrid": True, + "type": "date", + "zeroline": False, + }, + "yaxis": { + "autorange": False, + "range": [-1, 3], + "showgrid": True, + "ticktext": ["Run", "Fast"], + "tickvals": [0, 1], + "zeroline": False, + }, + }, } - self.assertEqual(test_gantt_chart['data'][0], - exp_gantt_chart['data'][0]) + self.assertEqual(test_gantt_chart["data"][0], exp_gantt_chart["data"][0]) - self.assertEqual(test_gantt_chart['data'][1], - exp_gantt_chart['data'][1]) + self.assertEqual(test_gantt_chart["data"][1], exp_gantt_chart["data"][1]) - self.assertEqual(test_gantt_chart['layout'], - exp_gantt_chart['layout']) + self.assertEqual(test_gantt_chart["layout"], exp_gantt_chart["layout"]) class Test2D_Density(TestCaseNoTemplate, NumpyTestUtilsMixin): - def test_validate_2D_density(self): # validate that x and y contain only numbers x = [1, 2] - y = ['a', 2] + y = ["a", 2] - pattern = ("All elements of your 'x' and 'y' lists must be numbers.") + pattern = "All elements of your 'x' and 'y' lists must be numbers." - self.assertRaisesRegexp(PlotlyError, pattern, - ff.create_2d_density, x, y) + self.assertRaisesRegexp(PlotlyError, pattern, ff.create_2d_density, x, y) # validate that x and y are the same length x2 = [1] y2 = [1, 2] - pattern2 = ("Both lists 'x' and 'y' must be the same length.") + pattern2 = "Both lists 'x' and 'y' must be the same length." - self.assertRaisesRegexp(PlotlyError, pattern2, - ff.create_2d_density, x2, y2) + self.assertRaisesRegexp(PlotlyError, pattern2, ff.create_2d_density, x2, y2) def test_2D_density_all_args(self): @@ -1793,77 +2149,97 @@ def test_2D_density_all_args(self): x = [1, 2] y = [2, 4] - colorscale = ['#7A4579', '#D56073', 'rgb(236,158,105)', - (1, 1, 0.2), (0.98, 0.98, 0.98)] + colorscale = [ + "#7A4579", + "#D56073", + "rgb(236,158,105)", + (1, 1, 0.2), + (0.98, 0.98, 0.98), + ] test_2D_density_chart = ff.create_2d_density( - x, y, colorscale=colorscale, hist_color='rgb(255,237,222)', - point_size=3, height=800, width=800) + x, + y, + colorscale=colorscale, + hist_color="rgb(255,237,222)", + point_size=3, + height=800, + width=800, + ) exp_2D_density_chart = { - 'data': [{'marker': {'color': 'rgb(0, 0, 128)', - 'opacity': 0.4, - 'size': 3}, - 'mode': 'markers', - 'name': 'points', - 'type': 'scatter', - 'x': [1, 2], - 'y': [2, 4]}, - {'colorscale': [[0.0, 'rgb(122, 69, 121)'], - [0.25, 'rgb(213, 96, 115)'], - [0.5, 'rgb(236, 158, 105)'], - [0.75, 'rgb(255, 255, 51)'], - [1.0, 'rgb(250, 250, 250)']], - 'name': 'density', - 'ncontours': 20, - 'reversescale': True, - 'showscale': False, - 'type': 'histogram2dcontour', - 'x': [1, 2], - 'y': [2, 4]}, - {'marker': {'color': 'rgb(255, 237, 222)'}, - 'name': 'x density', - 'type': 'histogram', - 'x': [1, 2], - 'yaxis': 'y2'}, - {'marker': {'color': 'rgb(255, 237, 222)'}, - 'name': 'y density', - 'type': 'histogram', - 'xaxis': 'x2', - 'y': [2, 4]}], - 'layout': {'autosize': False, - 'bargap': 0, - 'height': 800, - 'hovermode': 'closest', - 'margin': {'t': 50}, - 'showlegend': False, - 'title': {'text': '2D Density Plot'}, - 'width': 800, - 'xaxis': {'domain': [0, 0.85], - 'showgrid': False, - 'zeroline': False}, - 'xaxis2': {'domain': [0.85, 1], - 'showgrid': False, - 'zeroline': False}, - 'yaxis': {'domain': [0, 0.85], - 'showgrid': False, - 'zeroline': False}, - 'yaxis2': {'domain': [0.85, 1], - 'showgrid': False, - 'zeroline': False}} + "data": [ + { + "marker": {"color": "rgb(0, 0, 128)", "opacity": 0.4, "size": 3}, + "mode": "markers", + "name": "points", + "type": "scatter", + "x": [1, 2], + "y": [2, 4], + }, + { + "colorscale": [ + [0.0, "rgb(122, 69, 121)"], + [0.25, "rgb(213, 96, 115)"], + [0.5, "rgb(236, 158, 105)"], + [0.75, "rgb(255, 255, 51)"], + [1.0, "rgb(250, 250, 250)"], + ], + "name": "density", + "ncontours": 20, + "reversescale": True, + "showscale": False, + "type": "histogram2dcontour", + "x": [1, 2], + "y": [2, 4], + }, + { + "marker": {"color": "rgb(255, 237, 222)"}, + "name": "x density", + "type": "histogram", + "x": [1, 2], + "yaxis": "y2", + }, + { + "marker": {"color": "rgb(255, 237, 222)"}, + "name": "y density", + "type": "histogram", + "xaxis": "x2", + "y": [2, 4], + }, + ], + "layout": { + "autosize": False, + "bargap": 0, + "height": 800, + "hovermode": "closest", + "margin": {"t": 50}, + "showlegend": False, + "title": {"text": "2D Density Plot"}, + "width": 800, + "xaxis": {"domain": [0, 0.85], "showgrid": False, "zeroline": False}, + "xaxis2": {"domain": [0.85, 1], "showgrid": False, "zeroline": False}, + "yaxis": {"domain": [0, 0.85], "showgrid": False, "zeroline": False}, + "yaxis2": {"domain": [0.85, 1], "showgrid": False, "zeroline": False}, + }, } - self.assert_fig_equal(test_2D_density_chart['data'][0], - exp_2D_density_chart['data'][0]) + self.assert_fig_equal( + test_2D_density_chart["data"][0], exp_2D_density_chart["data"][0] + ) - self.assert_fig_equal(test_2D_density_chart['data'][1], - exp_2D_density_chart['data'][1]) + self.assert_fig_equal( + test_2D_density_chart["data"][1], exp_2D_density_chart["data"][1] + ) - self.assert_fig_equal(test_2D_density_chart['data'][2], - exp_2D_density_chart['data'][2]) + self.assert_fig_equal( + test_2D_density_chart["data"][2], exp_2D_density_chart["data"][2] + ) - self.assert_fig_equal(test_2D_density_chart['data'][3], - exp_2D_density_chart['data'][3]) + self.assert_fig_equal( + test_2D_density_chart["data"][3], exp_2D_density_chart["data"][3] + ) - self.assert_fig_equal(test_2D_density_chart['layout'], - exp_2D_density_chart['layout']) + self.assert_fig_equal( + test_2D_density_chart["layout"], exp_2D_density_chart["layout"] + ) diff --git a/packages/python/plotly/plotly/tests/test_optional/test_utils/__init__.py b/packages/python/plotly/plotly/tests/test_optional/test_utils/__init__.py index f367e6011a3..e1565c83f71 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_utils/__init__.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_utils/__init__.py @@ -1,4 +1,5 @@ import warnings + def setup_package(): - warnings.filterwarnings('ignore') + warnings.filterwarnings("ignore") diff --git a/packages/python/plotly/plotly/tests/test_optional/test_utils/test_utils.py b/packages/python/plotly/plotly/tests/test_optional/test_utils/test_utils.py index b008beb7c91..4027eb0b2b7 100644 --- a/packages/python/plotly/plotly/tests/test_optional/test_utils/test_utils.py +++ b/packages/python/plotly/plotly/tests/test_optional/test_utils/test_utils.py @@ -21,7 +21,7 @@ from plotly.graph_objs import Scatter, Scatter3d, Figure, Data -matplotlylib = optional_imports.get_module('plotly.matplotlylib') +matplotlylib = optional_imports.get_module("plotly.matplotlylib") if matplotlylib: import matplotlib.pyplot as plt @@ -31,35 +31,37 @@ ## JSON encoding numeric_list = [1, 2, 3] np_list = np.array([1, 2, 3, np.NaN, np.NAN, np.Inf, dt(2014, 1, 5)]) -mixed_list = [1, 'A', dt(2014, 1, 5), dt(2014, 1, 5, 1, 1, 1), - dt(2014, 1, 5, 1, 1, 1, 1)] -dt_list = [dt(2014, 1, 5), dt(2014, 1, 5, 1, 1, 1), - dt(2014, 1, 5, 1, 1, 1, 1)] - -df = pd.DataFrame(columns=['col 1'], - data=[1, 2, 3, dt(2014, 1, 5), pd.NaT, np.NaN, np.Inf]) - -rng = pd.date_range('1/1/2011', periods=2, freq='H') +mixed_list = [ + 1, + "A", + dt(2014, 1, 5), + dt(2014, 1, 5, 1, 1, 1), + dt(2014, 1, 5, 1, 1, 1, 1), +] +dt_list = [dt(2014, 1, 5), dt(2014, 1, 5, 1, 1, 1), dt(2014, 1, 5, 1, 1, 1, 1)] + +df = pd.DataFrame( + columns=["col 1"], data=[1, 2, 3, dt(2014, 1, 5), pd.NaT, np.NaN, np.Inf] +) + +rng = pd.date_range("1/1/2011", periods=2, freq="H") ts = pd.Series([1.5, 2.5], index=rng) class TestJSONEncoder(TestCase): - def test_encode_as_plotly(self): # should *fail* when object doesn't have `to_plotly_json` attribute - objs_without_attr = [ - 1, 'one', set(['a', 'set']), {'a': 'dict'}, ['a', 'list'] - ] + objs_without_attr = [1, "one", set(["a", "set"]), {"a": "dict"}, ["a", "list"]] for obj in objs_without_attr: - self.assertRaises(utils.NotEncodable, - utils.PlotlyJSONEncoder.encode_as_plotly, obj) + self.assertRaises( + utils.NotEncodable, utils.PlotlyJSONEncoder.encode_as_plotly, obj + ) # should return without exception when obj has `to_plotly_josn` attr - expected_res = 'wedidit' + expected_res = "wedidit" class ObjWithAttr(object): - def to_plotly_json(self): return expected_res @@ -69,18 +71,16 @@ def to_plotly_json(self): def test_encode_as_list(self): # should *fail* when object doesn't have `tolist` method - objs_without_attr = [ - 1, 'one', set(['a', 'set']), {'a': 'dict'}, ['a', 'list'] - ] + objs_without_attr = [1, "one", set(["a", "set"]), {"a": "dict"}, ["a", "list"]] for obj in objs_without_attr: - self.assertRaises(utils.NotEncodable, - utils.PlotlyJSONEncoder.encode_as_list, obj) + self.assertRaises( + utils.NotEncodable, utils.PlotlyJSONEncoder.encode_as_list, obj + ) # should return without exception when obj has `tolist` attr - expected_res = ['some', 'list'] + expected_res = ["some", "list"] class ObjWithAttr(object): - def tolist(self): return expected_res @@ -90,10 +90,11 @@ def tolist(self): def test_encode_as_pandas(self): # should *fail* on things that are not specific pandas objects - not_pandas = ['giraffe', 6, float('nan'), ['a', 'list']] + not_pandas = ["giraffe", 6, float("nan"), ["a", "list"]] for obj in not_pandas: - self.assertRaises(utils.NotEncodable, - utils.PlotlyJSONEncoder.encode_as_pandas, obj) + self.assertRaises( + utils.NotEncodable, utils.PlotlyJSONEncoder.encode_as_pandas, obj + ) # should succeed when we've got specific pandas thingies res = utils.PlotlyJSONEncoder.encode_as_pandas(pd.NaT) @@ -102,10 +103,11 @@ def test_encode_as_pandas(self): def test_encode_as_numpy(self): # should *fail* on non-numpy-y things - not_numpy = ['hippo', 8, float('nan'), {'a': 'dict'}] + not_numpy = ["hippo", 8, float("nan"), {"a": "dict"}] for obj in not_numpy: - self.assertRaises(utils.NotEncodable, - utils.PlotlyJSONEncoder.encode_as_numpy, obj) + self.assertRaises( + utils.NotEncodable, utils.PlotlyJSONEncoder.encode_as_numpy, obj + ) # should succeed with numpy-y-thingies res = utils.PlotlyJSONEncoder.encode_as_numpy(np.ma.core.masked) @@ -114,59 +116,59 @@ def test_encode_as_numpy(self): def test_encode_valid_datetime(self): # should *fail* without 'utcoffset' and 'isoformat' and '__sub__' attrs - #non_datetimes = [datetime.date(2013, 10, 1), 'noon', 56, '00:00:00'] + # non_datetimes = [datetime.date(2013, 10, 1), 'noon', 56, '00:00:00'] non_datetimes = [datetime.date(2013, 10, 1)] for obj in non_datetimes: - self.assertRaises(utils.NotEncodable, - utils.PlotlyJSONEncoder.encode_as_datetime, obj) + self.assertRaises( + utils.NotEncodable, utils.PlotlyJSONEncoder.encode_as_datetime, obj + ) def test_encode_as_datetime(self): # should succeed with 'utcoffset', 'isoformat' and '__sub__' attrs - res = utils.PlotlyJSONEncoder.encode_as_datetime( - datetime.datetime(2013, 10, 1) - ) - self.assertEqual(res, '2013-10-01') + res = utils.PlotlyJSONEncoder.encode_as_datetime(datetime.datetime(2013, 10, 1)) + self.assertEqual(res, "2013-10-01") def test_encode_as_datetime_with_microsecond(self): # should not include extraneous microsecond info if DNE res = utils.PlotlyJSONEncoder.encode_as_datetime( datetime.datetime(2013, 10, 1, microsecond=0) ) - self.assertEqual(res, '2013-10-01') + self.assertEqual(res, "2013-10-01") # should include microsecond info if present res = utils.PlotlyJSONEncoder.encode_as_datetime( datetime.datetime(2013, 10, 1, microsecond=10) ) - self.assertEqual(res, '2013-10-01 00:00:00.000010') + self.assertEqual(res, "2013-10-01 00:00:00.000010") def test_encode_as_datetime_with_localized_tz(self): # should convert tzinfo to utc. Note that in october, we're in EDT! # therefore the 4 hour difference is correct. naive_datetime = datetime.datetime(2013, 10, 1) - aware_datetime = pytz.timezone('US/Eastern').localize(naive_datetime) + aware_datetime = pytz.timezone("US/Eastern").localize(naive_datetime) res = utils.PlotlyJSONEncoder.encode_as_datetime(aware_datetime) - self.assertEqual(res, '2013-10-01 04:00:00') + self.assertEqual(res, "2013-10-01 04:00:00") def test_encode_as_date(self): # should *fail* without 'utcoffset' and 'isoformat' and '__sub__' attrs - non_datetimes = ['noon', 56, '00:00:00'] + non_datetimes = ["noon", 56, "00:00:00"] for obj in non_datetimes: - self.assertRaises(utils.NotEncodable, - utils.PlotlyJSONEncoder.encode_as_date, obj) + self.assertRaises( + utils.NotEncodable, utils.PlotlyJSONEncoder.encode_as_date, obj + ) # should work with a date a_date = datetime.date(2013, 10, 1) res = utils.PlotlyJSONEncoder.encode_as_date(a_date) - self.assertEqual(res, '2013-10-01') + self.assertEqual(res, "2013-10-01") # should also work with a date time without a utc offset! res = utils.PlotlyJSONEncoder.encode_as_date( datetime.datetime(2013, 10, 1, microsecond=10) ) - self.assertEqual(res, '2013-10-01 00:00:00.000010') + self.assertEqual(res, "2013-10-01 00:00:00.000010") def test_encode_as_decimal(self): @@ -176,31 +178,30 @@ def test_encode_as_decimal(self): self.assertAlmostEqual(res, 1.023452) # Checks upto 7 decimal places self.assertIsInstance(res, float) - def test_figure_json_encoding(self): - df = pd.DataFrame(columns=['col 1'], data=[1, 2, 3]) + df = pd.DataFrame(columns=["col 1"], data=[1, 2, 3]) s1 = Scatter3d(x=numeric_list, y=np_list, z=mixed_list) - s2 = Scatter(x=df['col 1']) + s2 = Scatter(x=df["col 1"]) data = Data([s1, s2]) figure = Figure(data=data) js1 = _json.dumps(s1, cls=utils.PlotlyJSONEncoder, sort_keys=True) js2 = _json.dumps(s2, cls=utils.PlotlyJSONEncoder, sort_keys=True) - assert(js1 == '{"type": "scatter3d", "x": [1, 2, 3], ' - '"y": [1, 2, 3, null, null, null, "2014-01-05T00:00:00"], ' - '"z": [1, "A", "2014-01-05T00:00:00", ' - '"2014-01-05T01:01:01", "2014-01-05T01:01:01.000001"]}') - assert(js2 == '{"type": "scatter", "x": [1, 2, 3]}') + assert ( + js1 == '{"type": "scatter3d", "x": [1, 2, 3], ' + '"y": [1, 2, 3, null, null, null, "2014-01-05T00:00:00"], ' + '"z": [1, "A", "2014-01-05T00:00:00", ' + '"2014-01-05T01:01:01", "2014-01-05T01:01:01.000001"]}' + ) + assert js2 == '{"type": "scatter", "x": [1, 2, 3]}' # Test JSON encoding works _json.dumps(data, cls=utils.PlotlyJSONEncoder, sort_keys=True) _json.dumps(figure, cls=utils.PlotlyJSONEncoder, sort_keys=True) # Test data wasn't mutated - np_array = np.array( - [1, 2, 3, np.NaN, np.NAN, np.Inf, dt(2014, 1, 5)] - ) + np_array = np.array([1, 2, 3, np.NaN, np.NAN, np.Inf, dt(2014, 1, 5)]) for k in range(len(np_array)): if k in [3, 4]: # check NaN @@ -209,83 +210,95 @@ def test_figure_json_encoding(self): # non-NaN assert np_list[k] == np_array[k] - assert(set(data[0]['z']) == - set([1, 'A', dt(2014, 1, 5), dt(2014, 1, 5, 1, 1, 1), - dt(2014, 1, 5, 1, 1, 1, 1)])) + assert set(data[0]["z"]) == set( + [ + 1, + "A", + dt(2014, 1, 5), + dt(2014, 1, 5, 1, 1, 1), + dt(2014, 1, 5, 1, 1, 1, 1), + ] + ) def test_datetime_json_encoding(self): j1 = _json.dumps(dt_list, cls=utils.PlotlyJSONEncoder) - assert(j1 == '["2014-01-05T00:00:00", ' - '"2014-01-05T01:01:01", ' - '"2014-01-05T01:01:01.000001"]') + assert ( + j1 == '["2014-01-05T00:00:00", ' + '"2014-01-05T01:01:01", ' + '"2014-01-05T01:01:01.000001"]' + ) j2 = _json.dumps({"x": dt_list}, cls=utils.PlotlyJSONEncoder) - assert(j2 == '{"x": ["2014-01-05T00:00:00", ' - '"2014-01-05T01:01:01", ' - '"2014-01-05T01:01:01.000001"]}') + assert ( + j2 == '{"x": ["2014-01-05T00:00:00", ' + '"2014-01-05T01:01:01", ' + '"2014-01-05T01:01:01.000001"]}' + ) def test_pandas_json_encoding(self): - j1 = _json.dumps(df['col 1'], cls=utils.PlotlyJSONEncoder) - print(j1) - print('\n') - assert(j1 == '[1, 2, 3, "2014-01-05T00:00:00", null, null, null]') + j1 = _json.dumps(df["col 1"], cls=utils.PlotlyJSONEncoder) + print (j1) + print ("\n") + assert j1 == '[1, 2, 3, "2014-01-05T00:00:00", null, null, null]' # Test that data wasn't mutated - assert_series_equal(df['col 1'], - pd.Series([1, 2, 3, dt(2014, 1, 5), - pd.NaT, np.NaN, np.Inf], name='col 1')) + assert_series_equal( + df["col 1"], + pd.Series([1, 2, 3, dt(2014, 1, 5), pd.NaT, np.NaN, np.Inf], name="col 1"), + ) j2 = _json.dumps(df.index, cls=utils.PlotlyJSONEncoder) - assert(j2 == '[0, 1, 2, 3, 4, 5, 6]') + assert j2 == "[0, 1, 2, 3, 4, 5, 6]" nat = [pd.NaT] j3 = _json.dumps(nat, cls=utils.PlotlyJSONEncoder) - assert(j3 == '[null]') - assert(nat[0] is pd.NaT) + assert j3 == "[null]" + assert nat[0] is pd.NaT j4 = _json.dumps(rng, cls=utils.PlotlyJSONEncoder) - assert(j4 == '["2011-01-01T00:00:00", "2011-01-01T01:00:00"]') + assert j4 == '["2011-01-01T00:00:00", "2011-01-01T01:00:00"]' j5 = _json.dumps(ts, cls=utils.PlotlyJSONEncoder) - assert(j5 == '[1.5, 2.5]') + assert j5 == "[1.5, 2.5]" assert_series_equal(ts, pd.Series([1.5, 2.5], index=rng)) j6 = _json.dumps(ts.index, cls=utils.PlotlyJSONEncoder) - assert(j6 == '["2011-01-01T00:00:00", "2011-01-01T01:00:00"]') + assert j6 == '["2011-01-01T00:00:00", "2011-01-01T01:00:00"]' def test_numpy_masked_json_encoding(self): l = [1, 2, np.ma.core.masked] j1 = _json.dumps(l, cls=utils.PlotlyJSONEncoder) - print(j1) - assert(j1 == '[1, 2, null]') + print (j1) + assert j1 == "[1, 2, null]" def test_numpy_dates(self): - a = np.arange(np.datetime64('2011-07-11'), np.datetime64('2011-07-18')) + a = np.arange(np.datetime64("2011-07-11"), np.datetime64("2011-07-18")) j1 = _json.dumps(a, cls=utils.PlotlyJSONEncoder) - assert(j1 == '["2011-07-11", "2011-07-12", "2011-07-13", ' - '"2011-07-14", "2011-07-15", "2011-07-16", ' - '"2011-07-17"]') - + assert ( + j1 == '["2011-07-11", "2011-07-12", "2011-07-13", ' + '"2011-07-14", "2011-07-15", "2011-07-16", ' + '"2011-07-17"]' + ) def test_datetime_dot_date(self): a = [datetime.date(2014, 1, 1), datetime.date(2014, 1, 2)] j1 = _json.dumps(a, cls=utils.PlotlyJSONEncoder) - assert(j1 == '["2014-01-01", "2014-01-02"]') + assert j1 == '["2014-01-01", "2014-01-02"]' if matplotlylib: - @attr('matplotlib') + + @attr("matplotlib") def test_masked_constants_example(): # example from: https://gist.github.com/tschaume/d123d56bf586276adb98 data = { - 'esN': [0, 1, 2, 3], - 'ewe_is0': [-398.11901997, -398.11902774, - -398.11897111, -398.11882215], - 'ewe_is1': [-398.11793027, -398.11792966, -398.11786308, None], - 'ewe_is2': [-398.11397008, -398.11396421, None, None] + "esN": [0, 1, 2, 3], + "ewe_is0": [-398.11901997, -398.11902774, -398.11897111, -398.11882215], + "ewe_is1": [-398.11793027, -398.11792966, -398.11786308, None], + "ewe_is2": [-398.11397008, -398.11396421, None, None], } df = pd.DataFrame.from_dict(data) - plotopts = {'x': 'esN'} + plotopts = {"x": "esN"} fig, ax = plt.subplots(1, 1) df.plot(ax=ax, **plotopts) @@ -294,10 +307,9 @@ def test_masked_constants_example(): _json.dumps(renderer.plotly_fig, cls=utils.PlotlyJSONEncoder) - jy = _json.dumps(renderer.plotly_fig['data'][1]['y'], - cls=utils.PlotlyJSONEncoder) - print(jy) + jy = _json.dumps( + renderer.plotly_fig["data"][1]["y"], cls=utils.PlotlyJSONEncoder + ) + print (jy) array = _json.loads(jy) - assert(array == [-398.11793027, -398.11792966, -398.11786308, None]) - - + assert array == [-398.11793027, -398.11792966, -398.11786308, None] diff --git a/packages/python/plotly/plotly/tests/test_orca/test_image_renderers.py b/packages/python/plotly/plotly/tests/test_orca/test_image_renderers.py index afaff69b0dd..b5d3bf3ea2d 100644 --- a/packages/python/plotly/plotly/tests/test_orca/test_image_renderers.py +++ b/packages/python/plotly/plotly/tests/test_orca/test_image_renderers.py @@ -15,32 +15,38 @@ else: import mock -plotly_mimetype = 'application/vnd.plotly.v1+json' +plotly_mimetype = "application/vnd.plotly.v1+json" # fixtures # -------- @pytest.fixture def fig1(request): - return go.Figure(data=[{'type': 'scatter', - 'marker': {'color': 'green'}, - 'y': np.array([2, 1, 3, 2, 4, 2])}], - layout={'title': {'text': 'Figure title'}}) + return go.Figure( + data=[ + { + "type": "scatter", + "marker": {"color": "green"}, + "y": np.array([2, 1, 3, 2, 4, 2]), + } + ], + layout={"title": {"text": "Figure title"}}, + ) def test_png_renderer_mimetype(fig1): - pio.renderers.default = 'png' + pio.renderers.default = "png" # Configure renderer so that we can use the same parameters # to build expected image below - pio.renderers['png'].width = 400 - pio.renderers['png'].height = 500 - pio.renderers['png'].scale = 1 + pio.renderers["png"].width = 400 + pio.renderers["png"].height = 500 + pio.renderers["png"].scale = 1 image_bytes = pio.to_image(fig1, width=400, height=500, scale=1) - image_str = base64.b64encode(image_bytes).decode('utf8') + image_str = base64.b64encode(image_bytes).decode("utf8") - expected = {'image/png': image_str} + expected = {"image/png": image_str} pio.renderers.render_on_display = False assert fig1._repr_mimebundle_(None, None) is None @@ -51,12 +57,12 @@ def test_png_renderer_mimetype(fig1): def test_svg_renderer_show(fig1): - pio.renderers.default = 'svg' - pio.renderers['svg'].width = 400 - pio.renderers['svg'].height = 500 - pio.renderers['svg'].scale = 1 + pio.renderers.default = "svg" + pio.renderers["svg"].width = 400 + pio.renderers["svg"].height = 500 + pio.renderers["svg"].scale = 1 - with mock.patch('IPython.display.display') as mock_display: + with mock.patch("IPython.display.display") as mock_display: pio.show(fig1) # Check call args. @@ -66,14 +72,15 @@ def test_svg_renderer_show(fig1): mock_call_args = mock_display.call_args mock_arg1 = mock_call_args[0][0] - assert list(mock_arg1) == ['image/svg+xml'] - assert mock_arg1['image/svg+xml'].startswith( + assert list(mock_arg1) == ["image/svg+xml"] + assert mock_arg1["image/svg+xml"].startswith( '' + \ - 'Beef ' + topo_df['beef'] + ' Dairy ' + \ - topo_df['dairy'] + '
' + \ - 'Fruits ' + topo_df['total fruits'] + \ - ' Veggies ' + topo_df[ - 'total veggies'] + '
' + \ - 'Wheat ' + topo_df['wheat'] + \ - ' Corn ' + topo_df['corn'] - - data = [dict( - type='choropleth', - colorscale=scl, - autocolorscale=False, - locations=topo_df['code'], - z=topo_df['total exports'].astype(float), - locationmode='USA-states', - text=topo_df['text'], - marker=dict( - line=dict( - color='rgb(255,255,255)', - width=2 - )), - showscale=False, - )] + scl = [ + [0.0, "rgb(242,240,247)"], + [0.2, "rgb(218,218,235)"], + [0.4, "rgb(188,189,220)"], + [0.6, "rgb(158,154,200)"], + [0.8, "rgb(117,107,177)"], + [1.0, "rgb(84,39,143)"], + ] + + topo_df["text"] = ( + topo_df["state"] + + "
" + + "Beef " + + topo_df["beef"] + + " Dairy " + + topo_df["dairy"] + + "
" + + "Fruits " + + topo_df["total fruits"] + + " Veggies " + + topo_df["total veggies"] + + "
" + + "Wheat " + + topo_df["wheat"] + + " Corn " + + topo_df["corn"] + ) + + data = [ + dict( + type="choropleth", + colorscale=scl, + autocolorscale=False, + locations=topo_df["code"], + z=topo_df["total exports"].astype(float), + locationmode="USA-states", + text=topo_df["text"], + marker=dict(line=dict(color="rgb(255,255,255)", width=2)), + showscale=False, + ) + ] layout = dict( geo=dict( - scope='usa', - projection=dict(type='albers usa'), + scope="usa", + projection=dict(type="albers usa"), showlakes=True, - lakecolor='rgb(255, 255, 255)'), - font={'family': 'Arial', 'size': 12}, + lakecolor="rgb(255, 255, 255)", + ), + font={"family": "Arial", "size": 12}, ) yield dict(data=data, layout=layout) - pio.templates.default = 'plotly' + pio.templates.default = "plotly" @pytest.fixture() def latexfig(): pio.templates.default = None - trace1 = go.Scatter( - x=[1, 2, 3, 4], - y=[1, 4, 9, 16], - ) - trace2 = go.Scatter( - x=[1, 2, 3, 4], - y=[0.5, 2, 4.5, 8], - ) + trace1 = go.Scatter(x=[1, 2, 3, 4], y=[1, 4, 9, 16]) + trace2 = go.Scatter(x=[1, 2, 3, 4], y=[0.5, 2, 4.5, 8]) data = [trace1, trace2] layout = go.Layout( xaxis=dict( - title='$\\sqrt{(n_\\text{c}(t|{T_\\text{early}}))}$', - showticklabels=False, - ), - yaxis=dict( - title='$d, r \\text{ (solar radius)}$', - showticklabels=False, + title="$\\sqrt{(n_\\text{c}(t|{T_\\text{early}}))}$", showticklabels=False ), + yaxis=dict(title="$d, r \\text{ (solar radius)}$", showticklabels=False), showlegend=False, - font={'family': 'Arial', 'size': 12} + font={"family": "Arial", "size": 12}, ) fig = go.Figure(data=data, layout=layout) yield fig - pio.templates.default = 'plotly' + pio.templates.default = "plotly" # Utilities @@ -162,20 +167,19 @@ def assert_image_bytes(img_bytes, file_name, _raise=True): expected_img_path = os.path.join(images_dir, file_name) try: - with open(expected_img_path, 'rb') as f: + with open(expected_img_path, "rb") as f: expected = f.read() assert expected == img_bytes except (OSError, AssertionError) as e: failed_path = os.path.join(failed_dir, file_name) - print('Saving failed image to "{failed_path}"' - .format(failed_path=failed_path)) + print ('Saving failed image to "{failed_path}"'.format(failed_path=failed_path)) if not os.path.exists(failed_dir): os.mkdir(failed_dir) - with open(failed_path, 'wb') as f: + with open(failed_path, "wb") as f: f.write(img_bytes) if _raise: @@ -186,28 +190,29 @@ def assert_image_bytes(img_bytes, file_name, _raise=True): # ----- def test_simple_to_image(fig1, format): img_bytes = pio.to_image(fig1, format=format, width=700, height=500) - assert_image_bytes(img_bytes, 'fig1.' + format) + assert_image_bytes(img_bytes, "fig1." + format) def test_to_image_default(fig1, format): pio.orca.config.default_format = format img_bytes = pio.to_image(fig1, width=700, height=500) - assert_image_bytes(img_bytes, 'fig1.' + format) + assert_image_bytes(img_bytes, "fig1." + format) def test_write_image_string(fig1, format): # Build file paths - file_name = 'fig1.' + format + file_name = "fig1." + format file_path = tmp_dir + file_name - pio.write_image(fig1, os.path.join(tmp_dir, file_name), - format=format, width=700, height=500) + pio.write_image( + fig1, os.path.join(tmp_dir, file_name), format=format, width=700, height=500 + ) - with open(file_path, 'rb') as f: + with open(file_path, "rb") as f: written_bytes = f.read() - with open(os.path.join(images_dir, file_name), 'rb') as f: + with open(os.path.join(images_dir, file_name), "rb") as f: expected_bytes = f.read() assert written_bytes == expected_bytes @@ -215,30 +220,28 @@ def test_write_image_string(fig1, format): def test_write_image_writeable(fig1, format): - file_name = 'fig1.' + format - with open(os.path.join(images_dir, file_name), 'rb') as f: + file_name = "fig1." + format + with open(os.path.join(images_dir, file_name), "rb") as f: expected_bytes = f.read() mock_file = MagicMock() - pio.write_image(fig1, mock_file, format=format, - width=700, height=500) + pio.write_image(fig1, mock_file, format=format, width=700, height=500) mock_file.write.assert_called_once_with(expected_bytes) def test_write_image_string_format_inference(fig1, format): # Build file paths - file_name = 'fig1.' + format + file_name = "fig1." + format file_path = os.path.join(tmp_dir, file_name) # Use file extension to infer image type. - pio.write_image(fig1, os.path.join(tmp_dir, file_name), - width=700, height=500) + pio.write_image(fig1, os.path.join(tmp_dir, file_name), width=700, height=500) - with open(file_path, 'rb') as f: + with open(file_path, "rb") as f: written_bytes = f.read() - with open(os.path.join(images_dir, file_name), 'rb') as f: + with open(os.path.join(images_dir, file_name), "rb") as f: expected_bytes = f.read() assert written_bytes == expected_bytes @@ -246,37 +249,37 @@ def test_write_image_string_format_inference(fig1, format): def test_write_image_string_no_extension_failure(fig1): # No extension - file_path = os.path.join(tmp_dir, 'fig1') + file_path = os.path.join(tmp_dir, "fig1") # Use file extension to infer image type. with pytest.raises(ValueError) as err: pio.write_image(fig1, file_path) - assert 'add a file extension or specify the type' in str(err.value) + assert "add a file extension or specify the type" in str(err.value) def test_write_image_string_bad_extension_failure(fig1): # Bad extension - file_path = os.path.join(tmp_dir, 'fig1.bogus') + file_path = os.path.join(tmp_dir, "fig1.bogus") # Use file extension to infer image type. with pytest.raises(ValueError) as err: pio.write_image(fig1, file_path) - assert 'must be specified as one of the following' in str(err.value) + assert "must be specified as one of the following" in str(err.value) def test_write_image_string_bad_extension_override(fig1): # Bad extension - file_name = 'fig1.bogus' + file_name = "fig1.bogus" tmp_path = os.path.join(tmp_dir, file_name) - pio.write_image(fig1, tmp_path, format='eps', width=700, height=500) + pio.write_image(fig1, tmp_path, format="eps", width=700, height=500) - with open(tmp_path, 'rb') as f: + with open(tmp_path, "rb") as f: written_bytes = f.read() - with open(os.path.join(images_dir, 'fig1.eps'), 'rb') as f: + with open(os.path.join(images_dir, "fig1.eps"), "rb") as f: expected_bytes = f.read() assert written_bytes == expected_bytes @@ -286,14 +289,14 @@ def test_write_image_string_bad_extension_override(fig1): # -------- def test_topojson_fig_to_image(topofig, format): img_bytes = pio.to_image(topofig, format=format, width=700, height=500) - assert_image_bytes(img_bytes, 'topofig.' + format) + assert_image_bytes(img_bytes, "topofig." + format) # Latex / MathJax # --------------- def test_latex_fig_to_image(latexfig, format): img_bytes = pio.to_image(latexfig, format=format, width=700, height=500) - assert_image_bytes(img_bytes, 'latexfig.' + format) + assert_image_bytes(img_bytes, "latexfig." + format) # Environmnet variables @@ -301,33 +304,33 @@ def test_latex_fig_to_image(latexfig, format): def test_problematic_environment_variables(fig1, format): pio.orca.config.restore_defaults(reset_server=True) - os.environ['NODE_OPTIONS'] = '--max-old-space-size=4096' - os.environ['ELECTRON_RUN_AS_NODE'] = '1' + os.environ["NODE_OPTIONS"] = "--max-old-space-size=4096" + os.environ["ELECTRON_RUN_AS_NODE"] = "1" # Do image export img_bytes = pio.to_image(fig1, format=format, width=700, height=500) - assert_image_bytes(img_bytes, 'fig1.' + format) + assert_image_bytes(img_bytes, "fig1." + format) # Check that environment variables were restored - assert os.environ['NODE_OPTIONS'] == '--max-old-space-size=4096' - assert os.environ['ELECTRON_RUN_AS_NODE'] == '1' + assert os.environ["NODE_OPTIONS"] == "--max-old-space-size=4096" + assert os.environ["ELECTRON_RUN_AS_NODE"] == "1" # Invalid figure json # ------------------- def test_invalid_figure_json(): # Do image export - bad_fig = {'foo': 'bar'} + bad_fig = {"foo": "bar"} with pytest.raises(ValueError) as err: - pio.to_image(bad_fig, format='png') + pio.to_image(bad_fig, format="png") assert "Invalid" in str(err.value) with pytest.raises(ValueError) as err: - pio.to_image(bad_fig, format='png', validate=False) + pio.to_image(bad_fig, format="png", validate=False) - assert ('The image request was rejected by the orca conversion utility' - in str(err.value)) + assert "The image request was rejected by the orca conversion utility" in str( + err.value + ) - assert ('400: invalid or malformed request syntax' - in str(err.value)) + assert "400: invalid or malformed request syntax" in str(err.value) diff --git a/packages/python/plotly/plotly/tests/utils.py b/packages/python/plotly/plotly/tests/utils.py index 8bd84f747ce..fc0ad0e8c75 100644 --- a/packages/python/plotly/plotly/tests/utils.py +++ b/packages/python/plotly/plotly/tests/utils.py @@ -9,40 +9,42 @@ def setUp(self): pio.templates.default = None def tearDown(self): - pio.templates.default = 'plotly' + pio.templates.default = "plotly" -def compare_dict(dict1, dict2, equivalent=True, msg='', tol=10e-8): +def compare_dict(dict1, dict2, equivalent=True, msg="", tol=10e-8): for key in dict1: if key not in dict2: - return (False, - "{0} should be {1}".format( - list(dict1.keys()), list(dict2.keys()))) + return ( + False, + "{0} should be {1}".format(list(dict1.keys()), list(dict2.keys())), + ) for key in dict1: if isinstance(dict1[key], dict): - equivalent, msg = compare_dict(dict1[key], - dict2[key], - tol=tol) + equivalent, msg = compare_dict(dict1[key], dict2[key], tol=tol) elif isinstance(dict1[key], Num) and isinstance(dict2[key], Num): if not comp_nums(dict1[key], dict2[key], tol): - return False, "['{0}'] = {1} should be {2}".format(key, - dict1[key], - dict2[key]) + return ( + False, + "['{0}'] = {1} should be {2}".format(key, dict1[key], dict2[key]), + ) elif is_num_list(dict1[key]) and is_num_list(dict2[key]): if not comp_num_list(dict1[key], dict2[key], tol): - return False, "['{0}'] = {1} should be {2}".format(key, - dict1[key], - dict2[key]) + return ( + False, + "['{0}'] = {1} should be {2}".format(key, dict1[key], dict2[key]), + ) elif not (dict1[key] == dict2[key]): - return False, "['{0}'] = {1} should be {2}".format(key, - dict1[key], - dict2[key]) + return ( + False, + "['{0}'] = {1} should be {2}".format(key, dict1[key], dict2[key]), + ) if not equivalent: return False, "['{0}']".format(key) + msg return equivalent, msg -def strip_dict_params(d1, d2, ignore=['uid']): +def strip_dict_params(d1, d2, ignore=["uid"]): """ Helper function for assert_dict_equal @@ -55,12 +57,12 @@ def strip_dict_params(d1, d2, ignore=['uid']): they exist """ # deep copy d1 and d2 - if 'to_plotly_json' in dir(d1): + if "to_plotly_json" in dir(d1): d1_copy = copy.deepcopy(d1.to_plotly_json()) else: d1_copy = copy.deepcopy(d1) - if 'to_plotly_json' in dir(d2): + if "to_plotly_json" in dir(d2): d2_copy = copy.deepcopy(d2.to_plotly_json()) else: d2_copy = copy.deepcopy(d2) diff --git a/packages/python/plotly/plotly/tools.py b/packages/python/plotly/plotly/tools.py index 19b8d67e7f9..9aa0c479567 100644 --- a/packages/python/plotly/plotly/tools.py +++ b/packages/python/plotly/plotly/tools.py @@ -19,47 +19,56 @@ from plotly import exceptions, optional_imports from plotly.files import PLOTLY_DIR -DEFAULT_PLOTLY_COLORS = ['rgb(31, 119, 180)', 'rgb(255, 127, 14)', - 'rgb(44, 160, 44)', 'rgb(214, 39, 40)', - 'rgb(148, 103, 189)', 'rgb(140, 86, 75)', - 'rgb(227, 119, 194)', 'rgb(127, 127, 127)', - 'rgb(188, 189, 34)', 'rgb(23, 190, 207)'] - - -REQUIRED_GANTT_KEYS = ['Task', 'Start', 'Finish'] -PLOTLY_SCALES = {'Greys': ['rgb(0,0,0)', 'rgb(255,255,255)'], - 'YlGnBu': ['rgb(8,29,88)', 'rgb(255,255,217)'], - 'Greens': ['rgb(0,68,27)', 'rgb(247,252,245)'], - 'YlOrRd': ['rgb(128,0,38)', 'rgb(255,255,204)'], - 'Bluered': ['rgb(0,0,255)', 'rgb(255,0,0)'], - 'RdBu': ['rgb(5,10,172)', 'rgb(178,10,28)'], - 'Reds': ['rgb(220,220,220)', 'rgb(178,10,28)'], - 'Blues': ['rgb(5,10,172)', 'rgb(220,220,220)'], - 'Picnic': ['rgb(0,0,255)', 'rgb(255,0,0)'], - 'Rainbow': ['rgb(150,0,90)', 'rgb(255,0,0)'], - 'Portland': ['rgb(12,51,131)', 'rgb(217,30,30)'], - 'Jet': ['rgb(0,0,131)', 'rgb(128,0,0)'], - 'Hot': ['rgb(0,0,0)', 'rgb(255,255,255)'], - 'Blackbody': ['rgb(0,0,0)', 'rgb(160,200,255)'], - 'Earth': ['rgb(0,0,130)', 'rgb(255,255,255)'], - 'Electric': ['rgb(0,0,0)', 'rgb(255,250,220)'], - 'Viridis': ['rgb(68,1,84)', 'rgb(253,231,37)']} +DEFAULT_PLOTLY_COLORS = [ + "rgb(31, 119, 180)", + "rgb(255, 127, 14)", + "rgb(44, 160, 44)", + "rgb(214, 39, 40)", + "rgb(148, 103, 189)", + "rgb(140, 86, 75)", + "rgb(227, 119, 194)", + "rgb(127, 127, 127)", + "rgb(188, 189, 34)", + "rgb(23, 190, 207)", +] + + +REQUIRED_GANTT_KEYS = ["Task", "Start", "Finish"] +PLOTLY_SCALES = { + "Greys": ["rgb(0,0,0)", "rgb(255,255,255)"], + "YlGnBu": ["rgb(8,29,88)", "rgb(255,255,217)"], + "Greens": ["rgb(0,68,27)", "rgb(247,252,245)"], + "YlOrRd": ["rgb(128,0,38)", "rgb(255,255,204)"], + "Bluered": ["rgb(0,0,255)", "rgb(255,0,0)"], + "RdBu": ["rgb(5,10,172)", "rgb(178,10,28)"], + "Reds": ["rgb(220,220,220)", "rgb(178,10,28)"], + "Blues": ["rgb(5,10,172)", "rgb(220,220,220)"], + "Picnic": ["rgb(0,0,255)", "rgb(255,0,0)"], + "Rainbow": ["rgb(150,0,90)", "rgb(255,0,0)"], + "Portland": ["rgb(12,51,131)", "rgb(217,30,30)"], + "Jet": ["rgb(0,0,131)", "rgb(128,0,0)"], + "Hot": ["rgb(0,0,0)", "rgb(255,255,255)"], + "Blackbody": ["rgb(0,0,0)", "rgb(160,200,255)"], + "Earth": ["rgb(0,0,130)", "rgb(255,255,255)"], + "Electric": ["rgb(0,0,0)", "rgb(255,250,220)"], + "Viridis": ["rgb(68,1,84)", "rgb(253,231,37)"], +} # color constants for violin plot -DEFAULT_FILLCOLOR = '#1f77b4' -DEFAULT_HISTNORM = 'probability density' -ALTERNATIVE_HISTNORM = 'probability' +DEFAULT_FILLCOLOR = "#1f77b4" +DEFAULT_HISTNORM = "probability density" +ALTERNATIVE_HISTNORM = "probability" # Warning format -def warning_on_one_line(message, category, filename, lineno, - file=None, line=None): - return '%s:%s: %s:\n\n%s\n\n' % (filename, lineno, category.__name__, - message) +def warning_on_one_line(message, category, filename, lineno, file=None, line=None): + return "%s:%s: %s:\n\n%s\n\n" % (filename, lineno, category.__name__, message) + + warnings.formatwarning = warning_on_one_line -ipython_core_display = optional_imports.get_module('IPython.core.display') -sage_salvus = optional_imports.get_module('sage_salvus') +ipython_core_display = optional_imports.get_module("IPython.core.display") +sage_salvus = optional_imports.get_module("sage_salvus") ### mpl-related tools ### @@ -97,7 +106,7 @@ def mpl_to_plotly(fig, resize=False, strip_style=False, verbose=False): renderer.layout -- a plotly layout dictionary renderer.data -- a list of plotly data dictionaries """ - matplotlylib = optional_imports.get_module('plotly.matplotlylib') + matplotlylib = optional_imports.get_module("plotly.matplotlylib") if matplotlylib: renderer = matplotlylib.PlotlyRenderer() matplotlylib.Exporter(renderer).run(fig) @@ -106,18 +115,20 @@ def mpl_to_plotly(fig, resize=False, strip_style=False, verbose=False): if strip_style: renderer.strip_style() if verbose: - print(renderer.msg) + print (renderer.msg) return renderer.plotly_fig else: warnings.warn( "To use Plotly's matplotlylib functionality, you'll need to have " "matplotlib successfully installed with all of its dependencies. " "You're getting this error because matplotlib or one of its " - "dependencies doesn't seem to be installed correctly.") + "dependencies doesn't seem to be installed correctly." + ) ### graph_objs related tools ### + def get_subplots(rows=1, columns=1, print_grid=False, **kwargs): """Return a dictionary instance with the subplots set in 'layout'. @@ -162,31 +173,28 @@ def get_subplots(rows=1, columns=1, print_grid=False, **kwargs): from plotly.graph_objs import graph_objs warnings.warn( - "tools.get_subplots is depreciated. " - "Please use tools.make_subplots instead." + "tools.get_subplots is depreciated. " "Please use tools.make_subplots instead." ) # Throw exception for non-integer rows and columns if not isinstance(rows, int) or rows <= 0: - raise Exception("Keyword argument 'rows' " - "must be an int greater than 0") + raise Exception("Keyword argument 'rows' " "must be an int greater than 0") if not isinstance(columns, int) or columns <= 0: - raise Exception("Keyword argument 'columns' " - "must be an int greater than 0") + raise Exception("Keyword argument 'columns' " "must be an int greater than 0") # Throw exception if non-valid kwarg is sent - VALID_KWARGS = ['horizontal_spacing', 'vertical_spacing'] + VALID_KWARGS = ["horizontal_spacing", "vertical_spacing"] for key in kwargs.keys(): if key not in VALID_KWARGS: raise Exception("Invalid keyword argument: '{0}'".format(key)) # Set 'horizontal_spacing' / 'vertical_spacing' w.r.t. rows / columns try: - horizontal_spacing = float(kwargs['horizontal_spacing']) + horizontal_spacing = float(kwargs["horizontal_spacing"]) except KeyError: horizontal_spacing = 0.2 / columns try: - vertical_spacing = float(kwargs['vertical_spacing']) + vertical_spacing = float(kwargs["vertical_spacing"]) except KeyError: vertical_spacing = 0.3 / rows @@ -196,24 +204,24 @@ def get_subplots(rows=1, columns=1, print_grid=False, **kwargs): plot_num = 0 for rrr in range(rows): for ccc in range(columns): - xaxis_name = 'xaxis{0}'.format(plot_num + 1) - x_anchor = 'y{0}'.format(plot_num + 1) + xaxis_name = "xaxis{0}".format(plot_num + 1) + x_anchor = "y{0}".format(plot_num + 1) x_start = (plot_width + horizontal_spacing) * ccc x_end = x_start + plot_width - yaxis_name = 'yaxis{0}'.format(plot_num + 1) - y_anchor = 'x{0}'.format(plot_num + 1) + yaxis_name = "yaxis{0}".format(plot_num + 1) + y_anchor = "x{0}".format(plot_num + 1) y_start = (plot_height + vertical_spacing) * rrr y_end = y_start + plot_height xaxis = dict(domain=[x_start, x_end], anchor=x_anchor) - fig['layout'][xaxis_name] = xaxis + fig["layout"][xaxis_name] = xaxis yaxis = dict(domain=[y_start, y_end], anchor=y_anchor) - fig['layout'][yaxis_name] = yaxis + fig["layout"][yaxis_name] = yaxis plot_num += 1 if print_grid: - print("This is the format of your plot grid!") + print ("This is the format of your plot grid!") grid_string = "" plot = 1 for rrr in range(rows): @@ -221,16 +229,21 @@ def get_subplots(rows=1, columns=1, print_grid=False, **kwargs): for ccc in range(columns): grid_line += "[{0}]\t".format(plot) plot += 1 - grid_string = grid_line + '\n' + grid_string - print(grid_string) + grid_string = grid_line + "\n" + grid_string + print (grid_string) return graph_objs.Figure(fig) # forces us to validate what we just did... -def make_subplots(rows=1, cols=1, - shared_xaxes=False, shared_yaxes=False, - start_cell='top-left', print_grid=None, - **kwargs): +def make_subplots( + rows=1, + cols=1, + shared_xaxes=False, + shared_yaxes=False, + start_cell="top-left", + print_grid=None, + **kwargs +): """Return an instance of plotly.graph_objs.Figure with the subplots domain set in 'layout'. @@ -444,11 +457,13 @@ def make_subplots(rows=1, cols=1, [0. 0.75] and [0.75, 1] """ import plotly.subplots + warnings.warn( - 'plotly.tools.make_subplots is deprecated, ' - 'please use plotly.subplots.make_subplots instead', + "plotly.tools.make_subplots is deprecated, " + "please use plotly.subplots.make_subplots instead", DeprecationWarning, - stacklevel=1) + stacklevel=1, + ) return plotly.subplots.make_subplots( rows=rows, @@ -462,8 +477,7 @@ def make_subplots(rows=1, cols=1, warnings.filterwarnings( - 'default', r'plotly\.tools\.make_subplots is deprecated', - DeprecationWarning + "default", r"plotly\.tools\.make_subplots is deprecated", DeprecationWarning ) @@ -476,6 +490,7 @@ def get_graph_obj(obj, obj_type=None): """ # TODO: Deprecate or move. #283 from plotly.graph_objs import graph_objs + try: cls = getattr(graph_objs, obj_type) except (AttributeError, KeyError): @@ -498,14 +513,16 @@ def _replace_newline(obj): l += [_replace_newline(entry)] return l elif isinstance(obj, six.string_types): - s = obj.replace('\n', '
') + s = obj.replace("\n", "
") if s != obj: - warnings.warn("Looks like you used a newline character: '\\n'.\n\n" - "Plotly uses a subset of HTML escape characters\n" - "to do things like newline (
), bold (),\n" - "italics (), etc. Your newline characters \n" - "have been converted to '
' so they will show \n" - "up right on your Plotly figure!") + warnings.warn( + "Looks like you used a newline character: '\\n'.\n\n" + "Plotly uses a subset of HTML escape characters\n" + "to do things like newline (
), bold (),\n" + "italics (), etc. Your newline characters \n" + "have been converted to '
' so they will show \n" + "up right on your Plotly figure!" + ) return s else: return obj # we return the actual reference... but DON'T mutate. @@ -519,30 +536,34 @@ def return_figure_from_figure_or_data(figure_or_data, validate_figure): if isinstance(figure_or_data, dict): figure = figure_or_data elif isinstance(figure_or_data, list): - figure = {'data': figure_or_data} + figure = {"data": figure_or_data} elif isinstance(figure_or_data, BaseFigure): figure = figure_or_data.to_dict() validated = True else: - raise exceptions.PlotlyError("The `figure_or_data` positional " - "argument must be " - "`dict`-like, `list`-like, or an instance of plotly.graph_objs.Figure") + raise exceptions.PlotlyError( + "The `figure_or_data` positional " + "argument must be " + "`dict`-like, `list`-like, or an instance of plotly.graph_objs.Figure" + ) if validate_figure and not validated: try: figure = Figure(**figure).to_dict() except exceptions.PlotlyError as err: - raise exceptions.PlotlyError("Invalid 'figure_or_data' argument. " - "Plotly will not be able to properly " - "parse the resulting JSON. If you " - "want to send this 'figure_or_data' " - "to Plotly anyway (not recommended), " - "you can set 'validate=False' as a " - "plot option.\nHere's why you're " - "seeing this error:\n\n{0}" - "".format(err)) - if not figure['data']: + raise exceptions.PlotlyError( + "Invalid 'figure_or_data' argument. " + "Plotly will not be able to properly " + "parse the resulting JSON. If you " + "want to send this 'figure_or_data' " + "to Plotly anyway (not recommended), " + "you can set 'validate=False' as a " + "plot option.\nHere's why you're " + "seeing this error:\n\n{0}" + "".format(err) + ) + if not figure["data"]: raise exceptions.PlotlyEmptyDataError( "Empty data list found. Make sure that you populated the " "list of data objects you're sending and try again.\n" @@ -551,108 +572,122 @@ def return_figure_from_figure_or_data(figure_or_data, validate_figure): return figure + # Default colours for finance charts -_DEFAULT_INCREASING_COLOR = '#3D9970' # http://clrs.cc -_DEFAULT_DECREASING_COLOR = '#FF4136' +_DEFAULT_INCREASING_COLOR = "#3D9970" # http://clrs.cc +_DEFAULT_DECREASING_COLOR = "#FF4136" -DIAG_CHOICES = ['scatter', 'histogram', 'box'] -VALID_COLORMAP_TYPES = ['cat', 'seq'] +DIAG_CHOICES = ["scatter", "histogram", "box"] +VALID_COLORMAP_TYPES = ["cat", "seq"] # Deprecations class FigureFactory(object): - @staticmethod def _deprecated(old_method, new_method=None): if new_method is None: # The method name stayed the same. new_method = old_method warnings.warn( - 'plotly.tools.FigureFactory.{} is deprecated. ' - 'Use plotly.figure_factory.{}'.format(old_method, new_method) + "plotly.tools.FigureFactory.{} is deprecated. " + "Use plotly.figure_factory.{}".format(old_method, new_method) ) @staticmethod def create_2D_density(*args, **kwargs): - FigureFactory._deprecated('create_2D_density', 'create_2d_density') + FigureFactory._deprecated("create_2D_density", "create_2d_density") from plotly.figure_factory import create_2d_density + return create_2d_density(*args, **kwargs) @staticmethod def create_annotated_heatmap(*args, **kwargs): - FigureFactory._deprecated('create_annotated_heatmap') + FigureFactory._deprecated("create_annotated_heatmap") from plotly.figure_factory import create_annotated_heatmap + return create_annotated_heatmap(*args, **kwargs) @staticmethod def create_candlestick(*args, **kwargs): - FigureFactory._deprecated('create_candlestick') + FigureFactory._deprecated("create_candlestick") from plotly.figure_factory import create_candlestick + return create_candlestick(*args, **kwargs) @staticmethod def create_dendrogram(*args, **kwargs): - FigureFactory._deprecated('create_dendrogram') + FigureFactory._deprecated("create_dendrogram") from plotly.figure_factory import create_dendrogram + return create_dendrogram(*args, **kwargs) @staticmethod def create_distplot(*args, **kwargs): - FigureFactory._deprecated('create_distplot') + FigureFactory._deprecated("create_distplot") from plotly.figure_factory import create_distplot + return create_distplot(*args, **kwargs) @staticmethod def create_facet_grid(*args, **kwargs): - FigureFactory._deprecated('create_facet_grid') + FigureFactory._deprecated("create_facet_grid") from plotly.figure_factory import create_facet_grid + return create_facet_grid(*args, **kwargs) @staticmethod def create_gantt(*args, **kwargs): - FigureFactory._deprecated('create_gantt') + FigureFactory._deprecated("create_gantt") from plotly.figure_factory import create_gantt + return create_gantt(*args, **kwargs) @staticmethod def create_ohlc(*args, **kwargs): - FigureFactory._deprecated('create_ohlc') + FigureFactory._deprecated("create_ohlc") from plotly.figure_factory import create_ohlc + return create_ohlc(*args, **kwargs) @staticmethod def create_quiver(*args, **kwargs): - FigureFactory._deprecated('create_quiver') + FigureFactory._deprecated("create_quiver") from plotly.figure_factory import create_quiver + return create_quiver(*args, **kwargs) @staticmethod def create_scatterplotmatrix(*args, **kwargs): - FigureFactory._deprecated('create_scatterplotmatrix') + FigureFactory._deprecated("create_scatterplotmatrix") from plotly.figure_factory import create_scatterplotmatrix + return create_scatterplotmatrix(*args, **kwargs) @staticmethod def create_streamline(*args, **kwargs): - FigureFactory._deprecated('create_streamline') + FigureFactory._deprecated("create_streamline") from plotly.figure_factory import create_streamline + return create_streamline(*args, **kwargs) @staticmethod def create_table(*args, **kwargs): - FigureFactory._deprecated('create_table') + FigureFactory._deprecated("create_table") from plotly.figure_factory import create_table + return create_table(*args, **kwargs) @staticmethod def create_trisurf(*args, **kwargs): - FigureFactory._deprecated('create_trisurf') + FigureFactory._deprecated("create_trisurf") from plotly.figure_factory import create_trisurf + return create_trisurf(*args, **kwargs) @staticmethod def create_violin(*args, **kwargs): - FigureFactory._deprecated('create_violin') + FigureFactory._deprecated("create_violin") from plotly.figure_factory import create_violin + return create_violin(*args, **kwargs) @@ -668,10 +703,10 @@ def get_config_plotly_server_url(): str """ config_file = os.path.join(PLOTLY_DIR, ".config") - default_server_url = 'https://plot.ly' + default_server_url = "https://plot.ly" if not os.path.exists(config_file): return default_server_url - with open(config_file, 'rt') as f: + with open(config_file, "rt") as f: try: config_dict = json.load(f) if not isinstance(config_dict, dict): @@ -680,4 +715,4 @@ def get_config_plotly_server_url(): # TODO: issue a warning and bubble it up config_dict = {} - return config_dict.get('plotly_domain', default_server_url) + return config_dict.get("plotly_domain", default_server_url) diff --git a/packages/python/plotly/plotly/utils.py b/packages/python/plotly/plotly/utils.py index b830aef95ca..5ce9c3765fb 100644 --- a/packages/python/plotly/plotly/utils.py +++ b/packages/python/plotly/plotly/utils.py @@ -26,24 +26,27 @@ def _list_repr_elided(v, threshold=200, edgeitems=3, indent=0, width=80): str """ if isinstance(v, list): - open_char, close_char = '[', ']' + open_char, close_char = "[", "]" elif isinstance(v, tuple): - open_char, close_char = '(', ')' + open_char, close_char = "(", ")" else: - raise ValueError('Invalid value of type: %s' % type(v)) + raise ValueError("Invalid value of type: %s" % type(v)) if len(v) <= threshold: disp_v = v else: - disp_v = (list(v[:edgeitems]) - + ['...'] + - list(v[-edgeitems:])) - - v_str = open_char + ', '.join([str(e) for e in disp_v]) + close_char - - v_wrapped = '\n'.join(textwrap.wrap(v_str, width=width, - initial_indent=' ' * (indent + 1), - subsequent_indent =' ' * (indent + 1))).strip() + disp_v = list(v[:edgeitems]) + ["..."] + list(v[-edgeitems:]) + + v_str = open_char + ", ".join([str(e) for e in disp_v]) + close_char + + v_wrapped = "\n".join( + textwrap.wrap( + v_str, + width=width, + initial_indent=" " * (indent + 1), + subsequent_indent=" " * (indent + 1), + ) + ).strip() return v_wrapped @@ -53,6 +56,7 @@ class ElidedWrapper(object): __repr__() that may be elided and is suitable for use during pretty printing """ + def __init__(self, v, threshold, indent): self.v = v self.indent = indent @@ -60,10 +64,8 @@ def __init__(self, v, threshold, indent): @staticmethod def is_wrappable(v): - numpy = get_module('numpy') - if (isinstance(v, (list, tuple)) and - len(v) > 0 and - not isinstance(v[0], dict)): + numpy = get_module("numpy") + if isinstance(v, (list, tuple)) and len(v) > 0 and not isinstance(v[0], dict): return True elif numpy and isinstance(v, numpy.ndarray): return True @@ -73,12 +75,12 @@ def is_wrappable(v): return False def __repr__(self): - numpy = get_module('numpy') + numpy = get_module("numpy") if isinstance(self.v, (list, tuple)): # Handle lists/tuples - res = _list_repr_elided(self.v, - threshold=self.threshold, - indent=self.indent) + res = _list_repr_elided( + self.v, threshold=self.threshold, indent=self.indent + ) return res elif numpy and isinstance(self.v, numpy.ndarray): # Handle numpy arrays @@ -88,16 +90,14 @@ def __repr__(self): # Set threshold to self.max_list_elements numpy.set_printoptions( - **dict(orig_opts, - threshold=self.threshold, - edgeitems=3, - linewidth=80)) + **dict(orig_opts, threshold=self.threshold, edgeitems=3, linewidth=80) + ) res = self.v.__repr__() # Add indent to all but the first line - res_lines = res.split('\n') - res = ('\n' + ' '*self.indent).join(res_lines) + res_lines = res.split("\n") + res = ("\n" + " " * self.indent).join(res_lines) # Restore print opts numpy.set_printoptions(**orig_opts) @@ -105,8 +105,7 @@ def __repr__(self): elif isinstance(self.v, str): # Handle strings if len(self.v) > 80: - return ('(' + repr(self.v[:30]) + - ' ... ' + repr(self.v[-30:]) + ')') + return "(" + repr(self.v[:30]) + " ... " + repr(self.v[-30:]) + ")" else: return self.v.__repr__() else: @@ -117,20 +116,20 @@ class ElidedPrettyPrinter(PrettyPrinter): """ PrettyPrinter subclass that elides long lists/arrays/strings """ + def __init__(self, *args, **kwargs): - self.threshold = kwargs.pop('threshold', 200) + self.threshold = kwargs.pop("threshold", 200) PrettyPrinter.__init__(self, *args, **kwargs) def _format(self, val, stream, indent, allowance, context, level): if ElidedWrapper.is_wrappable(val): - elided_val = ElidedWrapper( - val, self.threshold, indent) + elided_val = ElidedWrapper(val, self.threshold, indent) - return self._format( - elided_val, stream, indent, allowance, context, level) + return self._format(elided_val, stream, indent, allowance, context, level) else: return PrettyPrinter._format( - self, val, stream, indent, allowance, context, level) + self, val, stream, indent, allowance, context, level + ) def node_generator(node, path=()): @@ -162,7 +161,7 @@ def node_generator(node, path=()): yield node, path for key, val in node.items(): if isinstance(val, dict): - for item in node_generator(val, path + (key, )): + for item in node_generator(val, path + (key,)): yield item diff --git a/packages/python/plotly/plotly/validators/__init__.py b/packages/python/plotly/plotly/validators/__init__.py index 20cc1b2eebd..3591e5e18c6 100644 --- a/packages/python/plotly/plotly/validators/__init__.py +++ b/packages/python/plotly/plotly/validators/__init__.py @@ -1,17 +1,15 @@ - - import _plotly_utils.basevalidators class LayoutValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='layout', parent_name='', **kwargs): + def __init__(self, plotly_name="layout", parent_name="", **kwargs): super(LayoutValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Layout'), + data_class_str=kwargs.pop("data_class_str", "Layout"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ angularaxis plotly.graph_objs.layout.AngularAxis instance or dict with compatible properties @@ -454,7 +452,7 @@ def __init__(self, plotly_name='layout', parent_name='', **kwargs): yaxis plotly.graph_objs.layout.YAxis instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -464,14 +462,14 @@ def __init__(self, plotly_name='layout', parent_name='', **kwargs): class WaterfallValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='waterfall', parent_name='', **kwargs): + def __init__(self, plotly_name="waterfall", parent_name="", **kwargs): super(WaterfallValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Waterfall'), + data_class_str=kwargs.pop("data_class_str", "Waterfall"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ alignmentgroup Set several traces linked to the same position axis or matching axes to the same @@ -751,7 +749,7 @@ def __init__(self, plotly_name='waterfall', parent_name='', **kwargs): refer to `layout.yaxis2`, and so on. ysrc Sets the source reference on plot.ly for y . -""" +""", ), **kwargs ) @@ -761,14 +759,14 @@ def __init__(self, plotly_name='waterfall', parent_name='', **kwargs): class VolumeValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='volume', parent_name='', **kwargs): + def __init__(self, plotly_name="volume", parent_name="", **kwargs): super(VolumeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Volume'), + data_class_str=kwargs.pop("data_class_str", "Volume"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -1028,7 +1026,7 @@ def __init__(self, plotly_name='volume', parent_name='', **kwargs): axis. zsrc Sets the source reference on plot.ly for z . -""" +""", ), **kwargs ) @@ -1038,14 +1036,14 @@ def __init__(self, plotly_name='volume', parent_name='', **kwargs): class ViolinValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='violin', parent_name='', **kwargs): + def __init__(self, plotly_name="violin", parent_name="", **kwargs): super(ViolinValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Violin'), + data_class_str=kwargs.pop("data_class_str", "Violin"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ alignmentgroup Set several traces linked to the same position axis or matching axes to the same @@ -1331,7 +1329,7 @@ def __init__(self, plotly_name='violin', parent_name='', **kwargs): refer to `layout.yaxis2`, and so on. ysrc Sets the source reference on plot.ly for y . -""" +""", ), **kwargs ) @@ -1341,14 +1339,14 @@ def __init__(self, plotly_name='violin', parent_name='', **kwargs): class TableValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='table', parent_name='', **kwargs): + def __init__(self, plotly_name="table", parent_name="", **kwargs): super(TableValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Table'), + data_class_str=kwargs.pop("data_class_str", "Table"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ cells plotly.graph_objs.table.Cells instance or dict with compatible properties @@ -1456,7 +1454,7 @@ def __init__(self, plotly_name='table', parent_name='', **kwargs): visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). -""" +""", ), **kwargs ) @@ -1466,14 +1464,14 @@ def __init__(self, plotly_name='table', parent_name='', **kwargs): class SurfaceValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='surface', parent_name='', **kwargs): + def __init__(self, plotly_name="surface", parent_name="", **kwargs): super(SurfaceValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Surface'), + data_class_str=kwargs.pop("data_class_str", "Surface"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -1715,7 +1713,7 @@ def __init__(self, plotly_name='surface', parent_name='', **kwargs): data. zsrc Sets the source reference on plot.ly for z . -""" +""", ), **kwargs ) @@ -1725,14 +1723,14 @@ def __init__(self, plotly_name='surface', parent_name='', **kwargs): class SunburstValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='sunburst', parent_name='', **kwargs): + def __init__(self, plotly_name="sunburst", parent_name="", **kwargs): super(SunburstValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Sunburst'), + data_class_str=kwargs.pop("data_class_str", "Sunburst"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ branchvalues Determines how the items in `values` are summed. When set to "total", items in `values` @@ -1925,7 +1923,7 @@ def __init__(self, plotly_name='sunburst', parent_name='', **kwargs): visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). -""" +""", ), **kwargs ) @@ -1935,14 +1933,14 @@ def __init__(self, plotly_name='sunburst', parent_name='', **kwargs): class StreamtubeValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='streamtube', parent_name='', **kwargs): + def __init__(self, plotly_name="streamtube", parent_name="", **kwargs): super(StreamtubeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Streamtube'), + data_class_str=kwargs.pop("data_class_str", "Streamtube"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -2178,7 +2176,7 @@ def __init__(self, plotly_name='streamtube', parent_name='', **kwargs): Sets the z coordinates of the vector field. zsrc Sets the source reference on plot.ly for z . -""" +""", ), **kwargs ) @@ -2188,14 +2186,14 @@ def __init__(self, plotly_name='streamtube', parent_name='', **kwargs): class SplomValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='splom', parent_name='', **kwargs): + def __init__(self, plotly_name="splom", parent_name="", **kwargs): super(SplomValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Splom'), + data_class_str=kwargs.pop("data_class_str", "Splom"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ customdata Assigns extra data each datum. This may be useful when listening to hover, click and @@ -2379,7 +2377,7 @@ def __init__(self, plotly_name='splom', parent_name='', **kwargs): `showupperhalf` or `showlowerhalf` is false, this splom trace will generate one less x-axis and one less y-axis. -""" +""", ), **kwargs ) @@ -2389,14 +2387,14 @@ def __init__(self, plotly_name='splom', parent_name='', **kwargs): class ScatterternaryValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='scatterternary', parent_name='', **kwargs): + def __init__(self, plotly_name="scatterternary", parent_name="", **kwargs): super(ScatterternaryValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scatterternary'), + data_class_str=kwargs.pop("data_class_str", "Scatterternary"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ a Sets the quantity of component `a` in each data point. If `a`, `b`, and `c` are all provided, @@ -2645,7 +2643,7 @@ def __init__(self, plotly_name='scatterternary', parent_name='', **kwargs): visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). -""" +""", ), **kwargs ) @@ -2655,14 +2653,14 @@ def __init__(self, plotly_name='scatterternary', parent_name='', **kwargs): class ScatterpolarglValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='scatterpolargl', parent_name='', **kwargs): + def __init__(self, plotly_name="scatterpolargl", parent_name="", **kwargs): super(ScatterpolarglValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scatterpolargl'), + data_class_str=kwargs.pop("data_class_str", "Scatterpolargl"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ connectgaps Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are @@ -2905,7 +2903,7 @@ def __init__(self, plotly_name='scatterpolargl', parent_name='', **kwargs): visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). -""" +""", ), **kwargs ) @@ -2915,14 +2913,14 @@ def __init__(self, plotly_name='scatterpolargl', parent_name='', **kwargs): class ScatterpolarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='scatterpolar', parent_name='', **kwargs): + def __init__(self, plotly_name="scatterpolar", parent_name="", **kwargs): super(ScatterpolarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scatterpolar'), + data_class_str=kwargs.pop("data_class_str", "Scatterpolar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ cliponaxis Determines whether or not markers and text nodes are clipped about the subplot axes. To @@ -3164,7 +3162,7 @@ def __init__(self, plotly_name='scatterpolar', parent_name='', **kwargs): visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). -""" +""", ), **kwargs ) @@ -3174,14 +3172,14 @@ def __init__(self, plotly_name='scatterpolar', parent_name='', **kwargs): class ScattermapboxValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='scattermapbox', parent_name='', **kwargs): + def __init__(self, plotly_name="scattermapbox", parent_name="", **kwargs): super(ScattermapboxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scattermapbox'), + data_class_str=kwargs.pop("data_class_str", "Scattermapbox"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ connectgaps Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are @@ -3386,7 +3384,7 @@ def __init__(self, plotly_name='scattermapbox', parent_name='', **kwargs): visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). -""" +""", ), **kwargs ) @@ -3396,14 +3394,14 @@ def __init__(self, plotly_name='scattermapbox', parent_name='', **kwargs): class ScatterglValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='scattergl', parent_name='', **kwargs): + def __init__(self, plotly_name="scattergl", parent_name="", **kwargs): super(ScatterglValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scattergl'), + data_class_str=kwargs.pop("data_class_str", "Scattergl"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ connectgaps Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are @@ -3654,7 +3652,7 @@ def __init__(self, plotly_name='scattergl', parent_name='', **kwargs): data. ysrc Sets the source reference on plot.ly for y . -""" +""", ), **kwargs ) @@ -3664,14 +3662,14 @@ def __init__(self, plotly_name='scattergl', parent_name='', **kwargs): class ScattergeoValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='scattergeo', parent_name='', **kwargs): + def __init__(self, plotly_name="scattergeo", parent_name="", **kwargs): super(ScattergeoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scattergeo'), + data_class_str=kwargs.pop("data_class_str", "Scattergeo"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ connectgaps Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are @@ -3892,7 +3890,7 @@ def __init__(self, plotly_name='scattergeo', parent_name='', **kwargs): visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). -""" +""", ), **kwargs ) @@ -3902,14 +3900,14 @@ def __init__(self, plotly_name='scattergeo', parent_name='', **kwargs): class ScattercarpetValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='scattercarpet', parent_name='', **kwargs): + def __init__(self, plotly_name="scattercarpet", parent_name="", **kwargs): super(ScattercarpetValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scattercarpet'), + data_class_str=kwargs.pop("data_class_str", "Scattercarpet"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ a Sets the a-axis coordinates. asrc @@ -4136,7 +4134,7 @@ def __init__(self, plotly_name='scattercarpet', parent_name='', **kwargs): (the default value), the y coordinates refer to `layout.yaxis`. If "y2", the y coordinates refer to `layout.yaxis2`, and so on. -""" +""", ), **kwargs ) @@ -4146,14 +4144,14 @@ def __init__(self, plotly_name='scattercarpet', parent_name='', **kwargs): class Scatter3dValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='scatter3d', parent_name='', **kwargs): + def __init__(self, plotly_name="scatter3d", parent_name="", **kwargs): super(Scatter3dValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scatter3d'), + data_class_str=kwargs.pop("data_class_str", "Scatter3d"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ connectgaps Determines whether or not gaps (i.e. {nan} or missing values) in the provided data arrays are @@ -4365,7 +4363,7 @@ def __init__(self, plotly_name='scatter3d', parent_name='', **kwargs): data. zsrc Sets the source reference on plot.ly for z . -""" +""", ), **kwargs ) @@ -4375,14 +4373,14 @@ def __init__(self, plotly_name='scatter3d', parent_name='', **kwargs): class ScatterValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='scatter', parent_name='', **kwargs): + def __init__(self, plotly_name="scatter", parent_name="", **kwargs): super(ScatterValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scatter'), + data_class_str=kwargs.pop("data_class_str", "Scatter"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ cliponaxis Determines whether or not markers and text nodes are clipped about the subplot axes. To @@ -4717,7 +4715,7 @@ def __init__(self, plotly_name='scatter', parent_name='', **kwargs): data. ysrc Sets the source reference on plot.ly for y . -""" +""", ), **kwargs ) @@ -4727,14 +4725,14 @@ def __init__(self, plotly_name='scatter', parent_name='', **kwargs): class SankeyValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='sankey', parent_name='', **kwargs): + def __init__(self, plotly_name="sankey", parent_name="", **kwargs): super(SankeyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Sankey'), + data_class_str=kwargs.pop("data_class_str", "Sankey"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ arrangement If value is `snap` (the default), the node arrangement is assisted by automatic snapping @@ -4855,7 +4853,7 @@ def __init__(self, plotly_name='sankey', parent_name='', **kwargs): visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). -""" +""", ), **kwargs ) @@ -4865,14 +4863,14 @@ def __init__(self, plotly_name='sankey', parent_name='', **kwargs): class PointcloudValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='pointcloud', parent_name='', **kwargs): + def __init__(self, plotly_name="pointcloud", parent_name="", **kwargs): super(PointcloudValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Pointcloud'), + data_class_str=kwargs.pop("data_class_str", "Pointcloud"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ customdata Assigns extra data each datum. This may be useful when listening to hover, click and @@ -5037,7 +5035,7 @@ def __init__(self, plotly_name='pointcloud', parent_name='', **kwargs): ybounds . ysrc Sets the source reference on plot.ly for y . -""" +""", ), **kwargs ) @@ -5047,14 +5045,14 @@ def __init__(self, plotly_name='pointcloud', parent_name='', **kwargs): class PieValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='pie', parent_name='', **kwargs): + def __init__(self, plotly_name="pie", parent_name="", **kwargs): super(PieValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Pie'), + data_class_str=kwargs.pop("data_class_str", "Pie"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ customdata Assigns extra data each datum. This may be useful when listening to hover, click and @@ -5276,7 +5274,7 @@ def __init__(self, plotly_name='pie', parent_name='', **kwargs): visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). -""" +""", ), **kwargs ) @@ -5286,14 +5284,14 @@ def __init__(self, plotly_name='pie', parent_name='', **kwargs): class ParcoordsValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='parcoords', parent_name='', **kwargs): + def __init__(self, plotly_name="parcoords", parent_name="", **kwargs): super(ParcoordsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Parcoords'), + data_class_str=kwargs.pop("data_class_str", "Parcoords"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ customdata Assigns extra data each datum. This may be useful when listening to hover, click and @@ -5385,7 +5383,7 @@ def __init__(self, plotly_name='parcoords', parent_name='', **kwargs): visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). -""" +""", ), **kwargs ) @@ -5395,14 +5393,14 @@ def __init__(self, plotly_name='parcoords', parent_name='', **kwargs): class ParcatsValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='parcats', parent_name='', **kwargs): + def __init__(self, plotly_name="parcats", parent_name="", **kwargs): super(ParcatsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Parcats'), + data_class_str=kwargs.pop("data_class_str", "Parcats"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ arrangement Sets the drag interaction mode for categories and dimensions. If `perpendicular`, the @@ -5534,7 +5532,7 @@ def __init__(self, plotly_name='parcats', parent_name='', **kwargs): visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). -""" +""", ), **kwargs ) @@ -5544,14 +5542,14 @@ def __init__(self, plotly_name='parcats', parent_name='', **kwargs): class OhlcValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='ohlc', parent_name='', **kwargs): + def __init__(self, plotly_name="ohlc", parent_name="", **kwargs): super(OhlcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Ohlc'), + data_class_str=kwargs.pop("data_class_str", "Ohlc"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ close Sets the close values. closesrc @@ -5717,7 +5715,7 @@ def __init__(self, plotly_name='ohlc', parent_name='', **kwargs): (the default value), the y coordinates refer to `layout.yaxis`. If "y2", the y coordinates refer to `layout.yaxis2`, and so on. -""" +""", ), **kwargs ) @@ -5727,14 +5725,14 @@ def __init__(self, plotly_name='ohlc', parent_name='', **kwargs): class Mesh3dValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='mesh3d', parent_name='', **kwargs): + def __init__(self, plotly_name="mesh3d", parent_name="", **kwargs): super(Mesh3dValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Mesh3d'), + data_class_str=kwargs.pop("data_class_str", "Mesh3d"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ alphahull Determines how the mesh surface triangles are derived from the set of vertices (points) @@ -6064,7 +6062,7 @@ def __init__(self, plotly_name='mesh3d', parent_name='', **kwargs): data. zsrc Sets the source reference on plot.ly for z . -""" +""", ), **kwargs ) @@ -6074,14 +6072,14 @@ def __init__(self, plotly_name='mesh3d', parent_name='', **kwargs): class IsosurfaceValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='isosurface', parent_name='', **kwargs): + def __init__(self, plotly_name="isosurface", parent_name="", **kwargs): super(IsosurfaceValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Isosurface'), + data_class_str=kwargs.pop("data_class_str", "Isosurface"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -6328,7 +6326,7 @@ def __init__(self, plotly_name='isosurface', parent_name='', **kwargs): axis. zsrc Sets the source reference on plot.ly for z . -""" +""", ), **kwargs ) @@ -6337,19 +6335,15 @@ def __init__(self, plotly_name='isosurface', parent_name='', **kwargs): import _plotly_utils.basevalidators -class Histogram2dContourValidator( - _plotly_utils.basevalidators.CompoundValidator -): - - def __init__( - self, plotly_name='histogram2dcontour', parent_name='', **kwargs - ): +class Histogram2dContourValidator(_plotly_utils.basevalidators.CompoundValidator): + def __init__(self, plotly_name="histogram2dcontour", parent_name="", **kwargs): super(Histogram2dContourValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Histogram2dContour'), + data_class_str=kwargs.pop("data_class_str", "Histogram2dContour"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autobinx Obsolete: since v1.42 each bin attribute is auto-determined separately and `autobinx` is @@ -6665,7 +6659,7 @@ def __init__( set, `zmax` must be set as well. zsrc Sets the source reference on plot.ly for z . -""" +""", ), **kwargs ) @@ -6675,14 +6669,14 @@ def __init__( class Histogram2dValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='histogram2d', parent_name='', **kwargs): + def __init__(self, plotly_name="histogram2d", parent_name="", **kwargs): super(Histogram2dValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Histogram2d'), + data_class_str=kwargs.pop("data_class_str", "Histogram2d"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autobinx Obsolete: since v1.42 each bin attribute is auto-determined separately and `autobinx` is @@ -6981,7 +6975,7 @@ def __init__(self, plotly_name='histogram2d', parent_name='', **kwargs): data. zsrc Sets the source reference on plot.ly for z . -""" +""", ), **kwargs ) @@ -6991,14 +6985,14 @@ def __init__(self, plotly_name='histogram2d', parent_name='', **kwargs): class HistogramValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='histogram', parent_name='', **kwargs): + def __init__(self, plotly_name="histogram", parent_name="", **kwargs): super(HistogramValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Histogram'), + data_class_str=kwargs.pop("data_class_str", "Histogram"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ alignmentgroup Set several traces linked to the same position axis or matching axes to the same @@ -7266,7 +7260,7 @@ def __init__(self, plotly_name='histogram', parent_name='', **kwargs): data. ysrc Sets the source reference on plot.ly for y . -""" +""", ), **kwargs ) @@ -7276,14 +7270,14 @@ def __init__(self, plotly_name='histogram', parent_name='', **kwargs): class HeatmapglValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='heatmapgl', parent_name='', **kwargs): + def __init__(self, plotly_name="heatmapgl", parent_name="", **kwargs): super(HeatmapglValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Heatmapgl'), + data_class_str=kwargs.pop("data_class_str", "Heatmapgl"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -7488,7 +7482,7 @@ def __init__(self, plotly_name='heatmapgl', parent_name='', **kwargs): set, `zmax` must be set as well. zsrc Sets the source reference on plot.ly for z . -""" +""", ), **kwargs ) @@ -7498,14 +7492,14 @@ def __init__(self, plotly_name='heatmapgl', parent_name='', **kwargs): class HeatmapValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='heatmap', parent_name='', **kwargs): + def __init__(self, plotly_name="heatmap", parent_name="", **kwargs): super(HeatmapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Heatmap'), + data_class_str=kwargs.pop("data_class_str", "Heatmap"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -7763,7 +7757,7 @@ def __init__(self, plotly_name='heatmap', parent_name='', **kwargs): data. zsrc Sets the source reference on plot.ly for z . -""" +""", ), **kwargs ) @@ -7773,14 +7767,14 @@ def __init__(self, plotly_name='heatmap', parent_name='', **kwargs): class FunnelareaValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='funnelarea', parent_name='', **kwargs): + def __init__(self, plotly_name="funnelarea", parent_name="", **kwargs): super(FunnelareaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Funnelarea'), + data_class_str=kwargs.pop("data_class_str", "Funnelarea"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ aspectratio Sets the ratio between height and width baseratio @@ -7972,7 +7966,7 @@ def __init__(self, plotly_name='funnelarea', parent_name='', **kwargs): visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). -""" +""", ), **kwargs ) @@ -7982,14 +7976,14 @@ def __init__(self, plotly_name='funnelarea', parent_name='', **kwargs): class FunnelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='funnel', parent_name='', **kwargs): + def __init__(self, plotly_name="funnel", parent_name="", **kwargs): super(FunnelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Funnel'), + data_class_str=kwargs.pop("data_class_str", "Funnel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ alignmentgroup Set several traces linked to the same position axis or matching axes to the same @@ -8249,7 +8243,7 @@ def __init__(self, plotly_name='funnel', parent_name='', **kwargs): refer to `layout.yaxis2`, and so on. ysrc Sets the source reference on plot.ly for y . -""" +""", ), **kwargs ) @@ -8259,14 +8253,14 @@ def __init__(self, plotly_name='funnel', parent_name='', **kwargs): class ContourcarpetValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='contourcarpet', parent_name='', **kwargs): + def __init__(self, plotly_name="contourcarpet", parent_name="", **kwargs): super(ContourcarpetValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Contourcarpet'), + data_class_str=kwargs.pop("data_class_str", "Contourcarpet"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ a Sets the x coordinates. a0 @@ -8510,7 +8504,7 @@ def __init__(self, plotly_name='contourcarpet', parent_name='', **kwargs): set, `zmax` must be set as well. zsrc Sets the source reference on plot.ly for z . -""" +""", ), **kwargs ) @@ -8520,14 +8514,14 @@ def __init__(self, plotly_name='contourcarpet', parent_name='', **kwargs): class ContourValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='contour', parent_name='', **kwargs): + def __init__(self, plotly_name="contour", parent_name="", **kwargs): super(ContourValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Contour'), + data_class_str=kwargs.pop("data_class_str", "Contour"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -8807,7 +8801,7 @@ def __init__(self, plotly_name='contour', parent_name='', **kwargs): set, `zmax` must be set as well. zsrc Sets the source reference on plot.ly for z . -""" +""", ), **kwargs ) @@ -8817,14 +8811,14 @@ def __init__(self, plotly_name='contour', parent_name='', **kwargs): class ConeValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='cone', parent_name='', **kwargs): + def __init__(self, plotly_name="cone", parent_name="", **kwargs): super(ConeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Cone'), + data_class_str=kwargs.pop("data_class_str", "Cone"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ anchor Sets the cones' anchor with respect to their x/y/z positions. Note that "cm" denote the @@ -9081,7 +9075,7 @@ def __init__(self, plotly_name='cone', parent_name='', **kwargs): of the displayed cones. zsrc Sets the source reference on plot.ly for z . -""" +""", ), **kwargs ) @@ -9091,14 +9085,14 @@ def __init__(self, plotly_name='cone', parent_name='', **kwargs): class ChoroplethValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='choropleth', parent_name='', **kwargs): + def __init__(self, plotly_name="choropleth", parent_name="", **kwargs): super(ChoroplethValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Choropleth'), + data_class_str=kwargs.pop("data_class_str", "Choropleth"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -9316,7 +9310,7 @@ def __init__(self, plotly_name='choropleth', parent_name='', **kwargs): set, `zmax` must be set as well. zsrc Sets the source reference on plot.ly for z . -""" +""", ), **kwargs ) @@ -9326,14 +9320,14 @@ def __init__(self, plotly_name='choropleth', parent_name='', **kwargs): class CarpetValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='carpet', parent_name='', **kwargs): + def __init__(self, plotly_name="carpet", parent_name="", **kwargs): super(CarpetValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Carpet'), + data_class_str=kwargs.pop("data_class_str", "Carpet"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ a An array containing values of the first parameter value @@ -9489,7 +9483,7 @@ def __init__(self, plotly_name='carpet', parent_name='', **kwargs): refer to `layout.yaxis2`, and so on. ysrc Sets the source reference on plot.ly for y . -""" +""", ), **kwargs ) @@ -9499,14 +9493,14 @@ def __init__(self, plotly_name='carpet', parent_name='', **kwargs): class CandlestickValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='candlestick', parent_name='', **kwargs): + def __init__(self, plotly_name="candlestick", parent_name="", **kwargs): super(CandlestickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Candlestick'), + data_class_str=kwargs.pop("data_class_str", "Candlestick"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ close Sets the close values. closesrc @@ -9673,7 +9667,7 @@ def __init__(self, plotly_name='candlestick', parent_name='', **kwargs): (the default value), the y coordinates refer to `layout.yaxis`. If "y2", the y coordinates refer to `layout.yaxis2`, and so on. -""" +""", ), **kwargs ) @@ -9683,14 +9677,14 @@ def __init__(self, plotly_name='candlestick', parent_name='', **kwargs): class BoxValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='box', parent_name='', **kwargs): + def __init__(self, plotly_name="box", parent_name="", **kwargs): super(BoxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Box'), + data_class_str=kwargs.pop("data_class_str", "Box"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ alignmentgroup Set several traces linked to the same position axis or matching axes to the same @@ -9947,7 +9941,7 @@ def __init__(self, plotly_name='box', parent_name='', **kwargs): data. ysrc Sets the source reference on plot.ly for y . -""" +""", ), **kwargs ) @@ -9957,14 +9951,14 @@ def __init__(self, plotly_name='box', parent_name='', **kwargs): class BarpolarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='barpolar', parent_name='', **kwargs): + def __init__(self, plotly_name="barpolar", parent_name="", **kwargs): super(BarpolarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Barpolar'), + data_class_str=kwargs.pop("data_class_str", "Barpolar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ base Sets where the bar base is drawn (in radial axis units). In "stack" barmode, traces that @@ -10165,7 +10159,7 @@ def __init__(self, plotly_name='barpolar', parent_name='', **kwargs): widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -10175,14 +10169,14 @@ def __init__(self, plotly_name='barpolar', parent_name='', **kwargs): class BarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='bar', parent_name='', **kwargs): + def __init__(self, plotly_name="bar", parent_name="", **kwargs): super(BarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Bar'), + data_class_str=kwargs.pop("data_class_str", "Bar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ alignmentgroup Set several traces linked to the same position axis or matching axes to the same @@ -10475,7 +10469,7 @@ def __init__(self, plotly_name='bar', parent_name='', **kwargs): data. ysrc Sets the source reference on plot.ly for y . -""" +""", ), **kwargs ) @@ -10485,14 +10479,14 @@ def __init__(self, plotly_name='bar', parent_name='', **kwargs): class AreaValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='area', parent_name='', **kwargs): + def __init__(self, plotly_name="area", parent_name="", **kwargs): super(AreaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Area'), + data_class_str=kwargs.pop("data_class_str", "Area"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ customdata Assigns extra data each datum. This may be useful when listening to hover, click and @@ -10599,7 +10593,7 @@ def __init__(self, plotly_name='area', parent_name='', **kwargs): visible. If "legendonly", the trace is not drawn, but can appear as a legend item (provided that the legend itself is visible). -""" +""", ), **kwargs ) @@ -10609,14 +10603,14 @@ def __init__(self, plotly_name='area', parent_name='', **kwargs): class FramesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - - def __init__(self, plotly_name='frames', parent_name='', **kwargs): + def __init__(self, plotly_name="frames", parent_name="", **kwargs): super(FramesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Frame'), + data_class_str=kwargs.pop("data_class_str", "Frame"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ baseframe The name of the frame into which this frame's properties are merged before applying. This is @@ -10640,7 +10634,7 @@ def __init__(self, plotly_name='frames', parent_name='', **kwargs): traces A list of trace indices that identify the respective traces in the data attribute -""" +""", ), **kwargs ) @@ -10650,53 +10644,52 @@ def __init__(self, plotly_name='frames', parent_name='', **kwargs): class DataValidator(_plotly_utils.basevalidators.BaseDataValidator): - - def __init__(self, plotly_name='data', parent_name='', **kwargs): + def __init__(self, plotly_name="data", parent_name="", **kwargs): super(DataValidator, self).__init__( class_strs_map={ - 'area': 'Area', - 'bar': 'Bar', - 'barpolar': 'Barpolar', - 'box': 'Box', - 'candlestick': 'Candlestick', - 'carpet': 'Carpet', - 'choropleth': 'Choropleth', - 'cone': 'Cone', - 'contour': 'Contour', - 'contourcarpet': 'Contourcarpet', - 'funnel': 'Funnel', - 'funnelarea': 'Funnelarea', - 'heatmap': 'Heatmap', - 'heatmapgl': 'Heatmapgl', - 'histogram': 'Histogram', - 'histogram2d': 'Histogram2d', - 'histogram2dcontour': 'Histogram2dContour', - 'isosurface': 'Isosurface', - 'mesh3d': 'Mesh3d', - 'ohlc': 'Ohlc', - 'parcats': 'Parcats', - 'parcoords': 'Parcoords', - 'pie': 'Pie', - 'pointcloud': 'Pointcloud', - 'sankey': 'Sankey', - 'scatter': 'Scatter', - 'scatter3d': 'Scatter3d', - 'scattercarpet': 'Scattercarpet', - 'scattergeo': 'Scattergeo', - 'scattergl': 'Scattergl', - 'scattermapbox': 'Scattermapbox', - 'scatterpolar': 'Scatterpolar', - 'scatterpolargl': 'Scatterpolargl', - 'scatterternary': 'Scatterternary', - 'splom': 'Splom', - 'streamtube': 'Streamtube', - 'sunburst': 'Sunburst', - 'surface': 'Surface', - 'table': 'Table', - 'violin': 'Violin', - 'volume': 'Volume', - 'waterfall': 'Waterfall', + "area": "Area", + "bar": "Bar", + "barpolar": "Barpolar", + "box": "Box", + "candlestick": "Candlestick", + "carpet": "Carpet", + "choropleth": "Choropleth", + "cone": "Cone", + "contour": "Contour", + "contourcarpet": "Contourcarpet", + "funnel": "Funnel", + "funnelarea": "Funnelarea", + "heatmap": "Heatmap", + "heatmapgl": "Heatmapgl", + "histogram": "Histogram", + "histogram2d": "Histogram2d", + "histogram2dcontour": "Histogram2dContour", + "isosurface": "Isosurface", + "mesh3d": "Mesh3d", + "ohlc": "Ohlc", + "parcats": "Parcats", + "parcoords": "Parcoords", + "pie": "Pie", + "pointcloud": "Pointcloud", + "sankey": "Sankey", + "scatter": "Scatter", + "scatter3d": "Scatter3d", + "scattercarpet": "Scattercarpet", + "scattergeo": "Scattergeo", + "scattergl": "Scattergl", + "scattermapbox": "Scattermapbox", + "scatterpolar": "Scatterpolar", + "scatterpolargl": "Scatterpolargl", + "scatterternary": "Scatterternary", + "splom": "Splom", + "streamtube": "Streamtube", + "sunburst": "Sunburst", + "surface": "Surface", + "table": "Table", + "violin": "Violin", + "volume": "Volume", + "waterfall": "Waterfall", }, plotly_name=plotly_name, parent_name=parent_name, diff --git a/packages/python/plotly/plotly/validators/area/__init__.py b/packages/python/plotly/plotly/validators/area/__init__.py index 6ccfa9ee8df..f5805c86fb7 100644 --- a/packages/python/plotly/plotly/validators/area/__init__.py +++ b/packages/python/plotly/plotly/validators/area/__init__.py @@ -1,17 +1,14 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='area', **kwargs): + def __init__(self, plotly_name="visible", parent_name="area", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -20,13 +17,12 @@ def __init__(self, plotly_name='visible', parent_name='area', **kwargs): class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='uirevision', parent_name='area', **kwargs): + def __init__(self, plotly_name="uirevision", parent_name="area", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -35,14 +31,13 @@ def __init__(self, plotly_name='uirevision', parent_name='area', **kwargs): class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='area', **kwargs): + def __init__(self, plotly_name="uid", parent_name="area", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -51,13 +46,12 @@ def __init__(self, plotly_name='uid', parent_name='area', **kwargs): class TsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='tsrc', parent_name='area', **kwargs): + def __init__(self, plotly_name="tsrc", parent_name="area", **kwargs): super(TsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,13 +60,12 @@ def __init__(self, plotly_name='tsrc', parent_name='area', **kwargs): class TValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='t', parent_name='area', **kwargs): + def __init__(self, plotly_name="t", parent_name="area", **kwargs): super(TValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -81,14 +74,14 @@ def __init__(self, plotly_name='t', parent_name='area', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='area', **kwargs): + def __init__(self, plotly_name="stream", parent_name="area", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -98,7 +91,7 @@ def __init__(self, plotly_name='stream', parent_name='area', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -108,13 +101,12 @@ def __init__(self, plotly_name='stream', parent_name='area', **kwargs): class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__(self, plotly_name='showlegend', parent_name='area', **kwargs): + def __init__(self, plotly_name="showlegend", parent_name="area", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -123,13 +115,12 @@ def __init__(self, plotly_name='showlegend', parent_name='area', **kwargs): class RsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='rsrc', parent_name='area', **kwargs): + def __init__(self, plotly_name="rsrc", parent_name="area", **kwargs): super(RsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -138,13 +129,12 @@ def __init__(self, plotly_name='rsrc', parent_name='area', **kwargs): class RValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='r', parent_name='area', **kwargs): + def __init__(self, plotly_name="r", parent_name="area", **kwargs): super(RValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -153,15 +143,14 @@ def __init__(self, plotly_name='r', parent_name='area', **kwargs): class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='opacity', parent_name='area', **kwargs): + def __init__(self, plotly_name="opacity", parent_name="area", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -170,13 +159,12 @@ def __init__(self, plotly_name='opacity', parent_name='area', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='area', **kwargs): + def __init__(self, plotly_name="name", parent_name="area", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -185,13 +173,12 @@ def __init__(self, plotly_name='name', parent_name='area', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='area', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="area", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,14 +187,13 @@ def __init__(self, plotly_name='metasrc', parent_name='area', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='area', **kwargs): + def __init__(self, plotly_name="meta", parent_name="area", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -216,14 +202,14 @@ def __init__(self, plotly_name='meta', parent_name='area', **kwargs): class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='marker', parent_name='area', **kwargs): + def __init__(self, plotly_name="marker", parent_name="area", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Area traces are deprecated! Please switch to the "barpolar" trace type. Sets themarkercolor. @@ -260,7 +246,7 @@ def __init__(self, plotly_name='marker', parent_name='area', **kwargs): symbolsrc Sets the source reference on plot.ly for symbol . -""" +""", ), **kwargs ) @@ -270,15 +256,12 @@ def __init__(self, plotly_name='marker', parent_name='area', **kwargs): class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='legendgroup', parent_name='area', **kwargs - ): + def __init__(self, plotly_name="legendgroup", parent_name="area", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -287,13 +270,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='area', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="area", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -302,14 +284,13 @@ def __init__(self, plotly_name='idssrc', parent_name='area', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='area', **kwargs): + def __init__(self, plotly_name="ids", parent_name="area", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -318,14 +299,14 @@ def __init__(self, plotly_name='ids', parent_name='area', **kwargs): class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='hoverlabel', parent_name='area', **kwargs): + def __init__(self, plotly_name="hoverlabel", parent_name="area", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -361,7 +342,7 @@ def __init__(self, plotly_name='hoverlabel', parent_name='area', **kwargs): namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -371,15 +352,12 @@ def __init__(self, plotly_name='hoverlabel', parent_name='area', **kwargs): class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='area', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="area", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -388,16 +366,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__(self, plotly_name='hoverinfo', parent_name='area', **kwargs): + def __init__(self, plotly_name="hoverinfo", parent_name="area", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -406,15 +383,12 @@ def __init__(self, plotly_name='hoverinfo', parent_name='area', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='area', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="area", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -423,12 +397,11 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='customdata', parent_name='area', **kwargs): + def __init__(self, plotly_name="customdata", parent_name="area", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/area/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/area/hoverlabel/__init__.py index d0f8828b9d5..803f1097ef3 100644 --- a/packages/python/plotly/plotly/validators/area/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/area/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='area.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="area.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='area.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="area.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='area.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="area.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='area.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="area.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='area.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="area.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='area.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="area.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,16 +132,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='area.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="area.hoverlabel", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -174,15 +147,12 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='alignsrc', parent_name='area.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="alignsrc", parent_name="area.hoverlabel", **kwargs): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -191,16 +161,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='area.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="area.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/area/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/area/hoverlabel/font/__init__.py index 10c2d6cfcb5..eaefcfd59b8 100644 --- a/packages/python/plotly/plotly/validators/area/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/area/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='area.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="area.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='size', parent_name='area.hoverlabel.font', **kwargs + self, plotly_name="size", parent_name="area.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='area.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="area.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -63,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='area.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="area.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -86,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='area.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="area.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -106,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='area.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="area.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/area/marker/__init__.py b/packages/python/plotly/plotly/validators/area/marker/__init__.py index 3fdc6476277..c522e778e69 100644 --- a/packages/python/plotly/plotly/validators/area/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/area/marker/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='symbolsrc', parent_name='area.marker', **kwargs - ): + def __init__(self, plotly_name="symbolsrc", parent_name="area.marker", **kwargs): super(SymbolsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,77 +16,301 @@ def __init__( class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='symbol', parent_name='area.marker', **kwargs - ): + def __init__(self, plotly_name="symbol", parent_name="area.marker", **kwargs): super(SymbolValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 0, 'circle', 100, 'circle-open', 200, 'circle-dot', 300, - 'circle-open-dot', 1, 'square', 101, 'square-open', 201, - 'square-dot', 301, 'square-open-dot', 2, 'diamond', 102, - 'diamond-open', 202, 'diamond-dot', 302, - 'diamond-open-dot', 3, 'cross', 103, 'cross-open', 203, - 'cross-dot', 303, 'cross-open-dot', 4, 'x', 104, 'x-open', - 204, 'x-dot', 304, 'x-open-dot', 5, 'triangle-up', 105, - 'triangle-up-open', 205, 'triangle-up-dot', 305, - 'triangle-up-open-dot', 6, 'triangle-down', 106, - 'triangle-down-open', 206, 'triangle-down-dot', 306, - 'triangle-down-open-dot', 7, 'triangle-left', 107, - 'triangle-left-open', 207, 'triangle-left-dot', 307, - 'triangle-left-open-dot', 8, 'triangle-right', 108, - 'triangle-right-open', 208, 'triangle-right-dot', 308, - 'triangle-right-open-dot', 9, 'triangle-ne', 109, - 'triangle-ne-open', 209, 'triangle-ne-dot', 309, - 'triangle-ne-open-dot', 10, 'triangle-se', 110, - 'triangle-se-open', 210, 'triangle-se-dot', 310, - 'triangle-se-open-dot', 11, 'triangle-sw', 111, - 'triangle-sw-open', 211, 'triangle-sw-dot', 311, - 'triangle-sw-open-dot', 12, 'triangle-nw', 112, - 'triangle-nw-open', 212, 'triangle-nw-dot', 312, - 'triangle-nw-open-dot', 13, 'pentagon', 113, - 'pentagon-open', 213, 'pentagon-dot', 313, - 'pentagon-open-dot', 14, 'hexagon', 114, 'hexagon-open', - 214, 'hexagon-dot', 314, 'hexagon-open-dot', 15, - 'hexagon2', 115, 'hexagon2-open', 215, 'hexagon2-dot', 315, - 'hexagon2-open-dot', 16, 'octagon', 116, 'octagon-open', - 216, 'octagon-dot', 316, 'octagon-open-dot', 17, 'star', - 117, 'star-open', 217, 'star-dot', 317, 'star-open-dot', - 18, 'hexagram', 118, 'hexagram-open', 218, 'hexagram-dot', - 318, 'hexagram-open-dot', 19, 'star-triangle-up', 119, - 'star-triangle-up-open', 219, 'star-triangle-up-dot', 319, - 'star-triangle-up-open-dot', 20, 'star-triangle-down', 120, - 'star-triangle-down-open', 220, 'star-triangle-down-dot', - 320, 'star-triangle-down-open-dot', 21, 'star-square', 121, - 'star-square-open', 221, 'star-square-dot', 321, - 'star-square-open-dot', 22, 'star-diamond', 122, - 'star-diamond-open', 222, 'star-diamond-dot', 322, - 'star-diamond-open-dot', 23, 'diamond-tall', 123, - 'diamond-tall-open', 223, 'diamond-tall-dot', 323, - 'diamond-tall-open-dot', 24, 'diamond-wide', 124, - 'diamond-wide-open', 224, 'diamond-wide-dot', 324, - 'diamond-wide-open-dot', 25, 'hourglass', 125, - 'hourglass-open', 26, 'bowtie', 126, 'bowtie-open', 27, - 'circle-cross', 127, 'circle-cross-open', 28, 'circle-x', - 128, 'circle-x-open', 29, 'square-cross', 129, - 'square-cross-open', 30, 'square-x', 130, 'square-x-open', - 31, 'diamond-cross', 131, 'diamond-cross-open', 32, - 'diamond-x', 132, 'diamond-x-open', 33, 'cross-thin', 133, - 'cross-thin-open', 34, 'x-thin', 134, 'x-thin-open', 35, - 'asterisk', 135, 'asterisk-open', 36, 'hash', 136, - 'hash-open', 236, 'hash-dot', 336, 'hash-open-dot', 37, - 'y-up', 137, 'y-up-open', 38, 'y-down', 138, 'y-down-open', - 39, 'y-left', 139, 'y-left-open', 40, 'y-right', 140, - 'y-right-open', 41, 'line-ew', 141, 'line-ew-open', 42, - 'line-ns', 142, 'line-ns-open', 43, 'line-ne', 143, - 'line-ne-open', 44, 'line-nw', 144, 'line-nw-open' - ] + "values", + [ + 0, + "circle", + 100, + "circle-open", + 200, + "circle-dot", + 300, + "circle-open-dot", + 1, + "square", + 101, + "square-open", + 201, + "square-dot", + 301, + "square-open-dot", + 2, + "diamond", + 102, + "diamond-open", + 202, + "diamond-dot", + 302, + "diamond-open-dot", + 3, + "cross", + 103, + "cross-open", + 203, + "cross-dot", + 303, + "cross-open-dot", + 4, + "x", + 104, + "x-open", + 204, + "x-dot", + 304, + "x-open-dot", + 5, + "triangle-up", + 105, + "triangle-up-open", + 205, + "triangle-up-dot", + 305, + "triangle-up-open-dot", + 6, + "triangle-down", + 106, + "triangle-down-open", + 206, + "triangle-down-dot", + 306, + "triangle-down-open-dot", + 7, + "triangle-left", + 107, + "triangle-left-open", + 207, + "triangle-left-dot", + 307, + "triangle-left-open-dot", + 8, + "triangle-right", + 108, + "triangle-right-open", + 208, + "triangle-right-dot", + 308, + "triangle-right-open-dot", + 9, + "triangle-ne", + 109, + "triangle-ne-open", + 209, + "triangle-ne-dot", + 309, + "triangle-ne-open-dot", + 10, + "triangle-se", + 110, + "triangle-se-open", + 210, + "triangle-se-dot", + 310, + "triangle-se-open-dot", + 11, + "triangle-sw", + 111, + "triangle-sw-open", + 211, + "triangle-sw-dot", + 311, + "triangle-sw-open-dot", + 12, + "triangle-nw", + 112, + "triangle-nw-open", + 212, + "triangle-nw-dot", + 312, + "triangle-nw-open-dot", + 13, + "pentagon", + 113, + "pentagon-open", + 213, + "pentagon-dot", + 313, + "pentagon-open-dot", + 14, + "hexagon", + 114, + "hexagon-open", + 214, + "hexagon-dot", + 314, + "hexagon-open-dot", + 15, + "hexagon2", + 115, + "hexagon2-open", + 215, + "hexagon2-dot", + 315, + "hexagon2-open-dot", + 16, + "octagon", + 116, + "octagon-open", + 216, + "octagon-dot", + 316, + "octagon-open-dot", + 17, + "star", + 117, + "star-open", + 217, + "star-dot", + 317, + "star-open-dot", + 18, + "hexagram", + 118, + "hexagram-open", + 218, + "hexagram-dot", + 318, + "hexagram-open-dot", + 19, + "star-triangle-up", + 119, + "star-triangle-up-open", + 219, + "star-triangle-up-dot", + 319, + "star-triangle-up-open-dot", + 20, + "star-triangle-down", + 120, + "star-triangle-down-open", + 220, + "star-triangle-down-dot", + 320, + "star-triangle-down-open-dot", + 21, + "star-square", + 121, + "star-square-open", + 221, + "star-square-dot", + 321, + "star-square-open-dot", + 22, + "star-diamond", + 122, + "star-diamond-open", + 222, + "star-diamond-dot", + 322, + "star-diamond-open-dot", + 23, + "diamond-tall", + 123, + "diamond-tall-open", + 223, + "diamond-tall-dot", + 323, + "diamond-tall-open-dot", + 24, + "diamond-wide", + 124, + "diamond-wide-open", + 224, + "diamond-wide-dot", + 324, + "diamond-wide-open-dot", + 25, + "hourglass", + 125, + "hourglass-open", + 26, + "bowtie", + 126, + "bowtie-open", + 27, + "circle-cross", + 127, + "circle-cross-open", + 28, + "circle-x", + 128, + "circle-x-open", + 29, + "square-cross", + 129, + "square-cross-open", + 30, + "square-x", + 130, + "square-x-open", + 31, + "diamond-cross", + 131, + "diamond-cross-open", + 32, + "diamond-x", + 132, + "diamond-x-open", + 33, + "cross-thin", + 133, + "cross-thin-open", + 34, + "x-thin", + 134, + "x-thin-open", + 35, + "asterisk", + 135, + "asterisk-open", + 36, + "hash", + 136, + "hash-open", + 236, + "hash-dot", + 336, + "hash-open-dot", + 37, + "y-up", + 137, + "y-up-open", + 38, + "y-down", + 138, + "y-down-open", + 39, + "y-left", + 139, + "y-left-open", + 40, + "y-right", + 140, + "y-right-open", + 41, + "line-ew", + 141, + "line-ew-open", + 42, + "line-ns", + 142, + "line-ns-open", + 43, + "line-ne", + 143, + "line-ne-open", + 44, + "line-nw", + 144, + "line-nw-open", + ], ), **kwargs ) @@ -101,15 +320,12 @@ def __init__( class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='sizesrc', parent_name='area.marker', **kwargs - ): + def __init__(self, plotly_name="sizesrc", parent_name="area.marker", **kwargs): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,18 +334,15 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='area.marker', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="area.marker", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -138,15 +351,12 @@ def __init__( class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='opacitysrc', parent_name='area.marker', **kwargs - ): + def __init__(self, plotly_name="opacitysrc", parent_name="area.marker", **kwargs): super(OpacitysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -155,19 +365,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='area.marker', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="area.marker", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -176,15 +383,12 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorsrc', parent_name='area.marker', **kwargs - ): + def __init__(self, plotly_name="colorsrc", parent_name="area.marker", **kwargs): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -193,16 +397,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='area.marker', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="area.marker", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/area/stream/__init__.py b/packages/python/plotly/plotly/validators/area/stream/__init__.py index 3daa433dd4c..e8e72656f7b 100644 --- a/packages/python/plotly/plotly/validators/area/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/area/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='area.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="area.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='area.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="area.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/__init__.py b/packages/python/plotly/plotly/validators/bar/__init__.py index 9bc80894ee7..1c773a200f5 100644 --- a/packages/python/plotly/plotly/validators/bar/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='bar', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="bar", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,20 +16,32 @@ def __init__(self, plotly_name='ysrc', parent_name='bar', **kwargs): class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='ycalendar', parent_name='bar', **kwargs): + def __init__(self, plotly_name="ycalendar", parent_name="bar", **kwargs): super(YcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -42,14 +51,13 @@ def __init__(self, plotly_name='ycalendar', parent_name='bar', **kwargs): class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='yaxis', parent_name='bar', **kwargs): + def __init__(self, plotly_name="yaxis", parent_name="bar", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -58,14 +66,13 @@ def __init__(self, plotly_name='yaxis', parent_name='bar', **kwargs): class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='y0', parent_name='bar', **kwargs): + def __init__(self, plotly_name="y0", parent_name="bar", **kwargs): super(Y0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -74,14 +81,13 @@ def __init__(self, plotly_name='y0', parent_name='bar', **kwargs): class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='bar', **kwargs): + def __init__(self, plotly_name="y", parent_name="bar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -90,13 +96,12 @@ def __init__(self, plotly_name='y', parent_name='bar', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='bar', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="bar", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -105,20 +110,32 @@ def __init__(self, plotly_name='xsrc', parent_name='bar', **kwargs): class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='xcalendar', parent_name='bar', **kwargs): + def __init__(self, plotly_name="xcalendar", parent_name="bar", **kwargs): super(XcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -128,14 +145,13 @@ def __init__(self, plotly_name='xcalendar', parent_name='bar', **kwargs): class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='xaxis', parent_name='bar', **kwargs): + def __init__(self, plotly_name="xaxis", parent_name="bar", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -144,14 +160,13 @@ def __init__(self, plotly_name='xaxis', parent_name='bar', **kwargs): class X0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='x0', parent_name='bar', **kwargs): + def __init__(self, plotly_name="x0", parent_name="bar", **kwargs): super(X0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -160,14 +175,13 @@ def __init__(self, plotly_name='x0', parent_name='bar', **kwargs): class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='bar', **kwargs): + def __init__(self, plotly_name="x", parent_name="bar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -176,13 +190,12 @@ def __init__(self, plotly_name='x', parent_name='bar', **kwargs): class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='widthsrc', parent_name='bar', **kwargs): + def __init__(self, plotly_name="widthsrc", parent_name="bar", **kwargs): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -191,15 +204,14 @@ def __init__(self, plotly_name='widthsrc', parent_name='bar', **kwargs): class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='width', parent_name='bar', **kwargs): + def __init__(self, plotly_name="width", parent_name="bar", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -208,14 +220,13 @@ def __init__(self, plotly_name='width', parent_name='bar', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='bar', **kwargs): + def __init__(self, plotly_name="visible", parent_name="bar", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -224,21 +235,21 @@ def __init__(self, plotly_name='visible', parent_name='bar', **kwargs): class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='unselected', parent_name='bar', **kwargs): + def __init__(self, plotly_name="unselected", parent_name="bar", **kwargs): super(UnselectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_class_str=kwargs.pop("data_class_str", "Unselected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.bar.unselected.Marker instance or dict with compatible properties textfont plotly.graph_objs.bar.unselected.Textfont instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -248,13 +259,12 @@ def __init__(self, plotly_name='unselected', parent_name='bar', **kwargs): class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='uirevision', parent_name='bar', **kwargs): + def __init__(self, plotly_name="uirevision", parent_name="bar", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -263,14 +273,13 @@ def __init__(self, plotly_name='uirevision', parent_name='bar', **kwargs): class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='bar', **kwargs): + def __init__(self, plotly_name="uid", parent_name="bar", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -279,13 +288,12 @@ def __init__(self, plotly_name='uid', parent_name='bar', **kwargs): class TsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='tsrc', parent_name='bar', **kwargs): + def __init__(self, plotly_name="tsrc", parent_name="bar", **kwargs): super(TsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -294,13 +302,12 @@ def __init__(self, plotly_name='tsrc', parent_name='bar', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='textsrc', parent_name='bar', **kwargs): + def __init__(self, plotly_name="textsrc", parent_name="bar", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -309,15 +316,12 @@ def __init__(self, plotly_name='textsrc', parent_name='bar', **kwargs): class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textpositionsrc', parent_name='bar', **kwargs - ): + def __init__(self, plotly_name="textpositionsrc", parent_name="bar", **kwargs): super(TextpositionsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -326,17 +330,14 @@ def __init__( class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='textposition', parent_name='bar', **kwargs - ): + def __init__(self, plotly_name="textposition", parent_name="bar", **kwargs): super(TextpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['inside', 'outside', 'auto', 'none']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["inside", "outside", "auto", "none"]), **kwargs ) @@ -345,14 +346,14 @@ def __init__( class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='textfont', parent_name='bar', **kwargs): + def __init__(self, plotly_name="textfont", parent_name="bar", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -382,7 +383,7 @@ def __init__(self, plotly_name='textfont', parent_name='bar', **kwargs): sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -392,13 +393,12 @@ def __init__(self, plotly_name='textfont', parent_name='bar', **kwargs): class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): - - def __init__(self, plotly_name='textangle', parent_name='bar', **kwargs): + def __init__(self, plotly_name="textangle", parent_name="bar", **kwargs): super(TextangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -407,14 +407,13 @@ def __init__(self, plotly_name='textangle', parent_name='bar', **kwargs): class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='bar', **kwargs): + def __init__(self, plotly_name="text", parent_name="bar", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -423,13 +422,12 @@ def __init__(self, plotly_name='text', parent_name='bar', **kwargs): class TValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='t', parent_name='bar', **kwargs): + def __init__(self, plotly_name="t", parent_name="bar", **kwargs): super(TValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -438,14 +436,14 @@ def __init__(self, plotly_name='t', parent_name='bar', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='bar', **kwargs): + def __init__(self, plotly_name="stream", parent_name="bar", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -455,7 +453,7 @@ def __init__(self, plotly_name='stream', parent_name='bar', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -465,13 +463,12 @@ def __init__(self, plotly_name='stream', parent_name='bar', **kwargs): class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__(self, plotly_name='showlegend', parent_name='bar', **kwargs): + def __init__(self, plotly_name="showlegend", parent_name="bar", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -480,15 +477,12 @@ def __init__(self, plotly_name='showlegend', parent_name='bar', **kwargs): class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='selectedpoints', parent_name='bar', **kwargs - ): + def __init__(self, plotly_name="selectedpoints", parent_name="bar", **kwargs): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -497,21 +491,21 @@ def __init__( class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='selected', parent_name='bar', **kwargs): + def __init__(self, plotly_name="selected", parent_name="bar", **kwargs): super(SelectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_class_str=kwargs.pop("data_class_str", "Selected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.bar.selected.Marker instance or dict with compatible properties textfont plotly.graph_objs.bar.selected.Textfont instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -521,13 +515,12 @@ def __init__(self, plotly_name='selected', parent_name='bar', **kwargs): class RsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='rsrc', parent_name='bar', **kwargs): + def __init__(self, plotly_name="rsrc", parent_name="bar", **kwargs): super(RsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -536,13 +529,12 @@ def __init__(self, plotly_name='rsrc', parent_name='bar', **kwargs): class RValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='r', parent_name='bar', **kwargs): + def __init__(self, plotly_name="r", parent_name="bar", **kwargs): super(RValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -551,16 +543,14 @@ def __init__(self, plotly_name='r', parent_name='bar', **kwargs): class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='outsidetextfont', parent_name='bar', **kwargs - ): + def __init__(self, plotly_name="outsidetextfont", parent_name="bar", **kwargs): super(OutsidetextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Outsidetextfont'), + data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -590,7 +580,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -600,14 +590,13 @@ def __init__( class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='orientation', parent_name='bar', **kwargs): + def __init__(self, plotly_name="orientation", parent_name="bar", **kwargs): super(OrientationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['v', 'h']), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["v", "h"]), **kwargs ) @@ -616,15 +605,14 @@ def __init__(self, plotly_name='orientation', parent_name='bar', **kwargs): class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='opacity', parent_name='bar', **kwargs): + def __init__(self, plotly_name="opacity", parent_name="bar", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -633,13 +621,12 @@ def __init__(self, plotly_name='opacity', parent_name='bar', **kwargs): class OffsetsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='offsetsrc', parent_name='bar', **kwargs): + def __init__(self, plotly_name="offsetsrc", parent_name="bar", **kwargs): super(OffsetsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -648,13 +635,12 @@ def __init__(self, plotly_name='offsetsrc', parent_name='bar', **kwargs): class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='offsetgroup', parent_name='bar', **kwargs): + def __init__(self, plotly_name="offsetgroup", parent_name="bar", **kwargs): super(OffsetgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -663,14 +649,13 @@ def __init__(self, plotly_name='offsetgroup', parent_name='bar', **kwargs): class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='offset', parent_name='bar', **kwargs): + def __init__(self, plotly_name="offset", parent_name="bar", **kwargs): super(OffsetValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -679,13 +664,12 @@ def __init__(self, plotly_name='offset', parent_name='bar', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='bar', **kwargs): + def __init__(self, plotly_name="name", parent_name="bar", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -694,13 +678,12 @@ def __init__(self, plotly_name='name', parent_name='bar', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='bar', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="bar", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -709,14 +692,13 @@ def __init__(self, plotly_name='metasrc', parent_name='bar', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='bar', **kwargs): + def __init__(self, plotly_name="meta", parent_name="bar", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -725,14 +707,14 @@ def __init__(self, plotly_name='meta', parent_name='bar', **kwargs): class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='marker', parent_name='bar', **kwargs): + def __init__(self, plotly_name="marker", parent_name="bar", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -827,7 +809,7 @@ def __init__(self, plotly_name='marker', parent_name='bar', **kwargs): Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array. -""" +""", ), **kwargs ) @@ -837,13 +819,12 @@ def __init__(self, plotly_name='marker', parent_name='bar', **kwargs): class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='legendgroup', parent_name='bar', **kwargs): + def __init__(self, plotly_name="legendgroup", parent_name="bar", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -852,16 +833,14 @@ def __init__(self, plotly_name='legendgroup', parent_name='bar', **kwargs): class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='insidetextfont', parent_name='bar', **kwargs - ): + def __init__(self, plotly_name="insidetextfont", parent_name="bar", **kwargs): super(InsidetextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Insidetextfont'), + data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -891,7 +870,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -900,19 +879,14 @@ def __init__( import _plotly_utils.basevalidators -class InsidetextanchorValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - - def __init__( - self, plotly_name='insidetextanchor', parent_name='bar', **kwargs - ): +class InsidetextanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + def __init__(self, plotly_name="insidetextanchor", parent_name="bar", **kwargs): super(InsidetextanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['end', 'middle', 'start']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["end", "middle", "start"]), **kwargs ) @@ -921,13 +895,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='bar', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="bar", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -936,14 +909,13 @@ def __init__(self, plotly_name='idssrc', parent_name='bar', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='bar', **kwargs): + def __init__(self, plotly_name="ids", parent_name="bar", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -952,15 +924,12 @@ def __init__(self, plotly_name='ids', parent_name='bar', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='bar', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="bar", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -969,14 +938,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='hovertext', parent_name='bar', **kwargs): + def __init__(self, plotly_name="hovertext", parent_name="bar", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -985,15 +953,12 @@ def __init__(self, plotly_name='hovertext', parent_name='bar', **kwargs): class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertemplatesrc', parent_name='bar', **kwargs - ): + def __init__(self, plotly_name="hovertemplatesrc", parent_name="bar", **kwargs): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1002,16 +967,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='bar', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="bar", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1020,14 +982,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='hoverlabel', parent_name='bar', **kwargs): + def __init__(self, plotly_name="hoverlabel", parent_name="bar", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -1063,7 +1025,7 @@ def __init__(self, plotly_name='hoverlabel', parent_name='bar', **kwargs): namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -1073,15 +1035,12 @@ def __init__(self, plotly_name='hoverlabel', parent_name='bar', **kwargs): class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='bar', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="bar", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1090,16 +1049,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__(self, plotly_name='hoverinfo', parent_name='bar', **kwargs): + def __init__(self, plotly_name="hoverinfo", parent_name="bar", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1108,14 +1066,14 @@ def __init__(self, plotly_name='hoverinfo', parent_name='bar', **kwargs): class ErrorYValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='error_y', parent_name='bar', **kwargs): + def __init__(self, plotly_name="error_y", parent_name="bar", **kwargs): super(ErrorYValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ErrorY'), + data_class_str=kwargs.pop("data_class_str", "ErrorY"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ array Sets the data corresponding the length of each error bar. Values are plotted relative to the @@ -1171,7 +1129,7 @@ def __init__(self, plotly_name='error_y', parent_name='bar', **kwargs): width Sets the width (in px) of the cross-bar at both ends of the error bars. -""" +""", ), **kwargs ) @@ -1181,14 +1139,14 @@ def __init__(self, plotly_name='error_y', parent_name='bar', **kwargs): class ErrorXValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='error_x', parent_name='bar', **kwargs): + def __init__(self, plotly_name="error_x", parent_name="bar", **kwargs): super(ErrorXValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ErrorX'), + data_class_str=kwargs.pop("data_class_str", "ErrorX"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ array Sets the data corresponding the length of each error bar. Values are plotted relative to the @@ -1246,7 +1204,7 @@ def __init__(self, plotly_name='error_x', parent_name='bar', **kwargs): width Sets the width (in px) of the cross-bar at both ends of the error bars. -""" +""", ), **kwargs ) @@ -1256,14 +1214,13 @@ def __init__(self, plotly_name='error_x', parent_name='bar', **kwargs): class DyValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dy', parent_name='bar', **kwargs): + def __init__(self, plotly_name="dy", parent_name="bar", **kwargs): super(DyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1272,14 +1229,13 @@ def __init__(self, plotly_name='dy', parent_name='bar', **kwargs): class DxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dx', parent_name='bar', **kwargs): + def __init__(self, plotly_name="dx", parent_name="bar", **kwargs): super(DxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1288,15 +1244,12 @@ def __init__(self, plotly_name='dx', parent_name='bar', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='bar', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="bar", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1305,13 +1258,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='customdata', parent_name='bar', **kwargs): + def __init__(self, plotly_name="customdata", parent_name="bar", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1320,16 +1272,13 @@ def __init__(self, plotly_name='customdata', parent_name='bar', **kwargs): class ConstraintextValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='constraintext', parent_name='bar', **kwargs - ): + def __init__(self, plotly_name="constraintext", parent_name="bar", **kwargs): super(ConstraintextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['inside', 'outside', 'both', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["inside", "outside", "both", "none"]), **kwargs ) @@ -1338,13 +1287,12 @@ def __init__( class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__(self, plotly_name='cliponaxis', parent_name='bar', **kwargs): + def __init__(self, plotly_name="cliponaxis", parent_name="bar", **kwargs): super(CliponaxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1353,13 +1301,12 @@ def __init__(self, plotly_name='cliponaxis', parent_name='bar', **kwargs): class BasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='basesrc', parent_name='bar', **kwargs): + def __init__(self, plotly_name="basesrc", parent_name="bar", **kwargs): super(BasesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1368,14 +1315,13 @@ def __init__(self, plotly_name='basesrc', parent_name='bar', **kwargs): class BaseValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='base', parent_name='bar', **kwargs): + def __init__(self, plotly_name="base", parent_name="bar", **kwargs): super(BaseValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1384,14 +1330,11 @@ def __init__(self, plotly_name='base', parent_name='bar', **kwargs): class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='alignmentgroup', parent_name='bar', **kwargs - ): + def __init__(self, plotly_name="alignmentgroup", parent_name="bar", **kwargs): super(AlignmentgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/error_x/__init__.py b/packages/python/plotly/plotly/validators/bar/error_x/__init__.py index 0f62ef9b6c3..05ebb4da7e2 100644 --- a/packages/python/plotly/plotly/validators/bar/error_x/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/error_x/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='bar.error_x', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="bar.error_x", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,15 +17,12 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='visible', parent_name='bar.error_x', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="bar.error_x", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,16 +31,13 @@ def __init__( class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='valueminus', parent_name='bar.error_x', **kwargs - ): + def __init__(self, plotly_name="valueminus", parent_name="bar.error_x", **kwargs): super(ValueminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -57,16 +46,13 @@ def __init__( class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='value', parent_name='bar.error_x', **kwargs - ): + def __init__(self, plotly_name="value", parent_name="bar.error_x", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -75,18 +61,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='bar.error_x', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="bar.error_x", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['percent', 'constant', 'sqrt', 'data'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs ) @@ -95,16 +76,15 @@ def __init__( class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name='tracerefminus', parent_name='bar.error_x', **kwargs + self, plotly_name="tracerefminus", parent_name="bar.error_x", **kwargs ): super(TracerefminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -113,16 +93,13 @@ def __init__( class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='traceref', parent_name='bar.error_x', **kwargs - ): + def __init__(self, plotly_name="traceref", parent_name="bar.error_x", **kwargs): super(TracerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -131,16 +108,13 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='thickness', parent_name='bar.error_x', **kwargs - ): + def __init__(self, plotly_name="thickness", parent_name="bar.error_x", **kwargs): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -149,15 +123,12 @@ def __init__( class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='symmetric', parent_name='bar.error_x', **kwargs - ): + def __init__(self, plotly_name="symmetric", parent_name="bar.error_x", **kwargs): super(SymmetricValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -166,15 +137,12 @@ def __init__( class CopyYstyleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='copy_ystyle', parent_name='bar.error_x', **kwargs - ): + def __init__(self, plotly_name="copy_ystyle", parent_name="bar.error_x", **kwargs): super(CopyYstyleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -183,15 +151,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='bar.error_x', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="bar.error_x", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -200,15 +165,12 @@ def __init__( class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='arraysrc', parent_name='bar.error_x', **kwargs - ): + def __init__(self, plotly_name="arraysrc", parent_name="bar.error_x", **kwargs): super(ArraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -217,15 +179,14 @@ def __init__( class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='arrayminussrc', parent_name='bar.error_x', **kwargs + self, plotly_name="arrayminussrc", parent_name="bar.error_x", **kwargs ): super(ArrayminussrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -234,15 +195,12 @@ def __init__( class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='arrayminus', parent_name='bar.error_x', **kwargs - ): + def __init__(self, plotly_name="arrayminus", parent_name="bar.error_x", **kwargs): super(ArrayminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -251,14 +209,11 @@ def __init__( class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='array', parent_name='bar.error_x', **kwargs - ): + def __init__(self, plotly_name="array", parent_name="bar.error_x", **kwargs): super(ArrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/error_y/__init__.py b/packages/python/plotly/plotly/validators/bar/error_y/__init__.py index c17bef60194..37f8b74f5aa 100644 --- a/packages/python/plotly/plotly/validators/bar/error_y/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/error_y/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='bar.error_y', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="bar.error_y", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,15 +17,12 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='visible', parent_name='bar.error_y', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="bar.error_y", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,16 +31,13 @@ def __init__( class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='valueminus', parent_name='bar.error_y', **kwargs - ): + def __init__(self, plotly_name="valueminus", parent_name="bar.error_y", **kwargs): super(ValueminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -57,16 +46,13 @@ def __init__( class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='value', parent_name='bar.error_y', **kwargs - ): + def __init__(self, plotly_name="value", parent_name="bar.error_y", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -75,18 +61,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='bar.error_y', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="bar.error_y", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['percent', 'constant', 'sqrt', 'data'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs ) @@ -95,16 +76,15 @@ def __init__( class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name='tracerefminus', parent_name='bar.error_y', **kwargs + self, plotly_name="tracerefminus", parent_name="bar.error_y", **kwargs ): super(TracerefminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -113,16 +93,13 @@ def __init__( class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='traceref', parent_name='bar.error_y', **kwargs - ): + def __init__(self, plotly_name="traceref", parent_name="bar.error_y", **kwargs): super(TracerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -131,16 +108,13 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='thickness', parent_name='bar.error_y', **kwargs - ): + def __init__(self, plotly_name="thickness", parent_name="bar.error_y", **kwargs): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -149,15 +123,12 @@ def __init__( class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='symmetric', parent_name='bar.error_y', **kwargs - ): + def __init__(self, plotly_name="symmetric", parent_name="bar.error_y", **kwargs): super(SymmetricValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -166,15 +137,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='bar.error_y', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="bar.error_y", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -183,15 +151,12 @@ def __init__( class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='arraysrc', parent_name='bar.error_y', **kwargs - ): + def __init__(self, plotly_name="arraysrc", parent_name="bar.error_y", **kwargs): super(ArraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,15 +165,14 @@ def __init__( class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='arrayminussrc', parent_name='bar.error_y', **kwargs + self, plotly_name="arrayminussrc", parent_name="bar.error_y", **kwargs ): super(ArrayminussrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -217,15 +181,12 @@ def __init__( class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='arrayminus', parent_name='bar.error_y', **kwargs - ): + def __init__(self, plotly_name="arrayminus", parent_name="bar.error_y", **kwargs): super(ArrayminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -234,14 +195,11 @@ def __init__( class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='array', parent_name='bar.error_y', **kwargs - ): + def __init__(self, plotly_name="array", parent_name="bar.error_y", **kwargs): super(ArrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/__init__.py index d8dd14c5486..7ae44cf0cb9 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='bar.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="bar.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name='namelength', parent_name='bar.hoverlabel', **kwargs + self, plotly_name="namelength", parent_name="bar.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='bar.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="bar.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -82,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -92,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='bar.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="bar.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -112,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='bar.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="bar.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -133,15 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='bgcolorsrc', parent_name='bar.hoverlabel', **kwargs + self, plotly_name="bgcolorsrc", parent_name="bar.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -150,16 +132,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='bar.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="bar.hoverlabel", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -168,15 +147,12 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='alignsrc', parent_name='bar.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="alignsrc", parent_name="bar.hoverlabel", **kwargs): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -185,16 +161,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='bar.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="bar.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/__init__.py index 24348c13ef2..f1b9817df68 100644 --- a/packages/python/plotly/plotly/validators/bar/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='bar.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="bar.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='bar.hoverlabel.font', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="bar.hoverlabel.font", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,18 +34,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='bar.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="bar.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -63,21 +50,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='bar.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="bar.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -86,18 +69,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='bar.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="bar.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -106,15 +85,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='color', parent_name='bar.hoverlabel.font', **kwargs + self, plotly_name="color", parent_name="bar.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/insidetextfont/__init__.py b/packages/python/plotly/plotly/validators/bar/insidetextfont/__init__.py index 82386f463ab..5b57343df9f 100644 --- a/packages/python/plotly/plotly/validators/bar/insidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/insidetextfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='bar.insidetextfont', - **kwargs + self, plotly_name="sizesrc", parent_name="bar.insidetextfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='bar.insidetextfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="bar.insidetextfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,18 +34,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='bar.insidetextfont', - **kwargs + self, plotly_name="familysrc", parent_name="bar.insidetextfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -63,18 +50,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='family', parent_name='bar.insidetextfont', **kwargs + self, plotly_name="family", parent_name="bar.insidetextfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -83,18 +69,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='bar.insidetextfont', - **kwargs + self, plotly_name="colorsrc", parent_name="bar.insidetextfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -103,15 +85,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='bar.insidetextfont', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="bar.insidetextfont", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/marker/__init__.py b/packages/python/plotly/plotly/validators/bar/marker/__init__.py index 2d3ccf70da9..4be9c27a795 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/marker/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='bar.marker', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="bar.marker", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,15 +16,12 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='reversescale', parent_name='bar.marker', **kwargs - ): + def __init__(self, plotly_name="reversescale", parent_name="bar.marker", **kwargs): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -38,15 +30,12 @@ def __init__( class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='opacitysrc', parent_name='bar.marker', **kwargs - ): + def __init__(self, plotly_name="opacitysrc", parent_name="bar.marker", **kwargs): super(OpacitysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -55,18 +44,15 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='bar.marker', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="bar.marker", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -75,14 +61,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='line', parent_name='bar.marker', **kwargs): + def __init__(self, plotly_name="line", parent_name="bar.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -171,7 +157,7 @@ def __init__(self, plotly_name='line', parent_name='bar.marker', **kwargs): widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -181,15 +167,12 @@ def __init__(self, plotly_name='line', parent_name='bar.marker', **kwargs): class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorsrc', parent_name='bar.marker', **kwargs - ): + def __init__(self, plotly_name="colorsrc", parent_name="bar.marker", **kwargs): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -198,18 +181,13 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - - def __init__( - self, plotly_name='colorscale', parent_name='bar.marker', **kwargs - ): + def __init__(self, plotly_name="colorscale", parent_name="bar.marker", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -218,16 +196,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorbar', parent_name='bar.marker', **kwargs - ): + def __init__(self, plotly_name="colorbar", parent_name="bar.marker", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -437,7 +413,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -447,17 +423,14 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='bar.marker', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="bar.marker", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -466,19 +439,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='bar.marker', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="bar.marker", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), - colorscale_path=kwargs.pop( - 'colorscale_path', 'bar.marker.colorscale' - ), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), + colorscale_path=kwargs.pop("colorscale_path", "bar.marker.colorscale"), **kwargs ) @@ -487,14 +455,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmin', parent_name='bar.marker', **kwargs): + def __init__(self, plotly_name="cmin", parent_name="bar.marker", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -503,14 +470,13 @@ def __init__(self, plotly_name='cmin', parent_name='bar.marker', **kwargs): class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmid', parent_name='bar.marker', **kwargs): + def __init__(self, plotly_name="cmid", parent_name="bar.marker", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -519,14 +485,13 @@ def __init__(self, plotly_name='cmid', parent_name='bar.marker', **kwargs): class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmax', parent_name='bar.marker', **kwargs): + def __init__(self, plotly_name="cmax", parent_name="bar.marker", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -535,16 +500,13 @@ def __init__(self, plotly_name='cmax', parent_name='bar.marker', **kwargs): class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='bar.marker', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="bar.marker", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -553,15 +515,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='autocolorscale', parent_name='bar.marker', **kwargs + self, plotly_name="autocolorscale", parent_name="bar.marker", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/__init__.py index d19e05a1f6a..7b614313664 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ypad', parent_name='bar.marker.colorbar', **kwargs - ): + def __init__(self, plotly_name="ypad", parent_name="bar.marker.colorbar", **kwargs): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,19 +17,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="bar.marker.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -43,17 +34,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='bar.marker.colorbar', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="bar.marker.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -62,16 +50,13 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='xpad', parent_name='bar.marker.colorbar', **kwargs - ): + def __init__(self, plotly_name="xpad", parent_name="bar.marker.colorbar", **kwargs): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -80,19 +65,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="bar.marker.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -101,17 +82,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='bar.marker.colorbar', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="bar.marker.colorbar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -120,16 +98,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name='title', parent_name='bar.marker.colorbar', **kwargs + self, plotly_name="title", parent_name="bar.marker.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -145,7 +123,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -155,19 +133,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="bar.marker.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -176,18 +150,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="bar.marker.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -196,18 +166,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="bar.marker.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -216,18 +182,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="bar.marker.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -236,18 +198,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="bar.marker.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -256,18 +214,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="bar.marker.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -276,16 +230,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='ticks', parent_name='bar.marker.colorbar', **kwargs + self, plotly_name="ticks", parent_name="bar.marker.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -294,18 +247,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="bar.marker.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -314,20 +263,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="bar.marker.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -336,19 +281,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="bar.marker.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -357,19 +298,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='bar.marker.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="bar.marker.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -377,22 +320,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="tickformatstops", parent_name="bar.marker.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -426,7 +364,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -436,18 +374,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="bar.marker.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -456,19 +390,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="bar.marker.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -489,7 +420,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -499,18 +430,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="bar.marker.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -519,18 +446,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="bar.marker.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -539,16 +462,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name='tick0', parent_name='bar.marker.colorbar', **kwargs + self, plotly_name="tick0", parent_name="bar.marker.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,19 +479,15 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='thicknessmode', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="thicknessmode", parent_name="bar.marker.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -578,19 +496,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="bar.marker.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -598,22 +512,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="showticksuffix", parent_name="bar.marker.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -621,22 +529,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="showtickprefix", parent_name="bar.marker.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -645,18 +547,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="showticklabels", parent_name="bar.marker.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -665,19 +563,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="showexponent", parent_name="bar.marker.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -685,21 +579,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='bar.marker.colorbar', + plotly_name="separatethousands", + parent_name="bar.marker.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -708,19 +599,15 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlinewidth', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="outlinewidth", parent_name="bar.marker.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -729,18 +616,14 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outlinecolor', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="outlinecolor", parent_name="bar.marker.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -749,19 +632,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="bar.marker.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -770,19 +649,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="bar.marker.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -791,16 +666,13 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='len', parent_name='bar.marker.colorbar', **kwargs - ): + def __init__(self, plotly_name="len", parent_name="bar.marker.colorbar", **kwargs): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -808,24 +680,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="exponentformat", parent_name="bar.marker.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -834,16 +698,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name='dtick', parent_name='bar.marker.colorbar', **kwargs + self, plotly_name="dtick", parent_name="bar.marker.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -852,19 +715,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="bar.marker.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -873,18 +732,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="bar.marker.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -893,17 +748,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='bar.marker.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="bar.marker.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/__init__.py index 358ff263f75..9cfe21cf019 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='bar.marker.colorbar.tickfont', - **kwargs + self, plotly_name="size", parent_name="bar.marker.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='bar.marker.colorbar.tickfont', - **kwargs + self, plotly_name="family", parent_name="bar.marker.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='bar.marker.colorbar.tickfont', - **kwargs + self, plotly_name="color", parent_name="bar.marker.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/__init__.py index fd6f7a7cc52..dbed4ff4cc7 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='bar.marker.colorbar.tickformatstop', + plotly_name="value", + parent_name="bar.marker.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='bar.marker.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="bar.marker.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='bar.marker.colorbar.tickformatstop', + plotly_name="name", + parent_name="bar.marker.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='bar.marker.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="bar.marker.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='bar.marker.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="bar.marker.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/__init__.py index d591fab8644..a4ca25d6e04 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='bar.marker.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="bar.marker.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='bar.marker.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="bar.marker.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='bar.marker.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="bar.marker.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/__init__.py index 0a029b56209..daa8a19ebf3 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/marker/colorbar/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='bar.marker.colorbar.title.font', - **kwargs + self, plotly_name="size", parent_name="bar.marker.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='bar.marker.colorbar.title.font', + plotly_name="family", + parent_name="bar.marker.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +40,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='bar.marker.colorbar.title.font', + plotly_name="color", + parent_name="bar.marker.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/marker/line/__init__.py b/packages/python/plotly/plotly/validators/bar/marker/line/__init__.py index 4b5ac828893..ab5b7407141 100644 --- a/packages/python/plotly/plotly/validators/bar/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/marker/line/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='widthsrc', parent_name='bar.marker.line', **kwargs - ): + def __init__(self, plotly_name="widthsrc", parent_name="bar.marker.line", **kwargs): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,18 +16,15 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='bar.marker.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="bar.marker.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -41,18 +33,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='bar.marker.line', - **kwargs + self, plotly_name="reversescale", parent_name="bar.marker.line", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -61,15 +49,12 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorsrc', parent_name='bar.marker.line', **kwargs - ): + def __init__(self, plotly_name="colorsrc", parent_name="bar.marker.line", **kwargs): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -78,21 +63,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='bar.marker.line', - **kwargs + self, plotly_name="colorscale", parent_name="bar.marker.line", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -101,17 +80,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name='coloraxis', parent_name='bar.marker.line', **kwargs + self, plotly_name="coloraxis", parent_name="bar.marker.line", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -120,19 +98,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='bar.marker.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="bar.marker.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), - colorscale_path=kwargs.pop( - 'colorscale_path', 'bar.marker.line.colorscale' - ), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), + colorscale_path=kwargs.pop("colorscale_path", "bar.marker.line.colorscale"), **kwargs ) @@ -141,16 +114,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmin', parent_name='bar.marker.line', **kwargs - ): + def __init__(self, plotly_name="cmin", parent_name="bar.marker.line", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,16 +129,13 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmid', parent_name='bar.marker.line', **kwargs - ): + def __init__(self, plotly_name="cmid", parent_name="bar.marker.line", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -177,16 +144,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmax', parent_name='bar.marker.line', **kwargs - ): + def __init__(self, plotly_name="cmax", parent_name="bar.marker.line", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -195,16 +159,13 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='bar.marker.line', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="bar.marker.line", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -213,18 +174,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='bar.marker.line', - **kwargs + self, plotly_name="autocolorscale", parent_name="bar.marker.line", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/outsidetextfont/__init__.py b/packages/python/plotly/plotly/validators/bar/outsidetextfont/__init__.py index 8709f8b4191..9effadf7701 100644 --- a/packages/python/plotly/plotly/validators/bar/outsidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/outsidetextfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='bar.outsidetextfont', - **kwargs + self, plotly_name="sizesrc", parent_name="bar.outsidetextfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='bar.outsidetextfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="bar.outsidetextfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,18 +34,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='bar.outsidetextfont', - **kwargs + self, plotly_name="familysrc", parent_name="bar.outsidetextfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -63,21 +50,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='bar.outsidetextfont', - **kwargs + self, plotly_name="family", parent_name="bar.outsidetextfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -86,18 +69,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='bar.outsidetextfont', - **kwargs + self, plotly_name="colorsrc", parent_name="bar.outsidetextfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -106,15 +85,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='color', parent_name='bar.outsidetextfont', **kwargs + self, plotly_name="color", parent_name="bar.outsidetextfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/selected/__init__.py b/packages/python/plotly/plotly/validators/bar/selected/__init__.py index 5aa174996ad..d965d7bed75 100644 --- a/packages/python/plotly/plotly/validators/bar/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/selected/__init__.py @@ -1,22 +1,18 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='textfont', parent_name='bar.selected', **kwargs - ): + def __init__(self, plotly_name="textfont", parent_name="bar.selected", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of selected points. -""" +""", ), **kwargs ) @@ -26,21 +22,19 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='bar.selected', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="bar.selected", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of selected points. opacity Sets the marker opacity of selected points. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/bar/selected/marker/__init__.py index 80b29aef8ee..be2358bbec0 100644 --- a/packages/python/plotly/plotly/validators/bar/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/selected/marker/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='bar.selected.marker', - **kwargs + self, plotly_name="opacity", parent_name="bar.selected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -26,14 +20,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='color', parent_name='bar.selected.marker', **kwargs + self, plotly_name="color", parent_name="bar.selected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/bar/selected/textfont/__init__.py index b65a348752a..92d5879e018 100644 --- a/packages/python/plotly/plotly/validators/bar/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/selected/textfont/__init__.py @@ -1,20 +1,14 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='bar.selected.textfont', - **kwargs + self, plotly_name="color", parent_name="bar.selected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/stream/__init__.py b/packages/python/plotly/plotly/validators/bar/stream/__init__.py index 539e0d220d3..b58ee49dbdb 100644 --- a/packages/python/plotly/plotly/validators/bar/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='bar.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="bar.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='bar.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="bar.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/textfont/__init__.py b/packages/python/plotly/plotly/validators/bar/textfont/__init__.py index 876b2be0062..785f50ea192 100644 --- a/packages/python/plotly/plotly/validators/bar/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/textfont/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='sizesrc', parent_name='bar.textfont', **kwargs - ): + def __init__(self, plotly_name="sizesrc", parent_name="bar.textfont", **kwargs): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,17 +16,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='bar.textfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="bar.textfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -40,15 +32,12 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='familysrc', parent_name='bar.textfont', **kwargs - ): + def __init__(self, plotly_name="familysrc", parent_name="bar.textfont", **kwargs): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -57,18 +46,15 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='family', parent_name='bar.textfont', **kwargs - ): + def __init__(self, plotly_name="family", parent_name="bar.textfont", **kwargs): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -77,15 +63,12 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorsrc', parent_name='bar.textfont', **kwargs - ): + def __init__(self, plotly_name="colorsrc", parent_name="bar.textfont", **kwargs): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -94,15 +77,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='bar.textfont', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="bar.textfont", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/unselected/__init__.py b/packages/python/plotly/plotly/validators/bar/unselected/__init__.py index 7f0cddaa14c..e6f2c42291f 100644 --- a/packages/python/plotly/plotly/validators/bar/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/unselected/__init__.py @@ -1,23 +1,19 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='textfont', parent_name='bar.unselected', **kwargs - ): + def __init__(self, plotly_name="textfont", parent_name="bar.unselected", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) @@ -27,23 +23,21 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='bar.unselected', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="bar.unselected", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of unselected points, applied only when a selection exists. opacity Sets the marker opacity of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/bar/unselected/marker/__init__.py index aada914340f..5ada327fe94 100644 --- a/packages/python/plotly/plotly/validators/bar/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/unselected/marker/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='bar.unselected.marker', - **kwargs + self, plotly_name="opacity", parent_name="bar.unselected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -26,17 +20,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='bar.unselected.marker', - **kwargs + self, plotly_name="color", parent_name="bar.unselected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/bar/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/bar/unselected/textfont/__init__.py index bb347de569d..1bc89eea0df 100644 --- a/packages/python/plotly/plotly/validators/bar/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/bar/unselected/textfont/__init__.py @@ -1,20 +1,14 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='bar.unselected.textfont', - **kwargs + self, plotly_name="color", parent_name="bar.unselected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/barpolar/__init__.py b/packages/python/plotly/plotly/validators/barpolar/__init__.py index 5f7eeabf857..e5f57e82165 100644 --- a/packages/python/plotly/plotly/validators/barpolar/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='widthsrc', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="widthsrc", parent_name="barpolar", **kwargs): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,15 +16,14 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='width', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="width", parent_name="barpolar", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -38,16 +32,13 @@ def __init__(self, plotly_name='width', parent_name='barpolar', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="barpolar", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -56,23 +47,21 @@ def __init__( class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='unselected', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="unselected", parent_name="barpolar", **kwargs): super(UnselectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_class_str=kwargs.pop("data_class_str", "Unselected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.barpolar.unselected.Marker instance or dict with compatible properties textfont plotly.graph_objs.barpolar.unselected.Textfont instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -82,15 +71,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="barpolar", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -99,14 +85,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="uid", parent_name="barpolar", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,16 +100,13 @@ def __init__(self, plotly_name='uid', parent_name='barpolar', **kwargs): class ThetaunitValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='thetaunit', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="thetaunit", parent_name="barpolar", **kwargs): super(ThetaunitValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['radians', 'degrees', 'gradians']), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["radians", "degrees", "gradians"]), **kwargs ) @@ -133,15 +115,12 @@ def __init__( class ThetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='thetasrc', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="thetasrc", parent_name="barpolar", **kwargs): super(ThetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -150,13 +129,12 @@ def __init__( class Theta0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='theta0', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="theta0", parent_name="barpolar", **kwargs): super(Theta0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -165,13 +143,12 @@ def __init__(self, plotly_name='theta0', parent_name='barpolar', **kwargs): class ThetaValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='theta', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="theta", parent_name="barpolar", **kwargs): super(ThetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -180,15 +157,12 @@ def __init__(self, plotly_name='theta', parent_name='barpolar', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="barpolar", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -197,14 +171,13 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="text", parent_name="barpolar", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -213,16 +186,13 @@ def __init__(self, plotly_name='text', parent_name='barpolar', **kwargs): class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='subplot', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="subplot", parent_name="barpolar", **kwargs): super(SubplotValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'polar'), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "polar"), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -231,14 +201,14 @@ def __init__( class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="stream", parent_name="barpolar", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -248,7 +218,7 @@ def __init__(self, plotly_name='stream', parent_name='barpolar', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -258,15 +228,12 @@ def __init__(self, plotly_name='stream', parent_name='barpolar', **kwargs): class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="barpolar", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -275,15 +242,12 @@ def __init__( class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='selectedpoints', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="selectedpoints", parent_name="barpolar", **kwargs): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -292,23 +256,21 @@ def __init__( class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='selected', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="selected", parent_name="barpolar", **kwargs): super(SelectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_class_str=kwargs.pop("data_class_str", "Selected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.barpolar.selected.Marker instance or dict with compatible properties textfont plotly.graph_objs.barpolar.selected.Textfont instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -318,13 +280,12 @@ def __init__( class RsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='rsrc', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="rsrc", parent_name="barpolar", **kwargs): super(RsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -333,13 +294,12 @@ def __init__(self, plotly_name='rsrc', parent_name='barpolar', **kwargs): class R0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='r0', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="r0", parent_name="barpolar", **kwargs): super(R0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -348,13 +308,12 @@ def __init__(self, plotly_name='r0', parent_name='barpolar', **kwargs): class RValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='r', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="r", parent_name="barpolar", **kwargs): super(RValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -363,17 +322,14 @@ def __init__(self, plotly_name='r', parent_name='barpolar', **kwargs): class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="barpolar", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -382,15 +338,12 @@ def __init__( class OffsetsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='offsetsrc', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="offsetsrc", parent_name="barpolar", **kwargs): super(OffsetsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -399,14 +352,13 @@ def __init__( class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='offset', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="offset", parent_name="barpolar", **kwargs): super(OffsetValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -415,13 +367,12 @@ def __init__(self, plotly_name='offset', parent_name='barpolar', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="name", parent_name="barpolar", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -430,15 +381,12 @@ def __init__(self, plotly_name='name', parent_name='barpolar', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="barpolar", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -447,14 +395,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="meta", parent_name="barpolar", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -463,14 +410,14 @@ def __init__(self, plotly_name='meta', parent_name='barpolar', **kwargs): class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='marker', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="marker", parent_name="barpolar", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -565,7 +512,7 @@ def __init__(self, plotly_name='marker', parent_name='barpolar', **kwargs): Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array. -""" +""", ), **kwargs ) @@ -575,15 +522,12 @@ def __init__(self, plotly_name='marker', parent_name='barpolar', **kwargs): class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='legendgroup', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="legendgroup", parent_name="barpolar", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -592,13 +536,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="barpolar", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -607,14 +550,13 @@ def __init__(self, plotly_name='idssrc', parent_name='barpolar', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="ids", parent_name="barpolar", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -623,15 +565,12 @@ def __init__(self, plotly_name='ids', parent_name='barpolar', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="barpolar", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -640,16 +579,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="barpolar", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -658,15 +594,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='hovertemplatesrc', parent_name='barpolar', **kwargs + self, plotly_name="hovertemplatesrc", parent_name="barpolar", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -675,16 +610,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="barpolar", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -693,16 +625,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="barpolar", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -738,7 +668,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -748,15 +678,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="barpolar", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -765,18 +692,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="barpolar", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['r', 'theta', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["r", "theta", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -785,13 +709,12 @@ def __init__( class DthetaValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dtheta', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="dtheta", parent_name="barpolar", **kwargs): super(DthetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -800,13 +723,12 @@ def __init__(self, plotly_name='dtheta', parent_name='barpolar', **kwargs): class DrValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dr', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="dr", parent_name="barpolar", **kwargs): super(DrValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -815,15 +737,12 @@ def __init__(self, plotly_name='dr', parent_name='barpolar', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="barpolar", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -832,15 +751,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="barpolar", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -849,15 +765,12 @@ def __init__( class BasesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='basesrc', parent_name='barpolar', **kwargs - ): + def __init__(self, plotly_name="basesrc", parent_name="barpolar", **kwargs): super(BasesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -866,13 +779,12 @@ def __init__( class BaseValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='base', parent_name='barpolar', **kwargs): + def __init__(self, plotly_name="base", parent_name="barpolar", **kwargs): super(BaseValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/__init__.py index 402b6e0522e..3e4cd4d128b 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='barpolar.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="barpolar.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='barpolar.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="barpolar.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='barpolar.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="barpolar.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='barpolar.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="barpolar.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='barpolar.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="barpolar.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='barpolar.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="barpolar.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,19 +132,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='barpolar.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="barpolar.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -177,18 +149,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='barpolar.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="barpolar.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -197,16 +165,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='align', parent_name='barpolar.hoverlabel', **kwargs + self, plotly_name="align", parent_name="barpolar.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/__init__.py index 899a0b6ef12..4bd7f161992 100644 --- a/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='barpolar.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="barpolar.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='barpolar.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="barpolar.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='barpolar.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="barpolar.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='barpolar.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="barpolar.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='barpolar.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="barpolar.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='barpolar.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="barpolar.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/__init__.py b/packages/python/plotly/plotly/validators/barpolar/marker/__init__.py index 30b635bbfd6..f095afc5283 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/__init__.py @@ -1,18 +1,15 @@ - - import _plotly_utils.basevalidators class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='showscale', parent_name='barpolar.marker', **kwargs + self, plotly_name="showscale", parent_name="barpolar.marker", **kwargs ): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,18 +18,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='barpolar.marker', - **kwargs + self, plotly_name="reversescale", parent_name="barpolar.marker", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -41,18 +34,14 @@ def __init__( class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='opacitysrc', - parent_name='barpolar.marker', - **kwargs + self, plotly_name="opacitysrc", parent_name="barpolar.marker", **kwargs ): super(OpacitysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -61,18 +50,15 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='barpolar.marker', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="barpolar.marker", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -81,16 +67,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='barpolar.marker', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="barpolar.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -179,7 +163,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -189,15 +173,12 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorsrc', parent_name='barpolar.marker', **kwargs - ): + def __init__(self, plotly_name="colorsrc", parent_name="barpolar.marker", **kwargs): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -206,21 +187,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='barpolar.marker', - **kwargs + self, plotly_name="colorscale", parent_name="barpolar.marker", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -229,16 +204,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorbar', parent_name='barpolar.marker', **kwargs - ): + def __init__(self, plotly_name="colorbar", parent_name="barpolar.marker", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -449,7 +422,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -459,17 +432,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, plotly_name='coloraxis', parent_name='barpolar.marker', **kwargs + self, plotly_name="coloraxis", parent_name="barpolar.marker", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -478,19 +450,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='barpolar.marker', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="barpolar.marker", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), - colorscale_path=kwargs.pop( - 'colorscale_path', 'barpolar.marker.colorscale' - ), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), + colorscale_path=kwargs.pop("colorscale_path", "barpolar.marker.colorscale"), **kwargs ) @@ -499,16 +466,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmin', parent_name='barpolar.marker', **kwargs - ): + def __init__(self, plotly_name="cmin", parent_name="barpolar.marker", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -517,16 +481,13 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmid', parent_name='barpolar.marker', **kwargs - ): + def __init__(self, plotly_name="cmid", parent_name="barpolar.marker", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -535,16 +496,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmax', parent_name='barpolar.marker', **kwargs - ): + def __init__(self, plotly_name="cmax", parent_name="barpolar.marker", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -553,16 +511,13 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='barpolar.marker', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="barpolar.marker", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -571,18 +526,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='barpolar.marker', - **kwargs + self, plotly_name="autocolorscale", parent_name="barpolar.marker", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/__init__.py index dfe74896f0f..6608fc3bc9d 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="barpolar.marker.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="barpolar.marker.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,20 +36,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='y', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="y", parent_name="barpolar.marker.colorbar", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -68,19 +54,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="barpolar.marker.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -89,19 +71,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="barpolar.marker.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -110,20 +88,16 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='x', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="x", parent_name="barpolar.marker.colorbar", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -132,19 +106,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="title", parent_name="barpolar.marker.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -160,7 +131,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -170,19 +141,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="barpolar.marker.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -191,18 +158,17 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='tickvalssrc', - parent_name='barpolar.marker.colorbar', + plotly_name="tickvalssrc", + parent_name="barpolar.marker.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -211,18 +177,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="barpolar.marker.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -231,18 +193,17 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='ticktextsrc', - parent_name='barpolar.marker.colorbar', + plotly_name="ticktextsrc", + parent_name="barpolar.marker.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -251,18 +212,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="barpolar.marker.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -271,18 +228,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="barpolar.marker.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -291,19 +244,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="barpolar.marker.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -312,18 +261,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="barpolar.marker.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -332,20 +277,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="barpolar.marker.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -354,19 +295,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="barpolar.marker.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -375,19 +312,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='barpolar.marker.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="barpolar.marker.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -395,22 +334,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='barpolar.marker.colorbar', + plotly_name="tickformatstops", + parent_name="barpolar.marker.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -444,7 +381,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -454,18 +391,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="barpolar.marker.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -474,19 +407,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="barpolar.marker.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -507,7 +437,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -517,18 +447,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="barpolar.marker.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -537,18 +463,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="barpolar.marker.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,19 +479,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="barpolar.marker.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -578,19 +496,18 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='thicknessmode', - parent_name='barpolar.marker.colorbar', + plotly_name="thicknessmode", + parent_name="barpolar.marker.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -599,19 +516,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="barpolar.marker.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -619,22 +532,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='barpolar.marker.colorbar', + plotly_name="showticksuffix", + parent_name="barpolar.marker.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -642,22 +552,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='barpolar.marker.colorbar', + plotly_name="showtickprefix", + parent_name="barpolar.marker.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -666,18 +573,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='barpolar.marker.colorbar', + plotly_name="showticklabels", + parent_name="barpolar.marker.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -686,19 +592,18 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='showexponent', - parent_name='barpolar.marker.colorbar', + plotly_name="showexponent", + parent_name="barpolar.marker.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -706,21 +611,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='barpolar.marker.colorbar', + plotly_name="separatethousands", + parent_name="barpolar.marker.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -729,19 +631,18 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='outlinewidth', - parent_name='barpolar.marker.colorbar', + plotly_name="outlinewidth", + parent_name="barpolar.marker.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -750,18 +651,17 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='outlinecolor', - parent_name='barpolar.marker.colorbar', + plotly_name="outlinecolor", + parent_name="barpolar.marker.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -770,19 +670,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="barpolar.marker.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -791,19 +687,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="barpolar.marker.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -812,19 +704,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='len', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="len", parent_name="barpolar.marker.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -832,24 +720,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='barpolar.marker.colorbar', + plotly_name="exponentformat", + parent_name="barpolar.marker.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -858,19 +741,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="barpolar.marker.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -879,19 +758,18 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='borderwidth', - parent_name='barpolar.marker.colorbar', + plotly_name="borderwidth", + parent_name="barpolar.marker.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -900,18 +778,17 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='barpolar.marker.colorbar', + plotly_name="bordercolor", + parent_name="barpolar.marker.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -920,17 +797,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='barpolar.marker.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="barpolar.marker.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/__init__.py index fc8a1edf6a2..f5e29a30f28 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='barpolar.marker.colorbar.tickfont', + plotly_name="size", + parent_name="barpolar.marker.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='barpolar.marker.colorbar.tickfont', + plotly_name="family", + parent_name="barpolar.marker.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='barpolar.marker.colorbar.tickfont', + plotly_name="color", + parent_name="barpolar.marker.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/__init__.py index 88b489e9cab..01c3aad7f93 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='barpolar.marker.colorbar.tickformatstop', + plotly_name="value", + parent_name="barpolar.marker.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='barpolar.marker.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="barpolar.marker.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='barpolar.marker.colorbar.tickformatstop', + plotly_name="name", + parent_name="barpolar.marker.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='barpolar.marker.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="barpolar.marker.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='barpolar.marker.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="barpolar.marker.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/__init__.py index 48d579b65a4..81df9a61099 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='barpolar.marker.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="barpolar.marker.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='barpolar.marker.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="barpolar.marker.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='barpolar.marker.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="barpolar.marker.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/__init__.py index 31018ad478d..0cd23bea5eb 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='barpolar.marker.colorbar.title.font', + plotly_name="size", + parent_name="barpolar.marker.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='barpolar.marker.colorbar.title.font', + plotly_name="family", + parent_name="barpolar.marker.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='barpolar.marker.colorbar.title.font', + plotly_name="color", + parent_name="barpolar.marker.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/barpolar/marker/line/__init__.py b/packages/python/plotly/plotly/validators/barpolar/marker/line/__init__.py index 103ee57dcbc..4561a3b8cde 100644 --- a/packages/python/plotly/plotly/validators/barpolar/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/marker/line/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='widthsrc', - parent_name='barpolar.marker.line', - **kwargs + self, plotly_name="widthsrc", parent_name="barpolar.marker.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,21 +18,17 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='barpolar.marker.line', - **kwargs + self, plotly_name="width", parent_name="barpolar.marker.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,18 +37,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='barpolar.marker.line', - **kwargs + self, plotly_name="reversescale", parent_name="barpolar.marker.line", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -67,18 +53,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='barpolar.marker.line', - **kwargs + self, plotly_name="colorsrc", parent_name="barpolar.marker.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -87,21 +69,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='barpolar.marker.line', - **kwargs + self, plotly_name="colorscale", parent_name="barpolar.marker.line", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -110,20 +86,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='barpolar.marker.line', - **kwargs + self, plotly_name="coloraxis", parent_name="barpolar.marker.line", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -132,21 +104,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='barpolar.marker.line', - **kwargs + self, plotly_name="color", parent_name="barpolar.marker.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'barpolar.marker.line.colorscale' + "colorscale_path", "barpolar.marker.line.colorscale" ), **kwargs ) @@ -156,16 +124,15 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='cmin', parent_name='barpolar.marker.line', **kwargs + self, plotly_name="cmin", parent_name="barpolar.marker.line", **kwargs ): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -174,16 +141,15 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='cmid', parent_name='barpolar.marker.line', **kwargs + self, plotly_name="cmid", parent_name="barpolar.marker.line", **kwargs ): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -192,16 +158,15 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='cmax', parent_name='barpolar.marker.line', **kwargs + self, plotly_name="cmax", parent_name="barpolar.marker.line", **kwargs ): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -210,19 +175,15 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='cauto', - parent_name='barpolar.marker.line', - **kwargs + self, plotly_name="cauto", parent_name="barpolar.marker.line", **kwargs ): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -231,18 +192,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='barpolar.marker.line', - **kwargs + self, plotly_name="autocolorscale", parent_name="barpolar.marker.line", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/barpolar/selected/__init__.py b/packages/python/plotly/plotly/validators/barpolar/selected/__init__.py index 63f3b4e21b7..07b17d3b569 100644 --- a/packages/python/plotly/plotly/validators/barpolar/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/selected/__init__.py @@ -1,25 +1,20 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='barpolar.selected', - **kwargs + self, plotly_name="textfont", parent_name="barpolar.selected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of selected points. -""" +""", ), **kwargs ) @@ -29,21 +24,19 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='barpolar.selected', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="barpolar.selected", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of selected points. opacity Sets the marker opacity of selected points. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/barpolar/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/barpolar/selected/marker/__init__.py index ae94973f1bf..56a56fb028e 100644 --- a/packages/python/plotly/plotly/validators/barpolar/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/selected/marker/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='barpolar.selected.marker', - **kwargs + self, plotly_name="opacity", parent_name="barpolar.selected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -26,17 +20,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='barpolar.selected.marker', - **kwargs + self, plotly_name="color", parent_name="barpolar.selected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/barpolar/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/barpolar/selected/textfont/__init__.py index 4aec9f7c185..fae2fafded2 100644 --- a/packages/python/plotly/plotly/validators/barpolar/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/selected/textfont/__init__.py @@ -1,20 +1,14 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='barpolar.selected.textfont', - **kwargs + self, plotly_name="color", parent_name="barpolar.selected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/barpolar/stream/__init__.py b/packages/python/plotly/plotly/validators/barpolar/stream/__init__.py index 4a49d4b4876..89c66714430 100644 --- a/packages/python/plotly/plotly/validators/barpolar/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='barpolar.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="barpolar.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='maxpoints', parent_name='barpolar.stream', **kwargs + self, plotly_name="maxpoints", parent_name="barpolar.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/barpolar/unselected/__init__.py b/packages/python/plotly/plotly/validators/barpolar/unselected/__init__.py index a7a03b35ac2..2a72023fe85 100644 --- a/packages/python/plotly/plotly/validators/barpolar/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/unselected/__init__.py @@ -1,26 +1,21 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='barpolar.unselected', - **kwargs + self, plotly_name="textfont", parent_name="barpolar.unselected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) @@ -30,26 +25,23 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='barpolar.unselected', - **kwargs + self, plotly_name="marker", parent_name="barpolar.unselected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of unselected points, applied only when a selection exists. opacity Sets the marker opacity of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/barpolar/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/barpolar/unselected/marker/__init__.py index 7525e4b2743..af3e1dcc49f 100644 --- a/packages/python/plotly/plotly/validators/barpolar/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/unselected/marker/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='barpolar.unselected.marker', - **kwargs + self, plotly_name="opacity", parent_name="barpolar.unselected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -26,17 +20,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='barpolar.unselected.marker', - **kwargs + self, plotly_name="color", parent_name="barpolar.unselected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/barpolar/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/barpolar/unselected/textfont/__init__.py index aa0ebbb92bc..3ac35becaae 100644 --- a/packages/python/plotly/plotly/validators/barpolar/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/barpolar/unselected/textfont/__init__.py @@ -1,20 +1,14 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='barpolar.unselected.textfont', - **kwargs + self, plotly_name="color", parent_name="barpolar.unselected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/box/__init__.py b/packages/python/plotly/plotly/validators/box/__init__.py index b43c7679723..838c67b8c7b 100644 --- a/packages/python/plotly/plotly/validators/box/__init__.py +++ b/packages/python/plotly/plotly/validators/box/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='box', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="box", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,20 +16,32 @@ def __init__(self, plotly_name='ysrc', parent_name='box', **kwargs): class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='ycalendar', parent_name='box', **kwargs): + def __init__(self, plotly_name="ycalendar", parent_name="box", **kwargs): super(YcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -42,14 +51,13 @@ def __init__(self, plotly_name='ycalendar', parent_name='box', **kwargs): class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='yaxis', parent_name='box', **kwargs): + def __init__(self, plotly_name="yaxis", parent_name="box", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -58,13 +66,12 @@ def __init__(self, plotly_name='yaxis', parent_name='box', **kwargs): class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='y0', parent_name='box', **kwargs): + def __init__(self, plotly_name="y0", parent_name="box", **kwargs): super(Y0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -73,13 +80,12 @@ def __init__(self, plotly_name='y0', parent_name='box', **kwargs): class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='box', **kwargs): + def __init__(self, plotly_name="y", parent_name="box", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -88,13 +94,12 @@ def __init__(self, plotly_name='y', parent_name='box', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='box', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="box", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -103,20 +108,32 @@ def __init__(self, plotly_name='xsrc', parent_name='box', **kwargs): class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='xcalendar', parent_name='box', **kwargs): + def __init__(self, plotly_name="xcalendar", parent_name="box", **kwargs): super(XcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -126,14 +143,13 @@ def __init__(self, plotly_name='xcalendar', parent_name='box', **kwargs): class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='xaxis', parent_name='box', **kwargs): + def __init__(self, plotly_name="xaxis", parent_name="box", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -142,13 +158,12 @@ def __init__(self, plotly_name='xaxis', parent_name='box', **kwargs): class X0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='x0', parent_name='box', **kwargs): + def __init__(self, plotly_name="x0", parent_name="box", **kwargs): super(X0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -157,13 +172,12 @@ def __init__(self, plotly_name='x0', parent_name='box', **kwargs): class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='box', **kwargs): + def __init__(self, plotly_name="x", parent_name="box", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -172,14 +186,13 @@ def __init__(self, plotly_name='x', parent_name='box', **kwargs): class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='width', parent_name='box', **kwargs): + def __init__(self, plotly_name="width", parent_name="box", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -188,17 +201,14 @@ def __init__(self, plotly_name='width', parent_name='box', **kwargs): class WhiskerwidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='whiskerwidth', parent_name='box', **kwargs - ): + def __init__(self, plotly_name="whiskerwidth", parent_name="box", **kwargs): super(WhiskerwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -207,14 +217,13 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='box', **kwargs): + def __init__(self, plotly_name="visible", parent_name="box", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -223,18 +232,18 @@ def __init__(self, plotly_name='visible', parent_name='box', **kwargs): class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='unselected', parent_name='box', **kwargs): + def __init__(self, plotly_name="unselected", parent_name="box", **kwargs): super(UnselectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_class_str=kwargs.pop("data_class_str", "Unselected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.box.unselected.Marker instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -244,13 +253,12 @@ def __init__(self, plotly_name='unselected', parent_name='box', **kwargs): class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='uirevision', parent_name='box', **kwargs): + def __init__(self, plotly_name="uirevision", parent_name="box", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -259,14 +267,13 @@ def __init__(self, plotly_name='uirevision', parent_name='box', **kwargs): class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='box', **kwargs): + def __init__(self, plotly_name="uid", parent_name="box", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -275,13 +282,12 @@ def __init__(self, plotly_name='uid', parent_name='box', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='textsrc', parent_name='box', **kwargs): + def __init__(self, plotly_name="textsrc", parent_name="box", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -290,14 +296,13 @@ def __init__(self, plotly_name='textsrc', parent_name='box', **kwargs): class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='box', **kwargs): + def __init__(self, plotly_name="text", parent_name="box", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -306,14 +311,14 @@ def __init__(self, plotly_name='text', parent_name='box', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='box', **kwargs): + def __init__(self, plotly_name="stream", parent_name="box", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -323,7 +328,7 @@ def __init__(self, plotly_name='stream', parent_name='box', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -333,13 +338,12 @@ def __init__(self, plotly_name='stream', parent_name='box', **kwargs): class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__(self, plotly_name='showlegend', parent_name='box', **kwargs): + def __init__(self, plotly_name="showlegend", parent_name="box", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -348,15 +352,12 @@ def __init__(self, plotly_name='showlegend', parent_name='box', **kwargs): class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='selectedpoints', parent_name='box', **kwargs - ): + def __init__(self, plotly_name="selectedpoints", parent_name="box", **kwargs): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -365,18 +366,18 @@ def __init__( class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='selected', parent_name='box', **kwargs): + def __init__(self, plotly_name="selected", parent_name="box", **kwargs): super(SelectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_class_str=kwargs.pop("data_class_str", "Selected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.box.selected.Marker instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -386,15 +387,14 @@ def __init__(self, plotly_name='selected', parent_name='box', **kwargs): class PointposValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='pointpos', parent_name='box', **kwargs): + def __init__(self, plotly_name="pointpos", parent_name="box", **kwargs): super(PointposValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 2), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 2), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -403,14 +403,13 @@ def __init__(self, plotly_name='pointpos', parent_name='box', **kwargs): class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='orientation', parent_name='box', **kwargs): + def __init__(self, plotly_name="orientation", parent_name="box", **kwargs): super(OrientationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['v', 'h']), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["v", "h"]), **kwargs ) @@ -419,15 +418,14 @@ def __init__(self, plotly_name='orientation', parent_name='box', **kwargs): class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='opacity', parent_name='box', **kwargs): + def __init__(self, plotly_name="opacity", parent_name="box", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -436,13 +434,12 @@ def __init__(self, plotly_name='opacity', parent_name='box', **kwargs): class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='offsetgroup', parent_name='box', **kwargs): + def __init__(self, plotly_name="offsetgroup", parent_name="box", **kwargs): super(OffsetgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -451,15 +448,14 @@ def __init__(self, plotly_name='offsetgroup', parent_name='box', **kwargs): class NotchwidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='notchwidth', parent_name='box', **kwargs): + def __init__(self, plotly_name="notchwidth", parent_name="box", **kwargs): super(NotchwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 0.5), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 0.5), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -468,13 +464,12 @@ def __init__(self, plotly_name='notchwidth', parent_name='box', **kwargs): class NotchedValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__(self, plotly_name='notched', parent_name='box', **kwargs): + def __init__(self, plotly_name="notched", parent_name="box", **kwargs): super(NotchedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -483,13 +478,12 @@ def __init__(self, plotly_name='notched', parent_name='box', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='box', **kwargs): + def __init__(self, plotly_name="name", parent_name="box", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -498,13 +492,12 @@ def __init__(self, plotly_name='name', parent_name='box', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='box', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="box", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -513,14 +506,13 @@ def __init__(self, plotly_name='metasrc', parent_name='box', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='box', **kwargs): + def __init__(self, plotly_name="meta", parent_name="box", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -529,14 +521,14 @@ def __init__(self, plotly_name='meta', parent_name='box', **kwargs): class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='marker', parent_name='box', **kwargs): + def __init__(self, plotly_name="marker", parent_name="box", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets themarkercolor. It accepts either a specific color or an array of numbers that are @@ -559,7 +551,7 @@ def __init__(self, plotly_name='marker', parent_name='box', **kwargs): "-dot" to a symbol name. Adding 300 is equivalent to appending "-open-dot" or "dot- open" to a symbol name. -""" +""", ), **kwargs ) @@ -569,20 +561,20 @@ def __init__(self, plotly_name='marker', parent_name='box', **kwargs): class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='line', parent_name='box', **kwargs): + def __init__(self, plotly_name="line", parent_name="box", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of line bounding the box(es). width Sets the width (in px) of line bounding the box(es). -""" +""", ), **kwargs ) @@ -592,13 +584,12 @@ def __init__(self, plotly_name='line', parent_name='box', **kwargs): class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='legendgroup', parent_name='box', **kwargs): + def __init__(self, plotly_name="legendgroup", parent_name="box", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -607,15 +598,14 @@ def __init__(self, plotly_name='legendgroup', parent_name='box', **kwargs): class JitterValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='jitter', parent_name='box', **kwargs): + def __init__(self, plotly_name="jitter", parent_name="box", **kwargs): super(JitterValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -624,13 +614,12 @@ def __init__(self, plotly_name='jitter', parent_name='box', **kwargs): class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='box', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="box", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -639,14 +628,13 @@ def __init__(self, plotly_name='idssrc', parent_name='box', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='box', **kwargs): + def __init__(self, plotly_name="ids", parent_name="box", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -655,15 +643,12 @@ def __init__(self, plotly_name='ids', parent_name='box', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='box', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="box", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -672,14 +657,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='hovertext', parent_name='box', **kwargs): + def __init__(self, plotly_name="hovertext", parent_name="box", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -688,15 +672,12 @@ def __init__(self, plotly_name='hovertext', parent_name='box', **kwargs): class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertemplatesrc', parent_name='box', **kwargs - ): + def __init__(self, plotly_name="hovertemplatesrc", parent_name="box", **kwargs): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -705,16 +686,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='box', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="box", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -723,14 +701,13 @@ def __init__( class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__(self, plotly_name='hoveron', parent_name='box', **kwargs): + def __init__(self, plotly_name="hoveron", parent_name="box", **kwargs): super(HoveronValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - flags=kwargs.pop('flags', ['boxes', 'points']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + flags=kwargs.pop("flags", ["boxes", "points"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -739,14 +716,14 @@ def __init__(self, plotly_name='hoveron', parent_name='box', **kwargs): class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='hoverlabel', parent_name='box', **kwargs): + def __init__(self, plotly_name="hoverlabel", parent_name="box", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -782,7 +759,7 @@ def __init__(self, plotly_name='hoverlabel', parent_name='box', **kwargs): namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -792,15 +769,12 @@ def __init__(self, plotly_name='hoverlabel', parent_name='box', **kwargs): class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='box', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="box", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -809,16 +783,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__(self, plotly_name='hoverinfo', parent_name='box', **kwargs): + def __init__(self, plotly_name="hoverinfo", parent_name="box", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -827,14 +800,13 @@ def __init__(self, plotly_name='hoverinfo', parent_name='box', **kwargs): class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__(self, plotly_name='fillcolor', parent_name='box', **kwargs): + def __init__(self, plotly_name="fillcolor", parent_name="box", **kwargs): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -843,15 +815,12 @@ def __init__(self, plotly_name='fillcolor', parent_name='box', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='box', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="box", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -860,13 +829,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='customdata', parent_name='box', **kwargs): + def __init__(self, plotly_name="customdata", parent_name="box", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -875,15 +843,14 @@ def __init__(self, plotly_name='customdata', parent_name='box', **kwargs): class BoxpointsValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='boxpoints', parent_name='box', **kwargs): + def __init__(self, plotly_name="boxpoints", parent_name="box", **kwargs): super(BoxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', ['all', 'outliers', 'suspectedoutliers', False] + "values", ["all", "outliers", "suspectedoutliers", False] ), **kwargs ) @@ -893,14 +860,13 @@ def __init__(self, plotly_name='boxpoints', parent_name='box', **kwargs): class BoxmeanValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='boxmean', parent_name='box', **kwargs): + def __init__(self, plotly_name="boxmean", parent_name="box", **kwargs): super(BoxmeanValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', [True, 'sd', False]), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", [True, "sd", False]), **kwargs ) @@ -909,14 +875,11 @@ def __init__(self, plotly_name='boxmean', parent_name='box', **kwargs): class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='alignmentgroup', parent_name='box', **kwargs - ): + def __init__(self, plotly_name="alignmentgroup", parent_name="box", **kwargs): super(AlignmentgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/box/hoverlabel/__init__.py index 9881259e7c6..c2b62cba87a 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='box.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="box.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name='namelength', parent_name='box.hoverlabel', **kwargs + self, plotly_name="namelength", parent_name="box.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='box.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="box.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -82,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -92,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='box.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="box.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -112,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='box.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="box.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -133,15 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='bgcolorsrc', parent_name='box.hoverlabel', **kwargs + self, plotly_name="bgcolorsrc", parent_name="box.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -150,16 +132,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='box.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="box.hoverlabel", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -168,15 +147,12 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='alignsrc', parent_name='box.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="alignsrc", parent_name="box.hoverlabel", **kwargs): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -185,16 +161,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='box.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="box.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/box/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/box/hoverlabel/font/__init__.py index 3c26f207a75..8eaac4a4b67 100644 --- a/packages/python/plotly/plotly/validators/box/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/box/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='box.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="box.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='box.hoverlabel.font', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="box.hoverlabel.font", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,18 +34,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='box.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="box.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -63,21 +50,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='box.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="box.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -86,18 +69,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='box.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="box.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -106,15 +85,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='color', parent_name='box.hoverlabel.font', **kwargs + self, plotly_name="color", parent_name="box.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/box/line/__init__.py b/packages/python/plotly/plotly/validators/box/line/__init__.py index 98e0fe7b7e3..7886f024a27 100644 --- a/packages/python/plotly/plotly/validators/box/line/__init__.py +++ b/packages/python/plotly/plotly/validators/box/line/__init__.py @@ -1,17 +1,14 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='width', parent_name='box.line', **kwargs): + def __init__(self, plotly_name="width", parent_name="box.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -20,12 +17,11 @@ def __init__(self, plotly_name='width', parent_name='box.line', **kwargs): class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__(self, plotly_name='color', parent_name='box.line', **kwargs): + def __init__(self, plotly_name="color", parent_name="box.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/box/marker/__init__.py b/packages/python/plotly/plotly/validators/box/marker/__init__.py index 77741b88d3a..c7d5749aeb5 100644 --- a/packages/python/plotly/plotly/validators/box/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/box/marker/__init__.py @@ -1,80 +1,302 @@ - - import _plotly_utils.basevalidators class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='symbol', parent_name='box.marker', **kwargs - ): + def __init__(self, plotly_name="symbol", parent_name="box.marker", **kwargs): super(SymbolValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 0, 'circle', 100, 'circle-open', 200, 'circle-dot', 300, - 'circle-open-dot', 1, 'square', 101, 'square-open', 201, - 'square-dot', 301, 'square-open-dot', 2, 'diamond', 102, - 'diamond-open', 202, 'diamond-dot', 302, - 'diamond-open-dot', 3, 'cross', 103, 'cross-open', 203, - 'cross-dot', 303, 'cross-open-dot', 4, 'x', 104, 'x-open', - 204, 'x-dot', 304, 'x-open-dot', 5, 'triangle-up', 105, - 'triangle-up-open', 205, 'triangle-up-dot', 305, - 'triangle-up-open-dot', 6, 'triangle-down', 106, - 'triangle-down-open', 206, 'triangle-down-dot', 306, - 'triangle-down-open-dot', 7, 'triangle-left', 107, - 'triangle-left-open', 207, 'triangle-left-dot', 307, - 'triangle-left-open-dot', 8, 'triangle-right', 108, - 'triangle-right-open', 208, 'triangle-right-dot', 308, - 'triangle-right-open-dot', 9, 'triangle-ne', 109, - 'triangle-ne-open', 209, 'triangle-ne-dot', 309, - 'triangle-ne-open-dot', 10, 'triangle-se', 110, - 'triangle-se-open', 210, 'triangle-se-dot', 310, - 'triangle-se-open-dot', 11, 'triangle-sw', 111, - 'triangle-sw-open', 211, 'triangle-sw-dot', 311, - 'triangle-sw-open-dot', 12, 'triangle-nw', 112, - 'triangle-nw-open', 212, 'triangle-nw-dot', 312, - 'triangle-nw-open-dot', 13, 'pentagon', 113, - 'pentagon-open', 213, 'pentagon-dot', 313, - 'pentagon-open-dot', 14, 'hexagon', 114, 'hexagon-open', - 214, 'hexagon-dot', 314, 'hexagon-open-dot', 15, - 'hexagon2', 115, 'hexagon2-open', 215, 'hexagon2-dot', 315, - 'hexagon2-open-dot', 16, 'octagon', 116, 'octagon-open', - 216, 'octagon-dot', 316, 'octagon-open-dot', 17, 'star', - 117, 'star-open', 217, 'star-dot', 317, 'star-open-dot', - 18, 'hexagram', 118, 'hexagram-open', 218, 'hexagram-dot', - 318, 'hexagram-open-dot', 19, 'star-triangle-up', 119, - 'star-triangle-up-open', 219, 'star-triangle-up-dot', 319, - 'star-triangle-up-open-dot', 20, 'star-triangle-down', 120, - 'star-triangle-down-open', 220, 'star-triangle-down-dot', - 320, 'star-triangle-down-open-dot', 21, 'star-square', 121, - 'star-square-open', 221, 'star-square-dot', 321, - 'star-square-open-dot', 22, 'star-diamond', 122, - 'star-diamond-open', 222, 'star-diamond-dot', 322, - 'star-diamond-open-dot', 23, 'diamond-tall', 123, - 'diamond-tall-open', 223, 'diamond-tall-dot', 323, - 'diamond-tall-open-dot', 24, 'diamond-wide', 124, - 'diamond-wide-open', 224, 'diamond-wide-dot', 324, - 'diamond-wide-open-dot', 25, 'hourglass', 125, - 'hourglass-open', 26, 'bowtie', 126, 'bowtie-open', 27, - 'circle-cross', 127, 'circle-cross-open', 28, 'circle-x', - 128, 'circle-x-open', 29, 'square-cross', 129, - 'square-cross-open', 30, 'square-x', 130, 'square-x-open', - 31, 'diamond-cross', 131, 'diamond-cross-open', 32, - 'diamond-x', 132, 'diamond-x-open', 33, 'cross-thin', 133, - 'cross-thin-open', 34, 'x-thin', 134, 'x-thin-open', 35, - 'asterisk', 135, 'asterisk-open', 36, 'hash', 136, - 'hash-open', 236, 'hash-dot', 336, 'hash-open-dot', 37, - 'y-up', 137, 'y-up-open', 38, 'y-down', 138, 'y-down-open', - 39, 'y-left', 139, 'y-left-open', 40, 'y-right', 140, - 'y-right-open', 41, 'line-ew', 141, 'line-ew-open', 42, - 'line-ns', 142, 'line-ns-open', 43, 'line-ne', 143, - 'line-ne-open', 44, 'line-nw', 144, 'line-nw-open' - ] + "values", + [ + 0, + "circle", + 100, + "circle-open", + 200, + "circle-dot", + 300, + "circle-open-dot", + 1, + "square", + 101, + "square-open", + 201, + "square-dot", + 301, + "square-open-dot", + 2, + "diamond", + 102, + "diamond-open", + 202, + "diamond-dot", + 302, + "diamond-open-dot", + 3, + "cross", + 103, + "cross-open", + 203, + "cross-dot", + 303, + "cross-open-dot", + 4, + "x", + 104, + "x-open", + 204, + "x-dot", + 304, + "x-open-dot", + 5, + "triangle-up", + 105, + "triangle-up-open", + 205, + "triangle-up-dot", + 305, + "triangle-up-open-dot", + 6, + "triangle-down", + 106, + "triangle-down-open", + 206, + "triangle-down-dot", + 306, + "triangle-down-open-dot", + 7, + "triangle-left", + 107, + "triangle-left-open", + 207, + "triangle-left-dot", + 307, + "triangle-left-open-dot", + 8, + "triangle-right", + 108, + "triangle-right-open", + 208, + "triangle-right-dot", + 308, + "triangle-right-open-dot", + 9, + "triangle-ne", + 109, + "triangle-ne-open", + 209, + "triangle-ne-dot", + 309, + "triangle-ne-open-dot", + 10, + "triangle-se", + 110, + "triangle-se-open", + 210, + "triangle-se-dot", + 310, + "triangle-se-open-dot", + 11, + "triangle-sw", + 111, + "triangle-sw-open", + 211, + "triangle-sw-dot", + 311, + "triangle-sw-open-dot", + 12, + "triangle-nw", + 112, + "triangle-nw-open", + 212, + "triangle-nw-dot", + 312, + "triangle-nw-open-dot", + 13, + "pentagon", + 113, + "pentagon-open", + 213, + "pentagon-dot", + 313, + "pentagon-open-dot", + 14, + "hexagon", + 114, + "hexagon-open", + 214, + "hexagon-dot", + 314, + "hexagon-open-dot", + 15, + "hexagon2", + 115, + "hexagon2-open", + 215, + "hexagon2-dot", + 315, + "hexagon2-open-dot", + 16, + "octagon", + 116, + "octagon-open", + 216, + "octagon-dot", + 316, + "octagon-open-dot", + 17, + "star", + 117, + "star-open", + 217, + "star-dot", + 317, + "star-open-dot", + 18, + "hexagram", + 118, + "hexagram-open", + 218, + "hexagram-dot", + 318, + "hexagram-open-dot", + 19, + "star-triangle-up", + 119, + "star-triangle-up-open", + 219, + "star-triangle-up-dot", + 319, + "star-triangle-up-open-dot", + 20, + "star-triangle-down", + 120, + "star-triangle-down-open", + 220, + "star-triangle-down-dot", + 320, + "star-triangle-down-open-dot", + 21, + "star-square", + 121, + "star-square-open", + 221, + "star-square-dot", + 321, + "star-square-open-dot", + 22, + "star-diamond", + 122, + "star-diamond-open", + 222, + "star-diamond-dot", + 322, + "star-diamond-open-dot", + 23, + "diamond-tall", + 123, + "diamond-tall-open", + 223, + "diamond-tall-dot", + 323, + "diamond-tall-open-dot", + 24, + "diamond-wide", + 124, + "diamond-wide-open", + 224, + "diamond-wide-dot", + 324, + "diamond-wide-open-dot", + 25, + "hourglass", + 125, + "hourglass-open", + 26, + "bowtie", + 126, + "bowtie-open", + 27, + "circle-cross", + 127, + "circle-cross-open", + 28, + "circle-x", + 128, + "circle-x-open", + 29, + "square-cross", + 129, + "square-cross-open", + 30, + "square-x", + 130, + "square-x-open", + 31, + "diamond-cross", + 131, + "diamond-cross-open", + 32, + "diamond-x", + 132, + "diamond-x-open", + 33, + "cross-thin", + 133, + "cross-thin-open", + 34, + "x-thin", + 134, + "x-thin-open", + 35, + "asterisk", + 135, + "asterisk-open", + 36, + "hash", + 136, + "hash-open", + 236, + "hash-dot", + 336, + "hash-open-dot", + 37, + "y-up", + 137, + "y-up-open", + 38, + "y-down", + 138, + "y-down-open", + 39, + "y-left", + 139, + "y-left-open", + 40, + "y-right", + 140, + "y-right-open", + 41, + "line-ew", + 141, + "line-ew-open", + 42, + "line-ns", + 142, + "line-ns-open", + 43, + "line-ne", + 143, + "line-ne-open", + 44, + "line-nw", + 144, + "line-nw-open", + ], ), **kwargs ) @@ -84,16 +306,15 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='size', parent_name='box.marker', **kwargs): + def __init__(self, plotly_name="size", parent_name="box.marker", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -102,15 +323,12 @@ def __init__(self, plotly_name='size', parent_name='box.marker', **kwargs): class OutliercolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='outliercolor', parent_name='box.marker', **kwargs - ): + def __init__(self, plotly_name="outliercolor", parent_name="box.marker", **kwargs): super(OutliercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -119,19 +337,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='box.marker', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="box.marker", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -140,14 +355,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='line', parent_name='box.marker', **kwargs): + def __init__(self, plotly_name="line", parent_name="box.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets themarker.linecolor. It accepts either a specific color or an array of numbers that are @@ -164,7 +379,7 @@ def __init__(self, plotly_name='line', parent_name='box.marker', **kwargs): width Sets the width (in px) of the lines bounding the marker points. -""" +""", ), **kwargs ) @@ -174,16 +389,13 @@ def __init__(self, plotly_name='line', parent_name='box.marker', **kwargs): class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='box.marker', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="box.marker", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/box/marker/line/__init__.py b/packages/python/plotly/plotly/validators/box/marker/line/__init__.py index df0e8ddd110..88952e88861 100644 --- a/packages/python/plotly/plotly/validators/box/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/box/marker/line/__init__.py @@ -1,21 +1,16 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='box.marker.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="box.marker.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,19 +19,15 @@ def __init__( class OutlierwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlierwidth', - parent_name='box.marker.line', - **kwargs + self, plotly_name="outlierwidth", parent_name="box.marker.line", **kwargs ): super(OutlierwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -45,18 +36,14 @@ def __init__( class OutliercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outliercolor', - parent_name='box.marker.line', - **kwargs + self, plotly_name="outliercolor", parent_name="box.marker.line", **kwargs ): super(OutliercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -65,16 +52,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='box.marker.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="box.marker.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/box/selected/__init__.py b/packages/python/plotly/plotly/validators/box/selected/__init__.py index 76fe511a83b..2471ec83aed 100644 --- a/packages/python/plotly/plotly/validators/box/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/box/selected/__init__.py @@ -1,26 +1,22 @@ - - import _plotly_utils.basevalidators class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='box.selected', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="box.selected", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of selected points. opacity Sets the marker opacity of selected points. size Sets the marker size of selected points. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/box/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/box/selected/marker/__init__.py index 533e44b48f6..405168af7a8 100644 --- a/packages/python/plotly/plotly/validators/box/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/box/selected/marker/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='box.selected.marker', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="box.selected.marker", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,20 +17,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='box.selected.marker', - **kwargs + self, plotly_name="opacity", parent_name="box.selected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -44,14 +35,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='color', parent_name='box.selected.marker', **kwargs + self, plotly_name="color", parent_name="box.selected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/box/stream/__init__.py b/packages/python/plotly/plotly/validators/box/stream/__init__.py index fc1d17c02f5..870615edf4b 100644 --- a/packages/python/plotly/plotly/validators/box/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/box/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='box.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="box.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='box.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="box.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/box/unselected/__init__.py b/packages/python/plotly/plotly/validators/box/unselected/__init__.py index dc23d0346d3..d13778126ff 100644 --- a/packages/python/plotly/plotly/validators/box/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/box/unselected/__init__.py @@ -1,19 +1,15 @@ - - import _plotly_utils.basevalidators class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='box.unselected', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="box.unselected", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of unselected points, applied only when a selection exists. @@ -23,7 +19,7 @@ def __init__( size Sets the marker size of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/box/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/box/unselected/marker/__init__.py index 95e8ff5260c..a66317e5739 100644 --- a/packages/python/plotly/plotly/validators/box/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/box/unselected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='box.unselected.marker', - **kwargs + self, plotly_name="size", parent_name="box.unselected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='box.unselected.marker', - **kwargs + self, plotly_name="opacity", parent_name="box.unselected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='box.unselected.marker', - **kwargs + self, plotly_name="color", parent_name="box.unselected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/candlestick/__init__.py b/packages/python/plotly/plotly/validators/candlestick/__init__.py index af4b14c2e23..1744c1c0b2c 100644 --- a/packages/python/plotly/plotly/validators/candlestick/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='yaxis', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="yaxis", parent_name="candlestick", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -22,15 +17,12 @@ def __init__( class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='xsrc', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="xsrc", parent_name="candlestick", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,22 +31,32 @@ def __init__( class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xcalendar', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="xcalendar", parent_name="candlestick", **kwargs): super(XcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -64,16 +66,13 @@ def __init__( class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='xaxis', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="xaxis", parent_name="candlestick", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -82,13 +81,12 @@ def __init__( class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='candlestick', **kwargs): + def __init__(self, plotly_name="x", parent_name="candlestick", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -97,17 +95,14 @@ def __init__(self, plotly_name='x', parent_name='candlestick', **kwargs): class WhiskerwidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='whiskerwidth', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="whiskerwidth", parent_name="candlestick", **kwargs): super(WhiskerwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -116,16 +111,13 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="candlestick", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -134,15 +126,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="candlestick", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -151,14 +140,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='candlestick', **kwargs): + def __init__(self, plotly_name="uid", parent_name="candlestick", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -167,15 +155,12 @@ def __init__(self, plotly_name='uid', parent_name='candlestick', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="candlestick", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -184,16 +169,13 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='text', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="text", parent_name="candlestick", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -202,16 +184,14 @@ def __init__( class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="candlestick", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -221,7 +201,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -231,15 +211,12 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="candlestick", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -248,18 +225,14 @@ def __init__( class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='selectedpoints', - parent_name='candlestick', - **kwargs + self, plotly_name="selectedpoints", parent_name="candlestick", **kwargs ): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -268,15 +241,12 @@ def __init__( class OpensrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='opensrc', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="opensrc", parent_name="candlestick", **kwargs): super(OpensrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -285,15 +255,12 @@ def __init__( class OpenValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='open', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="open", parent_name="candlestick", **kwargs): super(OpenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -302,17 +269,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="candlestick", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -321,15 +285,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="candlestick", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -338,15 +299,12 @@ def __init__( class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="candlestick", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -355,16 +313,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='meta', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="meta", parent_name="candlestick", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -373,15 +328,12 @@ def __init__( class LowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='lowsrc', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="lowsrc", parent_name="candlestick", **kwargs): super(LowsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -390,13 +342,12 @@ def __init__( class LowValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='low', parent_name='candlestick', **kwargs): + def __init__(self, plotly_name="low", parent_name="candlestick", **kwargs): super(LowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -405,23 +356,21 @@ def __init__(self, plotly_name='low', parent_name='candlestick', **kwargs): class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="candlestick", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ width Sets the width (in px) of line bounding the box(es). Note that this style setting can also be set per direction via `increasing.line.width` and `decreasing.line.width`. -""" +""", ), **kwargs ) @@ -431,15 +380,12 @@ def __init__( class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='legendgroup', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="legendgroup", parent_name="candlestick", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -448,16 +394,14 @@ def __init__( class IncreasingValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='increasing', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="increasing", parent_name="candlestick", **kwargs): super(IncreasingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Increasing'), + data_class_str=kwargs.pop("data_class_str", "Increasing"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fillcolor Sets the fill color. Defaults to a half- transparent variant of the line color, marker @@ -466,7 +410,7 @@ def __init__( line plotly.graph_objs.candlestick.increasing.Line instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -476,15 +420,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="candlestick", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -493,14 +434,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='candlestick', **kwargs): + def __init__(self, plotly_name="ids", parent_name="candlestick", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -509,15 +449,12 @@ def __init__(self, plotly_name='ids', parent_name='candlestick', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="candlestick", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -526,16 +463,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="candlestick", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -544,16 +478,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="candlestick", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -592,7 +524,7 @@ def __init__( split Show hover information (open, close, high, low) in separate labels. -""" +""", ), **kwargs ) @@ -602,15 +534,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="candlestick", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -619,18 +548,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="candlestick", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -639,15 +565,12 @@ def __init__( class HighsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='highsrc', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="highsrc", parent_name="candlestick", **kwargs): super(HighsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -656,15 +579,12 @@ def __init__( class HighValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='high', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="high", parent_name="candlestick", **kwargs): super(HighValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -673,16 +593,14 @@ def __init__( class DecreasingValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='decreasing', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="decreasing", parent_name="candlestick", **kwargs): super(DecreasingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Decreasing'), + data_class_str=kwargs.pop("data_class_str", "Decreasing"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fillcolor Sets the fill color. Defaults to a half- transparent variant of the line color, marker @@ -691,7 +609,7 @@ def __init__( line plotly.graph_objs.candlestick.decreasing.Line instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -701,15 +619,14 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='customdatasrc', parent_name='candlestick', **kwargs + self, plotly_name="customdatasrc", parent_name="candlestick", **kwargs ): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -718,15 +635,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="candlestick", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -735,15 +649,12 @@ def __init__( class ClosesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='closesrc', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="closesrc", parent_name="candlestick", **kwargs): super(ClosesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -752,14 +663,11 @@ def __init__( class CloseValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='close', parent_name='candlestick', **kwargs - ): + def __init__(self, plotly_name="close", parent_name="candlestick", **kwargs): super(CloseValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/candlestick/decreasing/__init__.py b/packages/python/plotly/plotly/validators/candlestick/decreasing/__init__.py index 27692d2c326..3768c1e523c 100644 --- a/packages/python/plotly/plotly/validators/candlestick/decreasing/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/decreasing/__init__.py @@ -1,28 +1,23 @@ - - import _plotly_utils.basevalidators class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='line', - parent_name='candlestick.decreasing', - **kwargs + self, plotly_name="line", parent_name="candlestick.decreasing", **kwargs ): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of line bounding the box(es). width Sets the width (in px) of line bounding the box(es). -""" +""", ), **kwargs ) @@ -32,18 +27,14 @@ def __init__( class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='fillcolor', - parent_name='candlestick.decreasing', - **kwargs + self, plotly_name="fillcolor", parent_name="candlestick.decreasing", **kwargs ): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/candlestick/decreasing/line/__init__.py b/packages/python/plotly/plotly/validators/candlestick/decreasing/line/__init__.py index a558cc82946..befb9a59f65 100644 --- a/packages/python/plotly/plotly/validators/candlestick/decreasing/line/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/decreasing/line/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='candlestick.decreasing.line', - **kwargs + self, plotly_name="width", parent_name="candlestick.decreasing.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,17 +19,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='candlestick.decreasing.line', - **kwargs + self, plotly_name="color", parent_name="candlestick.decreasing.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/__init__.py index 16ebab99de5..4f9630f682d 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SplitValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='split', - parent_name='candlestick.hoverlabel', - **kwargs + self, plotly_name="split", parent_name="candlestick.hoverlabel", **kwargs ): super(SplitValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +18,17 @@ def __init__( class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='namelengthsrc', - parent_name='candlestick.hoverlabel', + plotly_name="namelengthsrc", + parent_name="candlestick.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,20 +37,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='candlestick.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="candlestick.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -66,19 +55,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='candlestick.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="candlestick.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -108,7 +94,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -118,18 +104,17 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bordercolorsrc', - parent_name='candlestick.hoverlabel', + plotly_name="bordercolorsrc", + parent_name="candlestick.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -138,19 +123,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='candlestick.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="candlestick.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -159,18 +140,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='candlestick.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="candlestick.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -179,19 +156,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='candlestick.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="candlestick.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -200,18 +173,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='candlestick.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="candlestick.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -220,19 +189,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='candlestick.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="candlestick.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/__init__.py index 8407c1fcb0a..332023deba9 100644 --- a/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='candlestick.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="candlestick.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='candlestick.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="candlestick.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,17 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='familysrc', - parent_name='candlestick.hoverlabel.font', + plotly_name="familysrc", + parent_name="candlestick.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +55,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='candlestick.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="candlestick.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +74,17 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='colorsrc', - parent_name='candlestick.hoverlabel.font', + plotly_name="colorsrc", + parent_name="candlestick.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +93,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='candlestick.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="candlestick.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/candlestick/increasing/__init__.py b/packages/python/plotly/plotly/validators/candlestick/increasing/__init__.py index 6e911194b8e..00a688cd739 100644 --- a/packages/python/plotly/plotly/validators/candlestick/increasing/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/increasing/__init__.py @@ -1,28 +1,23 @@ - - import _plotly_utils.basevalidators class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='line', - parent_name='candlestick.increasing', - **kwargs + self, plotly_name="line", parent_name="candlestick.increasing", **kwargs ): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of line bounding the box(es). width Sets the width (in px) of line bounding the box(es). -""" +""", ), **kwargs ) @@ -32,18 +27,14 @@ def __init__( class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='fillcolor', - parent_name='candlestick.increasing', - **kwargs + self, plotly_name="fillcolor", parent_name="candlestick.increasing", **kwargs ): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/candlestick/increasing/line/__init__.py b/packages/python/plotly/plotly/validators/candlestick/increasing/line/__init__.py index 970943708b5..541c3bbfcb8 100644 --- a/packages/python/plotly/plotly/validators/candlestick/increasing/line/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/increasing/line/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='candlestick.increasing.line', - **kwargs + self, plotly_name="width", parent_name="candlestick.increasing.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,17 +19,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='candlestick.increasing.line', - **kwargs + self, plotly_name="color", parent_name="candlestick.increasing.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/candlestick/line/__init__.py b/packages/python/plotly/plotly/validators/candlestick/line/__init__.py index 58d8a4932c8..36d99672eff 100644 --- a/packages/python/plotly/plotly/validators/candlestick/line/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/line/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='candlestick.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="candlestick.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/candlestick/stream/__init__.py b/packages/python/plotly/plotly/validators/candlestick/stream/__init__.py index d781647d119..bbb6bd8a93d 100644 --- a/packages/python/plotly/plotly/validators/candlestick/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/candlestick/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='candlestick.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="candlestick.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,19 +18,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='candlestick.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="candlestick.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/carpet/__init__.py b/packages/python/plotly/plotly/validators/carpet/__init__.py index 63157a5942b..645e3e84494 100644 --- a/packages/python/plotly/plotly/validators/carpet/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="carpet", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,14 +16,13 @@ def __init__(self, plotly_name='ysrc', parent_name='carpet', **kwargs): class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='yaxis', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="yaxis", parent_name="carpet", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -35,13 +31,12 @@ def __init__(self, plotly_name='yaxis', parent_name='carpet', **kwargs): class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="y", parent_name="carpet", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -50,13 +45,12 @@ def __init__(self, plotly_name='y', parent_name='carpet', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="carpet", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -65,14 +59,13 @@ def __init__(self, plotly_name='xsrc', parent_name='carpet', **kwargs): class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='xaxis', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="xaxis", parent_name="carpet", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -81,13 +74,12 @@ def __init__(self, plotly_name='xaxis', parent_name='carpet', **kwargs): class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="x", parent_name="carpet", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -96,14 +88,13 @@ def __init__(self, plotly_name='x', parent_name='carpet', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="visible", parent_name="carpet", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -112,15 +103,12 @@ def __init__(self, plotly_name='visible', parent_name='carpet', **kwargs): class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='carpet', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="carpet", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -129,14 +117,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="uid", parent_name="carpet", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -145,14 +132,14 @@ def __init__(self, plotly_name='uid', parent_name='carpet', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="stream", parent_name="carpet", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -162,7 +149,7 @@ def __init__(self, plotly_name='stream', parent_name='carpet', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -172,15 +159,14 @@ def __init__(self, plotly_name='stream', parent_name='carpet', **kwargs): class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='opacity', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="opacity", parent_name="carpet", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -189,13 +175,12 @@ def __init__(self, plotly_name='opacity', parent_name='carpet', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="name", parent_name="carpet", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -204,13 +189,12 @@ def __init__(self, plotly_name='name', parent_name='carpet', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="carpet", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -219,14 +203,13 @@ def __init__(self, plotly_name='metasrc', parent_name='carpet', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="meta", parent_name="carpet", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -235,13 +218,12 @@ def __init__(self, plotly_name='meta', parent_name='carpet', **kwargs): class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="carpet", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -250,14 +232,13 @@ def __init__(self, plotly_name='idssrc', parent_name='carpet', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="ids", parent_name="carpet", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -266,16 +247,14 @@ def __init__(self, plotly_name='ids', parent_name='carpet', **kwargs): class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='carpet', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="carpet", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -311,7 +290,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -321,15 +300,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='carpet', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="carpet", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -338,18 +314,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='carpet', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="carpet", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -358,14 +331,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='font', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="font", parent_name="carpet", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -386,7 +359,7 @@ def __init__(self, plotly_name='font', parent_name='carpet', **kwargs): Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -396,13 +369,12 @@ def __init__(self, plotly_name='font', parent_name='carpet', **kwargs): class DbValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='db', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="db", parent_name="carpet", **kwargs): super(DbValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -411,13 +383,12 @@ def __init__(self, plotly_name='db', parent_name='carpet', **kwargs): class DaValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='da', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="da", parent_name="carpet", **kwargs): super(DaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -426,15 +397,12 @@ def __init__(self, plotly_name='da', parent_name='carpet', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='carpet', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="carpet", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -443,15 +411,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='carpet', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="carpet", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -460,13 +425,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__(self, plotly_name='color', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="color", parent_name="carpet", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -475,15 +439,12 @@ def __init__(self, plotly_name='color', parent_name='carpet', **kwargs): class CheaterslopeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cheaterslope', parent_name='carpet', **kwargs - ): + def __init__(self, plotly_name="cheaterslope", parent_name="carpet", **kwargs): super(CheaterslopeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -492,13 +453,12 @@ def __init__( class CarpetValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='carpet', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="carpet", parent_name="carpet", **kwargs): super(CarpetValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -507,13 +467,12 @@ def __init__(self, plotly_name='carpet', parent_name='carpet', **kwargs): class BsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='bsrc', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="bsrc", parent_name="carpet", **kwargs): super(BsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -522,14 +481,14 @@ def __init__(self, plotly_name='bsrc', parent_name='carpet', **kwargs): class BaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='baxis', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="baxis", parent_name="carpet", **kwargs): super(BaxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Baxis'), + data_class_str=kwargs.pop("data_class_str", "Baxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ arraydtick The stride between grid lines along the axis arraytick0 @@ -742,7 +701,7 @@ def __init__(self, plotly_name='baxis', parent_name='carpet', **kwargs): to determined the axis type by looking into the data of the traces that referenced the axis in question. -""" +""", ), **kwargs ) @@ -752,13 +711,12 @@ def __init__(self, plotly_name='baxis', parent_name='carpet', **kwargs): class B0Validator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='b0', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="b0", parent_name="carpet", **kwargs): super(B0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -767,13 +725,12 @@ def __init__(self, plotly_name='b0', parent_name='carpet', **kwargs): class BValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='b', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="b", parent_name="carpet", **kwargs): super(BValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -782,13 +739,12 @@ def __init__(self, plotly_name='b', parent_name='carpet', **kwargs): class AsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='asrc', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="asrc", parent_name="carpet", **kwargs): super(AsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -797,14 +753,14 @@ def __init__(self, plotly_name='asrc', parent_name='carpet', **kwargs): class AaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='aaxis', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="aaxis", parent_name="carpet", **kwargs): super(AaxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Aaxis'), + data_class_str=kwargs.pop("data_class_str", "Aaxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ arraydtick The stride between grid lines along the axis arraytick0 @@ -1017,7 +973,7 @@ def __init__(self, plotly_name='aaxis', parent_name='carpet', **kwargs): to determined the axis type by looking into the data of the traces that referenced the axis in question. -""" +""", ), **kwargs ) @@ -1027,13 +983,12 @@ def __init__(self, plotly_name='aaxis', parent_name='carpet', **kwargs): class A0Validator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='a0', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="a0", parent_name="carpet", **kwargs): super(A0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1042,12 +997,11 @@ def __init__(self, plotly_name='a0', parent_name='carpet', **kwargs): class AValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='a', parent_name='carpet', **kwargs): + def __init__(self, plotly_name="a", parent_name="carpet", **kwargs): super(AValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/__init__.py b/packages/python/plotly/plotly/validators/carpet/aaxis/__init__.py index 36a606635dd..a28cab0d5b8 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="carpet.aaxis", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['-', 'linear', 'date', 'category']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["-", "linear", "date", "category"]), **kwargs ) @@ -22,16 +17,14 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - - def __init__( - self, plotly_name='title', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="title", parent_name="carpet.aaxis", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this axis' title font. Note that the title's font used to be set by the now @@ -47,7 +40,7 @@ def __init__( contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -57,15 +50,12 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='tickvalssrc', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="tickvalssrc", parent_name="carpet.aaxis", **kwargs): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -74,15 +64,12 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='tickvals', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="tickvals", parent_name="carpet.aaxis", **kwargs): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -91,15 +78,12 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='ticktextsrc', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="ticktextsrc", parent_name="carpet.aaxis", **kwargs): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -108,15 +92,12 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='ticktext', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="ticktext", parent_name="carpet.aaxis", **kwargs): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -125,15 +106,12 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='ticksuffix', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="ticksuffix", parent_name="carpet.aaxis", **kwargs): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -142,15 +120,12 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='tickprefix', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="tickprefix", parent_name="carpet.aaxis", **kwargs): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -159,16 +134,13 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='tickmode', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="tickmode", parent_name="carpet.aaxis", **kwargs): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['linear', 'array']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["linear", "array"]), **kwargs ) @@ -177,19 +149,18 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickformatstopdefaults', - parent_name='carpet.aaxis', - **kwargs + self, plotly_name="tickformatstopdefaults", parent_name="carpet.aaxis", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -197,22 +168,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='carpet.aaxis', - **kwargs + self, plotly_name="tickformatstops", parent_name="carpet.aaxis", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -246,7 +212,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -256,15 +222,12 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='tickformat', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="tickformat", parent_name="carpet.aaxis", **kwargs): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -273,16 +236,14 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='tickfont', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="tickfont", parent_name="carpet.aaxis", **kwargs): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -303,7 +264,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -313,15 +274,12 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - - def __init__( - self, plotly_name='tickangle', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="tickangle", parent_name="carpet.aaxis", **kwargs): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -330,16 +288,13 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='tick0', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="tick0", parent_name="carpet.aaxis", **kwargs): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -348,18 +303,14 @@ def __init__( class StartlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='startlinewidth', - parent_name='carpet.aaxis', - **kwargs + self, plotly_name="startlinewidth", parent_name="carpet.aaxis", **kwargs ): super(StartlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -368,18 +319,14 @@ def __init__( class StartlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='startlinecolor', - parent_name='carpet.aaxis', - **kwargs + self, plotly_name="startlinecolor", parent_name="carpet.aaxis", **kwargs ): super(StartlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -388,15 +335,12 @@ def __init__( class StartlineValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='startline', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="startline", parent_name="carpet.aaxis", **kwargs): super(StartlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -405,17 +349,14 @@ def __init__( class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='smoothing', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="smoothing", parent_name="carpet.aaxis", **kwargs): super(SmoothingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1.3), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1.3), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -423,22 +364,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='carpet.aaxis', - **kwargs + self, plotly_name="showticksuffix", parent_name="carpet.aaxis", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -446,22 +381,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='carpet.aaxis', - **kwargs + self, plotly_name="showtickprefix", parent_name="carpet.aaxis", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -469,22 +398,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticklabelsValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticklabelsValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticklabels', - parent_name='carpet.aaxis', - **kwargs + self, plotly_name="showticklabels", parent_name="carpet.aaxis", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['start', 'end', 'both', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["start", "end", "both", "none"]), **kwargs ) @@ -493,15 +416,12 @@ def __init__( class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showline', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="showline", parent_name="carpet.aaxis", **kwargs): super(ShowlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -510,15 +430,12 @@ def __init__( class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showgrid', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="showgrid", parent_name="carpet.aaxis", **kwargs): super(ShowgridValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -527,16 +444,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='showexponent', parent_name='carpet.aaxis', **kwargs + self, plotly_name="showexponent", parent_name="carpet.aaxis", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -544,21 +460,15 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( - self, - plotly_name='separatethousands', - parent_name='carpet.aaxis', - **kwargs + self, plotly_name="separatethousands", parent_name="carpet.aaxis", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -567,16 +477,13 @@ def __init__( class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='rangemode', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="rangemode", parent_name="carpet.aaxis", **kwargs): super(RangemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['normal', 'tozero', 'nonnegative']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), **kwargs ) @@ -585,26 +492,19 @@ def __init__( class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='range', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="range", parent_name="carpet.aaxis", **kwargs): super(RangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'calc' - }, { - 'valType': 'any', - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "any", "editType": "calc"}, + {"valType": "any", "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -613,16 +513,13 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='nticks', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="nticks", parent_name="carpet.aaxis", **kwargs): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -631,19 +528,15 @@ def __init__( class MinorgridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='minorgridwidth', - parent_name='carpet.aaxis', - **kwargs + self, plotly_name="minorgridwidth", parent_name="carpet.aaxis", **kwargs ): super(MinorgridwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -652,19 +545,15 @@ def __init__( class MinorgridcountValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='minorgridcount', - parent_name='carpet.aaxis', - **kwargs + self, plotly_name="minorgridcount", parent_name="carpet.aaxis", **kwargs ): super(MinorgridcountValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -673,18 +562,14 @@ def __init__( class MinorgridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='minorgridcolor', - parent_name='carpet.aaxis', - **kwargs + self, plotly_name="minorgridcolor", parent_name="carpet.aaxis", **kwargs ): super(MinorgridcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -693,16 +578,13 @@ def __init__( class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='linewidth', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="linewidth", parent_name="carpet.aaxis", **kwargs): super(LinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -711,15 +593,12 @@ def __init__( class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='linecolor', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="linecolor", parent_name="carpet.aaxis", **kwargs): super(LinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -728,15 +607,12 @@ def __init__( class LabelsuffixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='labelsuffix', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="labelsuffix", parent_name="carpet.aaxis", **kwargs): super(LabelsuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -745,15 +621,12 @@ def __init__( class LabelprefixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='labelprefix', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="labelprefix", parent_name="carpet.aaxis", **kwargs): super(LabelprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -762,15 +635,14 @@ def __init__( class LabelpaddingValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name='labelpadding', parent_name='carpet.aaxis', **kwargs + self, plotly_name="labelpadding", parent_name="carpet.aaxis", **kwargs ): super(LabelpaddingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -779,16 +651,13 @@ def __init__( class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='gridwidth', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="gridwidth", parent_name="carpet.aaxis", **kwargs): super(GridwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -797,15 +666,12 @@ def __init__( class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='gridcolor', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="gridcolor", parent_name="carpet.aaxis", **kwargs): super(GridcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -814,15 +680,12 @@ def __init__( class FixedrangeValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='fixedrange', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="fixedrange", parent_name="carpet.aaxis", **kwargs): super(FixedrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -830,24 +693,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='carpet.aaxis', - **kwargs + self, plotly_name="exponentformat", parent_name="carpet.aaxis", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -856,15 +711,14 @@ def __init__( class EndlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='endlinewidth', parent_name='carpet.aaxis', **kwargs + self, plotly_name="endlinewidth", parent_name="carpet.aaxis", **kwargs ): super(EndlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -873,15 +727,14 @@ def __init__( class EndlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='endlinecolor', parent_name='carpet.aaxis', **kwargs + self, plotly_name="endlinecolor", parent_name="carpet.aaxis", **kwargs ): super(EndlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -890,15 +743,12 @@ def __init__( class EndlineValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='endline', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="endline", parent_name="carpet.aaxis", **kwargs): super(EndlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -907,16 +757,13 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='dtick', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="dtick", parent_name="carpet.aaxis", **kwargs): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -925,15 +772,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="carpet.aaxis", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -942,16 +786,13 @@ def __init__( class CheatertypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='cheatertype', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="cheatertype", parent_name="carpet.aaxis", **kwargs): super(CheatertypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['index', 'value']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["index", "value"]), **kwargs ) @@ -960,23 +801,17 @@ def __init__( class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='categoryorder', - parent_name='carpet.aaxis', - **kwargs + self, plotly_name="categoryorder", parent_name="carpet.aaxis", **kwargs ): super(CategoryorderValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'trace', 'category ascending', 'category descending', - 'array' - ] + "values", + ["trace", "category ascending", "category descending", "array"], ), **kwargs ) @@ -986,18 +821,14 @@ def __init__( class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='categoryarraysrc', - parent_name='carpet.aaxis', - **kwargs + self, plotly_name="categoryarraysrc", parent_name="carpet.aaxis", **kwargs ): super(CategoryarraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1006,18 +837,14 @@ def __init__( class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='categoryarray', - parent_name='carpet.aaxis', - **kwargs + self, plotly_name="categoryarray", parent_name="carpet.aaxis", **kwargs ): super(CategoryarrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1026,16 +853,13 @@ def __init__( class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='autorange', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="autorange", parent_name="carpet.aaxis", **kwargs): super(AutorangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', [True, False, 'reversed']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", [True, False, "reversed"]), **kwargs ) @@ -1044,16 +868,13 @@ def __init__( class Arraytick0Validator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='arraytick0', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="arraytick0", parent_name="carpet.aaxis", **kwargs): super(Arraytick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1062,15 +883,12 @@ def __init__( class ArraydtickValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='arraydtick', parent_name='carpet.aaxis', **kwargs - ): + def __init__(self, plotly_name="arraydtick", parent_name="carpet.aaxis", **kwargs): super(ArraydtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/__init__.py index eeaeafcc413..42957fe2ed4 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='carpet.aaxis.tickfont', - **kwargs + self, plotly_name="size", parent_name="carpet.aaxis.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='carpet.aaxis.tickfont', - **kwargs + self, plotly_name="family", parent_name="carpet.aaxis.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='carpet.aaxis.tickfont', - **kwargs + self, plotly_name="color", parent_name="carpet.aaxis.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/__init__.py index de96118d5cb..a20315efda3 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/tickformatstop/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='value', - parent_name='carpet.aaxis.tickformatstop', - **kwargs + self, plotly_name="value", parent_name="carpet.aaxis.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +18,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='carpet.aaxis.tickformatstop', + plotly_name="templateitemname", + parent_name="carpet.aaxis.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +37,14 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='name', - parent_name='carpet.aaxis.tickformatstop', - **kwargs + self, plotly_name="name", parent_name="carpet.aaxis.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +53,14 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='enabled', - parent_name='carpet.aaxis.tickformatstop', - **kwargs + self, plotly_name="enabled", parent_name="carpet.aaxis.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +69,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='carpet.aaxis.tickformatstop', + plotly_name="dtickrange", + parent_name="carpet.aaxis.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'calc' - }, { - 'valType': 'any', - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "any", "editType": "calc"}, + {"valType": "any", "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/title/__init__.py b/packages/python/plotly/plotly/validators/carpet/aaxis/title/__init__.py index 2b219332296..0fdc8a53c13 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/title/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='text', parent_name='carpet.aaxis.title', **kwargs - ): + def __init__(self, plotly_name="text", parent_name="carpet.aaxis.title", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,15 +16,14 @@ def __init__( class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='offset', parent_name='carpet.aaxis.title', **kwargs + self, plotly_name="offset", parent_name="carpet.aaxis.title", **kwargs ): super(OffsetValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -38,16 +32,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='carpet.aaxis.title', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="carpet.aaxis.title", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -68,7 +60,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/__init__.py index 26f6a6431ed..423d7b20882 100644 --- a/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/aaxis/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='carpet.aaxis.title.font', - **kwargs + self, plotly_name="size", parent_name="carpet.aaxis.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='carpet.aaxis.title.font', - **kwargs + self, plotly_name="family", parent_name="carpet.aaxis.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='carpet.aaxis.title.font', - **kwargs + self, plotly_name="color", parent_name="carpet.aaxis.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/__init__.py b/packages/python/plotly/plotly/validators/carpet/baxis/__init__.py index 0da1a393f2e..f8dbfc6d20d 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="carpet.baxis", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['-', 'linear', 'date', 'category']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["-", "linear", "date", "category"]), **kwargs ) @@ -22,16 +17,14 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - - def __init__( - self, plotly_name='title', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="title", parent_name="carpet.baxis", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this axis' title font. Note that the title's font used to be set by the now @@ -47,7 +40,7 @@ def __init__( contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -57,15 +50,12 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='tickvalssrc', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="tickvalssrc", parent_name="carpet.baxis", **kwargs): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -74,15 +64,12 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='tickvals', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="tickvals", parent_name="carpet.baxis", **kwargs): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -91,15 +78,12 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='ticktextsrc', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="ticktextsrc", parent_name="carpet.baxis", **kwargs): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -108,15 +92,12 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='ticktext', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="ticktext", parent_name="carpet.baxis", **kwargs): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -125,15 +106,12 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='ticksuffix', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="ticksuffix", parent_name="carpet.baxis", **kwargs): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -142,15 +120,12 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='tickprefix', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="tickprefix", parent_name="carpet.baxis", **kwargs): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -159,16 +134,13 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='tickmode', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="tickmode", parent_name="carpet.baxis", **kwargs): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['linear', 'array']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["linear", "array"]), **kwargs ) @@ -177,19 +149,18 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickformatstopdefaults', - parent_name='carpet.baxis', - **kwargs + self, plotly_name="tickformatstopdefaults", parent_name="carpet.baxis", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -197,22 +168,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='carpet.baxis', - **kwargs + self, plotly_name="tickformatstops", parent_name="carpet.baxis", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -246,7 +212,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -256,15 +222,12 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='tickformat', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="tickformat", parent_name="carpet.baxis", **kwargs): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -273,16 +236,14 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='tickfont', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="tickfont", parent_name="carpet.baxis", **kwargs): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -303,7 +264,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -313,15 +274,12 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - - def __init__( - self, plotly_name='tickangle', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="tickangle", parent_name="carpet.baxis", **kwargs): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -330,16 +288,13 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='tick0', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="tick0", parent_name="carpet.baxis", **kwargs): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -348,18 +303,14 @@ def __init__( class StartlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='startlinewidth', - parent_name='carpet.baxis', - **kwargs + self, plotly_name="startlinewidth", parent_name="carpet.baxis", **kwargs ): super(StartlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -368,18 +319,14 @@ def __init__( class StartlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='startlinecolor', - parent_name='carpet.baxis', - **kwargs + self, plotly_name="startlinecolor", parent_name="carpet.baxis", **kwargs ): super(StartlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -388,15 +335,12 @@ def __init__( class StartlineValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='startline', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="startline", parent_name="carpet.baxis", **kwargs): super(StartlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -405,17 +349,14 @@ def __init__( class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='smoothing', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="smoothing", parent_name="carpet.baxis", **kwargs): super(SmoothingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1.3), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1.3), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -423,22 +364,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='carpet.baxis', - **kwargs + self, plotly_name="showticksuffix", parent_name="carpet.baxis", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -446,22 +381,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='carpet.baxis', - **kwargs + self, plotly_name="showtickprefix", parent_name="carpet.baxis", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -469,22 +398,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticklabelsValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticklabelsValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticklabels', - parent_name='carpet.baxis', - **kwargs + self, plotly_name="showticklabels", parent_name="carpet.baxis", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['start', 'end', 'both', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["start", "end", "both", "none"]), **kwargs ) @@ -493,15 +416,12 @@ def __init__( class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showline', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="showline", parent_name="carpet.baxis", **kwargs): super(ShowlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -510,15 +430,12 @@ def __init__( class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showgrid', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="showgrid", parent_name="carpet.baxis", **kwargs): super(ShowgridValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -527,16 +444,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='showexponent', parent_name='carpet.baxis', **kwargs + self, plotly_name="showexponent", parent_name="carpet.baxis", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -544,21 +460,15 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( - self, - plotly_name='separatethousands', - parent_name='carpet.baxis', - **kwargs + self, plotly_name="separatethousands", parent_name="carpet.baxis", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -567,16 +477,13 @@ def __init__( class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='rangemode', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="rangemode", parent_name="carpet.baxis", **kwargs): super(RangemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['normal', 'tozero', 'nonnegative']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), **kwargs ) @@ -585,26 +492,19 @@ def __init__( class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='range', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="range", parent_name="carpet.baxis", **kwargs): super(RangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'calc' - }, { - 'valType': 'any', - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "any", "editType": "calc"}, + {"valType": "any", "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -613,16 +513,13 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='nticks', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="nticks", parent_name="carpet.baxis", **kwargs): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -631,19 +528,15 @@ def __init__( class MinorgridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='minorgridwidth', - parent_name='carpet.baxis', - **kwargs + self, plotly_name="minorgridwidth", parent_name="carpet.baxis", **kwargs ): super(MinorgridwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -652,19 +545,15 @@ def __init__( class MinorgridcountValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='minorgridcount', - parent_name='carpet.baxis', - **kwargs + self, plotly_name="minorgridcount", parent_name="carpet.baxis", **kwargs ): super(MinorgridcountValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -673,18 +562,14 @@ def __init__( class MinorgridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='minorgridcolor', - parent_name='carpet.baxis', - **kwargs + self, plotly_name="minorgridcolor", parent_name="carpet.baxis", **kwargs ): super(MinorgridcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -693,16 +578,13 @@ def __init__( class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='linewidth', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="linewidth", parent_name="carpet.baxis", **kwargs): super(LinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -711,15 +593,12 @@ def __init__( class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='linecolor', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="linecolor", parent_name="carpet.baxis", **kwargs): super(LinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -728,15 +607,12 @@ def __init__( class LabelsuffixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='labelsuffix', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="labelsuffix", parent_name="carpet.baxis", **kwargs): super(LabelsuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -745,15 +621,12 @@ def __init__( class LabelprefixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='labelprefix', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="labelprefix", parent_name="carpet.baxis", **kwargs): super(LabelprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -762,15 +635,14 @@ def __init__( class LabelpaddingValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name='labelpadding', parent_name='carpet.baxis', **kwargs + self, plotly_name="labelpadding", parent_name="carpet.baxis", **kwargs ): super(LabelpaddingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -779,16 +651,13 @@ def __init__( class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='gridwidth', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="gridwidth", parent_name="carpet.baxis", **kwargs): super(GridwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -797,15 +666,12 @@ def __init__( class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='gridcolor', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="gridcolor", parent_name="carpet.baxis", **kwargs): super(GridcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -814,15 +680,12 @@ def __init__( class FixedrangeValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='fixedrange', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="fixedrange", parent_name="carpet.baxis", **kwargs): super(FixedrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -830,24 +693,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='carpet.baxis', - **kwargs + self, plotly_name="exponentformat", parent_name="carpet.baxis", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -856,15 +711,14 @@ def __init__( class EndlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='endlinewidth', parent_name='carpet.baxis', **kwargs + self, plotly_name="endlinewidth", parent_name="carpet.baxis", **kwargs ): super(EndlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -873,15 +727,14 @@ def __init__( class EndlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='endlinecolor', parent_name='carpet.baxis', **kwargs + self, plotly_name="endlinecolor", parent_name="carpet.baxis", **kwargs ): super(EndlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -890,15 +743,12 @@ def __init__( class EndlineValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='endline', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="endline", parent_name="carpet.baxis", **kwargs): super(EndlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -907,16 +757,13 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='dtick', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="dtick", parent_name="carpet.baxis", **kwargs): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -925,15 +772,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="carpet.baxis", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -942,16 +786,13 @@ def __init__( class CheatertypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='cheatertype', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="cheatertype", parent_name="carpet.baxis", **kwargs): super(CheatertypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['index', 'value']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["index", "value"]), **kwargs ) @@ -960,23 +801,17 @@ def __init__( class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='categoryorder', - parent_name='carpet.baxis', - **kwargs + self, plotly_name="categoryorder", parent_name="carpet.baxis", **kwargs ): super(CategoryorderValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'trace', 'category ascending', 'category descending', - 'array' - ] + "values", + ["trace", "category ascending", "category descending", "array"], ), **kwargs ) @@ -986,18 +821,14 @@ def __init__( class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='categoryarraysrc', - parent_name='carpet.baxis', - **kwargs + self, plotly_name="categoryarraysrc", parent_name="carpet.baxis", **kwargs ): super(CategoryarraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1006,18 +837,14 @@ def __init__( class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='categoryarray', - parent_name='carpet.baxis', - **kwargs + self, plotly_name="categoryarray", parent_name="carpet.baxis", **kwargs ): super(CategoryarrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1026,16 +853,13 @@ def __init__( class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='autorange', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="autorange", parent_name="carpet.baxis", **kwargs): super(AutorangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', [True, False, 'reversed']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", [True, False, "reversed"]), **kwargs ) @@ -1044,16 +868,13 @@ def __init__( class Arraytick0Validator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='arraytick0', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="arraytick0", parent_name="carpet.baxis", **kwargs): super(Arraytick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1062,15 +883,12 @@ def __init__( class ArraydtickValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='arraydtick', parent_name='carpet.baxis', **kwargs - ): + def __init__(self, plotly_name="arraydtick", parent_name="carpet.baxis", **kwargs): super(ArraydtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/__init__.py index 6a2336d6d08..cdd15d36caf 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='carpet.baxis.tickfont', - **kwargs + self, plotly_name="size", parent_name="carpet.baxis.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='carpet.baxis.tickfont', - **kwargs + self, plotly_name="family", parent_name="carpet.baxis.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='carpet.baxis.tickfont', - **kwargs + self, plotly_name="color", parent_name="carpet.baxis.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/__init__.py index 77d99088526..e69095abe03 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/tickformatstop/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='value', - parent_name='carpet.baxis.tickformatstop', - **kwargs + self, plotly_name="value", parent_name="carpet.baxis.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +18,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='carpet.baxis.tickformatstop', + plotly_name="templateitemname", + parent_name="carpet.baxis.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +37,14 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='name', - parent_name='carpet.baxis.tickformatstop', - **kwargs + self, plotly_name="name", parent_name="carpet.baxis.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +53,14 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='enabled', - parent_name='carpet.baxis.tickformatstop', - **kwargs + self, plotly_name="enabled", parent_name="carpet.baxis.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +69,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='carpet.baxis.tickformatstop', + plotly_name="dtickrange", + parent_name="carpet.baxis.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'calc' - }, { - 'valType': 'any', - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "any", "editType": "calc"}, + {"valType": "any", "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/title/__init__.py b/packages/python/plotly/plotly/validators/carpet/baxis/title/__init__.py index 61af5ecda0e..875df747d0b 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/title/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='text', parent_name='carpet.baxis.title', **kwargs - ): + def __init__(self, plotly_name="text", parent_name="carpet.baxis.title", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,15 +16,14 @@ def __init__( class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='offset', parent_name='carpet.baxis.title', **kwargs + self, plotly_name="offset", parent_name="carpet.baxis.title", **kwargs ): super(OffsetValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -38,16 +32,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='carpet.baxis.title', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="carpet.baxis.title", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -68,7 +60,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/__init__.py index 2f142d4a045..9d26d0ca35a 100644 --- a/packages/python/plotly/plotly/validators/carpet/baxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/baxis/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='carpet.baxis.title.font', - **kwargs + self, plotly_name="size", parent_name="carpet.baxis.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='carpet.baxis.title.font', - **kwargs + self, plotly_name="family", parent_name="carpet.baxis.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='carpet.baxis.title.font', - **kwargs + self, plotly_name="color", parent_name="carpet.baxis.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/carpet/font/__init__.py b/packages/python/plotly/plotly/validators/carpet/font/__init__.py index c318ae21904..2c4b366cfa7 100644 --- a/packages/python/plotly/plotly/validators/carpet/font/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/font/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='carpet.font', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="carpet.font", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,17 +17,14 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='family', parent_name='carpet.font', **kwargs - ): + def __init__(self, plotly_name="family", parent_name="carpet.font", **kwargs): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -41,14 +33,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='carpet.font', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="carpet.font", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/carpet/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/carpet/hoverlabel/__init__.py index 504f39a41c8..66c102142a5 100644 --- a/packages/python/plotly/plotly/validators/carpet/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='carpet.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="carpet.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='carpet.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="carpet.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='carpet.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="carpet.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='carpet.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="carpet.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='carpet.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="carpet.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='carpet.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="carpet.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,16 +132,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='bgcolor', parent_name='carpet.hoverlabel', **kwargs + self, plotly_name="bgcolor", parent_name="carpet.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -174,18 +149,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='carpet.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="carpet.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -194,16 +165,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='carpet.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="carpet.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/carpet/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/carpet/hoverlabel/font/__init__.py index dc2b5df9b73..8ac30128e77 100644 --- a/packages/python/plotly/plotly/validators/carpet/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='carpet.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="carpet.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='carpet.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="carpet.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='carpet.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="carpet.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='carpet.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="carpet.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='carpet.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="carpet.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='carpet.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="carpet.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/carpet/stream/__init__.py b/packages/python/plotly/plotly/validators/carpet/stream/__init__.py index 96c1c5ed89e..25c635dc419 100644 --- a/packages/python/plotly/plotly/validators/carpet/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/carpet/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='carpet.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="carpet.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='carpet.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="carpet.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/choropleth/__init__.py b/packages/python/plotly/plotly/validators/choropleth/__init__.py index bcfe39db6b0..ee1bb5725aa 100644 --- a/packages/python/plotly/plotly/validators/choropleth/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='zsrc', parent_name='choropleth', **kwargs): + def __init__(self, plotly_name="zsrc", parent_name="choropleth", **kwargs): super(ZsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,14 +16,13 @@ def __init__(self, plotly_name='zsrc', parent_name='choropleth', **kwargs): class ZminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='zmin', parent_name='choropleth', **kwargs): + def __init__(self, plotly_name="zmin", parent_name="choropleth", **kwargs): super(ZminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'zauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"zauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -35,14 +31,13 @@ def __init__(self, plotly_name='zmin', parent_name='choropleth', **kwargs): class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='zmid', parent_name='choropleth', **kwargs): + def __init__(self, plotly_name="zmid", parent_name="choropleth", **kwargs): super(ZmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -51,14 +46,13 @@ def __init__(self, plotly_name='zmid', parent_name='choropleth', **kwargs): class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='zmax', parent_name='choropleth', **kwargs): + def __init__(self, plotly_name="zmax", parent_name="choropleth", **kwargs): super(ZmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'zauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"zauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -67,16 +61,13 @@ def __init__(self, plotly_name='zmax', parent_name='choropleth', **kwargs): class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='zauto', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="zauto", parent_name="choropleth", **kwargs): super(ZautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -85,13 +76,12 @@ def __init__( class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='z', parent_name='choropleth', **kwargs): + def __init__(self, plotly_name="z", parent_name="choropleth", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -100,16 +90,13 @@ def __init__(self, plotly_name='z', parent_name='choropleth', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="choropleth", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -118,20 +105,18 @@ def __init__( class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='unselected', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="unselected", parent_name="choropleth", **kwargs): super(UnselectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_class_str=kwargs.pop("data_class_str", "Unselected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.choropleth.unselected.Marker instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -141,15 +126,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="choropleth", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -158,14 +140,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='choropleth', **kwargs): + def __init__(self, plotly_name="uid", parent_name="choropleth", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -174,15 +155,12 @@ def __init__(self, plotly_name='uid', parent_name='choropleth', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="choropleth", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -191,14 +169,13 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='choropleth', **kwargs): + def __init__(self, plotly_name="text", parent_name="choropleth", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -207,16 +184,14 @@ def __init__(self, plotly_name='text', parent_name='choropleth', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="choropleth", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -226,7 +201,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -236,15 +211,12 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="choropleth", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -253,15 +225,14 @@ def __init__( class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name='selectedpoints', parent_name='choropleth', **kwargs + self, plotly_name="selectedpoints", parent_name="choropleth", **kwargs ): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -270,20 +241,18 @@ def __init__( class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='selected', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="selected", parent_name="choropleth", **kwargs): super(SelectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_class_str=kwargs.pop("data_class_str", "Selected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.choropleth.selected.Marker instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -293,15 +262,12 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='reversescale', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="reversescale", parent_name="choropleth", **kwargs): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -310,13 +276,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='choropleth', **kwargs): + def __init__(self, plotly_name="name", parent_name="choropleth", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -325,15 +290,12 @@ def __init__(self, plotly_name='name', parent_name='choropleth', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="choropleth", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -342,14 +304,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='choropleth', **kwargs): + def __init__(self, plotly_name="meta", parent_name="choropleth", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -358,16 +319,14 @@ def __init__(self, plotly_name='meta', parent_name='choropleth', **kwargs): class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="choropleth", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ line plotly.graph_objs.choropleth.marker.Line instance or dict with compatible properties @@ -376,7 +335,7 @@ def __init__( opacitysrc Sets the source reference on plot.ly for opacity . -""" +""", ), **kwargs ) @@ -386,15 +345,12 @@ def __init__( class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='locationssrc', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="locationssrc", parent_name="choropleth", **kwargs): super(LocationssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -403,15 +359,12 @@ def __init__( class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='locations', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="locations", parent_name="choropleth", **kwargs): super(LocationsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -420,18 +373,13 @@ def __init__( class LocationmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='locationmode', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="locationmode", parent_name="choropleth", **kwargs): super(LocationmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['ISO-3', 'USA-states', 'country names'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["ISO-3", "USA-states", "country names"]), **kwargs ) @@ -440,15 +388,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="choropleth", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -457,14 +402,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='choropleth', **kwargs): + def __init__(self, plotly_name="ids", parent_name="choropleth", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -473,15 +417,12 @@ def __init__(self, plotly_name='ids', parent_name='choropleth', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="choropleth", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -490,16 +431,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="choropleth", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -508,18 +446,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='choropleth', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="choropleth", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -528,16 +462,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="choropleth", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -546,16 +477,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="choropleth", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -591,7 +520,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -601,15 +530,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="choropleth", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -618,18 +544,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="choropleth", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['location', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["location", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -638,14 +561,13 @@ def __init__( class GeoValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='geo', parent_name='choropleth', **kwargs): + def __init__(self, plotly_name="geo", parent_name="choropleth", **kwargs): super(GeoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'geo'), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "geo"), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -654,15 +576,12 @@ def __init__(self, plotly_name='geo', parent_name='choropleth', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="choropleth", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -671,15 +590,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="choropleth", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -688,18 +604,13 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - - def __init__( - self, plotly_name='colorscale', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="colorscale", parent_name="choropleth", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -708,16 +619,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorbar', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="colorbar", parent_name="choropleth", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -927,7 +836,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -937,17 +846,14 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='choropleth', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="choropleth", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -956,15 +862,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='autocolorscale', parent_name='choropleth', **kwargs + self, plotly_name="autocolorscale", parent_name="choropleth", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/__init__.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/__init__.py index b0540c98c02..e67df5e959f 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ypad', parent_name='choropleth.colorbar', **kwargs - ): + def __init__(self, plotly_name="ypad", parent_name="choropleth.colorbar", **kwargs): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,19 +17,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="choropleth.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -43,17 +34,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='choropleth.colorbar', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="choropleth.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -62,16 +50,13 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='xpad', parent_name='choropleth.colorbar', **kwargs - ): + def __init__(self, plotly_name="xpad", parent_name="choropleth.colorbar", **kwargs): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -80,19 +65,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="choropleth.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -101,17 +82,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='choropleth.colorbar', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="choropleth.colorbar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -120,16 +98,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name='title', parent_name='choropleth.colorbar', **kwargs + self, plotly_name="title", parent_name="choropleth.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -145,7 +123,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -155,19 +133,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="choropleth.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -176,18 +150,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="choropleth.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -196,18 +166,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="choropleth.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -216,18 +182,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="choropleth.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -236,18 +198,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="choropleth.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -256,18 +214,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="choropleth.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -276,16 +230,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='ticks', parent_name='choropleth.colorbar', **kwargs + self, plotly_name="ticks", parent_name="choropleth.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -294,18 +247,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="choropleth.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -314,20 +263,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="choropleth.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -336,19 +281,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="choropleth.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -357,19 +298,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='choropleth.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="choropleth.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -377,22 +320,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="tickformatstops", parent_name="choropleth.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -426,7 +364,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -436,18 +374,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="choropleth.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -456,19 +390,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="choropleth.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -489,7 +420,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -499,18 +430,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="choropleth.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -519,18 +446,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="choropleth.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -539,16 +462,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name='tick0', parent_name='choropleth.colorbar', **kwargs + self, plotly_name="tick0", parent_name="choropleth.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,19 +479,15 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='thicknessmode', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="thicknessmode", parent_name="choropleth.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -578,19 +496,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="choropleth.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -598,22 +512,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="showticksuffix", parent_name="choropleth.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -621,22 +529,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="showtickprefix", parent_name="choropleth.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -645,18 +547,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="showticklabels", parent_name="choropleth.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -665,19 +563,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="showexponent", parent_name="choropleth.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -685,21 +579,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='choropleth.colorbar', + plotly_name="separatethousands", + parent_name="choropleth.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -708,19 +599,15 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlinewidth', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="outlinewidth", parent_name="choropleth.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -729,18 +616,14 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outlinecolor', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="outlinecolor", parent_name="choropleth.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -749,19 +632,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="choropleth.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -770,19 +649,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="choropleth.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -791,16 +666,13 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='len', parent_name='choropleth.colorbar', **kwargs - ): + def __init__(self, plotly_name="len", parent_name="choropleth.colorbar", **kwargs): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -808,24 +680,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="exponentformat", parent_name="choropleth.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -834,16 +698,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name='dtick', parent_name='choropleth.colorbar', **kwargs + self, plotly_name="dtick", parent_name="choropleth.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -852,19 +715,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="choropleth.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -873,18 +732,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="choropleth.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -893,17 +748,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='choropleth.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="choropleth.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/__init__.py index dd33dd8b28c..3374ef407bb 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='choropleth.colorbar.tickfont', - **kwargs + self, plotly_name="size", parent_name="choropleth.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='choropleth.colorbar.tickfont', - **kwargs + self, plotly_name="family", parent_name="choropleth.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='choropleth.colorbar.tickfont', - **kwargs + self, plotly_name="color", parent_name="choropleth.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/__init__.py index 7f48d10eb66..83db2bcd0f3 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='choropleth.colorbar.tickformatstop', + plotly_name="value", + parent_name="choropleth.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='choropleth.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="choropleth.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='choropleth.colorbar.tickformatstop', + plotly_name="name", + parent_name="choropleth.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='choropleth.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="choropleth.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='choropleth.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="choropleth.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/__init__.py index 3a4efea831d..cd8e0499cd9 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='choropleth.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="choropleth.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='choropleth.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="choropleth.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='choropleth.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="choropleth.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/__init__.py index c5fae4b2dae..f131a35ab10 100644 --- a/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/colorbar/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='choropleth.colorbar.title.font', - **kwargs + self, plotly_name="size", parent_name="choropleth.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='choropleth.colorbar.title.font', + plotly_name="family", + parent_name="choropleth.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +40,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='choropleth.colorbar.title.font', + plotly_name="color", + parent_name="choropleth.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/__init__.py index 522014449a3..b3d5d76d248 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='choropleth.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="choropleth.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='choropleth.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="choropleth.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +36,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='choropleth.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="choropleth.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -88,7 +75,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -98,18 +85,17 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bordercolorsrc', - parent_name='choropleth.hoverlabel', + plotly_name="bordercolorsrc", + parent_name="choropleth.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,19 +104,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='choropleth.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="choropleth.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -139,18 +121,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='choropleth.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="choropleth.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,19 +137,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='choropleth.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="choropleth.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -180,18 +154,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='choropleth.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="choropleth.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,19 +170,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='choropleth.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="choropleth.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/__init__.py index 81338595cbc..6bd7a46628d 100644 --- a/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='choropleth.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="choropleth.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='choropleth.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="choropleth.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,17 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='familysrc', - parent_name='choropleth.hoverlabel.font', + plotly_name="familysrc", + parent_name="choropleth.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +55,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='choropleth.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="choropleth.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +74,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='choropleth.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="choropleth.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +90,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='choropleth.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="choropleth.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/choropleth/marker/__init__.py b/packages/python/plotly/plotly/validators/choropleth/marker/__init__.py index eee8751fff4..999f633e58c 100644 --- a/packages/python/plotly/plotly/validators/choropleth/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/marker/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='opacitysrc', - parent_name='choropleth.marker', - **kwargs + self, plotly_name="opacitysrc", parent_name="choropleth.marker", **kwargs ): super(OpacitysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +18,17 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='opacity', parent_name='choropleth.marker', **kwargs + self, plotly_name="opacity", parent_name="choropleth.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -44,16 +37,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='choropleth.marker', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="choropleth.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets themarker.linecolor. It accepts either a specific color or an array of numbers that are @@ -70,7 +61,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/choropleth/marker/line/__init__.py b/packages/python/plotly/plotly/validators/choropleth/marker/line/__init__.py index 92ea71f00c7..2da083950bb 100644 --- a/packages/python/plotly/plotly/validators/choropleth/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/marker/line/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='widthsrc', - parent_name='choropleth.marker.line', - **kwargs + self, plotly_name="widthsrc", parent_name="choropleth.marker.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,21 +18,17 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='choropleth.marker.line', - **kwargs + self, plotly_name="width", parent_name="choropleth.marker.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,18 +37,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='choropleth.marker.line', - **kwargs + self, plotly_name="colorsrc", parent_name="choropleth.marker.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -67,18 +53,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='choropleth.marker.line', - **kwargs + self, plotly_name="color", parent_name="choropleth.marker.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/choropleth/selected/__init__.py b/packages/python/plotly/plotly/validators/choropleth/selected/__init__.py index a9e36d12c4c..7ae0a85e3c6 100644 --- a/packages/python/plotly/plotly/validators/choropleth/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/selected/__init__.py @@ -1,25 +1,20 @@ - - import _plotly_utils.basevalidators class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='choropleth.selected', - **kwargs + self, plotly_name="marker", parent_name="choropleth.selected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ opacity Sets the marker opacity of selected points. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/choropleth/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/choropleth/selected/marker/__init__.py index 07bbd0f210d..44df1fa4bf6 100644 --- a/packages/python/plotly/plotly/validators/choropleth/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/selected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='choropleth.selected.marker', - **kwargs + self, plotly_name="opacity", parent_name="choropleth.selected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/choropleth/stream/__init__.py b/packages/python/plotly/plotly/validators/choropleth/stream/__init__.py index e622babbe0a..620fdc8ffa9 100644 --- a/packages/python/plotly/plotly/validators/choropleth/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='choropleth.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="choropleth.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,19 +18,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='choropleth.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="choropleth.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/choropleth/unselected/__init__.py b/packages/python/plotly/plotly/validators/choropleth/unselected/__init__.py index 6b386c7525f..465e7264db1 100644 --- a/packages/python/plotly/plotly/validators/choropleth/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/unselected/__init__.py @@ -1,26 +1,21 @@ - - import _plotly_utils.basevalidators class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='choropleth.unselected', - **kwargs + self, plotly_name="marker", parent_name="choropleth.unselected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ opacity Sets the marker opacity of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/choropleth/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/choropleth/unselected/marker/__init__.py index f450405517d..451f51b86a2 100644 --- a/packages/python/plotly/plotly/validators/choropleth/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/choropleth/unselected/marker/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='opacity', - parent_name='choropleth.unselected.marker', + plotly_name="opacity", + parent_name="choropleth.unselected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/cone/__init__.py b/packages/python/plotly/plotly/validators/cone/__init__.py index f5430534685..596e78f00b9 100644 --- a/packages/python/plotly/plotly/validators/cone/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='zsrc', parent_name='cone', **kwargs): + def __init__(self, plotly_name="zsrc", parent_name="cone", **kwargs): super(ZsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,13 +16,12 @@ def __init__(self, plotly_name='zsrc', parent_name='cone', **kwargs): class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='z', parent_name='cone', **kwargs): + def __init__(self, plotly_name="z", parent_name="cone", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -34,13 +30,12 @@ def __init__(self, plotly_name='z', parent_name='cone', **kwargs): class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='cone', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="cone", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -49,13 +44,12 @@ def __init__(self, plotly_name='ysrc', parent_name='cone', **kwargs): class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='cone', **kwargs): + def __init__(self, plotly_name="y", parent_name="cone", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -64,13 +58,12 @@ def __init__(self, plotly_name='y', parent_name='cone', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='cone', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="cone", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -79,13 +72,12 @@ def __init__(self, plotly_name='xsrc', parent_name='cone', **kwargs): class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='cone', **kwargs): + def __init__(self, plotly_name="x", parent_name="cone", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -94,13 +86,12 @@ def __init__(self, plotly_name='x', parent_name='cone', **kwargs): class WsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='wsrc', parent_name='cone', **kwargs): + def __init__(self, plotly_name="wsrc", parent_name="cone", **kwargs): super(WsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,13 +100,12 @@ def __init__(self, plotly_name='wsrc', parent_name='cone', **kwargs): class WValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='w', parent_name='cone', **kwargs): + def __init__(self, plotly_name="w", parent_name="cone", **kwargs): super(WValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -124,13 +114,12 @@ def __init__(self, plotly_name='w', parent_name='cone', **kwargs): class VsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='vsrc', parent_name='cone', **kwargs): + def __init__(self, plotly_name="vsrc", parent_name="cone", **kwargs): super(VsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -139,14 +128,13 @@ def __init__(self, plotly_name='vsrc', parent_name='cone', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='cone', **kwargs): + def __init__(self, plotly_name="visible", parent_name="cone", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -155,13 +143,12 @@ def __init__(self, plotly_name='visible', parent_name='cone', **kwargs): class VValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='v', parent_name='cone', **kwargs): + def __init__(self, plotly_name="v", parent_name="cone", **kwargs): super(VValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -170,13 +157,12 @@ def __init__(self, plotly_name='v', parent_name='cone', **kwargs): class UsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='usrc', parent_name='cone', **kwargs): + def __init__(self, plotly_name="usrc", parent_name="cone", **kwargs): super(UsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -185,13 +171,12 @@ def __init__(self, plotly_name='usrc', parent_name='cone', **kwargs): class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='uirevision', parent_name='cone', **kwargs): + def __init__(self, plotly_name="uirevision", parent_name="cone", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,14 +185,13 @@ def __init__(self, plotly_name='uirevision', parent_name='cone', **kwargs): class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='cone', **kwargs): + def __init__(self, plotly_name="uid", parent_name="cone", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -216,13 +200,12 @@ def __init__(self, plotly_name='uid', parent_name='cone', **kwargs): class UValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='u', parent_name='cone', **kwargs): + def __init__(self, plotly_name="u", parent_name="cone", **kwargs): super(UValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -231,13 +214,12 @@ def __init__(self, plotly_name='u', parent_name='cone', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='textsrc', parent_name='cone', **kwargs): + def __init__(self, plotly_name="textsrc", parent_name="cone", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -246,14 +228,13 @@ def __init__(self, plotly_name='textsrc', parent_name='cone', **kwargs): class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='cone', **kwargs): + def __init__(self, plotly_name="text", parent_name="cone", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -262,14 +243,14 @@ def __init__(self, plotly_name='text', parent_name='cone', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='cone', **kwargs): + def __init__(self, plotly_name="stream", parent_name="cone", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -279,7 +260,7 @@ def __init__(self, plotly_name='stream', parent_name='cone', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -289,14 +270,13 @@ def __init__(self, plotly_name='stream', parent_name='cone', **kwargs): class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='sizeref', parent_name='cone', **kwargs): + def __init__(self, plotly_name="sizeref", parent_name="cone", **kwargs): super(SizerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -305,14 +285,13 @@ def __init__(self, plotly_name='sizeref', parent_name='cone', **kwargs): class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='sizemode', parent_name='cone', **kwargs): + def __init__(self, plotly_name="sizemode", parent_name="cone", **kwargs): super(SizemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['scaled', 'absolute']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["scaled", "absolute"]), **kwargs ) @@ -321,13 +300,12 @@ def __init__(self, plotly_name='sizemode', parent_name='cone', **kwargs): class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__(self, plotly_name='showscale', parent_name='cone', **kwargs): + def __init__(self, plotly_name="showscale", parent_name="cone", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -336,14 +314,13 @@ def __init__(self, plotly_name='showscale', parent_name='cone', **kwargs): class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='scene', parent_name='cone', **kwargs): + def __init__(self, plotly_name="scene", parent_name="cone", **kwargs): super(SceneValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'scene'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "scene"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -352,15 +329,12 @@ def __init__(self, plotly_name='scene', parent_name='cone', **kwargs): class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='reversescale', parent_name='cone', **kwargs - ): + def __init__(self, plotly_name="reversescale", parent_name="cone", **kwargs): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -369,15 +343,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='opacity', parent_name='cone', **kwargs): + def __init__(self, plotly_name="opacity", parent_name="cone", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -386,13 +359,12 @@ def __init__(self, plotly_name='opacity', parent_name='cone', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='cone', **kwargs): + def __init__(self, plotly_name="name", parent_name="cone", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -401,13 +373,12 @@ def __init__(self, plotly_name='name', parent_name='cone', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='cone', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="cone", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -416,14 +387,13 @@ def __init__(self, plotly_name='metasrc', parent_name='cone', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='cone', **kwargs): + def __init__(self, plotly_name="meta", parent_name="cone", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -432,16 +402,14 @@ def __init__(self, plotly_name='meta', parent_name='cone', **kwargs): class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='lightposition', parent_name='cone', **kwargs - ): + def __init__(self, plotly_name="lightposition", parent_name="cone", **kwargs): super(LightpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Lightposition'), + data_class_str=kwargs.pop("data_class_str", "Lightposition"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x Numeric vector, representing the X coordinate for each vertex. @@ -451,7 +419,7 @@ def __init__( z Numeric vector, representing the Z coordinate for each vertex. -""" +""", ), **kwargs ) @@ -461,14 +429,14 @@ def __init__( class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='lighting', parent_name='cone', **kwargs): + def __init__(self, plotly_name="lighting", parent_name="cone", **kwargs): super(LightingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Lighting'), + data_class_str=kwargs.pop("data_class_str", "Lighting"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ ambient Ambient light increases overall color visibility but can wash out the image. @@ -493,7 +461,7 @@ def __init__(self, plotly_name='lighting', parent_name='cone', **kwargs): vertexnormalsepsilon Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry. -""" +""", ), **kwargs ) @@ -503,13 +471,12 @@ def __init__(self, plotly_name='lighting', parent_name='cone', **kwargs): class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='cone', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="cone", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -518,14 +485,13 @@ def __init__(self, plotly_name='idssrc', parent_name='cone', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='cone', **kwargs): + def __init__(self, plotly_name="ids", parent_name="cone", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -534,15 +500,12 @@ def __init__(self, plotly_name='ids', parent_name='cone', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='cone', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="cone", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -551,14 +514,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='hovertext', parent_name='cone', **kwargs): + def __init__(self, plotly_name="hovertext", parent_name="cone", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -567,15 +529,12 @@ def __init__(self, plotly_name='hovertext', parent_name='cone', **kwargs): class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertemplatesrc', parent_name='cone', **kwargs - ): + def __init__(self, plotly_name="hovertemplatesrc", parent_name="cone", **kwargs): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -584,16 +543,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='cone', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="cone", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -602,14 +558,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='hoverlabel', parent_name='cone', **kwargs): + def __init__(self, plotly_name="hoverlabel", parent_name="cone", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -645,7 +601,7 @@ def __init__(self, plotly_name='hoverlabel', parent_name='cone', **kwargs): namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -655,15 +611,12 @@ def __init__(self, plotly_name='hoverlabel', parent_name='cone', **kwargs): class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='cone', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="cone", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -672,19 +625,17 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__(self, plotly_name='hoverinfo', parent_name='cone', **kwargs): + def __init__(self, plotly_name="hoverinfo", parent_name="cone", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), flags=kwargs.pop( - 'flags', - ['x', 'y', 'z', 'u', 'v', 'w', 'norm', 'text', 'name'] + "flags", ["x", "y", "z", "u", "v", "w", "norm", "text", "name"] ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -693,15 +644,12 @@ def __init__(self, plotly_name='hoverinfo', parent_name='cone', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='cone', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="cone", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -710,13 +658,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='customdata', parent_name='cone', **kwargs): + def __init__(self, plotly_name="customdata", parent_name="cone", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -725,16 +672,13 @@ def __init__(self, plotly_name='customdata', parent_name='cone', **kwargs): class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - - def __init__(self, plotly_name='colorscale', parent_name='cone', **kwargs): + def __init__(self, plotly_name="colorscale", parent_name="cone", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -743,14 +687,14 @@ def __init__(self, plotly_name='colorscale', parent_name='cone', **kwargs): class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='colorbar', parent_name='cone', **kwargs): + def __init__(self, plotly_name="colorbar", parent_name="cone", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -957,7 +901,7 @@ def __init__(self, plotly_name='colorbar', parent_name='cone', **kwargs): ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -967,15 +911,14 @@ def __init__(self, plotly_name='colorbar', parent_name='cone', **kwargs): class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='coloraxis', parent_name='cone', **kwargs): + def __init__(self, plotly_name="coloraxis", parent_name="cone", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -984,14 +927,13 @@ def __init__(self, plotly_name='coloraxis', parent_name='cone', **kwargs): class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmin', parent_name='cone', **kwargs): + def __init__(self, plotly_name="cmin", parent_name="cone", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1000,14 +942,13 @@ def __init__(self, plotly_name='cmin', parent_name='cone', **kwargs): class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmid', parent_name='cone', **kwargs): + def __init__(self, plotly_name="cmid", parent_name="cone", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1016,14 +957,13 @@ def __init__(self, plotly_name='cmid', parent_name='cone', **kwargs): class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmax', parent_name='cone', **kwargs): + def __init__(self, plotly_name="cmax", parent_name="cone", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1032,14 +972,13 @@ def __init__(self, plotly_name='cmax', parent_name='cone', **kwargs): class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__(self, plotly_name='cauto', parent_name='cone', **kwargs): + def __init__(self, plotly_name="cauto", parent_name="cone", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1048,16 +987,13 @@ def __init__(self, plotly_name='cauto', parent_name='cone', **kwargs): class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='autocolorscale', parent_name='cone', **kwargs - ): + def __init__(self, plotly_name="autocolorscale", parent_name="cone", **kwargs): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1066,13 +1002,12 @@ def __init__( class AnchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='anchor', parent_name='cone', **kwargs): + def __init__(self, plotly_name="anchor", parent_name="cone", **kwargs): super(AnchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['tip', 'tail', 'cm', 'center']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["tip", "tail", "cm", "center"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/__init__.py b/packages/python/plotly/plotly/validators/cone/colorbar/__init__.py index 9548cff3e72..757a97d07a9 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ypad', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="ypad", parent_name="cone.colorbar", **kwargs): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,16 +17,13 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='yanchor', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="yanchor", parent_name="cone.colorbar", **kwargs): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -40,15 +32,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='y', parent_name='cone.colorbar', **kwargs): + def __init__(self, plotly_name="y", parent_name="cone.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -57,16 +48,13 @@ def __init__(self, plotly_name='y', parent_name='cone.colorbar', **kwargs): class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='xpad', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="xpad", parent_name="cone.colorbar", **kwargs): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -75,16 +63,13 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xanchor', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="xanchor", parent_name="cone.colorbar", **kwargs): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -93,15 +78,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='x', parent_name='cone.colorbar', **kwargs): + def __init__(self, plotly_name="x", parent_name="cone.colorbar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -110,16 +94,14 @@ def __init__(self, plotly_name='x', parent_name='cone.colorbar', **kwargs): class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - - def __init__( - self, plotly_name='title', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="title", parent_name="cone.colorbar", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -135,7 +117,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -145,16 +127,13 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='tickwidth', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="tickwidth", parent_name="cone.colorbar", **kwargs): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -163,15 +142,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='tickvalssrc', parent_name='cone.colorbar', **kwargs + self, plotly_name="tickvalssrc", parent_name="cone.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -180,15 +158,12 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='tickvals', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="tickvals", parent_name="cone.colorbar", **kwargs): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -197,15 +172,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='ticktextsrc', parent_name='cone.colorbar', **kwargs + self, plotly_name="ticktextsrc", parent_name="cone.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -214,15 +188,12 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='ticktext', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="ticktext", parent_name="cone.colorbar", **kwargs): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -231,15 +202,12 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='ticksuffix', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="ticksuffix", parent_name="cone.colorbar", **kwargs): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -248,16 +216,13 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ticks', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="ticks", parent_name="cone.colorbar", **kwargs): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -266,15 +231,12 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='tickprefix', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="tickprefix", parent_name="cone.colorbar", **kwargs): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -283,17 +245,14 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='tickmode', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="tickmode", parent_name="cone.colorbar", **kwargs): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -302,16 +261,13 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ticklen', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="ticklen", parent_name="cone.colorbar", **kwargs): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -320,19 +276,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='cone.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="cone.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -340,22 +298,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='cone.colorbar', - **kwargs + self, plotly_name="tickformatstops", parent_name="cone.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -389,7 +342,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -399,15 +352,12 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='tickformat', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="tickformat", parent_name="cone.colorbar", **kwargs): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -416,16 +366,14 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='tickfont', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="tickfont", parent_name="cone.colorbar", **kwargs): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -446,7 +394,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -456,15 +404,12 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='tickcolor', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="tickcolor", parent_name="cone.colorbar", **kwargs): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -473,15 +418,12 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - - def __init__( - self, plotly_name='tickangle', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="tickangle", parent_name="cone.colorbar", **kwargs): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -490,16 +432,13 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='tick0', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="tick0", parent_name="cone.colorbar", **kwargs): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -508,19 +447,15 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='thicknessmode', - parent_name='cone.colorbar', - **kwargs + self, plotly_name="thicknessmode", parent_name="cone.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -529,16 +464,13 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='thickness', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="thickness", parent_name="cone.colorbar", **kwargs): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -546,22 +478,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='cone.colorbar', - **kwargs + self, plotly_name="showticksuffix", parent_name="cone.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -569,22 +495,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='cone.colorbar', - **kwargs + self, plotly_name="showtickprefix", parent_name="cone.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -593,18 +513,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='cone.colorbar', - **kwargs + self, plotly_name="showticklabels", parent_name="cone.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -613,19 +529,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='cone.colorbar', - **kwargs + self, plotly_name="showexponent", parent_name="cone.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -633,21 +545,15 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( - self, - plotly_name='separatethousands', - parent_name='cone.colorbar', - **kwargs + self, plotly_name="separatethousands", parent_name="cone.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -656,19 +562,15 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlinewidth', - parent_name='cone.colorbar', - **kwargs + self, plotly_name="outlinewidth", parent_name="cone.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -677,18 +579,14 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outlinecolor', - parent_name='cone.colorbar', - **kwargs + self, plotly_name="outlinecolor", parent_name="cone.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -697,16 +595,13 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='nticks', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="nticks", parent_name="cone.colorbar", **kwargs): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -715,16 +610,13 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='lenmode', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="lenmode", parent_name="cone.colorbar", **kwargs): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -733,16 +625,13 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='len', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="len", parent_name="cone.colorbar", **kwargs): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -750,24 +639,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='cone.colorbar', - **kwargs + self, plotly_name="exponentformat", parent_name="cone.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -776,16 +657,13 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='dtick', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="dtick", parent_name="cone.colorbar", **kwargs): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -794,16 +672,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='borderwidth', parent_name='cone.colorbar', **kwargs + self, plotly_name="borderwidth", parent_name="cone.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -812,15 +689,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='bordercolor', parent_name='cone.colorbar', **kwargs + self, plotly_name="bordercolor", parent_name="cone.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -829,14 +705,11 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='cone.colorbar', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="cone.colorbar", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/__init__.py index 8bab122f275..359e530f74a 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='cone.colorbar.tickfont', - **kwargs + self, plotly_name="size", parent_name="cone.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='cone.colorbar.tickfont', - **kwargs + self, plotly_name="family", parent_name="cone.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='cone.colorbar.tickfont', - **kwargs + self, plotly_name="color", parent_name="cone.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/__init__.py index c529bcfcbfa..60aea7e6412 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/tickformatstop/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='value', - parent_name='cone.colorbar.tickformatstop', - **kwargs + self, plotly_name="value", parent_name="cone.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +18,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='cone.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="cone.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +37,14 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='name', - parent_name='cone.colorbar.tickformatstop', - **kwargs + self, plotly_name="name", parent_name="cone.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +53,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='cone.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="cone.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +72,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='cone.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="cone.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/cone/colorbar/title/__init__.py index 7677a39fc73..4624f3ec5e3 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/title/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='text', parent_name='cone.colorbar.title', **kwargs - ): + def __init__(self, plotly_name="text", parent_name="cone.colorbar.title", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +16,13 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='side', parent_name='cone.colorbar.title', **kwargs - ): + def __init__(self, plotly_name="side", parent_name="cone.colorbar.title", **kwargs): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -39,16 +31,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='cone.colorbar.title', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="cone.colorbar.title", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -69,7 +59,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/__init__.py index 9275d5666f5..7ff498ea637 100644 --- a/packages/python/plotly/plotly/validators/cone/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/colorbar/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='cone.colorbar.title.font', - **kwargs + self, plotly_name="size", parent_name="cone.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='cone.colorbar.title.font', - **kwargs + self, plotly_name="family", parent_name="cone.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='cone.colorbar.title.font', - **kwargs + self, plotly_name="color", parent_name="cone.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/__init__.py index bf35e878af2..0307c815660 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='cone.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="cone.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='cone.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="cone.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='cone.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="cone.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='cone.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="cone.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='cone.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="cone.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='cone.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="cone.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,16 +132,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='cone.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="cone.hoverlabel", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -174,15 +147,12 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='alignsrc', parent_name='cone.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="alignsrc", parent_name="cone.hoverlabel", **kwargs): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -191,16 +161,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='cone.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="cone.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/__init__.py index 02828fd115e..198c8f81f2f 100644 --- a/packages/python/plotly/plotly/validators/cone/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='cone.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="cone.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='size', parent_name='cone.hoverlabel.font', **kwargs + self, plotly_name="size", parent_name="cone.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='cone.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="cone.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -63,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='cone.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="cone.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -86,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='cone.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="cone.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -106,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='cone.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="cone.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/cone/lighting/__init__.py b/packages/python/plotly/plotly/validators/cone/lighting/__init__.py index a92df197739..8fa4e648a63 100644 --- a/packages/python/plotly/plotly/validators/cone/lighting/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/lighting/__init__.py @@ -1,25 +1,17 @@ - - import _plotly_utils.basevalidators -class VertexnormalsepsilonValidator( - _plotly_utils.basevalidators.NumberValidator -): - +class VertexnormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( - self, - plotly_name='vertexnormalsepsilon', - parent_name='cone.lighting', - **kwargs + self, plotly_name="vertexnormalsepsilon", parent_name="cone.lighting", **kwargs ): super(VertexnormalsepsilonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -28,17 +20,14 @@ def __init__( class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='specular', parent_name='cone.lighting', **kwargs - ): + def __init__(self, plotly_name="specular", parent_name="cone.lighting", **kwargs): super(SpecularValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 2), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 2), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +36,14 @@ def __init__( class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='roughness', parent_name='cone.lighting', **kwargs - ): + def __init__(self, plotly_name="roughness", parent_name="cone.lighting", **kwargs): super(RoughnessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -66,17 +52,14 @@ def __init__( class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fresnel', parent_name='cone.lighting', **kwargs - ): + def __init__(self, plotly_name="fresnel", parent_name="cone.lighting", **kwargs): super(FresnelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 5), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 5), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -84,23 +67,17 @@ def __init__( import _plotly_utils.basevalidators -class FacenormalsepsilonValidator( - _plotly_utils.basevalidators.NumberValidator -): - +class FacenormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( - self, - plotly_name='facenormalsepsilon', - parent_name='cone.lighting', - **kwargs + self, plotly_name="facenormalsepsilon", parent_name="cone.lighting", **kwargs ): super(FacenormalsepsilonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -109,17 +86,14 @@ def __init__( class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='diffuse', parent_name='cone.lighting', **kwargs - ): + def __init__(self, plotly_name="diffuse", parent_name="cone.lighting", **kwargs): super(DiffuseValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -128,16 +102,13 @@ def __init__( class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ambient', parent_name='cone.lighting', **kwargs - ): + def __init__(self, plotly_name="ambient", parent_name="cone.lighting", **kwargs): super(AmbientValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/cone/lightposition/__init__.py b/packages/python/plotly/plotly/validators/cone/lightposition/__init__.py index 8d831612d7b..fb41b1ae6ae 100644 --- a/packages/python/plotly/plotly/validators/cone/lightposition/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/lightposition/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='z', parent_name='cone.lightposition', **kwargs - ): + def __init__(self, plotly_name="z", parent_name="cone.lightposition", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,17 +18,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='cone.lightposition', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="cone.lightposition", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) @@ -42,16 +34,13 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='cone.lightposition', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="cone.lightposition", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/cone/stream/__init__.py b/packages/python/plotly/plotly/validators/cone/stream/__init__.py index 1956eb02bd2..2975fadd5c4 100644 --- a/packages/python/plotly/plotly/validators/cone/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/cone/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='cone.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="cone.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='cone.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="cone.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contour/__init__.py b/packages/python/plotly/plotly/validators/contour/__init__.py index a89531d7439..4c3a7fa839b 100644 --- a/packages/python/plotly/plotly/validators/contour/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='zsrc', parent_name='contour', **kwargs): + def __init__(self, plotly_name="zsrc", parent_name="contour", **kwargs): super(ZsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,14 +16,13 @@ def __init__(self, plotly_name='zsrc', parent_name='contour', **kwargs): class ZminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='zmin', parent_name='contour', **kwargs): + def __init__(self, plotly_name="zmin", parent_name="contour", **kwargs): super(ZminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'zauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"zauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -35,14 +31,13 @@ def __init__(self, plotly_name='zmin', parent_name='contour', **kwargs): class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='zmid', parent_name='contour', **kwargs): + def __init__(self, plotly_name="zmid", parent_name="contour", **kwargs): super(ZmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -51,14 +46,13 @@ def __init__(self, plotly_name='zmid', parent_name='contour', **kwargs): class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='zmax', parent_name='contour', **kwargs): + def __init__(self, plotly_name="zmax", parent_name="contour", **kwargs): super(ZmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'zauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"zauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -67,15 +61,12 @@ def __init__(self, plotly_name='zmax', parent_name='contour', **kwargs): class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='zhoverformat', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="zhoverformat", parent_name="contour", **kwargs): super(ZhoverformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -84,14 +75,13 @@ def __init__( class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__(self, plotly_name='zauto', parent_name='contour', **kwargs): + def __init__(self, plotly_name="zauto", parent_name="contour", **kwargs): super(ZautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -100,13 +90,12 @@ def __init__(self, plotly_name='zauto', parent_name='contour', **kwargs): class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='z', parent_name='contour', **kwargs): + def __init__(self, plotly_name="z", parent_name="contour", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -115,14 +104,13 @@ def __init__(self, plotly_name='z', parent_name='contour', **kwargs): class YtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='ytype', parent_name='contour', **kwargs): + def __init__(self, plotly_name="ytype", parent_name="contour", **kwargs): super(YtypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['array', 'scaled']), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["array", "scaled"]), **kwargs ) @@ -131,13 +119,12 @@ def __init__(self, plotly_name='ytype', parent_name='contour', **kwargs): class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='contour', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="contour", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -146,22 +133,32 @@ def __init__(self, plotly_name='ysrc', parent_name='contour', **kwargs): class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ycalendar', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="ycalendar", parent_name="contour", **kwargs): super(YcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -171,14 +168,13 @@ def __init__( class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='yaxis', parent_name='contour', **kwargs): + def __init__(self, plotly_name="yaxis", parent_name="contour", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -187,15 +183,14 @@ def __init__(self, plotly_name='yaxis', parent_name='contour', **kwargs): class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='y0', parent_name='contour', **kwargs): + def __init__(self, plotly_name="y0", parent_name="contour", **kwargs): super(Y0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -204,15 +199,14 @@ def __init__(self, plotly_name='y0', parent_name='contour', **kwargs): class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='contour', **kwargs): + def __init__(self, plotly_name="y", parent_name="contour", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - implied_edits=kwargs.pop('implied_edits', {'ytype': 'array'}), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + implied_edits=kwargs.pop("implied_edits", {"ytype": "array"}), + role=kwargs.pop("role", "data"), **kwargs ) @@ -221,14 +215,13 @@ def __init__(self, plotly_name='y', parent_name='contour', **kwargs): class XtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='xtype', parent_name='contour', **kwargs): + def __init__(self, plotly_name="xtype", parent_name="contour", **kwargs): super(XtypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['array', 'scaled']), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["array", "scaled"]), **kwargs ) @@ -237,13 +230,12 @@ def __init__(self, plotly_name='xtype', parent_name='contour', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='contour', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="contour", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -252,22 +244,32 @@ def __init__(self, plotly_name='xsrc', parent_name='contour', **kwargs): class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xcalendar', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="xcalendar", parent_name="contour", **kwargs): super(XcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -277,14 +279,13 @@ def __init__( class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='xaxis', parent_name='contour', **kwargs): + def __init__(self, plotly_name="xaxis", parent_name="contour", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -293,15 +294,14 @@ def __init__(self, plotly_name='xaxis', parent_name='contour', **kwargs): class X0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='x0', parent_name='contour', **kwargs): + def __init__(self, plotly_name="x0", parent_name="contour", **kwargs): super(X0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -310,15 +310,14 @@ def __init__(self, plotly_name='x0', parent_name='contour', **kwargs): class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='contour', **kwargs): + def __init__(self, plotly_name="x", parent_name="contour", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - implied_edits=kwargs.pop('implied_edits', {'xtype': 'array'}), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + implied_edits=kwargs.pop("implied_edits", {"xtype": "array"}), + role=kwargs.pop("role", "data"), **kwargs ) @@ -327,14 +326,13 @@ def __init__(self, plotly_name='x', parent_name='contour', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='contour', **kwargs): + def __init__(self, plotly_name="visible", parent_name="contour", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -343,15 +341,12 @@ def __init__(self, plotly_name='visible', parent_name='contour', **kwargs): class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="contour", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -360,14 +355,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='contour', **kwargs): + def __init__(self, plotly_name="uid", parent_name="contour", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -376,15 +370,12 @@ def __init__(self, plotly_name='uid', parent_name='contour', **kwargs): class TransposeValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='transpose', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="transpose", parent_name="contour", **kwargs): super(TransposeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -393,13 +384,12 @@ def __init__( class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='textsrc', parent_name='contour', **kwargs): + def __init__(self, plotly_name="textsrc", parent_name="contour", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -408,13 +398,12 @@ def __init__(self, plotly_name='textsrc', parent_name='contour', **kwargs): class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='text', parent_name='contour', **kwargs): + def __init__(self, plotly_name="text", parent_name="contour", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -423,14 +412,14 @@ def __init__(self, plotly_name='text', parent_name='contour', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='contour', **kwargs): + def __init__(self, plotly_name="stream", parent_name="contour", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -440,7 +429,7 @@ def __init__(self, plotly_name='stream', parent_name='contour', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -450,15 +439,12 @@ def __init__(self, plotly_name='stream', parent_name='contour', **kwargs): class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="contour", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -467,15 +453,12 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="contour", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -484,15 +467,12 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='reversescale', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="reversescale", parent_name="contour", **kwargs): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -501,15 +481,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='opacity', parent_name='contour', **kwargs): + def __init__(self, plotly_name="opacity", parent_name="contour", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -518,16 +497,13 @@ def __init__(self, plotly_name='opacity', parent_name='contour', **kwargs): class NcontoursValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='ncontours', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="ncontours", parent_name="contour", **kwargs): super(NcontoursValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -536,13 +512,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='contour', **kwargs): + def __init__(self, plotly_name="name", parent_name="contour", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -551,13 +526,12 @@ def __init__(self, plotly_name='name', parent_name='contour', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='contour', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="contour", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -566,14 +540,13 @@ def __init__(self, plotly_name='metasrc', parent_name='contour', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='contour', **kwargs): + def __init__(self, plotly_name="meta", parent_name="contour", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -582,14 +555,14 @@ def __init__(self, plotly_name='meta', parent_name='contour', **kwargs): class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='line', parent_name='contour', **kwargs): + def __init__(self, plotly_name="line", parent_name="contour", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of the contour level. Has no effect if `contours.coloring` is set to @@ -604,7 +577,7 @@ def __init__(self, plotly_name='line', parent_name='contour', **kwargs): lines, where 0 corresponds to no smoothing. width Sets the line width (in px). -""" +""", ), **kwargs ) @@ -614,15 +587,12 @@ def __init__(self, plotly_name='line', parent_name='contour', **kwargs): class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='legendgroup', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="legendgroup", parent_name="contour", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -631,13 +601,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='contour', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="contour", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -646,14 +615,13 @@ def __init__(self, plotly_name='idssrc', parent_name='contour', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='contour', **kwargs): + def __init__(self, plotly_name="ids", parent_name="contour", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -662,15 +630,12 @@ def __init__(self, plotly_name='ids', parent_name='contour', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="contour", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -679,15 +644,12 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="contour", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -696,15 +658,12 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertemplatesrc', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="hovertemplatesrc", parent_name="contour", **kwargs): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -713,16 +672,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="contour", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -731,16 +687,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="contour", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -776,7 +730,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -786,15 +740,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="contour", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -803,18 +754,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="contour", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -823,18 +771,13 @@ def __init__( class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='fillcolor', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="fillcolor", parent_name="contour", **kwargs): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - colorscale_path=kwargs.pop( - 'colorscale_path', 'contour.colorscale' - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + colorscale_path=kwargs.pop("colorscale_path", "contour.colorscale"), **kwargs ) @@ -843,15 +786,14 @@ def __init__( class DyValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dy', parent_name='contour', **kwargs): + def __init__(self, plotly_name="dy", parent_name="contour", **kwargs): super(DyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -860,15 +802,14 @@ def __init__(self, plotly_name='dy', parent_name='contour', **kwargs): class DxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dx', parent_name='contour', **kwargs): + def __init__(self, plotly_name="dx", parent_name="contour", **kwargs): super(DxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -877,15 +818,12 @@ def __init__(self, plotly_name='dx', parent_name='contour', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="contour", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -894,15 +832,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="contour", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -911,16 +846,14 @@ def __init__( class ContoursValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='contours', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="contours", parent_name="contour", **kwargs): super(ContoursValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Contours'), + data_class_str=kwargs.pop("data_class_str", "Contours"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ coloring Determines the coloring method showing the contour values. If "fill", coloring is done @@ -983,7 +916,7 @@ def __init__( to be an array of two numbers where the first is the lower bound and the second is the upper bound. -""" +""", ), **kwargs ) @@ -993,15 +926,12 @@ def __init__( class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='connectgaps', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="connectgaps", parent_name="contour", **kwargs): super(ConnectgapsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1010,18 +940,13 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - - def __init__( - self, plotly_name='colorscale', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="colorscale", parent_name="contour", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1030,16 +955,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorbar', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="colorbar", parent_name="contour", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -1248,7 +1171,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -1258,17 +1181,14 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="contour", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1277,16 +1197,13 @@ def __init__( class AutocontourValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='autocontour', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="autocontour", parent_name="contour", **kwargs): super(AutocontourValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1295,15 +1212,12 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='autocolorscale', parent_name='contour', **kwargs - ): + def __init__(self, plotly_name="autocolorscale", parent_name="contour", **kwargs): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/__init__.py b/packages/python/plotly/plotly/validators/contour/colorbar/__init__.py index 25fcd329536..92babc66a13 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ypad', parent_name='contour.colorbar', **kwargs - ): + def __init__(self, plotly_name="ypad", parent_name="contour.colorbar", **kwargs): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,16 +17,13 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='yanchor', parent_name='contour.colorbar', **kwargs - ): + def __init__(self, plotly_name="yanchor", parent_name="contour.colorbar", **kwargs): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -40,17 +32,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='contour.colorbar', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="contour.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -59,16 +48,13 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='xpad', parent_name='contour.colorbar', **kwargs - ): + def __init__(self, plotly_name="xpad", parent_name="contour.colorbar", **kwargs): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -77,16 +63,13 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xanchor', parent_name='contour.colorbar', **kwargs - ): + def __init__(self, plotly_name="xanchor", parent_name="contour.colorbar", **kwargs): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -95,17 +78,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='contour.colorbar', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="contour.colorbar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -114,16 +94,14 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - - def __init__( - self, plotly_name='title', parent_name='contour.colorbar', **kwargs - ): + def __init__(self, plotly_name="title", parent_name="contour.colorbar", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -139,7 +117,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -149,19 +127,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="contour.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -170,18 +144,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="contour.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -190,15 +160,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name='tickvals', parent_name='contour.colorbar', **kwargs + self, plotly_name="tickvals", parent_name="contour.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -207,18 +176,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="contour.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -227,15 +192,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name='ticktext', parent_name='contour.colorbar', **kwargs + self, plotly_name="ticktext", parent_name="contour.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -244,18 +208,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="contour.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -264,16 +224,13 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ticks', parent_name='contour.colorbar', **kwargs - ): + def __init__(self, plotly_name="ticks", parent_name="contour.colorbar", **kwargs): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -282,18 +239,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="contour.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -302,17 +255,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='tickmode', parent_name='contour.colorbar', **kwargs + self, plotly_name="tickmode", parent_name="contour.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -321,16 +273,13 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ticklen', parent_name='contour.colorbar', **kwargs - ): + def __init__(self, plotly_name="ticklen", parent_name="contour.colorbar", **kwargs): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -339,19 +288,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='contour.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="contour.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -359,22 +310,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="tickformatstops", parent_name="contour.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -408,7 +354,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -418,18 +364,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="contour.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -438,16 +380,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='tickfont', parent_name='contour.colorbar', **kwargs + self, plotly_name="tickfont", parent_name="contour.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -468,7 +410,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -478,18 +420,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="contour.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -498,18 +436,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="contour.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -518,16 +452,13 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='tick0', parent_name='contour.colorbar', **kwargs - ): + def __init__(self, plotly_name="tick0", parent_name="contour.colorbar", **kwargs): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -536,19 +467,15 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='thicknessmode', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="thicknessmode", parent_name="contour.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -557,19 +484,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="contour.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -577,22 +500,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="showticksuffix", parent_name="contour.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -600,22 +517,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="showtickprefix", parent_name="contour.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -624,18 +535,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="showticklabels", parent_name="contour.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -644,19 +551,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="showexponent", parent_name="contour.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -664,21 +567,15 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( - self, - plotly_name='separatethousands', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="separatethousands", parent_name="contour.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -687,19 +584,15 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlinewidth', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="outlinewidth", parent_name="contour.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -708,18 +601,14 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outlinecolor', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="outlinecolor", parent_name="contour.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -728,16 +617,13 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='nticks', parent_name='contour.colorbar', **kwargs - ): + def __init__(self, plotly_name="nticks", parent_name="contour.colorbar", **kwargs): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -746,16 +632,13 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='lenmode', parent_name='contour.colorbar', **kwargs - ): + def __init__(self, plotly_name="lenmode", parent_name="contour.colorbar", **kwargs): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -764,16 +647,13 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='len', parent_name='contour.colorbar', **kwargs - ): + def __init__(self, plotly_name="len", parent_name="contour.colorbar", **kwargs): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -781,24 +661,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="exponentformat", parent_name="contour.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -807,16 +679,13 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='dtick', parent_name='contour.colorbar', **kwargs - ): + def __init__(self, plotly_name="dtick", parent_name="contour.colorbar", **kwargs): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -825,19 +694,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="contour.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -846,18 +711,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='contour.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="contour.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -866,14 +727,11 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='contour.colorbar', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="contour.colorbar", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/__init__.py index 16728294f79..fa5b297d3bc 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='contour.colorbar.tickfont', - **kwargs + self, plotly_name="size", parent_name="contour.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='contour.colorbar.tickfont', - **kwargs + self, plotly_name="family", parent_name="contour.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='contour.colorbar.tickfont', - **kwargs + self, plotly_name="color", parent_name="contour.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/__init__.py index 08ec1510b12..9bc2a637b63 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='contour.colorbar.tickformatstop', + plotly_name="value", + parent_name="contour.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='contour.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="contour.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='contour.colorbar.tickformatstop', + plotly_name="name", + parent_name="contour.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='contour.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="contour.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='contour.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="contour.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/contour/colorbar/title/__init__.py index d668147161f..35e05d4599c 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='contour.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="contour.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='contour.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="contour.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='contour.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="contour.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/__init__.py index 2f0e05e686b..9c786f237d2 100644 --- a/packages/python/plotly/plotly/validators/contour/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/colorbar/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='contour.colorbar.title.font', - **kwargs + self, plotly_name="size", parent_name="contour.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='contour.colorbar.title.font', - **kwargs + self, plotly_name="family", parent_name="contour.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='contour.colorbar.title.font', - **kwargs + self, plotly_name="color", parent_name="contour.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contour/contours/__init__.py b/packages/python/plotly/plotly/validators/contour/contours/__init__.py index 42b30f37a49..bb44ba81cb8 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/contours/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='value', parent_name='contour.contours', **kwargs - ): + def __init__(self, plotly_name="value", parent_name="contour.contours", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +16,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='contour.contours', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="contour.contours", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['levels', 'constraint']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["levels", "constraint"]), **kwargs ) @@ -39,16 +31,13 @@ def __init__( class StartValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='start', parent_name='contour.contours', **kwargs - ): + def __init__(self, plotly_name="start", parent_name="contour.contours", **kwargs): super(StartValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -57,17 +46,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='contour.contours', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="contour.contours", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -76,18 +62,14 @@ def __init__( class ShowlinesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showlines', - parent_name='contour.contours', - **kwargs + self, plotly_name="showlines", parent_name="contour.contours", **kwargs ): super(ShowlinesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -96,18 +78,14 @@ def __init__( class ShowlabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showlabels', - parent_name='contour.contours', - **kwargs + self, plotly_name="showlabels", parent_name="contour.contours", **kwargs ): super(ShowlabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -116,23 +94,31 @@ def __init__( class OperationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='operation', - parent_name='contour.contours', - **kwargs + self, plotly_name="operation", parent_name="contour.contours", **kwargs ): super(OperationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - '=', '<', '>=', '>', '<=', '[]', '()', '[)', '(]', '][', - ')(', '](', ')[' - ] + "values", + [ + "=", + "<", + ">=", + ">", + "<=", + "[]", + "()", + "[)", + "(]", + "][", + ")(", + "](", + ")[", + ], ), **kwargs ) @@ -142,18 +128,14 @@ def __init__( class LabelformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='labelformat', - parent_name='contour.contours', - **kwargs + self, plotly_name="labelformat", parent_name="contour.contours", **kwargs ): super(LabelformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -162,19 +144,16 @@ def __init__( class LabelfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='labelfont', - parent_name='contour.contours', - **kwargs + self, plotly_name="labelfont", parent_name="contour.contours", **kwargs ): super(LabelfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Labelfont'), + data_class_str=kwargs.pop("data_class_str", "Labelfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -195,7 +174,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -205,16 +184,13 @@ def __init__( class EndValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='end', parent_name='contour.contours', **kwargs - ): + def __init__(self, plotly_name="end", parent_name="contour.contours", **kwargs): super(EndValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -223,15 +199,14 @@ def __init__( class ColoringValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='coloring', parent_name='contour.contours', **kwargs + self, plotly_name="coloring", parent_name="contour.contours", **kwargs ): super(ColoringValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fill', 'heatmap', 'lines', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fill", "heatmap", "lines", "none"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contour/contours/labelfont/__init__.py b/packages/python/plotly/plotly/validators/contour/contours/labelfont/__init__.py index 2e6b523f6f6..531839c2867 100644 --- a/packages/python/plotly/plotly/validators/contour/contours/labelfont/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/contours/labelfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='contour.contours.labelfont', - **kwargs + self, plotly_name="size", parent_name="contour.contours.labelfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='contour.contours.labelfont', - **kwargs + self, plotly_name="family", parent_name="contour.contours.labelfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='contour.contours.labelfont', - **kwargs + self, plotly_name="color", parent_name="contour.contours.labelfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/__init__.py index 34763196c93..3e008b0dcde 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='contour.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="contour.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='contour.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="contour.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='contour.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="contour.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='contour.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="contour.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='contour.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="contour.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='contour.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="contour.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,19 +132,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='contour.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="contour.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -177,18 +149,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='contour.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="contour.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -197,16 +165,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='contour.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="contour.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/__init__.py index 704257e34b2..47bc4bff755 100644 --- a/packages/python/plotly/plotly/validators/contour/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='contour.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="contour.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='contour.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="contour.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='contour.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="contour.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='contour.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="contour.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='contour.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="contour.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='contour.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="contour.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contour/line/__init__.py b/packages/python/plotly/plotly/validators/contour/line/__init__.py index 05614dcb109..a211817e54a 100644 --- a/packages/python/plotly/plotly/validators/contour/line/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/line/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='contour.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="contour.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style+colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style+colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,17 +18,14 @@ def __init__( class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='smoothing', parent_name='contour.line', **kwargs - ): + def __init__(self, plotly_name="smoothing", parent_name="contour.line", **kwargs): super(SmoothingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 1.3), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 1.3), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -42,18 +34,14 @@ def __init__( class DashValidator(_plotly_utils.basevalidators.DashValidator): - - def __init__( - self, plotly_name='dash', parent_name='contour.line', **kwargs - ): + def __init__(self, plotly_name="dash", parent_name="contour.line", **kwargs): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -63,15 +51,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='contour.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="contour.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style+colorbars'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style+colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contour/stream/__init__.py b/packages/python/plotly/plotly/validators/contour/stream/__init__.py index ff13c96c840..42a8346a1b6 100644 --- a/packages/python/plotly/plotly/validators/contour/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/contour/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='contour.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="contour.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='contour.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="contour.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contourcarpet/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/__init__.py index 82fcc7b71da..83693540e14 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='zsrc', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="zsrc", parent_name="contourcarpet", **kwargs): super(ZsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +16,13 @@ def __init__( class ZminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='zmin', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="zmin", parent_name="contourcarpet", **kwargs): super(ZminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'zauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"zauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,16 +31,13 @@ def __init__( class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='zmid', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="zmid", parent_name="contourcarpet", **kwargs): super(ZmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -57,16 +46,13 @@ def __init__( class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='zmax', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="zmax", parent_name="contourcarpet", **kwargs): super(ZmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'zauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"zauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -75,16 +61,13 @@ def __init__( class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='zauto', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="zauto", parent_name="contourcarpet", **kwargs): super(ZautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -93,13 +76,12 @@ def __init__( class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='z', parent_name='contourcarpet', **kwargs): + def __init__(self, plotly_name="z", parent_name="contourcarpet", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -108,16 +90,13 @@ def __init__(self, plotly_name='z', parent_name='contourcarpet', **kwargs): class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='yaxis', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="yaxis", parent_name="contourcarpet", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -126,16 +105,13 @@ def __init__( class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='xaxis', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="xaxis", parent_name="contourcarpet", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -144,16 +120,13 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="contourcarpet", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -162,15 +135,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="contourcarpet", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -179,16 +149,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='uid', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="uid", parent_name="contourcarpet", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -197,15 +164,12 @@ def __init__( class TransposeValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='transpose', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="transpose", parent_name="contourcarpet", **kwargs): super(TransposeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -214,15 +178,12 @@ def __init__( class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="contourcarpet", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -231,15 +192,12 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='text', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="text", parent_name="contourcarpet", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -248,16 +206,14 @@ def __init__( class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="contourcarpet", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -267,7 +223,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -277,15 +233,12 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="contourcarpet", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -294,15 +247,12 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="contourcarpet", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -311,18 +261,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='contourcarpet', - **kwargs + self, plotly_name="reversescale", parent_name="contourcarpet", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -331,17 +277,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="contourcarpet", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -350,16 +293,13 @@ def __init__( class NcontoursValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='ncontours', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="ncontours", parent_name="contourcarpet", **kwargs): super(NcontoursValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -368,15 +308,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="contourcarpet", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -385,15 +322,12 @@ def __init__( class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="contourcarpet", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -402,16 +336,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='meta', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="meta", parent_name="contourcarpet", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -420,16 +351,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="contourcarpet", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of the contour level. Has no if `contours.coloring` is set to "lines". @@ -443,7 +372,7 @@ def __init__( lines, where 0 corresponds to no smoothing. width Sets the line width (in px). -""" +""", ), **kwargs ) @@ -453,15 +382,14 @@ def __init__( class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='legendgroup', parent_name='contourcarpet', **kwargs + self, plotly_name="legendgroup", parent_name="contourcarpet", **kwargs ): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -470,15 +398,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="contourcarpet", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -487,16 +412,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='ids', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="ids", parent_name="contourcarpet", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -505,18 +427,14 @@ def __init__( class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertextsrc', - parent_name='contourcarpet', - **kwargs + self, plotly_name="hovertextsrc", parent_name="contourcarpet", **kwargs ): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -525,15 +443,12 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="contourcarpet", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -542,16 +457,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="contourcarpet", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -587,7 +500,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -597,18 +510,14 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hoverinfosrc', - parent_name='contourcarpet', - **kwargs + self, plotly_name="hoverinfosrc", parent_name="contourcarpet", **kwargs ): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -617,18 +526,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="contourcarpet", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -637,18 +543,13 @@ def __init__( class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='fillcolor', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="fillcolor", parent_name="contourcarpet", **kwargs): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - colorscale_path=kwargs.pop( - 'colorscale_path', 'contourcarpet.colorscale' - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + colorscale_path=kwargs.pop("colorscale_path", "contourcarpet.colorscale"), **kwargs ) @@ -657,17 +558,14 @@ def __init__( class DbValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='db', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="db", parent_name="contourcarpet", **kwargs): super(DbValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -676,17 +574,14 @@ def __init__( class DaValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='da', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="da", parent_name="contourcarpet", **kwargs): super(DaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -695,18 +590,14 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='customdatasrc', - parent_name='contourcarpet', - **kwargs + self, plotly_name="customdatasrc", parent_name="contourcarpet", **kwargs ): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -715,15 +606,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="contourcarpet", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -732,16 +620,14 @@ def __init__( class ContoursValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='contours', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="contours", parent_name="contourcarpet", **kwargs): super(ContoursValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Contours'), + data_class_str=kwargs.pop("data_class_str", "Contours"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ coloring Determines the coloring method showing the contour values. If "fill", coloring is done @@ -802,7 +688,7 @@ def __init__( to be an array of two numbers where the first is the lower bound and the second is the upper bound. -""" +""", ), **kwargs ) @@ -812,18 +698,13 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - - def __init__( - self, plotly_name='colorscale', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="colorscale", parent_name="contourcarpet", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -832,16 +713,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorbar', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="colorbar", parent_name="contourcarpet", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -1052,7 +931,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -1062,17 +941,14 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="contourcarpet", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1081,15 +957,12 @@ def __init__( class CarpetValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='carpet', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="carpet", parent_name="contourcarpet", **kwargs): super(CarpetValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1098,16 +971,13 @@ def __init__( class BtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='btype', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="btype", parent_name="contourcarpet", **kwargs): super(BtypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['array', 'scaled']), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["array", "scaled"]), **kwargs ) @@ -1116,15 +986,12 @@ def __init__( class BsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='bsrc', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="bsrc", parent_name="contourcarpet", **kwargs): super(BsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1133,17 +1000,14 @@ def __init__( class B0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='b0', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="b0", parent_name="contourcarpet", **kwargs): super(B0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1152,15 +1016,14 @@ def __init__( class BValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='b', parent_name='contourcarpet', **kwargs): + def __init__(self, plotly_name="b", parent_name="contourcarpet", **kwargs): super(BValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - implied_edits=kwargs.pop('implied_edits', {'ytype': 'array'}), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + implied_edits=kwargs.pop("implied_edits", {"ytype": "array"}), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1169,16 +1032,15 @@ def __init__(self, plotly_name='b', parent_name='contourcarpet', **kwargs): class AutocontourValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='autocontour', parent_name='contourcarpet', **kwargs + self, plotly_name="autocontour", parent_name="contourcarpet", **kwargs ): super(AutocontourValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1187,19 +1049,15 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='contourcarpet', - **kwargs + self, plotly_name="autocolorscale", parent_name="contourcarpet", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1208,16 +1066,13 @@ def __init__( class AtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='atype', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="atype", parent_name="contourcarpet", **kwargs): super(AtypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['array', 'scaled']), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["array", "scaled"]), **kwargs ) @@ -1226,15 +1081,12 @@ def __init__( class AsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='asrc', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="asrc", parent_name="contourcarpet", **kwargs): super(AsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1243,17 +1095,14 @@ def __init__( class A0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='a0', parent_name='contourcarpet', **kwargs - ): + def __init__(self, plotly_name="a0", parent_name="contourcarpet", **kwargs): super(A0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1262,14 +1111,13 @@ def __init__( class AValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='a', parent_name='contourcarpet', **kwargs): + def __init__(self, plotly_name="a", parent_name="contourcarpet", **kwargs): super(AValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - implied_edits=kwargs.pop('implied_edits', {'xtype': 'array'}), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + implied_edits=kwargs.pop("implied_edits", {"xtype": "array"}), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/__init__.py index e368a5dd323..225c9262b70 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="contourcarpet.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="contourcarpet.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,17 +36,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='contourcarpet.colorbar', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="contourcarpet.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -65,19 +52,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="contourcarpet.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -86,19 +69,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="contourcarpet.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -107,17 +86,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='contourcarpet.colorbar', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="contourcarpet.colorbar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -126,19 +102,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="title", parent_name="contourcarpet.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -154,7 +127,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -164,19 +137,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="contourcarpet.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -185,18 +154,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="contourcarpet.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -205,18 +170,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="contourcarpet.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -225,18 +186,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="contourcarpet.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -245,18 +202,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="contourcarpet.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -265,18 +218,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="contourcarpet.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -285,19 +234,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="contourcarpet.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -306,18 +251,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="contourcarpet.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -326,20 +267,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="contourcarpet.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -348,19 +285,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="contourcarpet.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -369,19 +302,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='contourcarpet.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="contourcarpet.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -389,22 +324,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='contourcarpet.colorbar', + plotly_name="tickformatstops", + parent_name="contourcarpet.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -438,7 +371,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -448,18 +381,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="contourcarpet.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -468,19 +397,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="contourcarpet.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -501,7 +427,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -511,18 +437,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="contourcarpet.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -531,18 +453,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="contourcarpet.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -551,19 +469,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="contourcarpet.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -572,19 +486,18 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='thicknessmode', - parent_name='contourcarpet.colorbar', + plotly_name="thicknessmode", + parent_name="contourcarpet.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -593,19 +506,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="contourcarpet.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -613,22 +522,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='contourcarpet.colorbar', + plotly_name="showticksuffix", + parent_name="contourcarpet.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -636,22 +542,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='contourcarpet.colorbar', + plotly_name="showtickprefix", + parent_name="contourcarpet.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -660,18 +563,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='contourcarpet.colorbar', + plotly_name="showticklabels", + parent_name="contourcarpet.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -680,19 +582,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="showexponent", parent_name="contourcarpet.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -700,21 +598,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='contourcarpet.colorbar', + plotly_name="separatethousands", + parent_name="contourcarpet.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -723,19 +618,15 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlinewidth', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="outlinewidth", parent_name="contourcarpet.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -744,18 +635,14 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outlinecolor', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="outlinecolor", parent_name="contourcarpet.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -764,19 +651,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="contourcarpet.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -785,19 +668,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="contourcarpet.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -806,19 +685,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='len', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="len", parent_name="contourcarpet.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -826,24 +701,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='contourcarpet.colorbar', + plotly_name="exponentformat", + parent_name="contourcarpet.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -852,19 +722,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="contourcarpet.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -873,19 +739,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="contourcarpet.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -894,18 +756,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="contourcarpet.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -914,17 +772,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='contourcarpet.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="contourcarpet.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/__init__.py index 3018852aae7..0ab06b32ad8 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='contourcarpet.colorbar.tickfont', + plotly_name="size", + parent_name="contourcarpet.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='contourcarpet.colorbar.tickfont', + plotly_name="family", + parent_name="contourcarpet.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='contourcarpet.colorbar.tickfont', + plotly_name="color", + parent_name="contourcarpet.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/__init__.py index 6d8211387b8..9c89fa75eda 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='contourcarpet.colorbar.tickformatstop', + plotly_name="value", + parent_name="contourcarpet.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='contourcarpet.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="contourcarpet.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='contourcarpet.colorbar.tickformatstop', + plotly_name="name", + parent_name="contourcarpet.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='contourcarpet.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="contourcarpet.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='contourcarpet.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="contourcarpet.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/__init__.py index 54367d38000..9591693a9ca 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='contourcarpet.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="contourcarpet.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='contourcarpet.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="contourcarpet.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='contourcarpet.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="contourcarpet.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/__init__.py index bf0fa23cb54..196393d4d19 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='contourcarpet.colorbar.title.font', + plotly_name="size", + parent_name="contourcarpet.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='contourcarpet.colorbar.title.font', + plotly_name="family", + parent_name="contourcarpet.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='contourcarpet.colorbar.title.font', + plotly_name="color", + parent_name="contourcarpet.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/__init__.py index a284f5190e2..8fbf2ad15cf 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='value', - parent_name='contourcarpet.contours', - **kwargs + self, plotly_name="value", parent_name="contourcarpet.contours", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='type', - parent_name='contourcarpet.contours', - **kwargs + self, plotly_name="type", parent_name="contourcarpet.contours", **kwargs ): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['levels', 'constraint']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["levels", "constraint"]), **kwargs ) @@ -45,19 +35,15 @@ def __init__( class StartValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='start', - parent_name='contourcarpet.contours', - **kwargs + self, plotly_name="start", parent_name="contourcarpet.contours", **kwargs ): super(StartValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -66,20 +52,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='contourcarpet.contours', - **kwargs + self, plotly_name="size", parent_name="contourcarpet.contours", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -88,18 +70,14 @@ def __init__( class ShowlinesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showlines', - parent_name='contourcarpet.contours', - **kwargs + self, plotly_name="showlines", parent_name="contourcarpet.contours", **kwargs ): super(ShowlinesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -108,18 +86,14 @@ def __init__( class ShowlabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showlabels', - parent_name='contourcarpet.contours', - **kwargs + self, plotly_name="showlabels", parent_name="contourcarpet.contours", **kwargs ): super(ShowlabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -128,23 +102,31 @@ def __init__( class OperationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='operation', - parent_name='contourcarpet.contours', - **kwargs + self, plotly_name="operation", parent_name="contourcarpet.contours", **kwargs ): super(OperationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - '=', '<', '>=', '>', '<=', '[]', '()', '[)', '(]', '][', - ')(', '](', ')[' - ] + "values", + [ + "=", + "<", + ">=", + ">", + "<=", + "[]", + "()", + "[)", + "(]", + "][", + ")(", + "](", + ")[", + ], ), **kwargs ) @@ -154,18 +136,14 @@ def __init__( class LabelformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='labelformat', - parent_name='contourcarpet.contours', - **kwargs + self, plotly_name="labelformat", parent_name="contourcarpet.contours", **kwargs ): super(LabelformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -174,19 +152,16 @@ def __init__( class LabelfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='labelfont', - parent_name='contourcarpet.contours', - **kwargs + self, plotly_name="labelfont", parent_name="contourcarpet.contours", **kwargs ): super(LabelfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Labelfont'), + data_class_str=kwargs.pop("data_class_str", "Labelfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -207,7 +182,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -217,19 +192,15 @@ def __init__( class EndValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='end', - parent_name='contourcarpet.contours', - **kwargs + self, plotly_name="end", parent_name="contourcarpet.contours", **kwargs ): super(EndValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -238,18 +209,14 @@ def __init__( class ColoringValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='coloring', - parent_name='contourcarpet.contours', - **kwargs + self, plotly_name="coloring", parent_name="contourcarpet.contours", **kwargs ): super(ColoringValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fill', 'lines', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fill", "lines", "none"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/__init__.py index 0b7944364d1..c81c9ce64d4 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/contours/labelfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='contourcarpet.contours.labelfont', + plotly_name="size", + parent_name="contourcarpet.contours.labelfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='contourcarpet.contours.labelfont', + plotly_name="family", + parent_name="contourcarpet.contours.labelfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='contourcarpet.contours.labelfont', + plotly_name="color", + parent_name="contourcarpet.contours.labelfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contourcarpet/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/hoverlabel/__init__.py index 9ddc5bf7ae6..2c73769a3ae 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/hoverlabel/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='namelengthsrc', - parent_name='contourcarpet.hoverlabel', + plotly_name="namelengthsrc", + parent_name="contourcarpet.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +21,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='contourcarpet.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="contourcarpet.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +39,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='contourcarpet.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="contourcarpet.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -88,7 +78,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -98,18 +88,17 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bordercolorsrc', - parent_name='contourcarpet.hoverlabel', + plotly_name="bordercolorsrc", + parent_name="contourcarpet.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,19 +107,18 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='contourcarpet.hoverlabel', + plotly_name="bordercolor", + parent_name="contourcarpet.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -139,18 +127,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='contourcarpet.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="contourcarpet.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,19 +143,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='contourcarpet.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="contourcarpet.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -180,18 +160,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='contourcarpet.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="contourcarpet.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,19 +176,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='contourcarpet.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="contourcarpet.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contourcarpet/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/hoverlabel/font/__init__.py index b5e918878ae..8cd7add979f 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/hoverlabel/font/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='sizesrc', - parent_name='contourcarpet.hoverlabel.font', + plotly_name="sizesrc", + parent_name="contourcarpet.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +21,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='contourcarpet.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="contourcarpet.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +39,17 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='familysrc', - parent_name='contourcarpet.hoverlabel.font', + plotly_name="familysrc", + parent_name="contourcarpet.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +58,20 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='contourcarpet.hoverlabel.font', + plotly_name="family", + parent_name="contourcarpet.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +80,17 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='colorsrc', - parent_name='contourcarpet.hoverlabel.font', + plotly_name="colorsrc", + parent_name="contourcarpet.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +99,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='contourcarpet.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="contourcarpet.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contourcarpet/line/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/line/__init__.py index 826bb469703..e79d32f7411 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/line/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/line/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='contourcarpet.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="contourcarpet.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,20 +18,16 @@ def __init__( class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='smoothing', - parent_name='contourcarpet.line', - **kwargs + self, plotly_name="smoothing", parent_name="contourcarpet.line", **kwargs ): super(SmoothingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 1.3), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 1.3), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -45,18 +36,14 @@ def __init__( class DashValidator(_plotly_utils.basevalidators.DashValidator): - - def __init__( - self, plotly_name='dash', parent_name='contourcarpet.line', **kwargs - ): + def __init__(self, plotly_name="dash", parent_name="contourcarpet.line", **kwargs): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -66,15 +53,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='contourcarpet.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="contourcarpet.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/contourcarpet/stream/__init__.py b/packages/python/plotly/plotly/validators/contourcarpet/stream/__init__.py index 861782fa703..5668175ae73 100644 --- a/packages/python/plotly/plotly/validators/contourcarpet/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/contourcarpet/stream/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='token', - parent_name='contourcarpet.stream', - **kwargs + self, plotly_name="token", parent_name="contourcarpet.stream", **kwargs ): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -26,19 +20,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='contourcarpet.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="contourcarpet.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/frame/__init__.py b/packages/python/plotly/plotly/validators/frame/__init__.py index c1ffc658e53..9996514cc12 100644 --- a/packages/python/plotly/plotly/validators/frame/__init__.py +++ b/packages/python/plotly/plotly/validators/frame/__init__.py @@ -1,15 +1,12 @@ - - import _plotly_utils.basevalidators class TracesValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='traces', parent_name='frame', **kwargs): + def __init__(self, plotly_name="traces", parent_name="frame", **kwargs): super(TracesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -18,12 +15,11 @@ def __init__(self, plotly_name='traces', parent_name='frame', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='frame', **kwargs): + def __init__(self, plotly_name="name", parent_name="frame", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -32,12 +28,11 @@ def __init__(self, plotly_name='name', parent_name='frame', **kwargs): class LayoutValidator(plotly.validators.LayoutValidator): - - def __init__(self, plotly_name='layout', parent_name='frame', **kwargs): + def __init__(self, plotly_name="layout", parent_name="frame", **kwargs): super(LayoutValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - role=kwargs.pop('role', 'object'), + role=kwargs.pop("role", "object"), **kwargs ) @@ -46,12 +41,11 @@ def __init__(self, plotly_name='layout', parent_name='frame', **kwargs): class GroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='group', parent_name='frame', **kwargs): + def __init__(self, plotly_name="group", parent_name="frame", **kwargs): super(GroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -60,12 +54,11 @@ def __init__(self, plotly_name='group', parent_name='frame', **kwargs): class DataValidator(plotly.validators.DataValidator): - - def __init__(self, plotly_name='data', parent_name='frame', **kwargs): + def __init__(self, plotly_name="data", parent_name="frame", **kwargs): super(DataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - role=kwargs.pop('role', 'object'), + role=kwargs.pop("role", "object"), **kwargs ) @@ -74,11 +67,10 @@ def __init__(self, plotly_name='data', parent_name='frame', **kwargs): class BaseframeValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='baseframe', parent_name='frame', **kwargs): + def __init__(self, plotly_name="baseframe", parent_name="frame", **kwargs): super(BaseframeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnel/__init__.py b/packages/python/plotly/plotly/validators/funnel/__init__.py index 4d25185e9a9..f7484c9a731 100644 --- a/packages/python/plotly/plotly/validators/funnel/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="funnel", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,14 +16,13 @@ def __init__(self, plotly_name='ysrc', parent_name='funnel', **kwargs): class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='yaxis', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="yaxis", parent_name="funnel", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -35,14 +31,13 @@ def __init__(self, plotly_name='yaxis', parent_name='funnel', **kwargs): class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='y0', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="y0", parent_name="funnel", **kwargs): super(Y0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -51,14 +46,13 @@ def __init__(self, plotly_name='y0', parent_name='funnel', **kwargs): class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="y", parent_name="funnel", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -67,13 +61,12 @@ def __init__(self, plotly_name='y', parent_name='funnel', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="funnel", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -82,14 +75,13 @@ def __init__(self, plotly_name='xsrc', parent_name='funnel', **kwargs): class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='xaxis', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="xaxis", parent_name="funnel", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -98,14 +90,13 @@ def __init__(self, plotly_name='xaxis', parent_name='funnel', **kwargs): class X0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='x0', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="x0", parent_name="funnel", **kwargs): super(X0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -114,14 +105,13 @@ def __init__(self, plotly_name='x0', parent_name='funnel', **kwargs): class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="x", parent_name="funnel", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -130,15 +120,14 @@ def __init__(self, plotly_name='x', parent_name='funnel', **kwargs): class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='width', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="width", parent_name="funnel", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -147,14 +136,13 @@ def __init__(self, plotly_name='width', parent_name='funnel', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="visible", parent_name="funnel", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -163,15 +151,12 @@ def __init__(self, plotly_name='visible', parent_name='funnel', **kwargs): class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="funnel", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -180,14 +165,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="uid", parent_name="funnel", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -196,13 +180,12 @@ def __init__(self, plotly_name='uid', parent_name='funnel', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='textsrc', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="textsrc", parent_name="funnel", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -211,15 +194,12 @@ def __init__(self, plotly_name='textsrc', parent_name='funnel', **kwargs): class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textpositionsrc', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="textpositionsrc", parent_name="funnel", **kwargs): super(TextpositionsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -228,17 +208,14 @@ def __init__( class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='textposition', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="textposition", parent_name="funnel", **kwargs): super(TextpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['inside', 'outside', 'auto', 'none']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["inside", "outside", "auto", "none"]), **kwargs ) @@ -247,21 +224,25 @@ def __init__( class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__(self, plotly_name='textinfo', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="textinfo", parent_name="funnel", **kwargs): super(TextinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'plot'), - extras=kwargs.pop('extras', ['none']), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "plot"), + extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop( - 'flags', [ - 'label', 'text', 'percent initial', 'percent previous', - 'percent total', 'value' - ] + "flags", + [ + "label", + "text", + "percent initial", + "percent previous", + "percent total", + "value", + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -270,14 +251,14 @@ def __init__(self, plotly_name='textinfo', parent_name='funnel', **kwargs): class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='textfont', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="textfont", parent_name="funnel", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -307,7 +288,7 @@ def __init__(self, plotly_name='textfont', parent_name='funnel', **kwargs): sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -317,15 +298,12 @@ def __init__(self, plotly_name='textfont', parent_name='funnel', **kwargs): class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): - - def __init__( - self, plotly_name='textangle', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="textangle", parent_name="funnel", **kwargs): super(TextangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -334,14 +312,13 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="text", parent_name="funnel", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -350,14 +327,14 @@ def __init__(self, plotly_name='text', parent_name='funnel', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="stream", parent_name="funnel", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -367,7 +344,7 @@ def __init__(self, plotly_name='stream', parent_name='funnel', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -377,15 +354,12 @@ def __init__(self, plotly_name='stream', parent_name='funnel', **kwargs): class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="funnel", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -394,15 +368,12 @@ def __init__( class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='selectedpoints', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="selectedpoints", parent_name="funnel", **kwargs): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -411,16 +382,14 @@ def __init__( class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='outsidetextfont', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="outsidetextfont", parent_name="funnel", **kwargs): super(OutsidetextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Outsidetextfont'), + data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -450,7 +419,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -460,16 +429,13 @@ def __init__( class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='orientation', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="orientation", parent_name="funnel", **kwargs): super(OrientationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['v', 'h']), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["v", "h"]), **kwargs ) @@ -478,15 +444,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='opacity', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="opacity", parent_name="funnel", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -495,15 +460,12 @@ def __init__(self, plotly_name='opacity', parent_name='funnel', **kwargs): class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='offsetgroup', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="offsetgroup", parent_name="funnel", **kwargs): super(OffsetgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -512,14 +474,13 @@ def __init__( class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='offset', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="offset", parent_name="funnel", **kwargs): super(OffsetValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -528,13 +489,12 @@ def __init__(self, plotly_name='offset', parent_name='funnel', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="name", parent_name="funnel", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -543,13 +503,12 @@ def __init__(self, plotly_name='name', parent_name='funnel', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="funnel", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -558,14 +517,13 @@ def __init__(self, plotly_name='metasrc', parent_name='funnel', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="meta", parent_name="funnel", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -574,14 +532,14 @@ def __init__(self, plotly_name='meta', parent_name='funnel', **kwargs): class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='marker', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="marker", parent_name="funnel", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -676,7 +634,7 @@ def __init__(self, plotly_name='marker', parent_name='funnel', **kwargs): Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array. -""" +""", ), **kwargs ) @@ -686,15 +644,12 @@ def __init__(self, plotly_name='marker', parent_name='funnel', **kwargs): class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='legendgroup', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="legendgroup", parent_name="funnel", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -703,16 +658,14 @@ def __init__( class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='insidetextfont', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="insidetextfont", parent_name="funnel", **kwargs): super(InsidetextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Insidetextfont'), + data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -742,7 +695,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -751,19 +704,14 @@ def __init__( import _plotly_utils.basevalidators -class InsidetextanchorValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - - def __init__( - self, plotly_name='insidetextanchor', parent_name='funnel', **kwargs - ): +class InsidetextanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + def __init__(self, plotly_name="insidetextanchor", parent_name="funnel", **kwargs): super(InsidetextanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['end', 'middle', 'start']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["end", "middle", "start"]), **kwargs ) @@ -772,13 +720,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="funnel", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -787,14 +734,13 @@ def __init__(self, plotly_name='idssrc', parent_name='funnel', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="ids", parent_name="funnel", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -803,15 +749,12 @@ def __init__(self, plotly_name='ids', parent_name='funnel', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="funnel", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -820,16 +763,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="funnel", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -838,15 +778,12 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertemplatesrc', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="hovertemplatesrc", parent_name="funnel", **kwargs): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -855,16 +792,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="funnel", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -873,16 +807,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="funnel", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -918,7 +850,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -928,15 +860,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="funnel", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -945,18 +874,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="funnel", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -965,14 +891,13 @@ def __init__( class DyValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dy', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="dy", parent_name="funnel", **kwargs): super(DyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -981,14 +906,13 @@ def __init__(self, plotly_name='dy', parent_name='funnel', **kwargs): class DxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dx', parent_name='funnel', **kwargs): + def __init__(self, plotly_name="dx", parent_name="funnel", **kwargs): super(DxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -997,15 +921,12 @@ def __init__(self, plotly_name='dx', parent_name='funnel', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="funnel", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1014,15 +935,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="funnel", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1031,16 +949,13 @@ def __init__( class ConstraintextValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='constraintext', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="constraintext", parent_name="funnel", **kwargs): super(ConstraintextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['inside', 'outside', 'both', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["inside", "outside", "both", "none"]), **kwargs ) @@ -1049,16 +964,14 @@ def __init__( class ConnectorValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='connector', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="connector", parent_name="funnel", **kwargs): super(ConnectorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Connector'), + data_class_str=kwargs.pop("data_class_str", "Connector"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fillcolor Sets the fill color. line @@ -1067,7 +980,7 @@ def __init__( visible Determines if connector regions and lines are drawn. -""" +""", ), **kwargs ) @@ -1077,15 +990,12 @@ def __init__( class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cliponaxis', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="cliponaxis", parent_name="funnel", **kwargs): super(CliponaxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1094,14 +1004,11 @@ def __init__( class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='alignmentgroup', parent_name='funnel', **kwargs - ): + def __init__(self, plotly_name="alignmentgroup", parent_name="funnel", **kwargs): super(AlignmentgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnel/connector/__init__.py b/packages/python/plotly/plotly/validators/funnel/connector/__init__.py index 800870cb865..f31c75b1be7 100644 --- a/packages/python/plotly/plotly/validators/funnel/connector/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/connector/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='visible', parent_name='funnel.connector', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="funnel.connector", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +16,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='funnel.connector', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="funnel.connector", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the line color. dash @@ -40,7 +33,7 @@ def __init__( dash length list in px (eg "5px,10px,2px,2px"). width Sets the line width (in px). -""" +""", ), **kwargs ) @@ -50,17 +43,13 @@ def __init__( class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='fillcolor', - parent_name='funnel.connector', - **kwargs + self, plotly_name="fillcolor", parent_name="funnel.connector", **kwargs ): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnel/connector/line/__init__.py b/packages/python/plotly/plotly/validators/funnel/connector/line/__init__.py index e8b413aa75d..a67e6906765 100644 --- a/packages/python/plotly/plotly/validators/funnel/connector/line/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/connector/line/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='funnel.connector.line', - **kwargs + self, plotly_name="width", parent_name="funnel.connector.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -26,21 +20,16 @@ def __init__( class DashValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='dash', - parent_name='funnel.connector.line', - **kwargs + self, plotly_name="dash", parent_name="funnel.connector.line", **kwargs ): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -50,18 +39,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='funnel.connector.line', - **kwargs + self, plotly_name="color", parent_name="funnel.connector.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/__init__.py index d0202cc05c5..d527472b61e 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='funnel.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="funnel.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='funnel.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="funnel.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='funnel.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="funnel.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='funnel.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="funnel.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='funnel.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="funnel.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='funnel.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="funnel.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,16 +132,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='bgcolor', parent_name='funnel.hoverlabel', **kwargs + self, plotly_name="bgcolor", parent_name="funnel.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -174,18 +149,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='funnel.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="funnel.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -194,16 +165,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='funnel.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="funnel.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/__init__.py index 63c19aac8de..4a1c4bcf5e6 100644 --- a/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='funnel.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="funnel.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='funnel.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="funnel.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='funnel.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="funnel.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='funnel.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="funnel.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='funnel.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="funnel.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='funnel.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="funnel.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnel/insidetextfont/__init__.py b/packages/python/plotly/plotly/validators/funnel/insidetextfont/__init__.py index cf6e9f9dcd8..02055167d27 100644 --- a/packages/python/plotly/plotly/validators/funnel/insidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/insidetextfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='funnel.insidetextfont', - **kwargs + self, plotly_name="sizesrc", parent_name="funnel.insidetextfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='funnel.insidetextfont', - **kwargs + self, plotly_name="size", parent_name="funnel.insidetextfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='funnel.insidetextfont', - **kwargs + self, plotly_name="familysrc", parent_name="funnel.insidetextfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='funnel.insidetextfont', - **kwargs + self, plotly_name="family", parent_name="funnel.insidetextfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='funnel.insidetextfont', - **kwargs + self, plotly_name="colorsrc", parent_name="funnel.insidetextfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='funnel.insidetextfont', - **kwargs + self, plotly_name="color", parent_name="funnel.insidetextfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnel/marker/__init__.py b/packages/python/plotly/plotly/validators/funnel/marker/__init__.py index 2e4a3341cd3..deeb2292cbf 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='funnel.marker', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="funnel.marker", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,18 +16,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='funnel.marker', - **kwargs + self, plotly_name="reversescale", parent_name="funnel.marker", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -41,15 +32,12 @@ def __init__( class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='opacitysrc', parent_name='funnel.marker', **kwargs - ): + def __init__(self, plotly_name="opacitysrc", parent_name="funnel.marker", **kwargs): super(OpacitysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -58,18 +46,15 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='funnel.marker', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="funnel.marker", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -78,16 +63,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='funnel.marker', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="funnel.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -176,7 +159,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -186,15 +169,12 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorsrc', parent_name='funnel.marker', **kwargs - ): + def __init__(self, plotly_name="colorsrc", parent_name="funnel.marker", **kwargs): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -203,18 +183,13 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - - def __init__( - self, plotly_name='colorscale', parent_name='funnel.marker', **kwargs - ): + def __init__(self, plotly_name="colorscale", parent_name="funnel.marker", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -223,16 +198,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorbar', parent_name='funnel.marker', **kwargs - ): + def __init__(self, plotly_name="colorbar", parent_name="funnel.marker", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -443,7 +416,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -453,17 +426,14 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='funnel.marker', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="funnel.marker", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -472,19 +442,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='funnel.marker', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="funnel.marker", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), - colorscale_path=kwargs.pop( - 'colorscale_path', 'funnel.marker.colorscale' - ), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), + colorscale_path=kwargs.pop("colorscale_path", "funnel.marker.colorscale"), **kwargs ) @@ -493,16 +458,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmin', parent_name='funnel.marker', **kwargs - ): + def __init__(self, plotly_name="cmin", parent_name="funnel.marker", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -511,16 +473,13 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmid', parent_name='funnel.marker', **kwargs - ): + def __init__(self, plotly_name="cmid", parent_name="funnel.marker", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -529,16 +488,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmax', parent_name='funnel.marker', **kwargs - ): + def __init__(self, plotly_name="cmax", parent_name="funnel.marker", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -547,16 +503,13 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='funnel.marker', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="funnel.marker", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -565,18 +518,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='funnel.marker', - **kwargs + self, plotly_name="autocolorscale", parent_name="funnel.marker", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/__init__.py index 86f739a5787..c08043f057c 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="funnel.marker.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="funnel.marker.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,17 +36,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='funnel.marker.colorbar', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="funnel.marker.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -65,19 +52,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="funnel.marker.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -86,19 +69,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="funnel.marker.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -107,17 +86,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='funnel.marker.colorbar', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="funnel.marker.colorbar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -126,19 +102,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="title", parent_name="funnel.marker.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -154,7 +127,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -164,19 +137,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="funnel.marker.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -185,18 +154,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="funnel.marker.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -205,18 +170,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="funnel.marker.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -225,18 +186,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="funnel.marker.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -245,18 +202,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="funnel.marker.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -265,18 +218,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="funnel.marker.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -285,19 +234,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="funnel.marker.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -306,18 +251,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="funnel.marker.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -326,20 +267,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="funnel.marker.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -348,19 +285,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="funnel.marker.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -369,19 +302,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='funnel.marker.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="funnel.marker.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -389,22 +324,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='funnel.marker.colorbar', + plotly_name="tickformatstops", + parent_name="funnel.marker.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -438,7 +371,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -448,18 +381,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="funnel.marker.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -468,19 +397,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="funnel.marker.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -501,7 +427,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -511,18 +437,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="funnel.marker.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -531,18 +453,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="funnel.marker.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -551,19 +469,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="funnel.marker.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -572,19 +486,18 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='thicknessmode', - parent_name='funnel.marker.colorbar', + plotly_name="thicknessmode", + parent_name="funnel.marker.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -593,19 +506,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="funnel.marker.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -613,22 +522,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='funnel.marker.colorbar', + plotly_name="showticksuffix", + parent_name="funnel.marker.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -636,22 +542,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='funnel.marker.colorbar', + plotly_name="showtickprefix", + parent_name="funnel.marker.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -660,18 +563,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='funnel.marker.colorbar', + plotly_name="showticklabels", + parent_name="funnel.marker.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -680,19 +582,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="showexponent", parent_name="funnel.marker.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -700,21 +598,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='funnel.marker.colorbar', + plotly_name="separatethousands", + parent_name="funnel.marker.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -723,19 +618,15 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlinewidth', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="outlinewidth", parent_name="funnel.marker.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -744,18 +635,14 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outlinecolor', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="outlinecolor", parent_name="funnel.marker.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -764,19 +651,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="funnel.marker.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -785,19 +668,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="funnel.marker.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -806,19 +685,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='len', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="len", parent_name="funnel.marker.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -826,24 +701,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='funnel.marker.colorbar', + plotly_name="exponentformat", + parent_name="funnel.marker.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -852,19 +722,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="funnel.marker.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -873,19 +739,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="funnel.marker.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -894,18 +756,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="funnel.marker.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -914,17 +772,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='funnel.marker.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="funnel.marker.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/__init__.py index cc2b0330537..3a07b44d9ce 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='funnel.marker.colorbar.tickfont', + plotly_name="size", + parent_name="funnel.marker.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='funnel.marker.colorbar.tickfont', + plotly_name="family", + parent_name="funnel.marker.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='funnel.marker.colorbar.tickfont', + plotly_name="color", + parent_name="funnel.marker.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/__init__.py index f86c58472a9..41ef3171bab 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='funnel.marker.colorbar.tickformatstop', + plotly_name="value", + parent_name="funnel.marker.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='funnel.marker.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="funnel.marker.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='funnel.marker.colorbar.tickformatstop', + plotly_name="name", + parent_name="funnel.marker.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='funnel.marker.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="funnel.marker.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='funnel.marker.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="funnel.marker.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/__init__.py index de119490bc9..9714a600b15 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='funnel.marker.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="funnel.marker.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='funnel.marker.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="funnel.marker.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='funnel.marker.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="funnel.marker.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/__init__.py index 3c278aea8e7..cee4036ea98 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='funnel.marker.colorbar.title.font', + plotly_name="size", + parent_name="funnel.marker.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='funnel.marker.colorbar.title.font', + plotly_name="family", + parent_name="funnel.marker.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='funnel.marker.colorbar.title.font', + plotly_name="color", + parent_name="funnel.marker.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnel/marker/line/__init__.py b/packages/python/plotly/plotly/validators/funnel/marker/line/__init__.py index 184f48838ce..530630a90bc 100644 --- a/packages/python/plotly/plotly/validators/funnel/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/marker/line/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='widthsrc', - parent_name='funnel.marker.line', - **kwargs + self, plotly_name="widthsrc", parent_name="funnel.marker.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +18,15 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='funnel.marker.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="funnel.marker.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -44,18 +35,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='funnel.marker.line', - **kwargs + self, plotly_name="reversescale", parent_name="funnel.marker.line", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +51,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='funnel.marker.line', - **kwargs + self, plotly_name="colorsrc", parent_name="funnel.marker.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,21 +67,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='funnel.marker.line', - **kwargs + self, plotly_name="colorscale", parent_name="funnel.marker.line", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -107,20 +84,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='funnel.marker.line', - **kwargs + self, plotly_name="coloraxis", parent_name="funnel.marker.line", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -129,18 +102,15 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='funnel.marker.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="funnel.marker.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'funnel.marker.line.colorscale' + "colorscale_path", "funnel.marker.line.colorscale" ), **kwargs ) @@ -150,16 +120,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmin', parent_name='funnel.marker.line', **kwargs - ): + def __init__(self, plotly_name="cmin", parent_name="funnel.marker.line", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -168,16 +135,13 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmid', parent_name='funnel.marker.line', **kwargs - ): + def __init__(self, plotly_name="cmid", parent_name="funnel.marker.line", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -186,16 +150,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmax', parent_name='funnel.marker.line', **kwargs - ): + def __init__(self, plotly_name="cmax", parent_name="funnel.marker.line", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -204,16 +165,13 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='funnel.marker.line', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="funnel.marker.line", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -222,18 +180,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='funnel.marker.line', - **kwargs + self, plotly_name="autocolorscale", parent_name="funnel.marker.line", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/__init__.py b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/__init__.py index e4bf2482d3f..246a480bbd3 100644 --- a/packages/python/plotly/plotly/validators/funnel/outsidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/outsidetextfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='funnel.outsidetextfont', - **kwargs + self, plotly_name="sizesrc", parent_name="funnel.outsidetextfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='funnel.outsidetextfont', - **kwargs + self, plotly_name="size", parent_name="funnel.outsidetextfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='funnel.outsidetextfont', - **kwargs + self, plotly_name="familysrc", parent_name="funnel.outsidetextfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='funnel.outsidetextfont', - **kwargs + self, plotly_name="family", parent_name="funnel.outsidetextfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='funnel.outsidetextfont', - **kwargs + self, plotly_name="colorsrc", parent_name="funnel.outsidetextfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='funnel.outsidetextfont', - **kwargs + self, plotly_name="color", parent_name="funnel.outsidetextfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnel/stream/__init__.py b/packages/python/plotly/plotly/validators/funnel/stream/__init__.py index c1c74fed885..0cb32d4d0f1 100644 --- a/packages/python/plotly/plotly/validators/funnel/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='funnel.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="funnel.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='funnel.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="funnel.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnel/textfont/__init__.py b/packages/python/plotly/plotly/validators/funnel/textfont/__init__.py index 27710999bd5..9e910206475 100644 --- a/packages/python/plotly/plotly/validators/funnel/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/funnel/textfont/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='sizesrc', parent_name='funnel.textfont', **kwargs - ): + def __init__(self, plotly_name="sizesrc", parent_name="funnel.textfont", **kwargs): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,17 +16,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='funnel.textfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="funnel.textfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -40,15 +32,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='familysrc', parent_name='funnel.textfont', **kwargs + self, plotly_name="familysrc", parent_name="funnel.textfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -57,18 +48,15 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='family', parent_name='funnel.textfont', **kwargs - ): + def __init__(self, plotly_name="family", parent_name="funnel.textfont", **kwargs): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -77,15 +65,12 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorsrc', parent_name='funnel.textfont', **kwargs - ): + def __init__(self, plotly_name="colorsrc", parent_name="funnel.textfont", **kwargs): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -94,15 +79,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='funnel.textfont', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="funnel.textfont", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnelarea/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/__init__.py index e7f26d551b9..e2bc9dbe33d 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="funnelarea", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -22,15 +17,12 @@ def __init__( class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='valuessrc', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="valuessrc", parent_name="funnelarea", **kwargs): super(ValuessrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,15 +31,12 @@ def __init__( class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='values', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="values", parent_name="funnelarea", **kwargs): super(ValuesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -56,15 +45,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="funnelarea", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -73,14 +59,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='funnelarea', **kwargs): + def __init__(self, plotly_name="uid", parent_name="funnelarea", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -89,16 +74,14 @@ def __init__(self, plotly_name='uid', parent_name='funnelarea', **kwargs): class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - - def __init__( - self, plotly_name='title', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="title", parent_name="funnelarea", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets the font used for `title`. Note that the title's font used to be set by the now @@ -113,7 +96,7 @@ def __init__( existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -123,15 +106,12 @@ def __init__( class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="funnelarea", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -140,18 +120,14 @@ def __init__( class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='textpositionsrc', - parent_name='funnelarea', - **kwargs + self, plotly_name="textpositionsrc", parent_name="funnelarea", **kwargs ): super(TextpositionsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -160,17 +136,14 @@ def __init__( class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='textposition', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="textposition", parent_name="funnelarea", **kwargs): super(TextpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['inside', 'none']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["inside", "none"]), **kwargs ) @@ -179,17 +152,14 @@ def __init__( class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='textinfo', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="textinfo", parent_name="funnelarea", **kwargs): super(TextinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['none']), - flags=kwargs.pop('flags', ['label', 'text', 'value', 'percent']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["none"]), + flags=kwargs.pop("flags", ["label", "text", "value", "percent"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -198,16 +168,14 @@ def __init__( class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='textfont', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="textfont", parent_name="funnelarea", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -237,7 +205,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -247,13 +215,12 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='text', parent_name='funnelarea', **kwargs): + def __init__(self, plotly_name="text", parent_name="funnelarea", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -262,16 +229,14 @@ def __init__(self, plotly_name='text', parent_name='funnelarea', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="funnelarea", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -281,7 +246,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -291,15 +256,12 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="funnelarea", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -308,15 +270,12 @@ def __init__( class ScalegroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='scalegroup', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="scalegroup", parent_name="funnelarea", **kwargs): super(ScalegroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -325,17 +284,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="funnelarea", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -344,13 +300,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='funnelarea', **kwargs): + def __init__(self, plotly_name="name", parent_name="funnelarea", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -359,15 +314,12 @@ def __init__(self, plotly_name='name', parent_name='funnelarea', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="funnelarea", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -376,14 +328,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='funnelarea', **kwargs): + def __init__(self, plotly_name="meta", parent_name="funnelarea", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -392,16 +343,14 @@ def __init__(self, plotly_name='meta', parent_name='funnelarea', **kwargs): class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="funnelarea", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ colors Sets the color of each sector. If not specified, the default trace color set is used @@ -412,7 +361,7 @@ def __init__( line plotly.graph_objs.funnelarea.marker.Line instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -422,15 +371,12 @@ def __init__( class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='legendgroup', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="legendgroup", parent_name="funnelarea", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -439,15 +385,12 @@ def __init__( class LabelssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='labelssrc', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="labelssrc", parent_name="funnelarea", **kwargs): super(LabelssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -456,15 +399,12 @@ def __init__( class LabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='labels', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="labels", parent_name="funnelarea", **kwargs): super(LabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -473,15 +413,12 @@ def __init__( class Label0Validator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='label0', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="label0", parent_name="funnelarea", **kwargs): super(Label0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -490,16 +427,16 @@ def __init__( class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='insidetextfont', parent_name='funnelarea', **kwargs + self, plotly_name="insidetextfont", parent_name="funnelarea", **kwargs ): super(InsidetextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Insidetextfont'), + data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -529,7 +466,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -539,15 +476,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="funnelarea", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -556,14 +490,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='funnelarea', **kwargs): + def __init__(self, plotly_name="ids", parent_name="funnelarea", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -572,15 +505,12 @@ def __init__(self, plotly_name='ids', parent_name='funnelarea', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="funnelarea", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -589,16 +519,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="funnelarea", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -607,18 +534,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='funnelarea', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="funnelarea", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -627,16 +550,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="funnelarea", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -645,16 +565,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="funnelarea", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -690,7 +608,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -700,15 +618,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="funnelarea", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -717,20 +632,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="funnelarea", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop( - 'flags', ['label', 'text', 'value', 'percent', 'name'] - ), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["label", "text", "value", "percent", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -739,16 +649,14 @@ def __init__( class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='domain', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="domain", parent_name="funnelarea", **kwargs): super(DomainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Domain'), + data_class_str=kwargs.pop("data_class_str", "Domain"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ column If there is a layout grid, use the domain for this column in the grid for this funnelarea @@ -763,7 +671,7 @@ def __init__( y Sets the vertical domain of this funnelarea trace (in plot fraction). -""" +""", ), **kwargs ) @@ -773,15 +681,12 @@ def __init__( class DlabelValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='dlabel', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="dlabel", parent_name="funnelarea", **kwargs): super(DlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -790,15 +695,12 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="funnelarea", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -807,15 +709,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="funnelarea", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -824,17 +723,14 @@ def __init__( class BaseratioValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='baseratio', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="baseratio", parent_name="funnelarea", **kwargs): super(BaseratioValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -843,15 +739,12 @@ def __init__( class AspectratioValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='aspectratio', parent_name='funnelarea', **kwargs - ): + def __init__(self, plotly_name="aspectratio", parent_name="funnelarea", **kwargs): super(AspectratioValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnelarea/domain/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/domain/__init__.py index c10f257699a..aa8229ad141 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/domain/__init__.py @@ -1,33 +1,20 @@ - - import _plotly_utils.basevalidators class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='y', parent_name='funnelarea.domain', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="funnelarea.domain", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -36,30 +23,19 @@ def __init__( class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='x', parent_name='funnelarea.domain', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="funnelarea.domain", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -68,16 +44,13 @@ def __init__( class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='row', parent_name='funnelarea.domain', **kwargs - ): + def __init__(self, plotly_name="row", parent_name="funnelarea.domain", **kwargs): super(RowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -86,15 +59,12 @@ def __init__( class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='column', parent_name='funnelarea.domain', **kwargs - ): + def __init__(self, plotly_name="column", parent_name="funnelarea.domain", **kwargs): super(ColumnValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/__init__.py index 47cf93cefd9..4911f4fa6c5 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='funnelarea.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="funnelarea.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='funnelarea.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="funnelarea.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +36,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='funnelarea.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="funnelarea.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -88,7 +75,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -98,18 +85,17 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bordercolorsrc', - parent_name='funnelarea.hoverlabel', + plotly_name="bordercolorsrc", + parent_name="funnelarea.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,19 +104,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='funnelarea.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="funnelarea.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -139,18 +121,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='funnelarea.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="funnelarea.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,19 +137,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='funnelarea.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="funnelarea.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -180,18 +154,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='funnelarea.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="funnelarea.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,19 +170,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='funnelarea.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="funnelarea.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/__init__.py index 354f6b8da80..fce1cbc4028 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='funnelarea.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="funnelarea.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='funnelarea.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="funnelarea.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,17 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='familysrc', - parent_name='funnelarea.hoverlabel.font', + plotly_name="familysrc", + parent_name="funnelarea.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +55,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='funnelarea.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="funnelarea.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +74,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='funnelarea.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="funnelarea.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +90,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='funnelarea.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="funnelarea.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/__init__.py index 8f78e424797..2051767931c 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/insidetextfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='funnelarea.insidetextfont', - **kwargs + self, plotly_name="sizesrc", parent_name="funnelarea.insidetextfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='funnelarea.insidetextfont', - **kwargs + self, plotly_name="size", parent_name="funnelarea.insidetextfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='funnelarea.insidetextfont', - **kwargs + self, plotly_name="familysrc", parent_name="funnelarea.insidetextfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='funnelarea.insidetextfont', - **kwargs + self, plotly_name="family", parent_name="funnelarea.insidetextfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='funnelarea.insidetextfont', - **kwargs + self, plotly_name="colorsrc", parent_name="funnelarea.insidetextfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='funnelarea.insidetextfont', - **kwargs + self, plotly_name="color", parent_name="funnelarea.insidetextfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/marker/__init__.py index 53f57d6e220..62a250d5076 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/__init__.py @@ -1,19 +1,15 @@ - - import _plotly_utils.basevalidators class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='funnelarea.marker', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="funnelarea.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. @@ -26,7 +22,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -36,18 +32,14 @@ def __init__( class ColorssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorssrc', - parent_name='funnelarea.marker', - **kwargs + self, plotly_name="colorssrc", parent_name="funnelarea.marker", **kwargs ): super(ColorssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -56,14 +48,11 @@ def __init__( class ColorsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='colors', parent_name='funnelarea.marker', **kwargs - ): + def __init__(self, plotly_name="colors", parent_name="funnelarea.marker", **kwargs): super(ColorsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnelarea/marker/line/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/marker/line/__init__.py index 962350324df..4fc4e109159 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/marker/line/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='widthsrc', - parent_name='funnelarea.marker.line', - **kwargs + self, plotly_name="widthsrc", parent_name="funnelarea.marker.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='funnelarea.marker.line', - **kwargs + self, plotly_name="width", parent_name="funnelarea.marker.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='funnelarea.marker.line', - **kwargs + self, plotly_name="colorsrc", parent_name="funnelarea.marker.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,18 +52,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='funnelarea.marker.line', - **kwargs + self, plotly_name="color", parent_name="funnelarea.marker.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnelarea/stream/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/stream/__init__.py index c48dced7657..481157f79d6 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='funnelarea.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="funnelarea.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,19 +18,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='funnelarea.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="funnelarea.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnelarea/textfont/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/textfont/__init__.py index 1a3e22a833b..3dfe81fd499 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/textfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='funnelarea.textfont', - **kwargs + self, plotly_name="sizesrc", parent_name="funnelarea.textfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='funnelarea.textfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="funnelarea.textfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,18 +34,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='funnelarea.textfont', - **kwargs + self, plotly_name="familysrc", parent_name="funnelarea.textfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -63,21 +50,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='funnelarea.textfont', - **kwargs + self, plotly_name="family", parent_name="funnelarea.textfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -86,18 +69,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='funnelarea.textfont', - **kwargs + self, plotly_name="colorsrc", parent_name="funnelarea.textfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -106,15 +85,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='color', parent_name='funnelarea.textfont', **kwargs + self, plotly_name="color", parent_name="funnelarea.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/title/__init__.py index 9484741840c..e2546b08cd3 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='text', parent_name='funnelarea.title', **kwargs - ): + def __init__(self, plotly_name="text", parent_name="funnelarea.title", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,18 +16,15 @@ def __init__( class PositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='position', parent_name='funnelarea.title', **kwargs + self, plotly_name="position", parent_name="funnelarea.title", **kwargs ): super(PositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['top left', 'top center', 'top right'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["top left", "top center", "top right"]), **kwargs ) @@ -41,16 +33,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='funnelarea.title', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="funnelarea.title", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -80,7 +70,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/funnelarea/title/font/__init__.py b/packages/python/plotly/plotly/validators/funnelarea/title/font/__init__.py index 64e8609f16f..017ab277ee8 100644 --- a/packages/python/plotly/plotly/validators/funnelarea/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/funnelarea/title/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='funnelarea.title.font', - **kwargs + self, plotly_name="sizesrc", parent_name="funnelarea.title.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='funnelarea.title.font', - **kwargs + self, plotly_name="size", parent_name="funnelarea.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='funnelarea.title.font', - **kwargs + self, plotly_name="familysrc", parent_name="funnelarea.title.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='funnelarea.title.font', - **kwargs + self, plotly_name="family", parent_name="funnelarea.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='funnelarea.title.font', - **kwargs + self, plotly_name="colorsrc", parent_name="funnelarea.title.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='funnelarea.title.font', - **kwargs + self, plotly_name="color", parent_name="funnelarea.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmap/__init__.py b/packages/python/plotly/plotly/validators/heatmap/__init__.py index 5753dfd98f6..a9e2cb568a3 100644 --- a/packages/python/plotly/plotly/validators/heatmap/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='zsrc', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="zsrc", parent_name="heatmap", **kwargs): super(ZsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,14 +16,13 @@ def __init__(self, plotly_name='zsrc', parent_name='heatmap', **kwargs): class ZsmoothValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='zsmooth', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="zsmooth", parent_name="heatmap", **kwargs): super(ZsmoothValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fast', 'best', False]), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fast", "best", False]), **kwargs ) @@ -35,14 +31,13 @@ def __init__(self, plotly_name='zsmooth', parent_name='heatmap', **kwargs): class ZminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='zmin', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="zmin", parent_name="heatmap", **kwargs): super(ZminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'zauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"zauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -51,14 +46,13 @@ def __init__(self, plotly_name='zmin', parent_name='heatmap', **kwargs): class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='zmid', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="zmid", parent_name="heatmap", **kwargs): super(ZmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -67,14 +61,13 @@ def __init__(self, plotly_name='zmid', parent_name='heatmap', **kwargs): class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='zmax', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="zmax", parent_name="heatmap", **kwargs): super(ZmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'zauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"zauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -83,15 +76,12 @@ def __init__(self, plotly_name='zmax', parent_name='heatmap', **kwargs): class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='zhoverformat', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="zhoverformat", parent_name="heatmap", **kwargs): super(ZhoverformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -100,14 +90,13 @@ def __init__( class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__(self, plotly_name='zauto', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="zauto", parent_name="heatmap", **kwargs): super(ZautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -116,13 +105,12 @@ def __init__(self, plotly_name='zauto', parent_name='heatmap', **kwargs): class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='z', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="z", parent_name="heatmap", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -131,14 +119,13 @@ def __init__(self, plotly_name='z', parent_name='heatmap', **kwargs): class YtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='ytype', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="ytype", parent_name="heatmap", **kwargs): super(YtypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['array', 'scaled']), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["array", "scaled"]), **kwargs ) @@ -147,13 +134,12 @@ def __init__(self, plotly_name='ytype', parent_name='heatmap', **kwargs): class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="heatmap", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -162,14 +148,13 @@ def __init__(self, plotly_name='ysrc', parent_name='heatmap', **kwargs): class YgapValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='ygap', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="ygap", parent_name="heatmap", **kwargs): super(YgapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -178,22 +163,32 @@ def __init__(self, plotly_name='ygap', parent_name='heatmap', **kwargs): class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ycalendar', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="ycalendar", parent_name="heatmap", **kwargs): super(YcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -203,14 +198,13 @@ def __init__( class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='yaxis', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="yaxis", parent_name="heatmap", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -219,15 +213,14 @@ def __init__(self, plotly_name='yaxis', parent_name='heatmap', **kwargs): class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='y0', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="y0", parent_name="heatmap", **kwargs): super(Y0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -236,15 +229,14 @@ def __init__(self, plotly_name='y0', parent_name='heatmap', **kwargs): class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="y", parent_name="heatmap", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - implied_edits=kwargs.pop('implied_edits', {'ytype': 'array'}), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + implied_edits=kwargs.pop("implied_edits", {"ytype": "array"}), + role=kwargs.pop("role", "data"), **kwargs ) @@ -253,14 +245,13 @@ def __init__(self, plotly_name='y', parent_name='heatmap', **kwargs): class XtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='xtype', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="xtype", parent_name="heatmap", **kwargs): super(XtypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['array', 'scaled']), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["array", "scaled"]), **kwargs ) @@ -269,13 +260,12 @@ def __init__(self, plotly_name='xtype', parent_name='heatmap', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="heatmap", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -284,14 +274,13 @@ def __init__(self, plotly_name='xsrc', parent_name='heatmap', **kwargs): class XgapValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='xgap', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="xgap", parent_name="heatmap", **kwargs): super(XgapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -300,22 +289,32 @@ def __init__(self, plotly_name='xgap', parent_name='heatmap', **kwargs): class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xcalendar', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="xcalendar", parent_name="heatmap", **kwargs): super(XcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -325,14 +324,13 @@ def __init__( class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='xaxis', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="xaxis", parent_name="heatmap", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -341,15 +339,14 @@ def __init__(self, plotly_name='xaxis', parent_name='heatmap', **kwargs): class X0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='x0', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="x0", parent_name="heatmap", **kwargs): super(X0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -358,15 +355,14 @@ def __init__(self, plotly_name='x0', parent_name='heatmap', **kwargs): class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="x", parent_name="heatmap", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - implied_edits=kwargs.pop('implied_edits', {'xtype': 'array'}), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + implied_edits=kwargs.pop("implied_edits", {"xtype": "array"}), + role=kwargs.pop("role", "data"), **kwargs ) @@ -375,14 +371,13 @@ def __init__(self, plotly_name='x', parent_name='heatmap', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="visible", parent_name="heatmap", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -391,15 +386,12 @@ def __init__(self, plotly_name='visible', parent_name='heatmap', **kwargs): class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="heatmap", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -408,14 +400,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="uid", parent_name="heatmap", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -424,15 +415,12 @@ def __init__(self, plotly_name='uid', parent_name='heatmap', **kwargs): class TransposeValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='transpose', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="transpose", parent_name="heatmap", **kwargs): super(TransposeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -441,13 +429,12 @@ def __init__( class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='textsrc', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="textsrc", parent_name="heatmap", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -456,13 +443,12 @@ def __init__(self, plotly_name='textsrc', parent_name='heatmap', **kwargs): class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='text', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="text", parent_name="heatmap", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -471,14 +457,14 @@ def __init__(self, plotly_name='text', parent_name='heatmap', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="stream", parent_name="heatmap", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -488,7 +474,7 @@ def __init__(self, plotly_name='stream', parent_name='heatmap', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -498,15 +484,12 @@ def __init__(self, plotly_name='stream', parent_name='heatmap', **kwargs): class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="heatmap", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -515,15 +498,12 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='reversescale', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="reversescale", parent_name="heatmap", **kwargs): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -532,15 +512,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='opacity', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="opacity", parent_name="heatmap", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -549,13 +528,12 @@ def __init__(self, plotly_name='opacity', parent_name='heatmap', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="name", parent_name="heatmap", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -564,13 +542,12 @@ def __init__(self, plotly_name='name', parent_name='heatmap', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="heatmap", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -579,14 +556,13 @@ def __init__(self, plotly_name='metasrc', parent_name='heatmap', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="meta", parent_name="heatmap", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -595,13 +571,12 @@ def __init__(self, plotly_name='meta', parent_name='heatmap', **kwargs): class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="heatmap", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -610,14 +585,13 @@ def __init__(self, plotly_name='idssrc', parent_name='heatmap', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="ids", parent_name="heatmap", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -626,15 +600,12 @@ def __init__(self, plotly_name='ids', parent_name='heatmap', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="heatmap", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -643,15 +614,12 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="heatmap", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -660,15 +628,12 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertemplatesrc', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="hovertemplatesrc", parent_name="heatmap", **kwargs): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -677,16 +642,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="heatmap", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -695,16 +657,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="heatmap", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -740,7 +700,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -750,15 +710,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="heatmap", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -767,18 +724,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="heatmap", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -787,15 +741,14 @@ def __init__( class DyValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dy', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="dy", parent_name="heatmap", **kwargs): super(DyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -804,15 +757,14 @@ def __init__(self, plotly_name='dy', parent_name='heatmap', **kwargs): class DxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dx', parent_name='heatmap', **kwargs): + def __init__(self, plotly_name="dx", parent_name="heatmap", **kwargs): super(DxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -821,15 +773,12 @@ def __init__(self, plotly_name='dx', parent_name='heatmap', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="heatmap", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -838,15 +787,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="heatmap", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -855,15 +801,12 @@ def __init__( class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='connectgaps', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="connectgaps", parent_name="heatmap", **kwargs): super(ConnectgapsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -872,18 +815,13 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - - def __init__( - self, plotly_name='colorscale', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="colorscale", parent_name="heatmap", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -892,16 +830,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorbar', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="colorbar", parent_name="heatmap", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -1110,7 +1046,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -1120,17 +1056,14 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="heatmap", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1139,15 +1072,12 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='autocolorscale', parent_name='heatmap', **kwargs - ): + def __init__(self, plotly_name="autocolorscale", parent_name="heatmap", **kwargs): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/__init__.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/__init__.py index 55cef4ab9c6..ba39e9e78ab 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ypad', parent_name='heatmap.colorbar', **kwargs - ): + def __init__(self, plotly_name="ypad", parent_name="heatmap.colorbar", **kwargs): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,16 +17,13 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='yanchor', parent_name='heatmap.colorbar', **kwargs - ): + def __init__(self, plotly_name="yanchor", parent_name="heatmap.colorbar", **kwargs): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -40,17 +32,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='heatmap.colorbar', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="heatmap.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -59,16 +48,13 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='xpad', parent_name='heatmap.colorbar', **kwargs - ): + def __init__(self, plotly_name="xpad", parent_name="heatmap.colorbar", **kwargs): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -77,16 +63,13 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xanchor', parent_name='heatmap.colorbar', **kwargs - ): + def __init__(self, plotly_name="xanchor", parent_name="heatmap.colorbar", **kwargs): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -95,17 +78,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='heatmap.colorbar', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="heatmap.colorbar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -114,16 +94,14 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - - def __init__( - self, plotly_name='title', parent_name='heatmap.colorbar', **kwargs - ): + def __init__(self, plotly_name="title", parent_name="heatmap.colorbar", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -139,7 +117,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -149,19 +127,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="heatmap.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -170,18 +144,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="heatmap.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -190,15 +160,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name='tickvals', parent_name='heatmap.colorbar', **kwargs + self, plotly_name="tickvals", parent_name="heatmap.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -207,18 +176,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="heatmap.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -227,15 +192,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name='ticktext', parent_name='heatmap.colorbar', **kwargs + self, plotly_name="ticktext", parent_name="heatmap.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -244,18 +208,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="heatmap.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -264,16 +224,13 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ticks', parent_name='heatmap.colorbar', **kwargs - ): + def __init__(self, plotly_name="ticks", parent_name="heatmap.colorbar", **kwargs): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -282,18 +239,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="heatmap.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -302,17 +255,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='tickmode', parent_name='heatmap.colorbar', **kwargs + self, plotly_name="tickmode", parent_name="heatmap.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -321,16 +273,13 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ticklen', parent_name='heatmap.colorbar', **kwargs - ): + def __init__(self, plotly_name="ticklen", parent_name="heatmap.colorbar", **kwargs): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -339,19 +288,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='heatmap.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="heatmap.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -359,22 +310,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="tickformatstops", parent_name="heatmap.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -408,7 +354,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -418,18 +364,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="heatmap.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -438,16 +380,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='tickfont', parent_name='heatmap.colorbar', **kwargs + self, plotly_name="tickfont", parent_name="heatmap.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -468,7 +410,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -478,18 +420,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="heatmap.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -498,18 +436,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="heatmap.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -518,16 +452,13 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='tick0', parent_name='heatmap.colorbar', **kwargs - ): + def __init__(self, plotly_name="tick0", parent_name="heatmap.colorbar", **kwargs): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -536,19 +467,15 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='thicknessmode', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="thicknessmode", parent_name="heatmap.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -557,19 +484,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="heatmap.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -577,22 +500,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="showticksuffix", parent_name="heatmap.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -600,22 +517,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="showtickprefix", parent_name="heatmap.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -624,18 +535,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="showticklabels", parent_name="heatmap.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -644,19 +551,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="showexponent", parent_name="heatmap.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -664,21 +567,15 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( - self, - plotly_name='separatethousands', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="separatethousands", parent_name="heatmap.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -687,19 +584,15 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlinewidth', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="outlinewidth", parent_name="heatmap.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -708,18 +601,14 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outlinecolor', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="outlinecolor", parent_name="heatmap.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -728,16 +617,13 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='nticks', parent_name='heatmap.colorbar', **kwargs - ): + def __init__(self, plotly_name="nticks", parent_name="heatmap.colorbar", **kwargs): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -746,16 +632,13 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='lenmode', parent_name='heatmap.colorbar', **kwargs - ): + def __init__(self, plotly_name="lenmode", parent_name="heatmap.colorbar", **kwargs): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -764,16 +647,13 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='len', parent_name='heatmap.colorbar', **kwargs - ): + def __init__(self, plotly_name="len", parent_name="heatmap.colorbar", **kwargs): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -781,24 +661,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="exponentformat", parent_name="heatmap.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -807,16 +679,13 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='dtick', parent_name='heatmap.colorbar', **kwargs - ): + def __init__(self, plotly_name="dtick", parent_name="heatmap.colorbar", **kwargs): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -825,19 +694,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="heatmap.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -846,18 +711,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='heatmap.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="heatmap.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -866,14 +727,11 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='heatmap.colorbar', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="heatmap.colorbar", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/__init__.py index b1627131f38..703d7c151a0 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='heatmap.colorbar.tickfont', - **kwargs + self, plotly_name="size", parent_name="heatmap.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='heatmap.colorbar.tickfont', - **kwargs + self, plotly_name="family", parent_name="heatmap.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='heatmap.colorbar.tickfont', - **kwargs + self, plotly_name="color", parent_name="heatmap.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/__init__.py index dc8c9872455..6e3878c62d9 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='heatmap.colorbar.tickformatstop', + plotly_name="value", + parent_name="heatmap.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='heatmap.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="heatmap.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='heatmap.colorbar.tickformatstop', + plotly_name="name", + parent_name="heatmap.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='heatmap.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="heatmap.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='heatmap.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="heatmap.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/__init__.py index d19ac9a9335..57fdf7d566f 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='heatmap.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="heatmap.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='heatmap.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="heatmap.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='heatmap.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="heatmap.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/__init__.py index 2ff1eea8c65..eea748ca2c2 100644 --- a/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/colorbar/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='heatmap.colorbar.title.font', - **kwargs + self, plotly_name="size", parent_name="heatmap.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='heatmap.colorbar.title.font', - **kwargs + self, plotly_name="family", parent_name="heatmap.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='heatmap.colorbar.title.font', - **kwargs + self, plotly_name="color", parent_name="heatmap.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/__init__.py index ab1a778036e..2d7b2966ef0 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='heatmap.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="heatmap.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='heatmap.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="heatmap.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='heatmap.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="heatmap.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='heatmap.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="heatmap.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='heatmap.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="heatmap.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='heatmap.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="heatmap.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,19 +132,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='heatmap.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="heatmap.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -177,18 +149,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='heatmap.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="heatmap.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -197,16 +165,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='heatmap.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="heatmap.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/__init__.py index 7fefac0027a..23d9f9d65c5 100644 --- a/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='heatmap.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="heatmap.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='heatmap.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="heatmap.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='heatmap.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="heatmap.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='heatmap.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="heatmap.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='heatmap.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="heatmap.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='heatmap.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="heatmap.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmap/stream/__init__.py b/packages/python/plotly/plotly/validators/heatmap/stream/__init__.py index a3584b5808a..e1a56db263f 100644 --- a/packages/python/plotly/plotly/validators/heatmap/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmap/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='heatmap.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="heatmap.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='heatmap.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="heatmap.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmapgl/__init__.py b/packages/python/plotly/plotly/validators/heatmapgl/__init__.py index 47cf956817f..9f76afce5d3 100644 --- a/packages/python/plotly/plotly/validators/heatmapgl/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmapgl/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='zsrc', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="zsrc", parent_name="heatmapgl", **kwargs): super(ZsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,14 +16,13 @@ def __init__(self, plotly_name='zsrc', parent_name='heatmapgl', **kwargs): class ZminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='zmin', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="zmin", parent_name="heatmapgl", **kwargs): super(ZminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'zauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"zauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -35,14 +31,13 @@ def __init__(self, plotly_name='zmin', parent_name='heatmapgl', **kwargs): class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='zmid', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="zmid", parent_name="heatmapgl", **kwargs): super(ZmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -51,14 +46,13 @@ def __init__(self, plotly_name='zmid', parent_name='heatmapgl', **kwargs): class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='zmax', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="zmax", parent_name="heatmapgl", **kwargs): super(ZmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'zauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"zauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -67,14 +61,13 @@ def __init__(self, plotly_name='zmax', parent_name='heatmapgl', **kwargs): class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__(self, plotly_name='zauto', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="zauto", parent_name="heatmapgl", **kwargs): super(ZautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -83,13 +76,12 @@ def __init__(self, plotly_name='zauto', parent_name='heatmapgl', **kwargs): class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='z', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="z", parent_name="heatmapgl", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -98,14 +90,13 @@ def __init__(self, plotly_name='z', parent_name='heatmapgl', **kwargs): class YtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='ytype', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="ytype", parent_name="heatmapgl", **kwargs): super(YtypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['array', 'scaled']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["array", "scaled"]), **kwargs ) @@ -114,13 +105,12 @@ def __init__(self, plotly_name='ytype', parent_name='heatmapgl', **kwargs): class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="heatmapgl", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -129,14 +119,13 @@ def __init__(self, plotly_name='ysrc', parent_name='heatmapgl', **kwargs): class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='yaxis', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="yaxis", parent_name="heatmapgl", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -145,15 +134,14 @@ def __init__(self, plotly_name='yaxis', parent_name='heatmapgl', **kwargs): class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='y0', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="y0", parent_name="heatmapgl", **kwargs): super(Y0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -162,15 +150,14 @@ def __init__(self, plotly_name='y0', parent_name='heatmapgl', **kwargs): class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="y", parent_name="heatmapgl", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'ytype': 'array'}), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"ytype": "array"}), + role=kwargs.pop("role", "data"), **kwargs ) @@ -179,14 +166,13 @@ def __init__(self, plotly_name='y', parent_name='heatmapgl', **kwargs): class XtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='xtype', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="xtype", parent_name="heatmapgl", **kwargs): super(XtypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['array', 'scaled']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["array", "scaled"]), **kwargs ) @@ -195,13 +181,12 @@ def __init__(self, plotly_name='xtype', parent_name='heatmapgl', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="heatmapgl", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -210,14 +195,13 @@ def __init__(self, plotly_name='xsrc', parent_name='heatmapgl', **kwargs): class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='xaxis', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="xaxis", parent_name="heatmapgl", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -226,15 +210,14 @@ def __init__(self, plotly_name='xaxis', parent_name='heatmapgl', **kwargs): class X0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='x0', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="x0", parent_name="heatmapgl", **kwargs): super(X0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -243,15 +226,14 @@ def __init__(self, plotly_name='x0', parent_name='heatmapgl', **kwargs): class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="x", parent_name="heatmapgl", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'xtype': 'array'}), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"xtype": "array"}), + role=kwargs.pop("role", "data"), **kwargs ) @@ -260,16 +242,13 @@ def __init__(self, plotly_name='x', parent_name='heatmapgl', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="heatmapgl", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -278,15 +257,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="heatmapgl", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -295,14 +271,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="uid", parent_name="heatmapgl", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -311,15 +286,12 @@ def __init__(self, plotly_name='uid', parent_name='heatmapgl', **kwargs): class TransposeValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='transpose', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="transpose", parent_name="heatmapgl", **kwargs): super(TransposeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -328,15 +300,12 @@ def __init__( class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="heatmapgl", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -345,13 +314,12 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='text', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="text", parent_name="heatmapgl", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -360,16 +328,14 @@ def __init__(self, plotly_name='text', parent_name='heatmapgl', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="heatmapgl", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -379,7 +345,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -389,15 +355,12 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="heatmapgl", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -406,15 +369,12 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='reversescale', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="reversescale", parent_name="heatmapgl", **kwargs): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -423,17 +383,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="heatmapgl", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -442,13 +399,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="name", parent_name="heatmapgl", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -457,15 +413,12 @@ def __init__(self, plotly_name='name', parent_name='heatmapgl', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="heatmapgl", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -474,14 +427,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="meta", parent_name="heatmapgl", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -490,15 +442,12 @@ def __init__(self, plotly_name='meta', parent_name='heatmapgl', **kwargs): class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="heatmapgl", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -507,14 +456,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="ids", parent_name="heatmapgl", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -523,16 +471,14 @@ def __init__(self, plotly_name='ids', parent_name='heatmapgl', **kwargs): class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="heatmapgl", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -568,7 +514,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -578,15 +524,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="heatmapgl", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -595,18 +538,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="heatmapgl", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -615,15 +555,14 @@ def __init__( class DyValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dy', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="dy", parent_name="heatmapgl", **kwargs): super(DyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'ytype': 'scaled'}), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -632,15 +571,14 @@ def __init__(self, plotly_name='dy', parent_name='heatmapgl', **kwargs): class DxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dx', parent_name='heatmapgl', **kwargs): + def __init__(self, plotly_name="dx", parent_name="heatmapgl", **kwargs): super(DxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'xtype': 'scaled'}), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -649,15 +587,12 @@ def __init__(self, plotly_name='dx', parent_name='heatmapgl', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="heatmapgl", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -666,15 +601,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="heatmapgl", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -683,18 +615,13 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - - def __init__( - self, plotly_name='colorscale', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="colorscale", parent_name="heatmapgl", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -703,16 +630,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorbar', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="colorbar", parent_name="heatmapgl", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -922,7 +847,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -932,17 +857,14 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="heatmapgl", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -951,15 +873,12 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='autocolorscale', parent_name='heatmapgl', **kwargs - ): + def __init__(self, plotly_name="autocolorscale", parent_name="heatmapgl", **kwargs): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmapgl/colorbar/__init__.py b/packages/python/plotly/plotly/validators/heatmapgl/colorbar/__init__.py index d2f52a243a0..529d3539ebe 100644 --- a/packages/python/plotly/plotly/validators/heatmapgl/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmapgl/colorbar/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ypad', parent_name='heatmapgl.colorbar', **kwargs - ): + def __init__(self, plotly_name="ypad", parent_name="heatmapgl.colorbar", **kwargs): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,19 +17,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="heatmapgl.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -43,17 +34,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='heatmapgl.colorbar', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="heatmapgl.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -62,16 +50,13 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='xpad', parent_name='heatmapgl.colorbar', **kwargs - ): + def __init__(self, plotly_name="xpad", parent_name="heatmapgl.colorbar", **kwargs): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -80,19 +65,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="heatmapgl.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -101,17 +82,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='heatmapgl.colorbar', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="heatmapgl.colorbar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -120,16 +98,14 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - - def __init__( - self, plotly_name='title', parent_name='heatmapgl.colorbar', **kwargs - ): + def __init__(self, plotly_name="title", parent_name="heatmapgl.colorbar", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -145,7 +121,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -155,19 +131,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="heatmapgl.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -176,18 +148,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="heatmapgl.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -196,18 +164,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="heatmapgl.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -216,18 +180,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="heatmapgl.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -236,18 +196,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="heatmapgl.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -256,18 +212,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="heatmapgl.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -276,16 +228,13 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ticks', parent_name='heatmapgl.colorbar', **kwargs - ): + def __init__(self, plotly_name="ticks", parent_name="heatmapgl.colorbar", **kwargs): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -294,18 +243,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="heatmapgl.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -314,20 +259,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="heatmapgl.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -336,19 +277,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="heatmapgl.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -357,19 +294,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='heatmapgl.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="heatmapgl.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -377,22 +316,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="tickformatstops", parent_name="heatmapgl.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -426,7 +360,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -436,18 +370,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="heatmapgl.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -456,19 +386,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="heatmapgl.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -489,7 +416,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -499,18 +426,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="heatmapgl.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -519,18 +442,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="heatmapgl.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -539,16 +458,13 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='tick0', parent_name='heatmapgl.colorbar', **kwargs - ): + def __init__(self, plotly_name="tick0", parent_name="heatmapgl.colorbar", **kwargs): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,19 +473,15 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='thicknessmode', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="thicknessmode", parent_name="heatmapgl.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -578,19 +490,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="heatmapgl.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -598,22 +506,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="showticksuffix", parent_name="heatmapgl.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -621,22 +523,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="showtickprefix", parent_name="heatmapgl.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -645,18 +541,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="showticklabels", parent_name="heatmapgl.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -665,19 +557,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="showexponent", parent_name="heatmapgl.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -685,21 +573,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='heatmapgl.colorbar', + plotly_name="separatethousands", + parent_name="heatmapgl.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -708,19 +593,15 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlinewidth', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="outlinewidth", parent_name="heatmapgl.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -729,18 +610,14 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outlinecolor', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="outlinecolor", parent_name="heatmapgl.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -749,16 +626,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name='nticks', parent_name='heatmapgl.colorbar', **kwargs + self, plotly_name="nticks", parent_name="heatmapgl.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -767,19 +643,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="heatmapgl.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -788,16 +660,13 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='len', parent_name='heatmapgl.colorbar', **kwargs - ): + def __init__(self, plotly_name="len", parent_name="heatmapgl.colorbar", **kwargs): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -805,24 +674,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="exponentformat", parent_name="heatmapgl.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -831,16 +692,13 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='dtick', parent_name='heatmapgl.colorbar', **kwargs - ): + def __init__(self, plotly_name="dtick", parent_name="heatmapgl.colorbar", **kwargs): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -849,19 +707,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="heatmapgl.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -870,18 +724,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="heatmapgl.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -890,17 +740,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='heatmapgl.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="heatmapgl.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmapgl/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/heatmapgl/colorbar/tickfont/__init__.py index fbffc11f68b..f1714b87119 100644 --- a/packages/python/plotly/plotly/validators/heatmapgl/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmapgl/colorbar/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='heatmapgl.colorbar.tickfont', - **kwargs + self, plotly_name="size", parent_name="heatmapgl.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='heatmapgl.colorbar.tickfont', - **kwargs + self, plotly_name="family", parent_name="heatmapgl.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='heatmapgl.colorbar.tickfont', - **kwargs + self, plotly_name="color", parent_name="heatmapgl.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmapgl/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/heatmapgl/colorbar/tickformatstop/__init__.py index 13ee1df3107..282402fb1d2 100644 --- a/packages/python/plotly/plotly/validators/heatmapgl/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmapgl/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='heatmapgl.colorbar.tickformatstop', + plotly_name="value", + parent_name="heatmapgl.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='heatmapgl.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="heatmapgl.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='heatmapgl.colorbar.tickformatstop', + plotly_name="name", + parent_name="heatmapgl.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='heatmapgl.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="heatmapgl.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='heatmapgl.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="heatmapgl.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'calc' - }, { - 'valType': 'any', - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "any", "editType": "calc"}, + {"valType": "any", "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmapgl/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/heatmapgl/colorbar/title/__init__.py index 4dd5b43a4ad..0befc155481 100644 --- a/packages/python/plotly/plotly/validators/heatmapgl/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmapgl/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='heatmapgl.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="heatmapgl.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='heatmapgl.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="heatmapgl.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='heatmapgl.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="heatmapgl.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmapgl/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/heatmapgl/colorbar/title/font/__init__.py index a144b99cd7a..339c347a1a1 100644 --- a/packages/python/plotly/plotly/validators/heatmapgl/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmapgl/colorbar/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='heatmapgl.colorbar.title.font', - **kwargs + self, plotly_name="size", parent_name="heatmapgl.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='heatmapgl.colorbar.title.font', + plotly_name="family", + parent_name="heatmapgl.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +40,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='heatmapgl.colorbar.title.font', - **kwargs + self, plotly_name="color", parent_name="heatmapgl.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmapgl/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/heatmapgl/hoverlabel/__init__.py index e1bfc09dd9d..11c2b381e5e 100644 --- a/packages/python/plotly/plotly/validators/heatmapgl/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmapgl/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='heatmapgl.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="heatmapgl.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='heatmapgl.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="heatmapgl.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='font', parent_name='heatmapgl.hoverlabel', **kwargs + self, plotly_name="font", parent_name="heatmapgl.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +75,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +85,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='heatmapgl.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="heatmapgl.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +101,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='heatmapgl.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="heatmapgl.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +118,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='heatmapgl.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="heatmapgl.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,19 +134,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='heatmapgl.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="heatmapgl.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -177,18 +151,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='heatmapgl.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="heatmapgl.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -197,19 +167,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='heatmapgl.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="heatmapgl.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmapgl/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/heatmapgl/hoverlabel/font/__init__.py index 0fde55d98b2..4e6feb2f004 100644 --- a/packages/python/plotly/plotly/validators/heatmapgl/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmapgl/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='heatmapgl.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="heatmapgl.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='heatmapgl.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="heatmapgl.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='heatmapgl.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="heatmapgl.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='heatmapgl.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="heatmapgl.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='heatmapgl.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="heatmapgl.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='heatmapgl.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="heatmapgl.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/heatmapgl/stream/__init__.py b/packages/python/plotly/plotly/validators/heatmapgl/stream/__init__.py index 88e0aa8abd4..2c1843175f1 100644 --- a/packages/python/plotly/plotly/validators/heatmapgl/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/heatmapgl/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='heatmapgl.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="heatmapgl.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,19 +18,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='heatmapgl.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="heatmapgl.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/__init__.py b/packages/python/plotly/plotly/validators/histogram/__init__.py index d3853926d45..f2c4307f658 100644 --- a/packages/python/plotly/plotly/validators/histogram/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='histogram', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="histogram", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,22 +16,32 @@ def __init__(self, plotly_name='ysrc', parent_name='histogram', **kwargs): class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ycalendar', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="ycalendar", parent_name="histogram", **kwargs): super(YcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -44,14 +51,14 @@ def __init__( class YBinsValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='ybins', parent_name='histogram', **kwargs): + def __init__(self, plotly_name="ybins", parent_name="histogram", **kwargs): super(YBinsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'YBins'), + data_class_str=kwargs.pop("data_class_str", "YBins"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ end Sets the end value for the y axis bins. The last bin may not end exactly at this value, we @@ -96,7 +103,7 @@ def __init__(self, plotly_name='ybins', parent_name='histogram', **kwargs): others are shifted down (if necessary) to differ from that one by an integer number of bins. -""" +""", ), **kwargs ) @@ -106,14 +113,13 @@ def __init__(self, plotly_name='ybins', parent_name='histogram', **kwargs): class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='yaxis', parent_name='histogram', **kwargs): + def __init__(self, plotly_name="yaxis", parent_name="histogram", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -122,13 +128,12 @@ def __init__(self, plotly_name='yaxis', parent_name='histogram', **kwargs): class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='histogram', **kwargs): + def __init__(self, plotly_name="y", parent_name="histogram", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -137,13 +142,12 @@ def __init__(self, plotly_name='y', parent_name='histogram', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='histogram', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="histogram", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -152,22 +156,32 @@ def __init__(self, plotly_name='xsrc', parent_name='histogram', **kwargs): class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xcalendar', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="xcalendar", parent_name="histogram", **kwargs): super(XcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -177,14 +191,14 @@ def __init__( class XBinsValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='xbins', parent_name='histogram', **kwargs): + def __init__(self, plotly_name="xbins", parent_name="histogram", **kwargs): super(XBinsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'XBins'), + data_class_str=kwargs.pop("data_class_str", "XBins"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ end Sets the end value for the x axis bins. The last bin may not end exactly at this value, we @@ -229,7 +243,7 @@ def __init__(self, plotly_name='xbins', parent_name='histogram', **kwargs): others are shifted down (if necessary) to differ from that one by an integer number of bins. -""" +""", ), **kwargs ) @@ -239,14 +253,13 @@ def __init__(self, plotly_name='xbins', parent_name='histogram', **kwargs): class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='xaxis', parent_name='histogram', **kwargs): + def __init__(self, plotly_name="xaxis", parent_name="histogram", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -255,13 +268,12 @@ def __init__(self, plotly_name='xaxis', parent_name='histogram', **kwargs): class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='histogram', **kwargs): + def __init__(self, plotly_name="x", parent_name="histogram", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -270,16 +282,13 @@ def __init__(self, plotly_name='x', parent_name='histogram', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="histogram", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -288,23 +297,21 @@ def __init__( class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='unselected', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="unselected", parent_name="histogram", **kwargs): super(UnselectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_class_str=kwargs.pop("data_class_str", "Unselected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.histogram.unselected.Marker instance or dict with compatible properties textfont plotly.graph_objs.histogram.unselected.Textfont instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -314,15 +321,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="histogram", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -331,14 +335,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='histogram', **kwargs): + def __init__(self, plotly_name="uid", parent_name="histogram", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -347,15 +350,12 @@ def __init__(self, plotly_name='uid', parent_name='histogram', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="histogram", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -364,14 +364,13 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='histogram', **kwargs): + def __init__(self, plotly_name="text", parent_name="histogram", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -380,16 +379,14 @@ def __init__(self, plotly_name='text', parent_name='histogram', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="histogram", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -399,7 +396,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -409,15 +406,12 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="histogram", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -426,15 +420,12 @@ def __init__( class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='selectedpoints', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="selectedpoints", parent_name="histogram", **kwargs): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -443,23 +434,21 @@ def __init__( class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='selected', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="selected", parent_name="histogram", **kwargs): super(SelectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_class_str=kwargs.pop("data_class_str", "Selected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.histogram.selected.Marker instance or dict with compatible properties textfont plotly.graph_objs.histogram.selected.Textfont instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -469,16 +458,13 @@ def __init__( class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='orientation', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="orientation", parent_name="histogram", **kwargs): super(OrientationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['v', 'h']), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["v", "h"]), **kwargs ) @@ -487,17 +473,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="histogram", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -506,15 +489,12 @@ def __init__( class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='offsetgroup', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="offsetgroup", parent_name="histogram", **kwargs): super(OffsetgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -523,16 +503,13 @@ def __init__( class NbinsyValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='nbinsy', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="nbinsy", parent_name="histogram", **kwargs): super(NbinsyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -541,16 +518,13 @@ def __init__( class NbinsxValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='nbinsx', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="nbinsx", parent_name="histogram", **kwargs): super(NbinsxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -559,13 +533,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='histogram', **kwargs): + def __init__(self, plotly_name="name", parent_name="histogram", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -574,15 +547,12 @@ def __init__(self, plotly_name='name', parent_name='histogram', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="histogram", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -591,14 +561,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='histogram', **kwargs): + def __init__(self, plotly_name="meta", parent_name="histogram", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -607,16 +576,14 @@ def __init__(self, plotly_name='meta', parent_name='histogram', **kwargs): class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="histogram", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -711,7 +678,7 @@ def __init__( Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `marker.color`is set to a numerical array. -""" +""", ), **kwargs ) @@ -721,15 +688,12 @@ def __init__( class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='legendgroup', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="legendgroup", parent_name="histogram", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -738,15 +702,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="histogram", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -755,14 +716,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='histogram', **kwargs): + def __init__(self, plotly_name="ids", parent_name="histogram", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -771,15 +731,12 @@ def __init__(self, plotly_name='ids', parent_name='histogram', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="histogram", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -788,16 +745,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="histogram", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -806,18 +760,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='histogram', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="histogram", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -826,16 +776,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="histogram", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -844,16 +791,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="histogram", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -889,7 +834,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -899,15 +844,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="histogram", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -916,18 +858,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="histogram", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -936,20 +875,15 @@ def __init__( class HistnormValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='histnorm', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="histnorm", parent_name="histogram", **kwargs): super(HistnormValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - '', 'percent', 'probability', 'density', - 'probability density' - ] + "values", + ["", "percent", "probability", "density", "probability density"], ), **kwargs ) @@ -959,16 +893,13 @@ def __init__( class HistfuncValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='histfunc', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="histfunc", parent_name="histogram", **kwargs): super(HistfuncValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['count', 'sum', 'avg', 'min', 'max']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["count", "sum", "avg", "min", "max"]), **kwargs ) @@ -977,16 +908,14 @@ def __init__( class ErrorYValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='error_y', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="error_y", parent_name="histogram", **kwargs): super(ErrorYValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ErrorY'), + data_class_str=kwargs.pop("data_class_str", "ErrorY"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ array Sets the data corresponding the length of each error bar. Values are plotted relative to the @@ -1042,7 +971,7 @@ def __init__( width Sets the width (in px) of the cross-bar at both ends of the error bars. -""" +""", ), **kwargs ) @@ -1052,16 +981,14 @@ def __init__( class ErrorXValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='error_x', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="error_x", parent_name="histogram", **kwargs): super(ErrorXValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ErrorX'), + data_class_str=kwargs.pop("data_class_str", "ErrorX"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ array Sets the data corresponding the length of each error bar. Values are plotted relative to the @@ -1119,7 +1046,7 @@ def __init__( width Sets the width (in px) of the cross-bar at both ends of the error bars. -""" +""", ), **kwargs ) @@ -1129,15 +1056,12 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="histogram", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1146,15 +1070,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="histogram", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1163,16 +1084,14 @@ def __init__( class CumulativeValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='cumulative', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="cumulative", parent_name="histogram", **kwargs): super(CumulativeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Cumulative'), + data_class_str=kwargs.pop("data_class_str", "Cumulative"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ currentbin Only applies if cumulative is enabled. Sets whether the current bin is included, excluded, @@ -1199,7 +1118,7 @@ def __init__( points, and "probability" and *probability density* both rise to the number of sample points. -""" +""", ), **kwargs ) @@ -1209,15 +1128,12 @@ def __init__( class BingroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='bingroup', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="bingroup", parent_name="histogram", **kwargs): super(BingroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1226,15 +1142,12 @@ def __init__( class AutobinyValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='autobiny', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="autobiny", parent_name="histogram", **kwargs): super(AutobinyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1243,15 +1156,12 @@ def __init__( class AutobinxValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='autobinx', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="autobinx", parent_name="histogram", **kwargs): super(AutobinxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1260,14 +1170,11 @@ def __init__( class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='alignmentgroup', parent_name='histogram', **kwargs - ): + def __init__(self, plotly_name="alignmentgroup", parent_name="histogram", **kwargs): super(AlignmentgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/cumulative/__init__.py b/packages/python/plotly/plotly/validators/histogram/cumulative/__init__.py index 6f6ea1966da..360758a160d 100644 --- a/packages/python/plotly/plotly/validators/histogram/cumulative/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/cumulative/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='enabled', - parent_name='histogram.cumulative', - **kwargs + self, plotly_name="enabled", parent_name="histogram.cumulative", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class DirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='direction', - parent_name='histogram.cumulative', - **kwargs + self, plotly_name="direction", parent_name="histogram.cumulative", **kwargs ): super(DirectionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['increasing', 'decreasing']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["increasing", "decreasing"]), **kwargs ) @@ -45,18 +35,14 @@ def __init__( class CurrentbinValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='currentbin', - parent_name='histogram.cumulative', - **kwargs + self, plotly_name="currentbin", parent_name="histogram.cumulative", **kwargs ): super(CurrentbinValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['include', 'exclude', 'half']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["include", "exclude", "half"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/error_x/__init__.py b/packages/python/plotly/plotly/validators/histogram/error_x/__init__.py index 5d140c70f14..20d0a37685f 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_x/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/error_x/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='histogram.error_x', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="histogram.error_x", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,15 +17,14 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='visible', parent_name='histogram.error_x', **kwargs + self, plotly_name="visible", parent_name="histogram.error_x", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,19 +33,15 @@ def __init__( class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='valueminus', - parent_name='histogram.error_x', - **kwargs + self, plotly_name="valueminus", parent_name="histogram.error_x", **kwargs ): super(ValueminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -60,16 +50,13 @@ def __init__( class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='value', parent_name='histogram.error_x', **kwargs - ): + def __init__(self, plotly_name="value", parent_name="histogram.error_x", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -78,18 +65,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='histogram.error_x', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="histogram.error_x", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['percent', 'constant', 'sqrt', 'data'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs ) @@ -98,19 +80,15 @@ def __init__( class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='tracerefminus', - parent_name='histogram.error_x', - **kwargs + self, plotly_name="tracerefminus", parent_name="histogram.error_x", **kwargs ): super(TracerefminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -119,19 +97,15 @@ def __init__( class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='traceref', - parent_name='histogram.error_x', - **kwargs + self, plotly_name="traceref", parent_name="histogram.error_x", **kwargs ): super(TracerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -140,19 +114,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='histogram.error_x', - **kwargs + self, plotly_name="thickness", parent_name="histogram.error_x", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -161,18 +131,14 @@ def __init__( class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='symmetric', - parent_name='histogram.error_x', - **kwargs + self, plotly_name="symmetric", parent_name="histogram.error_x", **kwargs ): super(SymmetricValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -181,18 +147,14 @@ def __init__( class CopyYstyleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='copy_ystyle', - parent_name='histogram.error_x', - **kwargs + self, plotly_name="copy_ystyle", parent_name="histogram.error_x", **kwargs ): super(CopyYstyleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -201,15 +163,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='histogram.error_x', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="histogram.error_x", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -218,18 +177,14 @@ def __init__( class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='arraysrc', - parent_name='histogram.error_x', - **kwargs + self, plotly_name="arraysrc", parent_name="histogram.error_x", **kwargs ): super(ArraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -238,18 +193,14 @@ def __init__( class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='arrayminussrc', - parent_name='histogram.error_x', - **kwargs + self, plotly_name="arrayminussrc", parent_name="histogram.error_x", **kwargs ): super(ArrayminussrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -258,18 +209,14 @@ def __init__( class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='arrayminus', - parent_name='histogram.error_x', - **kwargs + self, plotly_name="arrayminus", parent_name="histogram.error_x", **kwargs ): super(ArrayminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -278,14 +225,11 @@ def __init__( class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='array', parent_name='histogram.error_x', **kwargs - ): + def __init__(self, plotly_name="array", parent_name="histogram.error_x", **kwargs): super(ArrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/error_y/__init__.py b/packages/python/plotly/plotly/validators/histogram/error_y/__init__.py index 52d1d6cdb79..6e4f4e2a9a1 100644 --- a/packages/python/plotly/plotly/validators/histogram/error_y/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/error_y/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='histogram.error_y', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="histogram.error_y", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,15 +17,14 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='visible', parent_name='histogram.error_y', **kwargs + self, plotly_name="visible", parent_name="histogram.error_y", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,19 +33,15 @@ def __init__( class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='valueminus', - parent_name='histogram.error_y', - **kwargs + self, plotly_name="valueminus", parent_name="histogram.error_y", **kwargs ): super(ValueminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -60,16 +50,13 @@ def __init__( class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='value', parent_name='histogram.error_y', **kwargs - ): + def __init__(self, plotly_name="value", parent_name="histogram.error_y", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -78,18 +65,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='histogram.error_y', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="histogram.error_y", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['percent', 'constant', 'sqrt', 'data'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs ) @@ -98,19 +80,15 @@ def __init__( class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='tracerefminus', - parent_name='histogram.error_y', - **kwargs + self, plotly_name="tracerefminus", parent_name="histogram.error_y", **kwargs ): super(TracerefminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -119,19 +97,15 @@ def __init__( class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='traceref', - parent_name='histogram.error_y', - **kwargs + self, plotly_name="traceref", parent_name="histogram.error_y", **kwargs ): super(TracerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -140,19 +114,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='histogram.error_y', - **kwargs + self, plotly_name="thickness", parent_name="histogram.error_y", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -161,18 +131,14 @@ def __init__( class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='symmetric', - parent_name='histogram.error_y', - **kwargs + self, plotly_name="symmetric", parent_name="histogram.error_y", **kwargs ): super(SymmetricValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -181,15 +147,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='histogram.error_y', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="histogram.error_y", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -198,18 +161,14 @@ def __init__( class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='arraysrc', - parent_name='histogram.error_y', - **kwargs + self, plotly_name="arraysrc", parent_name="histogram.error_y", **kwargs ): super(ArraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -218,18 +177,14 @@ def __init__( class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='arrayminussrc', - parent_name='histogram.error_y', - **kwargs + self, plotly_name="arrayminussrc", parent_name="histogram.error_y", **kwargs ): super(ArrayminussrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -238,18 +193,14 @@ def __init__( class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='arrayminus', - parent_name='histogram.error_y', - **kwargs + self, plotly_name="arrayminus", parent_name="histogram.error_y", **kwargs ): super(ArrayminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -258,14 +209,11 @@ def __init__( class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='array', parent_name='histogram.error_y', **kwargs - ): + def __init__(self, plotly_name="array", parent_name="histogram.error_y", **kwargs): super(ArrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/__init__.py index ee0dd1b68da..7c15cdd7a5c 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='histogram.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="histogram.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='histogram.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="histogram.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='font', parent_name='histogram.hoverlabel', **kwargs + self, plotly_name="font", parent_name="histogram.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +75,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +85,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='histogram.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="histogram.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +101,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='histogram.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="histogram.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +118,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='histogram.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="histogram.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,19 +134,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='histogram.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="histogram.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -177,18 +151,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='histogram.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="histogram.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -197,19 +167,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='histogram.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="histogram.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/__init__.py index 2c646bb8a45..c24f3003c50 100644 --- a/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='histogram.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="histogram.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='histogram.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="histogram.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='histogram.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="histogram.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='histogram.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="histogram.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='histogram.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="histogram.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='histogram.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="histogram.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/marker/__init__.py b/packages/python/plotly/plotly/validators/histogram/marker/__init__.py index c725b69d5cd..b42e62f43f9 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showscale', - parent_name='histogram.marker', - **kwargs + self, plotly_name="showscale", parent_name="histogram.marker", **kwargs ): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='histogram.marker', - **kwargs + self, plotly_name="reversescale", parent_name="histogram.marker", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -44,18 +34,14 @@ def __init__( class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='opacitysrc', - parent_name='histogram.marker', - **kwargs + self, plotly_name="opacitysrc", parent_name="histogram.marker", **kwargs ): super(OpacitysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -64,18 +50,15 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='histogram.marker', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="histogram.marker", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -84,16 +67,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='histogram.marker', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="histogram.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -182,7 +163,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -192,15 +173,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='colorsrc', parent_name='histogram.marker', **kwargs + self, plotly_name="colorsrc", parent_name="histogram.marker", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -209,21 +189,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='histogram.marker', - **kwargs + self, plotly_name="colorscale", parent_name="histogram.marker", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -232,16 +206,16 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='colorbar', parent_name='histogram.marker', **kwargs + self, plotly_name="colorbar", parent_name="histogram.marker", **kwargs ): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -452,7 +426,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -462,20 +436,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='histogram.marker', - **kwargs + self, plotly_name="coloraxis", parent_name="histogram.marker", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -484,18 +454,15 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='histogram.marker', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="histogram.marker", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'histogram.marker.colorscale' + "colorscale_path", "histogram.marker.colorscale" ), **kwargs ) @@ -505,16 +472,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmin', parent_name='histogram.marker', **kwargs - ): + def __init__(self, plotly_name="cmin", parent_name="histogram.marker", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -523,16 +487,13 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmid', parent_name='histogram.marker', **kwargs - ): + def __init__(self, plotly_name="cmid", parent_name="histogram.marker", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -541,16 +502,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmax', parent_name='histogram.marker', **kwargs - ): + def __init__(self, plotly_name="cmax", parent_name="histogram.marker", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -559,16 +517,13 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='histogram.marker', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="histogram.marker", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -577,18 +532,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='histogram.marker', - **kwargs + self, plotly_name="autocolorscale", parent_name="histogram.marker", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/__init__.py index 9647df5b143..96eba1aa53d 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="histogram.marker.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="histogram.marker.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,20 +36,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='y', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="y", parent_name="histogram.marker.colorbar", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -68,19 +54,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="histogram.marker.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -89,19 +71,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="histogram.marker.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -110,20 +88,16 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='x', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="x", parent_name="histogram.marker.colorbar", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -132,19 +106,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="title", parent_name="histogram.marker.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -160,7 +131,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -170,19 +141,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="histogram.marker.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -191,18 +158,17 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='tickvalssrc', - parent_name='histogram.marker.colorbar', + plotly_name="tickvalssrc", + parent_name="histogram.marker.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -211,18 +177,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="histogram.marker.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -231,18 +193,17 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='ticktextsrc', - parent_name='histogram.marker.colorbar', + plotly_name="ticktextsrc", + parent_name="histogram.marker.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -251,18 +212,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="histogram.marker.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -271,18 +228,17 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='ticksuffix', - parent_name='histogram.marker.colorbar', + plotly_name="ticksuffix", + parent_name="histogram.marker.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -291,19 +247,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="histogram.marker.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -312,18 +264,17 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickprefix', - parent_name='histogram.marker.colorbar', + plotly_name="tickprefix", + parent_name="histogram.marker.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -332,20 +283,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="histogram.marker.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -354,19 +301,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="histogram.marker.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -375,19 +318,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='histogram.marker.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="histogram.marker.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -395,22 +340,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='histogram.marker.colorbar', + plotly_name="tickformatstops", + parent_name="histogram.marker.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -444,7 +387,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -454,18 +397,17 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickformat', - parent_name='histogram.marker.colorbar', + plotly_name="tickformat", + parent_name="histogram.marker.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -474,19 +416,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="histogram.marker.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -507,7 +446,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -517,18 +456,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="histogram.marker.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -537,18 +472,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="histogram.marker.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,19 +488,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="histogram.marker.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -578,19 +505,18 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='thicknessmode', - parent_name='histogram.marker.colorbar', + plotly_name="thicknessmode", + parent_name="histogram.marker.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -599,19 +525,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="histogram.marker.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -619,22 +541,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='histogram.marker.colorbar', + plotly_name="showticksuffix", + parent_name="histogram.marker.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -642,22 +561,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='histogram.marker.colorbar', + plotly_name="showtickprefix", + parent_name="histogram.marker.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -666,18 +582,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='histogram.marker.colorbar', + plotly_name="showticklabels", + parent_name="histogram.marker.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -686,19 +601,18 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='showexponent', - parent_name='histogram.marker.colorbar', + plotly_name="showexponent", + parent_name="histogram.marker.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -706,21 +620,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='histogram.marker.colorbar', + plotly_name="separatethousands", + parent_name="histogram.marker.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -729,19 +640,18 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='outlinewidth', - parent_name='histogram.marker.colorbar', + plotly_name="outlinewidth", + parent_name="histogram.marker.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -750,18 +660,17 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='outlinecolor', - parent_name='histogram.marker.colorbar', + plotly_name="outlinecolor", + parent_name="histogram.marker.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -770,19 +679,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="histogram.marker.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -791,19 +696,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="histogram.marker.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -812,19 +713,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='len', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="len", parent_name="histogram.marker.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -832,24 +729,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='histogram.marker.colorbar', + plotly_name="exponentformat", + parent_name="histogram.marker.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -858,19 +750,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="histogram.marker.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -879,19 +767,18 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='borderwidth', - parent_name='histogram.marker.colorbar', + plotly_name="borderwidth", + parent_name="histogram.marker.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -900,18 +787,17 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='histogram.marker.colorbar', + plotly_name="bordercolor", + parent_name="histogram.marker.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -920,17 +806,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='histogram.marker.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="histogram.marker.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/__init__.py index 9cc440e9216..768cb41a960 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='histogram.marker.colorbar.tickfont', + plotly_name="size", + parent_name="histogram.marker.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='histogram.marker.colorbar.tickfont', + plotly_name="family", + parent_name="histogram.marker.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='histogram.marker.colorbar.tickfont', + plotly_name="color", + parent_name="histogram.marker.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/__init__.py index 7d4c17feeb4..4c6cd105a42 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='histogram.marker.colorbar.tickformatstop', + plotly_name="value", + parent_name="histogram.marker.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='histogram.marker.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="histogram.marker.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='histogram.marker.colorbar.tickformatstop', + plotly_name="name", + parent_name="histogram.marker.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='histogram.marker.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="histogram.marker.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='histogram.marker.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="histogram.marker.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/__init__.py index 5f52821c1f0..e39642b58d7 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='text', - parent_name='histogram.marker.colorbar.title', + plotly_name="text", + parent_name="histogram.marker.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +21,18 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='side', - parent_name='histogram.marker.colorbar.title', + plotly_name="side", + parent_name="histogram.marker.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +41,19 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='font', - parent_name='histogram.marker.colorbar.title', + plotly_name="font", + parent_name="histogram.marker.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +74,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/__init__.py index 3c2e579d6f8..805c358337f 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='histogram.marker.colorbar.title.font', + plotly_name="size", + parent_name="histogram.marker.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='histogram.marker.colorbar.title.font', + plotly_name="family", + parent_name="histogram.marker.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='histogram.marker.colorbar.title.font', + plotly_name="color", + parent_name="histogram.marker.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/marker/line/__init__.py b/packages/python/plotly/plotly/validators/histogram/marker/line/__init__.py index fc67de7b445..7c8534c1c59 100644 --- a/packages/python/plotly/plotly/validators/histogram/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/marker/line/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='widthsrc', - parent_name='histogram.marker.line', - **kwargs + self, plotly_name="widthsrc", parent_name="histogram.marker.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,21 +18,17 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='histogram.marker.line', - **kwargs + self, plotly_name="width", parent_name="histogram.marker.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,18 +37,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='histogram.marker.line', - **kwargs + self, plotly_name="reversescale", parent_name="histogram.marker.line", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -67,18 +53,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='histogram.marker.line', - **kwargs + self, plotly_name="colorsrc", parent_name="histogram.marker.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -87,21 +69,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='histogram.marker.line', - **kwargs + self, plotly_name="colorscale", parent_name="histogram.marker.line", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -110,20 +86,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='histogram.marker.line', - **kwargs + self, plotly_name="coloraxis", parent_name="histogram.marker.line", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -132,21 +104,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='histogram.marker.line', - **kwargs + self, plotly_name="color", parent_name="histogram.marker.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'histogram.marker.line.colorscale' + "colorscale_path", "histogram.marker.line.colorscale" ), **kwargs ) @@ -156,19 +124,15 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmin', - parent_name='histogram.marker.line', - **kwargs + self, plotly_name="cmin", parent_name="histogram.marker.line", **kwargs ): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -177,19 +141,15 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmid', - parent_name='histogram.marker.line', - **kwargs + self, plotly_name="cmid", parent_name="histogram.marker.line", **kwargs ): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -198,19 +158,15 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmax', - parent_name='histogram.marker.line', - **kwargs + self, plotly_name="cmax", parent_name="histogram.marker.line", **kwargs ): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -219,19 +175,15 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='cauto', - parent_name='histogram.marker.line', - **kwargs + self, plotly_name="cauto", parent_name="histogram.marker.line", **kwargs ): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -240,18 +192,17 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='autocolorscale', - parent_name='histogram.marker.line', + plotly_name="autocolorscale", + parent_name="histogram.marker.line", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/selected/__init__.py b/packages/python/plotly/plotly/validators/histogram/selected/__init__.py index 825251500fa..7b4ddac3c11 100644 --- a/packages/python/plotly/plotly/validators/histogram/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/selected/__init__.py @@ -1,25 +1,20 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='histogram.selected', - **kwargs + self, plotly_name="textfont", parent_name="histogram.selected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of selected points. -""" +""", ), **kwargs ) @@ -29,21 +24,21 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='marker', parent_name='histogram.selected', **kwargs + self, plotly_name="marker", parent_name="histogram.selected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of selected points. opacity Sets the marker opacity of selected points. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/histogram/selected/marker/__init__.py index c9a2c33880a..27c9d5044fc 100644 --- a/packages/python/plotly/plotly/validators/histogram/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/selected/marker/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='histogram.selected.marker', - **kwargs + self, plotly_name="opacity", parent_name="histogram.selected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -26,17 +20,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='histogram.selected.marker', - **kwargs + self, plotly_name="color", parent_name="histogram.selected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/histogram/selected/textfont/__init__.py index 2663b6dc17f..ea8fda12e17 100644 --- a/packages/python/plotly/plotly/validators/histogram/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/selected/textfont/__init__.py @@ -1,20 +1,14 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='histogram.selected.textfont', - **kwargs + self, plotly_name="color", parent_name="histogram.selected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/stream/__init__.py b/packages/python/plotly/plotly/validators/histogram/stream/__init__.py index 610e447fbf8..f3a3b54d19b 100644 --- a/packages/python/plotly/plotly/validators/histogram/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='histogram.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="histogram.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,19 +18,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='histogram.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="histogram.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/unselected/__init__.py b/packages/python/plotly/plotly/validators/histogram/unselected/__init__.py index 8bc0354b059..486a2c57960 100644 --- a/packages/python/plotly/plotly/validators/histogram/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/unselected/__init__.py @@ -1,26 +1,21 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='histogram.unselected', - **kwargs + self, plotly_name="textfont", parent_name="histogram.unselected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) @@ -30,26 +25,23 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='histogram.unselected', - **kwargs + self, plotly_name="marker", parent_name="histogram.unselected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of unselected points, applied only when a selection exists. opacity Sets the marker opacity of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/histogram/unselected/marker/__init__.py index 715372cde2d..f9dfff67e97 100644 --- a/packages/python/plotly/plotly/validators/histogram/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/unselected/marker/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='histogram.unselected.marker', - **kwargs + self, plotly_name="opacity", parent_name="histogram.unselected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -26,17 +20,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='histogram.unselected.marker', - **kwargs + self, plotly_name="color", parent_name="histogram.unselected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/histogram/unselected/textfont/__init__.py index 033511501e6..8f941220d85 100644 --- a/packages/python/plotly/plotly/validators/histogram/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/unselected/textfont/__init__.py @@ -1,20 +1,14 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='histogram.unselected.textfont', - **kwargs + self, plotly_name="color", parent_name="histogram.unselected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/xbins/__init__.py b/packages/python/plotly/plotly/validators/histogram/xbins/__init__.py index d70679f90ea..53c0c8184c8 100644 --- a/packages/python/plotly/plotly/validators/histogram/xbins/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/xbins/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class StartValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='start', parent_name='histogram.xbins', **kwargs - ): + def __init__(self, plotly_name="start", parent_name="histogram.xbins", **kwargs): super(StartValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -21,15 +16,12 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='size', parent_name='histogram.xbins', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="histogram.xbins", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -38,14 +30,11 @@ def __init__( class EndValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='end', parent_name='histogram.xbins', **kwargs - ): + def __init__(self, plotly_name="end", parent_name="histogram.xbins", **kwargs): super(EndValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram/ybins/__init__.py b/packages/python/plotly/plotly/validators/histogram/ybins/__init__.py index d4247e5772b..9a9e2ec562d 100644 --- a/packages/python/plotly/plotly/validators/histogram/ybins/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram/ybins/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class StartValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='start', parent_name='histogram.ybins', **kwargs - ): + def __init__(self, plotly_name="start", parent_name="histogram.ybins", **kwargs): super(StartValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -21,15 +16,12 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='size', parent_name='histogram.ybins', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="histogram.ybins", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -38,14 +30,11 @@ def __init__( class EndValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='end', parent_name='histogram.ybins', **kwargs - ): + def __init__(self, plotly_name="end", parent_name="histogram.ybins", **kwargs): super(EndValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2d/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/__init__.py index 1ab4ffe7c19..cc3f68a81bb 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='zsrc', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="zsrc", parent_name="histogram2d", **kwargs): super(ZsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +16,13 @@ def __init__( class ZsmoothValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='zsmooth', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="zsmooth", parent_name="histogram2d", **kwargs): super(ZsmoothValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fast', 'best', False]), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fast", "best", False]), **kwargs ) @@ -39,16 +31,13 @@ def __init__( class ZminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='zmin', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="zmin", parent_name="histogram2d", **kwargs): super(ZminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'zauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"zauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -57,16 +46,13 @@ def __init__( class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='zmid', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="zmid", parent_name="histogram2d", **kwargs): super(ZmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -75,16 +61,13 @@ def __init__( class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='zmax', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="zmax", parent_name="histogram2d", **kwargs): super(ZmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'zauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"zauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -93,15 +76,12 @@ def __init__( class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='zhoverformat', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="zhoverformat", parent_name="histogram2d", **kwargs): super(ZhoverformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -110,16 +90,13 @@ def __init__( class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='zauto', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="zauto", parent_name="histogram2d", **kwargs): super(ZautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -128,13 +105,12 @@ def __init__( class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='z', parent_name='histogram2d', **kwargs): + def __init__(self, plotly_name="z", parent_name="histogram2d", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -143,15 +119,12 @@ def __init__(self, plotly_name='z', parent_name='histogram2d', **kwargs): class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='ysrc', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="ysrc", parent_name="histogram2d", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -160,16 +133,13 @@ def __init__( class YgapValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ygap', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="ygap", parent_name="histogram2d", **kwargs): super(YgapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -178,22 +148,32 @@ def __init__( class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ycalendar', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="ycalendar", parent_name="histogram2d", **kwargs): super(YcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -203,16 +183,14 @@ def __init__( class YBinsValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='ybins', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="ybins", parent_name="histogram2d", **kwargs): super(YBinsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'YBins'), + data_class_str=kwargs.pop("data_class_str", "YBins"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ end Sets the end value for the y axis bins. The last bin may not end exactly at this value, we @@ -247,7 +225,7 @@ def __init__( `start` should be a date string. For category data, `start` is based on the category serial numbers, and defaults to -0.5. -""" +""", ), **kwargs ) @@ -257,15 +235,12 @@ def __init__( class YbingroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='ybingroup', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="ybingroup", parent_name="histogram2d", **kwargs): super(YbingroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -274,16 +249,13 @@ def __init__( class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='yaxis', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="yaxis", parent_name="histogram2d", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -292,13 +264,12 @@ def __init__( class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='histogram2d', **kwargs): + def __init__(self, plotly_name="y", parent_name="histogram2d", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -307,15 +278,12 @@ def __init__(self, plotly_name='y', parent_name='histogram2d', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='xsrc', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="xsrc", parent_name="histogram2d", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -324,16 +292,13 @@ def __init__( class XgapValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='xgap', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="xgap", parent_name="histogram2d", **kwargs): super(XgapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -342,22 +307,32 @@ def __init__( class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xcalendar', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="xcalendar", parent_name="histogram2d", **kwargs): super(XcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -367,16 +342,14 @@ def __init__( class XBinsValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='xbins', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="xbins", parent_name="histogram2d", **kwargs): super(XBinsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'XBins'), + data_class_str=kwargs.pop("data_class_str", "XBins"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ end Sets the end value for the x axis bins. The last bin may not end exactly at this value, we @@ -411,7 +384,7 @@ def __init__( `start` should be a date string. For category data, `start` is based on the category serial numbers, and defaults to -0.5. -""" +""", ), **kwargs ) @@ -421,15 +394,12 @@ def __init__( class XbingroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='xbingroup', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="xbingroup", parent_name="histogram2d", **kwargs): super(XbingroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -438,16 +408,13 @@ def __init__( class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='xaxis', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="xaxis", parent_name="histogram2d", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -456,13 +423,12 @@ def __init__( class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='histogram2d', **kwargs): + def __init__(self, plotly_name="x", parent_name="histogram2d", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -471,16 +437,13 @@ def __init__(self, plotly_name='x', parent_name='histogram2d', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="histogram2d", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -489,15 +452,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="histogram2d", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -506,14 +466,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='histogram2d', **kwargs): + def __init__(self, plotly_name="uid", parent_name="histogram2d", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -522,16 +481,14 @@ def __init__(self, plotly_name='uid', parent_name='histogram2d', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="histogram2d", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -541,7 +498,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -551,15 +508,12 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="histogram2d", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -568,15 +522,12 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='reversescale', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="reversescale", parent_name="histogram2d", **kwargs): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -585,17 +536,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="histogram2d", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -604,16 +552,13 @@ def __init__( class NbinsyValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='nbinsy', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="nbinsy", parent_name="histogram2d", **kwargs): super(NbinsyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -622,16 +567,13 @@ def __init__( class NbinsxValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='nbinsx', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="nbinsx", parent_name="histogram2d", **kwargs): super(NbinsxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -640,15 +582,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="histogram2d", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -657,15 +596,12 @@ def __init__( class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="histogram2d", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -674,16 +610,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='meta', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="meta", parent_name="histogram2d", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -692,22 +625,20 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="histogram2d", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the aggregation data. colorsrc Sets the source reference on plot.ly for color . -""" +""", ), **kwargs ) @@ -717,15 +648,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="histogram2d", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -734,14 +662,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='histogram2d', **kwargs): + def __init__(self, plotly_name="ids", parent_name="histogram2d", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -750,18 +677,14 @@ def __init__(self, plotly_name='ids', parent_name='histogram2d', **kwargs): class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='histogram2d', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="histogram2d", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -770,16 +693,15 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='hovertemplate', parent_name='histogram2d', **kwargs + self, plotly_name="hovertemplate", parent_name="histogram2d", **kwargs ): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -788,16 +710,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="histogram2d", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -833,7 +753,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -843,15 +763,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="histogram2d", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -860,18 +777,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="histogram2d", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -880,20 +794,15 @@ def __init__( class HistnormValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='histnorm', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="histnorm", parent_name="histogram2d", **kwargs): super(HistnormValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - '', 'percent', 'probability', 'density', - 'probability density' - ] + "values", + ["", "percent", "probability", "density", "probability density"], ), **kwargs ) @@ -903,16 +812,13 @@ def __init__( class HistfuncValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='histfunc', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="histfunc", parent_name="histogram2d", **kwargs): super(HistfuncValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['count', 'sum', 'avg', 'min', 'max']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["count", "sum", "avg", "min", "max"]), **kwargs ) @@ -921,15 +827,14 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='customdatasrc', parent_name='histogram2d', **kwargs + self, plotly_name="customdatasrc", parent_name="histogram2d", **kwargs ): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -938,15 +843,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="histogram2d", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -955,18 +857,13 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - - def __init__( - self, plotly_name='colorscale', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="colorscale", parent_name="histogram2d", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -975,16 +872,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorbar', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="colorbar", parent_name="histogram2d", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -1195,7 +1090,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -1205,17 +1100,14 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="histogram2d", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1224,15 +1116,12 @@ def __init__( class BingroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='bingroup', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="bingroup", parent_name="histogram2d", **kwargs): super(BingroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1241,19 +1130,15 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='histogram2d', - **kwargs + self, plotly_name="autocolorscale", parent_name="histogram2d", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1262,15 +1147,12 @@ def __init__( class AutobinyValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='autobiny', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="autobiny", parent_name="histogram2d", **kwargs): super(AutobinyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1279,14 +1161,11 @@ def __init__( class AutobinxValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='autobinx', parent_name='histogram2d', **kwargs - ): + def __init__(self, plotly_name="autobinx", parent_name="histogram2d", **kwargs): super(AutobinxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/__init__.py index be64ddd2711..4b79030825f 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/__init__.py @@ -1,19 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='ypad', parent_name='histogram2d.colorbar', **kwargs + self, plotly_name="ypad", parent_name="histogram2d.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,19 +19,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="histogram2d.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -43,17 +36,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='histogram2d.colorbar', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="histogram2d.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -62,16 +52,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='xpad', parent_name='histogram2d.colorbar', **kwargs + self, plotly_name="xpad", parent_name="histogram2d.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -80,19 +69,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="histogram2d.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -101,17 +86,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='histogram2d.colorbar', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="histogram2d.colorbar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -120,19 +102,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="title", parent_name="histogram2d.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -148,7 +127,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -158,19 +137,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="histogram2d.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -179,18 +154,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="histogram2d.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -199,18 +170,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="histogram2d.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -219,18 +186,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="histogram2d.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -239,18 +202,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="histogram2d.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -259,18 +218,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="histogram2d.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -279,19 +234,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="histogram2d.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -300,18 +251,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="histogram2d.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -320,20 +267,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="histogram2d.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -342,19 +285,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="histogram2d.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -363,19 +302,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='histogram2d.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="histogram2d.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -383,22 +324,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='histogram2d.colorbar', + plotly_name="tickformatstops", + parent_name="histogram2d.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -432,7 +371,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -442,18 +381,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="histogram2d.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -462,19 +397,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="histogram2d.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -495,7 +427,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -505,18 +437,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="histogram2d.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -525,18 +453,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="histogram2d.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -545,19 +469,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="histogram2d.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -566,19 +486,15 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='thicknessmode', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="thicknessmode", parent_name="histogram2d.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -587,19 +503,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="histogram2d.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -607,22 +519,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="showticksuffix", parent_name="histogram2d.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -630,22 +536,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="showtickprefix", parent_name="histogram2d.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -654,18 +554,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="showticklabels", parent_name="histogram2d.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -674,19 +570,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="showexponent", parent_name="histogram2d.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -694,21 +586,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='histogram2d.colorbar', + plotly_name="separatethousands", + parent_name="histogram2d.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -717,19 +606,15 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlinewidth', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="outlinewidth", parent_name="histogram2d.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -738,18 +623,14 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outlinecolor', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="outlinecolor", parent_name="histogram2d.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -758,19 +639,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="histogram2d.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -779,19 +656,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="histogram2d.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -800,16 +673,13 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='len', parent_name='histogram2d.colorbar', **kwargs - ): + def __init__(self, plotly_name="len", parent_name="histogram2d.colorbar", **kwargs): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -817,24 +687,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="exponentformat", parent_name="histogram2d.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -843,19 +705,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="histogram2d.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -864,19 +722,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="histogram2d.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -885,18 +739,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="histogram2d.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -905,17 +755,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='histogram2d.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="histogram2d.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/__init__.py index 1f3739a5a43..51abcb84534 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='histogram2d.colorbar.tickfont', - **kwargs + self, plotly_name="size", parent_name="histogram2d.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='histogram2d.colorbar.tickfont', + plotly_name="family", + parent_name="histogram2d.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +40,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='histogram2d.colorbar.tickfont', - **kwargs + self, plotly_name="color", parent_name="histogram2d.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/__init__.py index d6bdef447fc..ec9b74a56d5 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='histogram2d.colorbar.tickformatstop', + plotly_name="value", + parent_name="histogram2d.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='histogram2d.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="histogram2d.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='histogram2d.colorbar.tickformatstop', + plotly_name="name", + parent_name="histogram2d.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='histogram2d.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="histogram2d.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='histogram2d.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="histogram2d.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/__init__.py index e3bcabeab45..ff82cf0a5e0 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='histogram2d.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="histogram2d.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='histogram2d.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="histogram2d.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='histogram2d.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="histogram2d.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/__init__.py index 0106a41adbf..145bc2c4915 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='histogram2d.colorbar.title.font', + plotly_name="size", + parent_name="histogram2d.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='histogram2d.colorbar.title.font', + plotly_name="family", + parent_name="histogram2d.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='histogram2d.colorbar.title.font', + plotly_name="color", + parent_name="histogram2d.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/__init__.py index 1035ba0f707..ddb7914847d 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='namelengthsrc', - parent_name='histogram2d.hoverlabel', + plotly_name="namelengthsrc", + parent_name="histogram2d.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +21,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='histogram2d.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="histogram2d.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +39,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='histogram2d.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="histogram2d.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -88,7 +78,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -98,18 +88,17 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bordercolorsrc', - parent_name='histogram2d.hoverlabel', + plotly_name="bordercolorsrc", + parent_name="histogram2d.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,19 +107,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='histogram2d.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="histogram2d.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -139,18 +124,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='histogram2d.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="histogram2d.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,19 +140,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='histogram2d.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="histogram2d.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -180,18 +157,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='histogram2d.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="histogram2d.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,19 +173,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='histogram2d.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="histogram2d.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/__init__.py index 83a11542c4c..0810951a074 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='histogram2d.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="histogram2d.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='histogram2d.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="histogram2d.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,17 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='familysrc', - parent_name='histogram2d.hoverlabel.font', + plotly_name="familysrc", + parent_name="histogram2d.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +55,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='histogram2d.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="histogram2d.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +74,17 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='colorsrc', - parent_name='histogram2d.hoverlabel.font', + plotly_name="colorsrc", + parent_name="histogram2d.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +93,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='histogram2d.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="histogram2d.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2d/marker/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/marker/__init__.py index 729b407ef6f..bfbb4f0ec53 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/marker/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='histogram2d.marker', - **kwargs + self, plotly_name="colorsrc", parent_name="histogram2d.marker", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,14 +18,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='color', parent_name='histogram2d.marker', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="histogram2d.marker", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2d/stream/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/stream/__init__.py index 2262eab1987..a5a9db92f91 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='histogram2d.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="histogram2d.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,19 +18,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='histogram2d.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="histogram2d.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2d/xbins/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/xbins/__init__.py index 58ab0d6a3d6..1bbacbe0ce9 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/xbins/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/xbins/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class StartValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='start', parent_name='histogram2d.xbins', **kwargs - ): + def __init__(self, plotly_name="start", parent_name="histogram2d.xbins", **kwargs): super(StartValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -21,15 +16,12 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='size', parent_name='histogram2d.xbins', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="histogram2d.xbins", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -38,14 +30,11 @@ def __init__( class EndValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='end', parent_name='histogram2d.xbins', **kwargs - ): + def __init__(self, plotly_name="end", parent_name="histogram2d.xbins", **kwargs): super(EndValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2d/ybins/__init__.py b/packages/python/plotly/plotly/validators/histogram2d/ybins/__init__.py index 64d8052e1cc..48c8e6d3488 100644 --- a/packages/python/plotly/plotly/validators/histogram2d/ybins/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2d/ybins/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class StartValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='start', parent_name='histogram2d.ybins', **kwargs - ): + def __init__(self, plotly_name="start", parent_name="histogram2d.ybins", **kwargs): super(StartValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -21,15 +16,12 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='size', parent_name='histogram2d.ybins', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="histogram2d.ybins", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -38,14 +30,11 @@ def __init__( class EndValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='end', parent_name='histogram2d.ybins', **kwargs - ): + def __init__(self, plotly_name="end", parent_name="histogram2d.ybins", **kwargs): super(EndValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/__init__.py index a83a6a200eb..0ce590c0df5 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='zsrc', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="zsrc", parent_name="histogram2dcontour", **kwargs): super(ZsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +16,13 @@ def __init__( class ZminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='zmin', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="zmin", parent_name="histogram2dcontour", **kwargs): super(ZminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'zauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"zauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,16 +31,13 @@ def __init__( class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='zmid', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="zmid", parent_name="histogram2dcontour", **kwargs): super(ZmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -57,16 +46,13 @@ def __init__( class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='zmax', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="zmax", parent_name="histogram2dcontour", **kwargs): super(ZmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'zauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"zauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -75,18 +61,14 @@ def __init__( class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='zhoverformat', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="zhoverformat", parent_name="histogram2dcontour", **kwargs ): super(ZhoverformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -95,16 +77,13 @@ def __init__( class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='zauto', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="zauto", parent_name="histogram2dcontour", **kwargs): super(ZautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -113,15 +92,12 @@ def __init__( class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='z', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="z", parent_name="histogram2dcontour", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -130,15 +106,12 @@ def __init__( class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='ysrc', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="ysrc", parent_name="histogram2dcontour", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -147,25 +120,34 @@ def __init__( class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ycalendar', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="ycalendar", parent_name="histogram2dcontour", **kwargs ): super(YcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -175,16 +157,14 @@ def __init__( class YBinsValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='ybins', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="ybins", parent_name="histogram2dcontour", **kwargs): super(YBinsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'YBins'), + data_class_str=kwargs.pop("data_class_str", "YBins"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ end Sets the end value for the y axis bins. The last bin may not end exactly at this value, we @@ -219,7 +199,7 @@ def __init__( `start` should be a date string. For category data, `start` is based on the category serial numbers, and defaults to -0.5. -""" +""", ), **kwargs ) @@ -229,18 +209,14 @@ def __init__( class YbingroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ybingroup', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="ybingroup", parent_name="histogram2dcontour", **kwargs ): super(YbingroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -249,16 +225,13 @@ def __init__( class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='yaxis', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="yaxis", parent_name="histogram2dcontour", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -267,15 +240,12 @@ def __init__( class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='y', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="histogram2dcontour", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -284,15 +254,12 @@ def __init__( class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='xsrc', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="xsrc", parent_name="histogram2dcontour", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -301,25 +268,34 @@ def __init__( class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xcalendar', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="xcalendar", parent_name="histogram2dcontour", **kwargs ): super(XcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -329,16 +305,14 @@ def __init__( class XBinsValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='xbins', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="xbins", parent_name="histogram2dcontour", **kwargs): super(XBinsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'XBins'), + data_class_str=kwargs.pop("data_class_str", "XBins"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ end Sets the end value for the x axis bins. The last bin may not end exactly at this value, we @@ -373,7 +347,7 @@ def __init__( `start` should be a date string. For category data, `start` is based on the category serial numbers, and defaults to -0.5. -""" +""", ), **kwargs ) @@ -383,18 +357,14 @@ def __init__( class XbingroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='xbingroup', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="xbingroup", parent_name="histogram2dcontour", **kwargs ): super(XbingroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -403,16 +373,13 @@ def __init__( class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='xaxis', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="xaxis", parent_name="histogram2dcontour", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -421,15 +388,12 @@ def __init__( class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='x', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="histogram2dcontour", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -438,19 +402,15 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='visible', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="visible", parent_name="histogram2dcontour", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -459,18 +419,14 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='uirevision', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="uirevision", parent_name="histogram2dcontour", **kwargs ): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -479,16 +435,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='uid', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="uid", parent_name="histogram2dcontour", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -497,16 +450,16 @@ def __init__( class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='stream', parent_name='histogram2dcontour', **kwargs + self, plotly_name="stream", parent_name="histogram2dcontour", **kwargs ): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -516,7 +469,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -526,18 +479,14 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showscale', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="showscale", parent_name="histogram2dcontour", **kwargs ): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -546,18 +495,14 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showlegend', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="showlegend", parent_name="histogram2dcontour", **kwargs ): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -566,18 +511,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="reversescale", parent_name="histogram2dcontour", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -586,20 +527,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="opacity", parent_name="histogram2dcontour", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -608,19 +545,15 @@ def __init__( class NcontoursValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='ncontours', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="ncontours", parent_name="histogram2dcontour", **kwargs ): super(NcontoursValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -629,16 +562,15 @@ def __init__( class NbinsyValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name='nbinsy', parent_name='histogram2dcontour', **kwargs + self, plotly_name="nbinsy", parent_name="histogram2dcontour", **kwargs ): super(NbinsyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -647,16 +579,15 @@ def __init__( class NbinsxValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name='nbinsx', parent_name='histogram2dcontour', **kwargs + self, plotly_name="nbinsx", parent_name="histogram2dcontour", **kwargs ): super(NbinsxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -665,15 +596,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="histogram2dcontour", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -682,18 +610,14 @@ def __init__( class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='metasrc', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="metasrc", parent_name="histogram2dcontour", **kwargs ): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -702,16 +626,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='meta', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="meta", parent_name="histogram2dcontour", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -720,22 +641,22 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='marker', parent_name='histogram2dcontour', **kwargs + self, plotly_name="marker", parent_name="histogram2dcontour", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the aggregation data. colorsrc Sets the source reference on plot.ly for color . -""" +""", ), **kwargs ) @@ -745,16 +666,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="histogram2dcontour", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of the contour level. Has no effect if `contours.coloring` is set to @@ -769,7 +688,7 @@ def __init__( lines, where 0 corresponds to no smoothing. width Sets the line width (in px). -""" +""", ), **kwargs ) @@ -779,18 +698,14 @@ def __init__( class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='legendgroup', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="legendgroup", parent_name="histogram2dcontour", **kwargs ): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -799,15 +714,14 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='idssrc', parent_name='histogram2dcontour', **kwargs + self, plotly_name="idssrc", parent_name="histogram2dcontour", **kwargs ): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -816,16 +730,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='ids', parent_name='histogram2dcontour', **kwargs - ): + def __init__(self, plotly_name="ids", parent_name="histogram2dcontour", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -834,18 +745,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="histogram2dcontour", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -854,19 +761,15 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='hovertemplate', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="hovertemplate", parent_name="histogram2dcontour", **kwargs ): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -875,19 +778,16 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='hoverlabel', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="hoverlabel", parent_name="histogram2dcontour", **kwargs ): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -923,7 +823,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -933,18 +833,14 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hoverinfosrc', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="hoverinfosrc", parent_name="histogram2dcontour", **kwargs ): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -953,21 +849,17 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name='hoverinfo', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="hoverinfo", parent_name="histogram2dcontour", **kwargs ): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -976,23 +868,17 @@ def __init__( class HistnormValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='histnorm', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="histnorm", parent_name="histogram2dcontour", **kwargs ): super(HistnormValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - '', 'percent', 'probability', 'density', - 'probability density' - ] + "values", + ["", "percent", "probability", "density", "probability density"], ), **kwargs ) @@ -1002,19 +888,15 @@ def __init__( class HistfuncValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='histfunc', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="histfunc", parent_name="histogram2dcontour", **kwargs ): super(HistfuncValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['count', 'sum', 'avg', 'min', 'max']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["count", "sum", "avg", "min", "max"]), **kwargs ) @@ -1023,18 +905,14 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='customdatasrc', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="customdatasrc", parent_name="histogram2dcontour", **kwargs ): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1043,18 +921,14 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='customdata', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="customdata", parent_name="histogram2dcontour", **kwargs ): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1063,19 +937,16 @@ def __init__( class ContoursValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='contours', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="contours", parent_name="histogram2dcontour", **kwargs ): super(ContoursValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Contours'), + data_class_str=kwargs.pop("data_class_str", "Contours"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ coloring Determines the coloring method showing the contour values. If "fill", coloring is done @@ -1138,7 +1009,7 @@ def __init__( to be an array of two numbers where the first is the lower bound and the second is the upper bound. -""" +""", ), **kwargs ) @@ -1148,21 +1019,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="colorscale", parent_name="histogram2dcontour", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1171,19 +1036,16 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='colorbar', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="colorbar", parent_name="histogram2dcontour", **kwargs ): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -1395,7 +1257,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -1405,20 +1267,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="coloraxis", parent_name="histogram2dcontour", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1427,18 +1285,14 @@ def __init__( class BingroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='bingroup', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="bingroup", parent_name="histogram2dcontour", **kwargs ): super(BingroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1447,19 +1301,15 @@ def __init__( class AutocontourValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocontour', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="autocontour", parent_name="histogram2dcontour", **kwargs ): super(AutocontourValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1468,19 +1318,15 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="autocolorscale", parent_name="histogram2dcontour", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1489,18 +1335,14 @@ def __init__( class AutobinyValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autobiny', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="autobiny", parent_name="histogram2dcontour", **kwargs ): super(AutobinyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1509,17 +1351,13 @@ def __init__( class AutobinxValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autobinx', - parent_name='histogram2dcontour', - **kwargs + self, plotly_name="autobinx", parent_name="histogram2dcontour", **kwargs ): super(AutobinxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/__init__.py index 59b3a3465b3..f7b2866cde4 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='histogram2dcontour.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="histogram2dcontour.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='histogram2dcontour.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="histogram2dcontour.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,20 +36,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='y', - parent_name='histogram2dcontour.colorbar', - **kwargs + self, plotly_name="y", parent_name="histogram2dcontour.colorbar", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -68,19 +54,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='histogram2dcontour.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="histogram2dcontour.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -89,19 +71,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='histogram2dcontour.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="histogram2dcontour.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -110,20 +88,16 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='x', - parent_name='histogram2dcontour.colorbar', - **kwargs + self, plotly_name="x", parent_name="histogram2dcontour.colorbar", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -132,19 +106,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='histogram2dcontour.colorbar', - **kwargs + self, plotly_name="title", parent_name="histogram2dcontour.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -160,7 +131,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -170,19 +141,18 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='tickwidth', - parent_name='histogram2dcontour.colorbar', + plotly_name="tickwidth", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -191,18 +161,17 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='tickvalssrc', - parent_name='histogram2dcontour.colorbar', + plotly_name="tickvalssrc", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -211,18 +180,17 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( self, - plotly_name='tickvals', - parent_name='histogram2dcontour.colorbar', + plotly_name="tickvals", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -231,18 +199,17 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='ticktextsrc', - parent_name='histogram2dcontour.colorbar', + plotly_name="ticktextsrc", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -251,18 +218,17 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( self, - plotly_name='ticktext', - parent_name='histogram2dcontour.colorbar', + plotly_name="ticktext", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -271,18 +237,17 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='ticksuffix', - parent_name='histogram2dcontour.colorbar', + plotly_name="ticksuffix", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -291,19 +256,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='histogram2dcontour.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="histogram2dcontour.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -312,18 +273,17 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickprefix', - parent_name='histogram2dcontour.colorbar', + plotly_name="tickprefix", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -332,20 +292,19 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='tickmode', - parent_name='histogram2dcontour.colorbar', + plotly_name="tickmode", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -354,19 +313,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='histogram2dcontour.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="histogram2dcontour.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -375,19 +330,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='histogram2dcontour.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -395,22 +352,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='histogram2dcontour.colorbar', + plotly_name="tickformatstops", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -444,7 +399,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -454,18 +409,17 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickformat', - parent_name='histogram2dcontour.colorbar', + plotly_name="tickformat", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -474,19 +428,19 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickfont', - parent_name='histogram2dcontour.colorbar', + plotly_name="tickfont", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -507,7 +461,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -517,18 +471,17 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='tickcolor', - parent_name='histogram2dcontour.colorbar', + plotly_name="tickcolor", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -537,18 +490,17 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( self, - plotly_name='tickangle', - parent_name='histogram2dcontour.colorbar', + plotly_name="tickangle", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,19 +509,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='histogram2dcontour.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="histogram2dcontour.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -578,19 +526,18 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='thicknessmode', - parent_name='histogram2dcontour.colorbar', + plotly_name="thicknessmode", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -599,19 +546,18 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='thickness', - parent_name='histogram2dcontour.colorbar', + plotly_name="thickness", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -619,22 +565,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='histogram2dcontour.colorbar', + plotly_name="showticksuffix", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -642,22 +585,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='histogram2dcontour.colorbar', + plotly_name="showtickprefix", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -666,18 +606,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='histogram2dcontour.colorbar', + plotly_name="showticklabels", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -686,19 +625,18 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='showexponent', - parent_name='histogram2dcontour.colorbar', + plotly_name="showexponent", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -706,21 +644,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='histogram2dcontour.colorbar', + plotly_name="separatethousands", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -729,19 +664,18 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='outlinewidth', - parent_name='histogram2dcontour.colorbar', + plotly_name="outlinewidth", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -750,18 +684,17 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='outlinecolor', - parent_name='histogram2dcontour.colorbar', + plotly_name="outlinecolor", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -770,19 +703,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='histogram2dcontour.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="histogram2dcontour.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -791,19 +720,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='histogram2dcontour.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="histogram2dcontour.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -812,19 +737,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='len', - parent_name='histogram2dcontour.colorbar', - **kwargs + self, plotly_name="len", parent_name="histogram2dcontour.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -832,24 +753,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='histogram2dcontour.colorbar', + plotly_name="exponentformat", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -858,19 +774,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='histogram2dcontour.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="histogram2dcontour.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -879,19 +791,18 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='borderwidth', - parent_name='histogram2dcontour.colorbar', + plotly_name="borderwidth", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -900,18 +811,17 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='histogram2dcontour.colorbar', + plotly_name="bordercolor", + parent_name="histogram2dcontour.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -920,17 +830,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='histogram2dcontour.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="histogram2dcontour.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/__init__.py index d5ff6060eef..249d2dc19b6 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='histogram2dcontour.colorbar.tickfont', + plotly_name="size", + parent_name="histogram2dcontour.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='histogram2dcontour.colorbar.tickfont', + plotly_name="family", + parent_name="histogram2dcontour.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='histogram2dcontour.colorbar.tickfont', + plotly_name="color", + parent_name="histogram2dcontour.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/__init__.py index a13b2be2e34..741ee03bb99 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='histogram2dcontour.colorbar.tickformatstop', + plotly_name="value", + parent_name="histogram2dcontour.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='histogram2dcontour.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="histogram2dcontour.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='histogram2dcontour.colorbar.tickformatstop', + plotly_name="name", + parent_name="histogram2dcontour.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='histogram2dcontour.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="histogram2dcontour.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='histogram2dcontour.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="histogram2dcontour.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/__init__.py index 2b83f14f779..bf9a3823bc1 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='text', - parent_name='histogram2dcontour.colorbar.title', + plotly_name="text", + parent_name="histogram2dcontour.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +21,18 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='side', - parent_name='histogram2dcontour.colorbar.title', + plotly_name="side", + parent_name="histogram2dcontour.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +41,19 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='font', - parent_name='histogram2dcontour.colorbar.title', + plotly_name="font", + parent_name="histogram2dcontour.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +74,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/__init__.py index f553c3e72e9..d5d8648b172 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='histogram2dcontour.colorbar.title.font', + plotly_name="size", + parent_name="histogram2dcontour.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='histogram2dcontour.colorbar.title.font', + plotly_name="family", + parent_name="histogram2dcontour.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='histogram2dcontour.colorbar.title.font', + plotly_name="color", + parent_name="histogram2dcontour.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/__init__.py index 68d070bff47..c41e610ddb2 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='value', - parent_name='histogram2dcontour.contours', - **kwargs + self, plotly_name="value", parent_name="histogram2dcontour.contours", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='type', - parent_name='histogram2dcontour.contours', - **kwargs + self, plotly_name="type", parent_name="histogram2dcontour.contours", **kwargs ): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['levels', 'constraint']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["levels", "constraint"]), **kwargs ) @@ -45,19 +35,15 @@ def __init__( class StartValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='start', - parent_name='histogram2dcontour.contours', - **kwargs + self, plotly_name="start", parent_name="histogram2dcontour.contours", **kwargs ): super(StartValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -66,20 +52,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='histogram2dcontour.contours', - **kwargs + self, plotly_name="size", parent_name="histogram2dcontour.contours", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -88,18 +70,17 @@ def __init__( class ShowlinesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showlines', - parent_name='histogram2dcontour.contours', + plotly_name="showlines", + parent_name="histogram2dcontour.contours", **kwargs ): super(ShowlinesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -108,18 +89,17 @@ def __init__( class ShowlabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showlabels', - parent_name='histogram2dcontour.contours', + plotly_name="showlabels", + parent_name="histogram2dcontour.contours", **kwargs ): super(ShowlabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -128,23 +108,34 @@ def __init__( class OperationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='operation', - parent_name='histogram2dcontour.contours', + plotly_name="operation", + parent_name="histogram2dcontour.contours", **kwargs ): super(OperationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - '=', '<', '>=', '>', '<=', '[]', '()', '[)', '(]', '][', - ')(', '](', ')[' - ] + "values", + [ + "=", + "<", + ">=", + ">", + "<=", + "[]", + "()", + "[)", + "(]", + "][", + ")(", + "](", + ")[", + ], ), **kwargs ) @@ -154,18 +145,17 @@ def __init__( class LabelformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='labelformat', - parent_name='histogram2dcontour.contours', + plotly_name="labelformat", + parent_name="histogram2dcontour.contours", **kwargs ): super(LabelformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -174,19 +164,19 @@ def __init__( class LabelfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='labelfont', - parent_name='histogram2dcontour.contours', + plotly_name="labelfont", + parent_name="histogram2dcontour.contours", **kwargs ): super(LabelfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Labelfont'), + data_class_str=kwargs.pop("data_class_str", "Labelfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -207,7 +197,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -217,19 +207,15 @@ def __init__( class EndValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='end', - parent_name='histogram2dcontour.contours', - **kwargs + self, plotly_name="end", parent_name="histogram2dcontour.contours", **kwargs ): super(EndValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'^autocontour': False}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -238,18 +224,17 @@ def __init__( class ColoringValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='coloring', - parent_name='histogram2dcontour.contours', + plotly_name="coloring", + parent_name="histogram2dcontour.contours", **kwargs ): super(ColoringValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fill', 'heatmap', 'lines', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fill", "heatmap", "lines", "none"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/__init__.py index 69e2db7ab0e..9d6763e51cf 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/contours/labelfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='histogram2dcontour.contours.labelfont', + plotly_name="size", + parent_name="histogram2dcontour.contours.labelfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='histogram2dcontour.contours.labelfont', + plotly_name="family", + parent_name="histogram2dcontour.contours.labelfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='histogram2dcontour.contours.labelfont', + plotly_name="color", + parent_name="histogram2dcontour.contours.labelfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/__init__.py index 847f2237cc0..ae4ea81051e 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='namelengthsrc', - parent_name='histogram2dcontour.hoverlabel', + plotly_name="namelengthsrc", + parent_name="histogram2dcontour.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +21,19 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( self, - plotly_name='namelength', - parent_name='histogram2dcontour.hoverlabel', + plotly_name="namelength", + parent_name="histogram2dcontour.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +42,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='histogram2dcontour.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="histogram2dcontour.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -88,7 +81,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -98,18 +91,17 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bordercolorsrc', - parent_name='histogram2dcontour.hoverlabel', + plotly_name="bordercolorsrc", + parent_name="histogram2dcontour.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,19 +110,18 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='histogram2dcontour.hoverlabel', + plotly_name="bordercolor", + parent_name="histogram2dcontour.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -139,18 +130,17 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bgcolorsrc', - parent_name='histogram2dcontour.hoverlabel', + plotly_name="bgcolorsrc", + parent_name="histogram2dcontour.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,19 +149,18 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bgcolor', - parent_name='histogram2dcontour.hoverlabel', + plotly_name="bgcolor", + parent_name="histogram2dcontour.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -180,18 +169,17 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='alignsrc', - parent_name='histogram2dcontour.hoverlabel', + plotly_name="alignsrc", + parent_name="histogram2dcontour.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,19 +188,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='histogram2dcontour.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="histogram2dcontour.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/__init__.py index 845dabf64de..a4054c9d271 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/hoverlabel/font/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='sizesrc', - parent_name='histogram2dcontour.hoverlabel.font', + plotly_name="sizesrc", + parent_name="histogram2dcontour.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +21,19 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='histogram2dcontour.hoverlabel.font', + plotly_name="size", + parent_name="histogram2dcontour.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +42,17 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='familysrc', - parent_name='histogram2dcontour.hoverlabel.font', + plotly_name="familysrc", + parent_name="histogram2dcontour.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +61,20 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='histogram2dcontour.hoverlabel.font', + plotly_name="family", + parent_name="histogram2dcontour.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +83,17 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='colorsrc', - parent_name='histogram2dcontour.hoverlabel.font', + plotly_name="colorsrc", + parent_name="histogram2dcontour.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +102,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='histogram2dcontour.hoverlabel.font', + plotly_name="color", + parent_name="histogram2dcontour.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/line/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/line/__init__.py index 801eee5eff1..41c99ac5bb0 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/line/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/line/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='histogram2dcontour.line', - **kwargs + self, plotly_name="width", parent_name="histogram2dcontour.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style+colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style+colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -26,20 +20,16 @@ def __init__( class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='smoothing', - parent_name='histogram2dcontour.line', - **kwargs + self, plotly_name="smoothing", parent_name="histogram2dcontour.line", **kwargs ): super(SmoothingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 1.3), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 1.3), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -48,21 +38,16 @@ def __init__( class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, - plotly_name='dash', - parent_name='histogram2dcontour.line', - **kwargs + self, plotly_name="dash", parent_name="histogram2dcontour.line", **kwargs ): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -72,18 +57,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='histogram2dcontour.line', - **kwargs + self, plotly_name="color", parent_name="histogram2dcontour.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style+colorbars'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style+colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/marker/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/marker/__init__.py index bd6854010ba..3590df5837b 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/marker/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='histogram2dcontour.marker', - **kwargs + self, plotly_name="colorsrc", parent_name="histogram2dcontour.marker", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='color', - parent_name='histogram2dcontour.marker', - **kwargs + self, plotly_name="color", parent_name="histogram2dcontour.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/stream/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/stream/__init__.py index 5bafe1b306b..dbf30165a71 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/stream/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='token', - parent_name='histogram2dcontour.stream', - **kwargs + self, plotly_name="token", parent_name="histogram2dcontour.stream", **kwargs ): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -26,19 +20,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='histogram2dcontour.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="histogram2dcontour.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/__init__.py index 2513bb7749f..232c24dacb2 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/xbins/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class StartValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='start', - parent_name='histogram2dcontour.xbins', - **kwargs + self, plotly_name="start", parent_name="histogram2dcontour.xbins", **kwargs ): super(StartValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='size', - parent_name='histogram2dcontour.xbins', - **kwargs + self, plotly_name="size", parent_name="histogram2dcontour.xbins", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -44,17 +34,13 @@ def __init__( class EndValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='end', - parent_name='histogram2dcontour.xbins', - **kwargs + self, plotly_name="end", parent_name="histogram2dcontour.xbins", **kwargs ): super(EndValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/__init__.py b/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/__init__.py index e27765314fd..c24e96f1fc1 100644 --- a/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/__init__.py +++ b/packages/python/plotly/plotly/validators/histogram2dcontour/ybins/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class StartValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='start', - parent_name='histogram2dcontour.ybins', - **kwargs + self, plotly_name="start", parent_name="histogram2dcontour.ybins", **kwargs ): super(StartValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='size', - parent_name='histogram2dcontour.ybins', - **kwargs + self, plotly_name="size", parent_name="histogram2dcontour.ybins", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -44,17 +34,13 @@ def __init__( class EndValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='end', - parent_name='histogram2dcontour.ybins', - **kwargs + self, plotly_name="end", parent_name="histogram2dcontour.ybins", **kwargs ): super(EndValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/__init__.py b/packages/python/plotly/plotly/validators/isosurface/__init__.py index 10dde2cc5ed..acfef77fa24 100644 --- a/packages/python/plotly/plotly/validators/isosurface/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='zsrc', parent_name='isosurface', **kwargs): + def __init__(self, plotly_name="zsrc", parent_name="isosurface", **kwargs): super(ZsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,13 +16,12 @@ def __init__(self, plotly_name='zsrc', parent_name='isosurface', **kwargs): class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='z', parent_name='isosurface', **kwargs): + def __init__(self, plotly_name="z", parent_name="isosurface", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -34,13 +30,12 @@ def __init__(self, plotly_name='z', parent_name='isosurface', **kwargs): class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='isosurface', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="isosurface", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -49,13 +44,12 @@ def __init__(self, plotly_name='ysrc', parent_name='isosurface', **kwargs): class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='isosurface', **kwargs): + def __init__(self, plotly_name="y", parent_name="isosurface", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -64,13 +58,12 @@ def __init__(self, plotly_name='y', parent_name='isosurface', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='isosurface', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="isosurface", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -79,13 +72,12 @@ def __init__(self, plotly_name='xsrc', parent_name='isosurface', **kwargs): class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='isosurface', **kwargs): + def __init__(self, plotly_name="x", parent_name="isosurface", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -94,16 +86,13 @@ def __init__(self, plotly_name='x', parent_name='isosurface', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="isosurface", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -112,15 +101,12 @@ def __init__( class ValuesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='valuesrc', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="valuesrc", parent_name="isosurface", **kwargs): super(ValuesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -129,15 +115,12 @@ def __init__( class ValueValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='value', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="value", parent_name="isosurface", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -146,15 +129,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="isosurface", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -163,14 +143,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='isosurface', **kwargs): + def __init__(self, plotly_name="uid", parent_name="isosurface", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -179,15 +158,12 @@ def __init__(self, plotly_name='uid', parent_name='isosurface', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="isosurface", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -196,14 +172,13 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='isosurface', **kwargs): + def __init__(self, plotly_name="text", parent_name="isosurface", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -212,16 +187,14 @@ def __init__(self, plotly_name='text', parent_name='isosurface', **kwargs): class SurfaceValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='surface', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="surface", parent_name="isosurface", **kwargs): super(SurfaceValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Surface'), + data_class_str=kwargs.pop("data_class_str", "Surface"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ count Sets the number of iso-surfaces between minimum and maximum iso-values. By default this value @@ -248,7 +221,7 @@ def __init__( show Hides/displays surfaces between minimum and maximum iso-values. -""" +""", ), **kwargs ) @@ -258,16 +231,14 @@ def __init__( class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="isosurface", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -277,7 +248,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -287,16 +258,14 @@ def __init__( class SpaceframeValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='spaceframe', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="spaceframe", parent_name="isosurface", **kwargs): super(SpaceframeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Spaceframe'), + data_class_str=kwargs.pop("data_class_str", "Spaceframe"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fill Sets the fill ratio of the `spaceframe` elements. The default fill value is 0.15 @@ -310,7 +279,7 @@ def __init__( minimum and maximum iso-values. Often useful when either caps or surfaces are disabled or filled with values less than 1. -""" +""", ), **kwargs ) @@ -320,16 +289,14 @@ def __init__( class SlicesValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='slices', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="slices", parent_name="isosurface", **kwargs): super(SlicesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Slices'), + data_class_str=kwargs.pop("data_class_str", "Slices"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x plotly.graph_objs.isosurface.slices.X instance or dict with compatible properties @@ -339,7 +306,7 @@ def __init__( z plotly.graph_objs.isosurface.slices.Z instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -349,15 +316,12 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="isosurface", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -366,16 +330,13 @@ def __init__( class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='scene', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="scene", parent_name="isosurface", **kwargs): super(SceneValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'scene'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "scene"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -384,15 +345,12 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='reversescale', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="reversescale", parent_name="isosurface", **kwargs): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -401,17 +359,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="isosurface", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -420,13 +375,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='isosurface', **kwargs): + def __init__(self, plotly_name="name", parent_name="isosurface", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -435,15 +389,12 @@ def __init__(self, plotly_name='name', parent_name='isosurface', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="isosurface", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -452,14 +403,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='isosurface', **kwargs): + def __init__(self, plotly_name="meta", parent_name="isosurface", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -468,16 +418,14 @@ def __init__(self, plotly_name='meta', parent_name='isosurface', **kwargs): class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='lightposition', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="lightposition", parent_name="isosurface", **kwargs): super(LightpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Lightposition'), + data_class_str=kwargs.pop("data_class_str", "Lightposition"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x Numeric vector, representing the X coordinate for each vertex. @@ -487,7 +435,7 @@ def __init__( z Numeric vector, representing the Z coordinate for each vertex. -""" +""", ), **kwargs ) @@ -497,16 +445,14 @@ def __init__( class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='lighting', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="lighting", parent_name="isosurface", **kwargs): super(LightingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Lighting'), + data_class_str=kwargs.pop("data_class_str", "Lighting"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ ambient Ambient light increases overall color visibility but can wash out the image. @@ -531,7 +477,7 @@ def __init__( vertexnormalsepsilon Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry. -""" +""", ), **kwargs ) @@ -541,15 +487,12 @@ def __init__( class IsominValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='isomin', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="isomin", parent_name="isosurface", **kwargs): super(IsominValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -558,15 +501,12 @@ def __init__( class IsomaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='isomax', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="isomax", parent_name="isosurface", **kwargs): super(IsomaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -575,15 +515,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="isosurface", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -592,14 +529,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='isosurface', **kwargs): + def __init__(self, plotly_name="ids", parent_name="isosurface", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -608,15 +544,12 @@ def __init__(self, plotly_name='ids', parent_name='isosurface', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="isosurface", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -625,16 +558,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="isosurface", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -643,18 +573,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='isosurface', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="isosurface", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -663,16 +589,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="isosurface", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -681,16 +604,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="isosurface", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -726,7 +647,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -736,15 +657,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="isosurface", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -753,18 +671,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="isosurface", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -773,15 +688,12 @@ def __init__( class FlatshadingValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='flatshading', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="flatshading", parent_name="isosurface", **kwargs): super(FlatshadingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -790,15 +702,12 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="isosurface", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -807,15 +716,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="isosurface", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -824,16 +730,14 @@ def __init__( class ContourValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='contour', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="contour", parent_name="isosurface", **kwargs): super(ContourValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Contour'), + data_class_str=kwargs.pop("data_class_str", "Contour"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of the contour lines. show @@ -841,7 +745,7 @@ def __init__( on hover width Sets the width of the contour lines. -""" +""", ), **kwargs ) @@ -851,18 +755,13 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - - def __init__( - self, plotly_name='colorscale', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="colorscale", parent_name="isosurface", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -871,16 +770,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorbar', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="colorbar", parent_name="isosurface", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -1090,7 +987,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -1100,17 +997,14 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="isosurface", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1119,14 +1013,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmin', parent_name='isosurface', **kwargs): + def __init__(self, plotly_name="cmin", parent_name="isosurface", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1135,14 +1028,13 @@ def __init__(self, plotly_name='cmin', parent_name='isosurface', **kwargs): class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmid', parent_name='isosurface', **kwargs): + def __init__(self, plotly_name="cmid", parent_name="isosurface", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1151,14 +1043,13 @@ def __init__(self, plotly_name='cmid', parent_name='isosurface', **kwargs): class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmax', parent_name='isosurface', **kwargs): + def __init__(self, plotly_name="cmax", parent_name="isosurface", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1167,16 +1058,13 @@ def __init__(self, plotly_name='cmax', parent_name='isosurface', **kwargs): class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='isosurface', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="isosurface", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1185,14 +1073,14 @@ def __init__( class CapsValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='caps', parent_name='isosurface', **kwargs): + def __init__(self, plotly_name="caps", parent_name="isosurface", **kwargs): super(CapsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Caps'), + data_class_str=kwargs.pop("data_class_str", "Caps"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x plotly.graph_objs.isosurface.caps.X instance or dict with compatible properties @@ -1202,7 +1090,7 @@ def __init__(self, plotly_name='caps', parent_name='isosurface', **kwargs): z plotly.graph_objs.isosurface.caps.Z instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -1212,15 +1100,14 @@ def __init__(self, plotly_name='caps', parent_name='isosurface', **kwargs): class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='autocolorscale', parent_name='isosurface', **kwargs + self, plotly_name="autocolorscale", parent_name="isosurface", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/caps/__init__.py b/packages/python/plotly/plotly/validators/isosurface/caps/__init__.py index 4f5ba519901..286402b58d6 100644 --- a/packages/python/plotly/plotly/validators/isosurface/caps/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/caps/__init__.py @@ -1,19 +1,15 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='z', parent_name='isosurface.caps', **kwargs - ): + def __init__(self, plotly_name="z", parent_name="isosurface.caps", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Z'), + data_class_str=kwargs.pop("data_class_str", "Z"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fill Sets the fill ratio of the `caps`. The default fill value of the `caps` is 1 meaning that they @@ -27,7 +23,7 @@ def __init__( other hand Applying a `fill` ratio less than one would allow the creation of openings parallel to the edges. -""" +""", ), **kwargs ) @@ -37,16 +33,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='y', parent_name='isosurface.caps', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="isosurface.caps", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Y'), + data_class_str=kwargs.pop("data_class_str", "Y"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fill Sets the fill ratio of the `caps`. The default fill value of the `caps` is 1 meaning that they @@ -60,7 +54,7 @@ def __init__( other hand Applying a `fill` ratio less than one would allow the creation of openings parallel to the edges. -""" +""", ), **kwargs ) @@ -70,16 +64,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='x', parent_name='isosurface.caps', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="isosurface.caps", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'X'), + data_class_str=kwargs.pop("data_class_str", "X"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fill Sets the fill ratio of the `caps`. The default fill value of the `caps` is 1 meaning that they @@ -93,7 +85,7 @@ def __init__( other hand Applying a `fill` ratio less than one would allow the creation of openings parallel to the edges. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/caps/x/__init__.py b/packages/python/plotly/plotly/validators/isosurface/caps/x/__init__.py index c06213df54f..f45b43dcaba 100644 --- a/packages/python/plotly/plotly/validators/isosurface/caps/x/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/caps/x/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='isosurface.caps.x', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="isosurface.caps.x", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +16,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fill', parent_name='isosurface.caps.x', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="isosurface.caps.x", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/caps/y/__init__.py b/packages/python/plotly/plotly/validators/isosurface/caps/y/__init__.py index 75b5bc93097..464ff109baf 100644 --- a/packages/python/plotly/plotly/validators/isosurface/caps/y/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/caps/y/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='isosurface.caps.y', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="isosurface.caps.y", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +16,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fill', parent_name='isosurface.caps.y', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="isosurface.caps.y", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/caps/z/__init__.py b/packages/python/plotly/plotly/validators/isosurface/caps/z/__init__.py index 9d537585045..e9ea4aaa7bb 100644 --- a/packages/python/plotly/plotly/validators/isosurface/caps/z/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/caps/z/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='isosurface.caps.z', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="isosurface.caps.z", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +16,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fill', parent_name='isosurface.caps.z', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="isosurface.caps.z", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/__init__.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/__init__.py index faeaa10cc20..9a6706c84d4 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ypad', parent_name='isosurface.colorbar', **kwargs - ): + def __init__(self, plotly_name="ypad", parent_name="isosurface.colorbar", **kwargs): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,19 +17,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="isosurface.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -43,17 +34,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='isosurface.colorbar', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="isosurface.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -62,16 +50,13 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='xpad', parent_name='isosurface.colorbar', **kwargs - ): + def __init__(self, plotly_name="xpad", parent_name="isosurface.colorbar", **kwargs): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -80,19 +65,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="isosurface.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -101,17 +82,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='isosurface.colorbar', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="isosurface.colorbar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -120,16 +98,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name='title', parent_name='isosurface.colorbar', **kwargs + self, plotly_name="title", parent_name="isosurface.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -145,7 +123,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -155,19 +133,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="isosurface.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -176,18 +150,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="isosurface.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -196,18 +166,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="isosurface.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -216,18 +182,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="isosurface.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -236,18 +198,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="isosurface.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -256,18 +214,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="isosurface.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -276,16 +230,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='ticks', parent_name='isosurface.colorbar', **kwargs + self, plotly_name="ticks", parent_name="isosurface.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -294,18 +247,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="isosurface.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -314,20 +263,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="isosurface.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -336,19 +281,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="isosurface.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -357,19 +298,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='isosurface.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="isosurface.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -377,22 +320,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="tickformatstops", parent_name="isosurface.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -426,7 +364,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -436,18 +374,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="isosurface.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -456,19 +390,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="isosurface.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -489,7 +420,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -499,18 +430,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="isosurface.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -519,18 +446,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="isosurface.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -539,16 +462,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name='tick0', parent_name='isosurface.colorbar', **kwargs + self, plotly_name="tick0", parent_name="isosurface.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,19 +479,15 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='thicknessmode', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="thicknessmode", parent_name="isosurface.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -578,19 +496,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="isosurface.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -598,22 +512,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="showticksuffix", parent_name="isosurface.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -621,22 +529,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="showtickprefix", parent_name="isosurface.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -645,18 +547,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="showticklabels", parent_name="isosurface.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -665,19 +563,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="showexponent", parent_name="isosurface.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -685,21 +579,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='isosurface.colorbar', + plotly_name="separatethousands", + parent_name="isosurface.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -708,19 +599,15 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlinewidth', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="outlinewidth", parent_name="isosurface.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -729,18 +616,14 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outlinecolor', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="outlinecolor", parent_name="isosurface.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -749,19 +632,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="isosurface.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -770,19 +649,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="isosurface.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -791,16 +666,13 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='len', parent_name='isosurface.colorbar', **kwargs - ): + def __init__(self, plotly_name="len", parent_name="isosurface.colorbar", **kwargs): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -808,24 +680,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="exponentformat", parent_name="isosurface.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -834,16 +698,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name='dtick', parent_name='isosurface.colorbar', **kwargs + self, plotly_name="dtick", parent_name="isosurface.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -852,19 +715,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="isosurface.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -873,18 +732,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="isosurface.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -893,17 +748,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='isosurface.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="isosurface.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/__init__.py index 45fd67126d1..9c56ecdcbb0 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='isosurface.colorbar.tickfont', - **kwargs + self, plotly_name="size", parent_name="isosurface.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='isosurface.colorbar.tickfont', - **kwargs + self, plotly_name="family", parent_name="isosurface.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='isosurface.colorbar.tickfont', - **kwargs + self, plotly_name="color", parent_name="isosurface.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/__init__.py index f68ba700dbb..fb83620baa0 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='isosurface.colorbar.tickformatstop', + plotly_name="value", + parent_name="isosurface.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='isosurface.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="isosurface.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='isosurface.colorbar.tickformatstop', + plotly_name="name", + parent_name="isosurface.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='isosurface.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="isosurface.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='isosurface.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="isosurface.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'calc' - }, { - 'valType': 'any', - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "any", "editType": "calc"}, + {"valType": "any", "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/__init__.py index c51e0dd3ab7..5b919440716 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='isosurface.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="isosurface.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='isosurface.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="isosurface.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='isosurface.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="isosurface.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/__init__.py index 0353a0e6204..6bcdb8688cf 100644 --- a/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/colorbar/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='isosurface.colorbar.title.font', - **kwargs + self, plotly_name="size", parent_name="isosurface.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='isosurface.colorbar.title.font', + plotly_name="family", + parent_name="isosurface.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +40,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='isosurface.colorbar.title.font', + plotly_name="color", + parent_name="isosurface.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/contour/__init__.py b/packages/python/plotly/plotly/validators/isosurface/contour/__init__.py index 7203fcfeda6..d732028d07c 100644 --- a/packages/python/plotly/plotly/validators/isosurface/contour/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/contour/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='isosurface.contour', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="isosurface.contour", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 16), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 16), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,15 +18,12 @@ def __init__( class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='isosurface.contour', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="isosurface.contour", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -40,14 +32,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='isosurface.contour', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="isosurface.contour", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/__init__.py index ff66e6d91b8..2acb190ab3d 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='isosurface.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="isosurface.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='isosurface.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="isosurface.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +36,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='isosurface.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="isosurface.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -88,7 +75,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -98,18 +85,17 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bordercolorsrc', - parent_name='isosurface.hoverlabel', + plotly_name="bordercolorsrc", + parent_name="isosurface.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,19 +104,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='isosurface.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="isosurface.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -139,18 +121,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='isosurface.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="isosurface.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,19 +137,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='isosurface.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="isosurface.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -180,18 +154,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='isosurface.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="isosurface.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,19 +170,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='isosurface.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="isosurface.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/__init__.py index 1d14f870180..57b7a8c7636 100644 --- a/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='isosurface.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="isosurface.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='isosurface.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="isosurface.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,17 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='familysrc', - parent_name='isosurface.hoverlabel.font', + plotly_name="familysrc", + parent_name="isosurface.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +55,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='isosurface.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="isosurface.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +74,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='isosurface.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="isosurface.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +90,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='isosurface.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="isosurface.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/lighting/__init__.py b/packages/python/plotly/plotly/validators/isosurface/lighting/__init__.py index 6940704dec9..9bb5bb4702d 100644 --- a/packages/python/plotly/plotly/validators/isosurface/lighting/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/lighting/__init__.py @@ -1,25 +1,20 @@ - - import _plotly_utils.basevalidators -class VertexnormalsepsilonValidator( - _plotly_utils.basevalidators.NumberValidator -): - +class VertexnormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, - plotly_name='vertexnormalsepsilon', - parent_name='isosurface.lighting', + plotly_name="vertexnormalsepsilon", + parent_name="isosurface.lighting", **kwargs ): super(VertexnormalsepsilonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -28,20 +23,16 @@ def __init__( class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='specular', - parent_name='isosurface.lighting', - **kwargs + self, plotly_name="specular", parent_name="isosurface.lighting", **kwargs ): super(SpecularValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 2), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 2), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -50,20 +41,16 @@ def __init__( class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='roughness', - parent_name='isosurface.lighting', - **kwargs + self, plotly_name="roughness", parent_name="isosurface.lighting", **kwargs ): super(RoughnessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -72,20 +59,16 @@ def __init__( class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='fresnel', - parent_name='isosurface.lighting', - **kwargs + self, plotly_name="fresnel", parent_name="isosurface.lighting", **kwargs ): super(FresnelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 5), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 5), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -93,23 +76,20 @@ def __init__( import _plotly_utils.basevalidators -class FacenormalsepsilonValidator( - _plotly_utils.basevalidators.NumberValidator -): - +class FacenormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, - plotly_name='facenormalsepsilon', - parent_name='isosurface.lighting', + plotly_name="facenormalsepsilon", + parent_name="isosurface.lighting", **kwargs ): super(FacenormalsepsilonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -118,20 +98,16 @@ def __init__( class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='diffuse', - parent_name='isosurface.lighting', - **kwargs + self, plotly_name="diffuse", parent_name="isosurface.lighting", **kwargs ): super(DiffuseValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -140,19 +116,15 @@ def __init__( class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ambient', - parent_name='isosurface.lighting', - **kwargs + self, plotly_name="ambient", parent_name="isosurface.lighting", **kwargs ): super(AmbientValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/lightposition/__init__.py b/packages/python/plotly/plotly/validators/isosurface/lightposition/__init__.py index 63557d37d9b..e498852bffd 100644 --- a/packages/python/plotly/plotly/validators/isosurface/lightposition/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/lightposition/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='z', - parent_name='isosurface.lightposition', - **kwargs + self, plotly_name="z", parent_name="isosurface.lightposition", **kwargs ): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) @@ -26,20 +20,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='y', - parent_name='isosurface.lightposition', - **kwargs + self, plotly_name="y", parent_name="isosurface.lightposition", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) @@ -48,19 +38,15 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='x', - parent_name='isosurface.lightposition', - **kwargs + self, plotly_name="x", parent_name="isosurface.lightposition", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/__init__.py b/packages/python/plotly/plotly/validators/isosurface/slices/__init__.py index 629bc619752..be2f796e9f3 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/__init__.py @@ -1,19 +1,15 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='z', parent_name='isosurface.slices', **kwargs - ): + def __init__(self, plotly_name="z", parent_name="isosurface.slices", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Z'), + data_class_str=kwargs.pop("data_class_str", "Z"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fill Sets the fill ratio of the `slices`. The default fill value of the `slices` is 1 meaning @@ -32,7 +28,7 @@ def __init__( show Determines whether or not slice planes about the z dimension are drawn. -""" +""", ), **kwargs ) @@ -42,16 +38,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='y', parent_name='isosurface.slices', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="isosurface.slices", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Y'), + data_class_str=kwargs.pop("data_class_str", "Y"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fill Sets the fill ratio of the `slices`. The default fill value of the `slices` is 1 meaning @@ -70,7 +64,7 @@ def __init__( show Determines whether or not slice planes about the y dimension are drawn. -""" +""", ), **kwargs ) @@ -80,16 +74,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='x', parent_name='isosurface.slices', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="isosurface.slices", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'X'), + data_class_str=kwargs.pop("data_class_str", "X"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fill Sets the fill ratio of the `slices`. The default fill value of the `slices` is 1 meaning @@ -108,7 +100,7 @@ def __init__( show Determines whether or not slice planes about the x dimension are drawn. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/x/__init__.py b/packages/python/plotly/plotly/validators/isosurface/slices/x/__init__.py index a075f48dae5..26f5d09f8d4 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/x/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/x/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='isosurface.slices.x', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="isosurface.slices.x", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,18 +16,14 @@ def __init__( class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='locationssrc', - parent_name='isosurface.slices.x', - **kwargs + self, plotly_name="locationssrc", parent_name="isosurface.slices.x", **kwargs ): super(LocationssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -41,18 +32,14 @@ def __init__( class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='locations', - parent_name='isosurface.slices.x', - **kwargs + self, plotly_name="locations", parent_name="isosurface.slices.x", **kwargs ): super(LocationsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -61,16 +48,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fill', parent_name='isosurface.slices.x', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="isosurface.slices.x", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/y/__init__.py b/packages/python/plotly/plotly/validators/isosurface/slices/y/__init__.py index f6cc41f1620..ffdce1304e3 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/y/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/y/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='isosurface.slices.y', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="isosurface.slices.y", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,18 +16,14 @@ def __init__( class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='locationssrc', - parent_name='isosurface.slices.y', - **kwargs + self, plotly_name="locationssrc", parent_name="isosurface.slices.y", **kwargs ): super(LocationssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -41,18 +32,14 @@ def __init__( class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='locations', - parent_name='isosurface.slices.y', - **kwargs + self, plotly_name="locations", parent_name="isosurface.slices.y", **kwargs ): super(LocationsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -61,16 +48,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fill', parent_name='isosurface.slices.y', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="isosurface.slices.y", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/slices/z/__init__.py b/packages/python/plotly/plotly/validators/isosurface/slices/z/__init__.py index e76823b8fa9..dd10c8a9d78 100644 --- a/packages/python/plotly/plotly/validators/isosurface/slices/z/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/slices/z/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='isosurface.slices.z', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="isosurface.slices.z", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,18 +16,14 @@ def __init__( class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='locationssrc', - parent_name='isosurface.slices.z', - **kwargs + self, plotly_name="locationssrc", parent_name="isosurface.slices.z", **kwargs ): super(LocationssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -41,18 +32,14 @@ def __init__( class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='locations', - parent_name='isosurface.slices.z', - **kwargs + self, plotly_name="locations", parent_name="isosurface.slices.z", **kwargs ): super(LocationsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -61,16 +48,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fill', parent_name='isosurface.slices.z', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="isosurface.slices.z", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/spaceframe/__init__.py b/packages/python/plotly/plotly/validators/isosurface/spaceframe/__init__.py index 40b58e7ec5b..a351901cd83 100644 --- a/packages/python/plotly/plotly/validators/isosurface/spaceframe/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/spaceframe/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='show', - parent_name='isosurface.spaceframe', - **kwargs + self, plotly_name="show", parent_name="isosurface.spaceframe", **kwargs ): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='fill', - parent_name='isosurface.spaceframe', - **kwargs + self, plotly_name="fill", parent_name="isosurface.spaceframe", **kwargs ): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/stream/__init__.py b/packages/python/plotly/plotly/validators/isosurface/stream/__init__.py index 6bd33b2072b..e3d9c605e07 100644 --- a/packages/python/plotly/plotly/validators/isosurface/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='isosurface.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="isosurface.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,19 +18,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='isosurface.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="isosurface.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/isosurface/surface/__init__.py b/packages/python/plotly/plotly/validators/isosurface/surface/__init__.py index 1fd0b90289e..8ad01c2fc5f 100644 --- a/packages/python/plotly/plotly/validators/isosurface/surface/__init__.py +++ b/packages/python/plotly/plotly/validators/isosurface/surface/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='isosurface.surface', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="isosurface.surface", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,20 +16,16 @@ def __init__( class PatternValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name='pattern', - parent_name='isosurface.surface', - **kwargs + self, plotly_name="pattern", parent_name="isosurface.surface", **kwargs ): super(PatternValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['all', 'odd', 'even']), - flags=kwargs.pop('flags', ['A', 'B', 'C', 'D', 'E']), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["all", "odd", "even"]), + flags=kwargs.pop("flags", ["A", "B", "C", "D", "E"]), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,17 +34,14 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fill', parent_name='isosurface.surface', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="isosurface.surface", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -62,15 +50,12 @@ def __init__( class CountValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='count', parent_name='isosurface.surface', **kwargs - ): + def __init__(self, plotly_name="count", parent_name="isosurface.surface", **kwargs): super(CountValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/__init__.py b/packages/python/plotly/plotly/validators/layout/__init__.py index 236d42045e3..3af0970a111 100644 --- a/packages/python/plotly/plotly/validators/layout/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/__init__.py @@ -1,17 +1,15 @@ - - import _plotly_utils.basevalidators class YAxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='yaxis', parent_name='layout', **kwargs): + def __init__(self, plotly_name="yaxis", parent_name="layout", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'YAxis'), + data_class_str=kwargs.pop("data_class_str", "YAxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ anchor If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to the @@ -421,7 +419,7 @@ def __init__(self, plotly_name='yaxis', parent_name='layout', **kwargs): Sets the line color of the zero line. zerolinewidth Sets the width (in px) of the zero line. -""" +""", ), **kwargs ) @@ -431,14 +429,14 @@ def __init__(self, plotly_name='yaxis', parent_name='layout', **kwargs): class XAxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='xaxis', parent_name='layout', **kwargs): + def __init__(self, plotly_name="xaxis", parent_name="layout", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'XAxis'), + data_class_str=kwargs.pop("data_class_str", "XAxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ anchor If set to an opposite-letter axis id (e.g. `x2`, `y`), this axis is bound to the @@ -854,7 +852,7 @@ def __init__(self, plotly_name='xaxis', parent_name='layout', **kwargs): Sets the line color of the zero line. zerolinewidth Sets the width (in px) of the zero line. -""" +""", ), **kwargs ) @@ -864,14 +862,13 @@ def __init__(self, plotly_name='xaxis', parent_name='layout', **kwargs): class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='width', parent_name='layout', **kwargs): + def __init__(self, plotly_name="width", parent_name="layout", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 10), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 10), + role=kwargs.pop("role", "info"), **kwargs ) @@ -880,16 +877,13 @@ def __init__(self, plotly_name='width', parent_name='layout', **kwargs): class WaterfallmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='waterfallmode', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="waterfallmode", parent_name="layout", **kwargs): super(WaterfallmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['group', 'overlay']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["group", "overlay"]), **kwargs ) @@ -898,17 +892,14 @@ def __init__( class WaterfallgroupgapValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='waterfallgroupgap', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="waterfallgroupgap", parent_name="layout", **kwargs): super(WaterfallgroupgapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -917,17 +908,14 @@ def __init__( class WaterfallgapValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='waterfallgap', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="waterfallgap", parent_name="layout", **kwargs): super(WaterfallgapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -936,16 +924,13 @@ def __init__( class ViolinmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='violinmode', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="violinmode", parent_name="layout", **kwargs): super(ViolinmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['group', 'overlay']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["group", "overlay"]), **kwargs ) @@ -954,17 +939,14 @@ def __init__( class ViolingroupgapValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='violingroupgap', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="violingroupgap", parent_name="layout", **kwargs): super(ViolingroupgapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -973,17 +955,14 @@ def __init__( class ViolingapValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='violingap', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="violingap", parent_name="layout", **kwargs): super(ViolingapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -992,16 +971,18 @@ def __init__( class UpdatemenuValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='updatemenudefaults', parent_name='layout', **kwargs + self, plotly_name="updatemenudefaults", parent_name="layout", **kwargs ): super(UpdatemenuValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Updatemenu'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Updatemenu"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -1009,19 +990,15 @@ def __init__( import _plotly_utils.basevalidators -class UpdatemenusValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - - def __init__( - self, plotly_name='updatemenus', parent_name='layout', **kwargs - ): +class UpdatemenusValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + def __init__(self, plotly_name="updatemenus", parent_name="layout", **kwargs): super(UpdatemenusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Updatemenu'), + data_class_str=kwargs.pop("data_class_str", "Updatemenu"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ active Determines which button (by index starting from 0) is considered active. @@ -1100,7 +1077,7 @@ def __init__( This anchor binds the `y` position to the "top", "middle" or "bottom" of the range selector. -""" +""", ), **kwargs ) @@ -1110,15 +1087,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="layout", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1127,16 +1101,14 @@ def __init__( class TransitionValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='transition', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="transition", parent_name="layout", **kwargs): super(TransitionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Transition'), + data_class_str=kwargs.pop("data_class_str", "Transition"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ duration The duration of the transition, in milliseconds. If equal to zero, updates are @@ -1147,7 +1119,7 @@ def __init__( Determines whether the figure's layout or traces smoothly transitions during updates that make both traces and layout change. -""" +""", ), **kwargs ) @@ -1157,14 +1129,14 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - - def __init__(self, plotly_name='title', parent_name='layout', **kwargs): + def __init__(self, plotly_name="title", parent_name="layout", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets the title font. Note that the title's font used to be customized by the now deprecated @@ -1217,7 +1189,7 @@ def __init__(self, plotly_name='title', parent_name='layout', **kwargs): Sets the container `y` refers to. "container" spans the entire `height` of the plot. "paper" refers to the height of the plotting area only. -""" +""", ), **kwargs ) @@ -1227,14 +1199,14 @@ def __init__(self, plotly_name='title', parent_name='layout', **kwargs): class TernaryValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='ternary', parent_name='layout', **kwargs): + def __init__(self, plotly_name="ternary", parent_name="layout", **kwargs): super(TernaryValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Ternary'), + data_class_str=kwargs.pop("data_class_str", "Ternary"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ aaxis plotly.graph_objs.layout.ternary.Aaxis instance or dict with compatible properties @@ -1257,7 +1229,7 @@ def __init__(self, plotly_name='ternary', parent_name='layout', **kwargs): axis `min` and `title`, if not overridden in the individual axes. Defaults to `layout.uirevision`. -""" +""", ), **kwargs ) @@ -1267,21 +1239,21 @@ def __init__(self, plotly_name='ternary', parent_name='layout', **kwargs): class TemplateValidator(_plotly_utils.basevalidators.BaseTemplateValidator): - - def __init__(self, plotly_name='template', parent_name='layout', **kwargs): + def __init__(self, plotly_name="template", parent_name="layout", **kwargs): super(TemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Template'), + data_class_str=kwargs.pop("data_class_str", "Template"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ data plotly.graph_objs.layout.template.Data instance or dict with compatible properties layout plotly.graph_objs.layout.template.Layout instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -1290,18 +1262,13 @@ def __init__(self, plotly_name='template', parent_name='layout', **kwargs): import _plotly_utils.basevalidators -class SunburstcolorwayValidator( - _plotly_utils.basevalidators.ColorlistValidator -): - - def __init__( - self, plotly_name='sunburstcolorway', parent_name='layout', **kwargs - ): +class SunburstcolorwayValidator(_plotly_utils.basevalidators.ColorlistValidator): + def __init__(self, plotly_name="sunburstcolorway", parent_name="layout", **kwargs): super(SunburstcolorwayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1310,16 +1277,13 @@ def __init__( class SpikedistanceValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='spikedistance', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="spikedistance", parent_name="layout", **kwargs): super(SpikedistanceValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1328,16 +1292,16 @@ def __init__( class SliderValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='sliderdefaults', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="sliderdefaults", parent_name="layout", **kwargs): super(SliderValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Slider'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Slider"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -1346,14 +1310,14 @@ def __init__( class SlidersValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - - def __init__(self, plotly_name='sliders', parent_name='layout', **kwargs): + def __init__(self, plotly_name="sliders", parent_name="layout", **kwargs): super(SlidersValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Slider'), + data_class_str=kwargs.pop("data_class_str", "Slider"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ active Determines which button (by index starting from 0) is considered active. @@ -1445,7 +1409,7 @@ def __init__(self, plotly_name='sliders', parent_name='layout', **kwargs): Sets the slider's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the range selector. -""" +""", ), **kwargs ) @@ -1455,15 +1419,12 @@ def __init__(self, plotly_name='sliders', parent_name='layout', **kwargs): class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="layout", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "legend"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1472,16 +1433,16 @@ def __init__( class ShapeValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='shapedefaults', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="shapedefaults", parent_name="layout", **kwargs): super(ShapeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Shape'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Shape"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -1490,14 +1451,14 @@ def __init__( class ShapesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - - def __init__(self, plotly_name='shapes', parent_name='layout', **kwargs): + def __init__(self, plotly_name="shapes", parent_name="layout", **kwargs): super(ShapesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Shape'), + data_class_str=kwargs.pop("data_class_str", "Shape"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fillcolor Sets the color filling the shape's interior. layer @@ -1644,7 +1605,7 @@ def __init__(self, plotly_name='shapes', parent_name='layout', **kwargs): relative to `yanchor`. This way, the shape can have a fixed height while maintaining a position relative to data or plot fraction. -""" +""", ), **kwargs ) @@ -1654,15 +1615,12 @@ def __init__(self, plotly_name='shapes', parent_name='layout', **kwargs): class SeparatorsValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='separators', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="separators", parent_name="layout", **kwargs): super(SeparatorsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1671,15 +1629,12 @@ def __init__( class SelectionrevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='selectionrevision', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="selectionrevision", parent_name="layout", **kwargs): super(SelectionrevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1687,19 +1642,14 @@ def __init__( import _plotly_utils.basevalidators -class SelectdirectionValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - - def __init__( - self, plotly_name='selectdirection', parent_name='layout', **kwargs - ): +class SelectdirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + def __init__(self, plotly_name="selectdirection", parent_name="layout", **kwargs): super(SelectdirectionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['h', 'v', 'd', 'any']), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["h", "v", "d", "any"]), **kwargs ) @@ -1708,14 +1658,14 @@ def __init__( class SceneValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='scene', parent_name='layout', **kwargs): + def __init__(self, plotly_name="scene", parent_name="layout", **kwargs): super(SceneValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scene'), + data_class_str=kwargs.pop("data_class_str", "Scene"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ annotations plotly.graph_objs.layout.scene.Annotation instance or dict with compatible properties @@ -1766,7 +1716,7 @@ def __init__(self, plotly_name='scene', parent_name='layout', **kwargs): zaxis plotly.graph_objs.layout.scene.ZAxis instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -1776,16 +1726,14 @@ def __init__(self, plotly_name='scene', parent_name='layout', **kwargs): class RadialAxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='radialaxis', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="radialaxis", parent_name="layout", **kwargs): super(RadialAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'RadialAxis'), + data_class_str=kwargs.pop("data_class_str", "RadialAxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ domain Polar chart subplots are not supported yet. This key has currently no effect. @@ -1832,7 +1780,7 @@ def __init__( Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not this axis will be visible. -""" +""", ), **kwargs ) @@ -1842,14 +1790,14 @@ def __init__( class PolarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='polar', parent_name='layout', **kwargs): + def __init__(self, plotly_name="polar", parent_name="layout", **kwargs): super(PolarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Polar'), + data_class_str=kwargs.pop("data_class_str", "Polar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ angularaxis plotly.graph_objs.layout.polar.AngularAxis instance or dict with compatible properties @@ -1896,7 +1844,7 @@ def __init__(self, plotly_name='polar', parent_name='layout', **kwargs): axis attributes, if not overridden in the individual axes. Defaults to `layout.uirevision`. -""" +""", ), **kwargs ) @@ -1906,15 +1854,12 @@ def __init__(self, plotly_name='polar', parent_name='layout', **kwargs): class PlotBgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='plot_bgcolor', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="plot_bgcolor", parent_name="layout", **kwargs): super(PlotBgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'layoutstyle'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "layoutstyle"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1923,15 +1868,12 @@ def __init__( class PiecolorwayValidator(_plotly_utils.basevalidators.ColorlistValidator): - - def __init__( - self, plotly_name='piecolorway', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="piecolorway", parent_name="layout", **kwargs): super(PiecolorwayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1940,15 +1882,12 @@ def __init__( class PaperBgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='paper_bgcolor', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="paper_bgcolor", parent_name="layout", **kwargs): super(PaperBgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1957,15 +1896,12 @@ def __init__( class OrientationValidator(_plotly_utils.basevalidators.AngleValidator): - - def __init__( - self, plotly_name='orientation', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="orientation", parent_name="layout", **kwargs): super(OrientationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1974,14 +1910,14 @@ def __init__( class ModebarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='modebar', parent_name='layout', **kwargs): + def __init__(self, plotly_name="modebar", parent_name="layout", **kwargs): super(ModebarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Modebar'), + data_class_str=kwargs.pop("data_class_str", "Modebar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ activecolor Sets the color of the active or hovered on icons in the modebar. @@ -1997,7 +1933,7 @@ def __init__(self, plotly_name='modebar', parent_name='layout', **kwargs): `dragmode`, and `showspikes` at both the root level and inside subplots. Defaults to `layout.uirevision`. -""" +""", ), **kwargs ) @@ -2007,13 +1943,12 @@ def __init__(self, plotly_name='modebar', parent_name='layout', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='layout', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="layout", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -2022,14 +1957,13 @@ def __init__(self, plotly_name='metasrc', parent_name='layout', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='layout', **kwargs): + def __init__(self, plotly_name="meta", parent_name="layout", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -2038,14 +1972,14 @@ def __init__(self, plotly_name='meta', parent_name='layout', **kwargs): class MarginValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='margin', parent_name='layout', **kwargs): + def __init__(self, plotly_name="margin", parent_name="layout", **kwargs): super(MarginValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Margin'), + data_class_str=kwargs.pop("data_class_str", "Margin"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autoexpand b @@ -2059,7 +1993,7 @@ def __init__(self, plotly_name='margin', parent_name='layout', **kwargs): Sets the right margin (in px). t Sets the top margin (in px). -""" +""", ), **kwargs ) @@ -2069,14 +2003,14 @@ def __init__(self, plotly_name='margin', parent_name='layout', **kwargs): class MapboxValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='mapbox', parent_name='layout', **kwargs): + def __init__(self, plotly_name="mapbox", parent_name="layout", **kwargs): super(MapboxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Mapbox'), + data_class_str=kwargs.pop("data_class_str", "Mapbox"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ accesstoken Sets the mapbox access token to be used for this mapbox map. Alternatively, the mapbox @@ -2113,7 +2047,7 @@ def __init__(self, plotly_name='mapbox', parent_name='layout', **kwargs): Defaults to `layout.uirevision`. zoom Sets the zoom level of the map (mapbox.zoom). -""" +""", ), **kwargs ) @@ -2123,14 +2057,14 @@ def __init__(self, plotly_name='mapbox', parent_name='layout', **kwargs): class LegendValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='legend', parent_name='layout', **kwargs): + def __init__(self, plotly_name="legend", parent_name="layout", **kwargs): super(LegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Legend'), + data_class_str=kwargs.pop("data_class_str", "Legend"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the legend background color. bordercolor @@ -2196,7 +2130,7 @@ def __init__(self, plotly_name='legend', parent_name='layout', **kwargs): Sets the legend's vertical position anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the legend. -""" +""", ), **kwargs ) @@ -2206,16 +2140,16 @@ def __init__(self, plotly_name='legend', parent_name='layout', **kwargs): class ImageValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='imagedefaults', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="imagedefaults", parent_name="layout", **kwargs): super(ImageValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Image'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Image"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -2224,14 +2158,14 @@ def __init__( class ImagesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - - def __init__(self, plotly_name='images', parent_name='layout', **kwargs): + def __init__(self, plotly_name="images", parent_name="layout", **kwargs): super(ImagesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Image'), + data_class_str=kwargs.pop("data_class_str", "Image"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ layer Specifies whether images are drawn below or above traces. When `xref` and `yref` are both @@ -2309,7 +2243,7 @@ def __init__(self, plotly_name='images', parent_name='layout', **kwargs): distance from the bottom of the plot in normalized coordinates where 0 (1) corresponds to the bottom (top). -""" +""", ), **kwargs ) @@ -2319,16 +2253,13 @@ def __init__(self, plotly_name='images', parent_name='layout', **kwargs): class HovermodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='hovermode', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="hovermode", parent_name="layout", **kwargs): super(HovermodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'modebar'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['x', 'y', 'closest', False]), + edit_type=kwargs.pop("edit_type", "modebar"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["x", "y", "closest", False]), **kwargs ) @@ -2337,16 +2268,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="layout", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -2371,7 +2300,7 @@ def __init__( characters, but if it is longer, will truncate to `namelength - 3` characters and add an ellipsis. -""" +""", ), **kwargs ) @@ -2381,16 +2310,13 @@ def __init__( class HoverdistanceValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='hoverdistance', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="hoverdistance", parent_name="layout", **kwargs): super(HoverdistanceValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "info"), **kwargs ) @@ -2399,15 +2325,12 @@ def __init__( class HidesourcesValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='hidesources', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="hidesources", parent_name="layout", **kwargs): super(HidesourcesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -2416,15 +2339,12 @@ def __init__( class HiddenlabelssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hiddenlabelssrc', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="hiddenlabelssrc", parent_name="layout", **kwargs): super(HiddenlabelssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -2433,15 +2353,12 @@ def __init__( class HiddenlabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='hiddenlabels', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="hiddenlabels", parent_name="layout", **kwargs): super(HiddenlabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -2450,14 +2367,13 @@ def __init__( class HeightValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='height', parent_name='layout', **kwargs): + def __init__(self, plotly_name="height", parent_name="layout", **kwargs): super(HeightValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 10), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 10), + role=kwargs.pop("role", "info"), **kwargs ) @@ -2466,14 +2382,14 @@ def __init__(self, plotly_name='height', parent_name='layout', **kwargs): class GridValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='grid', parent_name='layout', **kwargs): + def __init__(self, plotly_name="grid", parent_name="layout", **kwargs): super(GridValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Grid'), + data_class_str=kwargs.pop("data_class_str", "Grid"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ columns The number of columns in the grid. If you provide a 2D `subplots` array, the length of @@ -2553,7 +2469,7 @@ def __init__(self, plotly_name='grid', parent_name='layout', **kwargs): *left plot* is the leftmost plot that each y axis is used in. "right" and *right plot* are similar. -""" +""", ), **kwargs ) @@ -2563,14 +2479,14 @@ def __init__(self, plotly_name='grid', parent_name='layout', **kwargs): class GeoValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='geo', parent_name='layout', **kwargs): + def __init__(self, plotly_name="geo", parent_name="layout", **kwargs): super(GeoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Geo'), + data_class_str=kwargs.pop("data_class_str", "Geo"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Set the background color of the map center @@ -2647,7 +2563,7 @@ def __init__(self, plotly_name='geo', parent_name='layout', **kwargs): Controls persistence of user-driven changes in the view (projection and center). Defaults to `layout.uirevision`. -""" +""", ), **kwargs ) @@ -2657,16 +2573,13 @@ def __init__(self, plotly_name='geo', parent_name='layout', **kwargs): class FunnelmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='funnelmode', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="funnelmode", parent_name="layout", **kwargs): super(FunnelmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['stack', 'group', 'overlay']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["stack", "group", "overlay"]), **kwargs ) @@ -2675,17 +2588,14 @@ def __init__( class FunnelgroupgapValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='funnelgroupgap', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="funnelgroupgap", parent_name="layout", **kwargs): super(FunnelgroupgapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -2694,17 +2604,14 @@ def __init__( class FunnelgapValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='funnelgap', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="funnelgap", parent_name="layout", **kwargs): super(FunnelgapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -2712,18 +2619,15 @@ def __init__( import _plotly_utils.basevalidators -class FunnelareacolorwayValidator( - _plotly_utils.basevalidators.ColorlistValidator -): - +class FunnelareacolorwayValidator(_plotly_utils.basevalidators.ColorlistValidator): def __init__( - self, plotly_name='funnelareacolorway', parent_name='layout', **kwargs + self, plotly_name="funnelareacolorway", parent_name="layout", **kwargs ): super(FunnelareacolorwayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -2732,14 +2636,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='font', parent_name='layout', **kwargs): + def __init__(self, plotly_name="font", parent_name="layout", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -2760,7 +2664,7 @@ def __init__(self, plotly_name='font', parent_name='layout', **kwargs): Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -2769,21 +2673,15 @@ def __init__(self, plotly_name='font', parent_name='layout', **kwargs): import _plotly_utils.basevalidators -class ExtendsunburstcolorsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class ExtendsunburstcolorsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( - self, - plotly_name='extendsunburstcolors', - parent_name='layout', - **kwargs + self, plotly_name="extendsunburstcolors", parent_name="layout", **kwargs ): super(ExtendsunburstcolorsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -2792,15 +2690,12 @@ def __init__( class ExtendpiecolorsValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='extendpiecolors', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="extendpiecolors", parent_name="layout", **kwargs): super(ExtendpiecolorsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -2808,21 +2703,15 @@ def __init__( import _plotly_utils.basevalidators -class ExtendfunnelareacolorsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class ExtendfunnelareacolorsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( - self, - plotly_name='extendfunnelareacolors', - parent_name='layout', - **kwargs + self, plotly_name="extendfunnelareacolors", parent_name="layout", **kwargs ): super(ExtendfunnelareacolorsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -2831,15 +2720,12 @@ def __init__( class EditrevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='editrevision', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="editrevision", parent_name="layout", **kwargs): super(EditrevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -2848,18 +2734,15 @@ def __init__( class DragmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='dragmode', parent_name='layout', **kwargs): + def __init__(self, plotly_name="dragmode", parent_name="layout", **kwargs): super(DragmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'modebar'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "modebar"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'zoom', 'pan', 'select', 'lasso', 'orbit', 'turntable', - False - ] + "values", + ["zoom", "pan", "select", "lasso", "orbit", "turntable", False], ), **kwargs ) @@ -2869,16 +2752,13 @@ def __init__(self, plotly_name='dragmode', parent_name='layout', **kwargs): class DirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='direction', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="direction", parent_name="layout", **kwargs): super(DirectionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['clockwise', 'counterclockwise']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["clockwise", "counterclockwise"]), **kwargs ) @@ -2887,15 +2767,12 @@ def __init__( class DatarevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='datarevision', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="datarevision", parent_name="layout", **kwargs): super(DatarevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -2904,13 +2781,12 @@ def __init__( class ColorwayValidator(_plotly_utils.basevalidators.ColorlistValidator): - - def __init__(self, plotly_name='colorway', parent_name='layout', **kwargs): + def __init__(self, plotly_name="colorway", parent_name="layout", **kwargs): super(ColorwayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -2919,16 +2795,14 @@ def __init__(self, plotly_name='colorway', parent_name='layout', **kwargs): class ColorscaleValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorscale', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="colorscale", parent_name="layout", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Colorscale'), + data_class_str=kwargs.pop("data_class_str", "Colorscale"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ diverging Sets the default diverging colorscale. Note that `autocolorscale` must be true for this @@ -2941,7 +2815,7 @@ def __init__( Sets the default sequential colorscale for negative values. Note that `autocolorscale` must be true for this attribute to work. -""" +""", ), **kwargs ) @@ -2951,16 +2825,14 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="layout", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Coloraxis'), + data_class_str=kwargs.pop("data_class_str", "Coloraxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -3017,7 +2889,7 @@ def __init__( showscale Determines whether or not a colorbar is displayed for this trace. -""" +""", ), **kwargs ) @@ -3027,17 +2899,14 @@ def __init__( class ClickmodeValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='clickmode', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="clickmode", parent_name="layout", **kwargs): super(ClickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - extras=kwargs.pop('extras', ['none']), - flags=kwargs.pop('flags', ['event', 'select']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + extras=kwargs.pop("extras", ["none"]), + flags=kwargs.pop("flags", ["event", "select"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -3046,20 +2915,32 @@ def __init__( class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='calendar', parent_name='layout', **kwargs): + def __init__(self, plotly_name="calendar", parent_name="layout", **kwargs): super(CalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -3069,14 +2950,13 @@ def __init__(self, plotly_name='calendar', parent_name='layout', **kwargs): class BoxmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='boxmode', parent_name='layout', **kwargs): + def __init__(self, plotly_name="boxmode", parent_name="layout", **kwargs): super(BoxmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['group', 'overlay']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["group", "overlay"]), **kwargs ) @@ -3085,17 +2965,14 @@ def __init__(self, plotly_name='boxmode', parent_name='layout', **kwargs): class BoxgroupgapValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='boxgroupgap', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="boxgroupgap", parent_name="layout", **kwargs): super(BoxgroupgapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -3104,15 +2981,14 @@ def __init__( class BoxgapValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='boxgap', parent_name='layout', **kwargs): + def __init__(self, plotly_name="boxgap", parent_name="layout", **kwargs): super(BoxgapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -3121,14 +2997,13 @@ def __init__(self, plotly_name='boxgap', parent_name='layout', **kwargs): class BarnormValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='barnorm', parent_name='layout', **kwargs): + def __init__(self, plotly_name="barnorm", parent_name="layout", **kwargs): super(BarnormValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['', 'fraction', 'percent']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["", "fraction", "percent"]), **kwargs ) @@ -3137,16 +3012,13 @@ def __init__(self, plotly_name='barnorm', parent_name='layout', **kwargs): class BarmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='barmode', parent_name='layout', **kwargs): + def __init__(self, plotly_name="barmode", parent_name="layout", **kwargs): super(BarmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['stack', 'group', 'overlay', 'relative'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["stack", "group", "overlay", "relative"]), **kwargs ) @@ -3155,17 +3027,14 @@ def __init__(self, plotly_name='barmode', parent_name='layout', **kwargs): class BargroupgapValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='bargroupgap', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="bargroupgap", parent_name="layout", **kwargs): super(BargroupgapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -3174,15 +3043,14 @@ def __init__( class BargapValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='bargap', parent_name='layout', **kwargs): + def __init__(self, plotly_name="bargap", parent_name="layout", **kwargs): super(BargapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -3191,13 +3059,12 @@ def __init__(self, plotly_name='bargap', parent_name='layout', **kwargs): class AutosizeValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__(self, plotly_name='autosize', parent_name='layout', **kwargs): + def __init__(self, plotly_name="autosize", parent_name="layout", **kwargs): super(AutosizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -3206,16 +3073,18 @@ def __init__(self, plotly_name='autosize', parent_name='layout', **kwargs): class AnnotationValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='annotationdefaults', parent_name='layout', **kwargs + self, plotly_name="annotationdefaults", parent_name="layout", **kwargs ): super(AnnotationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Annotation'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Annotation"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -3223,19 +3092,15 @@ def __init__( import _plotly_utils.basevalidators -class AnnotationsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - - def __init__( - self, plotly_name='annotations', parent_name='layout', **kwargs - ): +class AnnotationsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + def __init__(self, plotly_name="annotations", parent_name="layout", **kwargs): super(AnnotationsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Annotation'), + data_class_str=kwargs.pop("data_class_str", "Annotation"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` @@ -3497,7 +3362,7 @@ def __init__( Shifts the position of the whole annotation and arrow up (positive) or down (negative) by this many pixels. -""" +""", ), **kwargs ) @@ -3507,16 +3372,14 @@ def __init__( class AngularAxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='angularaxis', parent_name='layout', **kwargs - ): + def __init__(self, plotly_name="angularaxis", parent_name="layout", **kwargs): super(AngularAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'AngularAxis'), + data_class_str=kwargs.pop("data_class_str", "AngularAxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ domain Polar chart subplots are not supported yet. This key has currently no effect. @@ -3558,7 +3421,7 @@ def __init__( Legacy polar charts are deprecated! Please switch to "polar" subplots. Determines whether or not this axis will be visible. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/angularaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/angularaxis/__init__.py index cea62bad8b5..299f5cdda83 100644 --- a/packages/python/plotly/plotly/validators/layout/angularaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/angularaxis/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='visible', - parent_name='layout.angularaxis', - **kwargs + self, plotly_name="visible", parent_name="layout.angularaxis", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='layout.angularaxis', - **kwargs + self, plotly_name="ticksuffix", parent_name="layout.angularaxis", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,22 +33,16 @@ def __init__( import _plotly_utils.basevalidators -class TickorientationValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class TickorientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='tickorientation', - parent_name='layout.angularaxis', - **kwargs + self, plotly_name="tickorientation", parent_name="layout.angularaxis", **kwargs ): super(TickorientationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['horizontal', 'vertical']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["horizontal", "vertical"]), **kwargs ) @@ -67,19 +51,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='layout.angularaxis', - **kwargs + self, plotly_name="ticklen", parent_name="layout.angularaxis", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -88,18 +68,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='layout.angularaxis', - **kwargs + self, plotly_name="tickcolor", parent_name="layout.angularaxis", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -108,18 +84,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='layout.angularaxis', - **kwargs + self, plotly_name="showticklabels", parent_name="layout.angularaxis", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -128,18 +100,14 @@ def __init__( class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showline', - parent_name='layout.angularaxis', - **kwargs + self, plotly_name="showline", parent_name="layout.angularaxis", **kwargs ): super(ShowlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -148,28 +116,19 @@ def __init__( class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='range', parent_name='layout.angularaxis', **kwargs - ): + def __init__(self, plotly_name="range", parent_name="layout.angularaxis", **kwargs): super(RangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'dflt': 0, - 'editType': 'plot' - }, { - 'valType': 'number', - 'dflt': 360, - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "dflt": 0, "editType": "plot"}, + {"valType": "number", "dflt": 360, "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -178,18 +137,14 @@ def __init__( class EndpaddingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='endpadding', - parent_name='layout.angularaxis', - **kwargs + self, plotly_name="endpadding", parent_name="layout.angularaxis", **kwargs ): super(EndpaddingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -198,29 +153,20 @@ def __init__( class DomainValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, plotly_name='domain', parent_name='layout.angularaxis', **kwargs + self, plotly_name="domain", parent_name="layout.angularaxis", **kwargs ): super(DomainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/annotation/__init__.py b/packages/python/plotly/plotly/validators/layout/annotation/__init__.py index 73f5e5086cf..ad4456b18af 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class YshiftValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='yshift', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="yshift", parent_name="layout.annotation", **kwargs): super(YshiftValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -21,18 +16,13 @@ def __init__( class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='yref', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="yref", parent_name="layout.annotation", **kwargs): super(YrefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['paper', '/^y([2-9]|[1-9][0-9]+)?$/'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["paper", "/^y([2-9]|[1-9][0-9]+)?$/"]), **kwargs ) @@ -41,15 +31,12 @@ def __init__( class YclickValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='yclick', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="yclick", parent_name="layout.annotation", **kwargs): super(YclickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -58,16 +45,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='yanchor', parent_name='layout.annotation', **kwargs + self, plotly_name="yanchor", parent_name="layout.annotation", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), **kwargs ) @@ -76,15 +62,12 @@ def __init__( class YValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='y', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="layout.annotation", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -93,15 +76,12 @@ def __init__( class XshiftValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='xshift', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="xshift", parent_name="layout.annotation", **kwargs): super(XshiftValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -110,18 +90,13 @@ def __init__( class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xref', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="xref", parent_name="layout.annotation", **kwargs): super(XrefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['paper', '/^x([2-9]|[1-9][0-9]+)?$/'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["paper", "/^x([2-9]|[1-9][0-9]+)?$/"]), **kwargs ) @@ -130,15 +105,12 @@ def __init__( class XclickValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='xclick', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="xclick", parent_name="layout.annotation", **kwargs): super(XclickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -147,16 +119,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='xanchor', parent_name='layout.annotation', **kwargs + self, plotly_name="xanchor", parent_name="layout.annotation", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "left", "center", "right"]), **kwargs ) @@ -165,15 +136,12 @@ def __init__( class XValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='x', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="layout.annotation", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -182,16 +150,13 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="layout.annotation", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -200,15 +165,14 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='visible', parent_name='layout.annotation', **kwargs + self, plotly_name="visible", parent_name="layout.annotation", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -217,16 +181,13 @@ def __init__( class ValignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='valign', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="valign", parent_name="layout.annotation", **kwargs): super(ValignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -235,18 +196,14 @@ def __init__( class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='textangle', - parent_name='layout.annotation', - **kwargs + self, plotly_name="textangle", parent_name="layout.annotation", **kwargs ): super(TextangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -255,15 +212,12 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='text', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="text", parent_name="layout.annotation", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -272,18 +226,14 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='templateitemname', - parent_name='layout.annotation', - **kwargs + self, plotly_name="templateitemname", parent_name="layout.annotation", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -292,19 +242,15 @@ def __init__( class StartstandoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='startstandoff', - parent_name='layout.annotation', - **kwargs + self, plotly_name="startstandoff", parent_name="layout.annotation", **kwargs ): super(StartstandoffValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -313,19 +259,15 @@ def __init__( class StartarrowsizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='startarrowsize', - parent_name='layout.annotation', - **kwargs + self, plotly_name="startarrowsize", parent_name="layout.annotation", **kwargs ): super(StartarrowsizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - min=kwargs.pop('min', 0.3), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + min=kwargs.pop("min", 0.3), + role=kwargs.pop("role", "style"), **kwargs ) @@ -334,20 +276,16 @@ def __init__( class StartarrowheadValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='startarrowhead', - parent_name='layout.annotation', - **kwargs + self, plotly_name="startarrowhead", parent_name="layout.annotation", **kwargs ): super(StartarrowheadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - max=kwargs.pop('max', 8), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + max=kwargs.pop("max", 8), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -356,19 +294,15 @@ def __init__( class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='standoff', - parent_name='layout.annotation', - **kwargs + self, plotly_name="standoff", parent_name="layout.annotation", **kwargs ): super(StandoffValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -377,18 +311,14 @@ def __init__( class ShowarrowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showarrow', - parent_name='layout.annotation', - **kwargs + self, plotly_name="showarrow", parent_name="layout.annotation", **kwargs ): super(ShowarrowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -397,17 +327,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='opacity', parent_name='layout.annotation', **kwargs + self, plotly_name="opacity", parent_name="layout.annotation", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -416,15 +345,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="layout.annotation", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -433,18 +359,14 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='hovertext', - parent_name='layout.annotation', - **kwargs + self, plotly_name="hovertext", parent_name="layout.annotation", **kwargs ): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -453,19 +375,16 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='hoverlabel', - parent_name='layout.annotation', - **kwargs + self, plotly_name="hoverlabel", parent_name="layout.annotation", **kwargs ): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the background color of the hover label. By default uses the annotation's `bgcolor` made @@ -478,7 +397,7 @@ def __init__( Sets the hover label text font. By default uses the global hover font and size, with color from `hoverlabel.bordercolor`. -""" +""", ), **kwargs ) @@ -488,16 +407,13 @@ def __init__( class HeightValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='height', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="height", parent_name="layout.annotation", **kwargs): super(HeightValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -506,16 +422,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="layout.annotation", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -536,7 +450,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -546,19 +460,15 @@ def __init__( class ClicktoshowValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='clicktoshow', - parent_name='layout.annotation', - **kwargs + self, plotly_name="clicktoshow", parent_name="layout.annotation", **kwargs ): super(ClicktoshowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', [False, 'onoff', 'onout']), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", [False, "onoff", "onout"]), **kwargs ) @@ -567,18 +477,14 @@ def __init__( class CaptureeventsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='captureevents', - parent_name='layout.annotation', - **kwargs + self, plotly_name="captureevents", parent_name="layout.annotation", **kwargs ): super(CaptureeventsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -587,19 +493,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='layout.annotation', - **kwargs + self, plotly_name="borderwidth", parent_name="layout.annotation", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -608,19 +510,15 @@ def __init__( class BorderpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderpad', - parent_name='layout.annotation', - **kwargs + self, plotly_name="borderpad", parent_name="layout.annotation", **kwargs ): super(BorderpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -629,18 +527,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='layout.annotation', - **kwargs + self, plotly_name="bordercolor", parent_name="layout.annotation", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -649,15 +543,14 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='bgcolor', parent_name='layout.annotation', **kwargs + self, plotly_name="bgcolor", parent_name="layout.annotation", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -666,18 +559,13 @@ def __init__( class AyrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ayref', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="ayref", parent_name="layout.annotation", **kwargs): super(AyrefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['pixel', '/^y([2-9]|[1-9][0-9]+)?$/'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["pixel", "/^y([2-9]|[1-9][0-9]+)?$/"]), **kwargs ) @@ -686,15 +574,12 @@ def __init__( class AyValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='ay', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="ay", parent_name="layout.annotation", **kwargs): super(AyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -703,18 +588,13 @@ def __init__( class AxrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='axref', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="axref", parent_name="layout.annotation", **kwargs): super(AxrefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['pixel', '/^x([2-9]|[1-9][0-9]+)?$/'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["pixel", "/^x([2-9]|[1-9][0-9]+)?$/"]), **kwargs ) @@ -723,15 +603,12 @@ def __init__( class AxValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='ax', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="ax", parent_name="layout.annotation", **kwargs): super(AxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -740,19 +617,15 @@ def __init__( class ArrowwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='arrowwidth', - parent_name='layout.annotation', - **kwargs + self, plotly_name="arrowwidth", parent_name="layout.annotation", **kwargs ): super(ArrowwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - min=kwargs.pop('min', 0.1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + min=kwargs.pop("min", 0.1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -761,19 +634,15 @@ def __init__( class ArrowsizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='arrowsize', - parent_name='layout.annotation', - **kwargs + self, plotly_name="arrowsize", parent_name="layout.annotation", **kwargs ): super(ArrowsizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - min=kwargs.pop('min', 0.3), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + min=kwargs.pop("min", 0.3), + role=kwargs.pop("role", "style"), **kwargs ) @@ -782,20 +651,16 @@ def __init__( class ArrowsideValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name='arrowside', - parent_name='layout.annotation', - **kwargs + self, plotly_name="arrowside", parent_name="layout.annotation", **kwargs ): super(ArrowsideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - extras=kwargs.pop('extras', ['none']), - flags=kwargs.pop('flags', ['end', 'start']), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + extras=kwargs.pop("extras", ["none"]), + flags=kwargs.pop("flags", ["end", "start"]), + role=kwargs.pop("role", "style"), **kwargs ) @@ -804,20 +669,16 @@ def __init__( class ArrowheadValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='arrowhead', - parent_name='layout.annotation', - **kwargs + self, plotly_name="arrowhead", parent_name="layout.annotation", **kwargs ): super(ArrowheadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - max=kwargs.pop('max', 8), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + max=kwargs.pop("max", 8), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -826,18 +687,14 @@ def __init__( class ArrowcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='arrowcolor', - parent_name='layout.annotation', - **kwargs + self, plotly_name="arrowcolor", parent_name="layout.annotation", **kwargs ): super(ArrowcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -846,15 +703,12 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='layout.annotation', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="layout.annotation", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/annotation/font/__init__.py b/packages/python/plotly/plotly/validators/layout/annotation/font/__init__.py index ecfff569392..7d225e6480d 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='layout.annotation.font', - **kwargs + self, plotly_name="size", parent_name="layout.annotation.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='layout.annotation.font', - **kwargs + self, plotly_name="family", parent_name="layout.annotation.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.annotation.font', - **kwargs + self, plotly_name="color", parent_name="layout.annotation.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/__init__.py index 76d11a67be3..4770283b361 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/__init__.py @@ -1,22 +1,17 @@ - - import _plotly_utils.basevalidators class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='layout.annotation.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="layout.annotation.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -37,7 +32,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -47,18 +42,17 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='layout.annotation.hoverlabel', + plotly_name="bordercolor", + parent_name="layout.annotation.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -67,17 +61,16 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bgcolor', - parent_name='layout.annotation.hoverlabel', + plotly_name="bgcolor", + parent_name="layout.annotation.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/__init__.py index 96dc63ba9d0..16dfca176b1 100644 --- a/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/annotation/hoverlabel/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='layout.annotation.hoverlabel.font', + plotly_name="size", + parent_name="layout.annotation.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.annotation.hoverlabel.font', + plotly_name="family", + parent_name="layout.annotation.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "arraydraw"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='layout.annotation.hoverlabel.font', + plotly_name="color", + parent_name="layout.annotation.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/__init__.py b/packages/python/plotly/plotly/validators/layout/coloraxis/__init__.py index 0d41f08c758..0e9f8e531ea 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showscale', - parent_name='layout.coloraxis', - **kwargs + self, plotly_name="showscale", parent_name="layout.coloraxis", **kwargs ): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='layout.coloraxis', - **kwargs + self, plotly_name="reversescale", parent_name="layout.coloraxis", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -44,21 +34,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='layout.coloraxis', - **kwargs + self, plotly_name="colorscale", parent_name="layout.coloraxis", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -67,16 +51,16 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='colorbar', parent_name='layout.coloraxis', **kwargs + self, plotly_name="colorbar", parent_name="layout.coloraxis", **kwargs ): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -287,7 +271,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -297,16 +281,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmin', parent_name='layout.coloraxis', **kwargs - ): + def __init__(self, plotly_name="cmin", parent_name="layout.coloraxis", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -315,16 +296,13 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmid', parent_name='layout.coloraxis', **kwargs - ): + def __init__(self, plotly_name="cmid", parent_name="layout.coloraxis", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -333,16 +311,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmax', parent_name='layout.coloraxis', **kwargs - ): + def __init__(self, plotly_name="cmax", parent_name="layout.coloraxis", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -351,16 +326,13 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='layout.coloraxis', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="layout.coloraxis", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -369,18 +341,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='layout.coloraxis', - **kwargs + self, plotly_name="autocolorscale", parent_name="layout.coloraxis", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/__init__.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/__init__.py index 0c91b071173..0e5ea072211 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="layout.coloraxis.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="layout.coloraxis.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,20 +36,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='y', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="y", parent_name="layout.coloraxis.colorbar", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -68,19 +54,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="layout.coloraxis.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -89,19 +71,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="layout.coloraxis.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -110,20 +88,16 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='x', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="x", parent_name="layout.coloraxis.colorbar", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -132,19 +106,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="title", parent_name="layout.coloraxis.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -160,7 +131,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -170,19 +141,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="layout.coloraxis.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -191,18 +158,17 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='tickvalssrc', - parent_name='layout.coloraxis.colorbar', + plotly_name="tickvalssrc", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -211,18 +177,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="layout.coloraxis.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -231,18 +193,17 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='ticktextsrc', - parent_name='layout.coloraxis.colorbar', + plotly_name="ticktextsrc", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -251,18 +212,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="layout.coloraxis.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -271,18 +228,17 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='ticksuffix', - parent_name='layout.coloraxis.colorbar', + plotly_name="ticksuffix", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -291,19 +247,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="layout.coloraxis.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -312,18 +264,17 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickprefix', - parent_name='layout.coloraxis.colorbar', + plotly_name="tickprefix", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -332,20 +283,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="layout.coloraxis.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -354,19 +301,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="layout.coloraxis.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -375,19 +318,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='layout.coloraxis.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -395,22 +340,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='layout.coloraxis.colorbar', + plotly_name="tickformatstops", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -444,7 +387,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -454,18 +397,17 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickformat', - parent_name='layout.coloraxis.colorbar', + plotly_name="tickformat", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -474,19 +416,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="layout.coloraxis.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -507,7 +446,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -517,18 +456,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="layout.coloraxis.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -537,18 +472,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="layout.coloraxis.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,19 +488,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="layout.coloraxis.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -578,19 +505,18 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='thicknessmode', - parent_name='layout.coloraxis.colorbar', + plotly_name="thicknessmode", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -599,19 +525,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="layout.coloraxis.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -619,22 +541,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='layout.coloraxis.colorbar', + plotly_name="showticksuffix", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -642,22 +561,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='layout.coloraxis.colorbar', + plotly_name="showtickprefix", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -666,18 +582,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='layout.coloraxis.colorbar', + plotly_name="showticklabels", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -686,19 +601,18 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='showexponent', - parent_name='layout.coloraxis.colorbar', + plotly_name="showexponent", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -706,21 +620,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='layout.coloraxis.colorbar', + plotly_name="separatethousands", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -729,19 +640,18 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='outlinewidth', - parent_name='layout.coloraxis.colorbar', + plotly_name="outlinewidth", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -750,18 +660,17 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='outlinecolor', - parent_name='layout.coloraxis.colorbar', + plotly_name="outlinecolor", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -770,19 +679,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="layout.coloraxis.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -791,19 +696,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="layout.coloraxis.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -812,19 +713,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='len', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="len", parent_name="layout.coloraxis.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -832,24 +729,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='layout.coloraxis.colorbar', + plotly_name="exponentformat", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -858,19 +750,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="layout.coloraxis.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -879,19 +767,18 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='borderwidth', - parent_name='layout.coloraxis.colorbar', + plotly_name="borderwidth", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -900,18 +787,17 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='layout.coloraxis.colorbar', + plotly_name="bordercolor", + parent_name="layout.coloraxis.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -920,17 +806,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='layout.coloraxis.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="layout.coloraxis.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/__init__.py index a20618fe5fb..92a771a37f3 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='layout.coloraxis.colorbar.tickfont', + plotly_name="size", + parent_name="layout.coloraxis.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.coloraxis.colorbar.tickfont', + plotly_name="family", + parent_name="layout.coloraxis.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='layout.coloraxis.colorbar.tickfont', + plotly_name="color", + parent_name="layout.coloraxis.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/__init__.py index 057ca9ef46a..949c3999508 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='layout.coloraxis.colorbar.tickformatstop', + plotly_name="value", + parent_name="layout.coloraxis.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='layout.coloraxis.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="layout.coloraxis.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='layout.coloraxis.colorbar.tickformatstop', + plotly_name="name", + parent_name="layout.coloraxis.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='layout.coloraxis.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="layout.coloraxis.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='layout.coloraxis.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="layout.coloraxis.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/__init__.py index 802b27643bb..e0073776218 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='text', - parent_name='layout.coloraxis.colorbar.title', + plotly_name="text", + parent_name="layout.coloraxis.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +21,18 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='side', - parent_name='layout.coloraxis.colorbar.title', + plotly_name="side", + parent_name="layout.coloraxis.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +41,19 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='font', - parent_name='layout.coloraxis.colorbar.title', + plotly_name="font", + parent_name="layout.coloraxis.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +74,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/__init__.py index 2b55e6c8655..eb2edd624cc 100644 --- a/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/coloraxis/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='layout.coloraxis.colorbar.title.font', + plotly_name="size", + parent_name="layout.coloraxis.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.coloraxis.colorbar.title.font', + plotly_name="family", + parent_name="layout.coloraxis.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='layout.coloraxis.colorbar.title.font', + plotly_name="color", + parent_name="layout.coloraxis.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/colorscale/__init__.py b/packages/python/plotly/plotly/validators/layout/colorscale/__init__.py index 48f421c8f27..0573ea6011b 100644 --- a/packages/python/plotly/plotly/validators/layout/colorscale/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/colorscale/__init__.py @@ -1,23 +1,15 @@ - - import _plotly_utils.basevalidators -class SequentialminusValidator( - _plotly_utils.basevalidators.ColorscaleValidator -): - +class SequentialminusValidator(_plotly_utils.basevalidators.ColorscaleValidator): def __init__( - self, - plotly_name='sequentialminus', - parent_name='layout.colorscale', - **kwargs + self, plotly_name="sequentialminus", parent_name="layout.colorscale", **kwargs ): super(SequentialminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -26,18 +18,14 @@ def __init__( class SequentialValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='sequential', - parent_name='layout.colorscale', - **kwargs + self, plotly_name="sequential", parent_name="layout.colorscale", **kwargs ): super(SequentialValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,17 +34,13 @@ def __init__( class DivergingValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='diverging', - parent_name='layout.colorscale', - **kwargs + self, plotly_name="diverging", parent_name="layout.colorscale", **kwargs ): super(DivergingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/font/__init__.py b/packages/python/plotly/plotly/validators/layout/font/__init__.py index 25eef965dab..4ae632e5078 100644 --- a/packages/python/plotly/plotly/validators/layout/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/font/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='layout.font', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="layout.font", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,17 +17,14 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='family', parent_name='layout.font', **kwargs - ): + def __init__(self, plotly_name="family", parent_name="layout.font", **kwargs): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -41,14 +33,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='layout.font', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="layout.font", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/geo/__init__.py b/packages/python/plotly/plotly/validators/layout/geo/__init__.py index a8ca4dc2495..864518a0bdc 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/geo/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="layout.geo", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +16,13 @@ def __init__( class SubunitwidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='subunitwidth', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="subunitwidth", parent_name="layout.geo", **kwargs): super(SubunitwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -39,15 +31,12 @@ def __init__( class SubunitcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='subunitcolor', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="subunitcolor", parent_name="layout.geo", **kwargs): super(SubunitcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -56,15 +45,12 @@ def __init__( class ShowsubunitsValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showsubunits', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="showsubunits", parent_name="layout.geo", **kwargs): super(ShowsubunitsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -73,15 +59,12 @@ def __init__( class ShowriversValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showrivers', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="showrivers", parent_name="layout.geo", **kwargs): super(ShowriversValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -90,15 +73,12 @@ def __init__( class ShowoceanValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showocean', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="showocean", parent_name="layout.geo", **kwargs): super(ShowoceanValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -107,15 +87,12 @@ def __init__( class ShowlandValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showland', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="showland", parent_name="layout.geo", **kwargs): super(ShowlandValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -124,15 +101,12 @@ def __init__( class ShowlakesValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlakes', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="showlakes", parent_name="layout.geo", **kwargs): super(ShowlakesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -141,15 +115,12 @@ def __init__( class ShowframeValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showframe', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="showframe", parent_name="layout.geo", **kwargs): super(ShowframeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -158,15 +129,12 @@ def __init__( class ShowcountriesValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showcountries', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="showcountries", parent_name="layout.geo", **kwargs): super(ShowcountriesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -175,15 +143,14 @@ def __init__( class ShowcoastlinesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='showcoastlines', parent_name='layout.geo', **kwargs + self, plotly_name="showcoastlines", parent_name="layout.geo", **kwargs ): super(ShowcoastlinesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -192,20 +159,23 @@ def __init__( class ScopeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='scope', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="scope", parent_name="layout.geo", **kwargs): super(ScopeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'world', 'usa', 'europe', 'asia', 'africa', - 'north america', 'south america' - ] + "values", + [ + "world", + "usa", + "europe", + "asia", + "africa", + "north america", + "south america", + ], ), **kwargs ) @@ -215,16 +185,13 @@ def __init__( class RiverwidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='riverwidth', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="riverwidth", parent_name="layout.geo", **kwargs): super(RiverwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -233,15 +200,12 @@ def __init__( class RivercolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='rivercolor', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="rivercolor", parent_name="layout.geo", **kwargs): super(RivercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -250,17 +214,14 @@ def __init__( class ResolutionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='resolution', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="resolution", parent_name="layout.geo", **kwargs): super(ResolutionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - coerce_number=kwargs.pop('coerce_number', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [110, 50]), + coerce_number=kwargs.pop("coerce_number", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [110, 50]), **kwargs ) @@ -269,16 +230,14 @@ def __init__( class ProjectionValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='projection', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="projection", parent_name="layout.geo", **kwargs): super(ProjectionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Projection'), + data_class_str=kwargs.pop("data_class_str", "Projection"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ parallels For conic projection types only. Sets the parallels (tangent, secant) where the cone @@ -292,7 +251,7 @@ def __init__( the map's lon and lat ranges. type Sets the projection type. -""" +""", ), **kwargs ) @@ -302,15 +261,12 @@ def __init__( class OceancolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='oceancolor', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="oceancolor", parent_name="layout.geo", **kwargs): super(OceancolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -319,16 +275,14 @@ def __init__( class LonaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='lonaxis', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="lonaxis", parent_name="layout.geo", **kwargs): super(LonaxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Lonaxis'), + data_class_str=kwargs.pop("data_class_str", "Lonaxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtick Sets the graticule's longitude/latitude tick step. @@ -345,7 +299,7 @@ def __init__( tick0 Sets the graticule's starting tick longitude/latitude. -""" +""", ), **kwargs ) @@ -355,16 +309,14 @@ def __init__( class LataxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='lataxis', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="lataxis", parent_name="layout.geo", **kwargs): super(LataxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Lataxis'), + data_class_str=kwargs.pop("data_class_str", "Lataxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtick Sets the graticule's longitude/latitude tick step. @@ -381,7 +333,7 @@ def __init__( tick0 Sets the graticule's starting tick longitude/latitude. -""" +""", ), **kwargs ) @@ -391,15 +343,12 @@ def __init__( class LandcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='landcolor', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="landcolor", parent_name="layout.geo", **kwargs): super(LandcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -408,15 +357,12 @@ def __init__( class LakecolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='lakecolor', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="lakecolor", parent_name="layout.geo", **kwargs): super(LakecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -425,16 +371,13 @@ def __init__( class FramewidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='framewidth', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="framewidth", parent_name="layout.geo", **kwargs): super(FramewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -443,15 +386,12 @@ def __init__( class FramecolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='framecolor', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="framecolor", parent_name="layout.geo", **kwargs): super(FramecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -460,16 +400,14 @@ def __init__( class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='domain', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="domain", parent_name="layout.geo", **kwargs): super(DomainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Domain'), + data_class_str=kwargs.pop("data_class_str", "Domain"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ column If there is a layout grid, use the domain for this column in the grid for this geo subplot . @@ -496,7 +434,7 @@ def __init__( constrained by domain. In general, when `projection.scale` is set to 1. a map will fit either its x or y domain, but not both. -""" +""", ), **kwargs ) @@ -506,16 +444,13 @@ def __init__( class CountrywidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='countrywidth', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="countrywidth", parent_name="layout.geo", **kwargs): super(CountrywidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -524,15 +459,12 @@ def __init__( class CountrycolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='countrycolor', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="countrycolor", parent_name="layout.geo", **kwargs): super(CountrycolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -541,16 +473,15 @@ def __init__( class CoastlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='coastlinewidth', parent_name='layout.geo', **kwargs + self, plotly_name="coastlinewidth", parent_name="layout.geo", **kwargs ): super(CoastlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -559,15 +490,14 @@ def __init__( class CoastlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='coastlinecolor', parent_name='layout.geo', **kwargs + self, plotly_name="coastlinecolor", parent_name="layout.geo", **kwargs ): super(CoastlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -576,16 +506,14 @@ def __init__( class CenterValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='center', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="center", parent_name="layout.geo", **kwargs): super(CenterValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Center'), + data_class_str=kwargs.pop("data_class_str", "Center"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ lat Sets the latitude of the map's center. For all projection types, the map's latitude center @@ -597,7 +525,7 @@ def __init__( middle of the longitude range for scoped projection and above `projection.rotation.lon` otherwise. -""" +""", ), **kwargs ) @@ -607,14 +535,11 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='layout.geo', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="layout.geo", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/geo/center/__init__.py b/packages/python/plotly/plotly/validators/layout/geo/center/__init__.py index 95efd4b9e63..7299813e617 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/center/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/geo/center/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class LonValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='lon', parent_name='layout.geo.center', **kwargs - ): + def __init__(self, plotly_name="lon", parent_name="layout.geo.center", **kwargs): super(LonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,14 +16,11 @@ def __init__( class LatValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='lat', parent_name='layout.geo.center', **kwargs - ): + def __init__(self, plotly_name="lat", parent_name="layout.geo.center", **kwargs): super(LatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/geo/domain/__init__.py b/packages/python/plotly/plotly/validators/layout/geo/domain/__init__.py index 68503ae8f00..2cfef7e0344 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/geo/domain/__init__.py @@ -1,33 +1,20 @@ - - import _plotly_utils.basevalidators class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='y', parent_name='layout.geo.domain', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="layout.geo.domain", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -36,30 +23,19 @@ def __init__( class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='x', parent_name='layout.geo.domain', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="layout.geo.domain", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -68,16 +44,13 @@ def __init__( class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='row', parent_name='layout.geo.domain', **kwargs - ): + def __init__(self, plotly_name="row", parent_name="layout.geo.domain", **kwargs): super(RowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -86,15 +59,12 @@ def __init__( class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='column', parent_name='layout.geo.domain', **kwargs - ): + def __init__(self, plotly_name="column", parent_name="layout.geo.domain", **kwargs): super(ColumnValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/geo/lataxis/__init__.py b/packages/python/plotly/plotly/validators/layout/geo/lataxis/__init__.py index 1e64696a302..228d2eabea7 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lataxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lataxis/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class Tick0Validator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='tick0', parent_name='layout.geo.lataxis', **kwargs - ): + def __init__(self, plotly_name="tick0", parent_name="layout.geo.lataxis", **kwargs): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,18 +16,14 @@ def __init__( class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showgrid', - parent_name='layout.geo.lataxis', - **kwargs + self, plotly_name="showgrid", parent_name="layout.geo.lataxis", **kwargs ): super(ShowgridValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -41,26 +32,19 @@ def __init__( class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='range', parent_name='layout.geo.lataxis', **kwargs - ): + def __init__(self, plotly_name="range", parent_name="layout.geo.lataxis", **kwargs): super(RangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'editType': 'plot' - }, { - 'valType': 'number', - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "editType": "plot"}, + {"valType": "number", "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -69,19 +53,15 @@ def __init__( class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='gridwidth', - parent_name='layout.geo.lataxis', - **kwargs + self, plotly_name="gridwidth", parent_name="layout.geo.lataxis", **kwargs ): super(GridwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -90,18 +70,14 @@ def __init__( class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='gridcolor', - parent_name='layout.geo.lataxis', - **kwargs + self, plotly_name="gridcolor", parent_name="layout.geo.lataxis", **kwargs ): super(GridcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -110,14 +86,11 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='dtick', parent_name='layout.geo.lataxis', **kwargs - ): + def __init__(self, plotly_name="dtick", parent_name="layout.geo.lataxis", **kwargs): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/__init__.py index fa021f694dc..85e97c1ec87 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/lonaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/geo/lonaxis/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class Tick0Validator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='tick0', parent_name='layout.geo.lonaxis', **kwargs - ): + def __init__(self, plotly_name="tick0", parent_name="layout.geo.lonaxis", **kwargs): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,18 +16,14 @@ def __init__( class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showgrid', - parent_name='layout.geo.lonaxis', - **kwargs + self, plotly_name="showgrid", parent_name="layout.geo.lonaxis", **kwargs ): super(ShowgridValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -41,26 +32,19 @@ def __init__( class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='range', parent_name='layout.geo.lonaxis', **kwargs - ): + def __init__(self, plotly_name="range", parent_name="layout.geo.lonaxis", **kwargs): super(RangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'editType': 'plot' - }, { - 'valType': 'number', - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "editType": "plot"}, + {"valType": "number", "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -69,19 +53,15 @@ def __init__( class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='gridwidth', - parent_name='layout.geo.lonaxis', - **kwargs + self, plotly_name="gridwidth", parent_name="layout.geo.lonaxis", **kwargs ): super(GridwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -90,18 +70,14 @@ def __init__( class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='gridcolor', - parent_name='layout.geo.lonaxis', - **kwargs + self, plotly_name="gridcolor", parent_name="layout.geo.lonaxis", **kwargs ): super(GridcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -110,14 +86,11 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='dtick', parent_name='layout.geo.lonaxis', **kwargs - ): + def __init__(self, plotly_name="dtick", parent_name="layout.geo.lonaxis", **kwargs): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/geo/projection/__init__.py b/packages/python/plotly/plotly/validators/layout/geo/projection/__init__.py index f8a56721525..c444a1467db 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/projection/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/geo/projection/__init__.py @@ -1,31 +1,41 @@ - - import _plotly_utils.basevalidators class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='type', - parent_name='layout.geo.projection', - **kwargs + self, plotly_name="type", parent_name="layout.geo.projection", **kwargs ): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'equirectangular', 'mercator', 'orthographic', - 'natural earth', 'kavrayskiy7', 'miller', 'robinson', - 'eckert4', 'azimuthal equal area', 'azimuthal equidistant', - 'conic equal area', 'conic conformal', 'conic equidistant', - 'gnomonic', 'stereographic', 'mollweide', 'hammer', - 'transverse mercator', 'albers usa', 'winkel tripel', - 'aitoff', 'sinusoidal' - ] + "values", + [ + "equirectangular", + "mercator", + "orthographic", + "natural earth", + "kavrayskiy7", + "miller", + "robinson", + "eckert4", + "azimuthal equal area", + "azimuthal equidistant", + "conic equal area", + "conic conformal", + "conic equidistant", + "gnomonic", + "stereographic", + "mollweide", + "hammer", + "transverse mercator", + "albers usa", + "winkel tripel", + "aitoff", + "sinusoidal", + ], ), **kwargs ) @@ -35,19 +45,15 @@ def __init__( class ScaleValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='scale', - parent_name='layout.geo.projection', - **kwargs + self, plotly_name="scale", parent_name="layout.geo.projection", **kwargs ): super(ScaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -56,19 +62,16 @@ def __init__( class RotationValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='rotation', - parent_name='layout.geo.projection', - **kwargs + self, plotly_name="rotation", parent_name="layout.geo.projection", **kwargs ): super(RotationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Rotation'), + data_class_str=kwargs.pop("data_class_str", "Rotation"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ lat Rotates the map along meridians (in degrees North). @@ -79,7 +82,7 @@ def __init__( roll Roll the map (in degrees) For example, a roll of 180 makes the map appear upside down. -""" +""", ), **kwargs ) @@ -89,28 +92,20 @@ def __init__( class ParallelsValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name='parallels', - parent_name='layout.geo.projection', - **kwargs + self, plotly_name="parallels", parent_name="layout.geo.projection", **kwargs ): super(ParallelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'editType': 'plot' - }, { - 'valType': 'number', - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "editType": "plot"}, + {"valType": "number", "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/__init__.py b/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/__init__.py index 6da7535d9e0..ab3accafbac 100644 --- a/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/geo/projection/rotation/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class RollValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='roll', - parent_name='layout.geo.projection.rotation', - **kwargs + self, plotly_name="roll", parent_name="layout.geo.projection.rotation", **kwargs ): super(RollValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class LonValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='lon', - parent_name='layout.geo.projection.rotation', - **kwargs + self, plotly_name="lon", parent_name="layout.geo.projection.rotation", **kwargs ): super(LonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,17 +34,13 @@ def __init__( class LatValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='lat', - parent_name='layout.geo.projection.rotation', - **kwargs + self, plotly_name="lat", parent_name="layout.geo.projection.rotation", **kwargs ): super(LatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/grid/__init__.py b/packages/python/plotly/plotly/validators/layout/grid/__init__.py index 41b61bef81c..04b2b875c6e 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/grid/__init__.py @@ -1,21 +1,14 @@ - - import _plotly_utils.basevalidators class YsideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='yside', parent_name='layout.grid', **kwargs - ): + def __init__(self, plotly_name="yside", parent_name="layout.grid", **kwargs): super(YsideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['left', 'left plot', 'right plot', 'right'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["left", "left plot", "right plot", "right"]), **kwargs ) @@ -24,17 +17,14 @@ def __init__( class YgapValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ygap', parent_name='layout.grid', **kwargs - ): + def __init__(self, plotly_name="ygap", parent_name="layout.grid", **kwargs): super(YgapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -43,23 +33,21 @@ def __init__( class YaxesValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='yaxes', parent_name='layout.grid', **kwargs - ): + def __init__(self, plotly_name="yaxes", parent_name="layout.grid", **kwargs): super(YaxesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - free_length=kwargs.pop('free_length', True), + edit_type=kwargs.pop("edit_type", "plot"), + free_length=kwargs.pop("free_length", True), items=kwargs.pop( - 'items', { - 'valType': 'enumerated', - 'values': ['/^y([2-9]|[1-9][0-9]+)?$/', ''], - 'editType': 'plot' - } + "items", + { + "valType": "enumerated", + "values": ["/^y([2-9]|[1-9][0-9]+)?$/", ""], + "editType": "plot", + }, ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -68,18 +56,13 @@ def __init__( class XsideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xside', parent_name='layout.grid', **kwargs - ): + def __init__(self, plotly_name="xside", parent_name="layout.grid", **kwargs): super(XsideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['bottom', 'bottom plot', 'top plot', 'top'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["bottom", "bottom plot", "top plot", "top"]), **kwargs ) @@ -88,17 +71,14 @@ def __init__( class XgapValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='xgap', parent_name='layout.grid', **kwargs - ): + def __init__(self, plotly_name="xgap", parent_name="layout.grid", **kwargs): super(XgapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -107,23 +87,21 @@ def __init__( class XaxesValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='xaxes', parent_name='layout.grid', **kwargs - ): + def __init__(self, plotly_name="xaxes", parent_name="layout.grid", **kwargs): super(XaxesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - free_length=kwargs.pop('free_length', True), + edit_type=kwargs.pop("edit_type", "plot"), + free_length=kwargs.pop("free_length", True), items=kwargs.pop( - 'items', { - 'valType': 'enumerated', - 'values': ['/^x([2-9]|[1-9][0-9]+)?$/', ''], - 'editType': 'plot' - } + "items", + { + "valType": "enumerated", + "values": ["/^x([2-9]|[1-9][0-9]+)?$/", ""], + "editType": "plot", + }, ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -132,27 +110,22 @@ def __init__( class SubplotsValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='subplots', parent_name='layout.grid', **kwargs - ): + def __init__(self, plotly_name="subplots", parent_name="layout.grid", **kwargs): super(SubplotsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dimensions=kwargs.pop('dimensions', 2), - edit_type=kwargs.pop('edit_type', 'plot'), - free_length=kwargs.pop('free_length', True), + dimensions=kwargs.pop("dimensions", 2), + edit_type=kwargs.pop("edit_type", "plot"), + free_length=kwargs.pop("free_length", True), items=kwargs.pop( - 'items', { - 'valType': - 'enumerated', - 'values': - ['/^x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?$/', ''], - 'editType': - 'plot' - } + "items", + { + "valType": "enumerated", + "values": ["/^x([2-9]|[1-9][0-9]+)?y([2-9]|[1-9][0-9]+)?$/", ""], + "editType": "plot", + }, ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -161,16 +134,13 @@ def __init__( class RowsValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='rows', parent_name='layout.grid', **kwargs - ): + def __init__(self, plotly_name="rows", parent_name="layout.grid", **kwargs): super(RowsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "info"), **kwargs ) @@ -179,16 +149,13 @@ def __init__( class RoworderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='roworder', parent_name='layout.grid', **kwargs - ): + def __init__(self, plotly_name="roworder", parent_name="layout.grid", **kwargs): super(RoworderValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['top to bottom', 'bottom to top']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["top to bottom", "bottom to top"]), **kwargs ) @@ -197,16 +164,13 @@ def __init__( class PatternValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='pattern', parent_name='layout.grid', **kwargs - ): + def __init__(self, plotly_name="pattern", parent_name="layout.grid", **kwargs): super(PatternValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['independent', 'coupled']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["independent", "coupled"]), **kwargs ) @@ -215,16 +179,14 @@ def __init__( class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='domain', parent_name='layout.grid', **kwargs - ): + def __init__(self, plotly_name="domain", parent_name="layout.grid", **kwargs): super(DomainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Domain'), + data_class_str=kwargs.pop("data_class_str", "Domain"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x Sets the horizontal domain of this grid subplot (in plot fraction). The first and last cells @@ -235,7 +197,7 @@ def __init__( (in plot fraction). The first and last cells end exactly at the domain edges, with no grout around the edges. -""" +""", ), **kwargs ) @@ -245,15 +207,12 @@ def __init__( class ColumnsValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='columns', parent_name='layout.grid', **kwargs - ): + def __init__(self, plotly_name="columns", parent_name="layout.grid", **kwargs): super(ColumnsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/grid/domain/__init__.py b/packages/python/plotly/plotly/validators/layout/grid/domain/__init__.py index 8f47dc4d28a..4a45579226c 100644 --- a/packages/python/plotly/plotly/validators/layout/grid/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/grid/domain/__init__.py @@ -1,33 +1,20 @@ - - import _plotly_utils.basevalidators class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='y', parent_name='layout.grid.domain', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="layout.grid.domain", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -36,29 +23,18 @@ def __init__( class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='x', parent_name='layout.grid.domain', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="layout.grid.domain", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/__init__.py index 747e5b167fa..f90b83dbe8c 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='layout.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="layout.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,16 +19,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='layout.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="layout.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -55,7 +47,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -65,18 +57,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='layout.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="layout.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -85,15 +73,14 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='bgcolor', parent_name='layout.hoverlabel', **kwargs + self, plotly_name="bgcolor", parent_name="layout.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -102,15 +89,12 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='layout.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="layout.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/__init__.py index 2ed67626ab7..0a3f775fc61 100644 --- a/packages/python/plotly/plotly/validators/layout/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/hoverlabel/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='layout.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="layout.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='layout.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="layout.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="layout.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/image/__init__.py b/packages/python/plotly/plotly/validators/layout/image/__init__.py index e0d7d911a00..57e294d3bb8 100644 --- a/packages/python/plotly/plotly/validators/layout/image/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/image/__init__.py @@ -1,21 +1,14 @@ - - import _plotly_utils.basevalidators class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='yref', parent_name='layout.image', **kwargs - ): + def __init__(self, plotly_name="yref", parent_name="layout.image", **kwargs): super(YrefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['paper', '/^y([2-9]|[1-9][0-9]+)?$/'] - ), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["paper", "/^y([2-9]|[1-9][0-9]+)?$/"]), **kwargs ) @@ -24,16 +17,13 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='yanchor', parent_name='layout.image', **kwargs - ): + def __init__(self, plotly_name="yanchor", parent_name="layout.image", **kwargs): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -42,13 +32,12 @@ def __init__( class YValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='y', parent_name='layout.image', **kwargs): + def __init__(self, plotly_name="y", parent_name="layout.image", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -57,18 +46,13 @@ def __init__(self, plotly_name='y', parent_name='layout.image', **kwargs): class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xref', parent_name='layout.image', **kwargs - ): + def __init__(self, plotly_name="xref", parent_name="layout.image", **kwargs): super(XrefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['paper', '/^x([2-9]|[1-9][0-9]+)?$/'] - ), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["paper", "/^x([2-9]|[1-9][0-9]+)?$/"]), **kwargs ) @@ -77,16 +61,13 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xanchor', parent_name='layout.image', **kwargs - ): + def __init__(self, plotly_name="xanchor", parent_name="layout.image", **kwargs): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -95,13 +76,12 @@ def __init__( class XValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='x', parent_name='layout.image', **kwargs): + def __init__(self, plotly_name="x", parent_name="layout.image", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -110,15 +90,12 @@ def __init__(self, plotly_name='x', parent_name='layout.image', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='visible', parent_name='layout.image', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="layout.image", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -127,18 +104,14 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='templateitemname', - parent_name='layout.image', - **kwargs + self, plotly_name="templateitemname", parent_name="layout.image", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -147,15 +120,12 @@ def __init__( class SourceValidator(_plotly_utils.basevalidators.ImageUriValidator): - - def __init__( - self, plotly_name='source', parent_name='layout.image', **kwargs - ): + def __init__(self, plotly_name="source", parent_name="layout.image", **kwargs): super(SourceValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -164,16 +134,13 @@ def __init__( class SizingValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='sizing', parent_name='layout.image', **kwargs - ): + def __init__(self, plotly_name="sizing", parent_name="layout.image", **kwargs): super(SizingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fill', 'contain', 'stretch']), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fill", "contain", "stretch"]), **kwargs ) @@ -182,15 +149,12 @@ def __init__( class SizeyValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='sizey', parent_name='layout.image', **kwargs - ): + def __init__(self, plotly_name="sizey", parent_name="layout.image", **kwargs): super(SizeyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -199,15 +163,12 @@ def __init__( class SizexValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='sizex', parent_name='layout.image', **kwargs - ): + def __init__(self, plotly_name="sizex", parent_name="layout.image", **kwargs): super(SizexValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -216,17 +177,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='layout.image', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="layout.image", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -235,15 +193,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='layout.image', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="layout.image", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -252,15 +207,12 @@ def __init__( class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='layer', parent_name='layout.image', **kwargs - ): + def __init__(self, plotly_name="layer", parent_name="layout.image", **kwargs): super(LayerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['below', 'above']), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["below", "above"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/legend/__init__.py b/packages/python/plotly/plotly/validators/layout/legend/__init__.py index 2b011b64166..636139d13f8 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/legend/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='yanchor', parent_name='layout.legend', **kwargs - ): + def __init__(self, plotly_name="yanchor", parent_name="layout.legend", **kwargs): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "legend"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), **kwargs ) @@ -22,15 +17,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='y', parent_name='layout.legend', **kwargs): + def __init__(self, plotly_name="y", parent_name="layout.legend", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "legend"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -39,16 +33,13 @@ def __init__(self, plotly_name='y', parent_name='layout.legend', **kwargs): class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xanchor', parent_name='layout.legend', **kwargs - ): + def __init__(self, plotly_name="xanchor", parent_name="layout.legend", **kwargs): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "legend"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "left", "center", "right"]), **kwargs ) @@ -57,15 +48,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='x', parent_name='layout.legend', **kwargs): + def __init__(self, plotly_name="x", parent_name="layout.legend", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "legend"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -74,16 +64,13 @@ def __init__(self, plotly_name='x', parent_name='layout.legend', **kwargs): class ValignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='valign', parent_name='layout.legend', **kwargs - ): + def __init__(self, plotly_name="valign", parent_name="layout.legend", **kwargs): super(ValignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "legend"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -92,15 +79,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='layout.legend', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="layout.legend", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,17 +93,14 @@ def __init__( class TraceorderValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='traceorder', parent_name='layout.legend', **kwargs - ): + def __init__(self, plotly_name="traceorder", parent_name="layout.legend", **kwargs): super(TraceorderValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - extras=kwargs.pop('extras', ['normal']), - flags=kwargs.pop('flags', ['reversed', 'grouped']), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "legend"), + extras=kwargs.pop("extras", ["normal"]), + flags=kwargs.pop("flags", ["reversed", "grouped"]), + role=kwargs.pop("role", "style"), **kwargs ) @@ -128,19 +109,15 @@ def __init__( class TracegroupgapValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tracegroupgap', - parent_name='layout.legend', - **kwargs + self, plotly_name="tracegroupgap", parent_name="layout.legend", **kwargs ): super(TracegroupgapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "legend"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -149,16 +126,15 @@ def __init__( class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='orientation', parent_name='layout.legend', **kwargs + self, plotly_name="orientation", parent_name="layout.legend", **kwargs ): super(OrientationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['v', 'h']), + edit_type=kwargs.pop("edit_type", "legend"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["v", "h"]), **kwargs ) @@ -167,16 +143,13 @@ def __init__( class ItemsizingValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='itemsizing', parent_name='layout.legend', **kwargs - ): + def __init__(self, plotly_name="itemsizing", parent_name="layout.legend", **kwargs): super(ItemsizingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['trace', 'constant']), + edit_type=kwargs.pop("edit_type", "legend"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["trace", "constant"]), **kwargs ) @@ -184,22 +157,16 @@ def __init__( import _plotly_utils.basevalidators -class ItemdoubleclickValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ItemdoubleclickValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='itemdoubleclick', - parent_name='layout.legend', - **kwargs + self, plotly_name="itemdoubleclick", parent_name="layout.legend", **kwargs ): super(ItemdoubleclickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['toggle', 'toggleothers', False]), + edit_type=kwargs.pop("edit_type", "legend"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["toggle", "toggleothers", False]), **kwargs ) @@ -208,16 +175,13 @@ def __init__( class ItemclickValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='itemclick', parent_name='layout.legend', **kwargs - ): + def __init__(self, plotly_name="itemclick", parent_name="layout.legend", **kwargs): super(ItemclickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['toggle', 'toggleothers', False]), + edit_type=kwargs.pop("edit_type", "legend"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["toggle", "toggleothers", False]), **kwargs ) @@ -226,16 +190,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='layout.legend', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="layout.legend", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -256,7 +218,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -266,16 +228,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='borderwidth', parent_name='layout.legend', **kwargs + self, plotly_name="borderwidth", parent_name="layout.legend", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "legend"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -284,15 +245,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='bordercolor', parent_name='layout.legend', **kwargs + self, plotly_name="bordercolor", parent_name="layout.legend", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "legend"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -301,14 +261,11 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='layout.legend', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="layout.legend", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "legend"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/legend/font/__init__.py b/packages/python/plotly/plotly/validators/layout/legend/font/__init__.py index 453be6de5b9..9a10b10ea12 100644 --- a/packages/python/plotly/plotly/validators/layout/legend/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/legend/font/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='layout.legend.font', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="layout.legend.font", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "legend"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,17 +17,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='family', parent_name='layout.legend.font', **kwargs + self, plotly_name="family", parent_name="layout.legend.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "legend"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -41,14 +35,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='layout.legend.font', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="layout.legend.font", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'legend'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "legend"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/__init__.py index d25ce6c0b4c..75b4ddcf5bd 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ZoomValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='zoom', parent_name='layout.mapbox', **kwargs - ): + def __init__(self, plotly_name="zoom", parent_name="layout.mapbox", **kwargs): super(ZoomValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,15 +16,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='layout.mapbox', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="layout.mapbox", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -38,20 +30,23 @@ def __init__( class StyleValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='style', parent_name='layout.mapbox', **kwargs - ): + def __init__(self, plotly_name="style", parent_name="layout.mapbox", **kwargs): super(StyleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 'basic', 'streets', 'outdoors', 'light', 'dark', - 'satellite', 'satellite-streets' - ] + "values", + [ + "basic", + "streets", + "outdoors", + "light", + "dark", + "satellite", + "satellite-streets", + ], ), **kwargs ) @@ -61,15 +56,12 @@ def __init__( class PitchValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='pitch', parent_name='layout.mapbox', **kwargs - ): + def __init__(self, plotly_name="pitch", parent_name="layout.mapbox", **kwargs): super(PitchValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -78,19 +70,18 @@ def __init__( class LayerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='layerdefaults', - parent_name='layout.mapbox', - **kwargs + self, plotly_name="layerdefaults", parent_name="layout.mapbox", **kwargs ): super(LayerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Layer'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Layer"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -99,16 +90,14 @@ def __init__( class LayersValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - - def __init__( - self, plotly_name='layers', parent_name='layout.mapbox', **kwargs - ): + def __init__(self, plotly_name="layers", parent_name="layout.mapbox", **kwargs): super(LayersValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Layer'), + data_class_str=kwargs.pop("data_class_str", "Layer"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ below Determines if the layer will be inserted before the layer with the specified ID. If omitted or @@ -199,7 +188,7 @@ def __init__( not compatible with Point GeoJSON geometries. visible Determines whether this layer is displayed -""" +""", ), **kwargs ) @@ -209,16 +198,14 @@ def __init__( class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='domain', parent_name='layout.mapbox', **kwargs - ): + def __init__(self, plotly_name="domain", parent_name="layout.mapbox", **kwargs): super(DomainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Domain'), + data_class_str=kwargs.pop("data_class_str", "Domain"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ column If there is a layout grid, use the domain for this column in the grid for this mapbox subplot @@ -232,7 +219,7 @@ def __init__( y Sets the vertical domain of this mapbox subplot (in plot fraction). -""" +""", ), **kwargs ) @@ -242,23 +229,21 @@ def __init__( class CenterValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='center', parent_name='layout.mapbox', **kwargs - ): + def __init__(self, plotly_name="center", parent_name="layout.mapbox", **kwargs): super(CenterValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Center'), + data_class_str=kwargs.pop("data_class_str", "Center"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ lat Sets the latitude of the center of the map (in degrees North). lon Sets the longitude of the center of the map (in degrees East). -""" +""", ), **kwargs ) @@ -268,15 +253,12 @@ def __init__( class BearingValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='bearing', parent_name='layout.mapbox', **kwargs - ): + def __init__(self, plotly_name="bearing", parent_name="layout.mapbox", **kwargs): super(BearingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -285,16 +267,15 @@ def __init__( class AccesstokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='accesstoken', parent_name='layout.mapbox', **kwargs + self, plotly_name="accesstoken", parent_name="layout.mapbox", **kwargs ): super(AccesstokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/center/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/center/__init__.py index 8a7cb0de311..e3e0f2f75a3 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/center/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/center/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class LonValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='lon', parent_name='layout.mapbox.center', **kwargs - ): + def __init__(self, plotly_name="lon", parent_name="layout.mapbox.center", **kwargs): super(LonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,14 +16,11 @@ def __init__( class LatValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='lat', parent_name='layout.mapbox.center', **kwargs - ): + def __init__(self, plotly_name="lat", parent_name="layout.mapbox.center", **kwargs): super(LatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/domain/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/domain/__init__.py index 801ba6800ea..0743020ec0e 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/domain/__init__.py @@ -1,33 +1,20 @@ - - import _plotly_utils.basevalidators class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='y', parent_name='layout.mapbox.domain', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="layout.mapbox.domain", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -36,30 +23,19 @@ def __init__( class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='x', parent_name='layout.mapbox.domain', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="layout.mapbox.domain", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -68,16 +44,13 @@ def __init__( class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='row', parent_name='layout.mapbox.domain', **kwargs - ): + def __init__(self, plotly_name="row", parent_name="layout.mapbox.domain", **kwargs): super(RowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -86,18 +59,14 @@ def __init__( class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='column', - parent_name='layout.mapbox.domain', - **kwargs + self, plotly_name="column", parent_name="layout.mapbox.domain", **kwargs ): super(ColumnValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/__init__.py index f6d71041dc3..2709ed8e2f0 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='visible', - parent_name='layout.mapbox.layer', - **kwargs + self, plotly_name="visible", parent_name="layout.mapbox.layer", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,16 +18,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='layout.mapbox.layer', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="layout.mapbox.layer", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['circle', 'line', 'fill', 'symbol']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["circle", "line", "fill", "symbol"]), **kwargs ) @@ -42,18 +33,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='layout.mapbox.layer', + plotly_name="templateitemname", + parent_name="layout.mapbox.layer", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -62,19 +52,16 @@ def __init__( class SymbolValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='symbol', - parent_name='layout.mapbox.layer', - **kwargs + self, plotly_name="symbol", parent_name="layout.mapbox.layer", **kwargs ): super(SymbolValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Symbol'), + data_class_str=kwargs.pop("data_class_str", "Symbol"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ icon Sets the symbol icon image (mapbox.layer.layout.icon-image). Full list: @@ -103,7 +90,7 @@ def __init__( textposition Sets the positions of the `text` elements with respects to the (x,y) coordinates. -""" +""", ), **kwargs ) @@ -113,19 +100,15 @@ def __init__( class SourcetypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='sourcetype', - parent_name='layout.mapbox.layer', - **kwargs + self, plotly_name="sourcetype", parent_name="layout.mapbox.layer", **kwargs ): super(SourcetypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['geojson', 'vector']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["geojson", "vector"]), **kwargs ) @@ -134,18 +117,14 @@ def __init__( class SourcelayerValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='sourcelayer', - parent_name='layout.mapbox.layer', - **kwargs + self, plotly_name="sourcelayer", parent_name="layout.mapbox.layer", **kwargs ): super(SourcelayerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -154,18 +133,14 @@ def __init__( class SourceValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='source', - parent_name='layout.mapbox.layer', - **kwargs + self, plotly_name="source", parent_name="layout.mapbox.layer", **kwargs ): super(SourceValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -174,20 +149,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='layout.mapbox.layer', - **kwargs + self, plotly_name="opacity", parent_name="layout.mapbox.layer", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -196,15 +167,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='layout.mapbox.layer', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="layout.mapbox.layer", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -213,20 +181,16 @@ def __init__( class MinzoomValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='minzoom', - parent_name='layout.mapbox.layer', - **kwargs + self, plotly_name="minzoom", parent_name="layout.mapbox.layer", **kwargs ): super(MinzoomValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 24), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 24), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -235,20 +199,16 @@ def __init__( class MaxzoomValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxzoom', - parent_name='layout.mapbox.layer', - **kwargs + self, plotly_name="maxzoom", parent_name="layout.mapbox.layer", **kwargs ): super(MaxzoomValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 24), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 24), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -257,16 +217,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='layout.mapbox.layer', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="layout.mapbox.layer", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dash Sets the length of dashes and gaps (mapbox.layer.paint.line-dasharray). Has an @@ -278,7 +236,7 @@ def __init__( Sets the line width (mapbox.layer.paint.line- width). Has an effect only when `type` is set to "line". -""" +""", ), **kwargs ) @@ -288,21 +246,19 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='fill', parent_name='layout.mapbox.layer', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="layout.mapbox.layer", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Fill'), + data_class_str=kwargs.pop("data_class_str", "Fill"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ outlinecolor Sets the fill outline color (mapbox.layer.paint.fill-outline-color). Has an effect only when `type` is set to "fill". -""" +""", ), **kwargs ) @@ -312,15 +268,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='color', parent_name='layout.mapbox.layer', **kwargs + self, plotly_name="color", parent_name="layout.mapbox.layer", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -329,24 +284,21 @@ def __init__( class CircleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='circle', - parent_name='layout.mapbox.layer', - **kwargs + self, plotly_name="circle", parent_name="layout.mapbox.layer", **kwargs ): super(CircleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Circle'), + data_class_str=kwargs.pop("data_class_str", "Circle"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ radius Sets the circle radius (mapbox.layer.paint.circle-radius). Has an effect only when `type` is set to "circle". -""" +""", ), **kwargs ) @@ -356,14 +308,13 @@ def __init__( class BelowValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='below', parent_name='layout.mapbox.layer', **kwargs + self, plotly_name="below", parent_name="layout.mapbox.layer", **kwargs ): super(BelowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/circle/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/circle/__init__.py index 36c915dbdcb..22332f85079 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/circle/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/circle/__init__.py @@ -1,20 +1,14 @@ - - import _plotly_utils.basevalidators class RadiusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='radius', - parent_name='layout.mapbox.layer.circle', - **kwargs + self, plotly_name="radius", parent_name="layout.mapbox.layer.circle", **kwargs ): super(RadiusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/fill/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/fill/__init__.py index 796bb7e7217..ac74b4be7b3 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/fill/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/fill/__init__.py @@ -1,20 +1,17 @@ - - import _plotly_utils.basevalidators class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='outlinecolor', - parent_name='layout.mapbox.layer.fill', + plotly_name="outlinecolor", + parent_name="layout.mapbox.layer.fill", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/__init__.py index 978c69658ef..8245745b0ff 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/line/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='layout.mapbox.layer.line', - **kwargs + self, plotly_name="width", parent_name="layout.mapbox.layer.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class DashsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='dashsrc', - parent_name='layout.mapbox.layer.line', - **kwargs + self, plotly_name="dashsrc", parent_name="layout.mapbox.layer.line", **kwargs ): super(DashsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,17 +34,13 @@ def __init__( class DashValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='dash', - parent_name='layout.mapbox.layer.line', - **kwargs + self, plotly_name="dash", parent_name="layout.mapbox.layer.line", **kwargs ): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/__init__.py index 5a423d037cd..7a8ca30d9bf 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/__init__.py @@ -1,28 +1,32 @@ - - import _plotly_utils.basevalidators class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='textposition', - parent_name='layout.mapbox.layer.symbol', + plotly_name="textposition", + parent_name="layout.mapbox.layer.symbol", **kwargs ): super(TextpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 'top left', 'top center', 'top right', 'middle left', - 'middle center', 'middle right', 'bottom left', - 'bottom center', 'bottom right' - ] + "values", + [ + "top left", + "top center", + "top right", + "middle left", + "middle center", + "middle right", + "bottom left", + "bottom center", + "bottom right", + ], ), **kwargs ) @@ -32,19 +36,16 @@ def __init__( class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='layout.mapbox.layer.symbol', - **kwargs + self, plotly_name="textfont", parent_name="layout.mapbox.layer.symbol", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -65,7 +66,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -75,18 +76,14 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='layout.mapbox.layer.symbol', - **kwargs + self, plotly_name="text", parent_name="layout.mapbox.layer.symbol", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -95,19 +92,18 @@ def __init__( class PlacementValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='placement', - parent_name='layout.mapbox.layer.symbol', + plotly_name="placement", + parent_name="layout.mapbox.layer.symbol", **kwargs ): super(PlacementValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['point', 'line', 'line-center']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["point", "line", "line-center"]), **kwargs ) @@ -116,18 +112,14 @@ def __init__( class IconsizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='iconsize', - parent_name='layout.mapbox.layer.symbol', - **kwargs + self, plotly_name="iconsize", parent_name="layout.mapbox.layer.symbol", **kwargs ): super(IconsizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,17 +128,13 @@ def __init__( class IconValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='icon', - parent_name='layout.mapbox.layer.symbol', - **kwargs + self, plotly_name="icon", parent_name="layout.mapbox.layer.symbol", **kwargs ): super(IconValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/__init__.py b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/__init__.py index 63b436082dd..2f8127d9259 100644 --- a/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/mapbox/layer/symbol/textfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='layout.mapbox.layer.symbol.textfont', + plotly_name="size", + parent_name="layout.mapbox.layer.symbol.textfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.mapbox.layer.symbol.textfont', + plotly_name="family", + parent_name="layout.mapbox.layer.symbol.textfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='layout.mapbox.layer.symbol.textfont', + plotly_name="color", + parent_name="layout.mapbox.layer.symbol.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/margin/__init__.py b/packages/python/plotly/plotly/validators/layout/margin/__init__.py index 6d6756b7e99..4f48cb35b77 100644 --- a/packages/python/plotly/plotly/validators/layout/margin/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/margin/__init__.py @@ -1,17 +1,14 @@ - - import _plotly_utils.basevalidators class TValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='t', parent_name='layout.margin', **kwargs): + def __init__(self, plotly_name="t", parent_name="layout.margin", **kwargs): super(TValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -20,14 +17,13 @@ def __init__(self, plotly_name='t', parent_name='layout.margin', **kwargs): class RValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='r', parent_name='layout.margin', **kwargs): + def __init__(self, plotly_name="r", parent_name="layout.margin", **kwargs): super(RValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -36,16 +32,13 @@ def __init__(self, plotly_name='r', parent_name='layout.margin', **kwargs): class PadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='pad', parent_name='layout.margin', **kwargs - ): + def __init__(self, plotly_name="pad", parent_name="layout.margin", **kwargs): super(PadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -54,14 +47,13 @@ def __init__( class LValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='l', parent_name='layout.margin', **kwargs): + def __init__(self, plotly_name="l", parent_name="layout.margin", **kwargs): super(LValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -70,14 +62,13 @@ def __init__(self, plotly_name='l', parent_name='layout.margin', **kwargs): class BValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='b', parent_name='layout.margin', **kwargs): + def __init__(self, plotly_name="b", parent_name="layout.margin", **kwargs): super(BValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -86,14 +77,11 @@ def __init__(self, plotly_name='b', parent_name='layout.margin', **kwargs): class AutoexpandValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='autoexpand', parent_name='layout.margin', **kwargs - ): + def __init__(self, plotly_name="autoexpand", parent_name="layout.margin", **kwargs): super(AutoexpandValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/modebar/__init__.py b/packages/python/plotly/plotly/validators/layout/modebar/__init__.py index 1b347f8aaef..9b0a132b2ef 100644 --- a/packages/python/plotly/plotly/validators/layout/modebar/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/modebar/__init__.py @@ -1,18 +1,15 @@ - - import _plotly_utils.basevalidators class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name='uirevision', parent_name='layout.modebar', **kwargs + self, plotly_name="uirevision", parent_name="layout.modebar", **kwargs ): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,19 +18,15 @@ def __init__( class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='orientation', - parent_name='layout.modebar', - **kwargs + self, plotly_name="orientation", parent_name="layout.modebar", **kwargs ): super(OrientationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'modebar'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['v', 'h']), + edit_type=kwargs.pop("edit_type", "modebar"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["v", "h"]), **kwargs ) @@ -42,15 +35,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='layout.modebar', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="layout.modebar", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'modebar'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "modebar"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -59,15 +49,12 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='layout.modebar', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="layout.modebar", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'modebar'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "modebar"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -76,17 +63,13 @@ def __init__( class ActivecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='activecolor', - parent_name='layout.modebar', - **kwargs + self, plotly_name="activecolor", parent_name="layout.modebar", **kwargs ): super(ActivecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'modebar'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "modebar"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/polar/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/__init__.py index 2df7f702422..df9b08b3dc4 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='layout.polar', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="layout.polar", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,26 +16,19 @@ def __init__( class SectorValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='sector', parent_name='layout.polar', **kwargs - ): + def __init__(self, plotly_name="sector", parent_name="layout.polar", **kwargs): super(SectorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'editType': 'plot' - }, { - 'valType': 'number', - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "editType": "plot"}, + {"valType": "number", "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -49,16 +37,14 @@ def __init__( class RadialAxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='radialaxis', parent_name='layout.polar', **kwargs - ): + def __init__(self, plotly_name="radialaxis", parent_name="layout.polar", **kwargs): super(RadialAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'RadialAxis'), + data_class_str=kwargs.pop("data_class_str", "RadialAxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ angle Sets the angle (in degrees) from which the radial axis is drawn. Note that by default, @@ -335,7 +321,7 @@ def __init__( preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false -""" +""", ), **kwargs ) @@ -345,17 +331,14 @@ def __init__( class HoleValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='hole', parent_name='layout.polar', **kwargs - ): + def __init__(self, plotly_name="hole", parent_name="layout.polar", **kwargs): super(HoleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -364,16 +347,13 @@ def __init__( class GridshapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='gridshape', parent_name='layout.polar', **kwargs - ): + def __init__(self, plotly_name="gridshape", parent_name="layout.polar", **kwargs): super(GridshapeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['circular', 'linear']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["circular", "linear"]), **kwargs ) @@ -382,16 +362,14 @@ def __init__( class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='domain', parent_name='layout.polar', **kwargs - ): + def __init__(self, plotly_name="domain", parent_name="layout.polar", **kwargs): super(DomainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Domain'), + data_class_str=kwargs.pop("data_class_str", "Domain"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ column If there is a layout grid, use the domain for this column in the grid for this polar subplot @@ -405,7 +383,7 @@ def __init__( y Sets the vertical domain of this polar subplot (in plot fraction). -""" +""", ), **kwargs ) @@ -415,15 +393,12 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='layout.polar', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="layout.polar", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -432,16 +407,13 @@ def __init__( class BarmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='barmode', parent_name='layout.polar', **kwargs - ): + def __init__(self, plotly_name="barmode", parent_name="layout.polar", **kwargs): super(BarmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['stack', 'overlay']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["stack", "overlay"]), **kwargs ) @@ -450,17 +422,14 @@ def __init__( class BargapValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='bargap', parent_name='layout.polar', **kwargs - ): + def __init__(self, plotly_name="bargap", parent_name="layout.polar", **kwargs): super(BargapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -469,16 +438,14 @@ def __init__( class AngularAxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='angularaxis', parent_name='layout.polar', **kwargs - ): + def __init__(self, plotly_name="angularaxis", parent_name="layout.polar", **kwargs): super(AngularAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'AngularAxis'), + data_class_str=kwargs.pop("data_class_str", "AngularAxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ categoryarray Sets the order in which categories on this axis appear. Only has an effect if `categoryorder` @@ -725,7 +692,7 @@ def __init__( preserving interaction like dragging. Default is true when a cheater plot is present on the axis, otherwise false -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/__init__.py index e690d084c5d..c01c24cc16d 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='visible', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="visible", parent_name="layout.polar.angularaxis", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='uirevision', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="uirevision", parent_name="layout.polar.angularaxis", **kwargs ): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,19 +34,15 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='type', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="type", parent_name="layout.polar.angularaxis", **kwargs ): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['-', 'linear', 'category']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["-", "linear", "category"]), **kwargs ) @@ -65,19 +51,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="tickwidth", parent_name="layout.polar.angularaxis", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -86,18 +68,17 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='tickvalssrc', - parent_name='layout.polar.angularaxis', + plotly_name="tickvalssrc", + parent_name="layout.polar.angularaxis", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -106,18 +87,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="tickvals", parent_name="layout.polar.angularaxis", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -126,18 +103,17 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='ticktextsrc', - parent_name='layout.polar.angularaxis', + plotly_name="ticktextsrc", + parent_name="layout.polar.angularaxis", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -146,18 +122,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="ticktext", parent_name="layout.polar.angularaxis", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -166,18 +138,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="ticksuffix", parent_name="layout.polar.angularaxis", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -186,19 +154,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="ticks", parent_name="layout.polar.angularaxis", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -207,18 +171,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="tickprefix", parent_name="layout.polar.angularaxis", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -227,20 +187,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="tickmode", parent_name="layout.polar.angularaxis", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -249,19 +205,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="ticklen", parent_name="layout.polar.angularaxis", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -270,19 +222,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='layout.polar.angularaxis', + plotly_name="tickformatstopdefaults", + parent_name="layout.polar.angularaxis", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -290,22 +244,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='layout.polar.angularaxis', + plotly_name="tickformatstops", + parent_name="layout.polar.angularaxis", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -339,7 +291,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -349,18 +301,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="tickformat", parent_name="layout.polar.angularaxis", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -369,19 +317,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="tickfont", parent_name="layout.polar.angularaxis", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -402,7 +347,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -412,18 +357,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="tickcolor", parent_name="layout.polar.angularaxis", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -432,18 +373,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="tickangle", parent_name="layout.polar.angularaxis", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -452,19 +389,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="tick0", parent_name="layout.polar.angularaxis", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -473,19 +406,15 @@ def __init__( class ThetaunitValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='thetaunit', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="thetaunit", parent_name="layout.polar.angularaxis", **kwargs ): super(ThetaunitValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['radians', 'degrees']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["radians", "degrees"]), **kwargs ) @@ -493,22 +422,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='layout.polar.angularaxis', + plotly_name="showticksuffix", + parent_name="layout.polar.angularaxis", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -516,22 +442,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='layout.polar.angularaxis', + plotly_name="showtickprefix", + parent_name="layout.polar.angularaxis", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -540,18 +463,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='layout.polar.angularaxis', + plotly_name="showticklabels", + parent_name="layout.polar.angularaxis", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -560,18 +482,14 @@ def __init__( class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showline', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="showline", parent_name="layout.polar.angularaxis", **kwargs ): super(ShowlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -580,18 +498,14 @@ def __init__( class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showgrid', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="showgrid", parent_name="layout.polar.angularaxis", **kwargs ): super(ShowgridValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -600,19 +514,18 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='showexponent', - parent_name='layout.polar.angularaxis', + plotly_name="showexponent", + parent_name="layout.polar.angularaxis", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -620,21 +533,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='layout.polar.angularaxis', + plotly_name="separatethousands", + parent_name="layout.polar.angularaxis", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -643,18 +553,14 @@ def __init__( class RotationValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='rotation', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="rotation", parent_name="layout.polar.angularaxis", **kwargs ): super(RotationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -663,19 +569,15 @@ def __init__( class PeriodValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='period', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="period", parent_name="layout.polar.angularaxis", **kwargs ): super(PeriodValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -684,19 +586,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="nticks", parent_name="layout.polar.angularaxis", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -705,19 +603,15 @@ def __init__( class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='linewidth', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="linewidth", parent_name="layout.polar.angularaxis", **kwargs ): super(LinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -726,18 +620,14 @@ def __init__( class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='linecolor', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="linecolor", parent_name="layout.polar.angularaxis", **kwargs ): super(LinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -746,19 +636,15 @@ def __init__( class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='layer', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="layer", parent_name="layout.polar.angularaxis", **kwargs ): super(LayerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['above traces', 'below traces']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["above traces", "below traces"]), **kwargs ) @@ -767,18 +653,17 @@ def __init__( class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='hoverformat', - parent_name='layout.polar.angularaxis', + plotly_name="hoverformat", + parent_name="layout.polar.angularaxis", **kwargs ): super(HoverformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -787,19 +672,15 @@ def __init__( class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='gridwidth', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="gridwidth", parent_name="layout.polar.angularaxis", **kwargs ): super(GridwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -808,18 +689,14 @@ def __init__( class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='gridcolor', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="gridcolor", parent_name="layout.polar.angularaxis", **kwargs ): super(GridcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -827,24 +704,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='layout.polar.angularaxis', + plotly_name="exponentformat", + parent_name="layout.polar.angularaxis", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -853,19 +725,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="dtick", parent_name="layout.polar.angularaxis", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -874,19 +742,15 @@ def __init__( class DirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='direction', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="direction", parent_name="layout.polar.angularaxis", **kwargs ): super(DirectionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['counterclockwise', 'clockwise']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["counterclockwise", "clockwise"]), **kwargs ) @@ -895,18 +759,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.polar.angularaxis', - **kwargs + self, plotly_name="color", parent_name="layout.polar.angularaxis", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -915,27 +775,37 @@ def __init__( class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='categoryorder', - parent_name='layout.polar.angularaxis', + plotly_name="categoryorder", + parent_name="layout.polar.angularaxis", **kwargs ): super(CategoryorderValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'trace', 'category ascending', 'category descending', - 'array', 'total ascending', 'total descending', - 'min ascending', 'min descending', 'max ascending', - 'max descending', 'sum ascending', 'sum descending', - 'mean ascending', 'mean descending', 'median ascending', - 'median descending' - ] + "values", + [ + "trace", + "category ascending", + "category descending", + "array", + "total ascending", + "total descending", + "min ascending", + "min descending", + "max ascending", + "max descending", + "sum ascending", + "sum descending", + "mean ascending", + "mean descending", + "median ascending", + "median descending", + ], ), **kwargs ) @@ -945,18 +815,17 @@ def __init__( class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='categoryarraysrc', - parent_name='layout.polar.angularaxis', + plotly_name="categoryarraysrc", + parent_name="layout.polar.angularaxis", **kwargs ): super(CategoryarraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -965,17 +834,16 @@ def __init__( class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( self, - plotly_name='categoryarray', - parent_name='layout.polar.angularaxis', + plotly_name="categoryarray", + parent_name="layout.polar.angularaxis", **kwargs ): super(CategoryarrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/__init__.py index 4193ba494e2..67cfa297f41 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='layout.polar.angularaxis.tickfont', + plotly_name="size", + parent_name="layout.polar.angularaxis.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.polar.angularaxis.tickfont', + plotly_name="family", + parent_name="layout.polar.angularaxis.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='layout.polar.angularaxis.tickfont', + plotly_name="color", + parent_name="layout.polar.angularaxis.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/__init__.py index eee46cdafdf..dab117408fe 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/angularaxis/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='layout.polar.angularaxis.tickformatstop', + plotly_name="value", + parent_name="layout.polar.angularaxis.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='layout.polar.angularaxis.tickformatstop', + plotly_name="templateitemname", + parent_name="layout.polar.angularaxis.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='layout.polar.angularaxis.tickformatstop', + plotly_name="name", + parent_name="layout.polar.angularaxis.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='layout.polar.angularaxis.tickformatstop', + plotly_name="enabled", + parent_name="layout.polar.angularaxis.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='layout.polar.angularaxis.tickformatstop', + plotly_name="dtickrange", + parent_name="layout.polar.angularaxis.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'plot' - }, { - 'valType': 'any', - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "any", "editType": "plot"}, + {"valType": "any", "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/polar/domain/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/domain/__init__.py index eca761c57b5..1af4af2f202 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/domain/__init__.py @@ -1,33 +1,20 @@ - - import _plotly_utils.basevalidators class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='y', parent_name='layout.polar.domain', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="layout.polar.domain", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -36,30 +23,19 @@ def __init__( class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='x', parent_name='layout.polar.domain', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="layout.polar.domain", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -68,16 +44,13 @@ def __init__( class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='row', parent_name='layout.polar.domain', **kwargs - ): + def __init__(self, plotly_name="row", parent_name="layout.polar.domain", **kwargs): super(RowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -86,18 +59,14 @@ def __init__( class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='column', - parent_name='layout.polar.domain', - **kwargs + self, plotly_name="column", parent_name="layout.polar.domain", **kwargs ): super(ColumnValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/__init__.py index bffb8a3c5c6..ae64a2ce75e 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='visible', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="visible", parent_name="layout.polar.radialaxis", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='uirevision', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="uirevision", parent_name="layout.polar.radialaxis", **kwargs ): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,21 +34,15 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='type', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="type", parent_name="layout.polar.radialaxis", **kwargs ): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['-', 'linear', 'log', 'date', 'category'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["-", "linear", "log", "date", "category"]), **kwargs ) @@ -67,19 +51,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="title", parent_name="layout.polar.radialaxis", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this axis' title font. Note that the title's font used to be customized by the now @@ -90,7 +71,7 @@ def __init__( contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -100,19 +81,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="tickwidth", parent_name="layout.polar.radialaxis", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -121,18 +98,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="tickvalssrc", parent_name="layout.polar.radialaxis", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -141,18 +114,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="tickvals", parent_name="layout.polar.radialaxis", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -161,18 +130,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="ticktextsrc", parent_name="layout.polar.radialaxis", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -181,18 +146,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="ticktext", parent_name="layout.polar.radialaxis", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -201,18 +162,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="ticksuffix", parent_name="layout.polar.radialaxis", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -221,19 +178,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="ticks", parent_name="layout.polar.radialaxis", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -242,18 +195,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="tickprefix", parent_name="layout.polar.radialaxis", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -262,20 +211,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="tickmode", parent_name="layout.polar.radialaxis", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -284,19 +229,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="ticklen", parent_name="layout.polar.radialaxis", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -305,19 +246,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='layout.polar.radialaxis', + plotly_name="tickformatstopdefaults", + parent_name="layout.polar.radialaxis", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -325,22 +268,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='layout.polar.radialaxis', + plotly_name="tickformatstops", + parent_name="layout.polar.radialaxis", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -374,7 +315,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -384,18 +325,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="tickformat", parent_name="layout.polar.radialaxis", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -404,19 +341,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="tickfont", parent_name="layout.polar.radialaxis", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -437,7 +371,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -447,18 +381,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="tickcolor", parent_name="layout.polar.radialaxis", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -467,18 +397,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="tickangle", parent_name="layout.polar.radialaxis", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -487,19 +413,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="tick0", parent_name="layout.polar.radialaxis", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -508,19 +430,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="side", parent_name="layout.polar.radialaxis", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['clockwise', 'counterclockwise']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["clockwise", "counterclockwise"]), **kwargs ) @@ -528,22 +446,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='layout.polar.radialaxis', + plotly_name="showticksuffix", + parent_name="layout.polar.radialaxis", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -551,22 +466,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='layout.polar.radialaxis', + plotly_name="showtickprefix", + parent_name="layout.polar.radialaxis", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -575,18 +487,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='layout.polar.radialaxis', + plotly_name="showticklabels", + parent_name="layout.polar.radialaxis", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -595,18 +506,14 @@ def __init__( class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showline', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="showline", parent_name="layout.polar.radialaxis", **kwargs ): super(ShowlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -615,18 +522,14 @@ def __init__( class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showgrid', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="showgrid", parent_name="layout.polar.radialaxis", **kwargs ): super(ShowgridValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -635,19 +538,18 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='showexponent', - parent_name='layout.polar.radialaxis', + plotly_name="showexponent", + parent_name="layout.polar.radialaxis", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -655,21 +557,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='layout.polar.radialaxis', + plotly_name="separatethousands", + parent_name="layout.polar.radialaxis", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -678,19 +577,15 @@ def __init__( class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='rangemode', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="rangemode", parent_name="layout.polar.radialaxis", **kwargs ): super(RangemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['tozero', 'nonnegative', 'normal']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["tozero", "nonnegative", "normal"]), **kwargs ) @@ -699,37 +594,31 @@ def __init__( class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name='range', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="range", parent_name="layout.polar.radialaxis", **kwargs ): super(RangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'autorange': False}), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"autorange": False}), items=kwargs.pop( - 'items', [ + "items", + [ + { + "valType": "any", + "editType": "plot", + "impliedEdits": {"^autorange": False}, + }, { - 'valType': 'any', - 'editType': 'plot', - 'impliedEdits': { - '^autorange': False - } - }, { - 'valType': 'any', - 'editType': 'plot', - 'impliedEdits': { - '^autorange': False - } - } - ] + "valType": "any", + "editType": "plot", + "impliedEdits": {"^autorange": False}, + }, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -738,19 +627,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="nticks", parent_name="layout.polar.radialaxis", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -759,19 +644,15 @@ def __init__( class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='linewidth', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="linewidth", parent_name="layout.polar.radialaxis", **kwargs ): super(LinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -780,18 +661,14 @@ def __init__( class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='linecolor', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="linecolor", parent_name="layout.polar.radialaxis", **kwargs ): super(LinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -800,19 +677,15 @@ def __init__( class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='layer', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="layer", parent_name="layout.polar.radialaxis", **kwargs ): super(LayerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['above traces', 'below traces']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["above traces", "below traces"]), **kwargs ) @@ -821,18 +694,14 @@ def __init__( class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='hoverformat', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="hoverformat", parent_name="layout.polar.radialaxis", **kwargs ): super(HoverformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -841,19 +710,15 @@ def __init__( class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='gridwidth', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="gridwidth", parent_name="layout.polar.radialaxis", **kwargs ): super(GridwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -862,18 +727,14 @@ def __init__( class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='gridcolor', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="gridcolor", parent_name="layout.polar.radialaxis", **kwargs ): super(GridcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -881,24 +742,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='layout.polar.radialaxis', + plotly_name="exponentformat", + parent_name="layout.polar.radialaxis", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -907,19 +763,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="dtick", parent_name="layout.polar.radialaxis", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -928,18 +780,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="color", parent_name="layout.polar.radialaxis", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -948,27 +796,37 @@ def __init__( class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='categoryorder', - parent_name='layout.polar.radialaxis', + plotly_name="categoryorder", + parent_name="layout.polar.radialaxis", **kwargs ): super(CategoryorderValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'trace', 'category ascending', 'category descending', - 'array', 'total ascending', 'total descending', - 'min ascending', 'min descending', 'max ascending', - 'max descending', 'sum ascending', 'sum descending', - 'mean ascending', 'mean descending', 'median ascending', - 'median descending' - ] + "values", + [ + "trace", + "category ascending", + "category descending", + "array", + "total ascending", + "total descending", + "min ascending", + "min descending", + "max ascending", + "max descending", + "sum ascending", + "sum descending", + "mean ascending", + "mean descending", + "median ascending", + "median descending", + ], ), **kwargs ) @@ -978,18 +836,17 @@ def __init__( class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='categoryarraysrc', - parent_name='layout.polar.radialaxis', + plotly_name="categoryarraysrc", + parent_name="layout.polar.radialaxis", **kwargs ): super(CategoryarraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -998,18 +855,17 @@ def __init__( class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( self, - plotly_name='categoryarray', - parent_name='layout.polar.radialaxis', + plotly_name="categoryarray", + parent_name="layout.polar.radialaxis", **kwargs ): super(CategoryarrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1018,25 +874,34 @@ def __init__( class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='calendar', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="calendar", parent_name="layout.polar.radialaxis", **kwargs ): super(CalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -1046,20 +911,16 @@ def __init__( class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='autorange', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="autorange", parent_name="layout.polar.radialaxis", **kwargs ): super(AutorangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'reversed']), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "reversed"]), **kwargs ) @@ -1068,17 +929,13 @@ def __init__( class AngleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='angle', - parent_name='layout.polar.radialaxis', - **kwargs + self, plotly_name="angle", parent_name="layout.polar.radialaxis", **kwargs ): super(AngleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/__init__.py index ff81487d226..7a9395b0c04 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='layout.polar.radialaxis.tickfont', + plotly_name="size", + parent_name="layout.polar.radialaxis.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.polar.radialaxis.tickfont', + plotly_name="family", + parent_name="layout.polar.radialaxis.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='layout.polar.radialaxis.tickfont', + plotly_name="color", + parent_name="layout.polar.radialaxis.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/__init__.py index b81898289b7..1add8a26244 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='layout.polar.radialaxis.tickformatstop', + plotly_name="value", + parent_name="layout.polar.radialaxis.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='layout.polar.radialaxis.tickformatstop', + plotly_name="templateitemname", + parent_name="layout.polar.radialaxis.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='layout.polar.radialaxis.tickformatstop', + plotly_name="name", + parent_name="layout.polar.radialaxis.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='layout.polar.radialaxis.tickformatstop', + plotly_name="enabled", + parent_name="layout.polar.radialaxis.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='layout.polar.radialaxis.tickformatstop', + plotly_name="dtickrange", + parent_name="layout.polar.radialaxis.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'plot' - }, { - 'valType': 'any', - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "any", "editType": "plot"}, + {"valType": "any", "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/__init__.py index 760f03e03e8..f088a9fad82 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='layout.polar.radialaxis.title', - **kwargs + self, plotly_name="text", parent_name="layout.polar.radialaxis.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='layout.polar.radialaxis.title', - **kwargs + self, plotly_name="font", parent_name="layout.polar.radialaxis.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -57,7 +48,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/__init__.py index c7a4cdb2961..b67e2f374d1 100644 --- a/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/polar/radialaxis/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='layout.polar.radialaxis.title.font', + plotly_name="size", + parent_name="layout.polar.radialaxis.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.polar.radialaxis.title.font', + plotly_name="family", + parent_name="layout.polar.radialaxis.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='layout.polar.radialaxis.title.font', + plotly_name="color", + parent_name="layout.polar.radialaxis.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/radialaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/radialaxis/__init__.py index 714df7a04e3..15965b55eb6 100644 --- a/packages/python/plotly/plotly/validators/layout/radialaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/radialaxis/__init__.py @@ -1,18 +1,15 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='visible', parent_name='layout.radialaxis', **kwargs + self, plotly_name="visible", parent_name="layout.radialaxis", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,18 +18,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='layout.radialaxis', - **kwargs + self, plotly_name="ticksuffix", parent_name="layout.radialaxis", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -40,22 +33,16 @@ def __init__( import _plotly_utils.basevalidators -class TickorientationValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class TickorientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='tickorientation', - parent_name='layout.radialaxis', - **kwargs + self, plotly_name="tickorientation", parent_name="layout.radialaxis", **kwargs ): super(TickorientationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['horizontal', 'vertical']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["horizontal", "vertical"]), **kwargs ) @@ -64,16 +51,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='ticklen', parent_name='layout.radialaxis', **kwargs + self, plotly_name="ticklen", parent_name="layout.radialaxis", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -82,18 +68,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='layout.radialaxis', - **kwargs + self, plotly_name="tickcolor", parent_name="layout.radialaxis", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -102,18 +84,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='layout.radialaxis', - **kwargs + self, plotly_name="showticklabels", parent_name="layout.radialaxis", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -122,18 +100,14 @@ def __init__( class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showline', - parent_name='layout.radialaxis', - **kwargs + self, plotly_name="showline", parent_name="layout.radialaxis", **kwargs ): super(ShowlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -142,26 +116,19 @@ def __init__( class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='range', parent_name='layout.radialaxis', **kwargs - ): + def __init__(self, plotly_name="range", parent_name="layout.radialaxis", **kwargs): super(RangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'editType': 'plot' - }, { - 'valType': 'number', - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "editType": "plot"}, + {"valType": "number", "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -170,18 +137,14 @@ def __init__( class OrientationValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='orientation', - parent_name='layout.radialaxis', - **kwargs + self, plotly_name="orientation", parent_name="layout.radialaxis", **kwargs ): super(OrientationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -190,18 +153,14 @@ def __init__( class EndpaddingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='endpadding', - parent_name='layout.radialaxis', - **kwargs + self, plotly_name="endpadding", parent_name="layout.radialaxis", **kwargs ): super(EndpaddingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -210,29 +169,18 @@ def __init__( class DomainValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='domain', parent_name='layout.radialaxis', **kwargs - ): + def __init__(self, plotly_name="domain", parent_name="layout.radialaxis", **kwargs): super(DomainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/__init__.py index e57b6f8f2df..717eb151cc7 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/__init__.py @@ -1,19 +1,15 @@ - - import _plotly_utils.basevalidators class ZAxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='zaxis', parent_name='layout.scene', **kwargs - ): + def __init__(self, plotly_name="zaxis", parent_name="layout.scene", **kwargs): super(ZAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ZAxis'), + data_class_str=kwargs.pop("data_class_str", "ZAxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autorange Determines whether or not the range of this axis is computed in relation to the input data. @@ -300,7 +296,7 @@ def __init__( Sets the line color of the zero line. zerolinewidth Sets the width (in px) of the zero line. -""" +""", ), **kwargs ) @@ -310,16 +306,14 @@ def __init__( class YAxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='yaxis', parent_name='layout.scene', **kwargs - ): + def __init__(self, plotly_name="yaxis", parent_name="layout.scene", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'YAxis'), + data_class_str=kwargs.pop("data_class_str", "YAxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autorange Determines whether or not the range of this axis is computed in relation to the input data. @@ -606,7 +600,7 @@ def __init__( Sets the line color of the zero line. zerolinewidth Sets the width (in px) of the zero line. -""" +""", ), **kwargs ) @@ -616,16 +610,14 @@ def __init__( class XAxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='xaxis', parent_name='layout.scene', **kwargs - ): + def __init__(self, plotly_name="xaxis", parent_name="layout.scene", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'XAxis'), + data_class_str=kwargs.pop("data_class_str", "XAxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autorange Determines whether or not the range of this axis is computed in relation to the input data. @@ -912,7 +904,7 @@ def __init__( Sets the line color of the zero line. zerolinewidth Sets the width (in px) of the zero line. -""" +""", ), **kwargs ) @@ -922,15 +914,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='layout.scene', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="layout.scene", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -939,16 +928,13 @@ def __init__( class HovermodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='hovermode', parent_name='layout.scene', **kwargs - ): + def __init__(self, plotly_name="hovermode", parent_name="layout.scene", **kwargs): super(HovermodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'modebar'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['closest', False]), + edit_type=kwargs.pop("edit_type", "modebar"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["closest", False]), **kwargs ) @@ -957,18 +943,13 @@ def __init__( class DragmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='dragmode', parent_name='layout.scene', **kwargs - ): + def __init__(self, plotly_name="dragmode", parent_name="layout.scene", **kwargs): super(DragmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['orbit', 'turntable', 'zoom', 'pan', False] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["orbit", "turntable", "zoom", "pan", False]), **kwargs ) @@ -977,16 +958,14 @@ def __init__( class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='domain', parent_name='layout.scene', **kwargs - ): + def __init__(self, plotly_name="domain", parent_name="layout.scene", **kwargs): super(DomainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Domain'), + data_class_str=kwargs.pop("data_class_str", "Domain"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ column If there is a layout grid, use the domain for this column in the grid for this scene subplot @@ -1000,7 +979,7 @@ def __init__( y Sets the vertical domain of this scene subplot (in plot fraction). -""" +""", ), **kwargs ) @@ -1010,16 +989,14 @@ def __init__( class CameraValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='camera', parent_name='layout.scene', **kwargs - ): + def __init__(self, plotly_name="camera", parent_name="layout.scene", **kwargs): super(CameraValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Camera'), + data_class_str=kwargs.pop("data_class_str", "Camera"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ center Sets the (x,y,z) components of the 'center' camera vector This vector determines the @@ -1039,7 +1016,7 @@ def __init__( of this scene with respect to the page. The default is *{x: 0, y: 0, z: 1}* which means that the z axis points up. -""" +""", ), **kwargs ) @@ -1049,15 +1026,12 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='layout.scene', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="layout.scene", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1066,23 +1040,21 @@ def __init__( class AspectratioValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='aspectratio', parent_name='layout.scene', **kwargs - ): + def __init__(self, plotly_name="aspectratio", parent_name="layout.scene", **kwargs): super(AspectratioValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Aspectratio'), + data_class_str=kwargs.pop("data_class_str", "Aspectratio"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x y z -""" +""", ), **kwargs ) @@ -1092,17 +1064,14 @@ def __init__( class AspectmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='aspectmode', parent_name='layout.scene', **kwargs - ): + def __init__(self, plotly_name="aspectmode", parent_name="layout.scene", **kwargs): super(AspectmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'cube', 'data', 'manual']), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "cube", "data", "manual"]), **kwargs ) @@ -1111,19 +1080,18 @@ def __init__( class AnnotationValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='annotationdefaults', - parent_name='layout.scene', - **kwargs + self, plotly_name="annotationdefaults", parent_name="layout.scene", **kwargs ): super(AnnotationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Annotation'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Annotation"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -1131,19 +1099,15 @@ def __init__( import _plotly_utils.basevalidators -class AnnotationsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - - def __init__( - self, plotly_name='annotations', parent_name='layout.scene', **kwargs - ): +class AnnotationsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + def __init__(self, plotly_name="annotations", parent_name="layout.scene", **kwargs): super(AnnotationsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Annotation'), + data_class_str=kwargs.pop("data_class_str", "Annotation"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` @@ -1321,7 +1285,7 @@ def __init__( many pixels. z Sets the annotation's z position. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/__init__.py index dc4559605d4..c6bf6135183 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/__init__.py @@ -1,18 +1,15 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name='z', parent_name='layout.scene.annotation', **kwargs + self, plotly_name="z", parent_name="layout.scene.annotation", **kwargs ): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,18 +18,14 @@ def __init__( class YshiftValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='yshift', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="yshift", parent_name="layout.scene.annotation", **kwargs ): super(YshiftValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -41,19 +34,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="yanchor", parent_name="layout.scene.annotation", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), **kwargs ) @@ -62,15 +51,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name='y', parent_name='layout.scene.annotation', **kwargs + self, plotly_name="y", parent_name="layout.scene.annotation", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -79,18 +67,14 @@ def __init__( class XshiftValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xshift', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="xshift", parent_name="layout.scene.annotation", **kwargs ): super(XshiftValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -99,19 +83,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="xanchor", parent_name="layout.scene.annotation", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "left", "center", "right"]), **kwargs ) @@ -120,15 +100,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name='x', parent_name='layout.scene.annotation', **kwargs + self, plotly_name="x", parent_name="layout.scene.annotation", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -137,19 +116,15 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="width", parent_name="layout.scene.annotation", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -158,18 +133,14 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='visible', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="visible", parent_name="layout.scene.annotation", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -178,19 +149,15 @@ def __init__( class ValignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='valign', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="valign", parent_name="layout.scene.annotation", **kwargs ): super(ValignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -199,18 +166,14 @@ def __init__( class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='textangle', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="textangle", parent_name="layout.scene.annotation", **kwargs ): super(TextangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -219,18 +182,14 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="text", parent_name="layout.scene.annotation", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -239,18 +198,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='layout.scene.annotation', + plotly_name="templateitemname", + parent_name="layout.scene.annotation", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -259,19 +217,18 @@ def __init__( class StartstandoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='startstandoff', - parent_name='layout.scene.annotation', + plotly_name="startstandoff", + parent_name="layout.scene.annotation", **kwargs ): super(StartstandoffValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -280,19 +237,18 @@ def __init__( class StartarrowsizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='startarrowsize', - parent_name='layout.scene.annotation', + plotly_name="startarrowsize", + parent_name="layout.scene.annotation", **kwargs ): super(StartarrowsizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0.3), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0.3), + role=kwargs.pop("role", "style"), **kwargs ) @@ -301,20 +257,19 @@ def __init__( class StartarrowheadValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( self, - plotly_name='startarrowhead', - parent_name='layout.scene.annotation', + plotly_name="startarrowhead", + parent_name="layout.scene.annotation", **kwargs ): super(StartarrowheadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 8), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 8), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -323,19 +278,15 @@ def __init__( class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='standoff', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="standoff", parent_name="layout.scene.annotation", **kwargs ): super(StandoffValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -344,18 +295,14 @@ def __init__( class ShowarrowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showarrow', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="showarrow", parent_name="layout.scene.annotation", **kwargs ): super(ShowarrowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -364,20 +311,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="opacity", parent_name="layout.scene.annotation", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -386,18 +329,14 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='name', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="name", parent_name="layout.scene.annotation", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -406,18 +345,14 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='hovertext', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="hovertext", parent_name="layout.scene.annotation", **kwargs ): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -426,19 +361,16 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='hoverlabel', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="hoverlabel", parent_name="layout.scene.annotation", **kwargs ): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the background color of the hover label. By default uses the annotation's `bgcolor` made @@ -451,7 +383,7 @@ def __init__( Sets the hover label text font. By default uses the global hover font and size, with color from `hoverlabel.bordercolor`. -""" +""", ), **kwargs ) @@ -461,19 +393,15 @@ def __init__( class HeightValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='height', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="height", parent_name="layout.scene.annotation", **kwargs ): super(HeightValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -482,19 +410,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="font", parent_name="layout.scene.annotation", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -515,7 +440,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -525,18 +450,17 @@ def __init__( class CaptureeventsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='captureevents', - parent_name='layout.scene.annotation', + plotly_name="captureevents", + parent_name="layout.scene.annotation", **kwargs ): super(CaptureeventsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -545,19 +469,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="borderwidth", parent_name="layout.scene.annotation", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -566,19 +486,15 @@ def __init__( class BorderpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderpad', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="borderpad", parent_name="layout.scene.annotation", **kwargs ): super(BorderpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -587,18 +503,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="bordercolor", parent_name="layout.scene.annotation", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -607,18 +519,14 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="bgcolor", parent_name="layout.scene.annotation", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -627,18 +535,14 @@ def __init__( class AyValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ay', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="ay", parent_name="layout.scene.annotation", **kwargs ): super(AyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -647,18 +551,14 @@ def __init__( class AxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ax', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="ax", parent_name="layout.scene.annotation", **kwargs ): super(AxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -667,19 +567,15 @@ def __init__( class ArrowwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='arrowwidth', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="arrowwidth", parent_name="layout.scene.annotation", **kwargs ): super(ArrowwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0.1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0.1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -688,19 +584,15 @@ def __init__( class ArrowsizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='arrowsize', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="arrowsize", parent_name="layout.scene.annotation", **kwargs ): super(ArrowsizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0.3), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0.3), + role=kwargs.pop("role", "style"), **kwargs ) @@ -709,20 +601,16 @@ def __init__( class ArrowsideValidator(_plotly_utils.basevalidators.FlaglistValidator): - def __init__( - self, - plotly_name='arrowside', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="arrowside", parent_name="layout.scene.annotation", **kwargs ): super(ArrowsideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['none']), - flags=kwargs.pop('flags', ['end', 'start']), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["none"]), + flags=kwargs.pop("flags", ["end", "start"]), + role=kwargs.pop("role", "style"), **kwargs ) @@ -731,20 +619,16 @@ def __init__( class ArrowheadValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='arrowhead', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="arrowhead", parent_name="layout.scene.annotation", **kwargs ): super(ArrowheadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 8), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 8), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -753,18 +637,14 @@ def __init__( class ArrowcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='arrowcolor', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="arrowcolor", parent_name="layout.scene.annotation", **kwargs ): super(ArrowcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -773,18 +653,14 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='layout.scene.annotation', - **kwargs + self, plotly_name="align", parent_name="layout.scene.annotation", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/__init__.py index 6e29b809dc3..dff38b559dd 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='layout.scene.annotation.font', - **kwargs + self, plotly_name="size", parent_name="layout.scene.annotation.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='layout.scene.annotation.font', - **kwargs + self, plotly_name="family", parent_name="layout.scene.annotation.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.scene.annotation.font', - **kwargs + self, plotly_name="color", parent_name="layout.scene.annotation.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/__init__.py index 5bb6e0f4978..f1ef1fbc026 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/__init__.py @@ -1,22 +1,20 @@ - - import _plotly_utils.basevalidators class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='font', - parent_name='layout.scene.annotation.hoverlabel', + plotly_name="font", + parent_name="layout.scene.annotation.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -37,7 +35,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -47,18 +45,17 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='layout.scene.annotation.hoverlabel', + plotly_name="bordercolor", + parent_name="layout.scene.annotation.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -67,17 +64,16 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bgcolor', - parent_name='layout.scene.annotation.hoverlabel', + plotly_name="bgcolor", + parent_name="layout.scene.annotation.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/__init__.py index 8866b4eaa32..b99c2269eef 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/annotation/hoverlabel/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='layout.scene.annotation.hoverlabel.font', + plotly_name="size", + parent_name="layout.scene.annotation.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.scene.annotation.hoverlabel.font', + plotly_name="family", + parent_name="layout.scene.annotation.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='layout.scene.annotation.hoverlabel.font', + plotly_name="color", + parent_name="layout.scene.annotation.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/aspectratio/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/aspectratio/__init__.py index 96cbece504b..4613fa56c5a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/aspectratio/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/aspectratio/__init__.py @@ -1,25 +1,17 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='z', - parent_name='layout.scene.aspectratio', - **kwargs + self, plotly_name="z", parent_name="layout.scene.aspectratio", **kwargs ): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop( - 'implied_edits', {'^aspectmode': 'manual'} - ), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"^aspectmode": "manual"}), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -28,22 +20,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='y', - parent_name='layout.scene.aspectratio', - **kwargs + self, plotly_name="y", parent_name="layout.scene.aspectratio", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop( - 'implied_edits', {'^aspectmode': 'manual'} - ), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"^aspectmode": "manual"}), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -52,21 +38,15 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='x', - parent_name='layout.scene.aspectratio', - **kwargs + self, plotly_name="x", parent_name="layout.scene.aspectratio", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop( - 'implied_edits', {'^aspectmode': 'manual'} - ), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"^aspectmode": "manual"}), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/camera/__init__.py index 79f470e86b2..391109a3d51 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/__init__.py @@ -1,26 +1,22 @@ - - import _plotly_utils.basevalidators class UpValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='up', parent_name='layout.scene.camera', **kwargs - ): + def __init__(self, plotly_name="up", parent_name="layout.scene.camera", **kwargs): super(UpValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Up'), + data_class_str=kwargs.pop("data_class_str", "Up"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x y z -""" +""", ), **kwargs ) @@ -30,24 +26,21 @@ def __init__( class ProjectionValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='projection', - parent_name='layout.scene.camera', - **kwargs + self, plotly_name="projection", parent_name="layout.scene.camera", **kwargs ): super(ProjectionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Projection'), + data_class_str=kwargs.pop("data_class_str", "Projection"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ type Sets the projection type. The projection type could be either "perspective" or "orthographic". The default is "perspective". -""" +""", ), **kwargs ) @@ -57,23 +50,21 @@ def __init__( class EyeValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='eye', parent_name='layout.scene.camera', **kwargs - ): + def __init__(self, plotly_name="eye", parent_name="layout.scene.camera", **kwargs): super(EyeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Eye'), + data_class_str=kwargs.pop("data_class_str", "Eye"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x y z -""" +""", ), **kwargs ) @@ -83,26 +74,23 @@ def __init__( class CenterValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='center', - parent_name='layout.scene.camera', - **kwargs + self, plotly_name="center", parent_name="layout.scene.camera", **kwargs ): super(CenterValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Center'), + data_class_str=kwargs.pop("data_class_str", "Center"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x y z -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/center/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/camera/center/__init__.py index 0366935cb42..5df5a81a121 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/center/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/center/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='z', - parent_name='layout.scene.camera.center', - **kwargs + self, plotly_name="z", parent_name="layout.scene.camera.center", **kwargs ): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'camera'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "camera"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='y', - parent_name='layout.scene.camera.center', - **kwargs + self, plotly_name="y", parent_name="layout.scene.camera.center", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'camera'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "camera"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,17 +34,13 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='x', - parent_name='layout.scene.camera.center', - **kwargs + self, plotly_name="x", parent_name="layout.scene.camera.center", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'camera'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "camera"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/eye/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/camera/eye/__init__.py index 773d46ff21e..5d96506b95f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/eye/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/eye/__init__.py @@ -1,18 +1,15 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='z', parent_name='layout.scene.camera.eye', **kwargs + self, plotly_name="z", parent_name="layout.scene.camera.eye", **kwargs ): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'camera'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "camera"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,15 +18,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='y', parent_name='layout.scene.camera.eye', **kwargs + self, plotly_name="y", parent_name="layout.scene.camera.eye", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'camera'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "camera"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -38,14 +34,13 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='x', parent_name='layout.scene.camera.eye', **kwargs + self, plotly_name="x", parent_name="layout.scene.camera.eye", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'camera'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "camera"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/projection/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/camera/projection/__init__.py index a9ecc280f10..6ec9cee5825 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/projection/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/projection/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='type', - parent_name='layout.scene.camera.projection', - **kwargs + self, plotly_name="type", parent_name="layout.scene.camera.projection", **kwargs ): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['perspective', 'orthographic']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["perspective", "orthographic"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/camera/up/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/camera/up/__init__.py index c447b50aa4d..05c3b4bd865 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/camera/up/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/camera/up/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='z', parent_name='layout.scene.camera.up', **kwargs - ): + def __init__(self, plotly_name="z", parent_name="layout.scene.camera.up", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'camera'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "camera"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,15 +16,12 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='layout.scene.camera.up', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="layout.scene.camera.up", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'camera'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "camera"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -38,14 +30,11 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='layout.scene.camera.up', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="layout.scene.camera.up", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'camera'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "camera"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/domain/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/domain/__init__.py index 1fd7058b54a..1a750c6a8f1 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/domain/__init__.py @@ -1,33 +1,20 @@ - - import _plotly_utils.basevalidators class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='y', parent_name='layout.scene.domain', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="layout.scene.domain", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -36,30 +23,19 @@ def __init__( class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='x', parent_name='layout.scene.domain', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="layout.scene.domain", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -68,16 +44,13 @@ def __init__( class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='row', parent_name='layout.scene.domain', **kwargs - ): + def __init__(self, plotly_name="row", parent_name="layout.scene.domain", **kwargs): super(RowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -86,18 +59,14 @@ def __init__( class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='column', - parent_name='layout.scene.domain', - **kwargs + self, plotly_name="column", parent_name="layout.scene.domain", **kwargs ): super(ColumnValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/__init__.py index fc6771dc69a..1a6c37935d4 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ZerolinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='zerolinewidth', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="zerolinewidth", parent_name="layout.scene.xaxis", **kwargs ): super(ZerolinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class ZerolinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='zerolinecolor', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="zerolinecolor", parent_name="layout.scene.xaxis", **kwargs ): super(ZerolinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -44,18 +34,14 @@ def __init__( class ZerolineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='zeroline', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="zeroline", parent_name="layout.scene.xaxis", **kwargs ): super(ZerolineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +50,14 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='visible', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="visible", parent_name="layout.scene.xaxis", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,18 +66,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='layout.scene.xaxis', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="layout.scene.xaxis", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['-', 'linear', 'log', 'date', 'category'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["-", "linear", "log", "date", "category"]), **kwargs ) @@ -104,16 +81,14 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - - def __init__( - self, plotly_name='title', parent_name='layout.scene.xaxis', **kwargs - ): + def __init__(self, plotly_name="title", parent_name="layout.scene.xaxis", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this axis' title font. Note that the title's font used to be customized by the now @@ -124,7 +99,7 @@ def __init__( contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -134,19 +109,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="tickwidth", parent_name="layout.scene.xaxis", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -155,18 +126,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="tickvalssrc", parent_name="layout.scene.xaxis", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -175,18 +142,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="tickvals", parent_name="layout.scene.xaxis", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -195,18 +158,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="ticktextsrc", parent_name="layout.scene.xaxis", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -215,18 +174,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="ticktext", parent_name="layout.scene.xaxis", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -235,18 +190,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="ticksuffix", parent_name="layout.scene.xaxis", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -255,16 +206,13 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ticks', parent_name='layout.scene.xaxis', **kwargs - ): + def __init__(self, plotly_name="ticks", parent_name="layout.scene.xaxis", **kwargs): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -273,18 +221,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="tickprefix", parent_name="layout.scene.xaxis", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -293,20 +237,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="tickmode", parent_name="layout.scene.xaxis", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -315,19 +255,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="ticklen", parent_name="layout.scene.xaxis", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -336,19 +272,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='layout.scene.xaxis', + plotly_name="tickformatstopdefaults", + parent_name="layout.scene.xaxis", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -356,22 +294,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="tickformatstops", parent_name="layout.scene.xaxis", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -405,7 +338,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -415,18 +348,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="tickformat", parent_name="layout.scene.xaxis", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -435,19 +364,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="tickfont", parent_name="layout.scene.xaxis", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -468,7 +394,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -478,18 +404,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="tickcolor", parent_name="layout.scene.xaxis", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -498,18 +420,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="tickangle", parent_name="layout.scene.xaxis", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -518,16 +436,13 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='tick0', parent_name='layout.scene.xaxis', **kwargs - ): + def __init__(self, plotly_name="tick0", parent_name="layout.scene.xaxis", **kwargs): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -536,19 +451,15 @@ def __init__( class SpikethicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='spikethickness', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="spikethickness", parent_name="layout.scene.xaxis", **kwargs ): super(SpikethicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,18 +468,14 @@ def __init__( class SpikesidesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='spikesides', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="spikesides", parent_name="layout.scene.xaxis", **kwargs ): super(SpikesidesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -577,18 +484,14 @@ def __init__( class SpikecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='spikecolor', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="spikecolor", parent_name="layout.scene.xaxis", **kwargs ): super(SpikecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -596,22 +499,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="showticksuffix", parent_name="layout.scene.xaxis", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -619,22 +516,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="showtickprefix", parent_name="layout.scene.xaxis", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -643,18 +534,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="showticklabels", parent_name="layout.scene.xaxis", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -663,18 +550,14 @@ def __init__( class ShowspikesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showspikes', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="showspikes", parent_name="layout.scene.xaxis", **kwargs ): super(ShowspikesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -683,18 +566,14 @@ def __init__( class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showline', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="showline", parent_name="layout.scene.xaxis", **kwargs ): super(ShowlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -703,18 +582,14 @@ def __init__( class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showgrid', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="showgrid", parent_name="layout.scene.xaxis", **kwargs ): super(ShowgridValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -723,19 +598,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="showexponent", parent_name="layout.scene.xaxis", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -744,18 +615,14 @@ def __init__( class ShowbackgroundValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showbackground', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="showbackground", parent_name="layout.scene.xaxis", **kwargs ): super(ShowbackgroundValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -764,18 +631,14 @@ def __init__( class ShowaxeslabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showaxeslabels', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="showaxeslabels", parent_name="layout.scene.xaxis", **kwargs ): super(ShowaxeslabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -783,21 +646,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='layout.scene.xaxis', + plotly_name="separatethousands", + parent_name="layout.scene.xaxis", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -806,19 +666,15 @@ def __init__( class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='rangemode', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="rangemode", parent_name="layout.scene.xaxis", **kwargs ): super(RangemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['normal', 'tozero', 'nonnegative']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), **kwargs ) @@ -827,34 +683,29 @@ def __init__( class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='range', parent_name='layout.scene.xaxis', **kwargs - ): + def __init__(self, plotly_name="range", parent_name="layout.scene.xaxis", **kwargs): super(RangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', False), - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'autorange': False}), + anim=kwargs.pop("anim", False), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"autorange": False}), items=kwargs.pop( - 'items', [ + "items", + [ + { + "valType": "any", + "editType": "plot", + "impliedEdits": {"^autorange": False}, + }, { - 'valType': 'any', - 'editType': 'plot', - 'impliedEdits': { - '^autorange': False - } - }, { - 'valType': 'any', - 'editType': 'plot', - 'impliedEdits': { - '^autorange': False - } - } - ] + "valType": "any", + "editType": "plot", + "impliedEdits": {"^autorange": False}, + }, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -863,16 +714,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name='nticks', parent_name='layout.scene.xaxis', **kwargs + self, plotly_name="nticks", parent_name="layout.scene.xaxis", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -881,18 +731,15 @@ def __init__( class MirrorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='mirror', parent_name='layout.scene.xaxis', **kwargs + self, plotly_name="mirror", parent_name="layout.scene.xaxis", **kwargs ): super(MirrorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', [True, 'ticks', False, 'all', 'allticks'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", [True, "ticks", False, "all", "allticks"]), **kwargs ) @@ -901,19 +748,15 @@ def __init__( class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='linewidth', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="linewidth", parent_name="layout.scene.xaxis", **kwargs ): super(LinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -922,18 +765,14 @@ def __init__( class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='linecolor', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="linecolor", parent_name="layout.scene.xaxis", **kwargs ): super(LinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -942,18 +781,14 @@ def __init__( class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='hoverformat', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="hoverformat", parent_name="layout.scene.xaxis", **kwargs ): super(HoverformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -962,19 +797,15 @@ def __init__( class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='gridwidth', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="gridwidth", parent_name="layout.scene.xaxis", **kwargs ): super(GridwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -983,18 +814,14 @@ def __init__( class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='gridcolor', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="gridcolor", parent_name="layout.scene.xaxis", **kwargs ): super(GridcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1002,24 +829,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="exponentformat", parent_name="layout.scene.xaxis", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -1028,16 +847,13 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='dtick', parent_name='layout.scene.xaxis', **kwargs - ): + def __init__(self, plotly_name="dtick", parent_name="layout.scene.xaxis", **kwargs): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1046,15 +862,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='layout.scene.xaxis', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="layout.scene.xaxis", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1063,27 +876,34 @@ def __init__( class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='categoryorder', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="categoryorder", parent_name="layout.scene.xaxis", **kwargs ): super(CategoryorderValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'trace', 'category ascending', 'category descending', - 'array', 'total ascending', 'total descending', - 'min ascending', 'min descending', 'max ascending', - 'max descending', 'sum ascending', 'sum descending', - 'mean ascending', 'mean descending', 'median ascending', - 'median descending' - ] + "values", + [ + "trace", + "category ascending", + "category descending", + "array", + "total ascending", + "total descending", + "min ascending", + "min descending", + "max ascending", + "max descending", + "sum ascending", + "sum descending", + "mean ascending", + "mean descending", + "median ascending", + "median descending", + ], ), **kwargs ) @@ -1093,18 +913,14 @@ def __init__( class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='categoryarraysrc', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="categoryarraysrc", parent_name="layout.scene.xaxis", **kwargs ): super(CategoryarraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1113,18 +929,14 @@ def __init__( class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='categoryarray', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="categoryarray", parent_name="layout.scene.xaxis", **kwargs ): super(CategoryarrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1133,25 +945,34 @@ def __init__( class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='calendar', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="calendar", parent_name="layout.scene.xaxis", **kwargs ): super(CalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -1161,18 +982,14 @@ def __init__( class BackgroundcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='backgroundcolor', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="backgroundcolor", parent_name="layout.scene.xaxis", **kwargs ): super(BackgroundcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1181,19 +998,15 @@ def __init__( class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='autorange', - parent_name='layout.scene.xaxis', - **kwargs + self, plotly_name="autorange", parent_name="layout.scene.xaxis", **kwargs ): super(AutorangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'reversed']), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "reversed"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/__init__.py index 76d9fb3da61..20a92be5837 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='layout.scene.xaxis.tickfont', - **kwargs + self, plotly_name="size", parent_name="layout.scene.xaxis.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='layout.scene.xaxis.tickfont', - **kwargs + self, plotly_name="family", parent_name="layout.scene.xaxis.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.scene.xaxis.tickfont', - **kwargs + self, plotly_name="color", parent_name="layout.scene.xaxis.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/__init__.py index 96568a5334c..447caaf3ed9 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='layout.scene.xaxis.tickformatstop', + plotly_name="value", + parent_name="layout.scene.xaxis.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='layout.scene.xaxis.tickformatstop', + plotly_name="templateitemname", + parent_name="layout.scene.xaxis.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='layout.scene.xaxis.tickformatstop', + plotly_name="name", + parent_name="layout.scene.xaxis.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='layout.scene.xaxis.tickformatstop', + plotly_name="enabled", + parent_name="layout.scene.xaxis.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='layout.scene.xaxis.tickformatstop', + plotly_name="dtickrange", + parent_name="layout.scene.xaxis.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'plot' - }, { - 'valType': 'any', - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "any", "editType": "plot"}, + {"valType": "any", "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/__init__.py index 9d1363d98ab..c53adc6ae63 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='layout.scene.xaxis.title', - **kwargs + self, plotly_name="text", parent_name="layout.scene.xaxis.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='layout.scene.xaxis.title', - **kwargs + self, plotly_name="font", parent_name="layout.scene.xaxis.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -57,7 +48,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/__init__.py index 5af26fcd35f..11fb2e097c3 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/xaxis/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='layout.scene.xaxis.title.font', - **kwargs + self, plotly_name="size", parent_name="layout.scene.xaxis.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.scene.xaxis.title.font', + plotly_name="family", + parent_name="layout.scene.xaxis.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +40,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.scene.xaxis.title.font', - **kwargs + self, plotly_name="color", parent_name="layout.scene.xaxis.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/__init__.py index f9f68f5ba96..fb41f9f79c5 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ZerolinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='zerolinewidth', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="zerolinewidth", parent_name="layout.scene.yaxis", **kwargs ): super(ZerolinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class ZerolinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='zerolinecolor', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="zerolinecolor", parent_name="layout.scene.yaxis", **kwargs ): super(ZerolinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -44,18 +34,14 @@ def __init__( class ZerolineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='zeroline', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="zeroline", parent_name="layout.scene.yaxis", **kwargs ): super(ZerolineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +50,14 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='visible', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="visible", parent_name="layout.scene.yaxis", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,18 +66,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='layout.scene.yaxis', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="layout.scene.yaxis", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['-', 'linear', 'log', 'date', 'category'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["-", "linear", "log", "date", "category"]), **kwargs ) @@ -104,16 +81,14 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - - def __init__( - self, plotly_name='title', parent_name='layout.scene.yaxis', **kwargs - ): + def __init__(self, plotly_name="title", parent_name="layout.scene.yaxis", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this axis' title font. Note that the title's font used to be customized by the now @@ -124,7 +99,7 @@ def __init__( contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -134,19 +109,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="tickwidth", parent_name="layout.scene.yaxis", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -155,18 +126,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="tickvalssrc", parent_name="layout.scene.yaxis", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -175,18 +142,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="tickvals", parent_name="layout.scene.yaxis", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -195,18 +158,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="ticktextsrc", parent_name="layout.scene.yaxis", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -215,18 +174,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="ticktext", parent_name="layout.scene.yaxis", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -235,18 +190,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="ticksuffix", parent_name="layout.scene.yaxis", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -255,16 +206,13 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ticks', parent_name='layout.scene.yaxis', **kwargs - ): + def __init__(self, plotly_name="ticks", parent_name="layout.scene.yaxis", **kwargs): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -273,18 +221,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="tickprefix", parent_name="layout.scene.yaxis", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -293,20 +237,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="tickmode", parent_name="layout.scene.yaxis", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -315,19 +255,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="ticklen", parent_name="layout.scene.yaxis", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -336,19 +272,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='layout.scene.yaxis', + plotly_name="tickformatstopdefaults", + parent_name="layout.scene.yaxis", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -356,22 +294,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="tickformatstops", parent_name="layout.scene.yaxis", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -405,7 +338,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -415,18 +348,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="tickformat", parent_name="layout.scene.yaxis", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -435,19 +364,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="tickfont", parent_name="layout.scene.yaxis", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -468,7 +394,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -478,18 +404,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="tickcolor", parent_name="layout.scene.yaxis", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -498,18 +420,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="tickangle", parent_name="layout.scene.yaxis", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -518,16 +436,13 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='tick0', parent_name='layout.scene.yaxis', **kwargs - ): + def __init__(self, plotly_name="tick0", parent_name="layout.scene.yaxis", **kwargs): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -536,19 +451,15 @@ def __init__( class SpikethicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='spikethickness', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="spikethickness", parent_name="layout.scene.yaxis", **kwargs ): super(SpikethicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,18 +468,14 @@ def __init__( class SpikesidesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='spikesides', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="spikesides", parent_name="layout.scene.yaxis", **kwargs ): super(SpikesidesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -577,18 +484,14 @@ def __init__( class SpikecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='spikecolor', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="spikecolor", parent_name="layout.scene.yaxis", **kwargs ): super(SpikecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -596,22 +499,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="showticksuffix", parent_name="layout.scene.yaxis", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -619,22 +516,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="showtickprefix", parent_name="layout.scene.yaxis", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -643,18 +534,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="showticklabels", parent_name="layout.scene.yaxis", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -663,18 +550,14 @@ def __init__( class ShowspikesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showspikes', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="showspikes", parent_name="layout.scene.yaxis", **kwargs ): super(ShowspikesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -683,18 +566,14 @@ def __init__( class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showline', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="showline", parent_name="layout.scene.yaxis", **kwargs ): super(ShowlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -703,18 +582,14 @@ def __init__( class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showgrid', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="showgrid", parent_name="layout.scene.yaxis", **kwargs ): super(ShowgridValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -723,19 +598,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="showexponent", parent_name="layout.scene.yaxis", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -744,18 +615,14 @@ def __init__( class ShowbackgroundValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showbackground', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="showbackground", parent_name="layout.scene.yaxis", **kwargs ): super(ShowbackgroundValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -764,18 +631,14 @@ def __init__( class ShowaxeslabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showaxeslabels', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="showaxeslabels", parent_name="layout.scene.yaxis", **kwargs ): super(ShowaxeslabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -783,21 +646,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='layout.scene.yaxis', + plotly_name="separatethousands", + parent_name="layout.scene.yaxis", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -806,19 +666,15 @@ def __init__( class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='rangemode', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="rangemode", parent_name="layout.scene.yaxis", **kwargs ): super(RangemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['normal', 'tozero', 'nonnegative']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), **kwargs ) @@ -827,34 +683,29 @@ def __init__( class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='range', parent_name='layout.scene.yaxis', **kwargs - ): + def __init__(self, plotly_name="range", parent_name="layout.scene.yaxis", **kwargs): super(RangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', False), - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'autorange': False}), + anim=kwargs.pop("anim", False), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"autorange": False}), items=kwargs.pop( - 'items', [ + "items", + [ + { + "valType": "any", + "editType": "plot", + "impliedEdits": {"^autorange": False}, + }, { - 'valType': 'any', - 'editType': 'plot', - 'impliedEdits': { - '^autorange': False - } - }, { - 'valType': 'any', - 'editType': 'plot', - 'impliedEdits': { - '^autorange': False - } - } - ] + "valType": "any", + "editType": "plot", + "impliedEdits": {"^autorange": False}, + }, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -863,16 +714,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name='nticks', parent_name='layout.scene.yaxis', **kwargs + self, plotly_name="nticks", parent_name="layout.scene.yaxis", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -881,18 +731,15 @@ def __init__( class MirrorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='mirror', parent_name='layout.scene.yaxis', **kwargs + self, plotly_name="mirror", parent_name="layout.scene.yaxis", **kwargs ): super(MirrorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', [True, 'ticks', False, 'all', 'allticks'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", [True, "ticks", False, "all", "allticks"]), **kwargs ) @@ -901,19 +748,15 @@ def __init__( class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='linewidth', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="linewidth", parent_name="layout.scene.yaxis", **kwargs ): super(LinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -922,18 +765,14 @@ def __init__( class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='linecolor', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="linecolor", parent_name="layout.scene.yaxis", **kwargs ): super(LinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -942,18 +781,14 @@ def __init__( class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='hoverformat', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="hoverformat", parent_name="layout.scene.yaxis", **kwargs ): super(HoverformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -962,19 +797,15 @@ def __init__( class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='gridwidth', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="gridwidth", parent_name="layout.scene.yaxis", **kwargs ): super(GridwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -983,18 +814,14 @@ def __init__( class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='gridcolor', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="gridcolor", parent_name="layout.scene.yaxis", **kwargs ): super(GridcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1002,24 +829,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="exponentformat", parent_name="layout.scene.yaxis", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -1028,16 +847,13 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='dtick', parent_name='layout.scene.yaxis', **kwargs - ): + def __init__(self, plotly_name="dtick", parent_name="layout.scene.yaxis", **kwargs): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1046,15 +862,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='layout.scene.yaxis', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="layout.scene.yaxis", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1063,27 +876,34 @@ def __init__( class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='categoryorder', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="categoryorder", parent_name="layout.scene.yaxis", **kwargs ): super(CategoryorderValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'trace', 'category ascending', 'category descending', - 'array', 'total ascending', 'total descending', - 'min ascending', 'min descending', 'max ascending', - 'max descending', 'sum ascending', 'sum descending', - 'mean ascending', 'mean descending', 'median ascending', - 'median descending' - ] + "values", + [ + "trace", + "category ascending", + "category descending", + "array", + "total ascending", + "total descending", + "min ascending", + "min descending", + "max ascending", + "max descending", + "sum ascending", + "sum descending", + "mean ascending", + "mean descending", + "median ascending", + "median descending", + ], ), **kwargs ) @@ -1093,18 +913,14 @@ def __init__( class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='categoryarraysrc', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="categoryarraysrc", parent_name="layout.scene.yaxis", **kwargs ): super(CategoryarraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1113,18 +929,14 @@ def __init__( class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='categoryarray', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="categoryarray", parent_name="layout.scene.yaxis", **kwargs ): super(CategoryarrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1133,25 +945,34 @@ def __init__( class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='calendar', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="calendar", parent_name="layout.scene.yaxis", **kwargs ): super(CalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -1161,18 +982,14 @@ def __init__( class BackgroundcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='backgroundcolor', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="backgroundcolor", parent_name="layout.scene.yaxis", **kwargs ): super(BackgroundcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1181,19 +998,15 @@ def __init__( class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='autorange', - parent_name='layout.scene.yaxis', - **kwargs + self, plotly_name="autorange", parent_name="layout.scene.yaxis", **kwargs ): super(AutorangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'reversed']), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "reversed"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/__init__.py index 425b79d11db..64d4ce093f6 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='layout.scene.yaxis.tickfont', - **kwargs + self, plotly_name="size", parent_name="layout.scene.yaxis.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='layout.scene.yaxis.tickfont', - **kwargs + self, plotly_name="family", parent_name="layout.scene.yaxis.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.scene.yaxis.tickfont', - **kwargs + self, plotly_name="color", parent_name="layout.scene.yaxis.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/__init__.py index 5b3ec89ca37..954787f5cba 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='layout.scene.yaxis.tickformatstop', + plotly_name="value", + parent_name="layout.scene.yaxis.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='layout.scene.yaxis.tickformatstop', + plotly_name="templateitemname", + parent_name="layout.scene.yaxis.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='layout.scene.yaxis.tickformatstop', + plotly_name="name", + parent_name="layout.scene.yaxis.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='layout.scene.yaxis.tickformatstop', + plotly_name="enabled", + parent_name="layout.scene.yaxis.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='layout.scene.yaxis.tickformatstop', + plotly_name="dtickrange", + parent_name="layout.scene.yaxis.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'plot' - }, { - 'valType': 'any', - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "any", "editType": "plot"}, + {"valType": "any", "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/__init__.py index 5f782103c99..6f7446db4b7 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='layout.scene.yaxis.title', - **kwargs + self, plotly_name="text", parent_name="layout.scene.yaxis.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='layout.scene.yaxis.title', - **kwargs + self, plotly_name="font", parent_name="layout.scene.yaxis.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -57,7 +48,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/__init__.py index c758d168133..af6859c151a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/yaxis/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='layout.scene.yaxis.title.font', - **kwargs + self, plotly_name="size", parent_name="layout.scene.yaxis.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.scene.yaxis.title.font', + plotly_name="family", + parent_name="layout.scene.yaxis.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +40,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.scene.yaxis.title.font', - **kwargs + self, plotly_name="color", parent_name="layout.scene.yaxis.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/__init__.py index 2d2be6f0195..9e559fffd6a 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ZerolinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='zerolinewidth', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="zerolinewidth", parent_name="layout.scene.zaxis", **kwargs ): super(ZerolinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class ZerolinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='zerolinecolor', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="zerolinecolor", parent_name="layout.scene.zaxis", **kwargs ): super(ZerolinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -44,18 +34,14 @@ def __init__( class ZerolineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='zeroline', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="zeroline", parent_name="layout.scene.zaxis", **kwargs ): super(ZerolineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +50,14 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='visible', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="visible", parent_name="layout.scene.zaxis", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,18 +66,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='layout.scene.zaxis', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="layout.scene.zaxis", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['-', 'linear', 'log', 'date', 'category'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["-", "linear", "log", "date", "category"]), **kwargs ) @@ -104,16 +81,14 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - - def __init__( - self, plotly_name='title', parent_name='layout.scene.zaxis', **kwargs - ): + def __init__(self, plotly_name="title", parent_name="layout.scene.zaxis", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this axis' title font. Note that the title's font used to be customized by the now @@ -124,7 +99,7 @@ def __init__( contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -134,19 +109,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="tickwidth", parent_name="layout.scene.zaxis", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -155,18 +126,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="tickvalssrc", parent_name="layout.scene.zaxis", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -175,18 +142,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="tickvals", parent_name="layout.scene.zaxis", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -195,18 +158,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="ticktextsrc", parent_name="layout.scene.zaxis", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -215,18 +174,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="ticktext", parent_name="layout.scene.zaxis", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -235,18 +190,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="ticksuffix", parent_name="layout.scene.zaxis", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -255,16 +206,13 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ticks', parent_name='layout.scene.zaxis', **kwargs - ): + def __init__(self, plotly_name="ticks", parent_name="layout.scene.zaxis", **kwargs): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -273,18 +221,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="tickprefix", parent_name="layout.scene.zaxis", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -293,20 +237,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="tickmode", parent_name="layout.scene.zaxis", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -315,19 +255,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="ticklen", parent_name="layout.scene.zaxis", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -336,19 +272,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='layout.scene.zaxis', + plotly_name="tickformatstopdefaults", + parent_name="layout.scene.zaxis", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -356,22 +294,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="tickformatstops", parent_name="layout.scene.zaxis", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -405,7 +338,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -415,18 +348,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="tickformat", parent_name="layout.scene.zaxis", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -435,19 +364,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="tickfont", parent_name="layout.scene.zaxis", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -468,7 +394,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -478,18 +404,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="tickcolor", parent_name="layout.scene.zaxis", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -498,18 +420,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="tickangle", parent_name="layout.scene.zaxis", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -518,16 +436,13 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='tick0', parent_name='layout.scene.zaxis', **kwargs - ): + def __init__(self, plotly_name="tick0", parent_name="layout.scene.zaxis", **kwargs): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -536,19 +451,15 @@ def __init__( class SpikethicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='spikethickness', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="spikethickness", parent_name="layout.scene.zaxis", **kwargs ): super(SpikethicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,18 +468,14 @@ def __init__( class SpikesidesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='spikesides', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="spikesides", parent_name="layout.scene.zaxis", **kwargs ): super(SpikesidesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -577,18 +484,14 @@ def __init__( class SpikecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='spikecolor', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="spikecolor", parent_name="layout.scene.zaxis", **kwargs ): super(SpikecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -596,22 +499,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="showticksuffix", parent_name="layout.scene.zaxis", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -619,22 +516,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="showtickprefix", parent_name="layout.scene.zaxis", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -643,18 +534,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="showticklabels", parent_name="layout.scene.zaxis", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -663,18 +550,14 @@ def __init__( class ShowspikesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showspikes', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="showspikes", parent_name="layout.scene.zaxis", **kwargs ): super(ShowspikesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -683,18 +566,14 @@ def __init__( class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showline', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="showline", parent_name="layout.scene.zaxis", **kwargs ): super(ShowlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -703,18 +582,14 @@ def __init__( class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showgrid', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="showgrid", parent_name="layout.scene.zaxis", **kwargs ): super(ShowgridValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -723,19 +598,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="showexponent", parent_name="layout.scene.zaxis", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -744,18 +615,14 @@ def __init__( class ShowbackgroundValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showbackground', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="showbackground", parent_name="layout.scene.zaxis", **kwargs ): super(ShowbackgroundValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -764,18 +631,14 @@ def __init__( class ShowaxeslabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showaxeslabels', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="showaxeslabels", parent_name="layout.scene.zaxis", **kwargs ): super(ShowaxeslabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -783,21 +646,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='layout.scene.zaxis', + plotly_name="separatethousands", + parent_name="layout.scene.zaxis", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -806,19 +666,15 @@ def __init__( class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='rangemode', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="rangemode", parent_name="layout.scene.zaxis", **kwargs ): super(RangemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['normal', 'tozero', 'nonnegative']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), **kwargs ) @@ -827,34 +683,29 @@ def __init__( class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='range', parent_name='layout.scene.zaxis', **kwargs - ): + def __init__(self, plotly_name="range", parent_name="layout.scene.zaxis", **kwargs): super(RangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', False), - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'autorange': False}), + anim=kwargs.pop("anim", False), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"autorange": False}), items=kwargs.pop( - 'items', [ + "items", + [ + { + "valType": "any", + "editType": "plot", + "impliedEdits": {"^autorange": False}, + }, { - 'valType': 'any', - 'editType': 'plot', - 'impliedEdits': { - '^autorange': False - } - }, { - 'valType': 'any', - 'editType': 'plot', - 'impliedEdits': { - '^autorange': False - } - } - ] + "valType": "any", + "editType": "plot", + "impliedEdits": {"^autorange": False}, + }, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -863,16 +714,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name='nticks', parent_name='layout.scene.zaxis', **kwargs + self, plotly_name="nticks", parent_name="layout.scene.zaxis", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -881,18 +731,15 @@ def __init__( class MirrorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='mirror', parent_name='layout.scene.zaxis', **kwargs + self, plotly_name="mirror", parent_name="layout.scene.zaxis", **kwargs ): super(MirrorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', [True, 'ticks', False, 'all', 'allticks'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", [True, "ticks", False, "all", "allticks"]), **kwargs ) @@ -901,19 +748,15 @@ def __init__( class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='linewidth', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="linewidth", parent_name="layout.scene.zaxis", **kwargs ): super(LinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -922,18 +765,14 @@ def __init__( class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='linecolor', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="linecolor", parent_name="layout.scene.zaxis", **kwargs ): super(LinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -942,18 +781,14 @@ def __init__( class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='hoverformat', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="hoverformat", parent_name="layout.scene.zaxis", **kwargs ): super(HoverformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -962,19 +797,15 @@ def __init__( class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='gridwidth', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="gridwidth", parent_name="layout.scene.zaxis", **kwargs ): super(GridwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -983,18 +814,14 @@ def __init__( class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='gridcolor', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="gridcolor", parent_name="layout.scene.zaxis", **kwargs ): super(GridcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1002,24 +829,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="exponentformat", parent_name="layout.scene.zaxis", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -1028,16 +847,13 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='dtick', parent_name='layout.scene.zaxis', **kwargs - ): + def __init__(self, plotly_name="dtick", parent_name="layout.scene.zaxis", **kwargs): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1046,15 +862,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='layout.scene.zaxis', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="layout.scene.zaxis", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1063,27 +876,34 @@ def __init__( class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='categoryorder', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="categoryorder", parent_name="layout.scene.zaxis", **kwargs ): super(CategoryorderValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'trace', 'category ascending', 'category descending', - 'array', 'total ascending', 'total descending', - 'min ascending', 'min descending', 'max ascending', - 'max descending', 'sum ascending', 'sum descending', - 'mean ascending', 'mean descending', 'median ascending', - 'median descending' - ] + "values", + [ + "trace", + "category ascending", + "category descending", + "array", + "total ascending", + "total descending", + "min ascending", + "min descending", + "max ascending", + "max descending", + "sum ascending", + "sum descending", + "mean ascending", + "mean descending", + "median ascending", + "median descending", + ], ), **kwargs ) @@ -1093,18 +913,14 @@ def __init__( class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='categoryarraysrc', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="categoryarraysrc", parent_name="layout.scene.zaxis", **kwargs ): super(CategoryarraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1113,18 +929,14 @@ def __init__( class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='categoryarray', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="categoryarray", parent_name="layout.scene.zaxis", **kwargs ): super(CategoryarrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1133,25 +945,34 @@ def __init__( class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='calendar', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="calendar", parent_name="layout.scene.zaxis", **kwargs ): super(CalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -1161,18 +982,14 @@ def __init__( class BackgroundcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='backgroundcolor', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="backgroundcolor", parent_name="layout.scene.zaxis", **kwargs ): super(BackgroundcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1181,19 +998,15 @@ def __init__( class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='autorange', - parent_name='layout.scene.zaxis', - **kwargs + self, plotly_name="autorange", parent_name="layout.scene.zaxis", **kwargs ): super(AutorangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'reversed']), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "reversed"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/__init__.py index 30a2f55721e..e547383ea03 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='layout.scene.zaxis.tickfont', - **kwargs + self, plotly_name="size", parent_name="layout.scene.zaxis.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='layout.scene.zaxis.tickfont', - **kwargs + self, plotly_name="family", parent_name="layout.scene.zaxis.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.scene.zaxis.tickfont', - **kwargs + self, plotly_name="color", parent_name="layout.scene.zaxis.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/__init__.py index 07164364752..98ffbe006a8 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='layout.scene.zaxis.tickformatstop', + plotly_name="value", + parent_name="layout.scene.zaxis.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='layout.scene.zaxis.tickformatstop', + plotly_name="templateitemname", + parent_name="layout.scene.zaxis.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='layout.scene.zaxis.tickformatstop', + plotly_name="name", + parent_name="layout.scene.zaxis.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='layout.scene.zaxis.tickformatstop', + plotly_name="enabled", + parent_name="layout.scene.zaxis.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='layout.scene.zaxis.tickformatstop', + plotly_name="dtickrange", + parent_name="layout.scene.zaxis.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'plot' - }, { - 'valType': 'any', - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "any", "editType": "plot"}, + {"valType": "any", "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/__init__.py index 35bddb6e0c1..bd2953ab645 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='layout.scene.zaxis.title', - **kwargs + self, plotly_name="text", parent_name="layout.scene.zaxis.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='layout.scene.zaxis.title', - **kwargs + self, plotly_name="font", parent_name="layout.scene.zaxis.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -57,7 +48,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/__init__.py index 10c27f106da..e9217aa6b2f 100644 --- a/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/scene/zaxis/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='layout.scene.zaxis.title.font', - **kwargs + self, plotly_name="size", parent_name="layout.scene.zaxis.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.scene.zaxis.title.font', + plotly_name="family", + parent_name="layout.scene.zaxis.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +40,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.scene.zaxis.title.font', - **kwargs + self, plotly_name="color", parent_name="layout.scene.zaxis.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/shape/__init__.py b/packages/python/plotly/plotly/validators/layout/shape/__init__.py index 7b995872ee6..f1fac26f713 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/shape/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class YsizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ysizemode', parent_name='layout.shape', **kwargs - ): + def __init__(self, plotly_name="ysizemode", parent_name="layout.shape", **kwargs): super(YsizemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['scaled', 'pixel']), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["scaled", "pixel"]), **kwargs ) @@ -22,18 +17,13 @@ def __init__( class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='yref', parent_name='layout.shape', **kwargs - ): + def __init__(self, plotly_name="yref", parent_name="layout.shape", **kwargs): super(YrefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['paper', '/^y([2-9]|[1-9][0-9]+)?$/'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["paper", "/^y([2-9]|[1-9][0-9]+)?$/"]), **kwargs ) @@ -42,15 +32,12 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='yanchor', parent_name='layout.shape', **kwargs - ): + def __init__(self, plotly_name="yanchor", parent_name="layout.shape", **kwargs): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -59,13 +46,12 @@ def __init__( class Y1Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='y1', parent_name='layout.shape', **kwargs): + def __init__(self, plotly_name="y1", parent_name="layout.shape", **kwargs): super(Y1Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -74,13 +60,12 @@ def __init__(self, plotly_name='y1', parent_name='layout.shape', **kwargs): class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='y0', parent_name='layout.shape', **kwargs): + def __init__(self, plotly_name="y0", parent_name="layout.shape", **kwargs): super(Y0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -89,16 +74,13 @@ def __init__(self, plotly_name='y0', parent_name='layout.shape', **kwargs): class XsizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xsizemode', parent_name='layout.shape', **kwargs - ): + def __init__(self, plotly_name="xsizemode", parent_name="layout.shape", **kwargs): super(XsizemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['scaled', 'pixel']), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["scaled", "pixel"]), **kwargs ) @@ -107,18 +89,13 @@ def __init__( class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xref', parent_name='layout.shape', **kwargs - ): + def __init__(self, plotly_name="xref", parent_name="layout.shape", **kwargs): super(XrefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['paper', '/^x([2-9]|[1-9][0-9]+)?$/'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["paper", "/^x([2-9]|[1-9][0-9]+)?$/"]), **kwargs ) @@ -127,15 +104,12 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='xanchor', parent_name='layout.shape', **kwargs - ): + def __init__(self, plotly_name="xanchor", parent_name="layout.shape", **kwargs): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -144,13 +118,12 @@ def __init__( class X1Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='x1', parent_name='layout.shape', **kwargs): + def __init__(self, plotly_name="x1", parent_name="layout.shape", **kwargs): super(X1Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,13 +132,12 @@ def __init__(self, plotly_name='x1', parent_name='layout.shape', **kwargs): class X0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='x0', parent_name='layout.shape', **kwargs): + def __init__(self, plotly_name="x0", parent_name="layout.shape", **kwargs): super(X0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -174,15 +146,12 @@ def __init__(self, plotly_name='x0', parent_name='layout.shape', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='visible', parent_name='layout.shape', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="layout.shape", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -191,16 +160,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='layout.shape', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="layout.shape", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['circle', 'rect', 'path', 'line']), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["circle", "rect", "path", "line"]), **kwargs ) @@ -209,18 +175,14 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='templateitemname', - parent_name='layout.shape', - **kwargs + self, plotly_name="templateitemname", parent_name="layout.shape", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -229,15 +191,12 @@ def __init__( class PathValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='path', parent_name='layout.shape', **kwargs - ): + def __init__(self, plotly_name="path", parent_name="layout.shape", **kwargs): super(PathValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -246,17 +205,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='layout.shape', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="layout.shape", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -265,15 +221,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='layout.shape', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="layout.shape", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -282,16 +235,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='layout.shape', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="layout.shape", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the line color. dash @@ -301,7 +252,7 @@ def __init__( dash length list in px (eg "5px,10px,2px,2px"). width Sets the line width (in px). -""" +""", ), **kwargs ) @@ -311,16 +262,13 @@ def __init__( class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='layer', parent_name='layout.shape', **kwargs - ): + def __init__(self, plotly_name="layer", parent_name="layout.shape", **kwargs): super(LayerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['below', 'above']), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["below", "above"]), **kwargs ) @@ -329,14 +277,11 @@ def __init__( class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='fillcolor', parent_name='layout.shape', **kwargs - ): + def __init__(self, plotly_name="fillcolor", parent_name="layout.shape", **kwargs): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/shape/line/__init__.py b/packages/python/plotly/plotly/validators/layout/shape/line/__init__.py index 9afd6c6d430..3839f86dbd5 100644 --- a/packages/python/plotly/plotly/validators/layout/shape/line/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/shape/line/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='layout.shape.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="layout.shape.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+arraydraw'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+arraydraw"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,18 +18,14 @@ def __init__( class DashValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='dash', parent_name='layout.shape.line', **kwargs - ): + def __init__(self, plotly_name="dash", parent_name="layout.shape.line", **kwargs): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -44,15 +35,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='layout.shape.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="layout.shape.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/slider/__init__.py b/packages/python/plotly/plotly/validators/layout/slider/__init__.py index 1dbaa77efd2..12da9d7bfd6 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/slider/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='yanchor', parent_name='layout.slider', **kwargs - ): + def __init__(self, plotly_name="yanchor", parent_name="layout.slider", **kwargs): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), **kwargs ) @@ -22,15 +17,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='y', parent_name='layout.slider', **kwargs): + def __init__(self, plotly_name="y", parent_name="layout.slider", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -39,16 +33,13 @@ def __init__(self, plotly_name='y', parent_name='layout.slider', **kwargs): class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xanchor', parent_name='layout.slider', **kwargs - ): + def __init__(self, plotly_name="xanchor", parent_name="layout.slider", **kwargs): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "left", "center", "right"]), **kwargs ) @@ -57,15 +48,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='x', parent_name='layout.slider', **kwargs): + def __init__(self, plotly_name="x", parent_name="layout.slider", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -74,15 +64,12 @@ def __init__(self, plotly_name='x', parent_name='layout.slider', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='visible', parent_name='layout.slider', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="layout.slider", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -91,22 +78,20 @@ def __init__( class TransitionValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='transition', parent_name='layout.slider', **kwargs - ): + def __init__(self, plotly_name="transition", parent_name="layout.slider", **kwargs): super(TransitionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Transition'), + data_class_str=kwargs.pop("data_class_str", "Transition"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ duration Sets the duration of the slider transition easing Sets the easing function of the slider transition -""" +""", ), **kwargs ) @@ -116,16 +101,13 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='tickwidth', parent_name='layout.slider', **kwargs - ): + def __init__(self, plotly_name="tickwidth", parent_name="layout.slider", **kwargs): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -134,16 +116,13 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ticklen', parent_name='layout.slider', **kwargs - ): + def __init__(self, plotly_name="ticklen", parent_name="layout.slider", **kwargs): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -152,15 +131,12 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='tickcolor', parent_name='layout.slider', **kwargs - ): + def __init__(self, plotly_name="tickcolor", parent_name="layout.slider", **kwargs): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -169,18 +145,14 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='templateitemname', - parent_name='layout.slider', - **kwargs + self, plotly_name="templateitemname", parent_name="layout.slider", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -189,19 +161,18 @@ def __init__( class StepValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='stepdefaults', - parent_name='layout.slider', - **kwargs + self, plotly_name="stepdefaults", parent_name="layout.slider", **kwargs ): super(StepValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Step'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Step"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -210,16 +181,14 @@ def __init__( class StepsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - - def __init__( - self, plotly_name='steps', parent_name='layout.slider', **kwargs - ): + def __init__(self, plotly_name="steps", parent_name="layout.slider", **kwargs): super(StepsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Step'), + data_class_str=kwargs.pop("data_class_str", "Step"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ args Sets the arguments values to be passed to the Plotly method set in `method` on slide. @@ -271,7 +240,7 @@ def __init__( visible Determines whether or not this step is included in the slider. -""" +""", ), **kwargs ) @@ -281,16 +250,14 @@ def __init__( class PadValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='pad', parent_name='layout.slider', **kwargs - ): + def __init__(self, plotly_name="pad", parent_name="layout.slider", **kwargs): super(PadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Pad'), + data_class_str=kwargs.pop("data_class_str", "Pad"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ b The amount of padding (in px) along the bottom of the component. @@ -303,7 +270,7 @@ def __init__( t The amount of padding (in px) along the top of the component. -""" +""", ), **kwargs ) @@ -313,15 +280,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='layout.slider', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="layout.slider", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -330,19 +294,15 @@ def __init__( class MinorticklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='minorticklen', - parent_name='layout.slider', - **kwargs + self, plotly_name="minorticklen", parent_name="layout.slider", **kwargs ): super(MinorticklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -351,16 +311,13 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='lenmode', parent_name='layout.slider', **kwargs - ): + def __init__(self, plotly_name="lenmode", parent_name="layout.slider", **kwargs): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -369,16 +326,13 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='len', parent_name='layout.slider', **kwargs - ): + def __init__(self, plotly_name="len", parent_name="layout.slider", **kwargs): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -387,16 +341,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='layout.slider', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="layout.slider", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -417,7 +369,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -427,19 +379,16 @@ def __init__( class CurrentvalueValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='currentvalue', - parent_name='layout.slider', - **kwargs + self, plotly_name="currentvalue", parent_name="layout.slider", **kwargs ): super(CurrentvalueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Currentvalue'), + data_class_str=kwargs.pop("data_class_str", "Currentvalue"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets the font of the current value label text. offset @@ -457,7 +406,7 @@ def __init__( xanchor The alignment of the value readout relative to the length of the slider. -""" +""", ), **kwargs ) @@ -467,16 +416,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='borderwidth', parent_name='layout.slider', **kwargs + self, plotly_name="borderwidth", parent_name="layout.slider", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -485,15 +433,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='bordercolor', parent_name='layout.slider', **kwargs + self, plotly_name="bordercolor", parent_name="layout.slider", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -502,15 +449,12 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='layout.slider', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="layout.slider", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -519,18 +463,14 @@ def __init__( class ActivebgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='activebgcolor', - parent_name='layout.slider', - **kwargs + self, plotly_name="activebgcolor", parent_name="layout.slider", **kwargs ): super(ActivebgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -539,15 +479,12 @@ def __init__( class ActiveValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='active', parent_name='layout.slider', **kwargs - ): + def __init__(self, plotly_name="active", parent_name="layout.slider", **kwargs): super(ActiveValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/__init__.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/__init__.py index 9e15f01464d..898d3fe0038 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='layout.slider.currentvalue', - **kwargs + self, plotly_name="xanchor", parent_name="layout.slider.currentvalue", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -25,18 +19,14 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='visible', - parent_name='layout.slider.currentvalue', - **kwargs + self, plotly_name="visible", parent_name="layout.slider.currentvalue", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -45,18 +35,14 @@ def __init__( class SuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='suffix', - parent_name='layout.slider.currentvalue', - **kwargs + self, plotly_name="suffix", parent_name="layout.slider.currentvalue", **kwargs ): super(SuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -65,18 +51,14 @@ def __init__( class PrefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='prefix', - parent_name='layout.slider.currentvalue', - **kwargs + self, plotly_name="prefix", parent_name="layout.slider.currentvalue", **kwargs ): super(PrefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -85,18 +67,14 @@ def __init__( class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='offset', - parent_name='layout.slider.currentvalue', - **kwargs + self, plotly_name="offset", parent_name="layout.slider.currentvalue", **kwargs ): super(OffsetValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -105,19 +83,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='layout.slider.currentvalue', - **kwargs + self, plotly_name="font", parent_name="layout.slider.currentvalue", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -138,7 +113,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/__init__.py b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/__init__.py index 90a126b71d6..4cd537016c2 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/slider/currentvalue/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='layout.slider.currentvalue.font', + plotly_name="size", + parent_name="layout.slider.currentvalue.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.slider.currentvalue.font', + plotly_name="family", + parent_name="layout.slider.currentvalue.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "arraydraw"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='layout.slider.currentvalue.font', + plotly_name="color", + parent_name="layout.slider.currentvalue.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/slider/font/__init__.py b/packages/python/plotly/plotly/validators/layout/slider/font/__init__.py index cfd80a1fca9..2b506384d87 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/slider/font/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='layout.slider.font', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="layout.slider.font", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,17 +17,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='family', parent_name='layout.slider.font', **kwargs + self, plotly_name="family", parent_name="layout.slider.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "arraydraw"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -41,14 +35,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='layout.slider.font', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="layout.slider.font", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/slider/pad/__init__.py b/packages/python/plotly/plotly/validators/layout/slider/pad/__init__.py index 99f3b652023..9b8fef83692 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/pad/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/slider/pad/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class TValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='t', parent_name='layout.slider.pad', **kwargs - ): + def __init__(self, plotly_name="t", parent_name="layout.slider.pad", **kwargs): super(TValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -21,15 +16,12 @@ def __init__( class RValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='r', parent_name='layout.slider.pad', **kwargs - ): + def __init__(self, plotly_name="r", parent_name="layout.slider.pad", **kwargs): super(RValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -38,15 +30,12 @@ def __init__( class LValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='l', parent_name='layout.slider.pad', **kwargs - ): + def __init__(self, plotly_name="l", parent_name="layout.slider.pad", **kwargs): super(LValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -55,14 +44,11 @@ def __init__( class BValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='b', parent_name='layout.slider.pad', **kwargs - ): + def __init__(self, plotly_name="b", parent_name="layout.slider.pad", **kwargs): super(BValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/slider/step/__init__.py b/packages/python/plotly/plotly/validators/layout/slider/step/__init__.py index ae449c865ad..b3e85dce558 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/step/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/slider/step/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='visible', - parent_name='layout.slider.step', - **kwargs + self, plotly_name="visible", parent_name="layout.slider.step", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,15 +18,12 @@ def __init__( class ValueValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='value', parent_name='layout.slider.step', **kwargs - ): + def __init__(self, plotly_name="value", parent_name="layout.slider.step", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -41,18 +32,14 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='templateitemname', - parent_name='layout.slider.step', - **kwargs + self, plotly_name="templateitemname", parent_name="layout.slider.step", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -61,15 +48,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='layout.slider.step', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="layout.slider.step", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -78,17 +62,16 @@ def __init__( class MethodValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='method', parent_name='layout.slider.step', **kwargs + self, plotly_name="method", parent_name="layout.slider.step", **kwargs ): super(MethodValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', ['restyle', 'relayout', 'animate', 'update', 'skip'] + "values", ["restyle", "relayout", "animate", "update", "skip"] ), **kwargs ) @@ -98,15 +81,12 @@ def __init__( class LabelValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='label', parent_name='layout.slider.step', **kwargs - ): + def __init__(self, plotly_name="label", parent_name="layout.slider.step", **kwargs): super(LabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,18 +95,14 @@ def __init__( class ExecuteValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='execute', - parent_name='layout.slider.step', - **kwargs + self, plotly_name="execute", parent_name="layout.slider.step", **kwargs ): super(ExecuteValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -135,29 +111,20 @@ def __init__( class ArgsValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='args', parent_name='layout.slider.step', **kwargs - ): + def __init__(self, plotly_name="args", parent_name="layout.slider.step", **kwargs): super(ArgsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - free_length=kwargs.pop('free_length', True), + edit_type=kwargs.pop("edit_type", "arraydraw"), + free_length=kwargs.pop("free_length", True), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'arraydraw' - }, { - 'valType': 'any', - 'editType': 'arraydraw' - }, { - 'valType': 'any', - 'editType': 'arraydraw' - } - ] + "items", + [ + {"valType": "any", "editType": "arraydraw"}, + {"valType": "any", "editType": "arraydraw"}, + {"valType": "any", "editType": "arraydraw"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/slider/transition/__init__.py b/packages/python/plotly/plotly/validators/layout/slider/transition/__init__.py index be9c3c2c5e8..fb3b5865ae3 100644 --- a/packages/python/plotly/plotly/validators/layout/slider/transition/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/slider/transition/__init__.py @@ -1,33 +1,55 @@ - - import _plotly_utils.basevalidators class EasingValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='easing', - parent_name='layout.slider.transition', - **kwargs + self, plotly_name="easing", parent_name="layout.slider.transition", **kwargs ): super(EasingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'linear', 'quad', 'cubic', 'sin', 'exp', 'circle', - 'elastic', 'back', 'bounce', 'linear-in', 'quad-in', - 'cubic-in', 'sin-in', 'exp-in', 'circle-in', 'elastic-in', - 'back-in', 'bounce-in', 'linear-out', 'quad-out', - 'cubic-out', 'sin-out', 'exp-out', 'circle-out', - 'elastic-out', 'back-out', 'bounce-out', 'linear-in-out', - 'quad-in-out', 'cubic-in-out', 'sin-in-out', 'exp-in-out', - 'circle-in-out', 'elastic-in-out', 'back-in-out', - 'bounce-in-out' - ] + "values", + [ + "linear", + "quad", + "cubic", + "sin", + "exp", + "circle", + "elastic", + "back", + "bounce", + "linear-in", + "quad-in", + "cubic-in", + "sin-in", + "exp-in", + "circle-in", + "elastic-in", + "back-in", + "bounce-in", + "linear-out", + "quad-out", + "cubic-out", + "sin-out", + "exp-out", + "circle-out", + "elastic-out", + "back-out", + "bounce-out", + "linear-in-out", + "quad-in-out", + "cubic-in-out", + "sin-in-out", + "exp-in-out", + "circle-in-out", + "elastic-in-out", + "back-in-out", + "bounce-in-out", + ], ), **kwargs ) @@ -37,18 +59,14 @@ def __init__( class DurationValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='duration', - parent_name='layout.slider.transition', - **kwargs + self, plotly_name="duration", parent_name="layout.slider.transition", **kwargs ): super(DurationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/template/__init__.py b/packages/python/plotly/plotly/validators/layout/template/__init__.py index 7517946043b..ca830e9b665 100644 --- a/packages/python/plotly/plotly/validators/layout/template/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/template/__init__.py @@ -1,19 +1,17 @@ - - import _plotly_utils.basevalidators class LayoutValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='layout', parent_name='layout.template', **kwargs - ): + def __init__(self, plotly_name="layout", parent_name="layout.template", **kwargs): super(LayoutValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Layout'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Layout"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -22,16 +20,14 @@ def __init__( class DataValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='data', parent_name='layout.template', **kwargs - ): + def __init__(self, plotly_name="data", parent_name="layout.template", **kwargs): super(DataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Data'), + data_class_str=kwargs.pop("data_class_str", "Data"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ area plotly.graph_objs.layout.template.data.Area instance or dict with compatible properties @@ -165,7 +161,7 @@ def __init__( waterfall plotly.graph_objs.layout.template.data.Waterfal l instance or dict with compatible properties -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/template/data/__init__.py b/packages/python/plotly/plotly/validators/layout/template/data/__init__.py index e83dec98f7a..4107e00839d 100644 --- a/packages/python/plotly/plotly/validators/layout/template/data/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/template/data/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class WaterfallsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='waterfall', - parent_name='layout.template.data', - **kwargs + self, plotly_name="waterfall", parent_name="layout.template.data", **kwargs ): super(WaterfallsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Waterfall'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Waterfall"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -25,19 +22,18 @@ def __init__( class VolumesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='volume', - parent_name='layout.template.data', - **kwargs + self, plotly_name="volume", parent_name="layout.template.data", **kwargs ): super(VolumesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Volume'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Volume"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -46,19 +42,18 @@ def __init__( class ViolinsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='violin', - parent_name='layout.template.data', - **kwargs + self, plotly_name="violin", parent_name="layout.template.data", **kwargs ): super(ViolinsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Violin'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Violin"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -67,19 +62,18 @@ def __init__( class TablesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='table', - parent_name='layout.template.data', - **kwargs + self, plotly_name="table", parent_name="layout.template.data", **kwargs ): super(TablesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Table'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Table"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -88,19 +82,18 @@ def __init__( class SurfacesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='surface', - parent_name='layout.template.data', - **kwargs + self, plotly_name="surface", parent_name="layout.template.data", **kwargs ): super(SurfacesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Surface'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Surface"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -109,19 +102,18 @@ def __init__( class SunburstsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='sunburst', - parent_name='layout.template.data', - **kwargs + self, plotly_name="sunburst", parent_name="layout.template.data", **kwargs ): super(SunburstsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Sunburst'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Sunburst"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -129,22 +121,19 @@ def __init__( import _plotly_utils.basevalidators -class StreamtubesValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class StreamtubesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='streamtube', - parent_name='layout.template.data', - **kwargs + self, plotly_name="streamtube", parent_name="layout.template.data", **kwargs ): super(StreamtubesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Streamtube'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Streamtube"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -153,19 +142,18 @@ def __init__( class SplomsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='splom', - parent_name='layout.template.data', - **kwargs + self, plotly_name="splom", parent_name="layout.template.data", **kwargs ): super(SplomsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Splom'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Splom"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -173,22 +161,19 @@ def __init__( import _plotly_utils.basevalidators -class ScatterternarysValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class ScatterternarysValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='scatterternary', - parent_name='layout.template.data', - **kwargs + self, plotly_name="scatterternary", parent_name="layout.template.data", **kwargs ): super(ScatterternarysValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scatterternary'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Scatterternary"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -197,19 +182,18 @@ def __init__( class ScattersValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='scatter', - parent_name='layout.template.data', - **kwargs + self, plotly_name="scatter", parent_name="layout.template.data", **kwargs ): super(ScattersValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scatter'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Scatter"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -217,22 +201,19 @@ def __init__( import _plotly_utils.basevalidators -class ScatterpolarsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class ScatterpolarsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='scatterpolar', - parent_name='layout.template.data', - **kwargs + self, plotly_name="scatterpolar", parent_name="layout.template.data", **kwargs ): super(ScatterpolarsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scatterpolar'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Scatterpolar"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -240,22 +221,19 @@ def __init__( import _plotly_utils.basevalidators -class ScatterpolarglsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class ScatterpolarglsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='scatterpolargl', - parent_name='layout.template.data', - **kwargs + self, plotly_name="scatterpolargl", parent_name="layout.template.data", **kwargs ): super(ScatterpolarglsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scatterpolargl'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Scatterpolargl"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -263,22 +241,19 @@ def __init__( import _plotly_utils.basevalidators -class ScattermapboxsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class ScattermapboxsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='scattermapbox', - parent_name='layout.template.data', - **kwargs + self, plotly_name="scattermapbox", parent_name="layout.template.data", **kwargs ): super(ScattermapboxsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scattermapbox'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Scattermapbox"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -287,19 +262,18 @@ def __init__( class ScatterglsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='scattergl', - parent_name='layout.template.data', - **kwargs + self, plotly_name="scattergl", parent_name="layout.template.data", **kwargs ): super(ScatterglsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scattergl'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Scattergl"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -307,22 +281,19 @@ def __init__( import _plotly_utils.basevalidators -class ScattergeosValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class ScattergeosValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='scattergeo', - parent_name='layout.template.data', - **kwargs + self, plotly_name="scattergeo", parent_name="layout.template.data", **kwargs ): super(ScattergeosValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scattergeo'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Scattergeo"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -330,22 +301,19 @@ def __init__( import _plotly_utils.basevalidators -class ScattercarpetsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class ScattercarpetsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='scattercarpet', - parent_name='layout.template.data', - **kwargs + self, plotly_name="scattercarpet", parent_name="layout.template.data", **kwargs ): super(ScattercarpetsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scattercarpet'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Scattercarpet"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -354,19 +322,18 @@ def __init__( class Scatter3dsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='scatter3d', - parent_name='layout.template.data', - **kwargs + self, plotly_name="scatter3d", parent_name="layout.template.data", **kwargs ): super(Scatter3dsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Scatter3d'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Scatter3d"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -375,19 +342,18 @@ def __init__( class SankeysValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='sankey', - parent_name='layout.template.data', - **kwargs + self, plotly_name="sankey", parent_name="layout.template.data", **kwargs ): super(SankeysValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Sankey'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Sankey"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -395,22 +361,19 @@ def __init__( import _plotly_utils.basevalidators -class PointcloudsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class PointcloudsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='pointcloud', - parent_name='layout.template.data', - **kwargs + self, plotly_name="pointcloud", parent_name="layout.template.data", **kwargs ): super(PointcloudsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Pointcloud'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Pointcloud"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -419,16 +382,16 @@ def __init__( class PiesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - - def __init__( - self, plotly_name='pie', parent_name='layout.template.data', **kwargs - ): + def __init__(self, plotly_name="pie", parent_name="layout.template.data", **kwargs): super(PiesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Pie'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Pie"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -437,19 +400,18 @@ def __init__( class ParcoordssValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='parcoords', - parent_name='layout.template.data', - **kwargs + self, plotly_name="parcoords", parent_name="layout.template.data", **kwargs ): super(ParcoordssValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Parcoords'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Parcoords"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -458,19 +420,18 @@ def __init__( class ParcatssValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='parcats', - parent_name='layout.template.data', - **kwargs + self, plotly_name="parcats", parent_name="layout.template.data", **kwargs ): super(ParcatssValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Parcats'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Parcats"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -479,16 +440,18 @@ def __init__( class OhlcsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name='ohlc', parent_name='layout.template.data', **kwargs + self, plotly_name="ohlc", parent_name="layout.template.data", **kwargs ): super(OhlcsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Ohlc'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Ohlc"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -497,19 +460,18 @@ def __init__( class Mesh3dsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='mesh3d', - parent_name='layout.template.data', - **kwargs + self, plotly_name="mesh3d", parent_name="layout.template.data", **kwargs ): super(Mesh3dsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Mesh3d'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Mesh3d"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -517,22 +479,19 @@ def __init__( import _plotly_utils.basevalidators -class IsosurfacesValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class IsosurfacesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='isosurface', - parent_name='layout.template.data', - **kwargs + self, plotly_name="isosurface", parent_name="layout.template.data", **kwargs ): super(IsosurfacesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Isosurface'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Isosurface"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -541,19 +500,18 @@ def __init__( class HistogramsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='histogram', - parent_name='layout.template.data', - **kwargs + self, plotly_name="histogram", parent_name="layout.template.data", **kwargs ): super(HistogramsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Histogram'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Histogram"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -561,22 +519,19 @@ def __init__( import _plotly_utils.basevalidators -class Histogram2dsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class Histogram2dsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='histogram2d', - parent_name='layout.template.data', - **kwargs + self, plotly_name="histogram2d", parent_name="layout.template.data", **kwargs ): super(Histogram2dsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Histogram2d'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Histogram2d"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -584,22 +539,22 @@ def __init__( import _plotly_utils.basevalidators -class Histogram2dContoursValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class Histogram2dContoursValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='histogram2dcontour', - parent_name='layout.template.data', + plotly_name="histogram2dcontour", + parent_name="layout.template.data", **kwargs ): super(Histogram2dContoursValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Histogram2dContour'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Histogram2dContour"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -608,19 +563,18 @@ def __init__( class HeatmapsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='heatmap', - parent_name='layout.template.data', - **kwargs + self, plotly_name="heatmap", parent_name="layout.template.data", **kwargs ): super(HeatmapsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Heatmap'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Heatmap"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -629,19 +583,18 @@ def __init__( class HeatmapglsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='heatmapgl', - parent_name='layout.template.data', - **kwargs + self, plotly_name="heatmapgl", parent_name="layout.template.data", **kwargs ): super(HeatmapglsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Heatmapgl'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Heatmapgl"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -650,19 +603,18 @@ def __init__( class FunnelsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='funnel', - parent_name='layout.template.data', - **kwargs + self, plotly_name="funnel", parent_name="layout.template.data", **kwargs ): super(FunnelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Funnel'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Funnel"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -670,22 +622,19 @@ def __init__( import _plotly_utils.basevalidators -class FunnelareasValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class FunnelareasValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='funnelarea', - parent_name='layout.template.data', - **kwargs + self, plotly_name="funnelarea", parent_name="layout.template.data", **kwargs ): super(FunnelareasValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Funnelarea'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Funnelarea"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -694,19 +643,18 @@ def __init__( class ContoursValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='contour', - parent_name='layout.template.data', - **kwargs + self, plotly_name="contour", parent_name="layout.template.data", **kwargs ): super(ContoursValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Contour'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Contour"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -714,22 +662,19 @@ def __init__( import _plotly_utils.basevalidators -class ContourcarpetsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class ContourcarpetsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='contourcarpet', - parent_name='layout.template.data', - **kwargs + self, plotly_name="contourcarpet", parent_name="layout.template.data", **kwargs ): super(ContourcarpetsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Contourcarpet'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Contourcarpet"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -738,16 +683,18 @@ def __init__( class ConesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name='cone', parent_name='layout.template.data', **kwargs + self, plotly_name="cone", parent_name="layout.template.data", **kwargs ): super(ConesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Cone'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Cone"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -755,22 +702,19 @@ def __init__( import _plotly_utils.basevalidators -class ChoroplethsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class ChoroplethsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='choropleth', - parent_name='layout.template.data', - **kwargs + self, plotly_name="choropleth", parent_name="layout.template.data", **kwargs ): super(ChoroplethsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Choropleth'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Choropleth"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -779,19 +723,18 @@ def __init__( class CarpetsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='carpet', - parent_name='layout.template.data', - **kwargs + self, plotly_name="carpet", parent_name="layout.template.data", **kwargs ): super(CarpetsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Carpet'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Carpet"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -799,22 +742,19 @@ def __init__( import _plotly_utils.basevalidators -class CandlesticksValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class CandlesticksValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='candlestick', - parent_name='layout.template.data', - **kwargs + self, plotly_name="candlestick", parent_name="layout.template.data", **kwargs ): super(CandlesticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Candlestick'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Candlestick"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -823,16 +763,16 @@ def __init__( class BoxsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - - def __init__( - self, plotly_name='box', parent_name='layout.template.data', **kwargs - ): + def __init__(self, plotly_name="box", parent_name="layout.template.data", **kwargs): super(BoxsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Box'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Box"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -841,16 +781,16 @@ def __init__( class BarsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - - def __init__( - self, plotly_name='bar', parent_name='layout.template.data', **kwargs - ): + def __init__(self, plotly_name="bar", parent_name="layout.template.data", **kwargs): super(BarsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Bar'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Bar"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -859,19 +799,18 @@ def __init__( class BarpolarsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='barpolar', - parent_name='layout.template.data', - **kwargs + self, plotly_name="barpolar", parent_name="layout.template.data", **kwargs ): super(BarpolarsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Barpolar'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Barpolar"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -880,15 +819,17 @@ def __init__( class AreasValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name='area', parent_name='layout.template.data', **kwargs + self, plotly_name="area", parent_name="layout.template.data", **kwargs ): super(AreasValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Area'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Area"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/ternary/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/__init__.py index ac183f64c4f..fd066244ee6 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/__init__.py @@ -1,18 +1,15 @@ - - import _plotly_utils.basevalidators class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name='uirevision', parent_name='layout.ternary', **kwargs + self, plotly_name="uirevision", parent_name="layout.ternary", **kwargs ): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +18,13 @@ def __init__( class SumValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='sum', parent_name='layout.ternary', **kwargs - ): + def __init__(self, plotly_name="sum", parent_name="layout.ternary", **kwargs): super(SumValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,16 +33,14 @@ def __init__( class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='domain', parent_name='layout.ternary', **kwargs - ): + def __init__(self, plotly_name="domain", parent_name="layout.ternary", **kwargs): super(DomainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Domain'), + data_class_str=kwargs.pop("data_class_str", "Domain"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ column If there is a layout grid, use the domain for this column in the grid for this ternary @@ -62,7 +54,7 @@ def __init__( y Sets the vertical domain of this ternary subplot (in plot fraction). -""" +""", ), **kwargs ) @@ -72,16 +64,14 @@ def __init__( class CaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='caxis', parent_name='layout.ternary', **kwargs - ): + def __init__(self, plotly_name="caxis", parent_name="layout.ternary", **kwargs): super(CaxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Caxis'), + data_class_str=kwargs.pop("data_class_str", "Caxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets default for all colors associated with this axis all at once: line, font, tick, and @@ -285,7 +275,7 @@ def __init__( axis `min`, and `title` if in `editable: true` configuration. Defaults to `ternary.uirevision`. -""" +""", ), **kwargs ) @@ -295,15 +285,12 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='layout.ternary', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="layout.ternary", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -312,16 +299,14 @@ def __init__( class BaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='baxis', parent_name='layout.ternary', **kwargs - ): + def __init__(self, plotly_name="baxis", parent_name="layout.ternary", **kwargs): super(BaxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Baxis'), + data_class_str=kwargs.pop("data_class_str", "Baxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets default for all colors associated with this axis all at once: line, font, tick, and @@ -525,7 +510,7 @@ def __init__( axis `min`, and `title` if in `editable: true` configuration. Defaults to `ternary.uirevision`. -""" +""", ), **kwargs ) @@ -535,16 +520,14 @@ def __init__( class AaxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='aaxis', parent_name='layout.ternary', **kwargs - ): + def __init__(self, plotly_name="aaxis", parent_name="layout.ternary", **kwargs): super(AaxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Aaxis'), + data_class_str=kwargs.pop("data_class_str", "Aaxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets default for all colors associated with this axis all at once: line, font, tick, and @@ -748,7 +731,7 @@ def __init__( axis `min`, and `title` if in `editable: true` configuration. Defaults to `ternary.uirevision`. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/__init__.py index 8f5053690bd..5538b24ffcc 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='uirevision', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="uirevision", parent_name="layout.ternary.aaxis", **kwargs ): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="title", parent_name="layout.ternary.aaxis", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this axis' title font. Note that the title's font used to be customized by the now @@ -47,7 +38,7 @@ def __init__( contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -57,19 +48,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="tickwidth", parent_name="layout.ternary.aaxis", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -78,18 +65,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="tickvalssrc", parent_name="layout.ternary.aaxis", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -98,18 +81,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="tickvals", parent_name="layout.ternary.aaxis", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -118,18 +97,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="ticktextsrc", parent_name="layout.ternary.aaxis", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -138,18 +113,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="ticktext", parent_name="layout.ternary.aaxis", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -158,18 +129,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="ticksuffix", parent_name="layout.ternary.aaxis", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -178,19 +145,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="ticks", parent_name="layout.ternary.aaxis", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -199,18 +162,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="tickprefix", parent_name="layout.ternary.aaxis", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -219,20 +178,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="tickmode", parent_name="layout.ternary.aaxis", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -241,19 +196,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="ticklen", parent_name="layout.ternary.aaxis", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -262,19 +213,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='layout.ternary.aaxis', + plotly_name="tickformatstopdefaults", + parent_name="layout.ternary.aaxis", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -282,22 +235,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='layout.ternary.aaxis', + plotly_name="tickformatstops", + parent_name="layout.ternary.aaxis", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -331,7 +282,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -341,18 +292,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="tickformat", parent_name="layout.ternary.aaxis", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -361,19 +308,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="tickfont", parent_name="layout.ternary.aaxis", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -394,7 +338,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -404,18 +348,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="tickcolor", parent_name="layout.ternary.aaxis", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -424,18 +364,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="tickangle", parent_name="layout.ternary.aaxis", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -444,19 +380,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="tick0", parent_name="layout.ternary.aaxis", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -464,22 +396,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="showticksuffix", parent_name="layout.ternary.aaxis", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -487,22 +413,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="showtickprefix", parent_name="layout.ternary.aaxis", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -511,18 +431,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="showticklabels", parent_name="layout.ternary.aaxis", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -531,18 +447,14 @@ def __init__( class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showline', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="showline", parent_name="layout.ternary.aaxis", **kwargs ): super(ShowlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -551,18 +463,14 @@ def __init__( class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showgrid', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="showgrid", parent_name="layout.ternary.aaxis", **kwargs ): super(ShowgridValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -571,19 +479,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="showexponent", parent_name="layout.ternary.aaxis", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -591,21 +495,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='layout.ternary.aaxis', + plotly_name="separatethousands", + parent_name="layout.ternary.aaxis", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -614,19 +515,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="nticks", parent_name="layout.ternary.aaxis", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -635,16 +532,13 @@ def __init__( class MinValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='min', parent_name='layout.ternary.aaxis', **kwargs - ): + def __init__(self, plotly_name="min", parent_name="layout.ternary.aaxis", **kwargs): super(MinValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -653,19 +547,15 @@ def __init__( class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='linewidth', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="linewidth", parent_name="layout.ternary.aaxis", **kwargs ): super(LinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -674,18 +564,14 @@ def __init__( class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='linecolor', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="linecolor", parent_name="layout.ternary.aaxis", **kwargs ): super(LinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -694,19 +580,15 @@ def __init__( class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='layer', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="layer", parent_name="layout.ternary.aaxis", **kwargs ): super(LayerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['above traces', 'below traces']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["above traces", "below traces"]), **kwargs ) @@ -715,18 +597,14 @@ def __init__( class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='hoverformat', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="hoverformat", parent_name="layout.ternary.aaxis", **kwargs ): super(HoverformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -735,19 +613,15 @@ def __init__( class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='gridwidth', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="gridwidth", parent_name="layout.ternary.aaxis", **kwargs ): super(GridwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -756,18 +630,14 @@ def __init__( class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='gridcolor', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="gridcolor", parent_name="layout.ternary.aaxis", **kwargs ): super(GridcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -775,24 +645,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="exponentformat", parent_name="layout.ternary.aaxis", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -801,19 +663,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="dtick", parent_name="layout.ternary.aaxis", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -822,17 +680,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.ternary.aaxis', - **kwargs + self, plotly_name="color", parent_name="layout.ternary.aaxis", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/__init__.py index 13d914b231e..176847b678d 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='layout.ternary.aaxis.tickfont', - **kwargs + self, plotly_name="size", parent_name="layout.ternary.aaxis.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.ternary.aaxis.tickfont', + plotly_name="family", + parent_name="layout.ternary.aaxis.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +40,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.ternary.aaxis.tickfont', - **kwargs + self, plotly_name="color", parent_name="layout.ternary.aaxis.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/__init__.py index 5653f6e2e21..9316093da79 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='layout.ternary.aaxis.tickformatstop', + plotly_name="value", + parent_name="layout.ternary.aaxis.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='layout.ternary.aaxis.tickformatstop', + plotly_name="templateitemname", + parent_name="layout.ternary.aaxis.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='layout.ternary.aaxis.tickformatstop', + plotly_name="name", + parent_name="layout.ternary.aaxis.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='layout.ternary.aaxis.tickformatstop', + plotly_name="enabled", + parent_name="layout.ternary.aaxis.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='layout.ternary.aaxis.tickformatstop', + plotly_name="dtickrange", + parent_name="layout.ternary.aaxis.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'plot' - }, { - 'valType': 'any', - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "any", "editType": "plot"}, + {"valType": "any", "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/__init__.py index 7aa7e15cbcf..7afa0f75e7e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='layout.ternary.aaxis.title', - **kwargs + self, plotly_name="text", parent_name="layout.ternary.aaxis.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='layout.ternary.aaxis.title', - **kwargs + self, plotly_name="font", parent_name="layout.ternary.aaxis.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -57,7 +48,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/__init__.py index f6768bb9616..f4c529652c3 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/aaxis/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='layout.ternary.aaxis.title.font', + plotly_name="size", + parent_name="layout.ternary.aaxis.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.ternary.aaxis.title.font', + plotly_name="family", + parent_name="layout.ternary.aaxis.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='layout.ternary.aaxis.title.font', + plotly_name="color", + parent_name="layout.ternary.aaxis.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/__init__.py index 98d079580e2..9f8ddc18052 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='uirevision', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="uirevision", parent_name="layout.ternary.baxis", **kwargs ): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="title", parent_name="layout.ternary.baxis", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this axis' title font. Note that the title's font used to be customized by the now @@ -47,7 +38,7 @@ def __init__( contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -57,19 +48,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="tickwidth", parent_name="layout.ternary.baxis", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -78,18 +65,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="tickvalssrc", parent_name="layout.ternary.baxis", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -98,18 +81,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="tickvals", parent_name="layout.ternary.baxis", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -118,18 +97,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="ticktextsrc", parent_name="layout.ternary.baxis", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -138,18 +113,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="ticktext", parent_name="layout.ternary.baxis", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -158,18 +129,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="ticksuffix", parent_name="layout.ternary.baxis", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -178,19 +145,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="ticks", parent_name="layout.ternary.baxis", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -199,18 +162,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="tickprefix", parent_name="layout.ternary.baxis", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -219,20 +178,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="tickmode", parent_name="layout.ternary.baxis", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -241,19 +196,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="ticklen", parent_name="layout.ternary.baxis", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -262,19 +213,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='layout.ternary.baxis', + plotly_name="tickformatstopdefaults", + parent_name="layout.ternary.baxis", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -282,22 +235,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='layout.ternary.baxis', + plotly_name="tickformatstops", + parent_name="layout.ternary.baxis", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -331,7 +282,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -341,18 +292,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="tickformat", parent_name="layout.ternary.baxis", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -361,19 +308,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="tickfont", parent_name="layout.ternary.baxis", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -394,7 +338,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -404,18 +348,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="tickcolor", parent_name="layout.ternary.baxis", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -424,18 +364,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="tickangle", parent_name="layout.ternary.baxis", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -444,19 +380,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="tick0", parent_name="layout.ternary.baxis", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -464,22 +396,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="showticksuffix", parent_name="layout.ternary.baxis", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -487,22 +413,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="showtickprefix", parent_name="layout.ternary.baxis", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -511,18 +431,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="showticklabels", parent_name="layout.ternary.baxis", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -531,18 +447,14 @@ def __init__( class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showline', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="showline", parent_name="layout.ternary.baxis", **kwargs ): super(ShowlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -551,18 +463,14 @@ def __init__( class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showgrid', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="showgrid", parent_name="layout.ternary.baxis", **kwargs ): super(ShowgridValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -571,19 +479,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="showexponent", parent_name="layout.ternary.baxis", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -591,21 +495,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='layout.ternary.baxis', + plotly_name="separatethousands", + parent_name="layout.ternary.baxis", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -614,19 +515,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="nticks", parent_name="layout.ternary.baxis", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -635,16 +532,13 @@ def __init__( class MinValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='min', parent_name='layout.ternary.baxis', **kwargs - ): + def __init__(self, plotly_name="min", parent_name="layout.ternary.baxis", **kwargs): super(MinValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -653,19 +547,15 @@ def __init__( class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='linewidth', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="linewidth", parent_name="layout.ternary.baxis", **kwargs ): super(LinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -674,18 +564,14 @@ def __init__( class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='linecolor', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="linecolor", parent_name="layout.ternary.baxis", **kwargs ): super(LinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -694,19 +580,15 @@ def __init__( class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='layer', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="layer", parent_name="layout.ternary.baxis", **kwargs ): super(LayerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['above traces', 'below traces']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["above traces", "below traces"]), **kwargs ) @@ -715,18 +597,14 @@ def __init__( class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='hoverformat', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="hoverformat", parent_name="layout.ternary.baxis", **kwargs ): super(HoverformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -735,19 +613,15 @@ def __init__( class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='gridwidth', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="gridwidth", parent_name="layout.ternary.baxis", **kwargs ): super(GridwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -756,18 +630,14 @@ def __init__( class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='gridcolor', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="gridcolor", parent_name="layout.ternary.baxis", **kwargs ): super(GridcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -775,24 +645,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="exponentformat", parent_name="layout.ternary.baxis", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -801,19 +663,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="dtick", parent_name="layout.ternary.baxis", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -822,17 +680,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.ternary.baxis', - **kwargs + self, plotly_name="color", parent_name="layout.ternary.baxis", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/__init__.py index 4c46f480982..818b8edb95e 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='layout.ternary.baxis.tickfont', - **kwargs + self, plotly_name="size", parent_name="layout.ternary.baxis.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.ternary.baxis.tickfont', + plotly_name="family", + parent_name="layout.ternary.baxis.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +40,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.ternary.baxis.tickfont', - **kwargs + self, plotly_name="color", parent_name="layout.ternary.baxis.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/__init__.py index f8fc07ac8f1..ee3e8749d03 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='layout.ternary.baxis.tickformatstop', + plotly_name="value", + parent_name="layout.ternary.baxis.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='layout.ternary.baxis.tickformatstop', + plotly_name="templateitemname", + parent_name="layout.ternary.baxis.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='layout.ternary.baxis.tickformatstop', + plotly_name="name", + parent_name="layout.ternary.baxis.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='layout.ternary.baxis.tickformatstop', + plotly_name="enabled", + parent_name="layout.ternary.baxis.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='layout.ternary.baxis.tickformatstop', + plotly_name="dtickrange", + parent_name="layout.ternary.baxis.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'plot' - }, { - 'valType': 'any', - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "any", "editType": "plot"}, + {"valType": "any", "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/__init__.py index 5c89c40f419..827a00b5077 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='layout.ternary.baxis.title', - **kwargs + self, plotly_name="text", parent_name="layout.ternary.baxis.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='layout.ternary.baxis.title', - **kwargs + self, plotly_name="font", parent_name="layout.ternary.baxis.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -57,7 +48,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/__init__.py index 7750e596240..10120dc1083 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/baxis/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='layout.ternary.baxis.title.font', + plotly_name="size", + parent_name="layout.ternary.baxis.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.ternary.baxis.title.font', + plotly_name="family", + parent_name="layout.ternary.baxis.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='layout.ternary.baxis.title.font', + plotly_name="color", + parent_name="layout.ternary.baxis.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/__init__.py index c347257b84b..f4187800fe6 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='uirevision', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="uirevision", parent_name="layout.ternary.caxis", **kwargs ): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="title", parent_name="layout.ternary.caxis", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this axis' title font. Note that the title's font used to be customized by the now @@ -47,7 +38,7 @@ def __init__( contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -57,19 +48,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="tickwidth", parent_name="layout.ternary.caxis", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -78,18 +65,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="tickvalssrc", parent_name="layout.ternary.caxis", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -98,18 +81,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="tickvals", parent_name="layout.ternary.caxis", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -118,18 +97,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="ticktextsrc", parent_name="layout.ternary.caxis", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -138,18 +113,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="ticktext", parent_name="layout.ternary.caxis", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -158,18 +129,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="ticksuffix", parent_name="layout.ternary.caxis", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -178,19 +145,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="ticks", parent_name="layout.ternary.caxis", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -199,18 +162,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="tickprefix", parent_name="layout.ternary.caxis", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -219,20 +178,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="tickmode", parent_name="layout.ternary.caxis", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -241,19 +196,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="ticklen", parent_name="layout.ternary.caxis", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -262,19 +213,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='layout.ternary.caxis', + plotly_name="tickformatstopdefaults", + parent_name="layout.ternary.caxis", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -282,22 +235,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='layout.ternary.caxis', + plotly_name="tickformatstops", + parent_name="layout.ternary.caxis", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -331,7 +282,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -341,18 +292,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="tickformat", parent_name="layout.ternary.caxis", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -361,19 +308,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="tickfont", parent_name="layout.ternary.caxis", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -394,7 +338,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -404,18 +348,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="tickcolor", parent_name="layout.ternary.caxis", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -424,18 +364,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="tickangle", parent_name="layout.ternary.caxis", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -444,19 +380,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="tick0", parent_name="layout.ternary.caxis", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -464,22 +396,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="showticksuffix", parent_name="layout.ternary.caxis", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -487,22 +413,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="showtickprefix", parent_name="layout.ternary.caxis", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -511,18 +431,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="showticklabels", parent_name="layout.ternary.caxis", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -531,18 +447,14 @@ def __init__( class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showline', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="showline", parent_name="layout.ternary.caxis", **kwargs ): super(ShowlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -551,18 +463,14 @@ def __init__( class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showgrid', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="showgrid", parent_name="layout.ternary.caxis", **kwargs ): super(ShowgridValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -571,19 +479,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="showexponent", parent_name="layout.ternary.caxis", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -591,21 +495,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='layout.ternary.caxis', + plotly_name="separatethousands", + parent_name="layout.ternary.caxis", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -614,19 +515,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="nticks", parent_name="layout.ternary.caxis", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -635,16 +532,13 @@ def __init__( class MinValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='min', parent_name='layout.ternary.caxis', **kwargs - ): + def __init__(self, plotly_name="min", parent_name="layout.ternary.caxis", **kwargs): super(MinValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -653,19 +547,15 @@ def __init__( class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='linewidth', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="linewidth", parent_name="layout.ternary.caxis", **kwargs ): super(LinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -674,18 +564,14 @@ def __init__( class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='linecolor', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="linecolor", parent_name="layout.ternary.caxis", **kwargs ): super(LinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -694,19 +580,15 @@ def __init__( class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='layer', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="layer", parent_name="layout.ternary.caxis", **kwargs ): super(LayerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['above traces', 'below traces']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["above traces", "below traces"]), **kwargs ) @@ -715,18 +597,14 @@ def __init__( class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='hoverformat', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="hoverformat", parent_name="layout.ternary.caxis", **kwargs ): super(HoverformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -735,19 +613,15 @@ def __init__( class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='gridwidth', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="gridwidth", parent_name="layout.ternary.caxis", **kwargs ): super(GridwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -756,18 +630,14 @@ def __init__( class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='gridcolor', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="gridcolor", parent_name="layout.ternary.caxis", **kwargs ): super(GridcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -775,24 +645,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="exponentformat", parent_name="layout.ternary.caxis", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -801,19 +663,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="dtick", parent_name="layout.ternary.caxis", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -822,17 +680,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.ternary.caxis', - **kwargs + self, plotly_name="color", parent_name="layout.ternary.caxis", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/__init__.py index 91fefaca222..3b4a35d8011 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='layout.ternary.caxis.tickfont', - **kwargs + self, plotly_name="size", parent_name="layout.ternary.caxis.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.ternary.caxis.tickfont', + plotly_name="family", + parent_name="layout.ternary.caxis.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +40,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.ternary.caxis.tickfont', - **kwargs + self, plotly_name="color", parent_name="layout.ternary.caxis.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/__init__.py index 31b17ee4297..eb546a2ab20 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='layout.ternary.caxis.tickformatstop', + plotly_name="value", + parent_name="layout.ternary.caxis.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='layout.ternary.caxis.tickformatstop', + plotly_name="templateitemname", + parent_name="layout.ternary.caxis.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='layout.ternary.caxis.tickformatstop', + plotly_name="name", + parent_name="layout.ternary.caxis.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='layout.ternary.caxis.tickformatstop', + plotly_name="enabled", + parent_name="layout.ternary.caxis.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='layout.ternary.caxis.tickformatstop', + plotly_name="dtickrange", + parent_name="layout.ternary.caxis.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'plot' - }, { - 'valType': 'any', - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "any", "editType": "plot"}, + {"valType": "any", "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/__init__.py index 01b923924b1..bfcbdd80148 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='layout.ternary.caxis.title', - **kwargs + self, plotly_name="text", parent_name="layout.ternary.caxis.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='layout.ternary.caxis.title', - **kwargs + self, plotly_name="font", parent_name="layout.ternary.caxis.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -57,7 +48,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/__init__.py index ff823de5338..4ac87536f4d 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/caxis/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='layout.ternary.caxis.title.font', + plotly_name="size", + parent_name="layout.ternary.caxis.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.ternary.caxis.title.font', + plotly_name="family", + parent_name="layout.ternary.caxis.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='layout.ternary.caxis.title.font', + plotly_name="color", + parent_name="layout.ternary.caxis.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/ternary/domain/__init__.py b/packages/python/plotly/plotly/validators/layout/ternary/domain/__init__.py index b6c549047c1..3f5ec6e4be1 100644 --- a/packages/python/plotly/plotly/validators/layout/ternary/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/ternary/domain/__init__.py @@ -1,33 +1,20 @@ - - import _plotly_utils.basevalidators class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='y', parent_name='layout.ternary.domain', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="layout.ternary.domain", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -36,30 +23,19 @@ def __init__( class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='x', parent_name='layout.ternary.domain', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="layout.ternary.domain", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -68,16 +44,15 @@ def __init__( class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name='row', parent_name='layout.ternary.domain', **kwargs + self, plotly_name="row", parent_name="layout.ternary.domain", **kwargs ): super(RowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -86,18 +61,14 @@ def __init__( class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='column', - parent_name='layout.ternary.domain', - **kwargs + self, plotly_name="column", parent_name="layout.ternary.domain", **kwargs ): super(ColumnValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/title/__init__.py b/packages/python/plotly/plotly/validators/layout/title/__init__.py index 113fea7e342..19c4ce21de1 100644 --- a/packages/python/plotly/plotly/validators/layout/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/title/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='yref', parent_name='layout.title', **kwargs - ): + def __init__(self, plotly_name="yref", parent_name="layout.title", **kwargs): super(YrefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'layoutstyle'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['container', 'paper']), + edit_type=kwargs.pop("edit_type", "layoutstyle"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["container", "paper"]), **kwargs ) @@ -22,16 +17,13 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='yanchor', parent_name='layout.title', **kwargs - ): + def __init__(self, plotly_name="yanchor", parent_name="layout.title", **kwargs): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'layoutstyle'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "layoutstyle"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), **kwargs ) @@ -40,15 +32,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='y', parent_name='layout.title', **kwargs): + def __init__(self, plotly_name="y", parent_name="layout.title", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'layoutstyle'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "layoutstyle"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -57,16 +48,13 @@ def __init__(self, plotly_name='y', parent_name='layout.title', **kwargs): class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xref', parent_name='layout.title', **kwargs - ): + def __init__(self, plotly_name="xref", parent_name="layout.title", **kwargs): super(XrefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'layoutstyle'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['container', 'paper']), + edit_type=kwargs.pop("edit_type", "layoutstyle"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["container", "paper"]), **kwargs ) @@ -75,16 +63,13 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xanchor', parent_name='layout.title', **kwargs - ): + def __init__(self, plotly_name="xanchor", parent_name="layout.title", **kwargs): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'layoutstyle'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "layoutstyle"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "left", "center", "right"]), **kwargs ) @@ -93,15 +78,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='x', parent_name='layout.title', **kwargs): + def __init__(self, plotly_name="x", parent_name="layout.title", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'layoutstyle'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "layoutstyle"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -110,15 +94,12 @@ def __init__(self, plotly_name='x', parent_name='layout.title', **kwargs): class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='text', parent_name='layout.title', **kwargs - ): + def __init__(self, plotly_name="text", parent_name="layout.title", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'layoutstyle'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "layoutstyle"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -127,16 +108,14 @@ def __init__( class PadValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='pad', parent_name='layout.title', **kwargs - ): + def __init__(self, plotly_name="pad", parent_name="layout.title", **kwargs): super(PadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Pad'), + data_class_str=kwargs.pop("data_class_str", "Pad"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ b The amount of padding (in px) along the bottom of the component. @@ -149,7 +128,7 @@ def __init__( t The amount of padding (in px) along the top of the component. -""" +""", ), **kwargs ) @@ -159,16 +138,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='layout.title', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="layout.title", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -189,7 +166,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/title/font/__init__.py index 7b6173e1eab..d5dbc43d28f 100644 --- a/packages/python/plotly/plotly/validators/layout/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/title/font/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='layout.title.font', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="layout.title.font", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'layoutstyle'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "layoutstyle"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,17 +17,14 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='family', parent_name='layout.title.font', **kwargs - ): + def __init__(self, plotly_name="family", parent_name="layout.title.font", **kwargs): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'layoutstyle'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "layoutstyle"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -41,14 +33,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='layout.title.font', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="layout.title.font", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'layoutstyle'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "layoutstyle"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/title/pad/__init__.py b/packages/python/plotly/plotly/validators/layout/title/pad/__init__.py index 838425be182..ad781d04ebd 100644 --- a/packages/python/plotly/plotly/validators/layout/title/pad/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/title/pad/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class TValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='t', parent_name='layout.title.pad', **kwargs - ): + def __init__(self, plotly_name="t", parent_name="layout.title.pad", **kwargs): super(TValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'layoutstyle'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "layoutstyle"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -21,15 +16,12 @@ def __init__( class RValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='r', parent_name='layout.title.pad', **kwargs - ): + def __init__(self, plotly_name="r", parent_name="layout.title.pad", **kwargs): super(RValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'layoutstyle'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "layoutstyle"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -38,15 +30,12 @@ def __init__( class LValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='l', parent_name='layout.title.pad', **kwargs - ): + def __init__(self, plotly_name="l", parent_name="layout.title.pad", **kwargs): super(LValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'layoutstyle'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "layoutstyle"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -55,14 +44,11 @@ def __init__( class BValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='b', parent_name='layout.title.pad', **kwargs - ): + def __init__(self, plotly_name="b", parent_name="layout.title.pad", **kwargs): super(BValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'layoutstyle'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "layoutstyle"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/transition/__init__.py b/packages/python/plotly/plotly/validators/layout/transition/__init__.py index 6cd39737cde..5a4ce61ef21 100644 --- a/packages/python/plotly/plotly/validators/layout/transition/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/transition/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class OrderingValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ordering', - parent_name='layout.transition', - **kwargs + self, plotly_name="ordering", parent_name="layout.transition", **kwargs ): super(OrderingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['layout first', 'traces first']), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["layout first", "traces first"]), **kwargs ) @@ -25,27 +19,52 @@ def __init__( class EasingValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='easing', parent_name='layout.transition', **kwargs - ): + def __init__(self, plotly_name="easing", parent_name="layout.transition", **kwargs): super(EasingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'linear', 'quad', 'cubic', 'sin', 'exp', 'circle', - 'elastic', 'back', 'bounce', 'linear-in', 'quad-in', - 'cubic-in', 'sin-in', 'exp-in', 'circle-in', 'elastic-in', - 'back-in', 'bounce-in', 'linear-out', 'quad-out', - 'cubic-out', 'sin-out', 'exp-out', 'circle-out', - 'elastic-out', 'back-out', 'bounce-out', 'linear-in-out', - 'quad-in-out', 'cubic-in-out', 'sin-in-out', 'exp-in-out', - 'circle-in-out', 'elastic-in-out', 'back-in-out', - 'bounce-in-out' - ] + "values", + [ + "linear", + "quad", + "cubic", + "sin", + "exp", + "circle", + "elastic", + "back", + "bounce", + "linear-in", + "quad-in", + "cubic-in", + "sin-in", + "exp-in", + "circle-in", + "elastic-in", + "back-in", + "bounce-in", + "linear-out", + "quad-out", + "cubic-out", + "sin-out", + "exp-out", + "circle-out", + "elastic-out", + "back-out", + "bounce-out", + "linear-in-out", + "quad-in-out", + "cubic-in-out", + "sin-in-out", + "exp-in-out", + "circle-in-out", + "elastic-in-out", + "back-in-out", + "bounce-in-out", + ], ), **kwargs ) @@ -55,18 +74,14 @@ def __init__( class DurationValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='duration', - parent_name='layout.transition', - **kwargs + self, plotly_name="duration", parent_name="layout.transition", **kwargs ): super(DurationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/__init__.py b/packages/python/plotly/plotly/validators/layout/updatemenu/__init__.py index 10caea1f8e6..af3991c2bc3 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/__init__.py @@ -1,19 +1,16 @@ - - import _plotly_utils.basevalidators class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='yanchor', parent_name='layout.updatemenu', **kwargs + self, plotly_name="yanchor", parent_name="layout.updatemenu", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), **kwargs ) @@ -22,17 +19,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='layout.updatemenu', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="layout.updatemenu", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -41,16 +35,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='xanchor', parent_name='layout.updatemenu', **kwargs + self, plotly_name="xanchor", parent_name="layout.updatemenu", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "left", "center", "right"]), **kwargs ) @@ -59,17 +52,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='layout.updatemenu', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="layout.updatemenu", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -78,15 +68,14 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='visible', parent_name='layout.updatemenu', **kwargs + self, plotly_name="visible", parent_name="layout.updatemenu", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -95,16 +84,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='layout.updatemenu', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="layout.updatemenu", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['dropdown', 'buttons']), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["dropdown", "buttons"]), **kwargs ) @@ -113,18 +99,14 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='templateitemname', - parent_name='layout.updatemenu', - **kwargs + self, plotly_name="templateitemname", parent_name="layout.updatemenu", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -133,18 +115,14 @@ def __init__( class ShowactiveValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showactive', - parent_name='layout.updatemenu', - **kwargs + self, plotly_name="showactive", parent_name="layout.updatemenu", **kwargs ): super(ShowactiveValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -153,16 +131,14 @@ def __init__( class PadValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='pad', parent_name='layout.updatemenu', **kwargs - ): + def __init__(self, plotly_name="pad", parent_name="layout.updatemenu", **kwargs): super(PadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Pad'), + data_class_str=kwargs.pop("data_class_str", "Pad"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ b The amount of padding (in px) along the bottom of the component. @@ -175,7 +151,7 @@ def __init__( t The amount of padding (in px) along the top of the component. -""" +""", ), **kwargs ) @@ -185,15 +161,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='layout.updatemenu', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="layout.updatemenu", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -202,16 +175,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='layout.updatemenu', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="layout.updatemenu", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -232,7 +203,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -242,19 +213,15 @@ def __init__( class DirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='direction', - parent_name='layout.updatemenu', - **kwargs + self, plotly_name="direction", parent_name="layout.updatemenu", **kwargs ): super(DirectionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['left', 'right', 'up', 'down']), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["left", "right", "up", "down"]), **kwargs ) @@ -263,19 +230,18 @@ def __init__( class ButtonValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='buttondefaults', - parent_name='layout.updatemenu', - **kwargs + self, plotly_name="buttondefaults", parent_name="layout.updatemenu", **kwargs ): super(ButtonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Button'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Button"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -284,16 +250,16 @@ def __init__( class ButtonsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, plotly_name='buttons', parent_name='layout.updatemenu', **kwargs + self, plotly_name="buttons", parent_name="layout.updatemenu", **kwargs ): super(ButtonsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Button'), + data_class_str=kwargs.pop("data_class_str", "Button"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ args Sets the arguments values to be passed to the Plotly method set in `method` on click. @@ -341,7 +307,7 @@ def __init__( visible Determines whether or not this button is visible. -""" +""", ), **kwargs ) @@ -351,19 +317,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='layout.updatemenu', - **kwargs + self, plotly_name="borderwidth", parent_name="layout.updatemenu", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -372,18 +334,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='layout.updatemenu', - **kwargs + self, plotly_name="bordercolor", parent_name="layout.updatemenu", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -392,15 +350,14 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='bgcolor', parent_name='layout.updatemenu', **kwargs + self, plotly_name="bgcolor", parent_name="layout.updatemenu", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -409,15 +366,12 @@ def __init__( class ActiveValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='active', parent_name='layout.updatemenu', **kwargs - ): + def __init__(self, plotly_name="active", parent_name="layout.updatemenu", **kwargs): super(ActiveValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/button/__init__.py b/packages/python/plotly/plotly/validators/layout/updatemenu/button/__init__.py index 8f527b396b3..74581eedda7 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/button/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/button/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='visible', - parent_name='layout.updatemenu.button', - **kwargs + self, plotly_name="visible", parent_name="layout.updatemenu.button", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +18,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='layout.updatemenu.button', + plotly_name="templateitemname", + parent_name="layout.updatemenu.button", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +37,14 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='name', - parent_name='layout.updatemenu.button', - **kwargs + self, plotly_name="name", parent_name="layout.updatemenu.button", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,20 +53,16 @@ def __init__( class MethodValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='method', - parent_name='layout.updatemenu.button', - **kwargs + self, plotly_name="method", parent_name="layout.updatemenu.button", **kwargs ): super(MethodValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', ['restyle', 'relayout', 'animate', 'update', 'skip'] + "values", ["restyle", "relayout", "animate", "update", "skip"] ), **kwargs ) @@ -87,18 +72,14 @@ def __init__( class LabelValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='label', - parent_name='layout.updatemenu.button', - **kwargs + self, plotly_name="label", parent_name="layout.updatemenu.button", **kwargs ): super(LabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -107,18 +88,14 @@ def __init__( class ExecuteValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='execute', - parent_name='layout.updatemenu.button', - **kwargs + self, plotly_name="execute", parent_name="layout.updatemenu.button", **kwargs ): super(ExecuteValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -127,32 +104,22 @@ def __init__( class ArgsValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name='args', - parent_name='layout.updatemenu.button', - **kwargs + self, plotly_name="args", parent_name="layout.updatemenu.button", **kwargs ): super(ArgsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - free_length=kwargs.pop('free_length', True), + edit_type=kwargs.pop("edit_type", "arraydraw"), + free_length=kwargs.pop("free_length", True), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'arraydraw' - }, { - 'valType': 'any', - 'editType': 'arraydraw' - }, { - 'valType': 'any', - 'editType': 'arraydraw' - } - ] + "items", + [ + {"valType": "any", "editType": "arraydraw"}, + {"valType": "any", "editType": "arraydraw"}, + {"valType": "any", "editType": "arraydraw"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/font/__init__.py b/packages/python/plotly/plotly/validators/layout/updatemenu/font/__init__.py index f40904ab064..ec4f375013c 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='layout.updatemenu.font', - **kwargs + self, plotly_name="size", parent_name="layout.updatemenu.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='layout.updatemenu.font', - **kwargs + self, plotly_name="family", parent_name="layout.updatemenu.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "arraydraw"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.updatemenu.font', - **kwargs + self, plotly_name="color", parent_name="layout.updatemenu.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/updatemenu/pad/__init__.py b/packages/python/plotly/plotly/validators/layout/updatemenu/pad/__init__.py index 0b3b9ec8c30..1a13c38a10b 100644 --- a/packages/python/plotly/plotly/validators/layout/updatemenu/pad/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/updatemenu/pad/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class TValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='t', parent_name='layout.updatemenu.pad', **kwargs - ): + def __init__(self, plotly_name="t", parent_name="layout.updatemenu.pad", **kwargs): super(TValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -21,15 +16,12 @@ def __init__( class RValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='r', parent_name='layout.updatemenu.pad', **kwargs - ): + def __init__(self, plotly_name="r", parent_name="layout.updatemenu.pad", **kwargs): super(RValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -38,15 +30,12 @@ def __init__( class LValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='l', parent_name='layout.updatemenu.pad', **kwargs - ): + def __init__(self, plotly_name="l", parent_name="layout.updatemenu.pad", **kwargs): super(LValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -55,14 +44,11 @@ def __init__( class BValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='b', parent_name='layout.updatemenu.pad', **kwargs - ): + def __init__(self, plotly_name="b", parent_name="layout.updatemenu.pad", **kwargs): super(BValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'arraydraw'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "arraydraw"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/__init__.py index c3c2e13c0aa..edb0d630c6d 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ZerolinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='zerolinewidth', - parent_name='layout.xaxis', - **kwargs + self, plotly_name="zerolinewidth", parent_name="layout.xaxis", **kwargs ): super(ZerolinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class ZerolinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='zerolinecolor', - parent_name='layout.xaxis', - **kwargs + self, plotly_name="zerolinecolor", parent_name="layout.xaxis", **kwargs ): super(ZerolinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -44,15 +34,12 @@ def __init__( class ZerolineValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='zeroline', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="zeroline", parent_name="layout.xaxis", **kwargs): super(ZerolineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -61,15 +48,12 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='visible', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="layout.xaxis", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -78,15 +62,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="layout.xaxis", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -95,18 +76,14 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="layout.xaxis", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', - ['-', 'linear', 'log', 'date', 'category', 'multicategory'] + "values", ["-", "linear", "log", "date", "category", "multicategory"] ), **kwargs ) @@ -116,16 +93,14 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - - def __init__( - self, plotly_name='title', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="title", parent_name="layout.xaxis", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this axis' title font. Note that the title's font used to be customized by the now @@ -136,7 +111,7 @@ def __init__( contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -146,16 +121,13 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='tickwidth', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="tickwidth", parent_name="layout.xaxis", **kwargs): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -164,15 +136,12 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='tickvalssrc', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="tickvalssrc", parent_name="layout.xaxis", **kwargs): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -181,15 +150,12 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='tickvals', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="tickvals", parent_name="layout.xaxis", **kwargs): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -198,15 +164,12 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='ticktextsrc', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="ticktextsrc", parent_name="layout.xaxis", **kwargs): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -215,15 +178,12 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='ticktext', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="ticktext", parent_name="layout.xaxis", **kwargs): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -232,15 +192,12 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='ticksuffix', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="ticksuffix", parent_name="layout.xaxis", **kwargs): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -249,16 +206,13 @@ def __init__( class TicksonValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='tickson', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="tickson", parent_name="layout.xaxis", **kwargs): super(TicksonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['labels', 'boundaries']), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["labels", "boundaries"]), **kwargs ) @@ -267,16 +221,13 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ticks', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="ticks", parent_name="layout.xaxis", **kwargs): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -285,15 +236,12 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='tickprefix', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="tickprefix", parent_name="layout.xaxis", **kwargs): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -302,17 +250,14 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='tickmode', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="tickmode", parent_name="layout.xaxis", **kwargs): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "ticks"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -321,16 +266,13 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ticklen', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="ticklen", parent_name="layout.xaxis", **kwargs): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -339,19 +281,18 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickformatstopdefaults', - parent_name='layout.xaxis', - **kwargs + self, plotly_name="tickformatstopdefaults", parent_name="layout.xaxis", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -359,22 +300,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='layout.xaxis', - **kwargs + self, plotly_name="tickformatstops", parent_name="layout.xaxis", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -408,7 +344,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -418,15 +354,12 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='tickformat', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="tickformat", parent_name="layout.xaxis", **kwargs): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -435,16 +368,14 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='tickfont', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="tickfont", parent_name="layout.xaxis", **kwargs): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -465,7 +396,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -475,15 +406,12 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='tickcolor', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="tickcolor", parent_name="layout.xaxis", **kwargs): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -492,15 +420,12 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - - def __init__( - self, plotly_name='tickangle', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="tickangle", parent_name="layout.xaxis", **kwargs): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -509,16 +434,13 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='tick0', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="tick0", parent_name="layout.xaxis", **kwargs): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -527,18 +449,14 @@ def __init__( class SpikethicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='spikethickness', - parent_name='layout.xaxis', - **kwargs + self, plotly_name="spikethickness", parent_name="layout.xaxis", **kwargs ): super(SpikethicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -547,16 +465,13 @@ def __init__( class SpikesnapValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='spikesnap', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="spikesnap", parent_name="layout.xaxis", **kwargs): super(SpikesnapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['data', 'cursor']), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["data", "cursor"]), **kwargs ) @@ -565,16 +480,13 @@ def __init__( class SpikemodeValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='spikemode', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="spikemode", parent_name="layout.xaxis", **kwargs): super(SpikemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - flags=kwargs.pop('flags', ['toaxis', 'across', 'marker']), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + flags=kwargs.pop("flags", ["toaxis", "across", "marker"]), + role=kwargs.pop("role", "style"), **kwargs ) @@ -583,18 +495,14 @@ def __init__( class SpikedashValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='spikedash', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="spikedash", parent_name="layout.xaxis", **kwargs): super(SpikedashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -604,15 +512,12 @@ def __init__( class SpikecolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='spikecolor', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="spikecolor", parent_name="layout.xaxis", **kwargs): super(SpikecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -621,16 +526,13 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='side', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="side", parent_name="layout.xaxis", **kwargs): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['top', 'bottom', 'left', 'right']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["top", "bottom", "left", "right"]), **kwargs ) @@ -638,22 +540,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='layout.xaxis', - **kwargs + self, plotly_name="showticksuffix", parent_name="layout.xaxis", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -661,22 +557,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='layout.xaxis', - **kwargs + self, plotly_name="showtickprefix", parent_name="layout.xaxis", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -685,18 +575,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='layout.xaxis', - **kwargs + self, plotly_name="showticklabels", parent_name="layout.xaxis", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -705,15 +591,12 @@ def __init__( class ShowspikesValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showspikes', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="showspikes", parent_name="layout.xaxis", **kwargs): super(ShowspikesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'modebar'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "modebar"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -722,15 +605,12 @@ def __init__( class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showline', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="showline", parent_name="layout.xaxis", **kwargs): super(ShowlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks+layoutstyle'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -739,15 +619,12 @@ def __init__( class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showgrid', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="showgrid", parent_name="layout.xaxis", **kwargs): super(ShowgridValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -756,16 +633,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='showexponent', parent_name='layout.xaxis', **kwargs + self, plotly_name="showexponent", parent_name="layout.xaxis", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -774,15 +650,14 @@ def __init__( class ShowdividersValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='showdividers', parent_name='layout.xaxis', **kwargs + self, plotly_name="showdividers", parent_name="layout.xaxis", **kwargs ): super(ShowdividersValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -790,21 +665,15 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( - self, - plotly_name='separatethousands', - parent_name='layout.xaxis', - **kwargs + self, plotly_name="separatethousands", parent_name="layout.xaxis", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -813,16 +682,13 @@ def __init__( class ScaleratioValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='scaleratio', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="scaleratio", parent_name="layout.xaxis", **kwargs): super(ScaleratioValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -831,18 +697,14 @@ def __init__( class ScaleanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='scaleanchor', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="scaleanchor", parent_name="layout.xaxis", **kwargs): super(ScaleanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', - ['/^x([2-9]|[1-9][0-9]+)?$/', '/^y([2-9]|[1-9][0-9]+)?$/'] + "values", ["/^x([2-9]|[1-9][0-9]+)?$/", "/^y([2-9]|[1-9][0-9]+)?$/"] ), **kwargs ) @@ -852,16 +714,14 @@ def __init__( class RangesliderValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='rangeslider', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="rangeslider", parent_name="layout.xaxis", **kwargs): super(RangesliderValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Rangeslider'), + data_class_str=kwargs.pop("data_class_str", "Rangeslider"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autorange Determines whether or not the range slider range is computed in relation to the input @@ -895,7 +755,7 @@ def __init__( yaxis plotly.graph_objs.layout.xaxis.rangeslider.YAxi s instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -905,19 +765,16 @@ def __init__( class RangeselectorValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='rangeselector', - parent_name='layout.xaxis', - **kwargs + self, plotly_name="rangeselector", parent_name="layout.xaxis", **kwargs ): super(RangeselectorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Rangeselector'), + data_class_str=kwargs.pop("data_class_str", "Rangeselector"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ activecolor Sets the background color of the active range selector button. @@ -963,7 +820,7 @@ def __init__( anchor This anchor binds the `y` position to the "top", "middle" or "bottom" of the range selector. -""" +""", ), **kwargs ) @@ -973,16 +830,13 @@ def __init__( class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='rangemode', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="rangemode", parent_name="layout.xaxis", **kwargs): super(RangemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['normal', 'tozero', 'nonnegative']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), **kwargs ) @@ -991,36 +845,31 @@ def __init__( class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='range', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="range", parent_name="layout.xaxis", **kwargs): super(RangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'axrange'), - implied_edits=kwargs.pop('implied_edits', {'autorange': False}), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "axrange"), + implied_edits=kwargs.pop("implied_edits", {"autorange": False}), items=kwargs.pop( - 'items', [ + "items", + [ + { + "valType": "any", + "editType": "axrange", + "impliedEdits": {"^autorange": False}, + "anim": True, + }, { - 'valType': 'any', - 'editType': 'axrange', - 'impliedEdits': { - '^autorange': False - }, - 'anim': True - }, { - 'valType': 'any', - 'editType': 'axrange', - 'impliedEdits': { - '^autorange': False - }, - 'anim': True - } - ] + "valType": "any", + "editType": "axrange", + "impliedEdits": {"^autorange": False}, + "anim": True, + }, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1029,17 +878,14 @@ def __init__( class PositionValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='position', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="position", parent_name="layout.xaxis", **kwargs): super(PositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1048,20 +894,15 @@ def __init__( class OverlayingValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='overlaying', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="overlaying", parent_name="layout.xaxis", **kwargs): super(OverlayingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'free', '/^x([2-9]|[1-9][0-9]+)?$/', - '/^y([2-9]|[1-9][0-9]+)?$/' - ] + "values", + ["free", "/^x([2-9]|[1-9][0-9]+)?$/", "/^y([2-9]|[1-9][0-9]+)?$/"], ), **kwargs ) @@ -1071,16 +912,13 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='nticks', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="nticks", parent_name="layout.xaxis", **kwargs): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1089,18 +927,13 @@ def __init__( class MirrorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='mirror', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="mirror", parent_name="layout.xaxis", **kwargs): super(MirrorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks+layoutstyle'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', [True, 'ticks', False, 'all', 'allticks'] - ), + edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", [True, "ticks", False, "all", "allticks"]), **kwargs ) @@ -1109,18 +942,14 @@ def __init__( class MatchesValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='matches', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="matches", parent_name="layout.xaxis", **kwargs): super(MatchesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', - ['/^x([2-9]|[1-9][0-9]+)?$/', '/^y([2-9]|[1-9][0-9]+)?$/'] + "values", ["/^x([2-9]|[1-9][0-9]+)?$/", "/^y([2-9]|[1-9][0-9]+)?$/"] ), **kwargs ) @@ -1130,16 +959,13 @@ def __init__( class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='linewidth', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="linewidth", parent_name="layout.xaxis", **kwargs): super(LinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks+layoutstyle'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1148,15 +974,12 @@ def __init__( class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='linecolor', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="linecolor", parent_name="layout.xaxis", **kwargs): super(LinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'layoutstyle'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "layoutstyle"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1165,16 +988,13 @@ def __init__( class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='layer', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="layer", parent_name="layout.xaxis", **kwargs): super(LayerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['above traces', 'below traces']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["above traces", "below traces"]), **kwargs ) @@ -1183,15 +1003,12 @@ def __init__( class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hoverformat', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="hoverformat", parent_name="layout.xaxis", **kwargs): super(HoverformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1200,16 +1017,13 @@ def __init__( class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='gridwidth', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="gridwidth", parent_name="layout.xaxis", **kwargs): super(GridwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1218,15 +1032,12 @@ def __init__( class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='gridcolor', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="gridcolor", parent_name="layout.xaxis", **kwargs): super(GridcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1235,15 +1046,12 @@ def __init__( class FixedrangeValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='fixedrange', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="fixedrange", parent_name="layout.xaxis", **kwargs): super(FixedrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1251,24 +1059,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='layout.xaxis', - **kwargs + self, plotly_name="exponentformat", parent_name="layout.xaxis", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -1277,16 +1077,13 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='dtick', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="dtick", parent_name="layout.xaxis", **kwargs): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1295,30 +1092,19 @@ def __init__( class DomainValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='domain', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="domain", parent_name="layout.xaxis", **kwargs): super(DomainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1327,15 +1113,14 @@ def __init__( class DividerwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='dividerwidth', parent_name='layout.xaxis', **kwargs + self, plotly_name="dividerwidth", parent_name="layout.xaxis", **kwargs ): super(DividerwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1344,15 +1129,14 @@ def __init__( class DividercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='dividercolor', parent_name='layout.xaxis', **kwargs + self, plotly_name="dividercolor", parent_name="layout.xaxis", **kwargs ): super(DividercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1360,24 +1144,17 @@ def __init__( import _plotly_utils.basevalidators -class ConstraintowardValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ConstraintowardValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='constraintoward', - parent_name='layout.xaxis', - **kwargs + self, plotly_name="constraintoward", parent_name="layout.xaxis", **kwargs ): super(ConstraintowardValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', - ['left', 'center', 'right', 'top', 'middle', 'bottom'] + "values", ["left", "center", "right", "top", "middle", "bottom"] ), **kwargs ) @@ -1387,16 +1164,13 @@ def __init__( class ConstrainValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='constrain', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="constrain", parent_name="layout.xaxis", **kwargs): super(ConstrainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['range', 'domain']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["range", "domain"]), **kwargs ) @@ -1405,15 +1179,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="layout.xaxis", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1422,27 +1193,34 @@ def __init__( class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='categoryorder', - parent_name='layout.xaxis', - **kwargs + self, plotly_name="categoryorder", parent_name="layout.xaxis", **kwargs ): super(CategoryorderValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'trace', 'category ascending', 'category descending', - 'array', 'total ascending', 'total descending', - 'min ascending', 'min descending', 'max ascending', - 'max descending', 'sum ascending', 'sum descending', - 'mean ascending', 'mean descending', 'median ascending', - 'median descending' - ] + "values", + [ + "trace", + "category ascending", + "category descending", + "array", + "total ascending", + "total descending", + "min ascending", + "min descending", + "max ascending", + "max descending", + "sum ascending", + "sum descending", + "mean ascending", + "mean descending", + "median ascending", + "median descending", + ], ), **kwargs ) @@ -1452,18 +1230,14 @@ def __init__( class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='categoryarraysrc', - parent_name='layout.xaxis', - **kwargs + self, plotly_name="categoryarraysrc", parent_name="layout.xaxis", **kwargs ): super(CategoryarraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1472,18 +1246,14 @@ def __init__( class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='categoryarray', - parent_name='layout.xaxis', - **kwargs + self, plotly_name="categoryarray", parent_name="layout.xaxis", **kwargs ): super(CategoryarrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1492,22 +1262,32 @@ def __init__( class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='calendar', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="calendar", parent_name="layout.xaxis", **kwargs): super(CalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -1517,17 +1297,14 @@ def __init__( class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='autorange', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="autorange", parent_name="layout.xaxis", **kwargs): super(AutorangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'axrange'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'reversed']), + edit_type=kwargs.pop("edit_type", "axrange"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "reversed"]), **kwargs ) @@ -1536,15 +1313,12 @@ def __init__( class AutomarginValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='automargin', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="automargin", parent_name="layout.xaxis", **kwargs): super(AutomarginValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1553,20 +1327,15 @@ def __init__( class AnchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='anchor', parent_name='layout.xaxis', **kwargs - ): + def __init__(self, plotly_name="anchor", parent_name="layout.xaxis", **kwargs): super(AnchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'free', '/^x([2-9]|[1-9][0-9]+)?$/', - '/^y([2-9]|[1-9][0-9]+)?$/' - ] + "values", + ["free", "/^x([2-9]|[1-9][0-9]+)?$/", "/^y([2-9]|[1-9][0-9]+)?$/"], ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/__init__.py index 542fd20036e..f8629d4eb35 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='layout.xaxis.rangeselector', - **kwargs + self, plotly_name="yanchor", parent_name="layout.xaxis.rangeselector", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='y', - parent_name='layout.xaxis.rangeselector', - **kwargs + self, plotly_name="y", parent_name="layout.xaxis.rangeselector", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,19 +37,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='layout.xaxis.rangeselector', - **kwargs + self, plotly_name="xanchor", parent_name="layout.xaxis.rangeselector", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "left", "center", "right"]), **kwargs ) @@ -68,20 +54,16 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='x', - parent_name='layout.xaxis.rangeselector', - **kwargs + self, plotly_name="x", parent_name="layout.xaxis.rangeselector", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -90,18 +72,14 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='visible', - parent_name='layout.xaxis.rangeselector', - **kwargs + self, plotly_name="visible", parent_name="layout.xaxis.rangeselector", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -110,19 +88,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='layout.xaxis.rangeselector', - **kwargs + self, plotly_name="font", parent_name="layout.xaxis.rangeselector", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -143,7 +118,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -153,19 +128,21 @@ def __init__( class ButtonValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='buttondefaults', - parent_name='layout.xaxis.rangeselector', + plotly_name="buttondefaults", + parent_name="layout.xaxis.rangeselector", **kwargs ): super(ButtonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Button'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Button"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -174,19 +151,16 @@ def __init__( class ButtonsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - def __init__( - self, - plotly_name='buttons', - parent_name='layout.xaxis.rangeselector', - **kwargs + self, plotly_name="buttons", parent_name="layout.xaxis.rangeselector", **kwargs ): super(ButtonsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Button'), + data_class_str=kwargs.pop("data_class_str", "Button"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ count Sets the number of steps to take to update the range. Use with `step` to specify the update @@ -232,7 +206,7 @@ def __init__( visible Determines whether or not this button is visible. -""" +""", ), **kwargs ) @@ -242,19 +216,18 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='borderwidth', - parent_name='layout.xaxis.rangeselector', + plotly_name="borderwidth", + parent_name="layout.xaxis.rangeselector", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -263,18 +236,17 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='layout.xaxis.rangeselector', + plotly_name="bordercolor", + parent_name="layout.xaxis.rangeselector", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -283,18 +255,14 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='layout.xaxis.rangeselector', - **kwargs + self, plotly_name="bgcolor", parent_name="layout.xaxis.rangeselector", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -303,17 +271,16 @@ def __init__( class ActivecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='activecolor', - parent_name='layout.xaxis.rangeselector', + plotly_name="activecolor", + parent_name="layout.xaxis.rangeselector", **kwargs ): super(ActivecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/__init__.py index c97a7095b6a..bfaaf05af68 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/button/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='visible', - parent_name='layout.xaxis.rangeselector.button', + plotly_name="visible", + parent_name="layout.xaxis.rangeselector.button", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='layout.xaxis.rangeselector.button', + plotly_name="templateitemname", + parent_name="layout.xaxis.rangeselector.button", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,19 +40,18 @@ def __init__( class StepmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='stepmode', - parent_name='layout.xaxis.rangeselector.button', + plotly_name="stepmode", + parent_name="layout.xaxis.rangeselector.button", **kwargs ): super(StepmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['backward', 'todate']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["backward", "todate"]), **kwargs ) @@ -65,21 +60,19 @@ def __init__( class StepValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='step', - parent_name='layout.xaxis.rangeselector.button', + plotly_name="step", + parent_name="layout.xaxis.rangeselector.button", **kwargs ): super(StepValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', - ['month', 'year', 'day', 'hour', 'minute', 'second', 'all'] + "values", ["month", "year", "day", "hour", "minute", "second", "all"] ), **kwargs ) @@ -89,18 +82,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='layout.xaxis.rangeselector.button', + plotly_name="name", + parent_name="layout.xaxis.rangeselector.button", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -109,18 +101,17 @@ def __init__( class LabelValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='label', - parent_name='layout.xaxis.rangeselector.button', + plotly_name="label", + parent_name="layout.xaxis.rangeselector.button", **kwargs ): super(LabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -129,18 +120,17 @@ def __init__( class CountValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='count', - parent_name='layout.xaxis.rangeselector.button', + plotly_name="count", + parent_name="layout.xaxis.rangeselector.button", **kwargs ): super(CountValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/__init__.py index c1765895ffa..39aaa2725c3 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeselector/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='layout.xaxis.rangeselector.font', + plotly_name="size", + parent_name="layout.xaxis.rangeselector.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='layout.xaxis.rangeselector.font', + plotly_name="family", + parent_name="layout.xaxis.rangeselector.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='layout.xaxis.rangeselector.font', + plotly_name="color", + parent_name="layout.xaxis.rangeselector.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/__init__.py index 5766e026a90..c93da973ccd 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/__init__.py @@ -1,22 +1,17 @@ - - import _plotly_utils.basevalidators class YAxisValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='yaxis', - parent_name='layout.xaxis.rangeslider', - **kwargs + self, plotly_name="yaxis", parent_name="layout.xaxis.rangeslider", **kwargs ): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'YAxis'), + data_class_str=kwargs.pop("data_class_str", "YAxis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ range Sets the range of this axis for the rangeslider. @@ -28,7 +23,7 @@ def __init__( the `range` is used. If "match", the current range of the corresponding y-axis on the main subplot is used. -""" +""", ), **kwargs ) @@ -38,18 +33,14 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='visible', - parent_name='layout.xaxis.rangeslider', - **kwargs + self, plotly_name="visible", parent_name="layout.xaxis.rangeslider", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -58,20 +49,16 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='layout.xaxis.rangeslider', - **kwargs + self, plotly_name="thickness", parent_name="layout.xaxis.rangeslider", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -80,36 +67,30 @@ def __init__( class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, - plotly_name='range', - parent_name='layout.xaxis.rangeslider', - **kwargs + self, plotly_name="range", parent_name="layout.xaxis.rangeslider", **kwargs ): super(RangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'autorange': False}), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autorange": False}), items=kwargs.pop( - 'items', [ + "items", + [ + { + "valType": "any", + "editType": "calc", + "impliedEdits": {"^autorange": False}, + }, { - 'valType': 'any', - 'editType': 'calc', - 'impliedEdits': { - '^autorange': False - } - }, { - 'valType': 'any', - 'editType': 'calc', - 'impliedEdits': { - '^autorange': False - } - } - ] + "valType": "any", + "editType": "calc", + "impliedEdits": {"^autorange": False}, + }, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,19 +99,18 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( self, - plotly_name='borderwidth', - parent_name='layout.xaxis.rangeslider', + plotly_name="borderwidth", + parent_name="layout.xaxis.rangeslider", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -139,18 +119,17 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='layout.xaxis.rangeslider', + plotly_name="bordercolor", + parent_name="layout.xaxis.rangeslider", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -159,18 +138,14 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='layout.xaxis.rangeslider', - **kwargs + self, plotly_name="bgcolor", parent_name="layout.xaxis.rangeslider", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -179,18 +154,14 @@ def __init__( class AutorangeValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autorange', - parent_name='layout.xaxis.rangeslider', - **kwargs + self, plotly_name="autorange", parent_name="layout.xaxis.rangeslider", **kwargs ): super(AutorangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/yaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/yaxis/__init__.py index ba8a4a13b48..f41759cfbc8 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/yaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/rangeslider/yaxis/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='rangemode', - parent_name='layout.xaxis.rangeslider.yaxis', + plotly_name="rangemode", + parent_name="layout.xaxis.rangeslider.yaxis", **kwargs ): super(RangemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['auto', 'fixed', 'match']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["auto", "fixed", "match"]), **kwargs ) @@ -25,28 +22,23 @@ def __init__( class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='range', - parent_name='layout.xaxis.rangeslider.yaxis', + plotly_name="range", + parent_name="layout.xaxis.rangeslider.yaxis", **kwargs ): super(RangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'plot' - }, { - 'valType': 'any', - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "any", "editType": "plot"}, + {"valType": "any", "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'style'), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/__init__.py index 9244c594ee5..7fb654cf571 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='layout.xaxis.tickfont', - **kwargs + self, plotly_name="size", parent_name="layout.xaxis.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='layout.xaxis.tickfont', - **kwargs + self, plotly_name="family", parent_name="layout.xaxis.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "ticks"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.xaxis.tickfont', - **kwargs + self, plotly_name="color", parent_name="layout.xaxis.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/__init__.py index eafcb0dfc96..1b3b472923b 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/tickformatstop/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='value', - parent_name='layout.xaxis.tickformatstop', - **kwargs + self, plotly_name="value", parent_name="layout.xaxis.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +18,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='layout.xaxis.tickformatstop', + plotly_name="templateitemname", + parent_name="layout.xaxis.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +37,14 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='name', - parent_name='layout.xaxis.tickformatstop', - **kwargs + self, plotly_name="name", parent_name="layout.xaxis.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +53,14 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='enabled', - parent_name='layout.xaxis.tickformatstop', - **kwargs + self, plotly_name="enabled", parent_name="layout.xaxis.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +69,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='layout.xaxis.tickformatstop', + plotly_name="dtickrange", + parent_name="layout.xaxis.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), + edit_type=kwargs.pop("edit_type", "ticks"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'ticks' - }, { - 'valType': 'any', - 'editType': 'ticks' - } - ] + "items", + [ + {"valType": "any", "editType": "ticks"}, + {"valType": "any", "editType": "ticks"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/title/__init__.py index 471566fe08d..765c703ab7f 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/title/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='text', parent_name='layout.xaxis.title', **kwargs - ): + def __init__(self, plotly_name="text", parent_name="layout.xaxis.title", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +16,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='layout.xaxis.title', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="layout.xaxis.title", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -51,7 +44,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/__init__.py index 2ba29fd2043..d3c547073db 100644 --- a/packages/python/plotly/plotly/validators/layout/xaxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/xaxis/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='layout.xaxis.title.font', - **kwargs + self, plotly_name="size", parent_name="layout.xaxis.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='layout.xaxis.title.font', - **kwargs + self, plotly_name="family", parent_name="layout.xaxis.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "ticks"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.xaxis.title.font', - **kwargs + self, plotly_name="color", parent_name="layout.xaxis.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/__init__.py b/packages/python/plotly/plotly/validators/layout/yaxis/__init__.py index 158c34f89e3..4c6e040a253 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ZerolinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='zerolinewidth', - parent_name='layout.yaxis', - **kwargs + self, plotly_name="zerolinewidth", parent_name="layout.yaxis", **kwargs ): super(ZerolinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class ZerolinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='zerolinecolor', - parent_name='layout.yaxis', - **kwargs + self, plotly_name="zerolinecolor", parent_name="layout.yaxis", **kwargs ): super(ZerolinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -44,15 +34,12 @@ def __init__( class ZerolineValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='zeroline', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="zeroline", parent_name="layout.yaxis", **kwargs): super(ZerolineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -61,15 +48,12 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='visible', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="layout.yaxis", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -78,15 +62,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="layout.yaxis", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -95,18 +76,14 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="layout.yaxis", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', - ['-', 'linear', 'log', 'date', 'category', 'multicategory'] + "values", ["-", "linear", "log", "date", "category", "multicategory"] ), **kwargs ) @@ -116,16 +93,14 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - - def __init__( - self, plotly_name='title', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="title", parent_name="layout.yaxis", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this axis' title font. Note that the title's font used to be customized by the now @@ -136,7 +111,7 @@ def __init__( contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -146,16 +121,13 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='tickwidth', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="tickwidth", parent_name="layout.yaxis", **kwargs): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -164,15 +136,12 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='tickvalssrc', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="tickvalssrc", parent_name="layout.yaxis", **kwargs): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -181,15 +150,12 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='tickvals', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="tickvals", parent_name="layout.yaxis", **kwargs): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -198,15 +164,12 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='ticktextsrc', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="ticktextsrc", parent_name="layout.yaxis", **kwargs): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -215,15 +178,12 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='ticktext', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="ticktext", parent_name="layout.yaxis", **kwargs): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -232,15 +192,12 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='ticksuffix', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="ticksuffix", parent_name="layout.yaxis", **kwargs): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -249,16 +206,13 @@ def __init__( class TicksonValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='tickson', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="tickson", parent_name="layout.yaxis", **kwargs): super(TicksonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['labels', 'boundaries']), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["labels", "boundaries"]), **kwargs ) @@ -267,16 +221,13 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ticks', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="ticks", parent_name="layout.yaxis", **kwargs): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -285,15 +236,12 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='tickprefix', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="tickprefix", parent_name="layout.yaxis", **kwargs): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -302,17 +250,14 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='tickmode', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="tickmode", parent_name="layout.yaxis", **kwargs): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "ticks"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -321,16 +266,13 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ticklen', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="ticklen", parent_name="layout.yaxis", **kwargs): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -339,19 +281,18 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickformatstopdefaults', - parent_name='layout.yaxis', - **kwargs + self, plotly_name="tickformatstopdefaults", parent_name="layout.yaxis", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -359,22 +300,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='layout.yaxis', - **kwargs + self, plotly_name="tickformatstops", parent_name="layout.yaxis", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -408,7 +344,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -418,15 +354,12 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='tickformat', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="tickformat", parent_name="layout.yaxis", **kwargs): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -435,16 +368,14 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='tickfont', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="tickfont", parent_name="layout.yaxis", **kwargs): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -465,7 +396,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -475,15 +406,12 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='tickcolor', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="tickcolor", parent_name="layout.yaxis", **kwargs): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -492,15 +420,12 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - - def __init__( - self, plotly_name='tickangle', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="tickangle", parent_name="layout.yaxis", **kwargs): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -509,16 +434,13 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='tick0', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="tick0", parent_name="layout.yaxis", **kwargs): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -527,18 +449,14 @@ def __init__( class SpikethicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='spikethickness', - parent_name='layout.yaxis', - **kwargs + self, plotly_name="spikethickness", parent_name="layout.yaxis", **kwargs ): super(SpikethicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -547,16 +465,13 @@ def __init__( class SpikesnapValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='spikesnap', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="spikesnap", parent_name="layout.yaxis", **kwargs): super(SpikesnapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['data', 'cursor']), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["data", "cursor"]), **kwargs ) @@ -565,16 +480,13 @@ def __init__( class SpikemodeValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='spikemode', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="spikemode", parent_name="layout.yaxis", **kwargs): super(SpikemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - flags=kwargs.pop('flags', ['toaxis', 'across', 'marker']), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + flags=kwargs.pop("flags", ["toaxis", "across", "marker"]), + role=kwargs.pop("role", "style"), **kwargs ) @@ -583,18 +495,14 @@ def __init__( class SpikedashValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='spikedash', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="spikedash", parent_name="layout.yaxis", **kwargs): super(SpikedashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -604,15 +512,12 @@ def __init__( class SpikecolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='spikecolor', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="spikecolor", parent_name="layout.yaxis", **kwargs): super(SpikecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -621,16 +526,13 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='side', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="side", parent_name="layout.yaxis", **kwargs): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['top', 'bottom', 'left', 'right']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["top", "bottom", "left", "right"]), **kwargs ) @@ -638,22 +540,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='layout.yaxis', - **kwargs + self, plotly_name="showticksuffix", parent_name="layout.yaxis", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -661,22 +557,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='layout.yaxis', - **kwargs + self, plotly_name="showtickprefix", parent_name="layout.yaxis", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -685,18 +575,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='layout.yaxis', - **kwargs + self, plotly_name="showticklabels", parent_name="layout.yaxis", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -705,15 +591,12 @@ def __init__( class ShowspikesValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showspikes', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="showspikes", parent_name="layout.yaxis", **kwargs): super(ShowspikesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'modebar'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "modebar"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -722,15 +605,12 @@ def __init__( class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showline', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="showline", parent_name="layout.yaxis", **kwargs): super(ShowlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks+layoutstyle'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -739,15 +619,12 @@ def __init__( class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showgrid', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="showgrid", parent_name="layout.yaxis", **kwargs): super(ShowgridValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -756,16 +633,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='showexponent', parent_name='layout.yaxis', **kwargs + self, plotly_name="showexponent", parent_name="layout.yaxis", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -774,15 +650,14 @@ def __init__( class ShowdividersValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='showdividers', parent_name='layout.yaxis', **kwargs + self, plotly_name="showdividers", parent_name="layout.yaxis", **kwargs ): super(ShowdividersValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -790,21 +665,15 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( - self, - plotly_name='separatethousands', - parent_name='layout.yaxis', - **kwargs + self, plotly_name="separatethousands", parent_name="layout.yaxis", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -813,16 +682,13 @@ def __init__( class ScaleratioValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='scaleratio', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="scaleratio", parent_name="layout.yaxis", **kwargs): super(ScaleratioValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -831,18 +697,14 @@ def __init__( class ScaleanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='scaleanchor', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="scaleanchor", parent_name="layout.yaxis", **kwargs): super(ScaleanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', - ['/^x([2-9]|[1-9][0-9]+)?$/', '/^y([2-9]|[1-9][0-9]+)?$/'] + "values", ["/^x([2-9]|[1-9][0-9]+)?$/", "/^y([2-9]|[1-9][0-9]+)?$/"] ), **kwargs ) @@ -852,16 +714,13 @@ def __init__( class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='rangemode', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="rangemode", parent_name="layout.yaxis", **kwargs): super(RangemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['normal', 'tozero', 'nonnegative']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), **kwargs ) @@ -870,36 +729,31 @@ def __init__( class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='range', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="range", parent_name="layout.yaxis", **kwargs): super(RangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'axrange'), - implied_edits=kwargs.pop('implied_edits', {'autorange': False}), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "axrange"), + implied_edits=kwargs.pop("implied_edits", {"autorange": False}), items=kwargs.pop( - 'items', [ + "items", + [ + { + "valType": "any", + "editType": "axrange", + "impliedEdits": {"^autorange": False}, + "anim": True, + }, { - 'valType': 'any', - 'editType': 'axrange', - 'impliedEdits': { - '^autorange': False - }, - 'anim': True - }, { - 'valType': 'any', - 'editType': 'axrange', - 'impliedEdits': { - '^autorange': False - }, - 'anim': True - } - ] + "valType": "any", + "editType": "axrange", + "impliedEdits": {"^autorange": False}, + "anim": True, + }, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -908,17 +762,14 @@ def __init__( class PositionValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='position', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="position", parent_name="layout.yaxis", **kwargs): super(PositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -927,20 +778,15 @@ def __init__( class OverlayingValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='overlaying', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="overlaying", parent_name="layout.yaxis", **kwargs): super(OverlayingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'free', '/^x([2-9]|[1-9][0-9]+)?$/', - '/^y([2-9]|[1-9][0-9]+)?$/' - ] + "values", + ["free", "/^x([2-9]|[1-9][0-9]+)?$/", "/^y([2-9]|[1-9][0-9]+)?$/"], ), **kwargs ) @@ -950,16 +796,13 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='nticks', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="nticks", parent_name="layout.yaxis", **kwargs): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -968,18 +811,13 @@ def __init__( class MirrorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='mirror', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="mirror", parent_name="layout.yaxis", **kwargs): super(MirrorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks+layoutstyle'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', [True, 'ticks', False, 'all', 'allticks'] - ), + edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", [True, "ticks", False, "all", "allticks"]), **kwargs ) @@ -988,18 +826,14 @@ def __init__( class MatchesValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='matches', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="matches", parent_name="layout.yaxis", **kwargs): super(MatchesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', - ['/^x([2-9]|[1-9][0-9]+)?$/', '/^y([2-9]|[1-9][0-9]+)?$/'] + "values", ["/^x([2-9]|[1-9][0-9]+)?$/", "/^y([2-9]|[1-9][0-9]+)?$/"] ), **kwargs ) @@ -1009,16 +843,13 @@ def __init__( class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='linewidth', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="linewidth", parent_name="layout.yaxis", **kwargs): super(LinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks+layoutstyle'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1027,15 +858,12 @@ def __init__( class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='linecolor', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="linecolor", parent_name="layout.yaxis", **kwargs): super(LinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'layoutstyle'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "layoutstyle"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1044,16 +872,13 @@ def __init__( class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='layer', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="layer", parent_name="layout.yaxis", **kwargs): super(LayerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['above traces', 'below traces']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["above traces", "below traces"]), **kwargs ) @@ -1062,15 +887,12 @@ def __init__( class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hoverformat', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="hoverformat", parent_name="layout.yaxis", **kwargs): super(HoverformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1079,16 +901,13 @@ def __init__( class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='gridwidth', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="gridwidth", parent_name="layout.yaxis", **kwargs): super(GridwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1097,15 +916,12 @@ def __init__( class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='gridcolor', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="gridcolor", parent_name="layout.yaxis", **kwargs): super(GridcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1114,15 +930,12 @@ def __init__( class FixedrangeValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='fixedrange', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="fixedrange", parent_name="layout.yaxis", **kwargs): super(FixedrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1130,24 +943,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='layout.yaxis', - **kwargs + self, plotly_name="exponentformat", parent_name="layout.yaxis", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -1156,16 +961,13 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='dtick', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="dtick", parent_name="layout.yaxis", **kwargs): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1174,30 +976,19 @@ def __init__( class DomainValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='domain', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="domain", parent_name="layout.yaxis", **kwargs): super(DomainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), + edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'plot' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + {"valType": "number", "min": 0, "max": 1, "editType": "plot"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1206,15 +997,14 @@ def __init__( class DividerwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='dividerwidth', parent_name='layout.yaxis', **kwargs + self, plotly_name="dividerwidth", parent_name="layout.yaxis", **kwargs ): super(DividerwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1223,15 +1013,14 @@ def __init__( class DividercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='dividercolor', parent_name='layout.yaxis', **kwargs + self, plotly_name="dividercolor", parent_name="layout.yaxis", **kwargs ): super(DividercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1239,24 +1028,17 @@ def __init__( import _plotly_utils.basevalidators -class ConstraintowardValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ConstraintowardValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='constraintoward', - parent_name='layout.yaxis', - **kwargs + self, plotly_name="constraintoward", parent_name="layout.yaxis", **kwargs ): super(ConstraintowardValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', - ['left', 'center', 'right', 'top', 'middle', 'bottom'] + "values", ["left", "center", "right", "top", "middle", "bottom"] ), **kwargs ) @@ -1266,16 +1048,13 @@ def __init__( class ConstrainValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='constrain', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="constrain", parent_name="layout.yaxis", **kwargs): super(ConstrainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['range', 'domain']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["range", "domain"]), **kwargs ) @@ -1284,15 +1063,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="layout.yaxis", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1301,27 +1077,34 @@ def __init__( class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='categoryorder', - parent_name='layout.yaxis', - **kwargs + self, plotly_name="categoryorder", parent_name="layout.yaxis", **kwargs ): super(CategoryorderValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'trace', 'category ascending', 'category descending', - 'array', 'total ascending', 'total descending', - 'min ascending', 'min descending', 'max ascending', - 'max descending', 'sum ascending', 'sum descending', - 'mean ascending', 'mean descending', 'median ascending', - 'median descending' - ] + "values", + [ + "trace", + "category ascending", + "category descending", + "array", + "total ascending", + "total descending", + "min ascending", + "min descending", + "max ascending", + "max descending", + "sum ascending", + "sum descending", + "mean ascending", + "mean descending", + "median ascending", + "median descending", + ], ), **kwargs ) @@ -1331,18 +1114,14 @@ def __init__( class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='categoryarraysrc', - parent_name='layout.yaxis', - **kwargs + self, plotly_name="categoryarraysrc", parent_name="layout.yaxis", **kwargs ): super(CategoryarraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1351,18 +1130,14 @@ def __init__( class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='categoryarray', - parent_name='layout.yaxis', - **kwargs + self, plotly_name="categoryarray", parent_name="layout.yaxis", **kwargs ): super(CategoryarrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1371,22 +1146,32 @@ def __init__( class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='calendar', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="calendar", parent_name="layout.yaxis", **kwargs): super(CalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -1396,17 +1181,14 @@ def __init__( class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='autorange', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="autorange", parent_name="layout.yaxis", **kwargs): super(AutorangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'axrange'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'reversed']), + edit_type=kwargs.pop("edit_type", "axrange"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "reversed"]), **kwargs ) @@ -1415,15 +1197,12 @@ def __init__( class AutomarginValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='automargin', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="automargin", parent_name="layout.yaxis", **kwargs): super(AutomarginValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1432,20 +1211,15 @@ def __init__( class AnchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='anchor', parent_name='layout.yaxis', **kwargs - ): + def __init__(self, plotly_name="anchor", parent_name="layout.yaxis", **kwargs): super(AnchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'free', '/^x([2-9]|[1-9][0-9]+)?$/', - '/^y([2-9]|[1-9][0-9]+)?$/' - ] + "values", + ["free", "/^x([2-9]|[1-9][0-9]+)?$/", "/^y([2-9]|[1-9][0-9]+)?$/"], ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/__init__.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/__init__.py index a8cfd8e60cd..f4ca26abeae 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='layout.yaxis.tickfont', - **kwargs + self, plotly_name="size", parent_name="layout.yaxis.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='layout.yaxis.tickfont', - **kwargs + self, plotly_name="family", parent_name="layout.yaxis.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "ticks"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.yaxis.tickfont', - **kwargs + self, plotly_name="color", parent_name="layout.yaxis.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/__init__.py index 6071d4f4f10..be4d104dba5 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/tickformatstop/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='value', - parent_name='layout.yaxis.tickformatstop', - **kwargs + self, plotly_name="value", parent_name="layout.yaxis.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +18,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='layout.yaxis.tickformatstop', + plotly_name="templateitemname", + parent_name="layout.yaxis.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +37,14 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='name', - parent_name='layout.yaxis.tickformatstop', - **kwargs + self, plotly_name="name", parent_name="layout.yaxis.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +53,14 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='enabled', - parent_name='layout.yaxis.tickformatstop', - **kwargs + self, plotly_name="enabled", parent_name="layout.yaxis.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +69,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='layout.yaxis.tickformatstop', + plotly_name="dtickrange", + parent_name="layout.yaxis.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), + edit_type=kwargs.pop("edit_type", "ticks"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'ticks' - }, { - 'valType': 'any', - 'editType': 'ticks' - } - ] + "items", + [ + {"valType": "any", "editType": "ticks"}, + {"valType": "any", "editType": "ticks"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/title/__init__.py b/packages/python/plotly/plotly/validators/layout/yaxis/title/__init__.py index 3563207ab65..426ccb1b6b8 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/title/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/title/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='text', parent_name='layout.yaxis.title', **kwargs - ): + def __init__(self, plotly_name="text", parent_name="layout.yaxis.title", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +16,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='layout.yaxis.title', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="layout.yaxis.title", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -51,7 +44,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/__init__.py b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/__init__.py index 71da8cbbaaa..629801be7ad 100644 --- a/packages/python/plotly/plotly/validators/layout/yaxis/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/layout/yaxis/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='layout.yaxis.title.font', - **kwargs + self, plotly_name="size", parent_name="layout.yaxis.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='layout.yaxis.title.font', - **kwargs + self, plotly_name="family", parent_name="layout.yaxis.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "ticks"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='layout.yaxis.title.font', - **kwargs + self, plotly_name="color", parent_name="layout.yaxis.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'ticks'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "ticks"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/mesh3d/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/__init__.py index 6be4ad5ada7..07ead8d4e9c 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='zsrc', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="zsrc", parent_name="mesh3d", **kwargs): super(ZsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,22 +16,32 @@ def __init__(self, plotly_name='zsrc', parent_name='mesh3d', **kwargs): class ZcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='zcalendar', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="zcalendar", parent_name="mesh3d", **kwargs): super(ZcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -44,13 +51,12 @@ def __init__( class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='z', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="z", parent_name="mesh3d", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -59,13 +65,12 @@ def __init__(self, plotly_name='z', parent_name='mesh3d', **kwargs): class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="mesh3d", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -74,22 +79,32 @@ def __init__(self, plotly_name='ysrc', parent_name='mesh3d', **kwargs): class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ycalendar', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="ycalendar", parent_name="mesh3d", **kwargs): super(YcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -99,13 +114,12 @@ def __init__( class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="y", parent_name="mesh3d", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -114,13 +128,12 @@ def __init__(self, plotly_name='y', parent_name='mesh3d', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="mesh3d", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -129,22 +142,32 @@ def __init__(self, plotly_name='xsrc', parent_name='mesh3d', **kwargs): class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xcalendar', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="xcalendar", parent_name="mesh3d", **kwargs): super(XcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -154,13 +177,12 @@ def __init__( class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="x", parent_name="mesh3d", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -169,14 +191,13 @@ def __init__(self, plotly_name='x', parent_name='mesh3d', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="visible", parent_name="mesh3d", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -185,15 +206,12 @@ def __init__(self, plotly_name='visible', parent_name='mesh3d', **kwargs): class VertexcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='vertexcolorsrc', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="vertexcolorsrc", parent_name="mesh3d", **kwargs): super(VertexcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -202,15 +220,12 @@ def __init__( class VertexcolorValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='vertexcolor', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="vertexcolor", parent_name="mesh3d", **kwargs): super(VertexcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -219,15 +234,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="mesh3d", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -236,14 +248,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="uid", parent_name="mesh3d", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -252,13 +263,12 @@ def __init__(self, plotly_name='uid', parent_name='mesh3d', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='textsrc', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="textsrc", parent_name="mesh3d", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -267,14 +277,13 @@ def __init__(self, plotly_name='textsrc', parent_name='mesh3d', **kwargs): class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="text", parent_name="mesh3d", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -283,14 +292,14 @@ def __init__(self, plotly_name='text', parent_name='mesh3d', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="stream", parent_name="mesh3d", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -300,7 +309,7 @@ def __init__(self, plotly_name='stream', parent_name='mesh3d', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -310,15 +319,12 @@ def __init__(self, plotly_name='stream', parent_name='mesh3d', **kwargs): class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="mesh3d", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -327,14 +333,13 @@ def __init__( class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='scene', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="scene", parent_name="mesh3d", **kwargs): super(SceneValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'scene'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "scene"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -343,15 +348,12 @@ def __init__(self, plotly_name='scene', parent_name='mesh3d', **kwargs): class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='reversescale', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="reversescale", parent_name="mesh3d", **kwargs): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -360,15 +362,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='opacity', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="opacity", parent_name="mesh3d", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -377,13 +378,12 @@ def __init__(self, plotly_name='opacity', parent_name='mesh3d', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="name", parent_name="mesh3d", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -392,13 +392,12 @@ def __init__(self, plotly_name='name', parent_name='mesh3d', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="mesh3d", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -407,14 +406,13 @@ def __init__(self, plotly_name='metasrc', parent_name='mesh3d', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="meta", parent_name="mesh3d", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -423,16 +421,14 @@ def __init__(self, plotly_name='meta', parent_name='mesh3d', **kwargs): class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='lightposition', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="lightposition", parent_name="mesh3d", **kwargs): super(LightpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Lightposition'), + data_class_str=kwargs.pop("data_class_str", "Lightposition"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x Numeric vector, representing the X coordinate for each vertex. @@ -442,7 +438,7 @@ def __init__( z Numeric vector, representing the Z coordinate for each vertex. -""" +""", ), **kwargs ) @@ -452,14 +448,14 @@ def __init__( class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='lighting', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="lighting", parent_name="mesh3d", **kwargs): super(LightingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Lighting'), + data_class_str=kwargs.pop("data_class_str", "Lighting"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ ambient Ambient light increases overall color visibility but can wash out the image. @@ -484,7 +480,7 @@ def __init__(self, plotly_name='lighting', parent_name='mesh3d', **kwargs): vertexnormalsepsilon Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry. -""" +""", ), **kwargs ) @@ -494,13 +490,12 @@ def __init__(self, plotly_name='lighting', parent_name='mesh3d', **kwargs): class KsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ksrc', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="ksrc", parent_name="mesh3d", **kwargs): super(KsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -509,13 +504,12 @@ def __init__(self, plotly_name='ksrc', parent_name='mesh3d', **kwargs): class KValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='k', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="k", parent_name="mesh3d", **kwargs): super(KValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -524,13 +518,12 @@ def __init__(self, plotly_name='k', parent_name='mesh3d', **kwargs): class JsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='jsrc', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="jsrc", parent_name="mesh3d", **kwargs): super(JsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -539,13 +532,12 @@ def __init__(self, plotly_name='jsrc', parent_name='mesh3d', **kwargs): class JValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='j', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="j", parent_name="mesh3d", **kwargs): super(JValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -554,13 +546,12 @@ def __init__(self, plotly_name='j', parent_name='mesh3d', **kwargs): class IsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='isrc', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="isrc", parent_name="mesh3d", **kwargs): super(IsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -569,15 +560,12 @@ def __init__(self, plotly_name='isrc', parent_name='mesh3d', **kwargs): class IntensitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='intensitysrc', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="intensitysrc", parent_name="mesh3d", **kwargs): super(IntensitysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -586,15 +574,12 @@ def __init__( class IntensityValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='intensity', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="intensity", parent_name="mesh3d", **kwargs): super(IntensityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -603,13 +588,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="mesh3d", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -618,14 +602,13 @@ def __init__(self, plotly_name='idssrc', parent_name='mesh3d', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="ids", parent_name="mesh3d", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -634,13 +617,12 @@ def __init__(self, plotly_name='ids', parent_name='mesh3d', **kwargs): class IValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='i', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="i", parent_name="mesh3d", **kwargs): super(IValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -649,15 +631,12 @@ def __init__(self, plotly_name='i', parent_name='mesh3d', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="mesh3d", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -666,16 +645,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="mesh3d", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -684,15 +660,12 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertemplatesrc', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="hovertemplatesrc", parent_name="mesh3d", **kwargs): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -701,16 +674,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="mesh3d", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -719,16 +689,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="mesh3d", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -764,7 +732,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -774,15 +742,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="mesh3d", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -791,18 +756,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="mesh3d", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -811,15 +773,12 @@ def __init__( class FlatshadingValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='flatshading', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="flatshading", parent_name="mesh3d", **kwargs): super(FlatshadingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -828,15 +787,12 @@ def __init__( class FacecolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='facecolorsrc', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="facecolorsrc", parent_name="mesh3d", **kwargs): super(FacecolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -845,15 +801,12 @@ def __init__( class FacecolorValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='facecolor', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="facecolor", parent_name="mesh3d", **kwargs): super(FacecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -862,16 +815,13 @@ def __init__( class DelaunayaxisValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='delaunayaxis', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="delaunayaxis", parent_name="mesh3d", **kwargs): super(DelaunayaxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['x', 'y', 'z']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["x", "y", "z"]), **kwargs ) @@ -880,15 +830,12 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="mesh3d", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -897,15 +844,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="mesh3d", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -914,14 +858,14 @@ def __init__( class ContourValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='contour', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="contour", parent_name="mesh3d", **kwargs): super(ContourValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Contour'), + data_class_str=kwargs.pop("data_class_str", "Contour"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of the contour lines. show @@ -929,7 +873,7 @@ def __init__(self, plotly_name='contour', parent_name='mesh3d', **kwargs): on hover width Sets the width of the contour lines. -""" +""", ), **kwargs ) @@ -939,18 +883,13 @@ def __init__(self, plotly_name='contour', parent_name='mesh3d', **kwargs): class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - - def __init__( - self, plotly_name='colorscale', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="colorscale", parent_name="mesh3d", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -959,14 +898,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='colorbar', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="colorbar", parent_name="mesh3d", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -1175,7 +1114,7 @@ def __init__(self, plotly_name='colorbar', parent_name='mesh3d', **kwargs): ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -1185,17 +1124,14 @@ def __init__(self, plotly_name='colorbar', parent_name='mesh3d', **kwargs): class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="mesh3d", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1204,14 +1140,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__(self, plotly_name='color', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="color", parent_name="mesh3d", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - colorscale_path=kwargs.pop('colorscale_path', 'mesh3d.colorscale'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + colorscale_path=kwargs.pop("colorscale_path", "mesh3d.colorscale"), **kwargs ) @@ -1220,14 +1155,13 @@ def __init__(self, plotly_name='color', parent_name='mesh3d', **kwargs): class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmin', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="cmin", parent_name="mesh3d", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1236,14 +1170,13 @@ def __init__(self, plotly_name='cmin', parent_name='mesh3d', **kwargs): class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmid', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="cmid", parent_name="mesh3d", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1252,14 +1185,13 @@ def __init__(self, plotly_name='cmid', parent_name='mesh3d', **kwargs): class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmax', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="cmax", parent_name="mesh3d", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1268,14 +1200,13 @@ def __init__(self, plotly_name='cmax', parent_name='mesh3d', **kwargs): class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__(self, plotly_name='cauto', parent_name='mesh3d', **kwargs): + def __init__(self, plotly_name="cauto", parent_name="mesh3d", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1284,16 +1215,13 @@ def __init__(self, plotly_name='cauto', parent_name='mesh3d', **kwargs): class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='autocolorscale', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="autocolorscale", parent_name="mesh3d", **kwargs): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1302,14 +1230,11 @@ def __init__( class AlphahullValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='alphahull', parent_name='mesh3d', **kwargs - ): + def __init__(self, plotly_name="alphahull", parent_name="mesh3d", **kwargs): super(AlphahullValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/__init__.py index 69e40e1ecad..b9812c7faed 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ypad', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="ypad", parent_name="mesh3d.colorbar", **kwargs): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,16 +17,13 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='yanchor', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="yanchor", parent_name="mesh3d.colorbar", **kwargs): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -40,17 +32,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="mesh3d.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -59,16 +48,13 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='xpad', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="xpad", parent_name="mesh3d.colorbar", **kwargs): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -77,16 +63,13 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xanchor', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="xanchor", parent_name="mesh3d.colorbar", **kwargs): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -95,17 +78,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="mesh3d.colorbar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -114,16 +94,14 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - - def __init__( - self, plotly_name='title', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="title", parent_name="mesh3d.colorbar", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -139,7 +117,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -149,16 +127,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='tickwidth', parent_name='mesh3d.colorbar', **kwargs + self, plotly_name="tickwidth", parent_name="mesh3d.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -167,18 +144,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='mesh3d.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="mesh3d.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -187,15 +160,12 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='tickvals', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="tickvals", parent_name="mesh3d.colorbar", **kwargs): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -204,18 +174,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='mesh3d.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="mesh3d.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -224,15 +190,12 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='ticktext', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="ticktext", parent_name="mesh3d.colorbar", **kwargs): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -241,18 +204,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='mesh3d.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="mesh3d.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -261,16 +220,13 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ticks', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="ticks", parent_name="mesh3d.colorbar", **kwargs): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -279,18 +235,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='mesh3d.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="mesh3d.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -299,17 +251,14 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='tickmode', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="tickmode", parent_name="mesh3d.colorbar", **kwargs): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -318,16 +267,13 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ticklen', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="ticklen", parent_name="mesh3d.colorbar", **kwargs): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -336,19 +282,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='mesh3d.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="mesh3d.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -356,22 +304,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='mesh3d.colorbar', - **kwargs + self, plotly_name="tickformatstops", parent_name="mesh3d.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -405,7 +348,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -415,18 +358,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='mesh3d.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="mesh3d.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -435,16 +374,14 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='tickfont', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="tickfont", parent_name="mesh3d.colorbar", **kwargs): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -465,7 +402,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -475,15 +412,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='tickcolor', parent_name='mesh3d.colorbar', **kwargs + self, plotly_name="tickcolor", parent_name="mesh3d.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -492,15 +428,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name='tickangle', parent_name='mesh3d.colorbar', **kwargs + self, plotly_name="tickangle", parent_name="mesh3d.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -509,16 +444,13 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='tick0', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="tick0", parent_name="mesh3d.colorbar", **kwargs): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -527,19 +459,15 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='thicknessmode', - parent_name='mesh3d.colorbar', - **kwargs + self, plotly_name="thicknessmode", parent_name="mesh3d.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -548,16 +476,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='thickness', parent_name='mesh3d.colorbar', **kwargs + self, plotly_name="thickness", parent_name="mesh3d.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -565,22 +492,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='mesh3d.colorbar', - **kwargs + self, plotly_name="showticksuffix", parent_name="mesh3d.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -588,22 +509,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='mesh3d.colorbar', - **kwargs + self, plotly_name="showtickprefix", parent_name="mesh3d.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -612,18 +527,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='mesh3d.colorbar', - **kwargs + self, plotly_name="showticklabels", parent_name="mesh3d.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -632,19 +543,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='mesh3d.colorbar', - **kwargs + self, plotly_name="showexponent", parent_name="mesh3d.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -652,21 +559,15 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( - self, - plotly_name='separatethousands', - parent_name='mesh3d.colorbar', - **kwargs + self, plotly_name="separatethousands", parent_name="mesh3d.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -675,19 +576,15 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlinewidth', - parent_name='mesh3d.colorbar', - **kwargs + self, plotly_name="outlinewidth", parent_name="mesh3d.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -696,18 +593,14 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outlinecolor', - parent_name='mesh3d.colorbar', - **kwargs + self, plotly_name="outlinecolor", parent_name="mesh3d.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -716,16 +609,13 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='nticks', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="nticks", parent_name="mesh3d.colorbar", **kwargs): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -734,16 +624,13 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='lenmode', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="lenmode", parent_name="mesh3d.colorbar", **kwargs): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -752,16 +639,13 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='len', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="len", parent_name="mesh3d.colorbar", **kwargs): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -769,24 +653,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='mesh3d.colorbar', - **kwargs + self, plotly_name="exponentformat", parent_name="mesh3d.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -795,16 +671,13 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='dtick', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="dtick", parent_name="mesh3d.colorbar", **kwargs): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -813,19 +686,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='mesh3d.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="mesh3d.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -834,18 +703,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='mesh3d.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="mesh3d.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -854,14 +719,11 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='mesh3d.colorbar', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="mesh3d.colorbar", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/__init__.py index ff0efcf73b6..6a33e85a7ef 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='mesh3d.colorbar.tickfont', - **kwargs + self, plotly_name="size", parent_name="mesh3d.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='mesh3d.colorbar.tickfont', - **kwargs + self, plotly_name="family", parent_name="mesh3d.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='mesh3d.colorbar.tickfont', - **kwargs + self, plotly_name="color", parent_name="mesh3d.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/__init__.py index 3fd70465b6a..abc7762390d 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='mesh3d.colorbar.tickformatstop', + plotly_name="value", + parent_name="mesh3d.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='mesh3d.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="mesh3d.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,14 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='name', - parent_name='mesh3d.colorbar.tickformatstop', - **kwargs + self, plotly_name="name", parent_name="mesh3d.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +56,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='mesh3d.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="mesh3d.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +75,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='mesh3d.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="mesh3d.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/__init__.py index d4236a2c758..fe94de05f5c 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='mesh3d.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="mesh3d.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='mesh3d.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="mesh3d.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='mesh3d.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="mesh3d.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/__init__.py index 6d292c78b0a..a6e0112249c 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/colorbar/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='mesh3d.colorbar.title.font', - **kwargs + self, plotly_name="size", parent_name="mesh3d.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='mesh3d.colorbar.title.font', - **kwargs + self, plotly_name="family", parent_name="mesh3d.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='mesh3d.colorbar.title.font', - **kwargs + self, plotly_name="color", parent_name="mesh3d.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/mesh3d/contour/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/contour/__init__.py index 6b4b6590753..0f90a401b86 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/contour/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/contour/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='mesh3d.contour', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="mesh3d.contour", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 16), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 16), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,15 +18,12 @@ def __init__( class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='mesh3d.contour', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="mesh3d.contour", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -40,14 +32,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='mesh3d.contour', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="mesh3d.contour", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/__init__.py index f227d532fcf..5a94e4c8dac 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='mesh3d.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="mesh3d.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='mesh3d.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="mesh3d.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='mesh3d.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="mesh3d.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='mesh3d.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="mesh3d.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='mesh3d.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="mesh3d.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='mesh3d.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="mesh3d.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,16 +132,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='bgcolor', parent_name='mesh3d.hoverlabel', **kwargs + self, plotly_name="bgcolor", parent_name="mesh3d.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -174,18 +149,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='mesh3d.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="mesh3d.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -194,16 +165,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='mesh3d.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="mesh3d.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/__init__.py index 01ce43d5fc4..696d9a4047f 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='mesh3d.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="mesh3d.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='mesh3d.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="mesh3d.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='mesh3d.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="mesh3d.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='mesh3d.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="mesh3d.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='mesh3d.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="mesh3d.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='mesh3d.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="mesh3d.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/mesh3d/lighting/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/lighting/__init__.py index 286327c81de..e1f52876012 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/lighting/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/lighting/__init__.py @@ -1,25 +1,20 @@ - - import _plotly_utils.basevalidators -class VertexnormalsepsilonValidator( - _plotly_utils.basevalidators.NumberValidator -): - +class VertexnormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, - plotly_name='vertexnormalsepsilon', - parent_name='mesh3d.lighting', + plotly_name="vertexnormalsepsilon", + parent_name="mesh3d.lighting", **kwargs ): super(VertexnormalsepsilonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -28,17 +23,14 @@ def __init__( class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='specular', parent_name='mesh3d.lighting', **kwargs - ): + def __init__(self, plotly_name="specular", parent_name="mesh3d.lighting", **kwargs): super(SpecularValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 2), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 2), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +39,16 @@ def __init__( class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='roughness', parent_name='mesh3d.lighting', **kwargs + self, plotly_name="roughness", parent_name="mesh3d.lighting", **kwargs ): super(RoughnessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -66,17 +57,14 @@ def __init__( class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fresnel', parent_name='mesh3d.lighting', **kwargs - ): + def __init__(self, plotly_name="fresnel", parent_name="mesh3d.lighting", **kwargs): super(FresnelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 5), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 5), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -84,23 +72,17 @@ def __init__( import _plotly_utils.basevalidators -class FacenormalsepsilonValidator( - _plotly_utils.basevalidators.NumberValidator -): - +class FacenormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( - self, - plotly_name='facenormalsepsilon', - parent_name='mesh3d.lighting', - **kwargs + self, plotly_name="facenormalsepsilon", parent_name="mesh3d.lighting", **kwargs ): super(FacenormalsepsilonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -109,17 +91,14 @@ def __init__( class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='diffuse', parent_name='mesh3d.lighting', **kwargs - ): + def __init__(self, plotly_name="diffuse", parent_name="mesh3d.lighting", **kwargs): super(DiffuseValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -128,16 +107,13 @@ def __init__( class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ambient', parent_name='mesh3d.lighting', **kwargs - ): + def __init__(self, plotly_name="ambient", parent_name="mesh3d.lighting", **kwargs): super(AmbientValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/mesh3d/lightposition/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/lightposition/__init__.py index f0f684fd801..28cd69c845e 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/lightposition/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/lightposition/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='z', parent_name='mesh3d.lightposition', **kwargs - ): + def __init__(self, plotly_name="z", parent_name="mesh3d.lightposition", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,17 +18,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='mesh3d.lightposition', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="mesh3d.lightposition", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) @@ -42,16 +34,13 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='mesh3d.lightposition', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="mesh3d.lightposition", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/mesh3d/stream/__init__.py b/packages/python/plotly/plotly/validators/mesh3d/stream/__init__.py index fffb83e48a0..b503ad139ea 100644 --- a/packages/python/plotly/plotly/validators/mesh3d/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/mesh3d/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='mesh3d.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="mesh3d.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='mesh3d.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="mesh3d.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/ohlc/__init__.py b/packages/python/plotly/plotly/validators/ohlc/__init__.py index 03de6ecfd88..a8c28e3a0ce 100644 --- a/packages/python/plotly/plotly/validators/ohlc/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/__init__.py @@ -1,17 +1,14 @@ - - import _plotly_utils.basevalidators class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='yaxis', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="yaxis", parent_name="ohlc", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -20,13 +17,12 @@ def __init__(self, plotly_name='yaxis', parent_name='ohlc', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="ohlc", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -35,20 +31,32 @@ def __init__(self, plotly_name='xsrc', parent_name='ohlc', **kwargs): class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='xcalendar', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="xcalendar", parent_name="ohlc", **kwargs): super(XcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -58,14 +66,13 @@ def __init__(self, plotly_name='xcalendar', parent_name='ohlc', **kwargs): class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='xaxis', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="xaxis", parent_name="ohlc", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -74,13 +81,12 @@ def __init__(self, plotly_name='xaxis', parent_name='ohlc', **kwargs): class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="x", parent_name="ohlc", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -89,14 +95,13 @@ def __init__(self, plotly_name='x', parent_name='ohlc', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="visible", parent_name="ohlc", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -105,13 +110,12 @@ def __init__(self, plotly_name='visible', parent_name='ohlc', **kwargs): class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='uirevision', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="uirevision", parent_name="ohlc", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -120,14 +124,13 @@ def __init__(self, plotly_name='uirevision', parent_name='ohlc', **kwargs): class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="uid", parent_name="ohlc", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -136,15 +139,14 @@ def __init__(self, plotly_name='uid', parent_name='ohlc', **kwargs): class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='tickwidth', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="tickwidth", parent_name="ohlc", **kwargs): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 0.5), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 0.5), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -153,13 +155,12 @@ def __init__(self, plotly_name='tickwidth', parent_name='ohlc', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='textsrc', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="textsrc", parent_name="ohlc", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -168,14 +169,13 @@ def __init__(self, plotly_name='textsrc', parent_name='ohlc', **kwargs): class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="text", parent_name="ohlc", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -184,14 +184,14 @@ def __init__(self, plotly_name='text', parent_name='ohlc', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="stream", parent_name="ohlc", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -201,7 +201,7 @@ def __init__(self, plotly_name='stream', parent_name='ohlc', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -211,13 +211,12 @@ def __init__(self, plotly_name='stream', parent_name='ohlc', **kwargs): class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__(self, plotly_name='showlegend', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="showlegend", parent_name="ohlc", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -226,15 +225,12 @@ def __init__(self, plotly_name='showlegend', parent_name='ohlc', **kwargs): class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='selectedpoints', parent_name='ohlc', **kwargs - ): + def __init__(self, plotly_name="selectedpoints", parent_name="ohlc", **kwargs): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -243,13 +239,12 @@ def __init__( class OpensrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='opensrc', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="opensrc", parent_name="ohlc", **kwargs): super(OpensrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -258,13 +253,12 @@ def __init__(self, plotly_name='opensrc', parent_name='ohlc', **kwargs): class OpenValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='open', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="open", parent_name="ohlc", **kwargs): super(OpenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -273,15 +267,14 @@ def __init__(self, plotly_name='open', parent_name='ohlc', **kwargs): class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='opacity', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="opacity", parent_name="ohlc", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -290,13 +283,12 @@ def __init__(self, plotly_name='opacity', parent_name='ohlc', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="name", parent_name="ohlc", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -305,13 +297,12 @@ def __init__(self, plotly_name='name', parent_name='ohlc', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="ohlc", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -320,14 +311,13 @@ def __init__(self, plotly_name='metasrc', parent_name='ohlc', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="meta", parent_name="ohlc", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -336,13 +326,12 @@ def __init__(self, plotly_name='meta', parent_name='ohlc', **kwargs): class LowsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='lowsrc', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="lowsrc", parent_name="ohlc", **kwargs): super(LowsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -351,13 +340,12 @@ def __init__(self, plotly_name='lowsrc', parent_name='ohlc', **kwargs): class LowValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='low', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="low", parent_name="ohlc", **kwargs): super(LowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -366,14 +354,14 @@ def __init__(self, plotly_name='low', parent_name='ohlc', **kwargs): class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='line', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="line", parent_name="ohlc", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dash Sets the dash style of lines. Set to a dash type string ("solid", "dot", "dash", @@ -387,7 +375,7 @@ def __init__(self, plotly_name='line', parent_name='ohlc', **kwargs): can also be set per direction via `increasing.line.width` and `decreasing.line.width`. -""" +""", ), **kwargs ) @@ -397,15 +385,12 @@ def __init__(self, plotly_name='line', parent_name='ohlc', **kwargs): class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='legendgroup', parent_name='ohlc', **kwargs - ): + def __init__(self, plotly_name="legendgroup", parent_name="ohlc", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -414,18 +399,18 @@ def __init__( class IncreasingValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='increasing', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="increasing", parent_name="ohlc", **kwargs): super(IncreasingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Increasing'), + data_class_str=kwargs.pop("data_class_str", "Increasing"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ line plotly.graph_objs.ohlc.increasing.Line instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -435,13 +420,12 @@ def __init__(self, plotly_name='increasing', parent_name='ohlc', **kwargs): class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="ohlc", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -450,14 +434,13 @@ def __init__(self, plotly_name='idssrc', parent_name='ohlc', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="ids", parent_name="ohlc", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -466,15 +449,12 @@ def __init__(self, plotly_name='ids', parent_name='ohlc', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='ohlc', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="ohlc", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -483,14 +463,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='hovertext', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="hovertext", parent_name="ohlc", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -499,14 +478,14 @@ def __init__(self, plotly_name='hovertext', parent_name='ohlc', **kwargs): class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='hoverlabel', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="hoverlabel", parent_name="ohlc", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -545,7 +524,7 @@ def __init__(self, plotly_name='hoverlabel', parent_name='ohlc', **kwargs): split Show hover information (open, close, high, low) in separate labels. -""" +""", ), **kwargs ) @@ -555,15 +534,12 @@ def __init__(self, plotly_name='hoverlabel', parent_name='ohlc', **kwargs): class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='ohlc', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="ohlc", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -572,16 +548,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__(self, plotly_name='hoverinfo', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="hoverinfo", parent_name="ohlc", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -590,13 +565,12 @@ def __init__(self, plotly_name='hoverinfo', parent_name='ohlc', **kwargs): class HighsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='highsrc', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="highsrc", parent_name="ohlc", **kwargs): super(HighsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -605,13 +579,12 @@ def __init__(self, plotly_name='highsrc', parent_name='ohlc', **kwargs): class HighValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='high', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="high", parent_name="ohlc", **kwargs): super(HighValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -620,18 +593,18 @@ def __init__(self, plotly_name='high', parent_name='ohlc', **kwargs): class DecreasingValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='decreasing', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="decreasing", parent_name="ohlc", **kwargs): super(DecreasingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Decreasing'), + data_class_str=kwargs.pop("data_class_str", "Decreasing"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ line plotly.graph_objs.ohlc.decreasing.Line instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -641,15 +614,12 @@ def __init__(self, plotly_name='decreasing', parent_name='ohlc', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='ohlc', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="ohlc", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -658,13 +628,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='customdata', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="customdata", parent_name="ohlc", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -673,13 +642,12 @@ def __init__(self, plotly_name='customdata', parent_name='ohlc', **kwargs): class ClosesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='closesrc', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="closesrc", parent_name="ohlc", **kwargs): super(ClosesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -688,12 +656,11 @@ def __init__(self, plotly_name='closesrc', parent_name='ohlc', **kwargs): class CloseValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='close', parent_name='ohlc', **kwargs): + def __init__(self, plotly_name="close", parent_name="ohlc", **kwargs): super(CloseValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/ohlc/decreasing/__init__.py b/packages/python/plotly/plotly/validators/ohlc/decreasing/__init__.py index 4b774732cae..e4c06b8db8e 100644 --- a/packages/python/plotly/plotly/validators/ohlc/decreasing/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/decreasing/__init__.py @@ -1,19 +1,15 @@ - - import _plotly_utils.basevalidators class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='ohlc.decreasing', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="ohlc.decreasing", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the line color. dash @@ -23,7 +19,7 @@ def __init__( dash length list in px (eg "5px,10px,2px,2px"). width Sets the line width (in px). -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/ohlc/decreasing/line/__init__.py b/packages/python/plotly/plotly/validators/ohlc/decreasing/line/__init__.py index 99ecc1fcafd..eba48f4c28e 100644 --- a/packages/python/plotly/plotly/validators/ohlc/decreasing/line/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/decreasing/line/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='ohlc.decreasing.line', - **kwargs + self, plotly_name="width", parent_name="ohlc.decreasing.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -26,18 +20,16 @@ def __init__( class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name='dash', parent_name='ohlc.decreasing.line', **kwargs + self, plotly_name="dash", parent_name="ohlc.decreasing.line", **kwargs ): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -47,18 +39,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='ohlc.decreasing.line', - **kwargs + self, plotly_name="color", parent_name="ohlc.decreasing.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/__init__.py index cecc64f4a3c..4024bdb1f53 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class SplitValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='split', parent_name='ohlc.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="split", parent_name="ohlc.hoverlabel", **kwargs): super(SplitValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,18 +16,14 @@ def __init__( class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='ohlc.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="ohlc.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -41,20 +32,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='ohlc.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="ohlc.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -63,16 +50,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='ohlc.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="ohlc.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -102,7 +87,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -112,18 +97,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='ohlc.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="ohlc.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -132,19 +113,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='ohlc.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="ohlc.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -153,18 +130,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='ohlc.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="ohlc.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -173,16 +146,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='ohlc.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="ohlc.hoverlabel", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -191,15 +161,12 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='alignsrc', parent_name='ohlc.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="alignsrc", parent_name="ohlc.hoverlabel", **kwargs): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -208,16 +175,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='ohlc.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="ohlc.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/__init__.py index c9bc7ccf012..5b89b9d544a 100644 --- a/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='ohlc.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="ohlc.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='size', parent_name='ohlc.hoverlabel.font', **kwargs + self, plotly_name="size", parent_name="ohlc.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='ohlc.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="ohlc.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -63,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='ohlc.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="ohlc.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -86,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='ohlc.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="ohlc.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -106,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='ohlc.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="ohlc.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/ohlc/increasing/__init__.py b/packages/python/plotly/plotly/validators/ohlc/increasing/__init__.py index 0464b08c7a0..2dab469f810 100644 --- a/packages/python/plotly/plotly/validators/ohlc/increasing/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/increasing/__init__.py @@ -1,19 +1,15 @@ - - import _plotly_utils.basevalidators class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='ohlc.increasing', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="ohlc.increasing", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the line color. dash @@ -23,7 +19,7 @@ def __init__( dash length list in px (eg "5px,10px,2px,2px"). width Sets the line width (in px). -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/ohlc/increasing/line/__init__.py b/packages/python/plotly/plotly/validators/ohlc/increasing/line/__init__.py index 5ed28fb000f..9fce1ab1eb7 100644 --- a/packages/python/plotly/plotly/validators/ohlc/increasing/line/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/increasing/line/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='ohlc.increasing.line', - **kwargs + self, plotly_name="width", parent_name="ohlc.increasing.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -26,18 +20,16 @@ def __init__( class DashValidator(_plotly_utils.basevalidators.DashValidator): - def __init__( - self, plotly_name='dash', parent_name='ohlc.increasing.line', **kwargs + self, plotly_name="dash", parent_name="ohlc.increasing.line", **kwargs ): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -47,18 +39,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='ohlc.increasing.line', - **kwargs + self, plotly_name="color", parent_name="ohlc.increasing.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/ohlc/line/__init__.py b/packages/python/plotly/plotly/validators/ohlc/line/__init__.py index d1ac44ee730..4c11d7db9a4 100644 --- a/packages/python/plotly/plotly/validators/ohlc/line/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/line/__init__.py @@ -1,18 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='width', parent_name='ohlc.line', **kwargs): + def __init__(self, plotly_name="width", parent_name="ohlc.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -21,16 +18,14 @@ def __init__(self, plotly_name='width', parent_name='ohlc.line', **kwargs): class DashValidator(_plotly_utils.basevalidators.DashValidator): - - def __init__(self, plotly_name='dash', parent_name='ohlc.line', **kwargs): + def __init__(self, plotly_name="dash", parent_name="ohlc.line", **kwargs): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/ohlc/stream/__init__.py b/packages/python/plotly/plotly/validators/ohlc/stream/__init__.py index 2e0ebbcc6db..0acd3b0c62c 100644 --- a/packages/python/plotly/plotly/validators/ohlc/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/ohlc/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='ohlc.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="ohlc.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='ohlc.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="ohlc.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcats/__init__.py b/packages/python/plotly/plotly/validators/parcats/__init__.py index 122cff489a4..0c7119f0215 100644 --- a/packages/python/plotly/plotly/validators/parcats/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/__init__.py @@ -1,17 +1,14 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='parcats', **kwargs): + def __init__(self, plotly_name="visible", parent_name="parcats", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -20,15 +17,12 @@ def __init__(self, plotly_name='visible', parent_name='parcats', **kwargs): class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='parcats', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="parcats", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -37,14 +31,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='parcats', **kwargs): + def __init__(self, plotly_name="uid", parent_name="parcats", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -53,16 +46,14 @@ def __init__(self, plotly_name='uid', parent_name='parcats', **kwargs): class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='tickfont', parent_name='parcats', **kwargs - ): + def __init__(self, plotly_name="tickfont", parent_name="parcats", **kwargs): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -83,7 +74,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -93,14 +84,14 @@ def __init__( class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='parcats', **kwargs): + def __init__(self, plotly_name="stream", parent_name="parcats", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -110,7 +101,7 @@ def __init__(self, plotly_name='stream', parent_name='parcats', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -120,16 +111,13 @@ def __init__(self, plotly_name='stream', parent_name='parcats', **kwargs): class SortpathsValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='sortpaths', parent_name='parcats', **kwargs - ): + def __init__(self, plotly_name="sortpaths", parent_name="parcats", **kwargs): super(SortpathsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['forward', 'backward']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["forward", "backward"]), **kwargs ) @@ -138,13 +126,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='parcats', **kwargs): + def __init__(self, plotly_name="name", parent_name="parcats", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -153,13 +140,12 @@ def __init__(self, plotly_name='name', parent_name='parcats', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='parcats', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="parcats", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -168,14 +154,13 @@ def __init__(self, plotly_name='metasrc', parent_name='parcats', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='parcats', **kwargs): + def __init__(self, plotly_name="meta", parent_name="parcats", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -184,14 +169,14 @@ def __init__(self, plotly_name='meta', parent_name='parcats', **kwargs): class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='line', parent_name='parcats', **kwargs): + def __init__(self, plotly_name="line", parent_name="parcats", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -303,7 +288,7 @@ def __init__(self, plotly_name='line', parent_name='parcats', **kwargs): Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `line.color`is set to a numerical array. -""" +""", ), **kwargs ) @@ -313,16 +298,14 @@ def __init__(self, plotly_name='line', parent_name='parcats', **kwargs): class LabelfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='labelfont', parent_name='parcats', **kwargs - ): + def __init__(self, plotly_name="labelfont", parent_name="parcats", **kwargs): super(LabelfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Labelfont'), + data_class_str=kwargs.pop("data_class_str", "Labelfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -343,7 +326,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -353,15 +336,12 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='parcats', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="parcats", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -370,14 +350,13 @@ def __init__( class HoveronValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='hoveron', parent_name='parcats', **kwargs): + def __init__(self, plotly_name="hoveron", parent_name="parcats", **kwargs): super(HoveronValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['category', 'color', 'dimension']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["category", "color", "dimension"]), **kwargs ) @@ -386,18 +365,15 @@ def __init__(self, plotly_name='hoveron', parent_name='parcats', **kwargs): class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='parcats', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="parcats", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'plot'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['count', 'probability']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "plot"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["count", "probability"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -406,14 +382,14 @@ def __init__( class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='domain', parent_name='parcats', **kwargs): + def __init__(self, plotly_name="domain", parent_name="parcats", **kwargs): super(DomainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Domain'), + data_class_str=kwargs.pop("data_class_str", "Domain"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ column If there is a layout grid, use the domain for this column in the grid for this parcats trace @@ -427,7 +403,7 @@ def __init__(self, plotly_name='domain', parent_name='parcats', **kwargs): y Sets the vertical domain of this parcats trace (in plot fraction). -""" +""", ), **kwargs ) @@ -437,16 +413,18 @@ def __init__(self, plotly_name='domain', parent_name='parcats', **kwargs): class DimensionValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='dimensiondefaults', parent_name='parcats', **kwargs + self, plotly_name="dimensiondefaults", parent_name="parcats", **kwargs ): super(DimensionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Dimension'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Dimension"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -455,16 +433,14 @@ def __init__( class DimensionsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - - def __init__( - self, plotly_name='dimensions', parent_name='parcats', **kwargs - ): + def __init__(self, plotly_name="dimensions", parent_name="parcats", **kwargs): super(DimensionsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Dimension'), + data_class_str=kwargs.pop("data_class_str", "Dimension"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ categoryarray Sets the order in which categories in this dimension appear. Only has an effect if @@ -515,7 +491,7 @@ def __init__( visible Shows the dimension when set to `true` (the default). Hides the dimension for `false`. -""" +""", ), **kwargs ) @@ -525,15 +501,12 @@ def __init__( class CountssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='countssrc', parent_name='parcats', **kwargs - ): + def __init__(self, plotly_name="countssrc", parent_name="parcats", **kwargs): super(CountssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -542,15 +515,14 @@ def __init__( class CountsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='counts', parent_name='parcats', **kwargs): + def __init__(self, plotly_name="counts", parent_name="parcats", **kwargs): super(CountsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -559,15 +531,12 @@ def __init__(self, plotly_name='counts', parent_name='parcats', **kwargs): class BundlecolorsValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='bundlecolors', parent_name='parcats', **kwargs - ): + def __init__(self, plotly_name="bundlecolors", parent_name="parcats", **kwargs): super(BundlecolorsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -576,17 +545,12 @@ def __init__( class ArrangementValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='arrangement', parent_name='parcats', **kwargs - ): + def __init__(self, plotly_name="arrangement", parent_name="parcats", **kwargs): super(ArrangementValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['perpendicular', 'freeform', 'fixed'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["perpendicular", "freeform", "fixed"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcats/dimension/__init__.py b/packages/python/plotly/plotly/validators/parcats/dimension/__init__.py index d995c6a2da9..4628aaa5149 100644 --- a/packages/python/plotly/plotly/validators/parcats/dimension/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/dimension/__init__.py @@ -1,18 +1,15 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='visible', parent_name='parcats.dimension', **kwargs + self, plotly_name="visible", parent_name="parcats.dimension", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,18 +18,14 @@ def __init__( class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='valuessrc', - parent_name='parcats.dimension', - **kwargs + self, plotly_name="valuessrc", parent_name="parcats.dimension", **kwargs ): super(ValuessrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -41,15 +34,12 @@ def __init__( class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='values', parent_name='parcats.dimension', **kwargs - ): + def __init__(self, plotly_name="values", parent_name="parcats.dimension", **kwargs): super(ValuesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -58,18 +48,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='parcats.dimension', - **kwargs + self, plotly_name="ticktextsrc", parent_name="parcats.dimension", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -78,18 +64,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='parcats.dimension', - **kwargs + self, plotly_name="ticktext", parent_name="parcats.dimension", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -98,15 +80,12 @@ def __init__( class LabelValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='label', parent_name='parcats.dimension', **kwargs - ): + def __init__(self, plotly_name="label", parent_name="parcats.dimension", **kwargs): super(LabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,18 +94,14 @@ def __init__( class DisplayindexValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='displayindex', - parent_name='parcats.dimension', - **kwargs + self, plotly_name="displayindex", parent_name="parcats.dimension", **kwargs ): super(DisplayindexValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -135,23 +110,17 @@ def __init__( class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='categoryorder', - parent_name='parcats.dimension', - **kwargs + self, plotly_name="categoryorder", parent_name="parcats.dimension", **kwargs ): super(CategoryorderValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'trace', 'category ascending', 'category descending', - 'array' - ] + "values", + ["trace", "category ascending", "category descending", "array"], ), **kwargs ) @@ -161,18 +130,14 @@ def __init__( class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='categoryarraysrc', - parent_name='parcats.dimension', - **kwargs + self, plotly_name="categoryarraysrc", parent_name="parcats.dimension", **kwargs ): super(CategoryarraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -181,17 +146,13 @@ def __init__( class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='categoryarray', - parent_name='parcats.dimension', - **kwargs + self, plotly_name="categoryarray", parent_name="parcats.dimension", **kwargs ): super(CategoryarrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcats/domain/__init__.py b/packages/python/plotly/plotly/validators/parcats/domain/__init__.py index 024afc9b7b3..5eadc95a36c 100644 --- a/packages/python/plotly/plotly/validators/parcats/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/domain/__init__.py @@ -1,33 +1,20 @@ - - import _plotly_utils.basevalidators class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='y', parent_name='parcats.domain', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="parcats.domain", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -36,30 +23,19 @@ def __init__( class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='x', parent_name='parcats.domain', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="parcats.domain", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -68,16 +44,13 @@ def __init__( class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='row', parent_name='parcats.domain', **kwargs - ): + def __init__(self, plotly_name="row", parent_name="parcats.domain", **kwargs): super(RowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -86,15 +59,12 @@ def __init__( class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='column', parent_name='parcats.domain', **kwargs - ): + def __init__(self, plotly_name="column", parent_name="parcats.domain", **kwargs): super(ColumnValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcats/labelfont/__init__.py b/packages/python/plotly/plotly/validators/parcats/labelfont/__init__.py index 440d338fdf9..f0810a90604 100644 --- a/packages/python/plotly/plotly/validators/parcats/labelfont/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/labelfont/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='parcats.labelfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="parcats.labelfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,17 +17,14 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='family', parent_name='parcats.labelfont', **kwargs - ): + def __init__(self, plotly_name="family", parent_name="parcats.labelfont", **kwargs): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -41,14 +33,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='parcats.labelfont', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="parcats.labelfont", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcats/line/__init__.py b/packages/python/plotly/plotly/validators/parcats/line/__init__.py index bd275421157..f3726fb1d68 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/line/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='parcats.line', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="parcats.line", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +16,13 @@ def __init__( class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='shape', parent_name='parcats.line', **kwargs - ): + def __init__(self, plotly_name="shape", parent_name="parcats.line", **kwargs): super(ShapeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['linear', 'hspline']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["linear", "hspline"]), **kwargs ) @@ -39,15 +31,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='reversescale', parent_name='parcats.line', **kwargs + self, plotly_name="reversescale", parent_name="parcats.line", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -56,18 +47,14 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='hovertemplate', - parent_name='parcats.line', - **kwargs + self, plotly_name="hovertemplate", parent_name="parcats.line", **kwargs ): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -76,15 +63,12 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorsrc', parent_name='parcats.line', **kwargs - ): + def __init__(self, plotly_name="colorsrc", parent_name="parcats.line", **kwargs): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -93,18 +77,13 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - - def __init__( - self, plotly_name='colorscale', parent_name='parcats.line', **kwargs - ): + def __init__(self, plotly_name="colorscale", parent_name="parcats.line", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -113,16 +92,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorbar', parent_name='parcats.line', **kwargs - ): + def __init__(self, plotly_name="colorbar", parent_name="parcats.line", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -333,7 +310,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -343,17 +320,14 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='parcats.line', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="parcats.line", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -362,19 +336,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='parcats.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="parcats.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - colorscale_path=kwargs.pop( - 'colorscale_path', 'parcats.line.colorscale' - ), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + colorscale_path=kwargs.pop("colorscale_path", "parcats.line.colorscale"), **kwargs ) @@ -383,16 +352,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmin', parent_name='parcats.line', **kwargs - ): + def __init__(self, plotly_name="cmin", parent_name="parcats.line", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -401,16 +367,13 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmid', parent_name='parcats.line', **kwargs - ): + def __init__(self, plotly_name="cmid", parent_name="parcats.line", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -419,16 +382,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmax', parent_name='parcats.line', **kwargs - ): + def __init__(self, plotly_name="cmax", parent_name="parcats.line", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -437,16 +397,13 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='parcats.line', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="parcats.line", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -455,18 +412,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='parcats.line', - **kwargs + self, plotly_name="autocolorscale", parent_name="parcats.line", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/__init__.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/__init__.py index 7335a7ce27b..77d9fafbfe6 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="parcats.line.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="parcats.line.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,17 +36,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='parcats.line.colorbar', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="parcats.line.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -65,19 +52,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="parcats.line.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -86,19 +69,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="parcats.line.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -107,17 +86,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='parcats.line.colorbar', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="parcats.line.colorbar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -126,19 +102,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="title", parent_name="parcats.line.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -154,7 +127,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -164,19 +137,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="parcats.line.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -185,18 +154,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="parcats.line.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -205,18 +170,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="parcats.line.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -225,18 +186,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="parcats.line.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -245,18 +202,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="parcats.line.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -265,18 +218,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="parcats.line.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -285,19 +234,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="parcats.line.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -306,18 +251,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="parcats.line.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -326,20 +267,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="parcats.line.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -348,19 +285,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="parcats.line.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -369,19 +302,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='parcats.line.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="parcats.line.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -389,22 +324,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='parcats.line.colorbar', + plotly_name="tickformatstops", + parent_name="parcats.line.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -438,7 +371,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -448,18 +381,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="parcats.line.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -468,19 +397,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="parcats.line.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -501,7 +427,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -511,18 +437,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="parcats.line.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -531,18 +453,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="parcats.line.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -551,19 +469,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="parcats.line.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -572,19 +486,15 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='thicknessmode', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="thicknessmode", parent_name="parcats.line.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -593,19 +503,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="parcats.line.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -613,22 +519,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='parcats.line.colorbar', + plotly_name="showticksuffix", + parent_name="parcats.line.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -636,22 +539,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='parcats.line.colorbar', + plotly_name="showtickprefix", + parent_name="parcats.line.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -660,18 +560,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='parcats.line.colorbar', + plotly_name="showticklabels", + parent_name="parcats.line.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -680,19 +579,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="showexponent", parent_name="parcats.line.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -700,21 +595,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='parcats.line.colorbar', + plotly_name="separatethousands", + parent_name="parcats.line.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -723,19 +615,15 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlinewidth', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="outlinewidth", parent_name="parcats.line.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -744,18 +632,14 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outlinecolor', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="outlinecolor", parent_name="parcats.line.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -764,19 +648,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="parcats.line.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -785,19 +665,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="parcats.line.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -806,16 +682,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='len', parent_name='parcats.line.colorbar', **kwargs + self, plotly_name="len", parent_name="parcats.line.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -823,24 +698,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='parcats.line.colorbar', + plotly_name="exponentformat", + parent_name="parcats.line.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -849,19 +719,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="parcats.line.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -870,19 +736,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="parcats.line.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -891,18 +753,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="parcats.line.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -911,17 +769,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='parcats.line.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="parcats.line.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/__init__.py index fb236a6e6bd..b8c50d51ead 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='parcats.line.colorbar.tickfont', - **kwargs + self, plotly_name="size", parent_name="parcats.line.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='parcats.line.colorbar.tickfont', + plotly_name="family", + parent_name="parcats.line.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +40,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='parcats.line.colorbar.tickfont', + plotly_name="color", + parent_name="parcats.line.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/__init__.py index 7bdb7528776..7e10c42a170 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='parcats.line.colorbar.tickformatstop', + plotly_name="value", + parent_name="parcats.line.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='parcats.line.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="parcats.line.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='parcats.line.colorbar.tickformatstop', + plotly_name="name", + parent_name="parcats.line.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='parcats.line.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="parcats.line.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='parcats.line.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="parcats.line.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/__init__.py index 42fb4f12f7e..425a44ee48b 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='parcats.line.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="parcats.line.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='parcats.line.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="parcats.line.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='parcats.line.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="parcats.line.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/__init__.py index af5d9af50da..361e538cff9 100644 --- a/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/line/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='parcats.line.colorbar.title.font', + plotly_name="size", + parent_name="parcats.line.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='parcats.line.colorbar.title.font', + plotly_name="family", + parent_name="parcats.line.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='parcats.line.colorbar.title.font', + plotly_name="color", + parent_name="parcats.line.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcats/stream/__init__.py b/packages/python/plotly/plotly/validators/parcats/stream/__init__.py index 9aea6eda056..d1758731e47 100644 --- a/packages/python/plotly/plotly/validators/parcats/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='parcats.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="parcats.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='parcats.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="parcats.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcats/tickfont/__init__.py b/packages/python/plotly/plotly/validators/parcats/tickfont/__init__.py index 5cb793aa557..2cbc584f192 100644 --- a/packages/python/plotly/plotly/validators/parcats/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/parcats/tickfont/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='parcats.tickfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="parcats.tickfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,17 +17,14 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='family', parent_name='parcats.tickfont', **kwargs - ): + def __init__(self, plotly_name="family", parent_name="parcats.tickfont", **kwargs): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -41,14 +33,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='parcats.tickfont', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="parcats.tickfont", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcoords/__init__.py b/packages/python/plotly/plotly/validators/parcoords/__init__.py index bc41c6a280f..d765a96bd1a 100644 --- a/packages/python/plotly/plotly/validators/parcoords/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='parcoords', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="parcoords", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -22,15 +17,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='parcoords', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="parcoords", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,14 +31,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='parcoords', **kwargs): + def __init__(self, plotly_name="uid", parent_name="parcoords", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -55,16 +46,14 @@ def __init__(self, plotly_name='uid', parent_name='parcoords', **kwargs): class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='tickfont', parent_name='parcoords', **kwargs - ): + def __init__(self, plotly_name="tickfont", parent_name="parcoords", **kwargs): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -85,7 +74,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -95,16 +84,14 @@ def __init__( class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='parcoords', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="parcoords", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -114,7 +101,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -124,16 +111,14 @@ def __init__( class RangefontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='rangefont', parent_name='parcoords', **kwargs - ): + def __init__(self, plotly_name="rangefont", parent_name="parcoords", **kwargs): super(RangefontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Rangefont'), + data_class_str=kwargs.pop("data_class_str", "Rangefont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -154,7 +139,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -164,13 +149,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='parcoords', **kwargs): + def __init__(self, plotly_name="name", parent_name="parcoords", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -179,15 +163,12 @@ def __init__(self, plotly_name='name', parent_name='parcoords', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='parcoords', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="parcoords", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -196,14 +177,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='parcoords', **kwargs): + def __init__(self, plotly_name="meta", parent_name="parcoords", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -212,14 +192,14 @@ def __init__(self, plotly_name='meta', parent_name='parcoords', **kwargs): class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='line', parent_name='parcoords', **kwargs): + def __init__(self, plotly_name="line", parent_name="parcoords", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -305,7 +285,7 @@ def __init__(self, plotly_name='line', parent_name='parcoords', **kwargs): Determines whether or not a colorbar is displayed for this trace. Has an effect only if in `line.color`is set to a numerical array. -""" +""", ), **kwargs ) @@ -315,16 +295,14 @@ def __init__(self, plotly_name='line', parent_name='parcoords', **kwargs): class LabelfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='labelfont', parent_name='parcoords', **kwargs - ): + def __init__(self, plotly_name="labelfont", parent_name="parcoords", **kwargs): super(LabelfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Labelfont'), + data_class_str=kwargs.pop("data_class_str", "Labelfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -345,7 +323,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -355,15 +333,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='parcoords', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="parcoords", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -372,14 +347,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='parcoords', **kwargs): + def __init__(self, plotly_name="ids", parent_name="parcoords", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -388,16 +362,14 @@ def __init__(self, plotly_name='ids', parent_name='parcoords', **kwargs): class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='domain', parent_name='parcoords', **kwargs - ): + def __init__(self, plotly_name="domain", parent_name="parcoords", **kwargs): super(DomainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Domain'), + data_class_str=kwargs.pop("data_class_str", "Domain"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ column If there is a layout grid, use the domain for this column in the grid for this parcoords @@ -411,7 +383,7 @@ def __init__( y Sets the vertical domain of this parcoords trace (in plot fraction). -""" +""", ), **kwargs ) @@ -421,19 +393,18 @@ def __init__( class DimensionValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='dimensiondefaults', - parent_name='parcoords', - **kwargs + self, plotly_name="dimensiondefaults", parent_name="parcoords", **kwargs ): super(DimensionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Dimension'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Dimension"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -442,16 +413,14 @@ def __init__( class DimensionsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - - def __init__( - self, plotly_name='dimensions', parent_name='parcoords', **kwargs - ): + def __init__(self, plotly_name="dimensions", parent_name="parcoords", **kwargs): super(DimensionsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Dimension'), + data_class_str=kwargs.pop("data_class_str", "Dimension"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ constraintrange The domain range to which the filter on the dimension is constrained. Must be an array of @@ -523,7 +492,7 @@ def __init__( visible Shows the dimension when set to `true` (the default). Hides the dimension for `false`. -""" +""", ), **kwargs ) @@ -533,15 +502,12 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='parcoords', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="parcoords", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -550,14 +516,11 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='parcoords', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="parcoords", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcoords/dimension/__init__.py b/packages/python/plotly/plotly/validators/parcoords/dimension/__init__.py index a365c69c8d4..902915d1a17 100644 --- a/packages/python/plotly/plotly/validators/parcoords/dimension/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/dimension/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='visible', - parent_name='parcoords.dimension', - **kwargs + self, plotly_name="visible", parent_name="parcoords.dimension", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='valuessrc', - parent_name='parcoords.dimension', - **kwargs + self, plotly_name="valuessrc", parent_name="parcoords.dimension", **kwargs ): super(ValuessrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +34,14 @@ def __init__( class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='values', - parent_name='parcoords.dimension', - **kwargs + self, plotly_name="values", parent_name="parcoords.dimension", **kwargs ): super(ValuesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -64,18 +50,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='parcoords.dimension', - **kwargs + self, plotly_name="tickvalssrc", parent_name="parcoords.dimension", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,18 +66,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='parcoords.dimension', - **kwargs + self, plotly_name="tickvals", parent_name="parcoords.dimension", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -104,18 +82,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='parcoords.dimension', - **kwargs + self, plotly_name="ticktextsrc", parent_name="parcoords.dimension", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -124,18 +98,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='parcoords.dimension', - **kwargs + self, plotly_name="ticktext", parent_name="parcoords.dimension", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -144,18 +114,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='parcoords.dimension', - **kwargs + self, plotly_name="tickformat", parent_name="parcoords.dimension", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -164,18 +130,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='parcoords.dimension', + plotly_name="templateitemname", + parent_name="parcoords.dimension", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -184,26 +149,21 @@ def __init__( class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( - self, plotly_name='range', parent_name='parcoords.dimension', **kwargs + self, plotly_name="range", parent_name="parcoords.dimension", **kwargs ): super(RangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'editType': 'calc' - }, { - 'valType': 'number', - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "number", "editType": "calc"}, + {"valType": "number", "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -212,15 +172,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='parcoords.dimension', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="parcoords.dimension", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -229,18 +186,14 @@ def __init__( class MultiselectValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='multiselect', - parent_name='parcoords.dimension', - **kwargs + self, plotly_name="multiselect", parent_name="parcoords.dimension", **kwargs ): super(MultiselectValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -249,15 +202,14 @@ def __init__( class LabelValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='label', parent_name='parcoords.dimension', **kwargs + self, plotly_name="label", parent_name="parcoords.dimension", **kwargs ): super(LabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -265,33 +217,23 @@ def __init__( import _plotly_utils.basevalidators -class ConstraintrangeValidator( - _plotly_utils.basevalidators.InfoArrayValidator -): - +class ConstraintrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): def __init__( - self, - plotly_name='constraintrange', - parent_name='parcoords.dimension', - **kwargs + self, plotly_name="constraintrange", parent_name="parcoords.dimension", **kwargs ): super(ConstraintrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dimensions=kwargs.pop('dimensions', '1-2'), - edit_type=kwargs.pop('edit_type', 'calc'), - free_length=kwargs.pop('free_length', True), + dimensions=kwargs.pop("dimensions", "1-2"), + edit_type=kwargs.pop("edit_type", "calc"), + free_length=kwargs.pop("free_length", True), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'editType': 'calc' - }, { - 'valType': 'number', - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "number", "editType": "calc"}, + {"valType": "number", "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcoords/domain/__init__.py b/packages/python/plotly/plotly/validators/parcoords/domain/__init__.py index 0d88d06c2f3..2f595b4e810 100644 --- a/packages/python/plotly/plotly/validators/parcoords/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/domain/__init__.py @@ -1,33 +1,20 @@ - - import _plotly_utils.basevalidators class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='y', parent_name='parcoords.domain', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="parcoords.domain", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -36,30 +23,19 @@ def __init__( class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='x', parent_name='parcoords.domain', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="parcoords.domain", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -68,16 +44,13 @@ def __init__( class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='row', parent_name='parcoords.domain', **kwargs - ): + def __init__(self, plotly_name="row", parent_name="parcoords.domain", **kwargs): super(RowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -86,15 +59,12 @@ def __init__( class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='column', parent_name='parcoords.domain', **kwargs - ): + def __init__(self, plotly_name="column", parent_name="parcoords.domain", **kwargs): super(ColumnValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcoords/labelfont/__init__.py b/packages/python/plotly/plotly/validators/parcoords/labelfont/__init__.py index 559d4eaa324..36f520b28a9 100644 --- a/packages/python/plotly/plotly/validators/parcoords/labelfont/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/labelfont/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='parcoords.labelfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="parcoords.labelfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,20 +17,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='parcoords.labelfont', - **kwargs + self, plotly_name="family", parent_name="parcoords.labelfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -44,14 +35,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='color', parent_name='parcoords.labelfont', **kwargs + self, plotly_name="color", parent_name="parcoords.labelfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcoords/line/__init__.py b/packages/python/plotly/plotly/validators/parcoords/line/__init__.py index f5dd8bdfb51..9c4369c017d 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='parcoords.line', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="parcoords.line", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,18 +16,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='parcoords.line', - **kwargs + self, plotly_name="reversescale", parent_name="parcoords.line", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -41,15 +32,12 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorsrc', parent_name='parcoords.line', **kwargs - ): + def __init__(self, plotly_name="colorsrc", parent_name="parcoords.line", **kwargs): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -58,18 +46,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name='colorscale', parent_name='parcoords.line', **kwargs + self, plotly_name="colorscale", parent_name="parcoords.line", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -78,16 +63,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorbar', parent_name='parcoords.line', **kwargs - ): + def __init__(self, plotly_name="colorbar", parent_name="parcoords.line", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -298,7 +281,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -308,17 +291,14 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='parcoords.line', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="parcoords.line", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -327,19 +307,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='parcoords.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="parcoords.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - colorscale_path=kwargs.pop( - 'colorscale_path', 'parcoords.line.colorscale' - ), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + colorscale_path=kwargs.pop("colorscale_path", "parcoords.line.colorscale"), **kwargs ) @@ -348,16 +323,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmin', parent_name='parcoords.line', **kwargs - ): + def __init__(self, plotly_name="cmin", parent_name="parcoords.line", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -366,16 +338,13 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmid', parent_name='parcoords.line', **kwargs - ): + def __init__(self, plotly_name="cmid", parent_name="parcoords.line", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -384,16 +353,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmax', parent_name='parcoords.line', **kwargs - ): + def __init__(self, plotly_name="cmax", parent_name="parcoords.line", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -402,16 +368,13 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='parcoords.line', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="parcoords.line", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -420,18 +383,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='parcoords.line', - **kwargs + self, plotly_name="autocolorscale", parent_name="parcoords.line", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/__init__.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/__init__.py index f6ca2ea9578..00481b25d6d 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="parcoords.line.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="parcoords.line.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,17 +36,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='y', parent_name='parcoords.line.colorbar', **kwargs + self, plotly_name="y", parent_name="parcoords.line.colorbar", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -65,19 +54,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="parcoords.line.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -86,19 +71,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="parcoords.line.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -107,17 +88,16 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='x', parent_name='parcoords.line.colorbar', **kwargs + self, plotly_name="x", parent_name="parcoords.line.colorbar", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -126,19 +106,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="title", parent_name="parcoords.line.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -154,7 +131,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -164,19 +141,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="parcoords.line.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -185,18 +158,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="parcoords.line.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -205,18 +174,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="parcoords.line.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -225,18 +190,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="parcoords.line.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -245,18 +206,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="parcoords.line.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -265,18 +222,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="parcoords.line.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -285,19 +238,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="parcoords.line.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -306,18 +255,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="parcoords.line.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -326,20 +271,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="parcoords.line.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -348,19 +289,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="parcoords.line.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -369,19 +306,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='parcoords.line.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="parcoords.line.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -389,22 +328,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='parcoords.line.colorbar', + plotly_name="tickformatstops", + parent_name="parcoords.line.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -438,7 +375,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -448,18 +385,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="parcoords.line.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -468,19 +401,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="parcoords.line.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -501,7 +431,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -511,18 +441,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="parcoords.line.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -531,18 +457,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="parcoords.line.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -551,19 +473,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="parcoords.line.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -572,19 +490,18 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='thicknessmode', - parent_name='parcoords.line.colorbar', + plotly_name="thicknessmode", + parent_name="parcoords.line.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -593,19 +510,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="parcoords.line.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -613,22 +526,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='parcoords.line.colorbar', + plotly_name="showticksuffix", + parent_name="parcoords.line.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -636,22 +546,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='parcoords.line.colorbar', + plotly_name="showtickprefix", + parent_name="parcoords.line.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -660,18 +567,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='parcoords.line.colorbar', + plotly_name="showticklabels", + parent_name="parcoords.line.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -680,19 +586,18 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='showexponent', - parent_name='parcoords.line.colorbar', + plotly_name="showexponent", + parent_name="parcoords.line.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -700,21 +605,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='parcoords.line.colorbar', + plotly_name="separatethousands", + parent_name="parcoords.line.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -723,19 +625,18 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='outlinewidth', - parent_name='parcoords.line.colorbar', + plotly_name="outlinewidth", + parent_name="parcoords.line.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -744,18 +645,17 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='outlinecolor', - parent_name='parcoords.line.colorbar', + plotly_name="outlinecolor", + parent_name="parcoords.line.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -764,19 +664,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="parcoords.line.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -785,19 +681,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="parcoords.line.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -806,19 +698,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='len', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="len", parent_name="parcoords.line.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -826,24 +714,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='parcoords.line.colorbar', + plotly_name="exponentformat", + parent_name="parcoords.line.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -852,19 +735,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="parcoords.line.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -873,19 +752,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="parcoords.line.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -894,18 +769,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="parcoords.line.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -914,17 +785,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='parcoords.line.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="parcoords.line.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/__init__.py index e18baf383a0..cb292c985b2 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='parcoords.line.colorbar.tickfont', + plotly_name="size", + parent_name="parcoords.line.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='parcoords.line.colorbar.tickfont', + plotly_name="family", + parent_name="parcoords.line.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='parcoords.line.colorbar.tickfont', + plotly_name="color", + parent_name="parcoords.line.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/__init__.py index a43206bf19d..3a47c74fc0e 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='parcoords.line.colorbar.tickformatstop', + plotly_name="value", + parent_name="parcoords.line.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='parcoords.line.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="parcoords.line.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='parcoords.line.colorbar.tickformatstop', + plotly_name="name", + parent_name="parcoords.line.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='parcoords.line.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="parcoords.line.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='parcoords.line.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="parcoords.line.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/__init__.py index a207c4d5b15..47debd2b470 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='parcoords.line.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="parcoords.line.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='parcoords.line.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="parcoords.line.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='parcoords.line.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="parcoords.line.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/__init__.py index c03cb56035f..7b04f7ed4e2 100644 --- a/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/line/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='parcoords.line.colorbar.title.font', + plotly_name="size", + parent_name="parcoords.line.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='parcoords.line.colorbar.title.font', + plotly_name="family", + parent_name="parcoords.line.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='parcoords.line.colorbar.title.font', + plotly_name="color", + parent_name="parcoords.line.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcoords/rangefont/__init__.py b/packages/python/plotly/plotly/validators/parcoords/rangefont/__init__.py index a85bf5c34ef..e53081edcb0 100644 --- a/packages/python/plotly/plotly/validators/parcoords/rangefont/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/rangefont/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='parcoords.rangefont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="parcoords.rangefont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,20 +17,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='parcoords.rangefont', - **kwargs + self, plotly_name="family", parent_name="parcoords.rangefont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -44,14 +35,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='color', parent_name='parcoords.rangefont', **kwargs + self, plotly_name="color", parent_name="parcoords.rangefont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcoords/stream/__init__.py b/packages/python/plotly/plotly/validators/parcoords/stream/__init__.py index 66cf7ed8a04..50a1a1dd381 100644 --- a/packages/python/plotly/plotly/validators/parcoords/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='parcoords.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="parcoords.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,19 +18,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='parcoords.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="parcoords.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/parcoords/tickfont/__init__.py b/packages/python/plotly/plotly/validators/parcoords/tickfont/__init__.py index 4e454f16b02..79cbcc6b04e 100644 --- a/packages/python/plotly/plotly/validators/parcoords/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/parcoords/tickfont/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='parcoords.tickfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="parcoords.tickfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,17 +17,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='family', parent_name='parcoords.tickfont', **kwargs + self, plotly_name="family", parent_name="parcoords.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -41,14 +35,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='parcoords.tickfont', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="parcoords.tickfont", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pie/__init__.py b/packages/python/plotly/plotly/validators/pie/__init__.py index 294b055faa0..cc4b047641f 100644 --- a/packages/python/plotly/plotly/validators/pie/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/__init__.py @@ -1,17 +1,14 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='pie', **kwargs): + def __init__(self, plotly_name="visible", parent_name="pie", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -20,13 +17,12 @@ def __init__(self, plotly_name='visible', parent_name='pie', **kwargs): class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='valuessrc', parent_name='pie', **kwargs): + def __init__(self, plotly_name="valuessrc", parent_name="pie", **kwargs): super(ValuessrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -35,13 +31,12 @@ def __init__(self, plotly_name='valuessrc', parent_name='pie', **kwargs): class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='values', parent_name='pie', **kwargs): + def __init__(self, plotly_name="values", parent_name="pie", **kwargs): super(ValuesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -50,13 +45,12 @@ def __init__(self, plotly_name='values', parent_name='pie', **kwargs): class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='uirevision', parent_name='pie', **kwargs): + def __init__(self, plotly_name="uirevision", parent_name="pie", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -65,14 +59,13 @@ def __init__(self, plotly_name='uirevision', parent_name='pie', **kwargs): class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='pie', **kwargs): + def __init__(self, plotly_name="uid", parent_name="pie", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -81,14 +74,14 @@ def __init__(self, plotly_name='uid', parent_name='pie', **kwargs): class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - - def __init__(self, plotly_name='title', parent_name='pie', **kwargs): + def __init__(self, plotly_name="title", parent_name="pie", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets the font used for `title`. Note that the title's font used to be set by the now @@ -103,7 +96,7 @@ def __init__(self, plotly_name='title', parent_name='pie', **kwargs): existence of `title.text`, the title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -113,13 +106,12 @@ def __init__(self, plotly_name='title', parent_name='pie', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='textsrc', parent_name='pie', **kwargs): + def __init__(self, plotly_name="textsrc", parent_name="pie", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -128,15 +120,12 @@ def __init__(self, plotly_name='textsrc', parent_name='pie', **kwargs): class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textpositionsrc', parent_name='pie', **kwargs - ): + def __init__(self, plotly_name="textpositionsrc", parent_name="pie", **kwargs): super(TextpositionsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -145,17 +134,14 @@ def __init__( class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='textposition', parent_name='pie', **kwargs - ): + def __init__(self, plotly_name="textposition", parent_name="pie", **kwargs): super(TextpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['inside', 'outside', 'auto', 'none']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["inside", "outside", "auto", "none"]), **kwargs ) @@ -164,15 +150,14 @@ def __init__( class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__(self, plotly_name='textinfo', parent_name='pie', **kwargs): + def __init__(self, plotly_name="textinfo", parent_name="pie", **kwargs): super(TextinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['none']), - flags=kwargs.pop('flags', ['label', 'text', 'value', 'percent']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["none"]), + flags=kwargs.pop("flags", ["label", "text", "value", "percent"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -181,14 +166,14 @@ def __init__(self, plotly_name='textinfo', parent_name='pie', **kwargs): class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='textfont', parent_name='pie', **kwargs): + def __init__(self, plotly_name="textfont", parent_name="pie", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -218,7 +203,7 @@ def __init__(self, plotly_name='textfont', parent_name='pie', **kwargs): sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -228,13 +213,12 @@ def __init__(self, plotly_name='textfont', parent_name='pie', **kwargs): class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='text', parent_name='pie', **kwargs): + def __init__(self, plotly_name="text", parent_name="pie", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -243,14 +227,14 @@ def __init__(self, plotly_name='text', parent_name='pie', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='pie', **kwargs): + def __init__(self, plotly_name="stream", parent_name="pie", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -260,7 +244,7 @@ def __init__(self, plotly_name='stream', parent_name='pie', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -270,13 +254,12 @@ def __init__(self, plotly_name='stream', parent_name='pie', **kwargs): class SortValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__(self, plotly_name='sort', parent_name='pie', **kwargs): + def __init__(self, plotly_name="sort", parent_name="pie", **kwargs): super(SortValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -285,13 +268,12 @@ def __init__(self, plotly_name='sort', parent_name='pie', **kwargs): class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__(self, plotly_name='showlegend', parent_name='pie', **kwargs): + def __init__(self, plotly_name="showlegend", parent_name="pie", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -300,13 +282,12 @@ def __init__(self, plotly_name='showlegend', parent_name='pie', **kwargs): class ScalegroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='scalegroup', parent_name='pie', **kwargs): + def __init__(self, plotly_name="scalegroup", parent_name="pie", **kwargs): super(ScalegroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -315,15 +296,14 @@ def __init__(self, plotly_name='scalegroup', parent_name='pie', **kwargs): class RotationValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='rotation', parent_name='pie', **kwargs): + def __init__(self, plotly_name="rotation", parent_name="pie", **kwargs): super(RotationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 360), - min=kwargs.pop('min', -360), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 360), + min=kwargs.pop("min", -360), + role=kwargs.pop("role", "style"), **kwargs ) @@ -332,13 +312,12 @@ def __init__(self, plotly_name='rotation', parent_name='pie', **kwargs): class PullsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='pullsrc', parent_name='pie', **kwargs): + def __init__(self, plotly_name="pullsrc", parent_name="pie", **kwargs): super(PullsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -347,16 +326,15 @@ def __init__(self, plotly_name='pullsrc', parent_name='pie', **kwargs): class PullValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='pull', parent_name='pie', **kwargs): + def __init__(self, plotly_name="pull", parent_name="pie", **kwargs): super(PullValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -365,16 +343,14 @@ def __init__(self, plotly_name='pull', parent_name='pie', **kwargs): class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='outsidetextfont', parent_name='pie', **kwargs - ): + def __init__(self, plotly_name="outsidetextfont", parent_name="pie", **kwargs): super(OutsidetextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Outsidetextfont'), + data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -404,7 +380,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -414,15 +390,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='opacity', parent_name='pie', **kwargs): + def __init__(self, plotly_name="opacity", parent_name="pie", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -431,13 +406,12 @@ def __init__(self, plotly_name='opacity', parent_name='pie', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='pie', **kwargs): + def __init__(self, plotly_name="name", parent_name="pie", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -446,13 +420,12 @@ def __init__(self, plotly_name='name', parent_name='pie', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='pie', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="pie", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -461,14 +434,13 @@ def __init__(self, plotly_name='metasrc', parent_name='pie', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='pie', **kwargs): + def __init__(self, plotly_name="meta", parent_name="pie", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -477,14 +449,14 @@ def __init__(self, plotly_name='meta', parent_name='pie', **kwargs): class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='marker', parent_name='pie', **kwargs): + def __init__(self, plotly_name="marker", parent_name="pie", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ colors Sets the color of each sector. If not specified, the default trace color set is used @@ -495,7 +467,7 @@ def __init__(self, plotly_name='marker', parent_name='pie', **kwargs): line plotly.graph_objs.pie.marker.Line instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -505,13 +477,12 @@ def __init__(self, plotly_name='marker', parent_name='pie', **kwargs): class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='legendgroup', parent_name='pie', **kwargs): + def __init__(self, plotly_name="legendgroup", parent_name="pie", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -520,13 +491,12 @@ def __init__(self, plotly_name='legendgroup', parent_name='pie', **kwargs): class LabelssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='labelssrc', parent_name='pie', **kwargs): + def __init__(self, plotly_name="labelssrc", parent_name="pie", **kwargs): super(LabelssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -535,13 +505,12 @@ def __init__(self, plotly_name='labelssrc', parent_name='pie', **kwargs): class LabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='labels', parent_name='pie', **kwargs): + def __init__(self, plotly_name="labels", parent_name="pie", **kwargs): super(LabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -550,13 +519,12 @@ def __init__(self, plotly_name='labels', parent_name='pie', **kwargs): class Label0Validator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='label0', parent_name='pie', **kwargs): + def __init__(self, plotly_name="label0", parent_name="pie", **kwargs): super(Label0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -565,16 +533,14 @@ def __init__(self, plotly_name='label0', parent_name='pie', **kwargs): class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='insidetextfont', parent_name='pie', **kwargs - ): + def __init__(self, plotly_name="insidetextfont", parent_name="pie", **kwargs): super(InsidetextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Insidetextfont'), + data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -604,7 +570,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -614,13 +580,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='pie', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="pie", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -629,14 +594,13 @@ def __init__(self, plotly_name='idssrc', parent_name='pie', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='pie', **kwargs): + def __init__(self, plotly_name="ids", parent_name="pie", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -645,15 +609,12 @@ def __init__(self, plotly_name='ids', parent_name='pie', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='pie', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="pie", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -662,14 +623,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='hovertext', parent_name='pie', **kwargs): + def __init__(self, plotly_name="hovertext", parent_name="pie", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -678,15 +638,12 @@ def __init__(self, plotly_name='hovertext', parent_name='pie', **kwargs): class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertemplatesrc', parent_name='pie', **kwargs - ): + def __init__(self, plotly_name="hovertemplatesrc", parent_name="pie", **kwargs): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -695,16 +652,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='pie', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="pie", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -713,14 +667,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='hoverlabel', parent_name='pie', **kwargs): + def __init__(self, plotly_name="hoverlabel", parent_name="pie", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -756,7 +710,7 @@ def __init__(self, plotly_name='hoverlabel', parent_name='pie', **kwargs): namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -766,15 +720,12 @@ def __init__(self, plotly_name='hoverlabel', parent_name='pie', **kwargs): class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='pie', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="pie", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -783,18 +734,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__(self, plotly_name='hoverinfo', parent_name='pie', **kwargs): + def __init__(self, plotly_name="hoverinfo", parent_name="pie", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop( - 'flags', ['label', 'text', 'value', 'percent', 'name'] - ), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["label", "text", "value", "percent", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -803,15 +751,14 @@ def __init__(self, plotly_name='hoverinfo', parent_name='pie', **kwargs): class HoleValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='hole', parent_name='pie', **kwargs): + def __init__(self, plotly_name="hole", parent_name="pie", **kwargs): super(HoleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -820,14 +767,14 @@ def __init__(self, plotly_name='hole', parent_name='pie', **kwargs): class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='domain', parent_name='pie', **kwargs): + def __init__(self, plotly_name="domain", parent_name="pie", **kwargs): super(DomainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Domain'), + data_class_str=kwargs.pop("data_class_str", "Domain"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ column If there is a layout grid, use the domain for this column in the grid for this pie trace . @@ -840,7 +787,7 @@ def __init__(self, plotly_name='domain', parent_name='pie', **kwargs): y Sets the vertical domain of this pie trace (in plot fraction). -""" +""", ), **kwargs ) @@ -850,13 +797,12 @@ def __init__(self, plotly_name='domain', parent_name='pie', **kwargs): class DlabelValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dlabel', parent_name='pie', **kwargs): + def __init__(self, plotly_name="dlabel", parent_name="pie", **kwargs): super(DlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -865,14 +811,13 @@ def __init__(self, plotly_name='dlabel', parent_name='pie', **kwargs): class DirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='direction', parent_name='pie', **kwargs): + def __init__(self, plotly_name="direction", parent_name="pie", **kwargs): super(DirectionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['clockwise', 'counterclockwise']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["clockwise", "counterclockwise"]), **kwargs ) @@ -881,15 +826,12 @@ def __init__(self, plotly_name='direction', parent_name='pie', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='pie', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="pie", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -898,12 +840,11 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='customdata', parent_name='pie', **kwargs): + def __init__(self, plotly_name="customdata", parent_name="pie", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pie/domain/__init__.py b/packages/python/plotly/plotly/validators/pie/domain/__init__.py index cf053722f44..c7bcf03814b 100644 --- a/packages/python/plotly/plotly/validators/pie/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/domain/__init__.py @@ -1,31 +1,20 @@ - - import _plotly_utils.basevalidators class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__(self, plotly_name='y', parent_name='pie.domain', **kwargs): + def __init__(self, plotly_name="y", parent_name="pie.domain", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -34,28 +23,19 @@ def __init__(self, plotly_name='y', parent_name='pie.domain', **kwargs): class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__(self, plotly_name='x', parent_name='pie.domain', **kwargs): + def __init__(self, plotly_name="x", parent_name="pie.domain", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -64,14 +44,13 @@ def __init__(self, plotly_name='x', parent_name='pie.domain', **kwargs): class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__(self, plotly_name='row', parent_name='pie.domain', **kwargs): + def __init__(self, plotly_name="row", parent_name="pie.domain", **kwargs): super(RowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -80,15 +59,12 @@ def __init__(self, plotly_name='row', parent_name='pie.domain', **kwargs): class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='column', parent_name='pie.domain', **kwargs - ): + def __init__(self, plotly_name="column", parent_name="pie.domain", **kwargs): super(ColumnValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/__init__.py index 2d7b5af3871..17709e95692 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='pie.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="pie.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, plotly_name='namelength', parent_name='pie.hoverlabel', **kwargs + self, plotly_name="namelength", parent_name="pie.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='pie.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="pie.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -82,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -92,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='pie.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="pie.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -112,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='pie.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="pie.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -133,15 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='bgcolorsrc', parent_name='pie.hoverlabel', **kwargs + self, plotly_name="bgcolorsrc", parent_name="pie.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -150,16 +132,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='pie.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="pie.hoverlabel", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -168,15 +147,12 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='alignsrc', parent_name='pie.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="alignsrc", parent_name="pie.hoverlabel", **kwargs): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -185,16 +161,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='pie.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="pie.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/__init__.py index 6f9a4603ac7..f5ad617bc3d 100644 --- a/packages/python/plotly/plotly/validators/pie/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='pie.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="pie.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='pie.hoverlabel.font', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="pie.hoverlabel.font", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,18 +34,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='pie.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="pie.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -63,21 +50,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='pie.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="pie.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -86,18 +69,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='pie.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="pie.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -106,15 +85,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='color', parent_name='pie.hoverlabel.font', **kwargs + self, plotly_name="color", parent_name="pie.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pie/insidetextfont/__init__.py b/packages/python/plotly/plotly/validators/pie/insidetextfont/__init__.py index 06b5d0f9e21..558d178ff34 100644 --- a/packages/python/plotly/plotly/validators/pie/insidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/insidetextfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='pie.insidetextfont', - **kwargs + self, plotly_name="sizesrc", parent_name="pie.insidetextfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='pie.insidetextfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="pie.insidetextfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,18 +34,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='pie.insidetextfont', - **kwargs + self, plotly_name="familysrc", parent_name="pie.insidetextfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -63,18 +50,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='family', parent_name='pie.insidetextfont', **kwargs + self, plotly_name="family", parent_name="pie.insidetextfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -83,18 +69,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='pie.insidetextfont', - **kwargs + self, plotly_name="colorsrc", parent_name="pie.insidetextfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -103,15 +85,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='pie.insidetextfont', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="pie.insidetextfont", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pie/marker/__init__.py b/packages/python/plotly/plotly/validators/pie/marker/__init__.py index e5637daf4be..204d191cefe 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/marker/__init__.py @@ -1,17 +1,15 @@ - - import _plotly_utils.basevalidators class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='line', parent_name='pie.marker', **kwargs): + def __init__(self, plotly_name="line", parent_name="pie.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of the line enclosing each sector. @@ -24,7 +22,7 @@ def __init__(self, plotly_name='line', parent_name='pie.marker', **kwargs): widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -34,15 +32,12 @@ def __init__(self, plotly_name='line', parent_name='pie.marker', **kwargs): class ColorssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorssrc', parent_name='pie.marker', **kwargs - ): + def __init__(self, plotly_name="colorssrc", parent_name="pie.marker", **kwargs): super(ColorssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -51,14 +46,11 @@ def __init__( class ColorsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='colors', parent_name='pie.marker', **kwargs - ): + def __init__(self, plotly_name="colors", parent_name="pie.marker", **kwargs): super(ColorsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pie/marker/line/__init__.py b/packages/python/plotly/plotly/validators/pie/marker/line/__init__.py index 71f596bd135..c9b4b4d5e19 100644 --- a/packages/python/plotly/plotly/validators/pie/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/marker/line/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='widthsrc', parent_name='pie.marker.line', **kwargs - ): + def __init__(self, plotly_name="widthsrc", parent_name="pie.marker.line", **kwargs): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,17 +16,14 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='pie.marker.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="pie.marker.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -40,15 +32,12 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorsrc', parent_name='pie.marker.line', **kwargs - ): + def __init__(self, plotly_name="colorsrc", parent_name="pie.marker.line", **kwargs): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -57,15 +46,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='pie.marker.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="pie.marker.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pie/outsidetextfont/__init__.py b/packages/python/plotly/plotly/validators/pie/outsidetextfont/__init__.py index a337d2f2e95..9f091c4393a 100644 --- a/packages/python/plotly/plotly/validators/pie/outsidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/outsidetextfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='pie.outsidetextfont', - **kwargs + self, plotly_name="sizesrc", parent_name="pie.outsidetextfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='pie.outsidetextfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="pie.outsidetextfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,18 +34,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='pie.outsidetextfont', - **kwargs + self, plotly_name="familysrc", parent_name="pie.outsidetextfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -63,21 +50,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='pie.outsidetextfont', - **kwargs + self, plotly_name="family", parent_name="pie.outsidetextfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -86,18 +69,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='pie.outsidetextfont', - **kwargs + self, plotly_name="colorsrc", parent_name="pie.outsidetextfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -106,15 +85,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='color', parent_name='pie.outsidetextfont', **kwargs + self, plotly_name="color", parent_name="pie.outsidetextfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pie/stream/__init__.py b/packages/python/plotly/plotly/validators/pie/stream/__init__.py index 1b6c803f1cc..dff50ad5e18 100644 --- a/packages/python/plotly/plotly/validators/pie/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='pie.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="pie.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='pie.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="pie.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pie/textfont/__init__.py b/packages/python/plotly/plotly/validators/pie/textfont/__init__.py index e92c5ddbcb0..e61efc73d35 100644 --- a/packages/python/plotly/plotly/validators/pie/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/textfont/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='sizesrc', parent_name='pie.textfont', **kwargs - ): + def __init__(self, plotly_name="sizesrc", parent_name="pie.textfont", **kwargs): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,17 +16,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='pie.textfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="pie.textfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -40,15 +32,12 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='familysrc', parent_name='pie.textfont', **kwargs - ): + def __init__(self, plotly_name="familysrc", parent_name="pie.textfont", **kwargs): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -57,18 +46,15 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='family', parent_name='pie.textfont', **kwargs - ): + def __init__(self, plotly_name="family", parent_name="pie.textfont", **kwargs): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -77,15 +63,12 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorsrc', parent_name='pie.textfont', **kwargs - ): + def __init__(self, plotly_name="colorsrc", parent_name="pie.textfont", **kwargs): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -94,15 +77,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='pie.textfont', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="pie.textfont", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pie/title/__init__.py b/packages/python/plotly/plotly/validators/pie/title/__init__.py index a4e12bef7be..25a20736caa 100644 --- a/packages/python/plotly/plotly/validators/pie/title/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/title/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='pie.title', **kwargs): + def __init__(self, plotly_name="text", parent_name="pie.title", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,20 +16,23 @@ def __init__(self, plotly_name='text', parent_name='pie.title', **kwargs): class PositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='position', parent_name='pie.title', **kwargs - ): + def __init__(self, plotly_name="position", parent_name="pie.title", **kwargs): super(PositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'top left', 'top center', 'top right', 'middle center', - 'bottom left', 'bottom center', 'bottom right' - ] + "values", + [ + "top left", + "top center", + "top right", + "middle center", + "bottom left", + "bottom center", + "bottom right", + ], ), **kwargs ) @@ -42,14 +42,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='font', parent_name='pie.title', **kwargs): + def __init__(self, plotly_name="font", parent_name="pie.title", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -79,7 +79,7 @@ def __init__(self, plotly_name='font', parent_name='pie.title', **kwargs): sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pie/title/font/__init__.py b/packages/python/plotly/plotly/validators/pie/title/font/__init__.py index 4e8faec4521..5aaac578edb 100644 --- a/packages/python/plotly/plotly/validators/pie/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/pie/title/font/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='sizesrc', parent_name='pie.title.font', **kwargs - ): + def __init__(self, plotly_name="sizesrc", parent_name="pie.title.font", **kwargs): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,17 +16,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='pie.title.font', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="pie.title.font", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -40,15 +32,12 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='familysrc', parent_name='pie.title.font', **kwargs - ): + def __init__(self, plotly_name="familysrc", parent_name="pie.title.font", **kwargs): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -57,18 +46,15 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='family', parent_name='pie.title.font', **kwargs - ): + def __init__(self, plotly_name="family", parent_name="pie.title.font", **kwargs): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -77,15 +63,12 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorsrc', parent_name='pie.title.font', **kwargs - ): + def __init__(self, plotly_name="colorsrc", parent_name="pie.title.font", **kwargs): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -94,15 +77,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='pie.title.font', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="pie.title.font", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pointcloud/__init__.py b/packages/python/plotly/plotly/validators/pointcloud/__init__.py index 99e66ce8219..1b5e87cb828 100644 --- a/packages/python/plotly/plotly/validators/pointcloud/__init__.py +++ b/packages/python/plotly/plotly/validators/pointcloud/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='pointcloud', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="pointcloud", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,15 +16,12 @@ def __init__(self, plotly_name='ysrc', parent_name='pointcloud', **kwargs): class YboundssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='yboundssrc', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="yboundssrc", parent_name="pointcloud", **kwargs): super(YboundssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -36,15 +30,12 @@ def __init__( class YboundsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='ybounds', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="ybounds", parent_name="pointcloud", **kwargs): super(YboundsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -53,16 +44,13 @@ def __init__( class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='yaxis', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="yaxis", parent_name="pointcloud", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -71,14 +59,13 @@ def __init__( class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='pointcloud', **kwargs): + def __init__(self, plotly_name="y", parent_name="pointcloud", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -87,15 +74,12 @@ def __init__(self, plotly_name='y', parent_name='pointcloud', **kwargs): class XysrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='xysrc', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="xysrc", parent_name="pointcloud", **kwargs): super(XysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -104,13 +88,12 @@ def __init__( class XyValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='xy', parent_name='pointcloud', **kwargs): + def __init__(self, plotly_name="xy", parent_name="pointcloud", **kwargs): super(XyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -119,13 +102,12 @@ def __init__(self, plotly_name='xy', parent_name='pointcloud', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='pointcloud', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="pointcloud", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -134,15 +116,12 @@ def __init__(self, plotly_name='xsrc', parent_name='pointcloud', **kwargs): class XboundssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='xboundssrc', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="xboundssrc", parent_name="pointcloud", **kwargs): super(XboundssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -151,15 +130,12 @@ def __init__( class XboundsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='xbounds', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="xbounds", parent_name="pointcloud", **kwargs): super(XboundsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -168,16 +144,13 @@ def __init__( class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='xaxis', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="xaxis", parent_name="pointcloud", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -186,14 +159,13 @@ def __init__( class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='pointcloud', **kwargs): + def __init__(self, plotly_name="x", parent_name="pointcloud", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -202,16 +174,13 @@ def __init__(self, plotly_name='x', parent_name='pointcloud', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="pointcloud", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -220,15 +189,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="pointcloud", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -237,14 +203,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='pointcloud', **kwargs): + def __init__(self, plotly_name="uid", parent_name="pointcloud", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -253,15 +218,12 @@ def __init__(self, plotly_name='uid', parent_name='pointcloud', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="pointcloud", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -270,14 +232,13 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='pointcloud', **kwargs): + def __init__(self, plotly_name="text", parent_name="pointcloud", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -286,16 +247,14 @@ def __init__(self, plotly_name='text', parent_name='pointcloud', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="pointcloud", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -305,7 +264,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -315,15 +274,12 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="pointcloud", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -332,17 +288,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="pointcloud", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -351,13 +304,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='pointcloud', **kwargs): + def __init__(self, plotly_name="name", parent_name="pointcloud", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -366,15 +318,12 @@ def __init__(self, plotly_name='name', parent_name='pointcloud', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="pointcloud", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -383,14 +332,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='pointcloud', **kwargs): + def __init__(self, plotly_name="meta", parent_name="pointcloud", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -399,16 +347,14 @@ def __init__(self, plotly_name='meta', parent_name='pointcloud', **kwargs): class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="pointcloud", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ blend Determines if colors are blended together for a translucency effect in case `opacity` is @@ -439,7 +385,7 @@ def __init__( Sets the minimum size (in px) of the rendered marker points, effective when the `pointcloud` shows a million or more points. -""" +""", ), **kwargs ) @@ -449,15 +395,12 @@ def __init__( class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='legendgroup', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="legendgroup", parent_name="pointcloud", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -466,15 +409,12 @@ def __init__( class IndicessrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='indicessrc', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="indicessrc", parent_name="pointcloud", **kwargs): super(IndicessrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -483,15 +423,12 @@ def __init__( class IndicesValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='indices', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="indices", parent_name="pointcloud", **kwargs): super(IndicesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -500,15 +437,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="pointcloud", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -517,14 +451,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='pointcloud', **kwargs): + def __init__(self, plotly_name="ids", parent_name="pointcloud", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -533,16 +466,14 @@ def __init__(self, plotly_name='ids', parent_name='pointcloud', **kwargs): class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="pointcloud", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -578,7 +509,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -588,15 +519,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="pointcloud", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -605,18 +533,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="pointcloud", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -625,15 +550,12 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="pointcloud", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -642,14 +564,11 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='pointcloud', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="pointcloud", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pointcloud/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/pointcloud/hoverlabel/__init__.py index 93f91ae2650..f85d5150c1b 100644 --- a/packages/python/plotly/plotly/validators/pointcloud/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/pointcloud/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='pointcloud.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="pointcloud.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='pointcloud.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="pointcloud.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +36,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='pointcloud.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="pointcloud.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -88,7 +75,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -98,18 +85,17 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bordercolorsrc', - parent_name='pointcloud.hoverlabel', + plotly_name="bordercolorsrc", + parent_name="pointcloud.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,19 +104,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='pointcloud.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="pointcloud.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -139,18 +121,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='pointcloud.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="pointcloud.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,19 +137,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='pointcloud.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="pointcloud.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -180,18 +154,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='pointcloud.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="pointcloud.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,19 +170,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='pointcloud.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="pointcloud.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pointcloud/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/pointcloud/hoverlabel/font/__init__.py index 26df2ab8e5e..3f0f71ba80f 100644 --- a/packages/python/plotly/plotly/validators/pointcloud/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/pointcloud/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='pointcloud.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="pointcloud.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='pointcloud.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="pointcloud.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,17 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='familysrc', - parent_name='pointcloud.hoverlabel.font', + plotly_name="familysrc", + parent_name="pointcloud.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +55,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='pointcloud.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="pointcloud.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +74,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='pointcloud.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="pointcloud.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +90,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='pointcloud.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="pointcloud.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pointcloud/marker/__init__.py b/packages/python/plotly/plotly/validators/pointcloud/marker/__init__.py index e860954709d..11150c3fd20 100644 --- a/packages/python/plotly/plotly/validators/pointcloud/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/pointcloud/marker/__init__.py @@ -1,20 +1,17 @@ - - import _plotly_utils.basevalidators class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='sizemin', parent_name='pointcloud.marker', **kwargs + self, plotly_name="sizemin", parent_name="pointcloud.marker", **kwargs ): super(SizeminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 2), - min=kwargs.pop('min', 0.1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 2), + min=kwargs.pop("min", 0.1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,16 +20,15 @@ def __init__( class SizemaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='sizemax', parent_name='pointcloud.marker', **kwargs + self, plotly_name="sizemax", parent_name="pointcloud.marker", **kwargs ): super(SizemaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0.1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0.1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -41,18 +37,17 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='opacity', parent_name='pointcloud.marker', **kwargs + self, plotly_name="opacity", parent_name="pointcloud.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -61,16 +56,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='pointcloud.marker', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="pointcloud.marker", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -79,16 +71,14 @@ def __init__( class BorderValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='border', parent_name='pointcloud.marker', **kwargs - ): + def __init__(self, plotly_name="border", parent_name="pointcloud.marker", **kwargs): super(BorderValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Border'), + data_class_str=kwargs.pop("data_class_str", "Border"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ arearatio Specifies what fraction of the marker area is covered with the border. @@ -97,7 +87,7 @@ def __init__( color. If the color is not fully opaque and there are hundreds of thousands of points, it may cause slower zooming and panning. -""" +""", ), **kwargs ) @@ -107,14 +97,11 @@ def __init__( class BlendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='blend', parent_name='pointcloud.marker', **kwargs - ): + def __init__(self, plotly_name="blend", parent_name="pointcloud.marker", **kwargs): super(BlendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pointcloud/marker/border/__init__.py b/packages/python/plotly/plotly/validators/pointcloud/marker/border/__init__.py index 6526447e98b..6ea1e9bc1da 100644 --- a/packages/python/plotly/plotly/validators/pointcloud/marker/border/__init__.py +++ b/packages/python/plotly/plotly/validators/pointcloud/marker/border/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='pointcloud.marker.border', - **kwargs + self, plotly_name="color", parent_name="pointcloud.marker.border", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,15 @@ def __init__( class ArearatioValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='arearatio', - parent_name='pointcloud.marker.border', - **kwargs + self, plotly_name="arearatio", parent_name="pointcloud.marker.border", **kwargs ): super(ArearatioValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/pointcloud/stream/__init__.py b/packages/python/plotly/plotly/validators/pointcloud/stream/__init__.py index 3873962762e..a2d602f76f2 100644 --- a/packages/python/plotly/plotly/validators/pointcloud/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/pointcloud/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='pointcloud.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="pointcloud.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,19 +18,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='pointcloud.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="pointcloud.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sankey/__init__.py b/packages/python/plotly/plotly/validators/sankey/__init__.py index 76a846f9178..700c3f71730 100644 --- a/packages/python/plotly/plotly/validators/sankey/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/__init__.py @@ -1,17 +1,14 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='sankey', **kwargs): + def __init__(self, plotly_name="visible", parent_name="sankey", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -20,15 +17,12 @@ def __init__(self, plotly_name='visible', parent_name='sankey', **kwargs): class ValuesuffixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='valuesuffix', parent_name='sankey', **kwargs - ): + def __init__(self, plotly_name="valuesuffix", parent_name="sankey", **kwargs): super(ValuesuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -37,15 +31,12 @@ def __init__( class ValueformatValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='valueformat', parent_name='sankey', **kwargs - ): + def __init__(self, plotly_name="valueformat", parent_name="sankey", **kwargs): super(ValueformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -54,15 +45,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='sankey', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="sankey", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -71,14 +59,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='sankey', **kwargs): + def __init__(self, plotly_name="uid", parent_name="sankey", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -87,14 +74,14 @@ def __init__(self, plotly_name='uid', parent_name='sankey', **kwargs): class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='textfont', parent_name='sankey', **kwargs): + def __init__(self, plotly_name="textfont", parent_name="sankey", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -115,7 +102,7 @@ def __init__(self, plotly_name='textfont', parent_name='sankey', **kwargs): Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -125,14 +112,14 @@ def __init__(self, plotly_name='textfont', parent_name='sankey', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='sankey', **kwargs): + def __init__(self, plotly_name="stream", parent_name="sankey", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -142,7 +129,7 @@ def __init__(self, plotly_name='stream', parent_name='sankey', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -152,15 +139,12 @@ def __init__(self, plotly_name='stream', parent_name='sankey', **kwargs): class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='selectedpoints', parent_name='sankey', **kwargs - ): + def __init__(self, plotly_name="selectedpoints", parent_name="sankey", **kwargs): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -169,16 +153,13 @@ def __init__( class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='orientation', parent_name='sankey', **kwargs - ): + def __init__(self, plotly_name="orientation", parent_name="sankey", **kwargs): super(OrientationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['v', 'h']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["v", "h"]), **kwargs ) @@ -187,14 +168,14 @@ def __init__( class NodeValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='node', parent_name='sankey', **kwargs): + def __init__(self, plotly_name="node", parent_name="sankey", **kwargs): super(NodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Node'), + data_class_str=kwargs.pop("data_class_str", "Node"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the `node` color. It can be a single value, or an array for specifying color for @@ -264,7 +245,7 @@ def __init__(self, plotly_name='node', parent_name='sankey', **kwargs): The normalized vertical position of the node. ysrc Sets the source reference on plot.ly for y . -""" +""", ), **kwargs ) @@ -274,13 +255,12 @@ def __init__(self, plotly_name='node', parent_name='sankey', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='sankey', **kwargs): + def __init__(self, plotly_name="name", parent_name="sankey", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -289,13 +269,12 @@ def __init__(self, plotly_name='name', parent_name='sankey', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='sankey', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="sankey", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -304,14 +283,13 @@ def __init__(self, plotly_name='metasrc', parent_name='sankey', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='sankey', **kwargs): + def __init__(self, plotly_name="meta", parent_name="sankey", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -320,14 +298,14 @@ def __init__(self, plotly_name='meta', parent_name='sankey', **kwargs): class LinkValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='link', parent_name='sankey', **kwargs): + def __init__(self, plotly_name="link", parent_name="sankey", **kwargs): super(LinkValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Link'), + data_class_str=kwargs.pop("data_class_str", "Link"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the `link` color. It can be a single value, or an array for specifying color for @@ -405,7 +383,7 @@ def __init__(self, plotly_name='link', parent_name='sankey', **kwargs): valuesrc Sets the source reference on plot.ly for value . -""" +""", ), **kwargs ) @@ -415,13 +393,12 @@ def __init__(self, plotly_name='link', parent_name='sankey', **kwargs): class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='sankey', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="sankey", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -430,14 +407,13 @@ def __init__(self, plotly_name='idssrc', parent_name='sankey', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='sankey', **kwargs): + def __init__(self, plotly_name="ids", parent_name="sankey", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -446,16 +422,14 @@ def __init__(self, plotly_name='ids', parent_name='sankey', **kwargs): class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='sankey', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="sankey", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -491,7 +465,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -501,18 +475,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='sankey', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="sankey", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', []), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", []), + role=kwargs.pop("role", "info"), **kwargs ) @@ -521,14 +492,14 @@ def __init__( class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='domain', parent_name='sankey', **kwargs): + def __init__(self, plotly_name="domain", parent_name="sankey", **kwargs): super(DomainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Domain'), + data_class_str=kwargs.pop("data_class_str", "Domain"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ column If there is a layout grid, use the domain for this column in the grid for this sankey trace . @@ -541,7 +512,7 @@ def __init__(self, plotly_name='domain', parent_name='sankey', **kwargs): y Sets the vertical domain of this sankey trace (in plot fraction). -""" +""", ), **kwargs ) @@ -551,15 +522,12 @@ def __init__(self, plotly_name='domain', parent_name='sankey', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='sankey', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="sankey", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -568,15 +536,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='sankey', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="sankey", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -585,17 +550,12 @@ def __init__( class ArrangementValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='arrangement', parent_name='sankey', **kwargs - ): + def __init__(self, plotly_name="arrangement", parent_name="sankey", **kwargs): super(ArrangementValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['snap', 'perpendicular', 'freeform', 'fixed'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["snap", "perpendicular", "freeform", "fixed"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sankey/domain/__init__.py b/packages/python/plotly/plotly/validators/sankey/domain/__init__.py index 9b96b8c6d4a..e9b80643266 100644 --- a/packages/python/plotly/plotly/validators/sankey/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/domain/__init__.py @@ -1,31 +1,20 @@ - - import _plotly_utils.basevalidators class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__(self, plotly_name='y', parent_name='sankey.domain', **kwargs): + def __init__(self, plotly_name="y", parent_name="sankey.domain", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -34,28 +23,19 @@ def __init__(self, plotly_name='y', parent_name='sankey.domain', **kwargs): class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__(self, plotly_name='x', parent_name='sankey.domain', **kwargs): + def __init__(self, plotly_name="x", parent_name="sankey.domain", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -64,16 +44,13 @@ def __init__(self, plotly_name='x', parent_name='sankey.domain', **kwargs): class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='row', parent_name='sankey.domain', **kwargs - ): + def __init__(self, plotly_name="row", parent_name="sankey.domain", **kwargs): super(RowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -82,15 +59,12 @@ def __init__( class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='column', parent_name='sankey.domain', **kwargs - ): + def __init__(self, plotly_name="column", parent_name="sankey.domain", **kwargs): super(ColumnValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/__init__.py index 4e194ccfaa0..504977413db 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='sankey.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="sankey.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='sankey.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="sankey.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='sankey.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="sankey.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='sankey.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="sankey.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='sankey.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="sankey.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='sankey.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="sankey.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,16 +132,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='bgcolor', parent_name='sankey.hoverlabel', **kwargs + self, plotly_name="bgcolor", parent_name="sankey.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -174,18 +149,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='sankey.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="sankey.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -194,16 +165,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='sankey.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="sankey.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/__init__.py index 2db816a882f..589ca3d170e 100644 --- a/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='sankey.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="sankey.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='sankey.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="sankey.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='sankey.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="sankey.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='sankey.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="sankey.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='sankey.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="sankey.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='sankey.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="sankey.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sankey/link/__init__.py b/packages/python/plotly/plotly/validators/sankey/link/__init__.py index b351eb734b7..d904d0a3c59 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/link/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ValuesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='valuesrc', parent_name='sankey.link', **kwargs - ): + def __init__(self, plotly_name="valuesrc", parent_name="sankey.link", **kwargs): super(ValuesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,15 +16,12 @@ def __init__( class ValueValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='value', parent_name='sankey.link', **kwargs - ): + def __init__(self, plotly_name="value", parent_name="sankey.link", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -38,15 +30,12 @@ def __init__( class TargetsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='targetsrc', parent_name='sankey.link', **kwargs - ): + def __init__(self, plotly_name="targetsrc", parent_name="sankey.link", **kwargs): super(TargetsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -55,15 +44,12 @@ def __init__( class TargetValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='target', parent_name='sankey.link', **kwargs - ): + def __init__(self, plotly_name="target", parent_name="sankey.link", **kwargs): super(TargetValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -72,15 +58,12 @@ def __init__( class SourcesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='sourcesrc', parent_name='sankey.link', **kwargs - ): + def __init__(self, plotly_name="sourcesrc", parent_name="sankey.link", **kwargs): super(SourcesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -89,15 +72,12 @@ def __init__( class SourceValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='source', parent_name='sankey.link', **kwargs - ): + def __init__(self, plotly_name="source", parent_name="sankey.link", **kwargs): super(SourceValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -106,16 +86,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='sankey.link', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="sankey.link", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of the `line` around each `link`. @@ -128,7 +106,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -138,15 +116,12 @@ def __init__( class LabelsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='labelsrc', parent_name='sankey.link', **kwargs - ): + def __init__(self, plotly_name="labelsrc", parent_name="sankey.link", **kwargs): super(LabelsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -155,15 +130,12 @@ def __init__( class LabelValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='label', parent_name='sankey.link', **kwargs - ): + def __init__(self, plotly_name="label", parent_name="sankey.link", **kwargs): super(LabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -172,18 +144,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='sankey.link', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="sankey.link", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -192,16 +160,15 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='hovertemplate', parent_name='sankey.link', **kwargs + self, plotly_name="hovertemplate", parent_name="sankey.link", **kwargs ): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -210,16 +177,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='sankey.link', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="sankey.link", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -255,7 +220,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -265,16 +230,13 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='sankey.link', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="sankey.link", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['all', 'none', 'skip']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["all", "none", "skip"]), **kwargs ) @@ -283,15 +245,12 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorsrc', parent_name='sankey.link', **kwargs - ): + def __init__(self, plotly_name="colorsrc", parent_name="sankey.link", **kwargs): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -300,19 +259,18 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='colorscaledefaults', - parent_name='sankey.link', - **kwargs + self, plotly_name="colorscaledefaults", parent_name="sankey.link", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Colorscale'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Colorscale"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -320,19 +278,15 @@ def __init__( import _plotly_utils.basevalidators -class ColorscalesValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - - def __init__( - self, plotly_name='colorscales', parent_name='sankey.link', **kwargs - ): +class ColorscalesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + def __init__(self, plotly_name="colorscales", parent_name="sankey.link", **kwargs): super(ColorscalesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Colorscale'), + data_class_str=kwargs.pop("data_class_str", "Colorscale"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ cmax Sets the upper bound of the color domain. cmin @@ -375,7 +329,7 @@ def __init__( to hide it). If there is no template or no matching item, this item will be hidden unless you explicitly show it with `visible: true`. -""" +""", ), **kwargs ) @@ -385,15 +339,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='sankey.link', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="sankey.link", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sankey/link/colorscale/__init__.py b/packages/python/plotly/plotly/validators/sankey/link/colorscale/__init__.py index 9618f03f47b..3e4c9797f0b 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/colorscale/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/link/colorscale/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='sankey.link.colorscale', + plotly_name="templateitemname", + parent_name="sankey.link.colorscale", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +21,14 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='name', - parent_name='sankey.link.colorscale', - **kwargs + self, plotly_name="name", parent_name="sankey.link.colorscale", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -44,18 +37,14 @@ def __init__( class LabelValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='label', - parent_name='sankey.link.colorscale', - **kwargs + self, plotly_name="label", parent_name="sankey.link.colorscale", **kwargs ): super(LabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -64,21 +53,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='sankey.link.colorscale', - **kwargs + self, plotly_name="colorscale", parent_name="sankey.link.colorscale", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -87,18 +70,14 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmin', - parent_name='sankey.link.colorscale', - **kwargs + self, plotly_name="cmin", parent_name="sankey.link.colorscale", **kwargs ): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -107,17 +86,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmax', - parent_name='sankey.link.colorscale', - **kwargs + self, plotly_name="cmax", parent_name="sankey.link.colorscale", **kwargs ): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/__init__.py index d9b154aebf5..86822b613b5 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='namelengthsrc', - parent_name='sankey.link.hoverlabel', + plotly_name="namelengthsrc", + parent_name="sankey.link.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +21,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='sankey.link.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="sankey.link.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +39,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='sankey.link.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="sankey.link.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -88,7 +78,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -98,18 +88,17 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bordercolorsrc', - parent_name='sankey.link.hoverlabel', + plotly_name="bordercolorsrc", + parent_name="sankey.link.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,19 +107,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='sankey.link.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="sankey.link.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -139,18 +124,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='sankey.link.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="sankey.link.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,19 +140,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='sankey.link.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="sankey.link.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -180,18 +157,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='sankey.link.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="sankey.link.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,19 +173,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='sankey.link.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="sankey.link.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/__init__.py index 885a0abbacb..8b89e74800a 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/link/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='sankey.link.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="sankey.link.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='sankey.link.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="sankey.link.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,17 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='familysrc', - parent_name='sankey.link.hoverlabel.font', + plotly_name="familysrc", + parent_name="sankey.link.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +55,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='sankey.link.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="sankey.link.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +74,17 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='colorsrc', - parent_name='sankey.link.hoverlabel.font', + plotly_name="colorsrc", + parent_name="sankey.link.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +93,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='sankey.link.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="sankey.link.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sankey/link/line/__init__.py b/packages/python/plotly/plotly/validators/sankey/link/line/__init__.py index 8f25383ccc3..25d80a6fee7 100644 --- a/packages/python/plotly/plotly/validators/sankey/link/line/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/link/line/__init__.py @@ -1,18 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='widthsrc', parent_name='sankey.link.line', **kwargs + self, plotly_name="widthsrc", parent_name="sankey.link.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,17 +18,14 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='sankey.link.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="sankey.link.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -40,15 +34,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='colorsrc', parent_name='sankey.link.line', **kwargs + self, plotly_name="colorsrc", parent_name="sankey.link.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -57,15 +50,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='sankey.link.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="sankey.link.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sankey/node/__init__.py b/packages/python/plotly/plotly/validators/sankey/node/__init__.py index b51d5accdcb..e8fa343c288 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/node/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='ysrc', parent_name='sankey.node', **kwargs - ): + def __init__(self, plotly_name="ysrc", parent_name="sankey.node", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,13 +16,12 @@ def __init__( class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='sankey.node', **kwargs): + def __init__(self, plotly_name="y", parent_name="sankey.node", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -36,15 +30,12 @@ def __init__(self, plotly_name='y', parent_name='sankey.node', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='xsrc', parent_name='sankey.node', **kwargs - ): + def __init__(self, plotly_name="xsrc", parent_name="sankey.node", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -53,13 +44,12 @@ def __init__( class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='sankey.node', **kwargs): + def __init__(self, plotly_name="x", parent_name="sankey.node", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -68,17 +58,14 @@ def __init__(self, plotly_name='x', parent_name='sankey.node', **kwargs): class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='thickness', parent_name='sankey.node', **kwargs - ): + def __init__(self, plotly_name="thickness", parent_name="sankey.node", **kwargs): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -87,15 +74,14 @@ def __init__( class PadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='pad', parent_name='sankey.node', **kwargs): + def __init__(self, plotly_name="pad", parent_name="sankey.node", **kwargs): super(PadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -104,16 +90,14 @@ def __init__(self, plotly_name='pad', parent_name='sankey.node', **kwargs): class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='sankey.node', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="sankey.node", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of the `line` around each `node`. @@ -126,7 +110,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -136,15 +120,12 @@ def __init__( class LabelsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='labelsrc', parent_name='sankey.node', **kwargs - ): + def __init__(self, plotly_name="labelsrc", parent_name="sankey.node", **kwargs): super(LabelsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -153,15 +134,12 @@ def __init__( class LabelValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='label', parent_name='sankey.node', **kwargs - ): + def __init__(self, plotly_name="label", parent_name="sankey.node", **kwargs): super(LabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -170,18 +148,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='sankey.node', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="sankey.node", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -190,16 +164,15 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='hovertemplate', parent_name='sankey.node', **kwargs + self, plotly_name="hovertemplate", parent_name="sankey.node", **kwargs ): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -208,16 +181,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='sankey.node', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="sankey.node", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -253,7 +224,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -263,16 +234,13 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='sankey.node', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="sankey.node", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['all', 'none', 'skip']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["all", "none", "skip"]), **kwargs ) @@ -281,27 +249,16 @@ def __init__( class GroupsValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='groups', parent_name='sankey.node', **kwargs - ): + def __init__(self, plotly_name="groups", parent_name="sankey.node", **kwargs): super(GroupsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dimensions=kwargs.pop('dimensions', 2), - edit_type=kwargs.pop('edit_type', 'calc'), - free_length=kwargs.pop('free_length', True), - implied_edits=kwargs.pop('implied_edits', { - 'x': [], - 'y': [] - }), - items=kwargs.pop( - 'items', { - 'valType': 'number', - 'editType': 'calc' - } - ), - role=kwargs.pop('role', 'info'), + dimensions=kwargs.pop("dimensions", 2), + edit_type=kwargs.pop("edit_type", "calc"), + free_length=kwargs.pop("free_length", True), + implied_edits=kwargs.pop("implied_edits", {"x": [], "y": []}), + items=kwargs.pop("items", {"valType": "number", "editType": "calc"}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -310,15 +267,12 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorsrc', parent_name='sankey.node', **kwargs - ): + def __init__(self, plotly_name="colorsrc", parent_name="sankey.node", **kwargs): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -327,15 +281,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='sankey.node', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="sankey.node", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/__init__.py index b95d6cb589e..72d584c4f2b 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='namelengthsrc', - parent_name='sankey.node.hoverlabel', + plotly_name="namelengthsrc", + parent_name="sankey.node.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +21,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='sankey.node.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="sankey.node.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +39,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='sankey.node.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="sankey.node.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -88,7 +78,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -98,18 +88,17 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bordercolorsrc', - parent_name='sankey.node.hoverlabel', + plotly_name="bordercolorsrc", + parent_name="sankey.node.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,19 +107,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='sankey.node.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="sankey.node.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -139,18 +124,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='sankey.node.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="sankey.node.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,19 +140,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='sankey.node.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="sankey.node.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -180,18 +157,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='sankey.node.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="sankey.node.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,19 +173,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='sankey.node.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="sankey.node.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/__init__.py index 6c7f565fe4f..8326336c023 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/node/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='sankey.node.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="sankey.node.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='sankey.node.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="sankey.node.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,17 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='familysrc', - parent_name='sankey.node.hoverlabel.font', + plotly_name="familysrc", + parent_name="sankey.node.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +55,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='sankey.node.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="sankey.node.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +74,17 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='colorsrc', - parent_name='sankey.node.hoverlabel.font', + plotly_name="colorsrc", + parent_name="sankey.node.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +93,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='sankey.node.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="sankey.node.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sankey/node/line/__init__.py b/packages/python/plotly/plotly/validators/sankey/node/line/__init__.py index 633c379096b..ce800d92688 100644 --- a/packages/python/plotly/plotly/validators/sankey/node/line/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/node/line/__init__.py @@ -1,18 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='widthsrc', parent_name='sankey.node.line', **kwargs + self, plotly_name="widthsrc", parent_name="sankey.node.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,17 +18,14 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='sankey.node.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="sankey.node.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -40,15 +34,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='colorsrc', parent_name='sankey.node.line', **kwargs + self, plotly_name="colorsrc", parent_name="sankey.node.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -57,15 +50,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='sankey.node.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="sankey.node.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sankey/stream/__init__.py b/packages/python/plotly/plotly/validators/sankey/stream/__init__.py index 9f21555fc8a..a0ec7ca36ab 100644 --- a/packages/python/plotly/plotly/validators/sankey/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='sankey.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="sankey.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='sankey.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="sankey.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sankey/textfont/__init__.py b/packages/python/plotly/plotly/validators/sankey/textfont/__init__.py index 5060cb7be77..7a16a4ec501 100644 --- a/packages/python/plotly/plotly/validators/sankey/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/sankey/textfont/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='sankey.textfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="sankey.textfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,17 +17,14 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='family', parent_name='sankey.textfont', **kwargs - ): + def __init__(self, plotly_name="family", parent_name="sankey.textfont", **kwargs): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -41,14 +33,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='sankey.textfont', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="sankey.textfont", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/__init__.py b/packages/python/plotly/plotly/validators/scatter/__init__.py index 87c72dfb4b5..f5a2236b16e 100644 --- a/packages/python/plotly/plotly/validators/scatter/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="scatter", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,22 +16,32 @@ def __init__(self, plotly_name='ysrc', parent_name='scatter', **kwargs): class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ycalendar', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="ycalendar", parent_name="scatter", **kwargs): super(YcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -44,14 +51,13 @@ def __init__( class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='yaxis', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="yaxis", parent_name="scatter", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -60,14 +66,13 @@ def __init__(self, plotly_name='yaxis', parent_name='scatter', **kwargs): class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='y0', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="y0", parent_name="scatter", **kwargs): super(Y0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -76,14 +81,13 @@ def __init__(self, plotly_name='y0', parent_name='scatter', **kwargs): class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="y", parent_name="scatter", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -92,13 +96,12 @@ def __init__(self, plotly_name='y', parent_name='scatter', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="scatter", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -107,22 +110,32 @@ def __init__(self, plotly_name='xsrc', parent_name='scatter', **kwargs): class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xcalendar', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="xcalendar", parent_name="scatter", **kwargs): super(XcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -132,14 +145,13 @@ def __init__( class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='xaxis', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="xaxis", parent_name="scatter", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -148,14 +160,13 @@ def __init__(self, plotly_name='xaxis', parent_name='scatter', **kwargs): class X0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='x0', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="x0", parent_name="scatter", **kwargs): super(X0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -164,14 +175,13 @@ def __init__(self, plotly_name='x0', parent_name='scatter', **kwargs): class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="x", parent_name="scatter", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -180,14 +190,13 @@ def __init__(self, plotly_name='x', parent_name='scatter', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="visible", parent_name="scatter", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -196,23 +205,21 @@ def __init__(self, plotly_name='visible', parent_name='scatter', **kwargs): class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='unselected', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="unselected", parent_name="scatter", **kwargs): super(UnselectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_class_str=kwargs.pop("data_class_str", "Unselected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.scatter.unselected.Marker instance or dict with compatible properties textfont plotly.graph_objs.scatter.unselected.Textfont instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -222,15 +229,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="scatter", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -239,14 +243,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="uid", parent_name="scatter", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -255,13 +258,12 @@ def __init__(self, plotly_name='uid', parent_name='scatter', **kwargs): class TsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='tsrc', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="tsrc", parent_name="scatter", **kwargs): super(TsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -270,13 +272,12 @@ def __init__(self, plotly_name='tsrc', parent_name='scatter', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='textsrc', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="textsrc", parent_name="scatter", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -285,15 +286,12 @@ def __init__(self, plotly_name='textsrc', parent_name='scatter', **kwargs): class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textpositionsrc', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="textpositionsrc", parent_name="scatter", **kwargs): super(TextpositionsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -302,22 +300,26 @@ def __init__( class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='textposition', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="textposition", parent_name="scatter", **kwargs): super(TextpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 'top left', 'top center', 'top right', 'middle left', - 'middle center', 'middle right', 'bottom left', - 'bottom center', 'bottom right' - ] + "values", + [ + "top left", + "top center", + "top right", + "middle left", + "middle center", + "middle right", + "bottom left", + "bottom center", + "bottom right", + ], ), **kwargs ) @@ -327,16 +329,14 @@ def __init__( class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='textfont', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="textfont", parent_name="scatter", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -366,7 +366,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -376,14 +376,13 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="text", parent_name="scatter", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -392,13 +391,12 @@ def __init__(self, plotly_name='text', parent_name='scatter', **kwargs): class TValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='t', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="t", parent_name="scatter", **kwargs): super(TValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -407,14 +405,14 @@ def __init__(self, plotly_name='t', parent_name='scatter', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="stream", parent_name="scatter", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -424,7 +422,7 @@ def __init__(self, plotly_name='stream', parent_name='scatter', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -434,15 +432,12 @@ def __init__(self, plotly_name='stream', parent_name='scatter', **kwargs): class StackgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='stackgroup', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="stackgroup", parent_name="scatter", **kwargs): super(StackgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -451,16 +446,13 @@ def __init__( class StackgapsValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='stackgaps', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="stackgaps", parent_name="scatter", **kwargs): super(StackgapsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['infer zero', 'interpolate']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["infer zero", "interpolate"]), **kwargs ) @@ -469,15 +461,12 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="scatter", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -486,15 +475,12 @@ def __init__( class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='selectedpoints', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="selectedpoints", parent_name="scatter", **kwargs): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -503,23 +489,21 @@ def __init__( class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='selected', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="selected", parent_name="scatter", **kwargs): super(SelectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_class_str=kwargs.pop("data_class_str", "Selected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.scatter.selected.Marker instance or dict with compatible properties textfont plotly.graph_objs.scatter.selected.Textfont instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -529,13 +513,12 @@ def __init__( class RsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='rsrc', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="rsrc", parent_name="scatter", **kwargs): super(RsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -544,13 +527,12 @@ def __init__(self, plotly_name='rsrc', parent_name='scatter', **kwargs): class RValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='r', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="r", parent_name="scatter", **kwargs): super(RValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -559,16 +541,13 @@ def __init__(self, plotly_name='r', parent_name='scatter', **kwargs): class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='orientation', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="orientation", parent_name="scatter", **kwargs): super(OrientationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['v', 'h']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["v", "h"]), **kwargs ) @@ -577,15 +556,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='opacity', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="opacity", parent_name="scatter", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -594,13 +572,12 @@ def __init__(self, plotly_name='opacity', parent_name='scatter', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="name", parent_name="scatter", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -609,15 +586,14 @@ def __init__(self, plotly_name='name', parent_name='scatter', **kwargs): class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__(self, plotly_name='mode', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="mode", parent_name="scatter", **kwargs): super(ModeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['none']), - flags=kwargs.pop('flags', ['lines', 'markers', 'text']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["none"]), + flags=kwargs.pop("flags", ["lines", "markers", "text"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -626,13 +602,12 @@ def __init__(self, plotly_name='mode', parent_name='scatter', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="scatter", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -641,14 +616,13 @@ def __init__(self, plotly_name='metasrc', parent_name='scatter', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="meta", parent_name="scatter", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -657,14 +631,14 @@ def __init__(self, plotly_name='meta', parent_name='scatter', **kwargs): class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='marker', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="marker", parent_name="scatter", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -793,7 +767,7 @@ def __init__(self, plotly_name='marker', parent_name='scatter', **kwargs): symbolsrc Sets the source reference on plot.ly for symbol . -""" +""", ), **kwargs ) @@ -803,14 +777,14 @@ def __init__(self, plotly_name='marker', parent_name='scatter', **kwargs): class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='line', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="line", parent_name="scatter", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the line color. dash @@ -836,7 +810,7 @@ def __init__(self, plotly_name='line', parent_name='scatter', **kwargs): "linear" shape). width Sets the line width (in px). -""" +""", ), **kwargs ) @@ -846,15 +820,12 @@ def __init__(self, plotly_name='line', parent_name='scatter', **kwargs): class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='legendgroup', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="legendgroup", parent_name="scatter", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -863,13 +834,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="scatter", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -878,14 +848,13 @@ def __init__(self, plotly_name='idssrc', parent_name='scatter', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="ids", parent_name="scatter", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -894,15 +863,12 @@ def __init__(self, plotly_name='ids', parent_name='scatter', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="scatter", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -911,16 +877,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="scatter", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -929,15 +892,12 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertemplatesrc', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="hovertemplatesrc", parent_name="scatter", **kwargs): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -946,16 +906,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="scatter", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -964,14 +921,13 @@ def __init__( class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__(self, plotly_name='hoveron', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="hoveron", parent_name="scatter", **kwargs): super(HoveronValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - flags=kwargs.pop('flags', ['points', 'fills']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + flags=kwargs.pop("flags", ["points", "fills"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -980,16 +936,14 @@ def __init__(self, plotly_name='hoveron', parent_name='scatter', **kwargs): class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="scatter", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -1025,7 +979,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -1035,15 +989,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="scatter", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1052,18 +1003,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="scatter", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1072,16 +1020,13 @@ def __init__( class GroupnormValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='groupnorm', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="groupnorm", parent_name="scatter", **kwargs): super(GroupnormValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['', 'fraction', 'percent']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["", "fraction", "percent"]), **kwargs ) @@ -1090,16 +1035,13 @@ def __init__( class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='fillcolor', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="fillcolor", parent_name="scatter", **kwargs): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -1108,18 +1050,23 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='fill', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="fill", parent_name="scatter", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 'none', 'tozeroy', 'tozerox', 'tonexty', 'tonextx', - 'toself', 'tonext' - ] + "values", + [ + "none", + "tozeroy", + "tozerox", + "tonexty", + "tonextx", + "toself", + "tonext", + ], ), **kwargs ) @@ -1129,14 +1076,14 @@ def __init__(self, plotly_name='fill', parent_name='scatter', **kwargs): class ErrorYValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='error_y', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="error_y", parent_name="scatter", **kwargs): super(ErrorYValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ErrorY'), + data_class_str=kwargs.pop("data_class_str", "ErrorY"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ array Sets the data corresponding the length of each error bar. Values are plotted relative to the @@ -1192,7 +1139,7 @@ def __init__(self, plotly_name='error_y', parent_name='scatter', **kwargs): width Sets the width (in px) of the cross-bar at both ends of the error bars. -""" +""", ), **kwargs ) @@ -1202,14 +1149,14 @@ def __init__(self, plotly_name='error_y', parent_name='scatter', **kwargs): class ErrorXValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='error_x', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="error_x", parent_name="scatter", **kwargs): super(ErrorXValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ErrorX'), + data_class_str=kwargs.pop("data_class_str", "ErrorX"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ array Sets the data corresponding the length of each error bar. Values are plotted relative to the @@ -1267,7 +1214,7 @@ def __init__(self, plotly_name='error_x', parent_name='scatter', **kwargs): width Sets the width (in px) of the cross-bar at both ends of the error bars. -""" +""", ), **kwargs ) @@ -1277,14 +1224,13 @@ def __init__(self, plotly_name='error_x', parent_name='scatter', **kwargs): class DyValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dy', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="dy", parent_name="scatter", **kwargs): super(DyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1293,14 +1239,13 @@ def __init__(self, plotly_name='dy', parent_name='scatter', **kwargs): class DxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dx', parent_name='scatter', **kwargs): + def __init__(self, plotly_name="dx", parent_name="scatter", **kwargs): super(DxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1309,15 +1254,12 @@ def __init__(self, plotly_name='dx', parent_name='scatter', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="scatter", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1326,15 +1268,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="scatter", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1343,15 +1282,12 @@ def __init__( class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='connectgaps', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="connectgaps", parent_name="scatter", **kwargs): super(ConnectgapsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1360,14 +1296,11 @@ def __init__( class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cliponaxis', parent_name='scatter', **kwargs - ): + def __init__(self, plotly_name="cliponaxis", parent_name="scatter", **kwargs): super(CliponaxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/error_x/__init__.py b/packages/python/plotly/plotly/validators/scatter/error_x/__init__.py index dec87130b22..3826fd348fa 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_x/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/error_x/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='scatter.error_x', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="scatter.error_x", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,15 +17,12 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='visible', parent_name='scatter.error_x', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="scatter.error_x", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,19 +31,15 @@ def __init__( class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='valueminus', - parent_name='scatter.error_x', - **kwargs + self, plotly_name="valueminus", parent_name="scatter.error_x", **kwargs ): super(ValueminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -60,16 +48,13 @@ def __init__( class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='value', parent_name='scatter.error_x', **kwargs - ): + def __init__(self, plotly_name="value", parent_name="scatter.error_x", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -78,18 +63,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='scatter.error_x', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="scatter.error_x", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['percent', 'constant', 'sqrt', 'data'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs ) @@ -98,19 +78,15 @@ def __init__( class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='tracerefminus', - parent_name='scatter.error_x', - **kwargs + self, plotly_name="tracerefminus", parent_name="scatter.error_x", **kwargs ): super(TracerefminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -119,16 +95,13 @@ def __init__( class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='traceref', parent_name='scatter.error_x', **kwargs - ): + def __init__(self, plotly_name="traceref", parent_name="scatter.error_x", **kwargs): super(TracerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -137,16 +110,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='thickness', parent_name='scatter.error_x', **kwargs + self, plotly_name="thickness", parent_name="scatter.error_x", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -155,15 +127,14 @@ def __init__( class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='symmetric', parent_name='scatter.error_x', **kwargs + self, plotly_name="symmetric", parent_name="scatter.error_x", **kwargs ): super(SymmetricValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -172,18 +143,14 @@ def __init__( class CopyYstyleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='copy_ystyle', - parent_name='scatter.error_x', - **kwargs + self, plotly_name="copy_ystyle", parent_name="scatter.error_x", **kwargs ): super(CopyYstyleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -192,15 +159,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scatter.error_x', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scatter.error_x", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -209,15 +173,12 @@ def __init__( class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='arraysrc', parent_name='scatter.error_x', **kwargs - ): + def __init__(self, plotly_name="arraysrc", parent_name="scatter.error_x", **kwargs): super(ArraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -226,18 +187,14 @@ def __init__( class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='arrayminussrc', - parent_name='scatter.error_x', - **kwargs + self, plotly_name="arrayminussrc", parent_name="scatter.error_x", **kwargs ): super(ArrayminussrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -246,18 +203,14 @@ def __init__( class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='arrayminus', - parent_name='scatter.error_x', - **kwargs + self, plotly_name="arrayminus", parent_name="scatter.error_x", **kwargs ): super(ArrayminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -266,14 +219,11 @@ def __init__( class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='array', parent_name='scatter.error_x', **kwargs - ): + def __init__(self, plotly_name="array", parent_name="scatter.error_x", **kwargs): super(ArrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/error_y/__init__.py b/packages/python/plotly/plotly/validators/scatter/error_y/__init__.py index 1fb0b38f254..96a460cba96 100644 --- a/packages/python/plotly/plotly/validators/scatter/error_y/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/error_y/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='scatter.error_y', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="scatter.error_y", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,15 +17,12 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='visible', parent_name='scatter.error_y', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="scatter.error_y", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,19 +31,15 @@ def __init__( class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='valueminus', - parent_name='scatter.error_y', - **kwargs + self, plotly_name="valueminus", parent_name="scatter.error_y", **kwargs ): super(ValueminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -60,16 +48,13 @@ def __init__( class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='value', parent_name='scatter.error_y', **kwargs - ): + def __init__(self, plotly_name="value", parent_name="scatter.error_y", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -78,18 +63,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='scatter.error_y', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="scatter.error_y", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['percent', 'constant', 'sqrt', 'data'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs ) @@ -98,19 +78,15 @@ def __init__( class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='tracerefminus', - parent_name='scatter.error_y', - **kwargs + self, plotly_name="tracerefminus", parent_name="scatter.error_y", **kwargs ): super(TracerefminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -119,16 +95,13 @@ def __init__( class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='traceref', parent_name='scatter.error_y', **kwargs - ): + def __init__(self, plotly_name="traceref", parent_name="scatter.error_y", **kwargs): super(TracerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -137,16 +110,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='thickness', parent_name='scatter.error_y', **kwargs + self, plotly_name="thickness", parent_name="scatter.error_y", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -155,15 +127,14 @@ def __init__( class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='symmetric', parent_name='scatter.error_y', **kwargs + self, plotly_name="symmetric", parent_name="scatter.error_y", **kwargs ): super(SymmetricValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -172,15 +143,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scatter.error_y', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scatter.error_y", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -189,15 +157,12 @@ def __init__( class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='arraysrc', parent_name='scatter.error_y', **kwargs - ): + def __init__(self, plotly_name="arraysrc", parent_name="scatter.error_y", **kwargs): super(ArraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -206,18 +171,14 @@ def __init__( class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='arrayminussrc', - parent_name='scatter.error_y', - **kwargs + self, plotly_name="arrayminussrc", parent_name="scatter.error_y", **kwargs ): super(ArrayminussrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -226,18 +187,14 @@ def __init__( class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='arrayminus', - parent_name='scatter.error_y', - **kwargs + self, plotly_name="arrayminus", parent_name="scatter.error_y", **kwargs ): super(ArrayminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -246,14 +203,11 @@ def __init__( class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='array', parent_name='scatter.error_y', **kwargs - ): + def __init__(self, plotly_name="array", parent_name="scatter.error_y", **kwargs): super(ArrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/__init__.py index 809bad27172..702f3281318 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='scatter.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="scatter.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='scatter.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="scatter.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='scatter.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="scatter.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='scatter.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="scatter.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='scatter.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="scatter.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='scatter.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="scatter.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,19 +132,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='scatter.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="scatter.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -177,18 +149,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='scatter.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="scatter.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -197,16 +165,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='scatter.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="scatter.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/__init__.py index aaadbb3bb54..fa1cc70aa57 100644 --- a/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='scatter.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="scatter.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scatter.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="scatter.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='scatter.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="scatter.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='scatter.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="scatter.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scatter.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="scatter.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatter.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="scatter.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/line/__init__.py b/packages/python/plotly/plotly/validators/scatter/line/__init__.py index 0038a1a0248..c2ae534c909 100644 --- a/packages/python/plotly/plotly/validators/scatter/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/line/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='scatter.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="scatter.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,17 +18,14 @@ def __init__( class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='smoothing', parent_name='scatter.line', **kwargs - ): + def __init__(self, plotly_name="smoothing", parent_name="scatter.line", **kwargs): super(SmoothingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 1.3), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 1.3), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -42,15 +34,12 @@ def __init__( class SimplifyValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='simplify', parent_name='scatter.line', **kwargs - ): + def __init__(self, plotly_name="simplify", parent_name="scatter.line", **kwargs): super(SimplifyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -59,18 +48,13 @@ def __init__( class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='shape', parent_name='scatter.line', **kwargs - ): + def __init__(self, plotly_name="shape", parent_name="scatter.line", **kwargs): super(ShapeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['linear', 'spline', 'hv', 'vh', 'hvh', 'vhv'] - ), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["linear", "spline", "hv", "vh", "hvh", "vhv"]), **kwargs ) @@ -79,18 +63,14 @@ def __init__( class DashValidator(_plotly_utils.basevalidators.DashValidator): - - def __init__( - self, plotly_name='dash', parent_name='scatter.line', **kwargs - ): + def __init__(self, plotly_name="dash", parent_name="scatter.line", **kwargs): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -100,15 +80,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scatter.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scatter.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/marker/__init__.py b/packages/python/plotly/plotly/validators/scatter/marker/__init__.py index 63c392ac952..0e3f387b565 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='symbolsrc', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="symbolsrc", parent_name="scatter.marker", **kwargs): super(SymbolsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,77 +16,301 @@ def __init__( class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='symbol', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="symbol", parent_name="scatter.marker", **kwargs): super(SymbolValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 0, 'circle', 100, 'circle-open', 200, 'circle-dot', 300, - 'circle-open-dot', 1, 'square', 101, 'square-open', 201, - 'square-dot', 301, 'square-open-dot', 2, 'diamond', 102, - 'diamond-open', 202, 'diamond-dot', 302, - 'diamond-open-dot', 3, 'cross', 103, 'cross-open', 203, - 'cross-dot', 303, 'cross-open-dot', 4, 'x', 104, 'x-open', - 204, 'x-dot', 304, 'x-open-dot', 5, 'triangle-up', 105, - 'triangle-up-open', 205, 'triangle-up-dot', 305, - 'triangle-up-open-dot', 6, 'triangle-down', 106, - 'triangle-down-open', 206, 'triangle-down-dot', 306, - 'triangle-down-open-dot', 7, 'triangle-left', 107, - 'triangle-left-open', 207, 'triangle-left-dot', 307, - 'triangle-left-open-dot', 8, 'triangle-right', 108, - 'triangle-right-open', 208, 'triangle-right-dot', 308, - 'triangle-right-open-dot', 9, 'triangle-ne', 109, - 'triangle-ne-open', 209, 'triangle-ne-dot', 309, - 'triangle-ne-open-dot', 10, 'triangle-se', 110, - 'triangle-se-open', 210, 'triangle-se-dot', 310, - 'triangle-se-open-dot', 11, 'triangle-sw', 111, - 'triangle-sw-open', 211, 'triangle-sw-dot', 311, - 'triangle-sw-open-dot', 12, 'triangle-nw', 112, - 'triangle-nw-open', 212, 'triangle-nw-dot', 312, - 'triangle-nw-open-dot', 13, 'pentagon', 113, - 'pentagon-open', 213, 'pentagon-dot', 313, - 'pentagon-open-dot', 14, 'hexagon', 114, 'hexagon-open', - 214, 'hexagon-dot', 314, 'hexagon-open-dot', 15, - 'hexagon2', 115, 'hexagon2-open', 215, 'hexagon2-dot', 315, - 'hexagon2-open-dot', 16, 'octagon', 116, 'octagon-open', - 216, 'octagon-dot', 316, 'octagon-open-dot', 17, 'star', - 117, 'star-open', 217, 'star-dot', 317, 'star-open-dot', - 18, 'hexagram', 118, 'hexagram-open', 218, 'hexagram-dot', - 318, 'hexagram-open-dot', 19, 'star-triangle-up', 119, - 'star-triangle-up-open', 219, 'star-triangle-up-dot', 319, - 'star-triangle-up-open-dot', 20, 'star-triangle-down', 120, - 'star-triangle-down-open', 220, 'star-triangle-down-dot', - 320, 'star-triangle-down-open-dot', 21, 'star-square', 121, - 'star-square-open', 221, 'star-square-dot', 321, - 'star-square-open-dot', 22, 'star-diamond', 122, - 'star-diamond-open', 222, 'star-diamond-dot', 322, - 'star-diamond-open-dot', 23, 'diamond-tall', 123, - 'diamond-tall-open', 223, 'diamond-tall-dot', 323, - 'diamond-tall-open-dot', 24, 'diamond-wide', 124, - 'diamond-wide-open', 224, 'diamond-wide-dot', 324, - 'diamond-wide-open-dot', 25, 'hourglass', 125, - 'hourglass-open', 26, 'bowtie', 126, 'bowtie-open', 27, - 'circle-cross', 127, 'circle-cross-open', 28, 'circle-x', - 128, 'circle-x-open', 29, 'square-cross', 129, - 'square-cross-open', 30, 'square-x', 130, 'square-x-open', - 31, 'diamond-cross', 131, 'diamond-cross-open', 32, - 'diamond-x', 132, 'diamond-x-open', 33, 'cross-thin', 133, - 'cross-thin-open', 34, 'x-thin', 134, 'x-thin-open', 35, - 'asterisk', 135, 'asterisk-open', 36, 'hash', 136, - 'hash-open', 236, 'hash-dot', 336, 'hash-open-dot', 37, - 'y-up', 137, 'y-up-open', 38, 'y-down', 138, 'y-down-open', - 39, 'y-left', 139, 'y-left-open', 40, 'y-right', 140, - 'y-right-open', 41, 'line-ew', 141, 'line-ew-open', 42, - 'line-ns', 142, 'line-ns-open', 43, 'line-ne', 143, - 'line-ne-open', 44, 'line-nw', 144, 'line-nw-open' - ] + "values", + [ + 0, + "circle", + 100, + "circle-open", + 200, + "circle-dot", + 300, + "circle-open-dot", + 1, + "square", + 101, + "square-open", + 201, + "square-dot", + 301, + "square-open-dot", + 2, + "diamond", + 102, + "diamond-open", + 202, + "diamond-dot", + 302, + "diamond-open-dot", + 3, + "cross", + 103, + "cross-open", + 203, + "cross-dot", + 303, + "cross-open-dot", + 4, + "x", + 104, + "x-open", + 204, + "x-dot", + 304, + "x-open-dot", + 5, + "triangle-up", + 105, + "triangle-up-open", + 205, + "triangle-up-dot", + 305, + "triangle-up-open-dot", + 6, + "triangle-down", + 106, + "triangle-down-open", + 206, + "triangle-down-dot", + 306, + "triangle-down-open-dot", + 7, + "triangle-left", + 107, + "triangle-left-open", + 207, + "triangle-left-dot", + 307, + "triangle-left-open-dot", + 8, + "triangle-right", + 108, + "triangle-right-open", + 208, + "triangle-right-dot", + 308, + "triangle-right-open-dot", + 9, + "triangle-ne", + 109, + "triangle-ne-open", + 209, + "triangle-ne-dot", + 309, + "triangle-ne-open-dot", + 10, + "triangle-se", + 110, + "triangle-se-open", + 210, + "triangle-se-dot", + 310, + "triangle-se-open-dot", + 11, + "triangle-sw", + 111, + "triangle-sw-open", + 211, + "triangle-sw-dot", + 311, + "triangle-sw-open-dot", + 12, + "triangle-nw", + 112, + "triangle-nw-open", + 212, + "triangle-nw-dot", + 312, + "triangle-nw-open-dot", + 13, + "pentagon", + 113, + "pentagon-open", + 213, + "pentagon-dot", + 313, + "pentagon-open-dot", + 14, + "hexagon", + 114, + "hexagon-open", + 214, + "hexagon-dot", + 314, + "hexagon-open-dot", + 15, + "hexagon2", + 115, + "hexagon2-open", + 215, + "hexagon2-dot", + 315, + "hexagon2-open-dot", + 16, + "octagon", + 116, + "octagon-open", + 216, + "octagon-dot", + 316, + "octagon-open-dot", + 17, + "star", + 117, + "star-open", + 217, + "star-dot", + 317, + "star-open-dot", + 18, + "hexagram", + 118, + "hexagram-open", + 218, + "hexagram-dot", + 318, + "hexagram-open-dot", + 19, + "star-triangle-up", + 119, + "star-triangle-up-open", + 219, + "star-triangle-up-dot", + 319, + "star-triangle-up-open-dot", + 20, + "star-triangle-down", + 120, + "star-triangle-down-open", + 220, + "star-triangle-down-dot", + 320, + "star-triangle-down-open-dot", + 21, + "star-square", + 121, + "star-square-open", + 221, + "star-square-dot", + 321, + "star-square-open-dot", + 22, + "star-diamond", + 122, + "star-diamond-open", + 222, + "star-diamond-dot", + 322, + "star-diamond-open-dot", + 23, + "diamond-tall", + 123, + "diamond-tall-open", + 223, + "diamond-tall-dot", + 323, + "diamond-tall-open-dot", + 24, + "diamond-wide", + 124, + "diamond-wide-open", + 224, + "diamond-wide-dot", + 324, + "diamond-wide-open-dot", + 25, + "hourglass", + 125, + "hourglass-open", + 26, + "bowtie", + 126, + "bowtie-open", + 27, + "circle-cross", + 127, + "circle-cross-open", + 28, + "circle-x", + 128, + "circle-x-open", + 29, + "square-cross", + 129, + "square-cross-open", + 30, + "square-x", + 130, + "square-x-open", + 31, + "diamond-cross", + 131, + "diamond-cross-open", + 32, + "diamond-x", + 132, + "diamond-x-open", + 33, + "cross-thin", + 133, + "cross-thin-open", + 34, + "x-thin", + 134, + "x-thin-open", + 35, + "asterisk", + 135, + "asterisk-open", + 36, + "hash", + 136, + "hash-open", + 236, + "hash-dot", + 336, + "hash-open-dot", + 37, + "y-up", + 137, + "y-up-open", + 38, + "y-down", + 138, + "y-down-open", + 39, + "y-left", + 139, + "y-left-open", + 40, + "y-right", + 140, + "y-right-open", + 41, + "line-ew", + 141, + "line-ew-open", + 42, + "line-ns", + 142, + "line-ns-open", + 43, + "line-ne", + 143, + "line-ne-open", + 44, + "line-nw", + 144, + "line-nw-open", + ], ), **kwargs ) @@ -101,15 +320,12 @@ def __init__( class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='sizesrc', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="sizesrc", parent_name="scatter.marker", **kwargs): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,15 +334,12 @@ def __init__( class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='sizeref', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="sizeref", parent_name="scatter.marker", **kwargs): super(SizerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -135,16 +348,13 @@ def __init__( class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='sizemode', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="sizemode", parent_name="scatter.marker", **kwargs): super(SizemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['diameter', 'area']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["diameter", "area"]), **kwargs ) @@ -153,16 +363,13 @@ def __init__( class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='sizemin', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="sizemin", parent_name="scatter.marker", **kwargs): super(SizeminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -171,18 +378,15 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="scatter.marker", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -191,15 +395,12 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="scatter.marker", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -208,18 +409,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='scatter.marker', - **kwargs + self, plotly_name="reversescale", parent_name="scatter.marker", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -228,15 +425,14 @@ def __init__( class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='opacitysrc', parent_name='scatter.marker', **kwargs + self, plotly_name="opacitysrc", parent_name="scatter.marker", **kwargs ): super(OpacitysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -245,19 +441,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="scatter.marker", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -266,19 +459,15 @@ def __init__( class MaxdisplayedValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxdisplayed', - parent_name='scatter.marker', - **kwargs + self, plotly_name="maxdisplayed", parent_name="scatter.marker", **kwargs ): super(MaxdisplayedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -287,16 +476,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="scatter.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -385,7 +572,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -395,16 +582,14 @@ def __init__( class GradientValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='gradient', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="gradient", parent_name="scatter.marker", **kwargs): super(GradientValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Gradient'), + data_class_str=kwargs.pop("data_class_str", "Gradient"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the final color of the gradient fill: the center color for radial, the right for @@ -418,7 +603,7 @@ def __init__( typesrc Sets the source reference on plot.ly for type . -""" +""", ), **kwargs ) @@ -428,15 +613,12 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorsrc', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="colorsrc", parent_name="scatter.marker", **kwargs): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -445,18 +627,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name='colorscale', parent_name='scatter.marker', **kwargs + self, plotly_name="colorscale", parent_name="scatter.marker", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -465,16 +644,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorbar', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="colorbar", parent_name="scatter.marker", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -685,7 +862,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -695,17 +872,14 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="scatter.marker", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -714,20 +888,15 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scatter.marker", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), - colorscale_path=kwargs.pop( - 'colorscale_path', 'scatter.marker.colorscale' - ), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), + colorscale_path=kwargs.pop("colorscale_path", "scatter.marker.colorscale"), **kwargs ) @@ -736,16 +905,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmin', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="cmin", parent_name="scatter.marker", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -754,16 +920,13 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmid', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="cmid", parent_name="scatter.marker", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -772,16 +935,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmax', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="cmax", parent_name="scatter.marker", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -790,16 +950,13 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='scatter.marker', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="scatter.marker", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -808,18 +965,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='scatter.marker', - **kwargs + self, plotly_name="autocolorscale", parent_name="scatter.marker", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/__init__.py index 36225683f9d..1b3041cd99e 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="scatter.marker.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="scatter.marker.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,17 +36,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='y', parent_name='scatter.marker.colorbar', **kwargs + self, plotly_name="y", parent_name="scatter.marker.colorbar", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -65,19 +54,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="scatter.marker.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -86,19 +71,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="scatter.marker.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -107,17 +88,16 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='x', parent_name='scatter.marker.colorbar', **kwargs + self, plotly_name="x", parent_name="scatter.marker.colorbar", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -126,19 +106,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="title", parent_name="scatter.marker.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -154,7 +131,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -164,19 +141,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="scatter.marker.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -185,18 +158,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="scatter.marker.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -205,18 +174,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="scatter.marker.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -225,18 +190,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="scatter.marker.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -245,18 +206,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="scatter.marker.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -265,18 +222,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="scatter.marker.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -285,19 +238,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="scatter.marker.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -306,18 +255,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="scatter.marker.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -326,20 +271,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="scatter.marker.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -348,19 +289,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="scatter.marker.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -369,19 +306,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='scatter.marker.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="scatter.marker.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -389,22 +328,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='scatter.marker.colorbar', + plotly_name="tickformatstops", + parent_name="scatter.marker.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -438,7 +375,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -448,18 +385,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="scatter.marker.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -468,19 +401,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="scatter.marker.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -501,7 +431,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -511,18 +441,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="scatter.marker.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -531,18 +457,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="scatter.marker.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -551,19 +473,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="scatter.marker.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -572,19 +490,18 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='thicknessmode', - parent_name='scatter.marker.colorbar', + plotly_name="thicknessmode", + parent_name="scatter.marker.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -593,19 +510,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="scatter.marker.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -613,22 +526,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='scatter.marker.colorbar', + plotly_name="showticksuffix", + parent_name="scatter.marker.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -636,22 +546,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='scatter.marker.colorbar', + plotly_name="showtickprefix", + parent_name="scatter.marker.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -660,18 +567,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='scatter.marker.colorbar', + plotly_name="showticklabels", + parent_name="scatter.marker.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -680,19 +586,18 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='showexponent', - parent_name='scatter.marker.colorbar', + plotly_name="showexponent", + parent_name="scatter.marker.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -700,21 +605,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='scatter.marker.colorbar', + plotly_name="separatethousands", + parent_name="scatter.marker.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -723,19 +625,18 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='outlinewidth', - parent_name='scatter.marker.colorbar', + plotly_name="outlinewidth", + parent_name="scatter.marker.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -744,18 +645,17 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='outlinecolor', - parent_name='scatter.marker.colorbar', + plotly_name="outlinecolor", + parent_name="scatter.marker.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -764,19 +664,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="scatter.marker.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -785,19 +681,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="scatter.marker.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -806,19 +698,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='len', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="len", parent_name="scatter.marker.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -826,24 +714,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='scatter.marker.colorbar', + plotly_name="exponentformat", + parent_name="scatter.marker.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -852,19 +735,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="scatter.marker.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -873,19 +752,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="scatter.marker.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -894,18 +769,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="scatter.marker.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -914,17 +785,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='scatter.marker.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="scatter.marker.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/__init__.py index 8f9f59d0e5c..7b1cb5c6752 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scatter.marker.colorbar.tickfont', + plotly_name="size", + parent_name="scatter.marker.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scatter.marker.colorbar.tickfont', + plotly_name="family", + parent_name="scatter.marker.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatter.marker.colorbar.tickfont', + plotly_name="color", + parent_name="scatter.marker.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/__init__.py index 8412120b773..a11d0efbcbf 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='scatter.marker.colorbar.tickformatstop', + plotly_name="value", + parent_name="scatter.marker.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='scatter.marker.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="scatter.marker.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='scatter.marker.colorbar.tickformatstop', + plotly_name="name", + parent_name="scatter.marker.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='scatter.marker.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="scatter.marker.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='scatter.marker.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="scatter.marker.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/__init__.py index 84d95ca69ea..0b934ecd12a 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='scatter.marker.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="scatter.marker.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='scatter.marker.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="scatter.marker.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='scatter.marker.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="scatter.marker.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/__init__.py index 5defd932647..b64e59421aa 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scatter.marker.colorbar.title.font', + plotly_name="size", + parent_name="scatter.marker.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scatter.marker.colorbar.title.font', + plotly_name="family", + parent_name="scatter.marker.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatter.marker.colorbar.title.font', + plotly_name="color", + parent_name="scatter.marker.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/marker/gradient/__init__.py b/packages/python/plotly/plotly/validators/scatter/marker/gradient/__init__.py index 2af18f5535a..0abbb748897 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/gradient/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/gradient/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TypesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='typesrc', - parent_name='scatter.marker.gradient', - **kwargs + self, plotly_name="typesrc", parent_name="scatter.marker.gradient", **kwargs ): super(TypesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,22 +18,16 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='type', - parent_name='scatter.marker.gradient', - **kwargs + self, plotly_name="type", parent_name="scatter.marker.gradient", **kwargs ): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['radial', 'horizontal', 'vertical', 'none'] - ), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["radial", "horizontal", "vertical", "none"]), **kwargs ) @@ -48,18 +36,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scatter.marker.gradient', - **kwargs + self, plotly_name="colorsrc", parent_name="scatter.marker.gradient", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -68,18 +52,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatter.marker.gradient', - **kwargs + self, plotly_name="color", parent_name="scatter.marker.gradient", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/marker/line/__init__.py b/packages/python/plotly/plotly/validators/scatter/marker/line/__init__.py index e0a88cfeb66..165609fdd55 100644 --- a/packages/python/plotly/plotly/validators/scatter/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/marker/line/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='widthsrc', - parent_name='scatter.marker.line', - **kwargs + self, plotly_name="widthsrc", parent_name="scatter.marker.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +18,17 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='width', parent_name='scatter.marker.line', **kwargs + self, plotly_name="width", parent_name="scatter.marker.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -44,18 +37,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='scatter.marker.line', - **kwargs + self, plotly_name="reversescale", parent_name="scatter.marker.line", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +53,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scatter.marker.line', - **kwargs + self, plotly_name="colorsrc", parent_name="scatter.marker.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,21 +69,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='scatter.marker.line', - **kwargs + self, plotly_name="colorscale", parent_name="scatter.marker.line", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -107,20 +86,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='scatter.marker.line', - **kwargs + self, plotly_name="coloraxis", parent_name="scatter.marker.line", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -129,19 +104,18 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='color', parent_name='scatter.marker.line', **kwargs + self, plotly_name="color", parent_name="scatter.marker.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'scatter.marker.line.colorscale' + "colorscale_path", "scatter.marker.line.colorscale" ), **kwargs ) @@ -151,16 +125,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmin', parent_name='scatter.marker.line', **kwargs - ): + def __init__(self, plotly_name="cmin", parent_name="scatter.marker.line", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -169,16 +140,13 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmid', parent_name='scatter.marker.line', **kwargs - ): + def __init__(self, plotly_name="cmid", parent_name="scatter.marker.line", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -187,16 +155,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmax', parent_name='scatter.marker.line', **kwargs - ): + def __init__(self, plotly_name="cmax", parent_name="scatter.marker.line", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -205,16 +170,15 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='cauto', parent_name='scatter.marker.line', **kwargs + self, plotly_name="cauto", parent_name="scatter.marker.line", **kwargs ): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -223,18 +187,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='scatter.marker.line', - **kwargs + self, plotly_name="autocolorscale", parent_name="scatter.marker.line", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/selected/__init__.py b/packages/python/plotly/plotly/validators/scatter/selected/__init__.py index 9aae1a468b3..b311d8e20e2 100644 --- a/packages/python/plotly/plotly/validators/scatter/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/selected/__init__.py @@ -1,22 +1,20 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='textfont', parent_name='scatter.selected', **kwargs + self, plotly_name="textfont", parent_name="scatter.selected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of selected points. -""" +""", ), **kwargs ) @@ -26,23 +24,21 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='scatter.selected', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="scatter.selected", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of selected points. opacity Sets the marker opacity of selected points. size Sets the marker size of selected points. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scatter/selected/marker/__init__.py index bb82debe6c3..d380b28dbc9 100644 --- a/packages/python/plotly/plotly/validators/scatter/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/selected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scatter.selected.marker', - **kwargs + self, plotly_name="size", parent_name="scatter.selected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='scatter.selected.marker', - **kwargs + self, plotly_name="opacity", parent_name="scatter.selected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatter.selected.marker', - **kwargs + self, plotly_name="color", parent_name="scatter.selected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatter/selected/textfont/__init__.py index 2bc508eef73..d7a15fa0e68 100644 --- a/packages/python/plotly/plotly/validators/scatter/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/selected/textfont/__init__.py @@ -1,20 +1,14 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatter.selected.textfont', - **kwargs + self, plotly_name="color", parent_name="scatter.selected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/stream/__init__.py b/packages/python/plotly/plotly/validators/scatter/stream/__init__.py index 6688d9926e8..f4498ee0a57 100644 --- a/packages/python/plotly/plotly/validators/scatter/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='scatter.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="scatter.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='scatter.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="scatter.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatter/textfont/__init__.py index 0a7e8832520..bef62ee6e67 100644 --- a/packages/python/plotly/plotly/validators/scatter/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/textfont/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='sizesrc', parent_name='scatter.textfont', **kwargs - ): + def __init__(self, plotly_name="sizesrc", parent_name="scatter.textfont", **kwargs): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,17 +16,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='scatter.textfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="scatter.textfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -40,18 +32,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='scatter.textfont', - **kwargs + self, plotly_name="familysrc", parent_name="scatter.textfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -60,18 +48,15 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='family', parent_name='scatter.textfont', **kwargs - ): + def __init__(self, plotly_name="family", parent_name="scatter.textfont", **kwargs): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -80,15 +65,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='colorsrc', parent_name='scatter.textfont', **kwargs + self, plotly_name="colorsrc", parent_name="scatter.textfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -97,15 +81,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scatter.textfont', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scatter.textfont", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/unselected/__init__.py b/packages/python/plotly/plotly/validators/scatter/unselected/__init__.py index e0fac5c25c8..cbf056b44bd 100644 --- a/packages/python/plotly/plotly/validators/scatter/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/unselected/__init__.py @@ -1,26 +1,21 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='scatter.unselected', - **kwargs + self, plotly_name="textfont", parent_name="scatter.unselected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) @@ -30,16 +25,16 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='marker', parent_name='scatter.unselected', **kwargs + self, plotly_name="marker", parent_name="scatter.unselected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of unselected points, applied only when a selection exists. @@ -49,7 +44,7 @@ def __init__( size Sets the marker size of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scatter/unselected/marker/__init__.py index 8b04f377ec2..db49ab40a86 100644 --- a/packages/python/plotly/plotly/validators/scatter/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/unselected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scatter.unselected.marker', - **kwargs + self, plotly_name="size", parent_name="scatter.unselected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='scatter.unselected.marker', - **kwargs + self, plotly_name="opacity", parent_name="scatter.unselected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatter.unselected.marker', - **kwargs + self, plotly_name="color", parent_name="scatter.unselected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatter/unselected/textfont/__init__.py index ad68fc3b0a1..6daeae64df5 100644 --- a/packages/python/plotly/plotly/validators/scatter/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter/unselected/textfont/__init__.py @@ -1,20 +1,14 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatter.unselected.textfont', - **kwargs + self, plotly_name="color", parent_name="scatter.unselected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/__init__.py index d121553b2b5..d0194c0d3c8 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='zsrc', parent_name='scatter3d', **kwargs): + def __init__(self, plotly_name="zsrc", parent_name="scatter3d", **kwargs): super(ZsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,22 +16,32 @@ def __init__(self, plotly_name='zsrc', parent_name='scatter3d', **kwargs): class ZcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='zcalendar', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="zcalendar", parent_name="scatter3d", **kwargs): super(ZcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -44,13 +51,12 @@ def __init__( class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='z', parent_name='scatter3d', **kwargs): + def __init__(self, plotly_name="z", parent_name="scatter3d", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -59,13 +65,12 @@ def __init__(self, plotly_name='z', parent_name='scatter3d', **kwargs): class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='scatter3d', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="scatter3d", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -74,22 +79,32 @@ def __init__(self, plotly_name='ysrc', parent_name='scatter3d', **kwargs): class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ycalendar', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="ycalendar", parent_name="scatter3d", **kwargs): super(YcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -99,14 +114,13 @@ def __init__( class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='scatter3d', **kwargs): + def __init__(self, plotly_name="y", parent_name="scatter3d", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -115,13 +129,12 @@ def __init__(self, plotly_name='y', parent_name='scatter3d', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='scatter3d', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="scatter3d", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -130,22 +143,32 @@ def __init__(self, plotly_name='xsrc', parent_name='scatter3d', **kwargs): class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xcalendar', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="xcalendar", parent_name="scatter3d", **kwargs): super(XcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -155,14 +178,13 @@ def __init__( class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='scatter3d', **kwargs): + def __init__(self, plotly_name="x", parent_name="scatter3d", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -171,16 +193,13 @@ def __init__(self, plotly_name='x', parent_name='scatter3d', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="scatter3d", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -189,15 +208,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="scatter3d", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -206,14 +222,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='scatter3d', **kwargs): + def __init__(self, plotly_name="uid", parent_name="scatter3d", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -222,15 +237,12 @@ def __init__(self, plotly_name='uid', parent_name='scatter3d', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="scatter3d", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -239,15 +251,14 @@ def __init__( class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='textpositionsrc', parent_name='scatter3d', **kwargs + self, plotly_name="textpositionsrc", parent_name="scatter3d", **kwargs ): super(TextpositionsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -256,22 +267,26 @@ def __init__( class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='textposition', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="textposition", parent_name="scatter3d", **kwargs): super(TextpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 'top left', 'top center', 'top right', 'middle left', - 'middle center', 'middle right', 'bottom left', - 'bottom center', 'bottom right' - ] + "values", + [ + "top left", + "top center", + "top right", + "middle left", + "middle center", + "middle right", + "bottom left", + "bottom center", + "bottom right", + ], ), **kwargs ) @@ -281,16 +296,14 @@ def __init__( class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='textfont', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="textfont", parent_name="scatter3d", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -317,7 +330,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -327,14 +340,13 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='scatter3d', **kwargs): + def __init__(self, plotly_name="text", parent_name="scatter3d", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -343,15 +355,12 @@ def __init__(self, plotly_name='text', parent_name='scatter3d', **kwargs): class SurfacecolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='surfacecolor', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="surfacecolor", parent_name="scatter3d", **kwargs): super(SurfacecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -360,16 +369,13 @@ def __init__( class SurfaceaxisValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='surfaceaxis', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="surfaceaxis", parent_name="scatter3d", **kwargs): super(SurfaceaxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [-1, 0, 1, 2]), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [-1, 0, 1, 2]), **kwargs ) @@ -378,16 +384,14 @@ def __init__( class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="scatter3d", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -397,7 +401,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -407,15 +411,12 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="scatter3d", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -424,14 +425,13 @@ def __init__( class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='scene', parent_name='scatter3d', **kwargs): + def __init__(self, plotly_name="scene", parent_name="scatter3d", **kwargs): super(SceneValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'scene'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "scene"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -440,16 +440,14 @@ def __init__(self, plotly_name='scene', parent_name='scatter3d', **kwargs): class ProjectionValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='projection', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="projection", parent_name="scatter3d", **kwargs): super(ProjectionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Projection'), + data_class_str=kwargs.pop("data_class_str", "Projection"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x plotly.graph_objs.scatter3d.projection.X instance or dict with compatible properties @@ -459,7 +457,7 @@ def __init__( z plotly.graph_objs.scatter3d.projection.Z instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -469,17 +467,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="scatter3d", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -488,13 +483,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='scatter3d', **kwargs): + def __init__(self, plotly_name="name", parent_name="scatter3d", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -503,15 +497,14 @@ def __init__(self, plotly_name='name', parent_name='scatter3d', **kwargs): class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__(self, plotly_name='mode', parent_name='scatter3d', **kwargs): + def __init__(self, plotly_name="mode", parent_name="scatter3d", **kwargs): super(ModeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['none']), - flags=kwargs.pop('flags', ['lines', 'markers', 'text']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["none"]), + flags=kwargs.pop("flags", ["lines", "markers", "text"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -520,15 +513,12 @@ def __init__(self, plotly_name='mode', parent_name='scatter3d', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="scatter3d", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -537,14 +527,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='scatter3d', **kwargs): + def __init__(self, plotly_name="meta", parent_name="scatter3d", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -553,16 +542,14 @@ def __init__(self, plotly_name='meta', parent_name='scatter3d', **kwargs): class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="scatter3d", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -682,7 +669,7 @@ def __init__( symbolsrc Sets the source reference on plot.ly for symbol . -""" +""", ), **kwargs ) @@ -692,14 +679,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='line', parent_name='scatter3d', **kwargs): + def __init__(self, plotly_name="line", parent_name="scatter3d", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -789,7 +776,7 @@ def __init__(self, plotly_name='line', parent_name='scatter3d', **kwargs): in `line.color`is set to a numerical array. width Sets the line width (in px). -""" +""", ), **kwargs ) @@ -799,15 +786,12 @@ def __init__(self, plotly_name='line', parent_name='scatter3d', **kwargs): class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='legendgroup', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="legendgroup", parent_name="scatter3d", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -816,15 +800,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="scatter3d", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -833,14 +814,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='scatter3d', **kwargs): + def __init__(self, plotly_name="ids", parent_name="scatter3d", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -849,15 +829,12 @@ def __init__(self, plotly_name='ids', parent_name='scatter3d', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="scatter3d", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -866,16 +843,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="scatter3d", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -884,18 +858,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='scatter3d', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="scatter3d", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -904,16 +874,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="scatter3d", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -922,16 +889,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="scatter3d", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -967,7 +932,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -977,15 +942,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="scatter3d", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -994,18 +956,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="scatter3d", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1014,16 +973,14 @@ def __init__( class ErrorZValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='error_z', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="error_z", parent_name="scatter3d", **kwargs): super(ErrorZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ErrorZ'), + data_class_str=kwargs.pop("data_class_str", "ErrorZ"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ array Sets the data corresponding the length of each error bar. Values are plotted relative to the @@ -1079,7 +1036,7 @@ def __init__( width Sets the width (in px) of the cross-bar at both ends of the error bars. -""" +""", ), **kwargs ) @@ -1089,16 +1046,14 @@ def __init__( class ErrorYValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='error_y', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="error_y", parent_name="scatter3d", **kwargs): super(ErrorYValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ErrorY'), + data_class_str=kwargs.pop("data_class_str", "ErrorY"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ array Sets the data corresponding the length of each error bar. Values are plotted relative to the @@ -1156,7 +1111,7 @@ def __init__( width Sets the width (in px) of the cross-bar at both ends of the error bars. -""" +""", ), **kwargs ) @@ -1166,16 +1121,14 @@ def __init__( class ErrorXValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='error_x', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="error_x", parent_name="scatter3d", **kwargs): super(ErrorXValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ErrorX'), + data_class_str=kwargs.pop("data_class_str", "ErrorX"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ array Sets the data corresponding the length of each error bar. Values are plotted relative to the @@ -1233,7 +1186,7 @@ def __init__( width Sets the width (in px) of the cross-bar at both ends of the error bars. -""" +""", ), **kwargs ) @@ -1243,15 +1196,12 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="scatter3d", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1260,15 +1210,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="scatter3d", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1277,14 +1224,11 @@ def __init__( class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='connectgaps', parent_name='scatter3d', **kwargs - ): + def __init__(self, plotly_name="connectgaps", parent_name="scatter3d", **kwargs): super(ConnectgapsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_x/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/error_x/__init__.py index 25d508c75fd..ab0ca6cc4ff 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_x/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_x/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='scatter3d.error_x', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="scatter3d.error_x", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,15 +17,14 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='visible', parent_name='scatter3d.error_x', **kwargs + self, plotly_name="visible", parent_name="scatter3d.error_x", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,19 +33,15 @@ def __init__( class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='valueminus', - parent_name='scatter3d.error_x', - **kwargs + self, plotly_name="valueminus", parent_name="scatter3d.error_x", **kwargs ): super(ValueminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -60,16 +50,13 @@ def __init__( class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='value', parent_name='scatter3d.error_x', **kwargs - ): + def __init__(self, plotly_name="value", parent_name="scatter3d.error_x", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -78,18 +65,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='scatter3d.error_x', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="scatter3d.error_x", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['percent', 'constant', 'sqrt', 'data'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs ) @@ -98,19 +80,15 @@ def __init__( class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='tracerefminus', - parent_name='scatter3d.error_x', - **kwargs + self, plotly_name="tracerefminus", parent_name="scatter3d.error_x", **kwargs ): super(TracerefminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -119,19 +97,15 @@ def __init__( class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='traceref', - parent_name='scatter3d.error_x', - **kwargs + self, plotly_name="traceref", parent_name="scatter3d.error_x", **kwargs ): super(TracerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -140,19 +114,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='scatter3d.error_x', - **kwargs + self, plotly_name="thickness", parent_name="scatter3d.error_x", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -161,18 +131,14 @@ def __init__( class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='symmetric', - parent_name='scatter3d.error_x', - **kwargs + self, plotly_name="symmetric", parent_name="scatter3d.error_x", **kwargs ): super(SymmetricValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -181,18 +147,14 @@ def __init__( class CopyZstyleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='copy_zstyle', - parent_name='scatter3d.error_x', - **kwargs + self, plotly_name="copy_zstyle", parent_name="scatter3d.error_x", **kwargs ): super(CopyZstyleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -201,15 +163,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scatter3d.error_x', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scatter3d.error_x", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -218,18 +177,14 @@ def __init__( class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='arraysrc', - parent_name='scatter3d.error_x', - **kwargs + self, plotly_name="arraysrc", parent_name="scatter3d.error_x", **kwargs ): super(ArraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -238,18 +193,14 @@ def __init__( class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='arrayminussrc', - parent_name='scatter3d.error_x', - **kwargs + self, plotly_name="arrayminussrc", parent_name="scatter3d.error_x", **kwargs ): super(ArrayminussrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -258,18 +209,14 @@ def __init__( class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='arrayminus', - parent_name='scatter3d.error_x', - **kwargs + self, plotly_name="arrayminus", parent_name="scatter3d.error_x", **kwargs ): super(ArrayminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -278,14 +225,11 @@ def __init__( class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='array', parent_name='scatter3d.error_x', **kwargs - ): + def __init__(self, plotly_name="array", parent_name="scatter3d.error_x", **kwargs): super(ArrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_y/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/error_y/__init__.py index aa3e90f9575..d9ca5428436 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_y/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_y/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='scatter3d.error_y', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="scatter3d.error_y", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,15 +17,14 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='visible', parent_name='scatter3d.error_y', **kwargs + self, plotly_name="visible", parent_name="scatter3d.error_y", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,19 +33,15 @@ def __init__( class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='valueminus', - parent_name='scatter3d.error_y', - **kwargs + self, plotly_name="valueminus", parent_name="scatter3d.error_y", **kwargs ): super(ValueminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -60,16 +50,13 @@ def __init__( class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='value', parent_name='scatter3d.error_y', **kwargs - ): + def __init__(self, plotly_name="value", parent_name="scatter3d.error_y", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -78,18 +65,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='scatter3d.error_y', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="scatter3d.error_y", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['percent', 'constant', 'sqrt', 'data'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs ) @@ -98,19 +80,15 @@ def __init__( class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='tracerefminus', - parent_name='scatter3d.error_y', - **kwargs + self, plotly_name="tracerefminus", parent_name="scatter3d.error_y", **kwargs ): super(TracerefminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -119,19 +97,15 @@ def __init__( class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='traceref', - parent_name='scatter3d.error_y', - **kwargs + self, plotly_name="traceref", parent_name="scatter3d.error_y", **kwargs ): super(TracerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -140,19 +114,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='scatter3d.error_y', - **kwargs + self, plotly_name="thickness", parent_name="scatter3d.error_y", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -161,18 +131,14 @@ def __init__( class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='symmetric', - parent_name='scatter3d.error_y', - **kwargs + self, plotly_name="symmetric", parent_name="scatter3d.error_y", **kwargs ): super(SymmetricValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -181,18 +147,14 @@ def __init__( class CopyZstyleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='copy_zstyle', - parent_name='scatter3d.error_y', - **kwargs + self, plotly_name="copy_zstyle", parent_name="scatter3d.error_y", **kwargs ): super(CopyZstyleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -201,15 +163,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scatter3d.error_y', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scatter3d.error_y", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -218,18 +177,14 @@ def __init__( class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='arraysrc', - parent_name='scatter3d.error_y', - **kwargs + self, plotly_name="arraysrc", parent_name="scatter3d.error_y", **kwargs ): super(ArraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -238,18 +193,14 @@ def __init__( class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='arrayminussrc', - parent_name='scatter3d.error_y', - **kwargs + self, plotly_name="arrayminussrc", parent_name="scatter3d.error_y", **kwargs ): super(ArrayminussrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -258,18 +209,14 @@ def __init__( class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='arrayminus', - parent_name='scatter3d.error_y', - **kwargs + self, plotly_name="arrayminus", parent_name="scatter3d.error_y", **kwargs ): super(ArrayminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -278,14 +225,11 @@ def __init__( class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='array', parent_name='scatter3d.error_y', **kwargs - ): + def __init__(self, plotly_name="array", parent_name="scatter3d.error_y", **kwargs): super(ArrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/error_z/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/error_z/__init__.py index 7de0793480c..408582ed547 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/error_z/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/error_z/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='scatter3d.error_z', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="scatter3d.error_z", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,15 +17,14 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='visible', parent_name='scatter3d.error_z', **kwargs + self, plotly_name="visible", parent_name="scatter3d.error_z", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,19 +33,15 @@ def __init__( class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='valueminus', - parent_name='scatter3d.error_z', - **kwargs + self, plotly_name="valueminus", parent_name="scatter3d.error_z", **kwargs ): super(ValueminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -60,16 +50,13 @@ def __init__( class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='value', parent_name='scatter3d.error_z', **kwargs - ): + def __init__(self, plotly_name="value", parent_name="scatter3d.error_z", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -78,18 +65,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='scatter3d.error_z', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="scatter3d.error_z", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['percent', 'constant', 'sqrt', 'data'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs ) @@ -98,19 +80,15 @@ def __init__( class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='tracerefminus', - parent_name='scatter3d.error_z', - **kwargs + self, plotly_name="tracerefminus", parent_name="scatter3d.error_z", **kwargs ): super(TracerefminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -119,19 +97,15 @@ def __init__( class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='traceref', - parent_name='scatter3d.error_z', - **kwargs + self, plotly_name="traceref", parent_name="scatter3d.error_z", **kwargs ): super(TracerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -140,19 +114,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='scatter3d.error_z', - **kwargs + self, plotly_name="thickness", parent_name="scatter3d.error_z", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -161,18 +131,14 @@ def __init__( class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='symmetric', - parent_name='scatter3d.error_z', - **kwargs + self, plotly_name="symmetric", parent_name="scatter3d.error_z", **kwargs ): super(SymmetricValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -181,15 +147,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scatter3d.error_z', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scatter3d.error_z", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -198,18 +161,14 @@ def __init__( class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='arraysrc', - parent_name='scatter3d.error_z', - **kwargs + self, plotly_name="arraysrc", parent_name="scatter3d.error_z", **kwargs ): super(ArraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -218,18 +177,14 @@ def __init__( class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='arrayminussrc', - parent_name='scatter3d.error_z', - **kwargs + self, plotly_name="arrayminussrc", parent_name="scatter3d.error_z", **kwargs ): super(ArrayminussrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -238,18 +193,14 @@ def __init__( class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='arrayminus', - parent_name='scatter3d.error_z', - **kwargs + self, plotly_name="arrayminus", parent_name="scatter3d.error_z", **kwargs ): super(ArrayminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -258,14 +209,11 @@ def __init__( class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='array', parent_name='scatter3d.error_z', **kwargs - ): + def __init__(self, plotly_name="array", parent_name="scatter3d.error_z", **kwargs): super(ArrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/__init__.py index f4106c11640..eb67c7cbd54 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='scatter3d.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="scatter3d.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='scatter3d.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="scatter3d.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='font', parent_name='scatter3d.hoverlabel', **kwargs + self, plotly_name="font", parent_name="scatter3d.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +75,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +85,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='scatter3d.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="scatter3d.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +101,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='scatter3d.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="scatter3d.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +118,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='scatter3d.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="scatter3d.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,19 +134,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='scatter3d.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="scatter3d.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -177,18 +151,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='scatter3d.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="scatter3d.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -197,19 +167,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='scatter3d.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="scatter3d.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/__init__.py index e17fc32ca0f..57b0ee227df 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='scatter3d.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="scatter3d.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scatter3d.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="scatter3d.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='scatter3d.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="scatter3d.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='scatter3d.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="scatter3d.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scatter3d.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="scatter3d.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatter3d.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="scatter3d.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/line/__init__.py index c5b9ae7b976..637ddf69e61 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='scatter3d.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="scatter3d.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,15 +18,12 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='scatter3d.line', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="scatter3d.line", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -40,18 +32,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='scatter3d.line', - **kwargs + self, plotly_name="reversescale", parent_name="scatter3d.line", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -60,18 +48,14 @@ def __init__( class DashValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='dash', parent_name='scatter3d.line', **kwargs - ): + def __init__(self, plotly_name="dash", parent_name="scatter3d.line", **kwargs): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -81,15 +65,12 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorsrc', parent_name='scatter3d.line', **kwargs - ): + def __init__(self, plotly_name="colorsrc", parent_name="scatter3d.line", **kwargs): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -98,18 +79,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, plotly_name='colorscale', parent_name='scatter3d.line', **kwargs + self, plotly_name="colorscale", parent_name="scatter3d.line", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -118,16 +96,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorbar', parent_name='scatter3d.line', **kwargs - ): + def __init__(self, plotly_name="colorbar", parent_name="scatter3d.line", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -338,7 +314,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -348,17 +324,14 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='scatter3d.line', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="scatter3d.line", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -367,19 +340,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scatter3d.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scatter3d.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - colorscale_path=kwargs.pop( - 'colorscale_path', 'scatter3d.line.colorscale' - ), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + colorscale_path=kwargs.pop("colorscale_path", "scatter3d.line.colorscale"), **kwargs ) @@ -388,16 +356,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmin', parent_name='scatter3d.line', **kwargs - ): + def __init__(self, plotly_name="cmin", parent_name="scatter3d.line", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -406,16 +371,13 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmid', parent_name='scatter3d.line', **kwargs - ): + def __init__(self, plotly_name="cmid", parent_name="scatter3d.line", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -424,16 +386,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmax', parent_name='scatter3d.line', **kwargs - ): + def __init__(self, plotly_name="cmax", parent_name="scatter3d.line", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -442,16 +401,13 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='scatter3d.line', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="scatter3d.line", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -460,18 +416,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='scatter3d.line', - **kwargs + self, plotly_name="autocolorscale", parent_name="scatter3d.line", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/__init__.py index 1faa1be07c5..58c20a9d90c 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="scatter3d.line.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="scatter3d.line.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,17 +36,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='y', parent_name='scatter3d.line.colorbar', **kwargs + self, plotly_name="y", parent_name="scatter3d.line.colorbar", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -65,19 +54,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="scatter3d.line.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -86,19 +71,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="scatter3d.line.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -107,17 +88,16 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='x', parent_name='scatter3d.line.colorbar', **kwargs + self, plotly_name="x", parent_name="scatter3d.line.colorbar", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -126,19 +106,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="title", parent_name="scatter3d.line.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -154,7 +131,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -164,19 +141,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="scatter3d.line.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -185,18 +158,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="scatter3d.line.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -205,18 +174,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="scatter3d.line.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -225,18 +190,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="scatter3d.line.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -245,18 +206,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="scatter3d.line.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -265,18 +222,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="scatter3d.line.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -285,19 +238,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="scatter3d.line.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -306,18 +255,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="scatter3d.line.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -326,20 +271,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="scatter3d.line.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -348,19 +289,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="scatter3d.line.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -369,19 +306,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='scatter3d.line.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="scatter3d.line.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -389,22 +328,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='scatter3d.line.colorbar', + plotly_name="tickformatstops", + parent_name="scatter3d.line.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -438,7 +375,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -448,18 +385,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="scatter3d.line.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -468,19 +401,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="scatter3d.line.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -501,7 +431,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -511,18 +441,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="scatter3d.line.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -531,18 +457,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="scatter3d.line.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -551,19 +473,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="scatter3d.line.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -572,19 +490,18 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='thicknessmode', - parent_name='scatter3d.line.colorbar', + plotly_name="thicknessmode", + parent_name="scatter3d.line.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -593,19 +510,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="scatter3d.line.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -613,22 +526,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='scatter3d.line.colorbar', + plotly_name="showticksuffix", + parent_name="scatter3d.line.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -636,22 +546,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='scatter3d.line.colorbar', + plotly_name="showtickprefix", + parent_name="scatter3d.line.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -660,18 +567,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='scatter3d.line.colorbar', + plotly_name="showticklabels", + parent_name="scatter3d.line.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -680,19 +586,18 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='showexponent', - parent_name='scatter3d.line.colorbar', + plotly_name="showexponent", + parent_name="scatter3d.line.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -700,21 +605,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='scatter3d.line.colorbar', + plotly_name="separatethousands", + parent_name="scatter3d.line.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -723,19 +625,18 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='outlinewidth', - parent_name='scatter3d.line.colorbar', + plotly_name="outlinewidth", + parent_name="scatter3d.line.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -744,18 +645,17 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='outlinecolor', - parent_name='scatter3d.line.colorbar', + plotly_name="outlinecolor", + parent_name="scatter3d.line.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -764,19 +664,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="scatter3d.line.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -785,19 +681,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="scatter3d.line.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -806,19 +698,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='len', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="len", parent_name="scatter3d.line.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -826,24 +714,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='scatter3d.line.colorbar', + plotly_name="exponentformat", + parent_name="scatter3d.line.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -852,19 +735,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="scatter3d.line.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -873,19 +752,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="scatter3d.line.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -894,18 +769,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="scatter3d.line.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -914,17 +785,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='scatter3d.line.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="scatter3d.line.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/__init__.py index 2696aa9f2f0..6ccc9caf32b 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scatter3d.line.colorbar.tickfont', + plotly_name="size", + parent_name="scatter3d.line.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scatter3d.line.colorbar.tickfont', + plotly_name="family", + parent_name="scatter3d.line.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatter3d.line.colorbar.tickfont', + plotly_name="color", + parent_name="scatter3d.line.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/__init__.py index e74a62a8925..f8dd736ab4d 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='scatter3d.line.colorbar.tickformatstop', + plotly_name="value", + parent_name="scatter3d.line.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='scatter3d.line.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="scatter3d.line.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='scatter3d.line.colorbar.tickformatstop', + plotly_name="name", + parent_name="scatter3d.line.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='scatter3d.line.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="scatter3d.line.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='scatter3d.line.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="scatter3d.line.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'calc' - }, { - 'valType': 'any', - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "any", "editType": "calc"}, + {"valType": "any", "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/__init__.py index 9f4b168850d..26263ebd376 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='scatter3d.line.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="scatter3d.line.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='scatter3d.line.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="scatter3d.line.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='scatter3d.line.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="scatter3d.line.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/__init__.py index 51f9eec999b..6b8db31d7a4 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/line/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scatter3d.line.colorbar.title.font', + plotly_name="size", + parent_name="scatter3d.line.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scatter3d.line.colorbar.title.font', + plotly_name="family", + parent_name="scatter3d.line.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatter3d.line.colorbar.title.font', + plotly_name="color", + parent_name="scatter3d.line.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/marker/__init__.py index ad5f118692e..f4748627127 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='symbolsrc', - parent_name='scatter3d.marker', - **kwargs + self, plotly_name="symbolsrc", parent_name="scatter3d.marker", **kwargs ): super(SymbolsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,21 +18,25 @@ def __init__( class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='symbol', parent_name='scatter3d.marker', **kwargs - ): + def __init__(self, plotly_name="symbol", parent_name="scatter3d.marker", **kwargs): super(SymbolValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 'circle', 'circle-open', 'square', 'square-open', - 'diamond', 'diamond-open', 'cross', 'x' - ] + "values", + [ + "circle", + "circle-open", + "square", + "square-open", + "diamond", + "diamond-open", + "cross", + "x", + ], ), **kwargs ) @@ -48,15 +46,12 @@ def __init__( class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='sizesrc', parent_name='scatter3d.marker', **kwargs - ): + def __init__(self, plotly_name="sizesrc", parent_name="scatter3d.marker", **kwargs): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -65,15 +60,12 @@ def __init__( class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='sizeref', parent_name='scatter3d.marker', **kwargs - ): + def __init__(self, plotly_name="sizeref", parent_name="scatter3d.marker", **kwargs): super(SizerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -82,16 +74,15 @@ def __init__( class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='sizemode', parent_name='scatter3d.marker', **kwargs + self, plotly_name="sizemode", parent_name="scatter3d.marker", **kwargs ): super(SizemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['diameter', 'area']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["diameter", "area"]), **kwargs ) @@ -100,16 +91,13 @@ def __init__( class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='sizemin', parent_name='scatter3d.marker', **kwargs - ): + def __init__(self, plotly_name="sizemin", parent_name="scatter3d.marker", **kwargs): super(SizeminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -118,18 +106,15 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='scatter3d.marker', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="scatter3d.marker", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -138,18 +123,14 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showscale', - parent_name='scatter3d.marker', - **kwargs + self, plotly_name="showscale", parent_name="scatter3d.marker", **kwargs ): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -158,18 +139,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='scatter3d.marker', - **kwargs + self, plotly_name="reversescale", parent_name="scatter3d.marker", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -178,19 +155,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='scatter3d.marker', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="scatter3d.marker", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -199,16 +173,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='scatter3d.marker', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="scatter3d.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -294,7 +266,7 @@ def __init__( width Sets the width (in px) of the lines bounding the marker points. -""" +""", ), **kwargs ) @@ -304,15 +276,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='colorsrc', parent_name='scatter3d.marker', **kwargs + self, plotly_name="colorsrc", parent_name="scatter3d.marker", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -321,21 +292,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='scatter3d.marker', - **kwargs + self, plotly_name="colorscale", parent_name="scatter3d.marker", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -344,16 +309,16 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='colorbar', parent_name='scatter3d.marker', **kwargs + self, plotly_name="colorbar", parent_name="scatter3d.marker", **kwargs ): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -564,7 +529,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -574,20 +539,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='scatter3d.marker', - **kwargs + self, plotly_name="coloraxis", parent_name="scatter3d.marker", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -596,18 +557,15 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scatter3d.marker', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scatter3d.marker", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'scatter3d.marker.colorscale' + "colorscale_path", "scatter3d.marker.colorscale" ), **kwargs ) @@ -617,16 +575,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmin', parent_name='scatter3d.marker', **kwargs - ): + def __init__(self, plotly_name="cmin", parent_name="scatter3d.marker", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -635,16 +590,13 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmid', parent_name='scatter3d.marker', **kwargs - ): + def __init__(self, plotly_name="cmid", parent_name="scatter3d.marker", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -653,16 +605,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmax', parent_name='scatter3d.marker', **kwargs - ): + def __init__(self, plotly_name="cmax", parent_name="scatter3d.marker", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -671,16 +620,13 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='scatter3d.marker', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="scatter3d.marker", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -689,18 +635,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='scatter3d.marker', - **kwargs + self, plotly_name="autocolorscale", parent_name="scatter3d.marker", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/__init__.py index 0ffa97ed706..d9efc6716fd 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="scatter3d.marker.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="scatter3d.marker.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,20 +36,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='y', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="y", parent_name="scatter3d.marker.colorbar", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -68,19 +54,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="scatter3d.marker.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -89,19 +71,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="scatter3d.marker.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -110,20 +88,16 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='x', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="x", parent_name="scatter3d.marker.colorbar", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -132,19 +106,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="title", parent_name="scatter3d.marker.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -160,7 +131,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -170,19 +141,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="scatter3d.marker.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -191,18 +158,17 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='tickvalssrc', - parent_name='scatter3d.marker.colorbar', + plotly_name="tickvalssrc", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -211,18 +177,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="scatter3d.marker.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -231,18 +193,17 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='ticktextsrc', - parent_name='scatter3d.marker.colorbar', + plotly_name="ticktextsrc", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -251,18 +212,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="scatter3d.marker.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -271,18 +228,17 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='ticksuffix', - parent_name='scatter3d.marker.colorbar', + plotly_name="ticksuffix", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -291,19 +247,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="scatter3d.marker.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -312,18 +264,17 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickprefix', - parent_name='scatter3d.marker.colorbar', + plotly_name="tickprefix", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -332,20 +283,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="scatter3d.marker.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -354,19 +301,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="scatter3d.marker.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -375,19 +318,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='scatter3d.marker.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -395,22 +340,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='scatter3d.marker.colorbar', + plotly_name="tickformatstops", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -444,7 +387,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -454,18 +397,17 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickformat', - parent_name='scatter3d.marker.colorbar', + plotly_name="tickformat", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -474,19 +416,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="scatter3d.marker.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -507,7 +446,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -517,18 +456,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="scatter3d.marker.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -537,18 +472,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="scatter3d.marker.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,19 +488,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="scatter3d.marker.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -578,19 +505,18 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='thicknessmode', - parent_name='scatter3d.marker.colorbar', + plotly_name="thicknessmode", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -599,19 +525,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="scatter3d.marker.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -619,22 +541,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='scatter3d.marker.colorbar', + plotly_name="showticksuffix", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -642,22 +561,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='scatter3d.marker.colorbar', + plotly_name="showtickprefix", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -666,18 +582,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='scatter3d.marker.colorbar', + plotly_name="showticklabels", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -686,19 +601,18 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='showexponent', - parent_name='scatter3d.marker.colorbar', + plotly_name="showexponent", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -706,21 +620,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='scatter3d.marker.colorbar', + plotly_name="separatethousands", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -729,19 +640,18 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='outlinewidth', - parent_name='scatter3d.marker.colorbar', + plotly_name="outlinewidth", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -750,18 +660,17 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='outlinecolor', - parent_name='scatter3d.marker.colorbar', + plotly_name="outlinecolor", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -770,19 +679,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="scatter3d.marker.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -791,19 +696,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="scatter3d.marker.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -812,19 +713,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='len', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="len", parent_name="scatter3d.marker.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -832,24 +729,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='scatter3d.marker.colorbar', + plotly_name="exponentformat", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -858,19 +750,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="scatter3d.marker.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -879,19 +767,18 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='borderwidth', - parent_name='scatter3d.marker.colorbar', + plotly_name="borderwidth", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -900,18 +787,17 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='scatter3d.marker.colorbar', + plotly_name="bordercolor", + parent_name="scatter3d.marker.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -920,17 +806,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='scatter3d.marker.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="scatter3d.marker.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/__init__.py index 6a13df1162a..6da45d3a4a5 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scatter3d.marker.colorbar.tickfont', + plotly_name="size", + parent_name="scatter3d.marker.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scatter3d.marker.colorbar.tickfont', + plotly_name="family", + parent_name="scatter3d.marker.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatter3d.marker.colorbar.tickfont', + plotly_name="color", + parent_name="scatter3d.marker.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/__init__.py index 17e57613d1d..2e87ace6d74 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='scatter3d.marker.colorbar.tickformatstop', + plotly_name="value", + parent_name="scatter3d.marker.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='scatter3d.marker.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="scatter3d.marker.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='scatter3d.marker.colorbar.tickformatstop', + plotly_name="name", + parent_name="scatter3d.marker.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='scatter3d.marker.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="scatter3d.marker.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='scatter3d.marker.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="scatter3d.marker.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'calc' - }, { - 'valType': 'any', - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "any", "editType": "calc"}, + {"valType": "any", "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/__init__.py index cd210520ba4..14ebbf80afc 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='text', - parent_name='scatter3d.marker.colorbar.title', + plotly_name="text", + parent_name="scatter3d.marker.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +21,18 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='side', - parent_name='scatter3d.marker.colorbar.title', + plotly_name="side", + parent_name="scatter3d.marker.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +41,19 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='font', - parent_name='scatter3d.marker.colorbar.title', + plotly_name="font", + parent_name="scatter3d.marker.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +74,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/__init__.py index 88c32d9b954..65200ab7146 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scatter3d.marker.colorbar.title.font', + plotly_name="size", + parent_name="scatter3d.marker.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scatter3d.marker.colorbar.title.font', + plotly_name="family", + parent_name="scatter3d.marker.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatter3d.marker.colorbar.title.font', + plotly_name="color", + parent_name="scatter3d.marker.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/marker/line/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/marker/line/__init__.py index 73e34916c65..14cba19b8bd 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/marker/line/__init__.py @@ -1,24 +1,18 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='scatter3d.marker.line', - **kwargs + self, plotly_name="width", parent_name="scatter3d.marker.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -27,18 +21,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='scatter3d.marker.line', - **kwargs + self, plotly_name="reversescale", parent_name="scatter3d.marker.line", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,18 +37,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scatter3d.marker.line', - **kwargs + self, plotly_name="colorsrc", parent_name="scatter3d.marker.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -67,21 +53,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='scatter3d.marker.line', - **kwargs + self, plotly_name="colorscale", parent_name="scatter3d.marker.line", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -90,20 +70,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='scatter3d.marker.line', - **kwargs + self, plotly_name="coloraxis", parent_name="scatter3d.marker.line", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -112,21 +88,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatter3d.marker.line', - **kwargs + self, plotly_name="color", parent_name="scatter3d.marker.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'scatter3d.marker.line.colorscale' + "colorscale_path", "scatter3d.marker.line.colorscale" ), **kwargs ) @@ -136,19 +108,15 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmin', - parent_name='scatter3d.marker.line', - **kwargs + self, plotly_name="cmin", parent_name="scatter3d.marker.line", **kwargs ): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -157,19 +125,15 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmid', - parent_name='scatter3d.marker.line', - **kwargs + self, plotly_name="cmid", parent_name="scatter3d.marker.line", **kwargs ): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -178,19 +142,15 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmax', - parent_name='scatter3d.marker.line', - **kwargs + self, plotly_name="cmax", parent_name="scatter3d.marker.line", **kwargs ): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -199,19 +159,15 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='cauto', - parent_name='scatter3d.marker.line', - **kwargs + self, plotly_name="cauto", parent_name="scatter3d.marker.line", **kwargs ): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -220,18 +176,17 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='autocolorscale', - parent_name='scatter3d.marker.line', + plotly_name="autocolorscale", + parent_name="scatter3d.marker.line", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/projection/__init__.py index a385097d0c6..f079014a014 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/__init__.py @@ -1,19 +1,15 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='z', parent_name='scatter3d.projection', **kwargs - ): + def __init__(self, plotly_name="z", parent_name="scatter3d.projection", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Z'), + data_class_str=kwargs.pop("data_class_str", "Z"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ opacity Sets the projection color. scale @@ -22,7 +18,7 @@ def __init__( show Sets whether or not projections are shown along the z axis. -""" +""", ), **kwargs ) @@ -32,16 +28,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='y', parent_name='scatter3d.projection', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="scatter3d.projection", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Y'), + data_class_str=kwargs.pop("data_class_str", "Y"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ opacity Sets the projection color. scale @@ -50,7 +44,7 @@ def __init__( show Sets whether or not projections are shown along the y axis. -""" +""", ), **kwargs ) @@ -60,16 +54,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='x', parent_name='scatter3d.projection', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="scatter3d.projection", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'X'), + data_class_str=kwargs.pop("data_class_str", "X"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ opacity Sets the projection color. scale @@ -78,7 +70,7 @@ def __init__( show Sets whether or not projections are shown along the x axis. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/x/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/projection/x/__init__.py index 288e2136526..0a0f0641a7f 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/x/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/x/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='show', - parent_name='scatter3d.projection.x', - **kwargs + self, plotly_name="show", parent_name="scatter3d.projection.x", **kwargs ): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class ScaleValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='scale', - parent_name='scatter3d.projection.x', - **kwargs + self, plotly_name="scale", parent_name="scatter3d.projection.x", **kwargs ): super(ScaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +36,15 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='scatter3d.projection.x', - **kwargs + self, plotly_name="opacity", parent_name="scatter3d.projection.x", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/y/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/projection/y/__init__.py index 33e4ac6c32d..cb4fb552a0e 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/y/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/y/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='show', - parent_name='scatter3d.projection.y', - **kwargs + self, plotly_name="show", parent_name="scatter3d.projection.y", **kwargs ): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class ScaleValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='scale', - parent_name='scatter3d.projection.y', - **kwargs + self, plotly_name="scale", parent_name="scatter3d.projection.y", **kwargs ): super(ScaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +36,15 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='scatter3d.projection.y', - **kwargs + self, plotly_name="opacity", parent_name="scatter3d.projection.y", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/projection/z/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/projection/z/__init__.py index 2d248ea9d16..f60cf53418a 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/projection/z/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/projection/z/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='show', - parent_name='scatter3d.projection.z', - **kwargs + self, plotly_name="show", parent_name="scatter3d.projection.z", **kwargs ): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class ScaleValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='scale', - parent_name='scatter3d.projection.z', - **kwargs + self, plotly_name="scale", parent_name="scatter3d.projection.z", **kwargs ): super(ScaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +36,15 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='scatter3d.projection.z', - **kwargs + self, plotly_name="opacity", parent_name="scatter3d.projection.z", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/stream/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/stream/__init__.py index cf2d15be03c..074cb58bb7f 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='scatter3d.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="scatter3d.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,19 +18,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='scatter3d.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="scatter3d.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatter3d/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatter3d/textfont/__init__.py index 976a6292f6b..e9863f6a725 100644 --- a/packages/python/plotly/plotly/validators/scatter3d/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatter3d/textfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='scatter3d.textfont', - **kwargs + self, plotly_name="sizesrc", parent_name="scatter3d.textfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='scatter3d.textfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="scatter3d.textfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,18 +34,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='family', parent_name='scatter3d.textfont', **kwargs + self, plotly_name="family", parent_name="scatter3d.textfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -63,18 +53,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scatter3d.textfont', - **kwargs + self, plotly_name="colorsrc", parent_name="scatter3d.textfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -83,15 +69,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scatter3d.textfont', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scatter3d.textfont", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/__init__.py index e89f0c3bb82..2a8d89413ed 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='yaxis', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="yaxis", parent_name="scattercarpet", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -22,16 +17,13 @@ def __init__( class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='xaxis', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="xaxis", parent_name="scattercarpet", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -40,16 +32,13 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="scattercarpet", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -58,16 +47,14 @@ def __init__( class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='unselected', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="unselected", parent_name="scattercarpet", **kwargs): super(UnselectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_class_str=kwargs.pop("data_class_str", "Unselected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.scattercarpet.unselected.Mark er instance or dict with compatible properties @@ -75,7 +62,7 @@ def __init__( plotly.graph_objs.scattercarpet.unselected.Text font instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -85,15 +72,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="scattercarpet", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -102,16 +86,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='uid', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="uid", parent_name="scattercarpet", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -120,15 +101,12 @@ def __init__( class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="scattercarpet", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -137,18 +115,14 @@ def __init__( class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='textpositionsrc', - parent_name='scattercarpet', - **kwargs + self, plotly_name="textpositionsrc", parent_name="scattercarpet", **kwargs ): super(TextpositionsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -157,25 +131,28 @@ def __init__( class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='textposition', - parent_name='scattercarpet', - **kwargs + self, plotly_name="textposition", parent_name="scattercarpet", **kwargs ): super(TextpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 'top left', 'top center', 'top right', 'middle left', - 'middle center', 'middle right', 'bottom left', - 'bottom center', 'bottom right' - ] + "values", + [ + "top left", + "top center", + "top right", + "middle left", + "middle center", + "middle right", + "bottom left", + "bottom center", + "bottom right", + ], ), **kwargs ) @@ -185,16 +162,14 @@ def __init__( class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='textfont', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="textfont", parent_name="scattercarpet", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -224,7 +199,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -234,16 +209,13 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='text', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="text", parent_name="scattercarpet", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -252,16 +224,14 @@ def __init__( class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="scattercarpet", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -271,7 +241,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -281,15 +251,12 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="scattercarpet", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -298,18 +265,14 @@ def __init__( class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='selectedpoints', - parent_name='scattercarpet', - **kwargs + self, plotly_name="selectedpoints", parent_name="scattercarpet", **kwargs ): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -318,23 +281,21 @@ def __init__( class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='selected', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="selected", parent_name="scattercarpet", **kwargs): super(SelectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_class_str=kwargs.pop("data_class_str", "Selected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.scattercarpet.selected.Marker instance or dict with compatible properties textfont plotly.graph_objs.scattercarpet.selected.Textfo nt instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -344,17 +305,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="scattercarpet", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -363,15 +321,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="scattercarpet", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -380,17 +335,14 @@ def __init__( class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='mode', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="mode", parent_name="scattercarpet", **kwargs): super(ModeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['none']), - flags=kwargs.pop('flags', ['lines', 'markers', 'text']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["none"]), + flags=kwargs.pop("flags", ["lines", "markers", "text"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -399,15 +351,12 @@ def __init__( class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="scattercarpet", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -416,16 +365,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='meta', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="meta", parent_name="scattercarpet", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -434,16 +380,14 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="scattercarpet", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -572,7 +516,7 @@ def __init__( symbolsrc Sets the source reference on plot.ly for symbol . -""" +""", ), **kwargs ) @@ -582,16 +526,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="scattercarpet", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the line color. dash @@ -611,7 +553,7 @@ def __init__( "linear" shape). width Sets the line width (in px). -""" +""", ), **kwargs ) @@ -621,15 +563,14 @@ def __init__( class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='legendgroup', parent_name='scattercarpet', **kwargs + self, plotly_name="legendgroup", parent_name="scattercarpet", **kwargs ): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -638,15 +579,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="scattercarpet", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -655,16 +593,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='ids', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="ids", parent_name="scattercarpet", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -673,18 +608,14 @@ def __init__( class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertextsrc', - parent_name='scattercarpet', - **kwargs + self, plotly_name="hovertextsrc", parent_name="scattercarpet", **kwargs ): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -693,16 +624,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="scattercarpet", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -711,18 +639,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='scattercarpet', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="scattercarpet", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -731,19 +655,15 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='hovertemplate', - parent_name='scattercarpet', - **kwargs + self, plotly_name="hovertemplate", parent_name="scattercarpet", **kwargs ): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -752,16 +672,13 @@ def __init__( class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoveron', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="hoveron", parent_name="scattercarpet", **kwargs): super(HoveronValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - flags=kwargs.pop('flags', ['points', 'fills']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + flags=kwargs.pop("flags", ["points", "fills"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -770,16 +687,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="scattercarpet", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -815,7 +730,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -825,18 +740,14 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hoverinfosrc', - parent_name='scattercarpet', - **kwargs + self, plotly_name="hoverinfosrc", parent_name="scattercarpet", **kwargs ): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -845,18 +756,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="scattercarpet", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['a', 'b', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["a", "b", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -865,16 +773,13 @@ def __init__( class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='fillcolor', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="fillcolor", parent_name="scattercarpet", **kwargs): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -883,16 +788,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='fill', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="scattercarpet", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['none', 'toself', 'tonext']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "toself", "tonext"]), **kwargs ) @@ -901,18 +803,14 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='customdatasrc', - parent_name='scattercarpet', - **kwargs + self, plotly_name="customdatasrc", parent_name="scattercarpet", **kwargs ): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -921,15 +819,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="scattercarpet", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -938,15 +833,14 @@ def __init__( class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='connectgaps', parent_name='scattercarpet', **kwargs + self, plotly_name="connectgaps", parent_name="scattercarpet", **kwargs ): super(ConnectgapsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -955,15 +849,12 @@ def __init__( class CarpetValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='carpet', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="carpet", parent_name="scattercarpet", **kwargs): super(CarpetValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -972,15 +863,12 @@ def __init__( class BsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='bsrc', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="bsrc", parent_name="scattercarpet", **kwargs): super(BsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -989,13 +877,12 @@ def __init__( class BValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='b', parent_name='scattercarpet', **kwargs): + def __init__(self, plotly_name="b", parent_name="scattercarpet", **kwargs): super(BValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1004,15 +891,12 @@ def __init__(self, plotly_name='b', parent_name='scattercarpet', **kwargs): class AsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='asrc', parent_name='scattercarpet', **kwargs - ): + def __init__(self, plotly_name="asrc", parent_name="scattercarpet", **kwargs): super(AsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1021,12 +905,11 @@ def __init__( class AValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='a', parent_name='scattercarpet', **kwargs): + def __init__(self, plotly_name="a", parent_name="scattercarpet", **kwargs): super(AValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/__init__.py index 6ef607ea38f..d57e5a5df4e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='namelengthsrc', - parent_name='scattercarpet.hoverlabel', + plotly_name="namelengthsrc", + parent_name="scattercarpet.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +21,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='scattercarpet.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="scattercarpet.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +39,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='scattercarpet.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="scattercarpet.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -88,7 +78,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -98,18 +88,17 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bordercolorsrc', - parent_name='scattercarpet.hoverlabel', + plotly_name="bordercolorsrc", + parent_name="scattercarpet.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,19 +107,18 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='scattercarpet.hoverlabel', + plotly_name="bordercolor", + parent_name="scattercarpet.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -139,18 +127,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='scattercarpet.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="scattercarpet.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,19 +143,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='scattercarpet.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="scattercarpet.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -180,18 +160,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='scattercarpet.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="scattercarpet.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,19 +176,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='scattercarpet.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="scattercarpet.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/__init__.py index 9c38ff1f60f..8c0611c0568 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/hoverlabel/font/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='sizesrc', - parent_name='scattercarpet.hoverlabel.font', + plotly_name="sizesrc", + parent_name="scattercarpet.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +21,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scattercarpet.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="scattercarpet.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +39,17 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='familysrc', - parent_name='scattercarpet.hoverlabel.font', + plotly_name="familysrc", + parent_name="scattercarpet.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +58,20 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scattercarpet.hoverlabel.font', + plotly_name="family", + parent_name="scattercarpet.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +80,17 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='colorsrc', - parent_name='scattercarpet.hoverlabel.font', + plotly_name="colorsrc", + parent_name="scattercarpet.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +99,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattercarpet.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="scattercarpet.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/line/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/line/__init__.py index 585cf6f5a6f..c3d9ab4ad0e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/line/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='scattercarpet.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="scattercarpet.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,20 +18,16 @@ def __init__( class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='smoothing', - parent_name='scattercarpet.line', - **kwargs + self, plotly_name="smoothing", parent_name="scattercarpet.line", **kwargs ): super(SmoothingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 1.3), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 1.3), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -45,16 +36,13 @@ def __init__( class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='shape', parent_name='scattercarpet.line', **kwargs - ): + def __init__(self, plotly_name="shape", parent_name="scattercarpet.line", **kwargs): super(ShapeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['linear', 'spline']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["linear", "spline"]), **kwargs ) @@ -63,18 +51,14 @@ def __init__( class DashValidator(_plotly_utils.basevalidators.DashValidator): - - def __init__( - self, plotly_name='dash', parent_name='scattercarpet.line', **kwargs - ): + def __init__(self, plotly_name="dash", parent_name="scattercarpet.line", **kwargs): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -84,15 +68,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scattercarpet.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scattercarpet.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/__init__.py index f4e3f3e6229..93c48709758 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='symbolsrc', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="symbolsrc", parent_name="scattercarpet.marker", **kwargs ): super(SymbolsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,80 +18,303 @@ def __init__( class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='symbol', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="symbol", parent_name="scattercarpet.marker", **kwargs ): super(SymbolValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 0, 'circle', 100, 'circle-open', 200, 'circle-dot', 300, - 'circle-open-dot', 1, 'square', 101, 'square-open', 201, - 'square-dot', 301, 'square-open-dot', 2, 'diamond', 102, - 'diamond-open', 202, 'diamond-dot', 302, - 'diamond-open-dot', 3, 'cross', 103, 'cross-open', 203, - 'cross-dot', 303, 'cross-open-dot', 4, 'x', 104, 'x-open', - 204, 'x-dot', 304, 'x-open-dot', 5, 'triangle-up', 105, - 'triangle-up-open', 205, 'triangle-up-dot', 305, - 'triangle-up-open-dot', 6, 'triangle-down', 106, - 'triangle-down-open', 206, 'triangle-down-dot', 306, - 'triangle-down-open-dot', 7, 'triangle-left', 107, - 'triangle-left-open', 207, 'triangle-left-dot', 307, - 'triangle-left-open-dot', 8, 'triangle-right', 108, - 'triangle-right-open', 208, 'triangle-right-dot', 308, - 'triangle-right-open-dot', 9, 'triangle-ne', 109, - 'triangle-ne-open', 209, 'triangle-ne-dot', 309, - 'triangle-ne-open-dot', 10, 'triangle-se', 110, - 'triangle-se-open', 210, 'triangle-se-dot', 310, - 'triangle-se-open-dot', 11, 'triangle-sw', 111, - 'triangle-sw-open', 211, 'triangle-sw-dot', 311, - 'triangle-sw-open-dot', 12, 'triangle-nw', 112, - 'triangle-nw-open', 212, 'triangle-nw-dot', 312, - 'triangle-nw-open-dot', 13, 'pentagon', 113, - 'pentagon-open', 213, 'pentagon-dot', 313, - 'pentagon-open-dot', 14, 'hexagon', 114, 'hexagon-open', - 214, 'hexagon-dot', 314, 'hexagon-open-dot', 15, - 'hexagon2', 115, 'hexagon2-open', 215, 'hexagon2-dot', 315, - 'hexagon2-open-dot', 16, 'octagon', 116, 'octagon-open', - 216, 'octagon-dot', 316, 'octagon-open-dot', 17, 'star', - 117, 'star-open', 217, 'star-dot', 317, 'star-open-dot', - 18, 'hexagram', 118, 'hexagram-open', 218, 'hexagram-dot', - 318, 'hexagram-open-dot', 19, 'star-triangle-up', 119, - 'star-triangle-up-open', 219, 'star-triangle-up-dot', 319, - 'star-triangle-up-open-dot', 20, 'star-triangle-down', 120, - 'star-triangle-down-open', 220, 'star-triangle-down-dot', - 320, 'star-triangle-down-open-dot', 21, 'star-square', 121, - 'star-square-open', 221, 'star-square-dot', 321, - 'star-square-open-dot', 22, 'star-diamond', 122, - 'star-diamond-open', 222, 'star-diamond-dot', 322, - 'star-diamond-open-dot', 23, 'diamond-tall', 123, - 'diamond-tall-open', 223, 'diamond-tall-dot', 323, - 'diamond-tall-open-dot', 24, 'diamond-wide', 124, - 'diamond-wide-open', 224, 'diamond-wide-dot', 324, - 'diamond-wide-open-dot', 25, 'hourglass', 125, - 'hourglass-open', 26, 'bowtie', 126, 'bowtie-open', 27, - 'circle-cross', 127, 'circle-cross-open', 28, 'circle-x', - 128, 'circle-x-open', 29, 'square-cross', 129, - 'square-cross-open', 30, 'square-x', 130, 'square-x-open', - 31, 'diamond-cross', 131, 'diamond-cross-open', 32, - 'diamond-x', 132, 'diamond-x-open', 33, 'cross-thin', 133, - 'cross-thin-open', 34, 'x-thin', 134, 'x-thin-open', 35, - 'asterisk', 135, 'asterisk-open', 36, 'hash', 136, - 'hash-open', 236, 'hash-dot', 336, 'hash-open-dot', 37, - 'y-up', 137, 'y-up-open', 38, 'y-down', 138, 'y-down-open', - 39, 'y-left', 139, 'y-left-open', 40, 'y-right', 140, - 'y-right-open', 41, 'line-ew', 141, 'line-ew-open', 42, - 'line-ns', 142, 'line-ns-open', 43, 'line-ne', 143, - 'line-ne-open', 44, 'line-nw', 144, 'line-nw-open' - ] + "values", + [ + 0, + "circle", + 100, + "circle-open", + 200, + "circle-dot", + 300, + "circle-open-dot", + 1, + "square", + 101, + "square-open", + 201, + "square-dot", + 301, + "square-open-dot", + 2, + "diamond", + 102, + "diamond-open", + 202, + "diamond-dot", + 302, + "diamond-open-dot", + 3, + "cross", + 103, + "cross-open", + 203, + "cross-dot", + 303, + "cross-open-dot", + 4, + "x", + 104, + "x-open", + 204, + "x-dot", + 304, + "x-open-dot", + 5, + "triangle-up", + 105, + "triangle-up-open", + 205, + "triangle-up-dot", + 305, + "triangle-up-open-dot", + 6, + "triangle-down", + 106, + "triangle-down-open", + 206, + "triangle-down-dot", + 306, + "triangle-down-open-dot", + 7, + "triangle-left", + 107, + "triangle-left-open", + 207, + "triangle-left-dot", + 307, + "triangle-left-open-dot", + 8, + "triangle-right", + 108, + "triangle-right-open", + 208, + "triangle-right-dot", + 308, + "triangle-right-open-dot", + 9, + "triangle-ne", + 109, + "triangle-ne-open", + 209, + "triangle-ne-dot", + 309, + "triangle-ne-open-dot", + 10, + "triangle-se", + 110, + "triangle-se-open", + 210, + "triangle-se-dot", + 310, + "triangle-se-open-dot", + 11, + "triangle-sw", + 111, + "triangle-sw-open", + 211, + "triangle-sw-dot", + 311, + "triangle-sw-open-dot", + 12, + "triangle-nw", + 112, + "triangle-nw-open", + 212, + "triangle-nw-dot", + 312, + "triangle-nw-open-dot", + 13, + "pentagon", + 113, + "pentagon-open", + 213, + "pentagon-dot", + 313, + "pentagon-open-dot", + 14, + "hexagon", + 114, + "hexagon-open", + 214, + "hexagon-dot", + 314, + "hexagon-open-dot", + 15, + "hexagon2", + 115, + "hexagon2-open", + 215, + "hexagon2-dot", + 315, + "hexagon2-open-dot", + 16, + "octagon", + 116, + "octagon-open", + 216, + "octagon-dot", + 316, + "octagon-open-dot", + 17, + "star", + 117, + "star-open", + 217, + "star-dot", + 317, + "star-open-dot", + 18, + "hexagram", + 118, + "hexagram-open", + 218, + "hexagram-dot", + 318, + "hexagram-open-dot", + 19, + "star-triangle-up", + 119, + "star-triangle-up-open", + 219, + "star-triangle-up-dot", + 319, + "star-triangle-up-open-dot", + 20, + "star-triangle-down", + 120, + "star-triangle-down-open", + 220, + "star-triangle-down-dot", + 320, + "star-triangle-down-open-dot", + 21, + "star-square", + 121, + "star-square-open", + 221, + "star-square-dot", + 321, + "star-square-open-dot", + 22, + "star-diamond", + 122, + "star-diamond-open", + 222, + "star-diamond-dot", + 322, + "star-diamond-open-dot", + 23, + "diamond-tall", + 123, + "diamond-tall-open", + 223, + "diamond-tall-dot", + 323, + "diamond-tall-open-dot", + 24, + "diamond-wide", + 124, + "diamond-wide-open", + 224, + "diamond-wide-dot", + 324, + "diamond-wide-open-dot", + 25, + "hourglass", + 125, + "hourglass-open", + 26, + "bowtie", + 126, + "bowtie-open", + 27, + "circle-cross", + 127, + "circle-cross-open", + 28, + "circle-x", + 128, + "circle-x-open", + 29, + "square-cross", + 129, + "square-cross-open", + 30, + "square-x", + 130, + "square-x-open", + 31, + "diamond-cross", + 131, + "diamond-cross-open", + 32, + "diamond-x", + 132, + "diamond-x-open", + 33, + "cross-thin", + 133, + "cross-thin-open", + 34, + "x-thin", + 134, + "x-thin-open", + 35, + "asterisk", + 135, + "asterisk-open", + 36, + "hash", + 136, + "hash-open", + 236, + "hash-dot", + 336, + "hash-open-dot", + 37, + "y-up", + 137, + "y-up-open", + 38, + "y-down", + 138, + "y-down-open", + 39, + "y-left", + 139, + "y-left-open", + 40, + "y-right", + 140, + "y-right-open", + 41, + "line-ew", + 141, + "line-ew-open", + 42, + "line-ns", + 142, + "line-ns-open", + 43, + "line-ne", + 143, + "line-ne-open", + 44, + "line-nw", + 144, + "line-nw-open", + ], ), **kwargs ) @@ -107,18 +324,14 @@ def __init__( class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="sizesrc", parent_name="scattercarpet.marker", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -127,18 +340,14 @@ def __init__( class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='sizeref', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="sizeref", parent_name="scattercarpet.marker", **kwargs ): super(SizerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -147,19 +356,15 @@ def __init__( class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='sizemode', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="sizemode", parent_name="scattercarpet.marker", **kwargs ): super(SizemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['diameter', 'area']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["diameter", "area"]), **kwargs ) @@ -168,19 +373,15 @@ def __init__( class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='sizemin', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="sizemin", parent_name="scattercarpet.marker", **kwargs ): super(SizeminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -189,18 +390,17 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='size', parent_name='scattercarpet.marker', **kwargs + self, plotly_name="size", parent_name="scattercarpet.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -209,18 +409,14 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showscale', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="showscale", parent_name="scattercarpet.marker", **kwargs ): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -229,18 +425,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="reversescale", parent_name="scattercarpet.marker", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -249,18 +441,14 @@ def __init__( class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='opacitysrc', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="opacitysrc", parent_name="scattercarpet.marker", **kwargs ): super(OpacitysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -269,22 +457,18 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="opacity", parent_name="scattercarpet.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -293,19 +477,15 @@ def __init__( class MaxdisplayedValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxdisplayed', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="maxdisplayed", parent_name="scattercarpet.marker", **kwargs ): super(MaxdisplayedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -314,16 +494,16 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='line', parent_name='scattercarpet.marker', **kwargs + self, plotly_name="line", parent_name="scattercarpet.marker", **kwargs ): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -412,7 +592,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -422,19 +602,16 @@ def __init__( class GradientValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='gradient', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="gradient", parent_name="scattercarpet.marker", **kwargs ): super(GradientValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Gradient'), + data_class_str=kwargs.pop("data_class_str", "Gradient"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the final color of the gradient fill: the center color for radial, the right for @@ -448,7 +625,7 @@ def __init__( typesrc Sets the source reference on plot.ly for type . -""" +""", ), **kwargs ) @@ -458,18 +635,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="colorsrc", parent_name="scattercarpet.marker", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -478,21 +651,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="colorscale", parent_name="scattercarpet.marker", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -501,19 +668,16 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='colorbar', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="colorbar", parent_name="scattercarpet.marker", **kwargs ): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -725,7 +889,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -735,20 +899,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="coloraxis", parent_name="scattercarpet.marker", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -757,21 +917,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="color", parent_name="scattercarpet.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'scattercarpet.marker.colorscale' + "colorscale_path", "scattercarpet.marker.colorscale" ), **kwargs ) @@ -781,16 +937,15 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='cmin', parent_name='scattercarpet.marker', **kwargs + self, plotly_name="cmin", parent_name="scattercarpet.marker", **kwargs ): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -799,16 +954,15 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='cmid', parent_name='scattercarpet.marker', **kwargs + self, plotly_name="cmid", parent_name="scattercarpet.marker", **kwargs ): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -817,16 +971,15 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='cmax', parent_name='scattercarpet.marker', **kwargs + self, plotly_name="cmax", parent_name="scattercarpet.marker", **kwargs ): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -835,19 +988,15 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='cauto', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="cauto", parent_name="scattercarpet.marker", **kwargs ): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -856,18 +1005,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='scattercarpet.marker', - **kwargs + self, plotly_name="autocolorscale", parent_name="scattercarpet.marker", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/__init__.py index aec57f684b3..560d86b1956 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='scattercarpet.marker.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="scattercarpet.marker.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,18 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='yanchor', - parent_name='scattercarpet.marker.colorbar', + plotly_name="yanchor", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,20 +39,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='y', - parent_name='scattercarpet.marker.colorbar', - **kwargs + self, plotly_name="y", parent_name="scattercarpet.marker.colorbar", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -68,19 +57,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='scattercarpet.marker.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="scattercarpet.marker.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -89,19 +74,18 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='xanchor', - parent_name='scattercarpet.marker.colorbar', + plotly_name="xanchor", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -110,20 +94,16 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='x', - parent_name='scattercarpet.marker.colorbar', - **kwargs + self, plotly_name="x", parent_name="scattercarpet.marker.colorbar", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -132,19 +112,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='scattercarpet.marker.colorbar', - **kwargs + self, plotly_name="title", parent_name="scattercarpet.marker.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -160,7 +137,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -170,19 +147,18 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='tickwidth', - parent_name='scattercarpet.marker.colorbar', + plotly_name="tickwidth", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -191,18 +167,17 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='tickvalssrc', - parent_name='scattercarpet.marker.colorbar', + plotly_name="tickvalssrc", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -211,18 +186,17 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( self, - plotly_name='tickvals', - parent_name='scattercarpet.marker.colorbar', + plotly_name="tickvals", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -231,18 +205,17 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='ticktextsrc', - parent_name='scattercarpet.marker.colorbar', + plotly_name="ticktextsrc", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -251,18 +224,17 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( self, - plotly_name='ticktext', - parent_name='scattercarpet.marker.colorbar', + plotly_name="ticktext", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -271,18 +243,17 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='ticksuffix', - parent_name='scattercarpet.marker.colorbar', + plotly_name="ticksuffix", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -291,19 +262,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='scattercarpet.marker.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="scattercarpet.marker.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -312,18 +279,17 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickprefix', - parent_name='scattercarpet.marker.colorbar', + plotly_name="tickprefix", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -332,20 +298,19 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='tickmode', - parent_name='scattercarpet.marker.colorbar', + plotly_name="tickmode", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -354,19 +319,18 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='ticklen', - parent_name='scattercarpet.marker.colorbar', + plotly_name="ticklen", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -375,19 +339,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='scattercarpet.marker.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -395,22 +361,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='scattercarpet.marker.colorbar', + plotly_name="tickformatstops", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -444,7 +408,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -454,18 +418,17 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickformat', - parent_name='scattercarpet.marker.colorbar', + plotly_name="tickformat", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -474,19 +437,19 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickfont', - parent_name='scattercarpet.marker.colorbar', + plotly_name="tickfont", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -507,7 +470,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -517,18 +480,17 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='tickcolor', - parent_name='scattercarpet.marker.colorbar', + plotly_name="tickcolor", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -537,18 +499,17 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( self, - plotly_name='tickangle', - parent_name='scattercarpet.marker.colorbar', + plotly_name="tickangle", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,19 +518,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='scattercarpet.marker.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="scattercarpet.marker.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -578,19 +535,18 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='thicknessmode', - parent_name='scattercarpet.marker.colorbar', + plotly_name="thicknessmode", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -599,19 +555,18 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='thickness', - parent_name='scattercarpet.marker.colorbar', + plotly_name="thickness", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -619,22 +574,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='scattercarpet.marker.colorbar', + plotly_name="showticksuffix", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -642,22 +594,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='scattercarpet.marker.colorbar', + plotly_name="showtickprefix", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -666,18 +615,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='scattercarpet.marker.colorbar', + plotly_name="showticklabels", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -686,19 +634,18 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='showexponent', - parent_name='scattercarpet.marker.colorbar', + plotly_name="showexponent", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -706,21 +653,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='scattercarpet.marker.colorbar', + plotly_name="separatethousands", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -729,19 +673,18 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='outlinewidth', - parent_name='scattercarpet.marker.colorbar', + plotly_name="outlinewidth", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -750,18 +693,17 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='outlinecolor', - parent_name='scattercarpet.marker.colorbar', + plotly_name="outlinecolor", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -770,19 +712,18 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( self, - plotly_name='nticks', - parent_name='scattercarpet.marker.colorbar', + plotly_name="nticks", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -791,19 +732,18 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='lenmode', - parent_name='scattercarpet.marker.colorbar', + plotly_name="lenmode", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -812,19 +752,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='len', - parent_name='scattercarpet.marker.colorbar', - **kwargs + self, plotly_name="len", parent_name="scattercarpet.marker.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -832,24 +768,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='scattercarpet.marker.colorbar', + plotly_name="exponentformat", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -858,19 +789,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='scattercarpet.marker.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="scattercarpet.marker.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -879,19 +806,18 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='borderwidth', - parent_name='scattercarpet.marker.colorbar', + plotly_name="borderwidth", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -900,18 +826,17 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='scattercarpet.marker.colorbar', + plotly_name="bordercolor", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -920,17 +845,16 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bgcolor', - parent_name='scattercarpet.marker.colorbar', + plotly_name="bgcolor", + parent_name="scattercarpet.marker.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/__init__.py index 1fe9c7bb4da..09c678bd5a2 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scattercarpet.marker.colorbar.tickfont', + plotly_name="size", + parent_name="scattercarpet.marker.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scattercarpet.marker.colorbar.tickfont', + plotly_name="family", + parent_name="scattercarpet.marker.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scattercarpet.marker.colorbar.tickfont', + plotly_name="color", + parent_name="scattercarpet.marker.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/__init__.py index 4eefcaaefb8..7ed7b931cc7 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='scattercarpet.marker.colorbar.tickformatstop', + plotly_name="value", + parent_name="scattercarpet.marker.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='scattercarpet.marker.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="scattercarpet.marker.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='scattercarpet.marker.colorbar.tickformatstop', + plotly_name="name", + parent_name="scattercarpet.marker.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='scattercarpet.marker.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="scattercarpet.marker.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='scattercarpet.marker.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="scattercarpet.marker.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/__init__.py index 5133bfb9237..d231f65f2ea 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='text', - parent_name='scattercarpet.marker.colorbar.title', + plotly_name="text", + parent_name="scattercarpet.marker.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +21,18 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='side', - parent_name='scattercarpet.marker.colorbar.title', + plotly_name="side", + parent_name="scattercarpet.marker.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +41,19 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='font', - parent_name='scattercarpet.marker.colorbar.title', + plotly_name="font", + parent_name="scattercarpet.marker.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +74,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/__init__.py index 12281b3b886..da8e278cbd1 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scattercarpet.marker.colorbar.title.font', + plotly_name="size", + parent_name="scattercarpet.marker.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scattercarpet.marker.colorbar.title.font', + plotly_name="family", + parent_name="scattercarpet.marker.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scattercarpet.marker.colorbar.title.font', + plotly_name="color", + parent_name="scattercarpet.marker.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/__init__.py index 0acad4d6f5c..d9cfbf86594 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/gradient/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class TypesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='typesrc', - parent_name='scattercarpet.marker.gradient', + plotly_name="typesrc", + parent_name="scattercarpet.marker.gradient", **kwargs ): super(TypesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,22 +21,16 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='type', - parent_name='scattercarpet.marker.gradient', - **kwargs + self, plotly_name="type", parent_name="scattercarpet.marker.gradient", **kwargs ): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['radial', 'horizontal', 'vertical', 'none'] - ), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["radial", "horizontal", "vertical", "none"]), **kwargs ) @@ -48,18 +39,17 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='colorsrc', - parent_name='scattercarpet.marker.gradient', + plotly_name="colorsrc", + parent_name="scattercarpet.marker.gradient", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -68,18 +58,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattercarpet.marker.gradient', - **kwargs + self, plotly_name="color", parent_name="scattercarpet.marker.gradient", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/__init__.py index 6d93ba3794b..fe064970680 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/marker/line/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='widthsrc', - parent_name='scattercarpet.marker.line', - **kwargs + self, plotly_name="widthsrc", parent_name="scattercarpet.marker.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,21 +18,17 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='scattercarpet.marker.line', - **kwargs + self, plotly_name="width", parent_name="scattercarpet.marker.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,18 +37,17 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='reversescale', - parent_name='scattercarpet.marker.line', + plotly_name="reversescale", + parent_name="scattercarpet.marker.line", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -67,18 +56,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scattercarpet.marker.line', - **kwargs + self, plotly_name="colorsrc", parent_name="scattercarpet.marker.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -87,21 +72,18 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( self, - plotly_name='colorscale', - parent_name='scattercarpet.marker.line', + plotly_name="colorscale", + parent_name="scattercarpet.marker.line", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -110,20 +92,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='scattercarpet.marker.line', - **kwargs + self, plotly_name="coloraxis", parent_name="scattercarpet.marker.line", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -132,21 +110,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattercarpet.marker.line', - **kwargs + self, plotly_name="color", parent_name="scattercarpet.marker.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'scattercarpet.marker.line.colorscale' + "colorscale_path", "scattercarpet.marker.line.colorscale" ), **kwargs ) @@ -156,19 +130,15 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmin', - parent_name='scattercarpet.marker.line', - **kwargs + self, plotly_name="cmin", parent_name="scattercarpet.marker.line", **kwargs ): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -177,19 +147,15 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmid', - parent_name='scattercarpet.marker.line', - **kwargs + self, plotly_name="cmid", parent_name="scattercarpet.marker.line", **kwargs ): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -198,19 +164,15 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmax', - parent_name='scattercarpet.marker.line', - **kwargs + self, plotly_name="cmax", parent_name="scattercarpet.marker.line", **kwargs ): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -219,19 +181,15 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='cauto', - parent_name='scattercarpet.marker.line', - **kwargs + self, plotly_name="cauto", parent_name="scattercarpet.marker.line", **kwargs ): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -240,18 +198,17 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='autocolorscale', - parent_name='scattercarpet.marker.line', + plotly_name="autocolorscale", + parent_name="scattercarpet.marker.line", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/selected/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/selected/__init__.py index 31890f976b4..ee90aaa3b93 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/selected/__init__.py @@ -1,25 +1,20 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='scattercarpet.selected', - **kwargs + self, plotly_name="textfont", parent_name="scattercarpet.selected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of selected points. -""" +""", ), **kwargs ) @@ -29,26 +24,23 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='scattercarpet.selected', - **kwargs + self, plotly_name="marker", parent_name="scattercarpet.selected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of selected points. opacity Sets the marker opacity of selected points. size Sets the marker size of selected points. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/__init__.py index 67542f2ea7f..aa7162752e9 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/selected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scattercarpet.selected.marker', - **kwargs + self, plotly_name="size", parent_name="scattercarpet.selected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='opacity', - parent_name='scattercarpet.selected.marker', + plotly_name="opacity", + parent_name="scattercarpet.selected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +40,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattercarpet.selected.marker', - **kwargs + self, plotly_name="color", parent_name="scattercarpet.selected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/selected/textfont/__init__.py index e7785e1942d..8d2849f921e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/selected/textfont/__init__.py @@ -1,20 +1,17 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scattercarpet.selected.textfont', + plotly_name="color", + parent_name="scattercarpet.selected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/stream/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/stream/__init__.py index 1c3f7b58800..ff9443f7a07 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/stream/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='token', - parent_name='scattercarpet.stream', - **kwargs + self, plotly_name="token", parent_name="scattercarpet.stream", **kwargs ): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -26,19 +20,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='scattercarpet.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="scattercarpet.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/textfont/__init__.py index 31815266d63..5e3bde1e65e 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/textfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='scattercarpet.textfont', - **kwargs + self, plotly_name="sizesrc", parent_name="scattercarpet.textfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scattercarpet.textfont', - **kwargs + self, plotly_name="size", parent_name="scattercarpet.textfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='scattercarpet.textfont', - **kwargs + self, plotly_name="familysrc", parent_name="scattercarpet.textfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='scattercarpet.textfont', - **kwargs + self, plotly_name="family", parent_name="scattercarpet.textfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scattercarpet.textfont', - **kwargs + self, plotly_name="colorsrc", parent_name="scattercarpet.textfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattercarpet.textfont', - **kwargs + self, plotly_name="color", parent_name="scattercarpet.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/unselected/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/unselected/__init__.py index d4e61a676b5..3a82475c89a 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/unselected/__init__.py @@ -1,26 +1,21 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='scattercarpet.unselected', - **kwargs + self, plotly_name="textfont", parent_name="scattercarpet.unselected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) @@ -30,19 +25,16 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='scattercarpet.unselected', - **kwargs + self, plotly_name="marker", parent_name="scattercarpet.unselected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of unselected points, applied only when a selection exists. @@ -52,7 +44,7 @@ def __init__( size Sets the marker size of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/__init__.py index efe3200df44..9e403e99581 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/unselected/marker/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scattercarpet.unselected.marker', + plotly_name="size", + parent_name="scattercarpet.unselected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='opacity', - parent_name='scattercarpet.unselected.marker', + plotly_name="opacity", + parent_name="scattercarpet.unselected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scattercarpet.unselected.marker', + plotly_name="color", + parent_name="scattercarpet.unselected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattercarpet/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattercarpet/unselected/textfont/__init__.py index d73aac6bf06..9cb3ae7a067 100644 --- a/packages/python/plotly/plotly/validators/scattercarpet/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattercarpet/unselected/textfont/__init__.py @@ -1,20 +1,17 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scattercarpet.unselected.textfont', + plotly_name="color", + parent_name="scattercarpet.unselected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/__init__.py index 83e03afbc6f..f6868a65d49 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="scattergeo", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -22,23 +17,21 @@ def __init__( class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='unselected', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="unselected", parent_name="scattergeo", **kwargs): super(UnselectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_class_str=kwargs.pop("data_class_str", "Unselected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.scattergeo.unselected.Marker instance or dict with compatible properties textfont plotly.graph_objs.scattergeo.unselected.Textfon t instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -48,15 +41,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="scattergeo", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -65,14 +55,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='scattergeo', **kwargs): + def __init__(self, plotly_name="uid", parent_name="scattergeo", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -81,15 +70,12 @@ def __init__(self, plotly_name='uid', parent_name='scattergeo', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="scattergeo", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -98,18 +84,14 @@ def __init__( class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='textpositionsrc', - parent_name='scattergeo', - **kwargs + self, plotly_name="textpositionsrc", parent_name="scattergeo", **kwargs ): super(TextpositionsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,22 +100,26 @@ def __init__( class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='textposition', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="textposition", parent_name="scattergeo", **kwargs): super(TextpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 'top left', 'top center', 'top right', 'middle left', - 'middle center', 'middle right', 'bottom left', - 'bottom center', 'bottom right' - ] + "values", + [ + "top left", + "top center", + "top right", + "middle left", + "middle center", + "middle right", + "bottom left", + "bottom center", + "bottom right", + ], ), **kwargs ) @@ -143,16 +129,14 @@ def __init__( class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='textfont', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="textfont", parent_name="scattergeo", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -182,7 +166,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -192,14 +176,13 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='scattergeo', **kwargs): + def __init__(self, plotly_name="text", parent_name="scattergeo", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -208,16 +191,14 @@ def __init__(self, plotly_name='text', parent_name='scattergeo', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="scattergeo", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -227,7 +208,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -237,15 +218,12 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="scattergeo", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -254,15 +232,14 @@ def __init__( class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name='selectedpoints', parent_name='scattergeo', **kwargs + self, plotly_name="selectedpoints", parent_name="scattergeo", **kwargs ): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -271,23 +248,21 @@ def __init__( class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='selected', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="selected", parent_name="scattergeo", **kwargs): super(SelectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_class_str=kwargs.pop("data_class_str", "Selected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.scattergeo.selected.Marker instance or dict with compatible properties textfont plotly.graph_objs.scattergeo.selected.Textfont instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -297,17 +272,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="scattergeo", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -316,13 +288,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='scattergeo', **kwargs): + def __init__(self, plotly_name="name", parent_name="scattergeo", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -331,15 +302,14 @@ def __init__(self, plotly_name='name', parent_name='scattergeo', **kwargs): class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__(self, plotly_name='mode', parent_name='scattergeo', **kwargs): + def __init__(self, plotly_name="mode", parent_name="scattergeo", **kwargs): super(ModeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['none']), - flags=kwargs.pop('flags', ['lines', 'markers', 'text']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["none"]), + flags=kwargs.pop("flags", ["lines", "markers", "text"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -348,15 +318,12 @@ def __init__(self, plotly_name='mode', parent_name='scattergeo', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="scattergeo", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -365,14 +332,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='scattergeo', **kwargs): + def __init__(self, plotly_name="meta", parent_name="scattergeo", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -381,16 +347,14 @@ def __init__(self, plotly_name='meta', parent_name='scattergeo', **kwargs): class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="scattergeo", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -516,7 +480,7 @@ def __init__( symbolsrc Sets the source reference on plot.ly for symbol . -""" +""", ), **kwargs ) @@ -526,15 +490,12 @@ def __init__( class LonsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='lonsrc', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="lonsrc", parent_name="scattergeo", **kwargs): super(LonsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -543,13 +504,12 @@ def __init__( class LonValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='lon', parent_name='scattergeo', **kwargs): + def __init__(self, plotly_name="lon", parent_name="scattergeo", **kwargs): super(LonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -558,15 +518,12 @@ def __init__(self, plotly_name='lon', parent_name='scattergeo', **kwargs): class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='locationssrc', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="locationssrc", parent_name="scattergeo", **kwargs): super(LocationssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -575,15 +532,12 @@ def __init__( class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='locations', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="locations", parent_name="scattergeo", **kwargs): super(LocationsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -592,18 +546,13 @@ def __init__( class LocationmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='locationmode', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="locationmode", parent_name="scattergeo", **kwargs): super(LocationmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['ISO-3', 'USA-states', 'country names'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["ISO-3", "USA-states", "country names"]), **kwargs ) @@ -612,14 +561,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='line', parent_name='scattergeo', **kwargs): + def __init__(self, plotly_name="line", parent_name="scattergeo", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the line color. dash @@ -629,7 +578,7 @@ def __init__(self, plotly_name='line', parent_name='scattergeo', **kwargs): dash length list in px (eg "5px,10px,2px,2px"). width Sets the line width (in px). -""" +""", ), **kwargs ) @@ -639,15 +588,12 @@ def __init__(self, plotly_name='line', parent_name='scattergeo', **kwargs): class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='legendgroup', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="legendgroup", parent_name="scattergeo", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -656,15 +602,12 @@ def __init__( class LatsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='latsrc', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="latsrc", parent_name="scattergeo", **kwargs): super(LatsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -673,13 +616,12 @@ def __init__( class LatValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='lat', parent_name='scattergeo', **kwargs): + def __init__(self, plotly_name="lat", parent_name="scattergeo", **kwargs): super(LatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -688,15 +630,12 @@ def __init__(self, plotly_name='lat', parent_name='scattergeo', **kwargs): class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="scattergeo", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -705,14 +644,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='scattergeo', **kwargs): + def __init__(self, plotly_name="ids", parent_name="scattergeo", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -721,15 +659,12 @@ def __init__(self, plotly_name='ids', parent_name='scattergeo', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="scattergeo", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -738,16 +673,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="scattergeo", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -756,18 +688,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='scattergeo', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="scattergeo", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -776,16 +704,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="scattergeo", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -794,16 +719,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="scattergeo", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -839,7 +762,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -849,15 +772,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="scattergeo", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -866,20 +786,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="scattergeo", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop( - 'flags', ['lon', 'lat', 'location', 'text', 'name'] - ), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["lon", "lat", "location", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -888,14 +803,13 @@ def __init__( class GeoValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='geo', parent_name='scattergeo', **kwargs): + def __init__(self, plotly_name="geo", parent_name="scattergeo", **kwargs): super(GeoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'geo'), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "geo"), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -904,16 +818,13 @@ def __init__(self, plotly_name='geo', parent_name='scattergeo', **kwargs): class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='fillcolor', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="fillcolor", parent_name="scattergeo", **kwargs): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -922,14 +833,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='fill', parent_name='scattergeo', **kwargs): + def __init__(self, plotly_name="fill", parent_name="scattergeo", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['none', 'toself']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "toself"]), **kwargs ) @@ -938,15 +848,12 @@ def __init__(self, plotly_name='fill', parent_name='scattergeo', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="scattergeo", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -955,15 +862,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="scattergeo", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -972,14 +876,11 @@ def __init__( class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='connectgaps', parent_name='scattergeo', **kwargs - ): + def __init__(self, plotly_name="connectgaps", parent_name="scattergeo", **kwargs): super(ConnectgapsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/__init__.py index 96d8789b581..0dd601c6f4c 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='scattergeo.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="scattergeo.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='scattergeo.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="scattergeo.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +36,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='scattergeo.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="scattergeo.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -88,7 +75,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -98,18 +85,17 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bordercolorsrc', - parent_name='scattergeo.hoverlabel', + plotly_name="bordercolorsrc", + parent_name="scattergeo.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,19 +104,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='scattergeo.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="scattergeo.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -139,18 +121,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='scattergeo.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="scattergeo.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,19 +137,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='scattergeo.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="scattergeo.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -180,18 +154,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='scattergeo.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="scattergeo.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,19 +170,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='scattergeo.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="scattergeo.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/__init__.py index 691c569dd48..ef225a1d77a 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='scattergeo.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="scattergeo.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scattergeo.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="scattergeo.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,17 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='familysrc', - parent_name='scattergeo.hoverlabel.font', + plotly_name="familysrc", + parent_name="scattergeo.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +55,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='scattergeo.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="scattergeo.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +74,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scattergeo.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="scattergeo.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +90,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattergeo.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="scattergeo.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/line/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/line/__init__.py index c3885cb76e6..b7120211b71 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/line/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='scattergeo.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="scattergeo.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,18 +18,14 @@ def __init__( class DashValidator(_plotly_utils.basevalidators.DashValidator): - - def __init__( - self, plotly_name='dash', parent_name='scattergeo.line', **kwargs - ): + def __init__(self, plotly_name="dash", parent_name="scattergeo.line", **kwargs): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -44,15 +35,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scattergeo.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scattergeo.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/marker/__init__.py index 92e736f72f2..480d56cde05 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='symbolsrc', - parent_name='scattergeo.marker', - **kwargs + self, plotly_name="symbolsrc", parent_name="scattergeo.marker", **kwargs ): super(SymbolsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,77 +18,301 @@ def __init__( class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='symbol', parent_name='scattergeo.marker', **kwargs - ): + def __init__(self, plotly_name="symbol", parent_name="scattergeo.marker", **kwargs): super(SymbolValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 0, 'circle', 100, 'circle-open', 200, 'circle-dot', 300, - 'circle-open-dot', 1, 'square', 101, 'square-open', 201, - 'square-dot', 301, 'square-open-dot', 2, 'diamond', 102, - 'diamond-open', 202, 'diamond-dot', 302, - 'diamond-open-dot', 3, 'cross', 103, 'cross-open', 203, - 'cross-dot', 303, 'cross-open-dot', 4, 'x', 104, 'x-open', - 204, 'x-dot', 304, 'x-open-dot', 5, 'triangle-up', 105, - 'triangle-up-open', 205, 'triangle-up-dot', 305, - 'triangle-up-open-dot', 6, 'triangle-down', 106, - 'triangle-down-open', 206, 'triangle-down-dot', 306, - 'triangle-down-open-dot', 7, 'triangle-left', 107, - 'triangle-left-open', 207, 'triangle-left-dot', 307, - 'triangle-left-open-dot', 8, 'triangle-right', 108, - 'triangle-right-open', 208, 'triangle-right-dot', 308, - 'triangle-right-open-dot', 9, 'triangle-ne', 109, - 'triangle-ne-open', 209, 'triangle-ne-dot', 309, - 'triangle-ne-open-dot', 10, 'triangle-se', 110, - 'triangle-se-open', 210, 'triangle-se-dot', 310, - 'triangle-se-open-dot', 11, 'triangle-sw', 111, - 'triangle-sw-open', 211, 'triangle-sw-dot', 311, - 'triangle-sw-open-dot', 12, 'triangle-nw', 112, - 'triangle-nw-open', 212, 'triangle-nw-dot', 312, - 'triangle-nw-open-dot', 13, 'pentagon', 113, - 'pentagon-open', 213, 'pentagon-dot', 313, - 'pentagon-open-dot', 14, 'hexagon', 114, 'hexagon-open', - 214, 'hexagon-dot', 314, 'hexagon-open-dot', 15, - 'hexagon2', 115, 'hexagon2-open', 215, 'hexagon2-dot', 315, - 'hexagon2-open-dot', 16, 'octagon', 116, 'octagon-open', - 216, 'octagon-dot', 316, 'octagon-open-dot', 17, 'star', - 117, 'star-open', 217, 'star-dot', 317, 'star-open-dot', - 18, 'hexagram', 118, 'hexagram-open', 218, 'hexagram-dot', - 318, 'hexagram-open-dot', 19, 'star-triangle-up', 119, - 'star-triangle-up-open', 219, 'star-triangle-up-dot', 319, - 'star-triangle-up-open-dot', 20, 'star-triangle-down', 120, - 'star-triangle-down-open', 220, 'star-triangle-down-dot', - 320, 'star-triangle-down-open-dot', 21, 'star-square', 121, - 'star-square-open', 221, 'star-square-dot', 321, - 'star-square-open-dot', 22, 'star-diamond', 122, - 'star-diamond-open', 222, 'star-diamond-dot', 322, - 'star-diamond-open-dot', 23, 'diamond-tall', 123, - 'diamond-tall-open', 223, 'diamond-tall-dot', 323, - 'diamond-tall-open-dot', 24, 'diamond-wide', 124, - 'diamond-wide-open', 224, 'diamond-wide-dot', 324, - 'diamond-wide-open-dot', 25, 'hourglass', 125, - 'hourglass-open', 26, 'bowtie', 126, 'bowtie-open', 27, - 'circle-cross', 127, 'circle-cross-open', 28, 'circle-x', - 128, 'circle-x-open', 29, 'square-cross', 129, - 'square-cross-open', 30, 'square-x', 130, 'square-x-open', - 31, 'diamond-cross', 131, 'diamond-cross-open', 32, - 'diamond-x', 132, 'diamond-x-open', 33, 'cross-thin', 133, - 'cross-thin-open', 34, 'x-thin', 134, 'x-thin-open', 35, - 'asterisk', 135, 'asterisk-open', 36, 'hash', 136, - 'hash-open', 236, 'hash-dot', 336, 'hash-open-dot', 37, - 'y-up', 137, 'y-up-open', 38, 'y-down', 138, 'y-down-open', - 39, 'y-left', 139, 'y-left-open', 40, 'y-right', 140, - 'y-right-open', 41, 'line-ew', 141, 'line-ew-open', 42, - 'line-ns', 142, 'line-ns-open', 43, 'line-ne', 143, - 'line-ne-open', 44, 'line-nw', 144, 'line-nw-open' - ] + "values", + [ + 0, + "circle", + 100, + "circle-open", + 200, + "circle-dot", + 300, + "circle-open-dot", + 1, + "square", + 101, + "square-open", + 201, + "square-dot", + 301, + "square-open-dot", + 2, + "diamond", + 102, + "diamond-open", + 202, + "diamond-dot", + 302, + "diamond-open-dot", + 3, + "cross", + 103, + "cross-open", + 203, + "cross-dot", + 303, + "cross-open-dot", + 4, + "x", + 104, + "x-open", + 204, + "x-dot", + 304, + "x-open-dot", + 5, + "triangle-up", + 105, + "triangle-up-open", + 205, + "triangle-up-dot", + 305, + "triangle-up-open-dot", + 6, + "triangle-down", + 106, + "triangle-down-open", + 206, + "triangle-down-dot", + 306, + "triangle-down-open-dot", + 7, + "triangle-left", + 107, + "triangle-left-open", + 207, + "triangle-left-dot", + 307, + "triangle-left-open-dot", + 8, + "triangle-right", + 108, + "triangle-right-open", + 208, + "triangle-right-dot", + 308, + "triangle-right-open-dot", + 9, + "triangle-ne", + 109, + "triangle-ne-open", + 209, + "triangle-ne-dot", + 309, + "triangle-ne-open-dot", + 10, + "triangle-se", + 110, + "triangle-se-open", + 210, + "triangle-se-dot", + 310, + "triangle-se-open-dot", + 11, + "triangle-sw", + 111, + "triangle-sw-open", + 211, + "triangle-sw-dot", + 311, + "triangle-sw-open-dot", + 12, + "triangle-nw", + 112, + "triangle-nw-open", + 212, + "triangle-nw-dot", + 312, + "triangle-nw-open-dot", + 13, + "pentagon", + 113, + "pentagon-open", + 213, + "pentagon-dot", + 313, + "pentagon-open-dot", + 14, + "hexagon", + 114, + "hexagon-open", + 214, + "hexagon-dot", + 314, + "hexagon-open-dot", + 15, + "hexagon2", + 115, + "hexagon2-open", + 215, + "hexagon2-dot", + 315, + "hexagon2-open-dot", + 16, + "octagon", + 116, + "octagon-open", + 216, + "octagon-dot", + 316, + "octagon-open-dot", + 17, + "star", + 117, + "star-open", + 217, + "star-dot", + 317, + "star-open-dot", + 18, + "hexagram", + 118, + "hexagram-open", + 218, + "hexagram-dot", + 318, + "hexagram-open-dot", + 19, + "star-triangle-up", + 119, + "star-triangle-up-open", + 219, + "star-triangle-up-dot", + 319, + "star-triangle-up-open-dot", + 20, + "star-triangle-down", + 120, + "star-triangle-down-open", + 220, + "star-triangle-down-dot", + 320, + "star-triangle-down-open-dot", + 21, + "star-square", + 121, + "star-square-open", + 221, + "star-square-dot", + 321, + "star-square-open-dot", + 22, + "star-diamond", + 122, + "star-diamond-open", + 222, + "star-diamond-dot", + 322, + "star-diamond-open-dot", + 23, + "diamond-tall", + 123, + "diamond-tall-open", + 223, + "diamond-tall-dot", + 323, + "diamond-tall-open-dot", + 24, + "diamond-wide", + 124, + "diamond-wide-open", + 224, + "diamond-wide-dot", + 324, + "diamond-wide-open-dot", + 25, + "hourglass", + 125, + "hourglass-open", + 26, + "bowtie", + 126, + "bowtie-open", + 27, + "circle-cross", + 127, + "circle-cross-open", + 28, + "circle-x", + 128, + "circle-x-open", + 29, + "square-cross", + 129, + "square-cross-open", + 30, + "square-x", + 130, + "square-x-open", + 31, + "diamond-cross", + 131, + "diamond-cross-open", + 32, + "diamond-x", + 132, + "diamond-x-open", + 33, + "cross-thin", + 133, + "cross-thin-open", + 34, + "x-thin", + 134, + "x-thin-open", + 35, + "asterisk", + 135, + "asterisk-open", + 36, + "hash", + 136, + "hash-open", + 236, + "hash-dot", + 336, + "hash-open-dot", + 37, + "y-up", + 137, + "y-up-open", + 38, + "y-down", + 138, + "y-down-open", + 39, + "y-left", + 139, + "y-left-open", + 40, + "y-right", + 140, + "y-right-open", + 41, + "line-ew", + 141, + "line-ew-open", + 42, + "line-ns", + 142, + "line-ns-open", + 43, + "line-ne", + 143, + "line-ne-open", + 44, + "line-nw", + 144, + "line-nw-open", + ], ), **kwargs ) @@ -104,15 +322,14 @@ def __init__( class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='sizesrc', parent_name='scattergeo.marker', **kwargs + self, plotly_name="sizesrc", parent_name="scattergeo.marker", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -121,15 +338,14 @@ def __init__( class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='sizeref', parent_name='scattergeo.marker', **kwargs + self, plotly_name="sizeref", parent_name="scattergeo.marker", **kwargs ): super(SizerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -138,19 +354,15 @@ def __init__( class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='sizemode', - parent_name='scattergeo.marker', - **kwargs + self, plotly_name="sizemode", parent_name="scattergeo.marker", **kwargs ): super(SizemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['diameter', 'area']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["diameter", "area"]), **kwargs ) @@ -159,16 +371,15 @@ def __init__( class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='sizemin', parent_name='scattergeo.marker', **kwargs + self, plotly_name="sizemin", parent_name="scattergeo.marker", **kwargs ): super(SizeminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -177,18 +388,15 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='scattergeo.marker', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="scattergeo.marker", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -197,18 +405,14 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showscale', - parent_name='scattergeo.marker', - **kwargs + self, plotly_name="showscale", parent_name="scattergeo.marker", **kwargs ): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -217,18 +421,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='scattergeo.marker', - **kwargs + self, plotly_name="reversescale", parent_name="scattergeo.marker", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -237,18 +437,14 @@ def __init__( class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='opacitysrc', - parent_name='scattergeo.marker', - **kwargs + self, plotly_name="opacitysrc", parent_name="scattergeo.marker", **kwargs ): super(OpacitysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -257,19 +453,18 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='opacity', parent_name='scattergeo.marker', **kwargs + self, plotly_name="opacity", parent_name="scattergeo.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -278,16 +473,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='scattergeo.marker', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="scattergeo.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -376,7 +569,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -386,19 +579,16 @@ def __init__( class GradientValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='gradient', - parent_name='scattergeo.marker', - **kwargs + self, plotly_name="gradient", parent_name="scattergeo.marker", **kwargs ): super(GradientValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Gradient'), + data_class_str=kwargs.pop("data_class_str", "Gradient"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the final color of the gradient fill: the center color for radial, the right for @@ -412,7 +602,7 @@ def __init__( typesrc Sets the source reference on plot.ly for type . -""" +""", ), **kwargs ) @@ -422,18 +612,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scattergeo.marker', - **kwargs + self, plotly_name="colorsrc", parent_name="scattergeo.marker", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -442,21 +628,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='scattergeo.marker', - **kwargs + self, plotly_name="colorscale", parent_name="scattergeo.marker", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -465,19 +645,16 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='colorbar', - parent_name='scattergeo.marker', - **kwargs + self, plotly_name="colorbar", parent_name="scattergeo.marker", **kwargs ): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -688,7 +865,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -698,20 +875,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='scattergeo.marker', - **kwargs + self, plotly_name="coloraxis", parent_name="scattergeo.marker", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -720,18 +893,15 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scattergeo.marker', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scattergeo.marker", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'scattergeo.marker.colorscale' + "colorscale_path", "scattergeo.marker.colorscale" ), **kwargs ) @@ -741,16 +911,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmin', parent_name='scattergeo.marker', **kwargs - ): + def __init__(self, plotly_name="cmin", parent_name="scattergeo.marker", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -759,16 +926,13 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmid', parent_name='scattergeo.marker', **kwargs - ): + def __init__(self, plotly_name="cmid", parent_name="scattergeo.marker", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -777,16 +941,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmax', parent_name='scattergeo.marker', **kwargs - ): + def __init__(self, plotly_name="cmax", parent_name="scattergeo.marker", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -795,16 +956,13 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='scattergeo.marker', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="scattergeo.marker", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -813,18 +971,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='scattergeo.marker', - **kwargs + self, plotly_name="autocolorscale", parent_name="scattergeo.marker", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/__init__.py index 5e415d3e173..0e3616a17b2 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="scattergeo.marker.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="scattergeo.marker.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,20 +36,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='y', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="y", parent_name="scattergeo.marker.colorbar", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -68,19 +54,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="scattergeo.marker.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -89,19 +71,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="scattergeo.marker.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -110,20 +88,16 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='x', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="x", parent_name="scattergeo.marker.colorbar", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -132,19 +106,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="title", parent_name="scattergeo.marker.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -160,7 +131,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -170,19 +141,18 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='tickwidth', - parent_name='scattergeo.marker.colorbar', + plotly_name="tickwidth", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -191,18 +161,17 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='tickvalssrc', - parent_name='scattergeo.marker.colorbar', + plotly_name="tickvalssrc", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -211,18 +180,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="scattergeo.marker.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -231,18 +196,17 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='ticktextsrc', - parent_name='scattergeo.marker.colorbar', + plotly_name="ticktextsrc", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -251,18 +215,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="scattergeo.marker.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -271,18 +231,17 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='ticksuffix', - parent_name='scattergeo.marker.colorbar', + plotly_name="ticksuffix", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -291,19 +250,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="scattergeo.marker.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -312,18 +267,17 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickprefix', - parent_name='scattergeo.marker.colorbar', + plotly_name="tickprefix", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -332,20 +286,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="scattergeo.marker.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -354,19 +304,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="scattergeo.marker.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -375,19 +321,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='scattergeo.marker.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -395,22 +343,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='scattergeo.marker.colorbar', + plotly_name="tickformatstops", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -444,7 +390,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -454,18 +400,17 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickformat', - parent_name='scattergeo.marker.colorbar', + plotly_name="tickformat", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -474,19 +419,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="scattergeo.marker.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -507,7 +449,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -517,18 +459,17 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='tickcolor', - parent_name='scattergeo.marker.colorbar', + plotly_name="tickcolor", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -537,18 +478,17 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( self, - plotly_name='tickangle', - parent_name='scattergeo.marker.colorbar', + plotly_name="tickangle", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,19 +497,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="scattergeo.marker.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -578,19 +514,18 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='thicknessmode', - parent_name='scattergeo.marker.colorbar', + plotly_name="thicknessmode", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -599,19 +534,18 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='thickness', - parent_name='scattergeo.marker.colorbar', + plotly_name="thickness", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -619,22 +553,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='scattergeo.marker.colorbar', + plotly_name="showticksuffix", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -642,22 +573,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='scattergeo.marker.colorbar', + plotly_name="showtickprefix", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -666,18 +594,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='scattergeo.marker.colorbar', + plotly_name="showticklabels", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -686,19 +613,18 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='showexponent', - parent_name='scattergeo.marker.colorbar', + plotly_name="showexponent", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -706,21 +632,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='scattergeo.marker.colorbar', + plotly_name="separatethousands", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -729,19 +652,18 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='outlinewidth', - parent_name='scattergeo.marker.colorbar', + plotly_name="outlinewidth", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -750,18 +672,17 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='outlinecolor', - parent_name='scattergeo.marker.colorbar', + plotly_name="outlinecolor", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -770,19 +691,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="scattergeo.marker.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -791,19 +708,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="scattergeo.marker.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -812,19 +725,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='len', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="len", parent_name="scattergeo.marker.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -832,24 +741,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='scattergeo.marker.colorbar', + plotly_name="exponentformat", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -858,19 +762,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="scattergeo.marker.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -879,19 +779,18 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='borderwidth', - parent_name='scattergeo.marker.colorbar', + plotly_name="borderwidth", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -900,18 +799,17 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='scattergeo.marker.colorbar', + plotly_name="bordercolor", + parent_name="scattergeo.marker.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -920,17 +818,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='scattergeo.marker.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="scattergeo.marker.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/__init__.py index b043d86dac2..6775886cd13 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scattergeo.marker.colorbar.tickfont', + plotly_name="size", + parent_name="scattergeo.marker.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scattergeo.marker.colorbar.tickfont', + plotly_name="family", + parent_name="scattergeo.marker.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scattergeo.marker.colorbar.tickfont', + plotly_name="color", + parent_name="scattergeo.marker.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/__init__.py index 7cee87092bb..a3d46cd4d95 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='scattergeo.marker.colorbar.tickformatstop', + plotly_name="value", + parent_name="scattergeo.marker.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='scattergeo.marker.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="scattergeo.marker.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='scattergeo.marker.colorbar.tickformatstop', + plotly_name="name", + parent_name="scattergeo.marker.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='scattergeo.marker.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="scattergeo.marker.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='scattergeo.marker.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="scattergeo.marker.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'calc' - }, { - 'valType': 'any', - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "any", "editType": "calc"}, + {"valType": "any", "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/__init__.py index 26aff665482..af11626a572 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='text', - parent_name='scattergeo.marker.colorbar.title', + plotly_name="text", + parent_name="scattergeo.marker.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +21,18 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='side', - parent_name='scattergeo.marker.colorbar.title', + plotly_name="side", + parent_name="scattergeo.marker.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +41,19 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='font', - parent_name='scattergeo.marker.colorbar.title', + plotly_name="font", + parent_name="scattergeo.marker.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +74,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/__init__.py index 2fbe8809ef8..aaa8390c6b4 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scattergeo.marker.colorbar.title.font', + plotly_name="size", + parent_name="scattergeo.marker.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scattergeo.marker.colorbar.title.font', + plotly_name="family", + parent_name="scattergeo.marker.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scattergeo.marker.colorbar.title.font', + plotly_name="color", + parent_name="scattergeo.marker.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/__init__.py index 9c432c5a551..f70226d0a47 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/gradient/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TypesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='typesrc', - parent_name='scattergeo.marker.gradient', - **kwargs + self, plotly_name="typesrc", parent_name="scattergeo.marker.gradient", **kwargs ): super(TypesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,22 +18,16 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='type', - parent_name='scattergeo.marker.gradient', - **kwargs + self, plotly_name="type", parent_name="scattergeo.marker.gradient", **kwargs ): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['radial', 'horizontal', 'vertical', 'none'] - ), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["radial", "horizontal", "vertical", "none"]), **kwargs ) @@ -48,18 +36,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scattergeo.marker.gradient', - **kwargs + self, plotly_name="colorsrc", parent_name="scattergeo.marker.gradient", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -68,18 +52,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattergeo.marker.gradient', - **kwargs + self, plotly_name="color", parent_name="scattergeo.marker.gradient", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/marker/line/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/marker/line/__init__.py index d8b6c4edbbc..93a0222f8f4 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/marker/line/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='widthsrc', - parent_name='scattergeo.marker.line', - **kwargs + self, plotly_name="widthsrc", parent_name="scattergeo.marker.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,21 +18,17 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='scattergeo.marker.line', - **kwargs + self, plotly_name="width", parent_name="scattergeo.marker.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,18 +37,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='scattergeo.marker.line', - **kwargs + self, plotly_name="reversescale", parent_name="scattergeo.marker.line", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -67,18 +53,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scattergeo.marker.line', - **kwargs + self, plotly_name="colorsrc", parent_name="scattergeo.marker.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -87,21 +69,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='scattergeo.marker.line', - **kwargs + self, plotly_name="colorscale", parent_name="scattergeo.marker.line", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -110,20 +86,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='scattergeo.marker.line', - **kwargs + self, plotly_name="coloraxis", parent_name="scattergeo.marker.line", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -132,21 +104,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattergeo.marker.line', - **kwargs + self, plotly_name="color", parent_name="scattergeo.marker.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'scattergeo.marker.line.colorscale' + "colorscale_path", "scattergeo.marker.line.colorscale" ), **kwargs ) @@ -156,19 +124,15 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmin', - parent_name='scattergeo.marker.line', - **kwargs + self, plotly_name="cmin", parent_name="scattergeo.marker.line", **kwargs ): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -177,19 +141,15 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmid', - parent_name='scattergeo.marker.line', - **kwargs + self, plotly_name="cmid", parent_name="scattergeo.marker.line", **kwargs ): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -198,19 +158,15 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmax', - parent_name='scattergeo.marker.line', - **kwargs + self, plotly_name="cmax", parent_name="scattergeo.marker.line", **kwargs ): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -219,19 +175,15 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='cauto', - parent_name='scattergeo.marker.line', - **kwargs + self, plotly_name="cauto", parent_name="scattergeo.marker.line", **kwargs ): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -240,18 +192,17 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='autocolorscale', - parent_name='scattergeo.marker.line', + plotly_name="autocolorscale", + parent_name="scattergeo.marker.line", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/selected/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/selected/__init__.py index cddf38d1c6d..4a0658d0847 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/selected/__init__.py @@ -1,25 +1,20 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='scattergeo.selected', - **kwargs + self, plotly_name="textfont", parent_name="scattergeo.selected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of selected points. -""" +""", ), **kwargs ) @@ -29,26 +24,23 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='scattergeo.selected', - **kwargs + self, plotly_name="marker", parent_name="scattergeo.selected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of selected points. opacity Sets the marker opacity of selected points. size Sets the marker size of selected points. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/selected/marker/__init__.py index eefdb7c40a6..966036e37af 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/selected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scattergeo.selected.marker', - **kwargs + self, plotly_name="size", parent_name="scattergeo.selected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='scattergeo.selected.marker', - **kwargs + self, plotly_name="opacity", parent_name="scattergeo.selected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattergeo.selected.marker', - **kwargs + self, plotly_name="color", parent_name="scattergeo.selected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/selected/textfont/__init__.py index 41540726722..16a39e52c66 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/selected/textfont/__init__.py @@ -1,20 +1,14 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattergeo.selected.textfont', - **kwargs + self, plotly_name="color", parent_name="scattergeo.selected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/stream/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/stream/__init__.py index 50e278c875a..89ed38e4b19 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='scattergeo.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="scattergeo.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,19 +18,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='scattergeo.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="scattergeo.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/textfont/__init__.py index 5e0dbafe07a..cfb15b70f89 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/textfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='scattergeo.textfont', - **kwargs + self, plotly_name="sizesrc", parent_name="scattergeo.textfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='scattergeo.textfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="scattergeo.textfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,18 +34,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='scattergeo.textfont', - **kwargs + self, plotly_name="familysrc", parent_name="scattergeo.textfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -63,21 +50,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='scattergeo.textfont', - **kwargs + self, plotly_name="family", parent_name="scattergeo.textfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -86,18 +69,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scattergeo.textfont', - **kwargs + self, plotly_name="colorsrc", parent_name="scattergeo.textfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -106,15 +85,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='color', parent_name='scattergeo.textfont', **kwargs + self, plotly_name="color", parent_name="scattergeo.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/unselected/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/unselected/__init__.py index cf7457be364..59904da9065 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/unselected/__init__.py @@ -1,26 +1,21 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='scattergeo.unselected', - **kwargs + self, plotly_name="textfont", parent_name="scattergeo.unselected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) @@ -30,19 +25,16 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='scattergeo.unselected', - **kwargs + self, plotly_name="marker", parent_name="scattergeo.unselected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of unselected points, applied only when a selection exists. @@ -52,7 +44,7 @@ def __init__( size Sets the marker size of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/__init__.py index 393ab62b1b4..730ccf5e11f 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/unselected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scattergeo.unselected.marker', - **kwargs + self, plotly_name="size", parent_name="scattergeo.unselected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='opacity', - parent_name='scattergeo.unselected.marker', + plotly_name="opacity", + parent_name="scattergeo.unselected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +40,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattergeo.unselected.marker', - **kwargs + self, plotly_name="color", parent_name="scattergeo.unselected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergeo/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattergeo/unselected/textfont/__init__.py index 0a65cf09a98..90cf56087f3 100644 --- a/packages/python/plotly/plotly/validators/scattergeo/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergeo/unselected/textfont/__init__.py @@ -1,20 +1,17 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scattergeo.unselected.textfont', + plotly_name="color", + parent_name="scattergeo.unselected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/__init__.py b/packages/python/plotly/plotly/validators/scattergl/__init__.py index 6d08065e3c5..6620869961b 100644 --- a/packages/python/plotly/plotly/validators/scattergl/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="scattergl", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,22 +16,32 @@ def __init__(self, plotly_name='ysrc', parent_name='scattergl', **kwargs): class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ycalendar', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="ycalendar", parent_name="scattergl", **kwargs): super(YcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -44,14 +51,13 @@ def __init__( class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='yaxis', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="yaxis", parent_name="scattergl", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -60,14 +66,13 @@ def __init__(self, plotly_name='yaxis', parent_name='scattergl', **kwargs): class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='y0', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="y0", parent_name="scattergl", **kwargs): super(Y0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -76,14 +81,13 @@ def __init__(self, plotly_name='y0', parent_name='scattergl', **kwargs): class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="y", parent_name="scattergl", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -92,13 +96,12 @@ def __init__(self, plotly_name='y', parent_name='scattergl', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="scattergl", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -107,22 +110,32 @@ def __init__(self, plotly_name='xsrc', parent_name='scattergl', **kwargs): class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xcalendar', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="xcalendar", parent_name="scattergl", **kwargs): super(XcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -132,14 +145,13 @@ def __init__( class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='xaxis', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="xaxis", parent_name="scattergl", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -148,14 +160,13 @@ def __init__(self, plotly_name='xaxis', parent_name='scattergl', **kwargs): class X0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='x0', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="x0", parent_name="scattergl", **kwargs): super(X0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -164,14 +175,13 @@ def __init__(self, plotly_name='x0', parent_name='scattergl', **kwargs): class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="x", parent_name="scattergl", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -180,16 +190,13 @@ def __init__(self, plotly_name='x', parent_name='scattergl', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="scattergl", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -198,23 +205,21 @@ def __init__( class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='unselected', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="unselected", parent_name="scattergl", **kwargs): super(UnselectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_class_str=kwargs.pop("data_class_str", "Unselected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.scattergl.unselected.Marker instance or dict with compatible properties textfont plotly.graph_objs.scattergl.unselected.Textfont instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -224,15 +229,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="scattergl", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -241,14 +243,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="uid", parent_name="scattergl", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -257,15 +258,12 @@ def __init__(self, plotly_name='uid', parent_name='scattergl', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="scattergl", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -274,15 +272,14 @@ def __init__( class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='textpositionsrc', parent_name='scattergl', **kwargs + self, plotly_name="textpositionsrc", parent_name="scattergl", **kwargs ): super(TextpositionsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -291,22 +288,26 @@ def __init__( class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='textposition', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="textposition", parent_name="scattergl", **kwargs): super(TextpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 'top left', 'top center', 'top right', 'middle left', - 'middle center', 'middle right', 'bottom left', - 'bottom center', 'bottom right' - ] + "values", + [ + "top left", + "top center", + "top right", + "middle left", + "middle center", + "middle right", + "bottom left", + "bottom center", + "bottom right", + ], ), **kwargs ) @@ -316,16 +317,14 @@ def __init__( class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='textfont', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="textfont", parent_name="scattergl", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -355,7 +354,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -365,14 +364,13 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="text", parent_name="scattergl", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -381,16 +379,14 @@ def __init__(self, plotly_name='text', parent_name='scattergl', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="scattergl", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -400,7 +396,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -410,15 +406,12 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="scattergl", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -427,15 +420,12 @@ def __init__( class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='selectedpoints', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="selectedpoints", parent_name="scattergl", **kwargs): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -444,23 +434,21 @@ def __init__( class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='selected', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="selected", parent_name="scattergl", **kwargs): super(SelectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_class_str=kwargs.pop("data_class_str", "Selected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.scattergl.selected.Marker instance or dict with compatible properties textfont plotly.graph_objs.scattergl.selected.Textfont instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -470,17 +458,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="scattergl", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -489,13 +474,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="name", parent_name="scattergl", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -504,15 +488,14 @@ def __init__(self, plotly_name='name', parent_name='scattergl', **kwargs): class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__(self, plotly_name='mode', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="mode", parent_name="scattergl", **kwargs): super(ModeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['none']), - flags=kwargs.pop('flags', ['lines', 'markers', 'text']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["none"]), + flags=kwargs.pop("flags", ["lines", "markers", "text"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -521,15 +504,12 @@ def __init__(self, plotly_name='mode', parent_name='scattergl', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="scattergl", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -538,14 +518,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="meta", parent_name="scattergl", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -554,16 +533,14 @@ def __init__(self, plotly_name='meta', parent_name='scattergl', **kwargs): class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="scattergl", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -686,7 +663,7 @@ def __init__( symbolsrc Sets the source reference on plot.ly for symbol . -""" +""", ), **kwargs ) @@ -696,14 +673,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='line', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="line", parent_name="scattergl", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the line color. dash @@ -713,7 +690,7 @@ def __init__(self, plotly_name='line', parent_name='scattergl', **kwargs): correspond to step-wise line shapes. width Sets the line width (in px). -""" +""", ), **kwargs ) @@ -723,15 +700,12 @@ def __init__(self, plotly_name='line', parent_name='scattergl', **kwargs): class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='legendgroup', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="legendgroup", parent_name="scattergl", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -740,15 +714,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="scattergl", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -757,14 +728,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="ids", parent_name="scattergl", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -773,15 +743,12 @@ def __init__(self, plotly_name='ids', parent_name='scattergl', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="scattergl", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -790,16 +757,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="scattergl", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -808,18 +772,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='scattergl', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="scattergl", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -828,16 +788,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="scattergl", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -846,16 +803,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="scattergl", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -891,7 +846,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -901,15 +856,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="scattergl", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -918,18 +870,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="scattergl", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -938,16 +887,13 @@ def __init__( class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='fillcolor', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="fillcolor", parent_name="scattergl", **kwargs): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -956,18 +902,23 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='fill', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="fill", parent_name="scattergl", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 'none', 'tozeroy', 'tozerox', 'tonexty', 'tonextx', - 'toself', 'tonext' - ] + "values", + [ + "none", + "tozeroy", + "tozerox", + "tonexty", + "tonextx", + "toself", + "tonext", + ], ), **kwargs ) @@ -977,16 +928,14 @@ def __init__(self, plotly_name='fill', parent_name='scattergl', **kwargs): class ErrorYValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='error_y', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="error_y", parent_name="scattergl", **kwargs): super(ErrorYValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ErrorY'), + data_class_str=kwargs.pop("data_class_str", "ErrorY"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ array Sets the data corresponding the length of each error bar. Values are plotted relative to the @@ -1042,7 +991,7 @@ def __init__( width Sets the width (in px) of the cross-bar at both ends of the error bars. -""" +""", ), **kwargs ) @@ -1052,16 +1001,14 @@ def __init__( class ErrorXValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='error_x', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="error_x", parent_name="scattergl", **kwargs): super(ErrorXValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ErrorX'), + data_class_str=kwargs.pop("data_class_str", "ErrorX"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ array Sets the data corresponding the length of each error bar. Values are plotted relative to the @@ -1119,7 +1066,7 @@ def __init__( width Sets the width (in px) of the cross-bar at both ends of the error bars. -""" +""", ), **kwargs ) @@ -1129,14 +1076,13 @@ def __init__( class DyValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dy', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="dy", parent_name="scattergl", **kwargs): super(DyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1145,14 +1091,13 @@ def __init__(self, plotly_name='dy', parent_name='scattergl', **kwargs): class DxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dx', parent_name='scattergl', **kwargs): + def __init__(self, plotly_name="dx", parent_name="scattergl", **kwargs): super(DxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1161,15 +1106,12 @@ def __init__(self, plotly_name='dx', parent_name='scattergl', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="scattergl", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1178,15 +1120,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="scattergl", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1195,14 +1134,11 @@ def __init__( class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='connectgaps', parent_name='scattergl', **kwargs - ): + def __init__(self, plotly_name="connectgaps", parent_name="scattergl", **kwargs): super(ConnectgapsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/error_x/__init__.py b/packages/python/plotly/plotly/validators/scattergl/error_x/__init__.py index df29083ac75..2bfdf925cec 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_x/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_x/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='scattergl.error_x', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="scattergl.error_x", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,15 +17,14 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='visible', parent_name='scattergl.error_x', **kwargs + self, plotly_name="visible", parent_name="scattergl.error_x", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,19 +33,15 @@ def __init__( class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='valueminus', - parent_name='scattergl.error_x', - **kwargs + self, plotly_name="valueminus", parent_name="scattergl.error_x", **kwargs ): super(ValueminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -60,16 +50,13 @@ def __init__( class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='value', parent_name='scattergl.error_x', **kwargs - ): + def __init__(self, plotly_name="value", parent_name="scattergl.error_x", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -78,18 +65,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='scattergl.error_x', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="scattergl.error_x", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['percent', 'constant', 'sqrt', 'data'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs ) @@ -98,19 +80,15 @@ def __init__( class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='tracerefminus', - parent_name='scattergl.error_x', - **kwargs + self, plotly_name="tracerefminus", parent_name="scattergl.error_x", **kwargs ): super(TracerefminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -119,19 +97,15 @@ def __init__( class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='traceref', - parent_name='scattergl.error_x', - **kwargs + self, plotly_name="traceref", parent_name="scattergl.error_x", **kwargs ): super(TracerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -140,19 +114,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='scattergl.error_x', - **kwargs + self, plotly_name="thickness", parent_name="scattergl.error_x", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -161,18 +131,14 @@ def __init__( class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='symmetric', - parent_name='scattergl.error_x', - **kwargs + self, plotly_name="symmetric", parent_name="scattergl.error_x", **kwargs ): super(SymmetricValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -181,18 +147,14 @@ def __init__( class CopyYstyleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='copy_ystyle', - parent_name='scattergl.error_x', - **kwargs + self, plotly_name="copy_ystyle", parent_name="scattergl.error_x", **kwargs ): super(CopyYstyleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -201,15 +163,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scattergl.error_x', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scattergl.error_x", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -218,18 +177,14 @@ def __init__( class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='arraysrc', - parent_name='scattergl.error_x', - **kwargs + self, plotly_name="arraysrc", parent_name="scattergl.error_x", **kwargs ): super(ArraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -238,18 +193,14 @@ def __init__( class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='arrayminussrc', - parent_name='scattergl.error_x', - **kwargs + self, plotly_name="arrayminussrc", parent_name="scattergl.error_x", **kwargs ): super(ArrayminussrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -258,18 +209,14 @@ def __init__( class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='arrayminus', - parent_name='scattergl.error_x', - **kwargs + self, plotly_name="arrayminus", parent_name="scattergl.error_x", **kwargs ): super(ArrayminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -278,14 +225,11 @@ def __init__( class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='array', parent_name='scattergl.error_x', **kwargs - ): + def __init__(self, plotly_name="array", parent_name="scattergl.error_x", **kwargs): super(ArrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/error_y/__init__.py b/packages/python/plotly/plotly/validators/scattergl/error_y/__init__.py index 5dea807b017..6a595b193a3 100644 --- a/packages/python/plotly/plotly/validators/scattergl/error_y/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/error_y/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='scattergl.error_y', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="scattergl.error_y", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,15 +17,14 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='visible', parent_name='scattergl.error_y', **kwargs + self, plotly_name="visible", parent_name="scattergl.error_y", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,19 +33,15 @@ def __init__( class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='valueminus', - parent_name='scattergl.error_y', - **kwargs + self, plotly_name="valueminus", parent_name="scattergl.error_y", **kwargs ): super(ValueminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -60,16 +50,13 @@ def __init__( class ValueValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='value', parent_name='scattergl.error_y', **kwargs - ): + def __init__(self, plotly_name="value", parent_name="scattergl.error_y", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -78,18 +65,13 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='type', parent_name='scattergl.error_y', **kwargs - ): + def __init__(self, plotly_name="type", parent_name="scattergl.error_y", **kwargs): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop( - 'values', ['percent', 'constant', 'sqrt', 'data'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs ) @@ -98,19 +80,15 @@ def __init__( class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='tracerefminus', - parent_name='scattergl.error_y', - **kwargs + self, plotly_name="tracerefminus", parent_name="scattergl.error_y", **kwargs ): super(TracerefminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -119,19 +97,15 @@ def __init__( class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='traceref', - parent_name='scattergl.error_y', - **kwargs + self, plotly_name="traceref", parent_name="scattergl.error_y", **kwargs ): super(TracerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -140,19 +114,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='scattergl.error_y', - **kwargs + self, plotly_name="thickness", parent_name="scattergl.error_y", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -161,18 +131,14 @@ def __init__( class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='symmetric', - parent_name='scattergl.error_y', - **kwargs + self, plotly_name="symmetric", parent_name="scattergl.error_y", **kwargs ): super(SymmetricValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -181,15 +147,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scattergl.error_y', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scattergl.error_y", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -198,18 +161,14 @@ def __init__( class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='arraysrc', - parent_name='scattergl.error_y', - **kwargs + self, plotly_name="arraysrc", parent_name="scattergl.error_y", **kwargs ): super(ArraysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -218,18 +177,14 @@ def __init__( class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='arrayminussrc', - parent_name='scattergl.error_y', - **kwargs + self, plotly_name="arrayminussrc", parent_name="scattergl.error_y", **kwargs ): super(ArrayminussrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -238,18 +193,14 @@ def __init__( class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='arrayminus', - parent_name='scattergl.error_y', - **kwargs + self, plotly_name="arrayminus", parent_name="scattergl.error_y", **kwargs ): super(ArrayminusValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -258,14 +209,11 @@ def __init__( class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='array', parent_name='scattergl.error_y', **kwargs - ): + def __init__(self, plotly_name="array", parent_name="scattergl.error_y", **kwargs): super(ArrayValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/__init__.py index 623f70156b2..99af268bb48 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='scattergl.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="scattergl.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='scattergl.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="scattergl.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='font', parent_name='scattergl.hoverlabel', **kwargs + self, plotly_name="font", parent_name="scattergl.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +75,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +85,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='scattergl.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="scattergl.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +101,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='scattergl.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="scattergl.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +118,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='scattergl.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="scattergl.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,19 +134,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='scattergl.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="scattergl.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -177,18 +151,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='scattergl.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="scattergl.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -197,19 +167,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='scattergl.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="scattergl.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/__init__.py index 9ceb376b563..ca8a85c50f5 100644 --- a/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='scattergl.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="scattergl.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scattergl.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="scattergl.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='scattergl.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="scattergl.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='scattergl.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="scattergl.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scattergl.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="scattergl.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattergl.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="scattergl.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/line/__init__.py b/packages/python/plotly/plotly/validators/scattergl/line/__init__.py index d50b584fa12..10ff1eb68f8 100644 --- a/packages/python/plotly/plotly/validators/scattergl/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/line/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='scattergl.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="scattergl.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='shape', parent_name='scattergl.line', **kwargs - ): + def __init__(self, plotly_name="shape", parent_name="scattergl.line", **kwargs): super(ShapeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['linear', 'hv', 'vh', 'hvh', 'vhv']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["linear", "hv", "vh", "hvh", "vhv"]), **kwargs ) @@ -41,18 +33,14 @@ def __init__( class DashValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='dash', parent_name='scattergl.line', **kwargs - ): + def __init__(self, plotly_name="dash", parent_name="scattergl.line", **kwargs): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -62,15 +50,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scattergl.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scattergl.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/__init__.py b/packages/python/plotly/plotly/validators/scattergl/marker/__init__.py index cba6a630d60..fbdd52ca492 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='symbolsrc', - parent_name='scattergl.marker', - **kwargs + self, plotly_name="symbolsrc", parent_name="scattergl.marker", **kwargs ): super(SymbolsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,77 +18,301 @@ def __init__( class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='symbol', parent_name='scattergl.marker', **kwargs - ): + def __init__(self, plotly_name="symbol", parent_name="scattergl.marker", **kwargs): super(SymbolValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 0, 'circle', 100, 'circle-open', 200, 'circle-dot', 300, - 'circle-open-dot', 1, 'square', 101, 'square-open', 201, - 'square-dot', 301, 'square-open-dot', 2, 'diamond', 102, - 'diamond-open', 202, 'diamond-dot', 302, - 'diamond-open-dot', 3, 'cross', 103, 'cross-open', 203, - 'cross-dot', 303, 'cross-open-dot', 4, 'x', 104, 'x-open', - 204, 'x-dot', 304, 'x-open-dot', 5, 'triangle-up', 105, - 'triangle-up-open', 205, 'triangle-up-dot', 305, - 'triangle-up-open-dot', 6, 'triangle-down', 106, - 'triangle-down-open', 206, 'triangle-down-dot', 306, - 'triangle-down-open-dot', 7, 'triangle-left', 107, - 'triangle-left-open', 207, 'triangle-left-dot', 307, - 'triangle-left-open-dot', 8, 'triangle-right', 108, - 'triangle-right-open', 208, 'triangle-right-dot', 308, - 'triangle-right-open-dot', 9, 'triangle-ne', 109, - 'triangle-ne-open', 209, 'triangle-ne-dot', 309, - 'triangle-ne-open-dot', 10, 'triangle-se', 110, - 'triangle-se-open', 210, 'triangle-se-dot', 310, - 'triangle-se-open-dot', 11, 'triangle-sw', 111, - 'triangle-sw-open', 211, 'triangle-sw-dot', 311, - 'triangle-sw-open-dot', 12, 'triangle-nw', 112, - 'triangle-nw-open', 212, 'triangle-nw-dot', 312, - 'triangle-nw-open-dot', 13, 'pentagon', 113, - 'pentagon-open', 213, 'pentagon-dot', 313, - 'pentagon-open-dot', 14, 'hexagon', 114, 'hexagon-open', - 214, 'hexagon-dot', 314, 'hexagon-open-dot', 15, - 'hexagon2', 115, 'hexagon2-open', 215, 'hexagon2-dot', 315, - 'hexagon2-open-dot', 16, 'octagon', 116, 'octagon-open', - 216, 'octagon-dot', 316, 'octagon-open-dot', 17, 'star', - 117, 'star-open', 217, 'star-dot', 317, 'star-open-dot', - 18, 'hexagram', 118, 'hexagram-open', 218, 'hexagram-dot', - 318, 'hexagram-open-dot', 19, 'star-triangle-up', 119, - 'star-triangle-up-open', 219, 'star-triangle-up-dot', 319, - 'star-triangle-up-open-dot', 20, 'star-triangle-down', 120, - 'star-triangle-down-open', 220, 'star-triangle-down-dot', - 320, 'star-triangle-down-open-dot', 21, 'star-square', 121, - 'star-square-open', 221, 'star-square-dot', 321, - 'star-square-open-dot', 22, 'star-diamond', 122, - 'star-diamond-open', 222, 'star-diamond-dot', 322, - 'star-diamond-open-dot', 23, 'diamond-tall', 123, - 'diamond-tall-open', 223, 'diamond-tall-dot', 323, - 'diamond-tall-open-dot', 24, 'diamond-wide', 124, - 'diamond-wide-open', 224, 'diamond-wide-dot', 324, - 'diamond-wide-open-dot', 25, 'hourglass', 125, - 'hourglass-open', 26, 'bowtie', 126, 'bowtie-open', 27, - 'circle-cross', 127, 'circle-cross-open', 28, 'circle-x', - 128, 'circle-x-open', 29, 'square-cross', 129, - 'square-cross-open', 30, 'square-x', 130, 'square-x-open', - 31, 'diamond-cross', 131, 'diamond-cross-open', 32, - 'diamond-x', 132, 'diamond-x-open', 33, 'cross-thin', 133, - 'cross-thin-open', 34, 'x-thin', 134, 'x-thin-open', 35, - 'asterisk', 135, 'asterisk-open', 36, 'hash', 136, - 'hash-open', 236, 'hash-dot', 336, 'hash-open-dot', 37, - 'y-up', 137, 'y-up-open', 38, 'y-down', 138, 'y-down-open', - 39, 'y-left', 139, 'y-left-open', 40, 'y-right', 140, - 'y-right-open', 41, 'line-ew', 141, 'line-ew-open', 42, - 'line-ns', 142, 'line-ns-open', 43, 'line-ne', 143, - 'line-ne-open', 44, 'line-nw', 144, 'line-nw-open' - ] + "values", + [ + 0, + "circle", + 100, + "circle-open", + 200, + "circle-dot", + 300, + "circle-open-dot", + 1, + "square", + 101, + "square-open", + 201, + "square-dot", + 301, + "square-open-dot", + 2, + "diamond", + 102, + "diamond-open", + 202, + "diamond-dot", + 302, + "diamond-open-dot", + 3, + "cross", + 103, + "cross-open", + 203, + "cross-dot", + 303, + "cross-open-dot", + 4, + "x", + 104, + "x-open", + 204, + "x-dot", + 304, + "x-open-dot", + 5, + "triangle-up", + 105, + "triangle-up-open", + 205, + "triangle-up-dot", + 305, + "triangle-up-open-dot", + 6, + "triangle-down", + 106, + "triangle-down-open", + 206, + "triangle-down-dot", + 306, + "triangle-down-open-dot", + 7, + "triangle-left", + 107, + "triangle-left-open", + 207, + "triangle-left-dot", + 307, + "triangle-left-open-dot", + 8, + "triangle-right", + 108, + "triangle-right-open", + 208, + "triangle-right-dot", + 308, + "triangle-right-open-dot", + 9, + "triangle-ne", + 109, + "triangle-ne-open", + 209, + "triangle-ne-dot", + 309, + "triangle-ne-open-dot", + 10, + "triangle-se", + 110, + "triangle-se-open", + 210, + "triangle-se-dot", + 310, + "triangle-se-open-dot", + 11, + "triangle-sw", + 111, + "triangle-sw-open", + 211, + "triangle-sw-dot", + 311, + "triangle-sw-open-dot", + 12, + "triangle-nw", + 112, + "triangle-nw-open", + 212, + "triangle-nw-dot", + 312, + "triangle-nw-open-dot", + 13, + "pentagon", + 113, + "pentagon-open", + 213, + "pentagon-dot", + 313, + "pentagon-open-dot", + 14, + "hexagon", + 114, + "hexagon-open", + 214, + "hexagon-dot", + 314, + "hexagon-open-dot", + 15, + "hexagon2", + 115, + "hexagon2-open", + 215, + "hexagon2-dot", + 315, + "hexagon2-open-dot", + 16, + "octagon", + 116, + "octagon-open", + 216, + "octagon-dot", + 316, + "octagon-open-dot", + 17, + "star", + 117, + "star-open", + 217, + "star-dot", + 317, + "star-open-dot", + 18, + "hexagram", + 118, + "hexagram-open", + 218, + "hexagram-dot", + 318, + "hexagram-open-dot", + 19, + "star-triangle-up", + 119, + "star-triangle-up-open", + 219, + "star-triangle-up-dot", + 319, + "star-triangle-up-open-dot", + 20, + "star-triangle-down", + 120, + "star-triangle-down-open", + 220, + "star-triangle-down-dot", + 320, + "star-triangle-down-open-dot", + 21, + "star-square", + 121, + "star-square-open", + 221, + "star-square-dot", + 321, + "star-square-open-dot", + 22, + "star-diamond", + 122, + "star-diamond-open", + 222, + "star-diamond-dot", + 322, + "star-diamond-open-dot", + 23, + "diamond-tall", + 123, + "diamond-tall-open", + 223, + "diamond-tall-dot", + 323, + "diamond-tall-open-dot", + 24, + "diamond-wide", + 124, + "diamond-wide-open", + 224, + "diamond-wide-dot", + 324, + "diamond-wide-open-dot", + 25, + "hourglass", + 125, + "hourglass-open", + 26, + "bowtie", + 126, + "bowtie-open", + 27, + "circle-cross", + 127, + "circle-cross-open", + 28, + "circle-x", + 128, + "circle-x-open", + 29, + "square-cross", + 129, + "square-cross-open", + 30, + "square-x", + 130, + "square-x-open", + 31, + "diamond-cross", + 131, + "diamond-cross-open", + 32, + "diamond-x", + 132, + "diamond-x-open", + 33, + "cross-thin", + 133, + "cross-thin-open", + 34, + "x-thin", + 134, + "x-thin-open", + 35, + "asterisk", + 135, + "asterisk-open", + 36, + "hash", + 136, + "hash-open", + 236, + "hash-dot", + 336, + "hash-open-dot", + 37, + "y-up", + 137, + "y-up-open", + 38, + "y-down", + 138, + "y-down-open", + 39, + "y-left", + 139, + "y-left-open", + 40, + "y-right", + 140, + "y-right-open", + 41, + "line-ew", + 141, + "line-ew-open", + 42, + "line-ns", + 142, + "line-ns-open", + 43, + "line-ne", + 143, + "line-ne-open", + 44, + "line-nw", + 144, + "line-nw-open", + ], ), **kwargs ) @@ -104,15 +322,12 @@ def __init__( class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='sizesrc', parent_name='scattergl.marker', **kwargs - ): + def __init__(self, plotly_name="sizesrc", parent_name="scattergl.marker", **kwargs): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -121,15 +336,12 @@ def __init__( class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='sizeref', parent_name='scattergl.marker', **kwargs - ): + def __init__(self, plotly_name="sizeref", parent_name="scattergl.marker", **kwargs): super(SizerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -138,16 +350,15 @@ def __init__( class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='sizemode', parent_name='scattergl.marker', **kwargs + self, plotly_name="sizemode", parent_name="scattergl.marker", **kwargs ): super(SizemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['diameter', 'area']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["diameter", "area"]), **kwargs ) @@ -156,16 +367,13 @@ def __init__( class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='sizemin', parent_name='scattergl.marker', **kwargs - ): + def __init__(self, plotly_name="sizemin", parent_name="scattergl.marker", **kwargs): super(SizeminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -174,18 +382,15 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='scattergl.marker', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="scattergl.marker", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -194,18 +399,14 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showscale', - parent_name='scattergl.marker', - **kwargs + self, plotly_name="showscale", parent_name="scattergl.marker", **kwargs ): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -214,18 +415,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='scattergl.marker', - **kwargs + self, plotly_name="reversescale", parent_name="scattergl.marker", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -234,18 +431,14 @@ def __init__( class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='opacitysrc', - parent_name='scattergl.marker', - **kwargs + self, plotly_name="opacitysrc", parent_name="scattergl.marker", **kwargs ): super(OpacitysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -254,19 +447,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='scattergl.marker', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="scattergl.marker", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -275,16 +465,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='scattergl.marker', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="scattergl.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -373,7 +561,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -383,15 +571,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='colorsrc', parent_name='scattergl.marker', **kwargs + self, plotly_name="colorsrc", parent_name="scattergl.marker", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -400,21 +587,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='scattergl.marker', - **kwargs + self, plotly_name="colorscale", parent_name="scattergl.marker", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -423,16 +604,16 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='colorbar', parent_name='scattergl.marker', **kwargs + self, plotly_name="colorbar", parent_name="scattergl.marker", **kwargs ): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -643,7 +824,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -653,20 +834,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='scattergl.marker', - **kwargs + self, plotly_name="coloraxis", parent_name="scattergl.marker", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -675,18 +852,15 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scattergl.marker', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scattergl.marker", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'scattergl.marker.colorscale' + "colorscale_path", "scattergl.marker.colorscale" ), **kwargs ) @@ -696,16 +870,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmin', parent_name='scattergl.marker', **kwargs - ): + def __init__(self, plotly_name="cmin", parent_name="scattergl.marker", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -714,16 +885,13 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmid', parent_name='scattergl.marker', **kwargs - ): + def __init__(self, plotly_name="cmid", parent_name="scattergl.marker", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -732,16 +900,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmax', parent_name='scattergl.marker', **kwargs - ): + def __init__(self, plotly_name="cmax", parent_name="scattergl.marker", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -750,16 +915,13 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='scattergl.marker', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="scattergl.marker", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -768,18 +930,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='scattergl.marker', - **kwargs + self, plotly_name="autocolorscale", parent_name="scattergl.marker", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/__init__.py index 3558c8b58d4..5366dd76364 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="scattergl.marker.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="scattergl.marker.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,20 +36,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='y', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="y", parent_name="scattergl.marker.colorbar", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -68,19 +54,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="scattergl.marker.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -89,19 +71,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="scattergl.marker.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -110,20 +88,16 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='x', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="x", parent_name="scattergl.marker.colorbar", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -132,19 +106,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="title", parent_name="scattergl.marker.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -160,7 +131,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -170,19 +141,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="scattergl.marker.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -191,18 +158,17 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='tickvalssrc', - parent_name='scattergl.marker.colorbar', + plotly_name="tickvalssrc", + parent_name="scattergl.marker.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -211,18 +177,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="scattergl.marker.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -231,18 +193,17 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='ticktextsrc', - parent_name='scattergl.marker.colorbar', + plotly_name="ticktextsrc", + parent_name="scattergl.marker.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -251,18 +212,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="scattergl.marker.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -271,18 +228,17 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='ticksuffix', - parent_name='scattergl.marker.colorbar', + plotly_name="ticksuffix", + parent_name="scattergl.marker.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -291,19 +247,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="scattergl.marker.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -312,18 +264,17 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickprefix', - parent_name='scattergl.marker.colorbar', + plotly_name="tickprefix", + parent_name="scattergl.marker.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -332,20 +283,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="scattergl.marker.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -354,19 +301,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="scattergl.marker.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -375,19 +318,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='scattergl.marker.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="scattergl.marker.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -395,22 +340,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='scattergl.marker.colorbar', + plotly_name="tickformatstops", + parent_name="scattergl.marker.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -444,7 +387,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -454,18 +397,17 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickformat', - parent_name='scattergl.marker.colorbar', + plotly_name="tickformat", + parent_name="scattergl.marker.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -474,19 +416,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="scattergl.marker.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -507,7 +446,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -517,18 +456,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="scattergl.marker.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -537,18 +472,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="scattergl.marker.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,19 +488,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="scattergl.marker.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -578,19 +505,18 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='thicknessmode', - parent_name='scattergl.marker.colorbar', + plotly_name="thicknessmode", + parent_name="scattergl.marker.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -599,19 +525,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="scattergl.marker.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -619,22 +541,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='scattergl.marker.colorbar', + plotly_name="showticksuffix", + parent_name="scattergl.marker.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -642,22 +561,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='scattergl.marker.colorbar', + plotly_name="showtickprefix", + parent_name="scattergl.marker.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -666,18 +582,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='scattergl.marker.colorbar', + plotly_name="showticklabels", + parent_name="scattergl.marker.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -686,19 +601,18 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='showexponent', - parent_name='scattergl.marker.colorbar', + plotly_name="showexponent", + parent_name="scattergl.marker.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -706,21 +620,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='scattergl.marker.colorbar', + plotly_name="separatethousands", + parent_name="scattergl.marker.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -729,19 +640,18 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='outlinewidth', - parent_name='scattergl.marker.colorbar', + plotly_name="outlinewidth", + parent_name="scattergl.marker.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -750,18 +660,17 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='outlinecolor', - parent_name='scattergl.marker.colorbar', + plotly_name="outlinecolor", + parent_name="scattergl.marker.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -770,19 +679,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="scattergl.marker.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -791,19 +696,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="scattergl.marker.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -812,19 +713,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='len', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="len", parent_name="scattergl.marker.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -832,24 +729,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='scattergl.marker.colorbar', + plotly_name="exponentformat", + parent_name="scattergl.marker.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -858,19 +750,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="scattergl.marker.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -879,19 +767,18 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='borderwidth', - parent_name='scattergl.marker.colorbar', + plotly_name="borderwidth", + parent_name="scattergl.marker.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -900,18 +787,17 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='scattergl.marker.colorbar', + plotly_name="bordercolor", + parent_name="scattergl.marker.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -920,17 +806,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='scattergl.marker.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="scattergl.marker.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/__init__.py index 1154f692c7a..1afd69c5779 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scattergl.marker.colorbar.tickfont', + plotly_name="size", + parent_name="scattergl.marker.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scattergl.marker.colorbar.tickfont', + plotly_name="family", + parent_name="scattergl.marker.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scattergl.marker.colorbar.tickfont', + plotly_name="color", + parent_name="scattergl.marker.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/__init__.py index f281bafd2d9..03741d76a10 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='scattergl.marker.colorbar.tickformatstop', + plotly_name="value", + parent_name="scattergl.marker.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='scattergl.marker.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="scattergl.marker.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='scattergl.marker.colorbar.tickformatstop', + plotly_name="name", + parent_name="scattergl.marker.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='scattergl.marker.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="scattergl.marker.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='scattergl.marker.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="scattergl.marker.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'calc' - }, { - 'valType': 'any', - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "any", "editType": "calc"}, + {"valType": "any", "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/__init__.py index 6c44eb0eca9..20afadddec1 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='text', - parent_name='scattergl.marker.colorbar.title', + plotly_name="text", + parent_name="scattergl.marker.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +21,18 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='side', - parent_name='scattergl.marker.colorbar.title', + plotly_name="side", + parent_name="scattergl.marker.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +41,19 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='font', - parent_name='scattergl.marker.colorbar.title', + plotly_name="font", + parent_name="scattergl.marker.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +74,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/__init__.py index c8813e1dd16..ac8f6fc5782 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scattergl.marker.colorbar.title.font', + plotly_name="size", + parent_name="scattergl.marker.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scattergl.marker.colorbar.title.font', + plotly_name="family", + parent_name="scattergl.marker.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scattergl.marker.colorbar.title.font', + plotly_name="color", + parent_name="scattergl.marker.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/marker/line/__init__.py b/packages/python/plotly/plotly/validators/scattergl/marker/line/__init__.py index 757e009fa19..fc456a0b7cb 100644 --- a/packages/python/plotly/plotly/validators/scattergl/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/marker/line/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='widthsrc', - parent_name='scattergl.marker.line', - **kwargs + self, plotly_name="widthsrc", parent_name="scattergl.marker.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,21 +18,17 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='scattergl.marker.line', - **kwargs + self, plotly_name="width", parent_name="scattergl.marker.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,18 +37,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='scattergl.marker.line', - **kwargs + self, plotly_name="reversescale", parent_name="scattergl.marker.line", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -67,18 +53,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scattergl.marker.line', - **kwargs + self, plotly_name="colorsrc", parent_name="scattergl.marker.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -87,21 +69,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='scattergl.marker.line', - **kwargs + self, plotly_name="colorscale", parent_name="scattergl.marker.line", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -110,20 +86,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='scattergl.marker.line', - **kwargs + self, plotly_name="coloraxis", parent_name="scattergl.marker.line", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -132,21 +104,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattergl.marker.line', - **kwargs + self, plotly_name="color", parent_name="scattergl.marker.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'scattergl.marker.line.colorscale' + "colorscale_path", "scattergl.marker.line.colorscale" ), **kwargs ) @@ -156,19 +124,15 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmin', - parent_name='scattergl.marker.line', - **kwargs + self, plotly_name="cmin", parent_name="scattergl.marker.line", **kwargs ): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -177,19 +141,15 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmid', - parent_name='scattergl.marker.line', - **kwargs + self, plotly_name="cmid", parent_name="scattergl.marker.line", **kwargs ): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -198,19 +158,15 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmax', - parent_name='scattergl.marker.line', - **kwargs + self, plotly_name="cmax", parent_name="scattergl.marker.line", **kwargs ): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -219,19 +175,15 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='cauto', - parent_name='scattergl.marker.line', - **kwargs + self, plotly_name="cauto", parent_name="scattergl.marker.line", **kwargs ): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -240,18 +192,17 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='autocolorscale', - parent_name='scattergl.marker.line', + plotly_name="autocolorscale", + parent_name="scattergl.marker.line", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/selected/__init__.py b/packages/python/plotly/plotly/validators/scattergl/selected/__init__.py index cc38f906101..678b1e505a3 100644 --- a/packages/python/plotly/plotly/validators/scattergl/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/selected/__init__.py @@ -1,25 +1,20 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='scattergl.selected', - **kwargs + self, plotly_name="textfont", parent_name="scattergl.selected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of selected points. -""" +""", ), **kwargs ) @@ -29,23 +24,23 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='marker', parent_name='scattergl.selected', **kwargs + self, plotly_name="marker", parent_name="scattergl.selected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of selected points. opacity Sets the marker opacity of selected points. size Sets the marker size of selected points. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattergl/selected/marker/__init__.py index 6dc398e4383..a46badceca9 100644 --- a/packages/python/plotly/plotly/validators/scattergl/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/selected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scattergl.selected.marker', - **kwargs + self, plotly_name="size", parent_name="scattergl.selected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='scattergl.selected.marker', - **kwargs + self, plotly_name="opacity", parent_name="scattergl.selected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattergl.selected.marker', - **kwargs + self, plotly_name="color", parent_name="scattergl.selected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattergl/selected/textfont/__init__.py index b04a88e5e04..34e32d5ccc3 100644 --- a/packages/python/plotly/plotly/validators/scattergl/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/selected/textfont/__init__.py @@ -1,20 +1,14 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattergl.selected.textfont', - **kwargs + self, plotly_name="color", parent_name="scattergl.selected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/stream/__init__.py b/packages/python/plotly/plotly/validators/scattergl/stream/__init__.py index fed726f16c7..b29f6cb3ba0 100644 --- a/packages/python/plotly/plotly/validators/scattergl/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='scattergl.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="scattergl.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,19 +18,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='scattergl.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="scattergl.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattergl/textfont/__init__.py index 03ec1497fbe..f506c244071 100644 --- a/packages/python/plotly/plotly/validators/scattergl/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/textfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='scattergl.textfont', - **kwargs + self, plotly_name="sizesrc", parent_name="scattergl.textfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='scattergl.textfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="scattergl.textfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,18 +34,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='scattergl.textfont', - **kwargs + self, plotly_name="familysrc", parent_name="scattergl.textfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -63,18 +50,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='family', parent_name='scattergl.textfont', **kwargs + self, plotly_name="family", parent_name="scattergl.textfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -83,18 +69,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scattergl.textfont', - **kwargs + self, plotly_name="colorsrc", parent_name="scattergl.textfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -103,15 +85,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scattergl.textfont', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scattergl.textfont", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/unselected/__init__.py b/packages/python/plotly/plotly/validators/scattergl/unselected/__init__.py index 0a1d4b869df..9d9734cc61c 100644 --- a/packages/python/plotly/plotly/validators/scattergl/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/unselected/__init__.py @@ -1,26 +1,21 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='scattergl.unselected', - **kwargs + self, plotly_name="textfont", parent_name="scattergl.unselected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) @@ -30,19 +25,16 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='scattergl.unselected', - **kwargs + self, plotly_name="marker", parent_name="scattergl.unselected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of unselected points, applied only when a selection exists. @@ -52,7 +44,7 @@ def __init__( size Sets the marker size of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattergl/unselected/marker/__init__.py index aad87a2b59d..80fe998c1d8 100644 --- a/packages/python/plotly/plotly/validators/scattergl/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/unselected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scattergl.unselected.marker', - **kwargs + self, plotly_name="size", parent_name="scattergl.unselected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='scattergl.unselected.marker', - **kwargs + self, plotly_name="opacity", parent_name="scattergl.unselected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattergl.unselected.marker', - **kwargs + self, plotly_name="color", parent_name="scattergl.unselected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattergl/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattergl/unselected/textfont/__init__.py index 4f0d1114d65..a859ce9ce4f 100644 --- a/packages/python/plotly/plotly/validators/scattergl/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattergl/unselected/textfont/__init__.py @@ -1,20 +1,14 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattergl.unselected.textfont', - **kwargs + self, plotly_name="color", parent_name="scattergl.unselected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattermapbox/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/__init__.py index aee1b31b219..81b4f72de19 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="scattermapbox", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -22,20 +17,18 @@ def __init__( class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='unselected', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="unselected", parent_name="scattermapbox", **kwargs): super(UnselectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_class_str=kwargs.pop("data_class_str", "Unselected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.scattermapbox.unselected.Mark er instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -45,15 +38,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="scattermapbox", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -62,16 +52,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='uid', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="uid", parent_name="scattermapbox", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -80,15 +67,12 @@ def __init__( class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="scattermapbox", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -97,25 +81,28 @@ def __init__( class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='textposition', - parent_name='scattermapbox', - **kwargs + self, plotly_name="textposition", parent_name="scattermapbox", **kwargs ): super(TextpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 'top left', 'top center', 'top right', 'middle left', - 'middle center', 'middle right', 'bottom left', - 'bottom center', 'bottom right' - ] + "values", + [ + "top left", + "top center", + "top right", + "middle left", + "middle center", + "middle right", + "bottom left", + "bottom center", + "bottom right", + ], ), **kwargs ) @@ -125,16 +112,14 @@ def __init__( class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='textfont', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="textfont", parent_name="scattermapbox", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -155,7 +140,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -165,16 +150,13 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='text', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="text", parent_name="scattermapbox", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -183,16 +165,13 @@ def __init__( class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='subplot', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="subplot", parent_name="scattermapbox", **kwargs): super(SubplotValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'mapbox'), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "mapbox"), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -201,16 +180,14 @@ def __init__( class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="scattermapbox", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -220,7 +197,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -230,15 +207,12 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="scattermapbox", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -247,18 +221,14 @@ def __init__( class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='selectedpoints', - parent_name='scattermapbox', - **kwargs + self, plotly_name="selectedpoints", parent_name="scattermapbox", **kwargs ): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -267,20 +237,18 @@ def __init__( class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='selected', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="selected", parent_name="scattermapbox", **kwargs): super(SelectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_class_str=kwargs.pop("data_class_str", "Selected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.scattermapbox.selected.Marker instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -290,17 +258,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="scattermapbox", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -309,15 +274,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="scattermapbox", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -326,17 +288,14 @@ def __init__( class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='mode', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="mode", parent_name="scattermapbox", **kwargs): super(ModeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['none']), - flags=kwargs.pop('flags', ['lines', 'markers', 'text']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["none"]), + flags=kwargs.pop("flags", ["lines", "markers", "text"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -345,15 +304,12 @@ def __init__( class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="scattermapbox", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -362,16 +318,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='meta', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="meta", parent_name="scattermapbox", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -380,16 +333,14 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="scattermapbox", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -507,7 +458,7 @@ def __init__( symbolsrc Sets the source reference on plot.ly for symbol . -""" +""", ), **kwargs ) @@ -517,15 +468,12 @@ def __init__( class LonsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='lonsrc', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="lonsrc", parent_name="scattermapbox", **kwargs): super(LonsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -534,15 +482,12 @@ def __init__( class LonValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='lon', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="lon", parent_name="scattermapbox", **kwargs): super(LonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -551,21 +496,19 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="scattermapbox", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the line color. width Sets the line width (in px). -""" +""", ), **kwargs ) @@ -575,15 +518,14 @@ def __init__( class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='legendgroup', parent_name='scattermapbox', **kwargs + self, plotly_name="legendgroup", parent_name="scattermapbox", **kwargs ): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -592,15 +534,12 @@ def __init__( class LatsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='latsrc', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="latsrc", parent_name="scattermapbox", **kwargs): super(LatsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -609,15 +548,12 @@ def __init__( class LatValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='lat', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="lat", parent_name="scattermapbox", **kwargs): super(LatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -626,15 +562,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="scattermapbox", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -643,16 +576,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='ids', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="ids", parent_name="scattermapbox", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -661,18 +591,14 @@ def __init__( class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertextsrc', - parent_name='scattermapbox', - **kwargs + self, plotly_name="hovertextsrc", parent_name="scattermapbox", **kwargs ): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -681,16 +607,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="scattermapbox", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -699,18 +622,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='scattermapbox', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="scattermapbox", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -719,19 +638,15 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='hovertemplate', - parent_name='scattermapbox', - **kwargs + self, plotly_name="hovertemplate", parent_name="scattermapbox", **kwargs ): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -740,16 +655,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="scattermapbox", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -785,7 +698,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -795,18 +708,14 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hoverinfosrc', - parent_name='scattermapbox', - **kwargs + self, plotly_name="hoverinfosrc", parent_name="scattermapbox", **kwargs ): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -815,18 +724,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="scattermapbox", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['lon', 'lat', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["lon", "lat", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -835,16 +741,13 @@ def __init__( class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='fillcolor', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="fillcolor", parent_name="scattermapbox", **kwargs): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -853,16 +756,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='fill', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="scattermapbox", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['none', 'toself']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "toself"]), **kwargs ) @@ -871,18 +771,14 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='customdatasrc', - parent_name='scattermapbox', - **kwargs + self, plotly_name="customdatasrc", parent_name="scattermapbox", **kwargs ): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -891,15 +787,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='scattermapbox', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="scattermapbox", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -908,14 +801,13 @@ def __init__( class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='connectgaps', parent_name='scattermapbox', **kwargs + self, plotly_name="connectgaps", parent_name="scattermapbox", **kwargs ): super(ConnectgapsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/__init__.py index 480e82e662e..c340ace5cae 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='namelengthsrc', - parent_name='scattermapbox.hoverlabel', + plotly_name="namelengthsrc", + parent_name="scattermapbox.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +21,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='scattermapbox.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="scattermapbox.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +39,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='scattermapbox.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="scattermapbox.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -88,7 +78,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -98,18 +88,17 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bordercolorsrc', - parent_name='scattermapbox.hoverlabel', + plotly_name="bordercolorsrc", + parent_name="scattermapbox.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,19 +107,18 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='scattermapbox.hoverlabel', + plotly_name="bordercolor", + parent_name="scattermapbox.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -139,18 +127,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='scattermapbox.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="scattermapbox.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,19 +143,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='scattermapbox.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="scattermapbox.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -180,18 +160,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='scattermapbox.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="scattermapbox.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,19 +176,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='scattermapbox.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="scattermapbox.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/__init__.py index d09828eee24..3699bb6424e 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/hoverlabel/font/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='sizesrc', - parent_name='scattermapbox.hoverlabel.font', + plotly_name="sizesrc", + parent_name="scattermapbox.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +21,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scattermapbox.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="scattermapbox.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +39,17 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='familysrc', - parent_name='scattermapbox.hoverlabel.font', + plotly_name="familysrc", + parent_name="scattermapbox.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +58,20 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scattermapbox.hoverlabel.font', + plotly_name="family", + parent_name="scattermapbox.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +80,17 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='colorsrc', - parent_name='scattermapbox.hoverlabel.font', + plotly_name="colorsrc", + parent_name="scattermapbox.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +99,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattermapbox.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="scattermapbox.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattermapbox/line/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/line/__init__.py index 2d21c32bdc9..353513294bd 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/line/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='scattermapbox.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="scattermapbox.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,15 +18,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scattermapbox.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scattermapbox.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/__init__.py index fa31f393bb6..e54c96574a9 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='symbolsrc', - parent_name='scattermapbox.marker', - **kwargs + self, plotly_name="symbolsrc", parent_name="scattermapbox.marker", **kwargs ): super(SymbolsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SymbolValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='symbol', - parent_name='scattermapbox.marker', - **kwargs + self, plotly_name="symbol", parent_name="scattermapbox.marker", **kwargs ): super(SymbolValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -45,18 +35,14 @@ def __init__( class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='scattermapbox.marker', - **kwargs + self, plotly_name="sizesrc", parent_name="scattermapbox.marker", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -65,18 +51,14 @@ def __init__( class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='sizeref', - parent_name='scattermapbox.marker', - **kwargs + self, plotly_name="sizeref", parent_name="scattermapbox.marker", **kwargs ): super(SizerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -85,19 +67,15 @@ def __init__( class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='sizemode', - parent_name='scattermapbox.marker', - **kwargs + self, plotly_name="sizemode", parent_name="scattermapbox.marker", **kwargs ): super(SizemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['diameter', 'area']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["diameter", "area"]), **kwargs ) @@ -106,19 +84,15 @@ def __init__( class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='sizemin', - parent_name='scattermapbox.marker', - **kwargs + self, plotly_name="sizemin", parent_name="scattermapbox.marker", **kwargs ): super(SizeminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -127,18 +101,17 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='size', parent_name='scattermapbox.marker', **kwargs + self, plotly_name="size", parent_name="scattermapbox.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -147,18 +120,14 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showscale', - parent_name='scattermapbox.marker', - **kwargs + self, plotly_name="showscale", parent_name="scattermapbox.marker", **kwargs ): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -167,18 +136,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='scattermapbox.marker', - **kwargs + self, plotly_name="reversescale", parent_name="scattermapbox.marker", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -187,18 +152,14 @@ def __init__( class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='opacitysrc', - parent_name='scattermapbox.marker', - **kwargs + self, plotly_name="opacitysrc", parent_name="scattermapbox.marker", **kwargs ): super(OpacitysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -207,22 +168,18 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='scattermapbox.marker', - **kwargs + self, plotly_name="opacity", parent_name="scattermapbox.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -231,18 +188,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scattermapbox.marker', - **kwargs + self, plotly_name="colorsrc", parent_name="scattermapbox.marker", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -251,21 +204,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='scattermapbox.marker', - **kwargs + self, plotly_name="colorscale", parent_name="scattermapbox.marker", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -274,19 +221,16 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='colorbar', - parent_name='scattermapbox.marker', - **kwargs + self, plotly_name="colorbar", parent_name="scattermapbox.marker", **kwargs ): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -498,7 +442,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -508,20 +452,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='scattermapbox.marker', - **kwargs + self, plotly_name="coloraxis", parent_name="scattermapbox.marker", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -530,21 +470,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattermapbox.marker', - **kwargs + self, plotly_name="color", parent_name="scattermapbox.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'scattermapbox.marker.colorscale' + "colorscale_path", "scattermapbox.marker.colorscale" ), **kwargs ) @@ -554,16 +490,15 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='cmin', parent_name='scattermapbox.marker', **kwargs + self, plotly_name="cmin", parent_name="scattermapbox.marker", **kwargs ): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -572,16 +507,15 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='cmid', parent_name='scattermapbox.marker', **kwargs + self, plotly_name="cmid", parent_name="scattermapbox.marker", **kwargs ): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -590,16 +524,15 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='cmax', parent_name='scattermapbox.marker', **kwargs + self, plotly_name="cmax", parent_name="scattermapbox.marker", **kwargs ): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -608,19 +541,15 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='cauto', - parent_name='scattermapbox.marker', - **kwargs + self, plotly_name="cauto", parent_name="scattermapbox.marker", **kwargs ): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -629,18 +558,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='scattermapbox.marker', - **kwargs + self, plotly_name="autocolorscale", parent_name="scattermapbox.marker", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/__init__.py index 9d8e3636024..4574484c1f7 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='scattermapbox.marker.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="scattermapbox.marker.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,18 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='yanchor', - parent_name='scattermapbox.marker.colorbar', + plotly_name="yanchor", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,20 +39,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='y', - parent_name='scattermapbox.marker.colorbar', - **kwargs + self, plotly_name="y", parent_name="scattermapbox.marker.colorbar", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -68,19 +57,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='scattermapbox.marker.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="scattermapbox.marker.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -89,19 +74,18 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='xanchor', - parent_name='scattermapbox.marker.colorbar', + plotly_name="xanchor", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -110,20 +94,16 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='x', - parent_name='scattermapbox.marker.colorbar', - **kwargs + self, plotly_name="x", parent_name="scattermapbox.marker.colorbar", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -132,19 +112,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='scattermapbox.marker.colorbar', - **kwargs + self, plotly_name="title", parent_name="scattermapbox.marker.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -160,7 +137,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -170,19 +147,18 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='tickwidth', - parent_name='scattermapbox.marker.colorbar', + plotly_name="tickwidth", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -191,18 +167,17 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='tickvalssrc', - parent_name='scattermapbox.marker.colorbar', + plotly_name="tickvalssrc", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -211,18 +186,17 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( self, - plotly_name='tickvals', - parent_name='scattermapbox.marker.colorbar', + plotly_name="tickvals", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -231,18 +205,17 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='ticktextsrc', - parent_name='scattermapbox.marker.colorbar', + plotly_name="ticktextsrc", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -251,18 +224,17 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( self, - plotly_name='ticktext', - parent_name='scattermapbox.marker.colorbar', + plotly_name="ticktext", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -271,18 +243,17 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='ticksuffix', - parent_name='scattermapbox.marker.colorbar', + plotly_name="ticksuffix", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -291,19 +262,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='scattermapbox.marker.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="scattermapbox.marker.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -312,18 +279,17 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickprefix', - parent_name='scattermapbox.marker.colorbar', + plotly_name="tickprefix", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -332,20 +298,19 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='tickmode', - parent_name='scattermapbox.marker.colorbar', + plotly_name="tickmode", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -354,19 +319,18 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='ticklen', - parent_name='scattermapbox.marker.colorbar', + plotly_name="ticklen", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -375,19 +339,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='scattermapbox.marker.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -395,22 +361,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='scattermapbox.marker.colorbar', + plotly_name="tickformatstops", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -444,7 +408,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -454,18 +418,17 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickformat', - parent_name='scattermapbox.marker.colorbar', + plotly_name="tickformat", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -474,19 +437,19 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickfont', - parent_name='scattermapbox.marker.colorbar', + plotly_name="tickfont", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -507,7 +470,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -517,18 +480,17 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='tickcolor', - parent_name='scattermapbox.marker.colorbar', + plotly_name="tickcolor", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -537,18 +499,17 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( self, - plotly_name='tickangle', - parent_name='scattermapbox.marker.colorbar', + plotly_name="tickangle", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,19 +518,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='scattermapbox.marker.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="scattermapbox.marker.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -578,19 +535,18 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='thicknessmode', - parent_name='scattermapbox.marker.colorbar', + plotly_name="thicknessmode", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -599,19 +555,18 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='thickness', - parent_name='scattermapbox.marker.colorbar', + plotly_name="thickness", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -619,22 +574,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='scattermapbox.marker.colorbar', + plotly_name="showticksuffix", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -642,22 +594,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='scattermapbox.marker.colorbar', + plotly_name="showtickprefix", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -666,18 +615,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='scattermapbox.marker.colorbar', + plotly_name="showticklabels", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -686,19 +634,18 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='showexponent', - parent_name='scattermapbox.marker.colorbar', + plotly_name="showexponent", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -706,21 +653,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='scattermapbox.marker.colorbar', + plotly_name="separatethousands", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -729,19 +673,18 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='outlinewidth', - parent_name='scattermapbox.marker.colorbar', + plotly_name="outlinewidth", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -750,18 +693,17 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='outlinecolor', - parent_name='scattermapbox.marker.colorbar', + plotly_name="outlinecolor", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -770,19 +712,18 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( self, - plotly_name='nticks', - parent_name='scattermapbox.marker.colorbar', + plotly_name="nticks", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -791,19 +732,18 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='lenmode', - parent_name='scattermapbox.marker.colorbar', + plotly_name="lenmode", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -812,19 +752,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='len', - parent_name='scattermapbox.marker.colorbar', - **kwargs + self, plotly_name="len", parent_name="scattermapbox.marker.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -832,24 +768,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='scattermapbox.marker.colorbar', + plotly_name="exponentformat", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -858,19 +789,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='scattermapbox.marker.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="scattermapbox.marker.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -879,19 +806,18 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='borderwidth', - parent_name='scattermapbox.marker.colorbar', + plotly_name="borderwidth", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -900,18 +826,17 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='scattermapbox.marker.colorbar', + plotly_name="bordercolor", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -920,17 +845,16 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bgcolor', - parent_name='scattermapbox.marker.colorbar', + plotly_name="bgcolor", + parent_name="scattermapbox.marker.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/__init__.py index cfccc2bfe1b..bdf3e66b646 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scattermapbox.marker.colorbar.tickfont', + plotly_name="size", + parent_name="scattermapbox.marker.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scattermapbox.marker.colorbar.tickfont', + plotly_name="family", + parent_name="scattermapbox.marker.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scattermapbox.marker.colorbar.tickfont', + plotly_name="color", + parent_name="scattermapbox.marker.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/__init__.py index 4e3c0b38d02..152c434c5bb 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='scattermapbox.marker.colorbar.tickformatstop', + plotly_name="value", + parent_name="scattermapbox.marker.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='scattermapbox.marker.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="scattermapbox.marker.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='scattermapbox.marker.colorbar.tickformatstop', + plotly_name="name", + parent_name="scattermapbox.marker.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='scattermapbox.marker.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="scattermapbox.marker.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='scattermapbox.marker.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="scattermapbox.marker.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'calc' - }, { - 'valType': 'any', - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "any", "editType": "calc"}, + {"valType": "any", "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/__init__.py index c5f69882b8d..acab34d4a3c 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='text', - parent_name='scattermapbox.marker.colorbar.title', + plotly_name="text", + parent_name="scattermapbox.marker.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +21,18 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='side', - parent_name='scattermapbox.marker.colorbar.title', + plotly_name="side", + parent_name="scattermapbox.marker.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +41,19 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='font', - parent_name='scattermapbox.marker.colorbar.title', + plotly_name="font", + parent_name="scattermapbox.marker.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +74,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/__init__.py index 28032bb3c71..3ff117f99aa 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/marker/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scattermapbox.marker.colorbar.title.font', + plotly_name="size", + parent_name="scattermapbox.marker.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scattermapbox.marker.colorbar.title.font', + plotly_name="family", + parent_name="scattermapbox.marker.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scattermapbox.marker.colorbar.title.font', + plotly_name="color", + parent_name="scattermapbox.marker.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattermapbox/selected/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/selected/__init__.py index 5a073db90b3..7d501e68251 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/selected/__init__.py @@ -1,29 +1,24 @@ - - import _plotly_utils.basevalidators class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='scattermapbox.selected', - **kwargs + self, plotly_name="marker", parent_name="scattermapbox.selected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of selected points. opacity Sets the marker opacity of selected points. size Sets the marker size of selected points. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/__init__.py index 15e4b07d952..d8614871d18 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/selected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scattermapbox.selected.marker', - **kwargs + self, plotly_name="size", parent_name="scattermapbox.selected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='opacity', - parent_name='scattermapbox.selected.marker', + plotly_name="opacity", + parent_name="scattermapbox.selected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +40,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattermapbox.selected.marker', - **kwargs + self, plotly_name="color", parent_name="scattermapbox.selected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattermapbox/stream/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/stream/__init__.py index 0cd2deb9da9..2aa07a6b36d 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/stream/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='token', - parent_name='scattermapbox.stream', - **kwargs + self, plotly_name="token", parent_name="scattermapbox.stream", **kwargs ): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -26,19 +20,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='scattermapbox.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="scattermapbox.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattermapbox/textfont/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/textfont/__init__.py index d9d2e48502b..48586d9005d 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/textfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scattermapbox.textfont', - **kwargs + self, plotly_name="size", parent_name="scattermapbox.textfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='scattermapbox.textfont', - **kwargs + self, plotly_name="family", parent_name="scattermapbox.textfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scattermapbox.textfont', - **kwargs + self, plotly_name="color", parent_name="scattermapbox.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattermapbox/unselected/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/unselected/__init__.py index 8727a25cacd..a6e65a7fdaf 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/unselected/__init__.py @@ -1,22 +1,17 @@ - - import _plotly_utils.basevalidators class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='scattermapbox.unselected', - **kwargs + self, plotly_name="marker", parent_name="scattermapbox.unselected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of unselected points, applied only when a selection exists. @@ -26,7 +21,7 @@ def __init__( size Sets the marker size of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/__init__.py index 9dcf6619993..a13cf9590da 100644 --- a/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scattermapbox/unselected/marker/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scattermapbox.unselected.marker', + plotly_name="size", + parent_name="scattermapbox.unselected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='opacity', - parent_name='scattermapbox.unselected.marker', + plotly_name="opacity", + parent_name="scattermapbox.unselected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scattermapbox.unselected.marker', + plotly_name="color", + parent_name="scattermapbox.unselected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/__init__.py index 273fbb3068b..780554b4cd4 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="scatterpolar", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -22,23 +17,21 @@ def __init__( class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='unselected', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="unselected", parent_name="scatterpolar", **kwargs): super(UnselectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_class_str=kwargs.pop("data_class_str", "Unselected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.scatterpolar.unselected.Marke r instance or dict with compatible properties textfont plotly.graph_objs.scatterpolar.unselected.Textf ont instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -48,15 +41,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="scatterpolar", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -65,16 +55,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='uid', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="uid", parent_name="scatterpolar", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -83,16 +70,13 @@ def __init__( class ThetaunitValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='thetaunit', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="thetaunit", parent_name="scatterpolar", **kwargs): super(ThetaunitValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['radians', 'degrees', 'gradians']), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["radians", "degrees", "gradians"]), **kwargs ) @@ -101,15 +85,12 @@ def __init__( class ThetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='thetasrc', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="thetasrc", parent_name="scatterpolar", **kwargs): super(ThetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,15 +99,12 @@ def __init__( class Theta0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='theta0', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="theta0", parent_name="scatterpolar", **kwargs): super(Theta0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -135,15 +113,12 @@ def __init__( class ThetaValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='theta', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="theta", parent_name="scatterpolar", **kwargs): super(ThetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -152,15 +127,12 @@ def __init__( class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="scatterpolar", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -169,18 +141,14 @@ def __init__( class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='textpositionsrc', - parent_name='scatterpolar', - **kwargs + self, plotly_name="textpositionsrc", parent_name="scatterpolar", **kwargs ): super(TextpositionsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -189,22 +157,28 @@ def __init__( class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='textposition', parent_name='scatterpolar', **kwargs + self, plotly_name="textposition", parent_name="scatterpolar", **kwargs ): super(TextpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 'top left', 'top center', 'top right', 'middle left', - 'middle center', 'middle right', 'bottom left', - 'bottom center', 'bottom right' - ] + "values", + [ + "top left", + "top center", + "top right", + "middle left", + "middle center", + "middle right", + "bottom left", + "bottom center", + "bottom right", + ], ), **kwargs ) @@ -214,16 +188,14 @@ def __init__( class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='textfont', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="textfont", parent_name="scatterpolar", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -253,7 +225,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -263,16 +235,13 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='text', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="text", parent_name="scatterpolar", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -281,16 +250,13 @@ def __init__( class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='subplot', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="subplot", parent_name="scatterpolar", **kwargs): super(SubplotValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'polar'), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "polar"), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -299,16 +265,14 @@ def __init__( class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="scatterpolar", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -318,7 +282,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -328,15 +292,12 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="scatterpolar", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -345,18 +306,14 @@ def __init__( class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='selectedpoints', - parent_name='scatterpolar', - **kwargs + self, plotly_name="selectedpoints", parent_name="scatterpolar", **kwargs ): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -365,23 +322,21 @@ def __init__( class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='selected', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="selected", parent_name="scatterpolar", **kwargs): super(SelectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_class_str=kwargs.pop("data_class_str", "Selected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.scatterpolar.selected.Marker instance or dict with compatible properties textfont plotly.graph_objs.scatterpolar.selected.Textfon t instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -391,15 +346,12 @@ def __init__( class RsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='rsrc', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="rsrc", parent_name="scatterpolar", **kwargs): super(RsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -408,13 +360,12 @@ def __init__( class R0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='r0', parent_name='scatterpolar', **kwargs): + def __init__(self, plotly_name="r0", parent_name="scatterpolar", **kwargs): super(R0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -423,13 +374,12 @@ def __init__(self, plotly_name='r0', parent_name='scatterpolar', **kwargs): class RValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='r', parent_name='scatterpolar', **kwargs): + def __init__(self, plotly_name="r", parent_name="scatterpolar", **kwargs): super(RValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -438,17 +388,14 @@ def __init__(self, plotly_name='r', parent_name='scatterpolar', **kwargs): class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="scatterpolar", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -457,15 +404,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="scatterpolar", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -474,17 +418,14 @@ def __init__( class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='mode', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="mode", parent_name="scatterpolar", **kwargs): super(ModeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['none']), - flags=kwargs.pop('flags', ['lines', 'markers', 'text']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["none"]), + flags=kwargs.pop("flags", ["lines", "markers", "text"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -493,15 +434,12 @@ def __init__( class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="scatterpolar", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -510,16 +448,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='meta', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="meta", parent_name="scatterpolar", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -528,16 +463,14 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="scatterpolar", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -666,7 +599,7 @@ def __init__( symbolsrc Sets the source reference on plot.ly for symbol . -""" +""", ), **kwargs ) @@ -676,16 +609,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="scatterpolar", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the line color. dash @@ -705,7 +636,7 @@ def __init__( "linear" shape). width Sets the line width (in px). -""" +""", ), **kwargs ) @@ -715,15 +646,12 @@ def __init__( class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='legendgroup', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="legendgroup", parent_name="scatterpolar", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -732,15 +660,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="scatterpolar", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -749,16 +674,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='ids', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="ids", parent_name="scatterpolar", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -767,15 +689,14 @@ def __init__( class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='hovertextsrc', parent_name='scatterpolar', **kwargs + self, plotly_name="hovertextsrc", parent_name="scatterpolar", **kwargs ): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -784,16 +705,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="scatterpolar", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -802,18 +720,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='scatterpolar', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="scatterpolar", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -822,19 +736,15 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='hovertemplate', - parent_name='scatterpolar', - **kwargs + self, plotly_name="hovertemplate", parent_name="scatterpolar", **kwargs ): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -843,16 +753,13 @@ def __init__( class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoveron', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="hoveron", parent_name="scatterpolar", **kwargs): super(HoveronValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - flags=kwargs.pop('flags', ['points', 'fills']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + flags=kwargs.pop("flags", ["points", "fills"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -861,16 +768,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="scatterpolar", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -906,7 +811,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -916,15 +821,14 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='hoverinfosrc', parent_name='scatterpolar', **kwargs + self, plotly_name="hoverinfosrc", parent_name="scatterpolar", **kwargs ): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -933,18 +837,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="scatterpolar", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['r', 'theta', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["r", "theta", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -953,16 +854,13 @@ def __init__( class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='fillcolor', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="fillcolor", parent_name="scatterpolar", **kwargs): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -971,16 +869,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='fill', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="scatterpolar", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['none', 'toself', 'tonext']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "toself", "tonext"]), **kwargs ) @@ -989,15 +884,12 @@ def __init__( class DthetaValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='dtheta', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="dtheta", parent_name="scatterpolar", **kwargs): super(DthetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1006,13 +898,12 @@ def __init__( class DrValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dr', parent_name='scatterpolar', **kwargs): + def __init__(self, plotly_name="dr", parent_name="scatterpolar", **kwargs): super(DrValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1021,18 +912,14 @@ def __init__(self, plotly_name='dr', parent_name='scatterpolar', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='customdatasrc', - parent_name='scatterpolar', - **kwargs + self, plotly_name="customdatasrc", parent_name="scatterpolar", **kwargs ): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1041,15 +928,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="scatterpolar", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1058,15 +942,12 @@ def __init__( class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='connectgaps', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="connectgaps", parent_name="scatterpolar", **kwargs): super(ConnectgapsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1075,14 +956,11 @@ def __init__( class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cliponaxis', parent_name='scatterpolar', **kwargs - ): + def __init__(self, plotly_name="cliponaxis", parent_name="scatterpolar", **kwargs): super(CliponaxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/__init__.py index 7b7d4c12576..27a7a2da792 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='namelengthsrc', - parent_name='scatterpolar.hoverlabel', + plotly_name="namelengthsrc", + parent_name="scatterpolar.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +21,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='scatterpolar.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="scatterpolar.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +39,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='scatterpolar.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="scatterpolar.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -88,7 +78,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -98,18 +88,17 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bordercolorsrc', - parent_name='scatterpolar.hoverlabel', + plotly_name="bordercolorsrc", + parent_name="scatterpolar.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,19 +107,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='scatterpolar.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="scatterpolar.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -139,18 +124,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='scatterpolar.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="scatterpolar.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,19 +140,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='scatterpolar.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="scatterpolar.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -180,18 +157,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='scatterpolar.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="scatterpolar.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,19 +173,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='scatterpolar.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="scatterpolar.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/__init__.py index 91fd7998bf6..432cafb24f7 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/hoverlabel/font/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='sizesrc', - parent_name='scatterpolar.hoverlabel.font', + plotly_name="sizesrc", + parent_name="scatterpolar.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +21,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scatterpolar.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="scatterpolar.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +39,17 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='familysrc', - parent_name='scatterpolar.hoverlabel.font', + plotly_name="familysrc", + parent_name="scatterpolar.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +58,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='scatterpolar.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="scatterpolar.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +77,17 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='colorsrc', - parent_name='scatterpolar.hoverlabel.font', + plotly_name="colorsrc", + parent_name="scatterpolar.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +96,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatterpolar.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="scatterpolar.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/line/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/line/__init__.py index cf077f2f3a9..b1d60816866 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/line/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='scatterpolar.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="scatterpolar.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,20 +18,16 @@ def __init__( class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='smoothing', - parent_name='scatterpolar.line', - **kwargs + self, plotly_name="smoothing", parent_name="scatterpolar.line", **kwargs ): super(SmoothingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 1.3), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 1.3), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -45,16 +36,13 @@ def __init__( class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='shape', parent_name='scatterpolar.line', **kwargs - ): + def __init__(self, plotly_name="shape", parent_name="scatterpolar.line", **kwargs): super(ShapeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['linear', 'spline']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["linear", "spline"]), **kwargs ) @@ -63,18 +51,14 @@ def __init__( class DashValidator(_plotly_utils.basevalidators.DashValidator): - - def __init__( - self, plotly_name='dash', parent_name='scatterpolar.line', **kwargs - ): + def __init__(self, plotly_name="dash", parent_name="scatterpolar.line", **kwargs): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -84,15 +68,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='scatterpolar.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="scatterpolar.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/__init__.py index 50c659bdcaf..c7fe8a2c3f4 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='symbolsrc', - parent_name='scatterpolar.marker', - **kwargs + self, plotly_name="symbolsrc", parent_name="scatterpolar.marker", **kwargs ): super(SymbolsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,80 +18,303 @@ def __init__( class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='symbol', - parent_name='scatterpolar.marker', - **kwargs + self, plotly_name="symbol", parent_name="scatterpolar.marker", **kwargs ): super(SymbolValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 0, 'circle', 100, 'circle-open', 200, 'circle-dot', 300, - 'circle-open-dot', 1, 'square', 101, 'square-open', 201, - 'square-dot', 301, 'square-open-dot', 2, 'diamond', 102, - 'diamond-open', 202, 'diamond-dot', 302, - 'diamond-open-dot', 3, 'cross', 103, 'cross-open', 203, - 'cross-dot', 303, 'cross-open-dot', 4, 'x', 104, 'x-open', - 204, 'x-dot', 304, 'x-open-dot', 5, 'triangle-up', 105, - 'triangle-up-open', 205, 'triangle-up-dot', 305, - 'triangle-up-open-dot', 6, 'triangle-down', 106, - 'triangle-down-open', 206, 'triangle-down-dot', 306, - 'triangle-down-open-dot', 7, 'triangle-left', 107, - 'triangle-left-open', 207, 'triangle-left-dot', 307, - 'triangle-left-open-dot', 8, 'triangle-right', 108, - 'triangle-right-open', 208, 'triangle-right-dot', 308, - 'triangle-right-open-dot', 9, 'triangle-ne', 109, - 'triangle-ne-open', 209, 'triangle-ne-dot', 309, - 'triangle-ne-open-dot', 10, 'triangle-se', 110, - 'triangle-se-open', 210, 'triangle-se-dot', 310, - 'triangle-se-open-dot', 11, 'triangle-sw', 111, - 'triangle-sw-open', 211, 'triangle-sw-dot', 311, - 'triangle-sw-open-dot', 12, 'triangle-nw', 112, - 'triangle-nw-open', 212, 'triangle-nw-dot', 312, - 'triangle-nw-open-dot', 13, 'pentagon', 113, - 'pentagon-open', 213, 'pentagon-dot', 313, - 'pentagon-open-dot', 14, 'hexagon', 114, 'hexagon-open', - 214, 'hexagon-dot', 314, 'hexagon-open-dot', 15, - 'hexagon2', 115, 'hexagon2-open', 215, 'hexagon2-dot', 315, - 'hexagon2-open-dot', 16, 'octagon', 116, 'octagon-open', - 216, 'octagon-dot', 316, 'octagon-open-dot', 17, 'star', - 117, 'star-open', 217, 'star-dot', 317, 'star-open-dot', - 18, 'hexagram', 118, 'hexagram-open', 218, 'hexagram-dot', - 318, 'hexagram-open-dot', 19, 'star-triangle-up', 119, - 'star-triangle-up-open', 219, 'star-triangle-up-dot', 319, - 'star-triangle-up-open-dot', 20, 'star-triangle-down', 120, - 'star-triangle-down-open', 220, 'star-triangle-down-dot', - 320, 'star-triangle-down-open-dot', 21, 'star-square', 121, - 'star-square-open', 221, 'star-square-dot', 321, - 'star-square-open-dot', 22, 'star-diamond', 122, - 'star-diamond-open', 222, 'star-diamond-dot', 322, - 'star-diamond-open-dot', 23, 'diamond-tall', 123, - 'diamond-tall-open', 223, 'diamond-tall-dot', 323, - 'diamond-tall-open-dot', 24, 'diamond-wide', 124, - 'diamond-wide-open', 224, 'diamond-wide-dot', 324, - 'diamond-wide-open-dot', 25, 'hourglass', 125, - 'hourglass-open', 26, 'bowtie', 126, 'bowtie-open', 27, - 'circle-cross', 127, 'circle-cross-open', 28, 'circle-x', - 128, 'circle-x-open', 29, 'square-cross', 129, - 'square-cross-open', 30, 'square-x', 130, 'square-x-open', - 31, 'diamond-cross', 131, 'diamond-cross-open', 32, - 'diamond-x', 132, 'diamond-x-open', 33, 'cross-thin', 133, - 'cross-thin-open', 34, 'x-thin', 134, 'x-thin-open', 35, - 'asterisk', 135, 'asterisk-open', 36, 'hash', 136, - 'hash-open', 236, 'hash-dot', 336, 'hash-open-dot', 37, - 'y-up', 137, 'y-up-open', 38, 'y-down', 138, 'y-down-open', - 39, 'y-left', 139, 'y-left-open', 40, 'y-right', 140, - 'y-right-open', 41, 'line-ew', 141, 'line-ew-open', 42, - 'line-ns', 142, 'line-ns-open', 43, 'line-ne', 143, - 'line-ne-open', 44, 'line-nw', 144, 'line-nw-open' - ] + "values", + [ + 0, + "circle", + 100, + "circle-open", + 200, + "circle-dot", + 300, + "circle-open-dot", + 1, + "square", + 101, + "square-open", + 201, + "square-dot", + 301, + "square-open-dot", + 2, + "diamond", + 102, + "diamond-open", + 202, + "diamond-dot", + 302, + "diamond-open-dot", + 3, + "cross", + 103, + "cross-open", + 203, + "cross-dot", + 303, + "cross-open-dot", + 4, + "x", + 104, + "x-open", + 204, + "x-dot", + 304, + "x-open-dot", + 5, + "triangle-up", + 105, + "triangle-up-open", + 205, + "triangle-up-dot", + 305, + "triangle-up-open-dot", + 6, + "triangle-down", + 106, + "triangle-down-open", + 206, + "triangle-down-dot", + 306, + "triangle-down-open-dot", + 7, + "triangle-left", + 107, + "triangle-left-open", + 207, + "triangle-left-dot", + 307, + "triangle-left-open-dot", + 8, + "triangle-right", + 108, + "triangle-right-open", + 208, + "triangle-right-dot", + 308, + "triangle-right-open-dot", + 9, + "triangle-ne", + 109, + "triangle-ne-open", + 209, + "triangle-ne-dot", + 309, + "triangle-ne-open-dot", + 10, + "triangle-se", + 110, + "triangle-se-open", + 210, + "triangle-se-dot", + 310, + "triangle-se-open-dot", + 11, + "triangle-sw", + 111, + "triangle-sw-open", + 211, + "triangle-sw-dot", + 311, + "triangle-sw-open-dot", + 12, + "triangle-nw", + 112, + "triangle-nw-open", + 212, + "triangle-nw-dot", + 312, + "triangle-nw-open-dot", + 13, + "pentagon", + 113, + "pentagon-open", + 213, + "pentagon-dot", + 313, + "pentagon-open-dot", + 14, + "hexagon", + 114, + "hexagon-open", + 214, + "hexagon-dot", + 314, + "hexagon-open-dot", + 15, + "hexagon2", + 115, + "hexagon2-open", + 215, + "hexagon2-dot", + 315, + "hexagon2-open-dot", + 16, + "octagon", + 116, + "octagon-open", + 216, + "octagon-dot", + 316, + "octagon-open-dot", + 17, + "star", + 117, + "star-open", + 217, + "star-dot", + 317, + "star-open-dot", + 18, + "hexagram", + 118, + "hexagram-open", + 218, + "hexagram-dot", + 318, + "hexagram-open-dot", + 19, + "star-triangle-up", + 119, + "star-triangle-up-open", + 219, + "star-triangle-up-dot", + 319, + "star-triangle-up-open-dot", + 20, + "star-triangle-down", + 120, + "star-triangle-down-open", + 220, + "star-triangle-down-dot", + 320, + "star-triangle-down-open-dot", + 21, + "star-square", + 121, + "star-square-open", + 221, + "star-square-dot", + 321, + "star-square-open-dot", + 22, + "star-diamond", + 122, + "star-diamond-open", + 222, + "star-diamond-dot", + 322, + "star-diamond-open-dot", + 23, + "diamond-tall", + 123, + "diamond-tall-open", + 223, + "diamond-tall-dot", + 323, + "diamond-tall-open-dot", + 24, + "diamond-wide", + 124, + "diamond-wide-open", + 224, + "diamond-wide-dot", + 324, + "diamond-wide-open-dot", + 25, + "hourglass", + 125, + "hourglass-open", + 26, + "bowtie", + 126, + "bowtie-open", + 27, + "circle-cross", + 127, + "circle-cross-open", + 28, + "circle-x", + 128, + "circle-x-open", + 29, + "square-cross", + 129, + "square-cross-open", + 30, + "square-x", + 130, + "square-x-open", + 31, + "diamond-cross", + 131, + "diamond-cross-open", + 32, + "diamond-x", + 132, + "diamond-x-open", + 33, + "cross-thin", + 133, + "cross-thin-open", + 34, + "x-thin", + 134, + "x-thin-open", + 35, + "asterisk", + 135, + "asterisk-open", + 36, + "hash", + 136, + "hash-open", + 236, + "hash-dot", + 336, + "hash-open-dot", + 37, + "y-up", + 137, + "y-up-open", + 38, + "y-down", + 138, + "y-down-open", + 39, + "y-left", + 139, + "y-left-open", + 40, + "y-right", + 140, + "y-right-open", + 41, + "line-ew", + 141, + "line-ew-open", + 42, + "line-ns", + 142, + "line-ns-open", + 43, + "line-ne", + 143, + "line-ne-open", + 44, + "line-nw", + 144, + "line-nw-open", + ], ), **kwargs ) @@ -107,18 +324,14 @@ def __init__( class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='scatterpolar.marker', - **kwargs + self, plotly_name="sizesrc", parent_name="scatterpolar.marker", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -127,18 +340,14 @@ def __init__( class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='sizeref', - parent_name='scatterpolar.marker', - **kwargs + self, plotly_name="sizeref", parent_name="scatterpolar.marker", **kwargs ): super(SizerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -147,19 +356,15 @@ def __init__( class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='sizemode', - parent_name='scatterpolar.marker', - **kwargs + self, plotly_name="sizemode", parent_name="scatterpolar.marker", **kwargs ): super(SizemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['diameter', 'area']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["diameter", "area"]), **kwargs ) @@ -168,19 +373,15 @@ def __init__( class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='sizemin', - parent_name='scatterpolar.marker', - **kwargs + self, plotly_name="sizemin", parent_name="scatterpolar.marker", **kwargs ): super(SizeminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -189,18 +390,15 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='scatterpolar.marker', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="scatterpolar.marker", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -209,18 +407,14 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showscale', - parent_name='scatterpolar.marker', - **kwargs + self, plotly_name="showscale", parent_name="scatterpolar.marker", **kwargs ): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -229,18 +423,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='scatterpolar.marker', - **kwargs + self, plotly_name="reversescale", parent_name="scatterpolar.marker", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -249,18 +439,14 @@ def __init__( class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='opacitysrc', - parent_name='scatterpolar.marker', - **kwargs + self, plotly_name="opacitysrc", parent_name="scatterpolar.marker", **kwargs ): super(OpacitysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -269,22 +455,18 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='scatterpolar.marker', - **kwargs + self, plotly_name="opacity", parent_name="scatterpolar.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -293,19 +475,15 @@ def __init__( class MaxdisplayedValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxdisplayed', - parent_name='scatterpolar.marker', - **kwargs + self, plotly_name="maxdisplayed", parent_name="scatterpolar.marker", **kwargs ): super(MaxdisplayedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -314,16 +492,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='scatterpolar.marker', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="scatterpolar.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -412,7 +588,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -422,19 +598,16 @@ def __init__( class GradientValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='gradient', - parent_name='scatterpolar.marker', - **kwargs + self, plotly_name="gradient", parent_name="scatterpolar.marker", **kwargs ): super(GradientValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Gradient'), + data_class_str=kwargs.pop("data_class_str", "Gradient"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the final color of the gradient fill: the center color for radial, the right for @@ -448,7 +621,7 @@ def __init__( typesrc Sets the source reference on plot.ly for type . -""" +""", ), **kwargs ) @@ -458,18 +631,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scatterpolar.marker', - **kwargs + self, plotly_name="colorsrc", parent_name="scatterpolar.marker", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -478,21 +647,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='scatterpolar.marker', - **kwargs + self, plotly_name="colorscale", parent_name="scatterpolar.marker", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -501,19 +664,16 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='colorbar', - parent_name='scatterpolar.marker', - **kwargs + self, plotly_name="colorbar", parent_name="scatterpolar.marker", **kwargs ): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -725,7 +885,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -735,20 +895,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='scatterpolar.marker', - **kwargs + self, plotly_name="coloraxis", parent_name="scatterpolar.marker", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -757,19 +913,18 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='color', parent_name='scatterpolar.marker', **kwargs + self, plotly_name="color", parent_name="scatterpolar.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'scatterpolar.marker.colorscale' + "colorscale_path", "scatterpolar.marker.colorscale" ), **kwargs ) @@ -779,16 +934,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmin', parent_name='scatterpolar.marker', **kwargs - ): + def __init__(self, plotly_name="cmin", parent_name="scatterpolar.marker", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -797,16 +949,13 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmid', parent_name='scatterpolar.marker', **kwargs - ): + def __init__(self, plotly_name="cmid", parent_name="scatterpolar.marker", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -815,16 +964,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmax', parent_name='scatterpolar.marker', **kwargs - ): + def __init__(self, plotly_name="cmax", parent_name="scatterpolar.marker", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -833,16 +979,15 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='cauto', parent_name='scatterpolar.marker', **kwargs + self, plotly_name="cauto", parent_name="scatterpolar.marker", **kwargs ): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -851,18 +996,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='scatterpolar.marker', - **kwargs + self, plotly_name="autocolorscale", parent_name="scatterpolar.marker", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/__init__.py index 5aa32f4787f..f15609856f6 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='scatterpolar.marker.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="scatterpolar.marker.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,18 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='yanchor', - parent_name='scatterpolar.marker.colorbar', + plotly_name="yanchor", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,20 +39,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='y', - parent_name='scatterpolar.marker.colorbar', - **kwargs + self, plotly_name="y", parent_name="scatterpolar.marker.colorbar", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -68,19 +57,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='scatterpolar.marker.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="scatterpolar.marker.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -89,19 +74,18 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='xanchor', - parent_name='scatterpolar.marker.colorbar', + plotly_name="xanchor", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -110,20 +94,16 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='x', - parent_name='scatterpolar.marker.colorbar', - **kwargs + self, plotly_name="x", parent_name="scatterpolar.marker.colorbar", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -132,19 +112,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='scatterpolar.marker.colorbar', - **kwargs + self, plotly_name="title", parent_name="scatterpolar.marker.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -160,7 +137,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -170,19 +147,18 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='tickwidth', - parent_name='scatterpolar.marker.colorbar', + plotly_name="tickwidth", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -191,18 +167,17 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='tickvalssrc', - parent_name='scatterpolar.marker.colorbar', + plotly_name="tickvalssrc", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -211,18 +186,17 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( self, - plotly_name='tickvals', - parent_name='scatterpolar.marker.colorbar', + plotly_name="tickvals", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -231,18 +205,17 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='ticktextsrc', - parent_name='scatterpolar.marker.colorbar', + plotly_name="ticktextsrc", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -251,18 +224,17 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( self, - plotly_name='ticktext', - parent_name='scatterpolar.marker.colorbar', + plotly_name="ticktext", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -271,18 +243,17 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='ticksuffix', - parent_name='scatterpolar.marker.colorbar', + plotly_name="ticksuffix", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -291,19 +262,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='scatterpolar.marker.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="scatterpolar.marker.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -312,18 +279,17 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickprefix', - parent_name='scatterpolar.marker.colorbar', + plotly_name="tickprefix", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -332,20 +298,19 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='tickmode', - parent_name='scatterpolar.marker.colorbar', + plotly_name="tickmode", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -354,19 +319,18 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='ticklen', - parent_name='scatterpolar.marker.colorbar', + plotly_name="ticklen", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -375,19 +339,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='scatterpolar.marker.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -395,22 +361,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='scatterpolar.marker.colorbar', + plotly_name="tickformatstops", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -444,7 +408,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -454,18 +418,17 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickformat', - parent_name='scatterpolar.marker.colorbar', + plotly_name="tickformat", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -474,19 +437,19 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickfont', - parent_name='scatterpolar.marker.colorbar', + plotly_name="tickfont", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -507,7 +470,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -517,18 +480,17 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='tickcolor', - parent_name='scatterpolar.marker.colorbar', + plotly_name="tickcolor", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -537,18 +499,17 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( self, - plotly_name='tickangle', - parent_name='scatterpolar.marker.colorbar', + plotly_name="tickangle", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,19 +518,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='scatterpolar.marker.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="scatterpolar.marker.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -578,19 +535,18 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='thicknessmode', - parent_name='scatterpolar.marker.colorbar', + plotly_name="thicknessmode", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -599,19 +555,18 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='thickness', - parent_name='scatterpolar.marker.colorbar', + plotly_name="thickness", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -619,22 +574,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='scatterpolar.marker.colorbar', + plotly_name="showticksuffix", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -642,22 +594,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='scatterpolar.marker.colorbar', + plotly_name="showtickprefix", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -666,18 +615,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='scatterpolar.marker.colorbar', + plotly_name="showticklabels", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -686,19 +634,18 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='showexponent', - parent_name='scatterpolar.marker.colorbar', + plotly_name="showexponent", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -706,21 +653,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='scatterpolar.marker.colorbar', + plotly_name="separatethousands", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -729,19 +673,18 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='outlinewidth', - parent_name='scatterpolar.marker.colorbar', + plotly_name="outlinewidth", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -750,18 +693,17 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='outlinecolor', - parent_name='scatterpolar.marker.colorbar', + plotly_name="outlinecolor", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -770,19 +712,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='scatterpolar.marker.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="scatterpolar.marker.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -791,19 +729,18 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='lenmode', - parent_name='scatterpolar.marker.colorbar', + plotly_name="lenmode", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -812,19 +749,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='len', - parent_name='scatterpolar.marker.colorbar', - **kwargs + self, plotly_name="len", parent_name="scatterpolar.marker.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -832,24 +765,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='scatterpolar.marker.colorbar', + plotly_name="exponentformat", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -858,19 +786,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='scatterpolar.marker.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="scatterpolar.marker.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -879,19 +803,18 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='borderwidth', - parent_name='scatterpolar.marker.colorbar', + plotly_name="borderwidth", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -900,18 +823,17 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='scatterpolar.marker.colorbar', + plotly_name="bordercolor", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -920,17 +842,16 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bgcolor', - parent_name='scatterpolar.marker.colorbar', + plotly_name="bgcolor", + parent_name="scatterpolar.marker.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/__init__.py index 8089426830d..ceedf12c5a8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scatterpolar.marker.colorbar.tickfont', + plotly_name="size", + parent_name="scatterpolar.marker.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scatterpolar.marker.colorbar.tickfont', + plotly_name="family", + parent_name="scatterpolar.marker.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterpolar.marker.colorbar.tickfont', + plotly_name="color", + parent_name="scatterpolar.marker.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/__init__.py index 6c542ed8531..12651ce05d7 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='scatterpolar.marker.colorbar.tickformatstop', + plotly_name="value", + parent_name="scatterpolar.marker.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='scatterpolar.marker.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="scatterpolar.marker.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='scatterpolar.marker.colorbar.tickformatstop', + plotly_name="name", + parent_name="scatterpolar.marker.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='scatterpolar.marker.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="scatterpolar.marker.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='scatterpolar.marker.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="scatterpolar.marker.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/__init__.py index 18241ea4155..fcea400fde1 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='text', - parent_name='scatterpolar.marker.colorbar.title', + plotly_name="text", + parent_name="scatterpolar.marker.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +21,18 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='side', - parent_name='scatterpolar.marker.colorbar.title', + plotly_name="side", + parent_name="scatterpolar.marker.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +41,19 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='font', - parent_name='scatterpolar.marker.colorbar.title', + plotly_name="font", + parent_name="scatterpolar.marker.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +74,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/__init__.py index bee4941a850..dfd5db3d4d3 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scatterpolar.marker.colorbar.title.font', + plotly_name="size", + parent_name="scatterpolar.marker.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scatterpolar.marker.colorbar.title.font', + plotly_name="family", + parent_name="scatterpolar.marker.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterpolar.marker.colorbar.title.font', + plotly_name="color", + parent_name="scatterpolar.marker.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/__init__.py index 0ec3f4cab74..249bbb326de 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/gradient/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class TypesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='typesrc', - parent_name='scatterpolar.marker.gradient', + plotly_name="typesrc", + parent_name="scatterpolar.marker.gradient", **kwargs ): super(TypesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,22 +21,16 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='type', - parent_name='scatterpolar.marker.gradient', - **kwargs + self, plotly_name="type", parent_name="scatterpolar.marker.gradient", **kwargs ): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['radial', 'horizontal', 'vertical', 'none'] - ), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["radial", "horizontal", "vertical", "none"]), **kwargs ) @@ -48,18 +39,17 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='colorsrc', - parent_name='scatterpolar.marker.gradient', + plotly_name="colorsrc", + parent_name="scatterpolar.marker.gradient", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -68,18 +58,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatterpolar.marker.gradient', - **kwargs + self, plotly_name="color", parent_name="scatterpolar.marker.gradient", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/__init__.py index bffae23fbe5..c7093965847 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/marker/line/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='widthsrc', - parent_name='scatterpolar.marker.line', - **kwargs + self, plotly_name="widthsrc", parent_name="scatterpolar.marker.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,21 +18,17 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='scatterpolar.marker.line', - **kwargs + self, plotly_name="width", parent_name="scatterpolar.marker.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,18 +37,17 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='reversescale', - parent_name='scatterpolar.marker.line', + plotly_name="reversescale", + parent_name="scatterpolar.marker.line", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -67,18 +56,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scatterpolar.marker.line', - **kwargs + self, plotly_name="colorsrc", parent_name="scatterpolar.marker.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -87,21 +72,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='scatterpolar.marker.line', - **kwargs + self, plotly_name="colorscale", parent_name="scatterpolar.marker.line", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -110,20 +89,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='scatterpolar.marker.line', - **kwargs + self, plotly_name="coloraxis", parent_name="scatterpolar.marker.line", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -132,22 +107,18 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatterpolar.marker.line', - **kwargs + self, plotly_name="color", parent_name="scatterpolar.marker.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'scatterpolar.marker.line.colorscale' + "colorscale_path", "scatterpolar.marker.line.colorscale" ), **kwargs ) @@ -157,19 +128,15 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmin', - parent_name='scatterpolar.marker.line', - **kwargs + self, plotly_name="cmin", parent_name="scatterpolar.marker.line", **kwargs ): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -178,19 +145,15 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmid', - parent_name='scatterpolar.marker.line', - **kwargs + self, plotly_name="cmid", parent_name="scatterpolar.marker.line", **kwargs ): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -199,19 +162,15 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmax', - parent_name='scatterpolar.marker.line', - **kwargs + self, plotly_name="cmax", parent_name="scatterpolar.marker.line", **kwargs ): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -220,19 +179,15 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='cauto', - parent_name='scatterpolar.marker.line', - **kwargs + self, plotly_name="cauto", parent_name="scatterpolar.marker.line", **kwargs ): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -241,18 +196,17 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='autocolorscale', - parent_name='scatterpolar.marker.line', + plotly_name="autocolorscale", + parent_name="scatterpolar.marker.line", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/selected/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/selected/__init__.py index 7f559f917bd..e2f5dc3cc64 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/selected/__init__.py @@ -1,25 +1,20 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='scatterpolar.selected', - **kwargs + self, plotly_name="textfont", parent_name="scatterpolar.selected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of selected points. -""" +""", ), **kwargs ) @@ -29,26 +24,23 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='scatterpolar.selected', - **kwargs + self, plotly_name="marker", parent_name="scatterpolar.selected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of selected points. opacity Sets the marker opacity of selected points. size Sets the marker size of selected points. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/__init__.py index ea42f2cc5f7..e325a515aff 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/selected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scatterpolar.selected.marker', - **kwargs + self, plotly_name="size", parent_name="scatterpolar.selected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='opacity', - parent_name='scatterpolar.selected.marker', + plotly_name="opacity", + parent_name="scatterpolar.selected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +40,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatterpolar.selected.marker', - **kwargs + self, plotly_name="color", parent_name="scatterpolar.selected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/selected/textfont/__init__.py index 7fb1c80b5f0..e26019cfcce 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/selected/textfont/__init__.py @@ -1,20 +1,17 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterpolar.selected.textfont', + plotly_name="color", + parent_name="scatterpolar.selected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/stream/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/stream/__init__.py index 09900a66457..69abf0290d7 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/stream/__init__.py @@ -1,20 +1,17 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='token', parent_name='scatterpolar.stream', **kwargs + self, plotly_name="token", parent_name="scatterpolar.stream", **kwargs ): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,19 +20,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='scatterpolar.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="scatterpolar.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/textfont/__init__.py index 460d137253b..ef69a130c33 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/textfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='scatterpolar.textfont', - **kwargs + self, plotly_name="sizesrc", parent_name="scatterpolar.textfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scatterpolar.textfont', - **kwargs + self, plotly_name="size", parent_name="scatterpolar.textfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='scatterpolar.textfont', - **kwargs + self, plotly_name="familysrc", parent_name="scatterpolar.textfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='scatterpolar.textfont', - **kwargs + self, plotly_name="family", parent_name="scatterpolar.textfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scatterpolar.textfont', - **kwargs + self, plotly_name="colorsrc", parent_name="scatterpolar.textfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatterpolar.textfont', - **kwargs + self, plotly_name="color", parent_name="scatterpolar.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/unselected/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/unselected/__init__.py index 00fd8a6a65f..c2ed13bebb9 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/unselected/__init__.py @@ -1,26 +1,21 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='scatterpolar.unselected', - **kwargs + self, plotly_name="textfont", parent_name="scatterpolar.unselected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) @@ -30,19 +25,16 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='scatterpolar.unselected', - **kwargs + self, plotly_name="marker", parent_name="scatterpolar.unselected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of unselected points, applied only when a selection exists. @@ -52,7 +44,7 @@ def __init__( size Sets the marker size of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/__init__.py index 1db1b3099bb..2479b7a4b62 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/unselected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scatterpolar.unselected.marker', - **kwargs + self, plotly_name="size", parent_name="scatterpolar.unselected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='opacity', - parent_name='scatterpolar.unselected.marker', + plotly_name="opacity", + parent_name="scatterpolar.unselected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +40,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterpolar.unselected.marker', + plotly_name="color", + parent_name="scatterpolar.unselected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolar/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterpolar/unselected/textfont/__init__.py index 7c6ee905769..76fd1f0a998 100644 --- a/packages/python/plotly/plotly/validators/scatterpolar/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolar/unselected/textfont/__init__.py @@ -1,20 +1,17 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterpolar.unselected.textfont', + plotly_name="color", + parent_name="scatterpolar.unselected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/__init__.py index 35c1473f73f..f0dde131bdb 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="scatterpolargl", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -22,16 +17,16 @@ def __init__( class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='unselected', parent_name='scatterpolargl', **kwargs + self, plotly_name="unselected", parent_name="scatterpolargl", **kwargs ): super(UnselectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_class_str=kwargs.pop("data_class_str", "Unselected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.scatterpolargl.unselected.Mar ker instance or dict with compatible properties @@ -39,7 +34,7 @@ def __init__( plotly.graph_objs.scatterpolargl.unselected.Tex tfont instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -49,15 +44,14 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name='uirevision', parent_name='scatterpolargl', **kwargs + self, plotly_name="uirevision", parent_name="scatterpolargl", **kwargs ): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,16 +60,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='uid', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="uid", parent_name="scatterpolargl", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,16 +75,13 @@ def __init__( class ThetaunitValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='thetaunit', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="thetaunit", parent_name="scatterpolargl", **kwargs): super(ThetaunitValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['radians', 'degrees', 'gradians']), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["radians", "degrees", "gradians"]), **kwargs ) @@ -102,15 +90,12 @@ def __init__( class ThetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='thetasrc', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="thetasrc", parent_name="scatterpolargl", **kwargs): super(ThetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -119,15 +104,12 @@ def __init__( class Theta0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='theta0', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="theta0", parent_name="scatterpolargl", **kwargs): super(Theta0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -136,15 +118,12 @@ def __init__( class ThetaValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='theta', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="theta", parent_name="scatterpolargl", **kwargs): super(ThetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -153,15 +132,12 @@ def __init__( class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="scatterpolargl", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -170,18 +146,14 @@ def __init__( class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='textpositionsrc', - parent_name='scatterpolargl', - **kwargs + self, plotly_name="textpositionsrc", parent_name="scatterpolargl", **kwargs ): super(TextpositionsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -190,25 +162,28 @@ def __init__( class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='textposition', - parent_name='scatterpolargl', - **kwargs + self, plotly_name="textposition", parent_name="scatterpolargl", **kwargs ): super(TextpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 'top left', 'top center', 'top right', 'middle left', - 'middle center', 'middle right', 'bottom left', - 'bottom center', 'bottom right' - ] + "values", + [ + "top left", + "top center", + "top right", + "middle left", + "middle center", + "middle right", + "bottom left", + "bottom center", + "bottom right", + ], ), **kwargs ) @@ -218,16 +193,14 @@ def __init__( class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='textfont', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="textfont", parent_name="scatterpolargl", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -257,7 +230,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -267,16 +240,13 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='text', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="text", parent_name="scatterpolargl", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -285,16 +255,13 @@ def __init__( class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='subplot', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="subplot", parent_name="scatterpolargl", **kwargs): super(SubplotValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'polar'), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "polar"), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -303,16 +270,14 @@ def __init__( class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="scatterpolargl", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -322,7 +287,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -332,15 +297,14 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='showlegend', parent_name='scatterpolargl', **kwargs + self, plotly_name="showlegend", parent_name="scatterpolargl", **kwargs ): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -349,18 +313,14 @@ def __init__( class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='selectedpoints', - parent_name='scatterpolargl', - **kwargs + self, plotly_name="selectedpoints", parent_name="scatterpolargl", **kwargs ): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -369,23 +329,21 @@ def __init__( class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='selected', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="selected", parent_name="scatterpolargl", **kwargs): super(SelectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_class_str=kwargs.pop("data_class_str", "Selected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.scatterpolargl.selected.Marke r instance or dict with compatible properties textfont plotly.graph_objs.scatterpolargl.selected.Textf ont instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -395,15 +353,12 @@ def __init__( class RsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='rsrc', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="rsrc", parent_name="scatterpolargl", **kwargs): super(RsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -412,15 +367,12 @@ def __init__( class R0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='r0', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="r0", parent_name="scatterpolargl", **kwargs): super(R0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -429,15 +381,12 @@ def __init__( class RValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='r', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="r", parent_name="scatterpolargl", **kwargs): super(RValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -446,17 +395,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="scatterpolargl", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -465,15 +411,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="scatterpolargl", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -482,17 +425,14 @@ def __init__( class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='mode', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="mode", parent_name="scatterpolargl", **kwargs): super(ModeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['none']), - flags=kwargs.pop('flags', ['lines', 'markers', 'text']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["none"]), + flags=kwargs.pop("flags", ["lines", "markers", "text"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -501,15 +441,12 @@ def __init__( class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="scatterpolargl", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -518,16 +455,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='meta', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="meta", parent_name="scatterpolargl", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -536,16 +470,14 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="scatterpolargl", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -668,7 +600,7 @@ def __init__( symbolsrc Sets the source reference on plot.ly for symbol . -""" +""", ), **kwargs ) @@ -678,16 +610,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="scatterpolargl", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the line color. dash @@ -697,7 +627,7 @@ def __init__( correspond to step-wise line shapes. width Sets the line width (in px). -""" +""", ), **kwargs ) @@ -707,18 +637,14 @@ def __init__( class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='legendgroup', - parent_name='scatterpolargl', - **kwargs + self, plotly_name="legendgroup", parent_name="scatterpolargl", **kwargs ): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -727,15 +653,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="scatterpolargl", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -744,16 +667,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='ids', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="ids", parent_name="scatterpolargl", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -762,18 +682,14 @@ def __init__( class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertextsrc', - parent_name='scatterpolargl', - **kwargs + self, plotly_name="hovertextsrc", parent_name="scatterpolargl", **kwargs ): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -782,16 +698,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="scatterpolargl", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -800,18 +713,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='scatterpolargl', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="scatterpolargl", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -820,19 +729,15 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='hovertemplate', - parent_name='scatterpolargl', - **kwargs + self, plotly_name="hovertemplate", parent_name="scatterpolargl", **kwargs ): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -841,16 +746,16 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='hoverlabel', parent_name='scatterpolargl', **kwargs + self, plotly_name="hoverlabel", parent_name="scatterpolargl", **kwargs ): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -886,7 +791,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -896,18 +801,14 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hoverinfosrc', - parent_name='scatterpolargl', - **kwargs + self, plotly_name="hoverinfosrc", parent_name="scatterpolargl", **kwargs ): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -916,18 +817,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="scatterpolargl", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['r', 'theta', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["r", "theta", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -936,16 +834,13 @@ def __init__( class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='fillcolor', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="fillcolor", parent_name="scatterpolargl", **kwargs): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -954,20 +849,23 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='fill', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="scatterpolargl", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 'none', 'tozeroy', 'tozerox', 'tonexty', 'tonextx', - 'toself', 'tonext' - ] + "values", + [ + "none", + "tozeroy", + "tozerox", + "tonexty", + "tonextx", + "toself", + "tonext", + ], ), **kwargs ) @@ -977,15 +875,12 @@ def __init__( class DthetaValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='dtheta', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="dtheta", parent_name="scatterpolargl", **kwargs): super(DthetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -994,15 +889,12 @@ def __init__( class DrValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='dr', parent_name='scatterpolargl', **kwargs - ): + def __init__(self, plotly_name="dr", parent_name="scatterpolargl", **kwargs): super(DrValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1011,18 +903,14 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='customdatasrc', - parent_name='scatterpolargl', - **kwargs + self, plotly_name="customdatasrc", parent_name="scatterpolargl", **kwargs ): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1031,15 +919,14 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name='customdata', parent_name='scatterpolargl', **kwargs + self, plotly_name="customdata", parent_name="scatterpolargl", **kwargs ): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1048,17 +935,13 @@ def __init__( class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='connectgaps', - parent_name='scatterpolargl', - **kwargs + self, plotly_name="connectgaps", parent_name="scatterpolargl", **kwargs ): super(ConnectgapsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/__init__.py index b4bcf0a9e87..17055e2c262 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='namelengthsrc', - parent_name='scatterpolargl.hoverlabel', + plotly_name="namelengthsrc", + parent_name="scatterpolargl.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +21,19 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( self, - plotly_name='namelength', - parent_name='scatterpolargl.hoverlabel', + plotly_name="namelength", + parent_name="scatterpolargl.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +42,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='scatterpolargl.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="scatterpolargl.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -88,7 +81,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -98,18 +91,17 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bordercolorsrc', - parent_name='scatterpolargl.hoverlabel', + plotly_name="bordercolorsrc", + parent_name="scatterpolargl.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,19 +110,18 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='scatterpolargl.hoverlabel', + plotly_name="bordercolor", + parent_name="scatterpolargl.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -139,18 +130,17 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bgcolorsrc', - parent_name='scatterpolargl.hoverlabel', + plotly_name="bgcolorsrc", + parent_name="scatterpolargl.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,19 +149,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='scatterpolargl.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="scatterpolargl.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -180,18 +166,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='scatterpolargl.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="scatterpolargl.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,19 +182,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='scatterpolargl.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="scatterpolargl.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/__init__.py index db6a9968948..54c6ce0b344 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/hoverlabel/font/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='sizesrc', - parent_name='scatterpolargl.hoverlabel.font', + plotly_name="sizesrc", + parent_name="scatterpolargl.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +21,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scatterpolargl.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="scatterpolargl.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +39,17 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='familysrc', - parent_name='scatterpolargl.hoverlabel.font', + plotly_name="familysrc", + parent_name="scatterpolargl.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +58,20 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scatterpolargl.hoverlabel.font', + plotly_name="family", + parent_name="scatterpolargl.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +80,17 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='colorsrc', - parent_name='scatterpolargl.hoverlabel.font', + plotly_name="colorsrc", + parent_name="scatterpolargl.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +99,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterpolargl.hoverlabel.font', + plotly_name="color", + parent_name="scatterpolargl.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/line/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/line/__init__.py index 32fcc2758ad..28a99d5b36e 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/line/__init__.py @@ -1,20 +1,17 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='width', parent_name='scatterpolargl.line', **kwargs + self, plotly_name="width", parent_name="scatterpolargl.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,16 +20,15 @@ def __init__( class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='shape', parent_name='scatterpolargl.line', **kwargs + self, plotly_name="shape", parent_name="scatterpolargl.line", **kwargs ): super(ShapeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['linear', 'hv', 'vh', 'hvh', 'vhv']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["linear", "hv", "vh", "hvh", "vhv"]), **kwargs ) @@ -41,18 +37,14 @@ def __init__( class DashValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='dash', parent_name='scatterpolargl.line', **kwargs - ): + def __init__(self, plotly_name="dash", parent_name="scatterpolargl.line", **kwargs): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -62,15 +54,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='color', parent_name='scatterpolargl.line', **kwargs + self, plotly_name="color", parent_name="scatterpolargl.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/__init__.py index 5ae563253a5..e9d8fb06463 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='symbolsrc', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="symbolsrc", parent_name="scatterpolargl.marker", **kwargs ): super(SymbolsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,80 +18,303 @@ def __init__( class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='symbol', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="symbol", parent_name="scatterpolargl.marker", **kwargs ): super(SymbolValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 0, 'circle', 100, 'circle-open', 200, 'circle-dot', 300, - 'circle-open-dot', 1, 'square', 101, 'square-open', 201, - 'square-dot', 301, 'square-open-dot', 2, 'diamond', 102, - 'diamond-open', 202, 'diamond-dot', 302, - 'diamond-open-dot', 3, 'cross', 103, 'cross-open', 203, - 'cross-dot', 303, 'cross-open-dot', 4, 'x', 104, 'x-open', - 204, 'x-dot', 304, 'x-open-dot', 5, 'triangle-up', 105, - 'triangle-up-open', 205, 'triangle-up-dot', 305, - 'triangle-up-open-dot', 6, 'triangle-down', 106, - 'triangle-down-open', 206, 'triangle-down-dot', 306, - 'triangle-down-open-dot', 7, 'triangle-left', 107, - 'triangle-left-open', 207, 'triangle-left-dot', 307, - 'triangle-left-open-dot', 8, 'triangle-right', 108, - 'triangle-right-open', 208, 'triangle-right-dot', 308, - 'triangle-right-open-dot', 9, 'triangle-ne', 109, - 'triangle-ne-open', 209, 'triangle-ne-dot', 309, - 'triangle-ne-open-dot', 10, 'triangle-se', 110, - 'triangle-se-open', 210, 'triangle-se-dot', 310, - 'triangle-se-open-dot', 11, 'triangle-sw', 111, - 'triangle-sw-open', 211, 'triangle-sw-dot', 311, - 'triangle-sw-open-dot', 12, 'triangle-nw', 112, - 'triangle-nw-open', 212, 'triangle-nw-dot', 312, - 'triangle-nw-open-dot', 13, 'pentagon', 113, - 'pentagon-open', 213, 'pentagon-dot', 313, - 'pentagon-open-dot', 14, 'hexagon', 114, 'hexagon-open', - 214, 'hexagon-dot', 314, 'hexagon-open-dot', 15, - 'hexagon2', 115, 'hexagon2-open', 215, 'hexagon2-dot', 315, - 'hexagon2-open-dot', 16, 'octagon', 116, 'octagon-open', - 216, 'octagon-dot', 316, 'octagon-open-dot', 17, 'star', - 117, 'star-open', 217, 'star-dot', 317, 'star-open-dot', - 18, 'hexagram', 118, 'hexagram-open', 218, 'hexagram-dot', - 318, 'hexagram-open-dot', 19, 'star-triangle-up', 119, - 'star-triangle-up-open', 219, 'star-triangle-up-dot', 319, - 'star-triangle-up-open-dot', 20, 'star-triangle-down', 120, - 'star-triangle-down-open', 220, 'star-triangle-down-dot', - 320, 'star-triangle-down-open-dot', 21, 'star-square', 121, - 'star-square-open', 221, 'star-square-dot', 321, - 'star-square-open-dot', 22, 'star-diamond', 122, - 'star-diamond-open', 222, 'star-diamond-dot', 322, - 'star-diamond-open-dot', 23, 'diamond-tall', 123, - 'diamond-tall-open', 223, 'diamond-tall-dot', 323, - 'diamond-tall-open-dot', 24, 'diamond-wide', 124, - 'diamond-wide-open', 224, 'diamond-wide-dot', 324, - 'diamond-wide-open-dot', 25, 'hourglass', 125, - 'hourglass-open', 26, 'bowtie', 126, 'bowtie-open', 27, - 'circle-cross', 127, 'circle-cross-open', 28, 'circle-x', - 128, 'circle-x-open', 29, 'square-cross', 129, - 'square-cross-open', 30, 'square-x', 130, 'square-x-open', - 31, 'diamond-cross', 131, 'diamond-cross-open', 32, - 'diamond-x', 132, 'diamond-x-open', 33, 'cross-thin', 133, - 'cross-thin-open', 34, 'x-thin', 134, 'x-thin-open', 35, - 'asterisk', 135, 'asterisk-open', 36, 'hash', 136, - 'hash-open', 236, 'hash-dot', 336, 'hash-open-dot', 37, - 'y-up', 137, 'y-up-open', 38, 'y-down', 138, 'y-down-open', - 39, 'y-left', 139, 'y-left-open', 40, 'y-right', 140, - 'y-right-open', 41, 'line-ew', 141, 'line-ew-open', 42, - 'line-ns', 142, 'line-ns-open', 43, 'line-ne', 143, - 'line-ne-open', 44, 'line-nw', 144, 'line-nw-open' - ] + "values", + [ + 0, + "circle", + 100, + "circle-open", + 200, + "circle-dot", + 300, + "circle-open-dot", + 1, + "square", + 101, + "square-open", + 201, + "square-dot", + 301, + "square-open-dot", + 2, + "diamond", + 102, + "diamond-open", + 202, + "diamond-dot", + 302, + "diamond-open-dot", + 3, + "cross", + 103, + "cross-open", + 203, + "cross-dot", + 303, + "cross-open-dot", + 4, + "x", + 104, + "x-open", + 204, + "x-dot", + 304, + "x-open-dot", + 5, + "triangle-up", + 105, + "triangle-up-open", + 205, + "triangle-up-dot", + 305, + "triangle-up-open-dot", + 6, + "triangle-down", + 106, + "triangle-down-open", + 206, + "triangle-down-dot", + 306, + "triangle-down-open-dot", + 7, + "triangle-left", + 107, + "triangle-left-open", + 207, + "triangle-left-dot", + 307, + "triangle-left-open-dot", + 8, + "triangle-right", + 108, + "triangle-right-open", + 208, + "triangle-right-dot", + 308, + "triangle-right-open-dot", + 9, + "triangle-ne", + 109, + "triangle-ne-open", + 209, + "triangle-ne-dot", + 309, + "triangle-ne-open-dot", + 10, + "triangle-se", + 110, + "triangle-se-open", + 210, + "triangle-se-dot", + 310, + "triangle-se-open-dot", + 11, + "triangle-sw", + 111, + "triangle-sw-open", + 211, + "triangle-sw-dot", + 311, + "triangle-sw-open-dot", + 12, + "triangle-nw", + 112, + "triangle-nw-open", + 212, + "triangle-nw-dot", + 312, + "triangle-nw-open-dot", + 13, + "pentagon", + 113, + "pentagon-open", + 213, + "pentagon-dot", + 313, + "pentagon-open-dot", + 14, + "hexagon", + 114, + "hexagon-open", + 214, + "hexagon-dot", + 314, + "hexagon-open-dot", + 15, + "hexagon2", + 115, + "hexagon2-open", + 215, + "hexagon2-dot", + 315, + "hexagon2-open-dot", + 16, + "octagon", + 116, + "octagon-open", + 216, + "octagon-dot", + 316, + "octagon-open-dot", + 17, + "star", + 117, + "star-open", + 217, + "star-dot", + 317, + "star-open-dot", + 18, + "hexagram", + 118, + "hexagram-open", + 218, + "hexagram-dot", + 318, + "hexagram-open-dot", + 19, + "star-triangle-up", + 119, + "star-triangle-up-open", + 219, + "star-triangle-up-dot", + 319, + "star-triangle-up-open-dot", + 20, + "star-triangle-down", + 120, + "star-triangle-down-open", + 220, + "star-triangle-down-dot", + 320, + "star-triangle-down-open-dot", + 21, + "star-square", + 121, + "star-square-open", + 221, + "star-square-dot", + 321, + "star-square-open-dot", + 22, + "star-diamond", + 122, + "star-diamond-open", + 222, + "star-diamond-dot", + 322, + "star-diamond-open-dot", + 23, + "diamond-tall", + 123, + "diamond-tall-open", + 223, + "diamond-tall-dot", + 323, + "diamond-tall-open-dot", + 24, + "diamond-wide", + 124, + "diamond-wide-open", + 224, + "diamond-wide-dot", + 324, + "diamond-wide-open-dot", + 25, + "hourglass", + 125, + "hourglass-open", + 26, + "bowtie", + 126, + "bowtie-open", + 27, + "circle-cross", + 127, + "circle-cross-open", + 28, + "circle-x", + 128, + "circle-x-open", + 29, + "square-cross", + 129, + "square-cross-open", + 30, + "square-x", + 130, + "square-x-open", + 31, + "diamond-cross", + 131, + "diamond-cross-open", + 32, + "diamond-x", + 132, + "diamond-x-open", + 33, + "cross-thin", + 133, + "cross-thin-open", + 34, + "x-thin", + 134, + "x-thin-open", + 35, + "asterisk", + 135, + "asterisk-open", + 36, + "hash", + 136, + "hash-open", + 236, + "hash-dot", + 336, + "hash-open-dot", + 37, + "y-up", + 137, + "y-up-open", + 38, + "y-down", + 138, + "y-down-open", + 39, + "y-left", + 139, + "y-left-open", + 40, + "y-right", + 140, + "y-right-open", + 41, + "line-ew", + 141, + "line-ew-open", + 42, + "line-ns", + 142, + "line-ns-open", + 43, + "line-ne", + 143, + "line-ne-open", + 44, + "line-nw", + 144, + "line-nw-open", + ], ), **kwargs ) @@ -107,18 +324,14 @@ def __init__( class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="sizesrc", parent_name="scatterpolargl.marker", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -127,18 +340,14 @@ def __init__( class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='sizeref', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="sizeref", parent_name="scatterpolargl.marker", **kwargs ): super(SizerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -147,19 +356,15 @@ def __init__( class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='sizemode', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="sizemode", parent_name="scatterpolargl.marker", **kwargs ): super(SizemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['diameter', 'area']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["diameter", "area"]), **kwargs ) @@ -168,19 +373,15 @@ def __init__( class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='sizemin', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="sizemin", parent_name="scatterpolargl.marker", **kwargs ): super(SizeminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -189,21 +390,17 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="size", parent_name="scatterpolargl.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -212,18 +409,14 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showscale', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="showscale", parent_name="scatterpolargl.marker", **kwargs ): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -232,18 +425,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="reversescale", parent_name="scatterpolargl.marker", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -252,18 +441,14 @@ def __init__( class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='opacitysrc', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="opacitysrc", parent_name="scatterpolargl.marker", **kwargs ): super(OpacitysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -272,22 +457,18 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="opacity", parent_name="scatterpolargl.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -296,19 +477,16 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='line', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="line", parent_name="scatterpolargl.marker", **kwargs ): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -397,7 +575,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -407,18 +585,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="colorsrc", parent_name="scatterpolargl.marker", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -427,21 +601,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="colorscale", parent_name="scatterpolargl.marker", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -450,19 +618,16 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='colorbar', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="colorbar", parent_name="scatterpolargl.marker", **kwargs ): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -674,7 +839,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -684,20 +849,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="coloraxis", parent_name="scatterpolargl.marker", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -706,21 +867,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="color", parent_name="scatterpolargl.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'scatterpolargl.marker.colorscale' + "colorscale_path", "scatterpolargl.marker.colorscale" ), **kwargs ) @@ -730,19 +887,15 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmin', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="cmin", parent_name="scatterpolargl.marker", **kwargs ): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -751,19 +904,15 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmid', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="cmid", parent_name="scatterpolargl.marker", **kwargs ): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -772,19 +921,15 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmax', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="cmax", parent_name="scatterpolargl.marker", **kwargs ): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -793,19 +938,15 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='cauto', - parent_name='scatterpolargl.marker', - **kwargs + self, plotly_name="cauto", parent_name="scatterpolargl.marker", **kwargs ): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -814,18 +955,17 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='autocolorscale', - parent_name='scatterpolargl.marker', + plotly_name="autocolorscale", + parent_name="scatterpolargl.marker", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/__init__.py index bb0d754e5f7..7a88a4fd4ee 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='scatterpolargl.marker.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,18 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='yanchor', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="yanchor", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,20 +39,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='y', - parent_name='scatterpolargl.marker.colorbar', - **kwargs + self, plotly_name="y", parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -68,19 +57,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='scatterpolargl.marker.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -89,19 +74,18 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='xanchor', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="xanchor", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -110,20 +94,16 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='x', - parent_name='scatterpolargl.marker.colorbar', - **kwargs + self, plotly_name="x", parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -132,19 +112,19 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( self, - plotly_name='title', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="title", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -160,7 +140,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -170,19 +150,18 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='tickwidth', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="tickwidth", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -191,18 +170,17 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='tickvalssrc', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="tickvalssrc", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -211,18 +189,17 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( self, - plotly_name='tickvals', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="tickvals", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -231,18 +208,17 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='ticktextsrc', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="ticktextsrc", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -251,18 +227,17 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( self, - plotly_name='ticktext', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="ticktext", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -271,18 +246,17 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='ticksuffix', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="ticksuffix", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -291,19 +265,18 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='ticks', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="ticks", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -312,18 +285,17 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickprefix', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="tickprefix", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -332,20 +304,19 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='tickmode', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="tickmode", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -354,19 +325,18 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='ticklen', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="ticklen", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -375,19 +345,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -395,22 +367,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="tickformatstops", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -444,7 +414,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -454,18 +424,17 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickformat', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="tickformat", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -474,19 +443,19 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickfont', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="tickfont", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -507,7 +476,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -517,18 +486,17 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='tickcolor', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="tickcolor", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -537,18 +505,17 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( self, - plotly_name='tickangle', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="tickangle", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,19 +524,18 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( self, - plotly_name='tick0', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="tick0", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -578,19 +544,18 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='thicknessmode', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="thicknessmode", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -599,19 +564,18 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='thickness', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="thickness", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -619,22 +583,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="showticksuffix", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -642,22 +603,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="showtickprefix", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -666,18 +624,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="showticklabels", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -686,19 +643,18 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='showexponent', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="showexponent", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -706,21 +662,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="separatethousands", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -729,19 +682,18 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='outlinewidth', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="outlinewidth", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -750,18 +702,17 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='outlinecolor', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="outlinecolor", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -770,19 +721,18 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( self, - plotly_name='nticks', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="nticks", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -791,19 +741,18 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='lenmode', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="lenmode", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -812,19 +761,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='len', - parent_name='scatterpolargl.marker.colorbar', - **kwargs + self, plotly_name="len", parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -832,24 +777,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="exponentformat", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -858,19 +798,18 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( self, - plotly_name='dtick', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="dtick", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -879,19 +818,18 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='borderwidth', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="borderwidth", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -900,18 +838,17 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="bordercolor", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -920,17 +857,16 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bgcolor', - parent_name='scatterpolargl.marker.colorbar', + plotly_name="bgcolor", + parent_name="scatterpolargl.marker.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/__init__.py index 6332f5d0036..a5a3cce7f87 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scatterpolargl.marker.colorbar.tickfont', + plotly_name="size", + parent_name="scatterpolargl.marker.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scatterpolargl.marker.colorbar.tickfont', + plotly_name="family", + parent_name="scatterpolargl.marker.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterpolargl.marker.colorbar.tickfont', + plotly_name="color", + parent_name="scatterpolargl.marker.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/__init__.py index 9e47302c8b5..52bfefa5293 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='scatterpolargl.marker.colorbar.tickformatstop', + plotly_name="value", + parent_name="scatterpolargl.marker.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='scatterpolargl.marker.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="scatterpolargl.marker.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='scatterpolargl.marker.colorbar.tickformatstop', + plotly_name="name", + parent_name="scatterpolargl.marker.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='scatterpolargl.marker.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="scatterpolargl.marker.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='scatterpolargl.marker.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="scatterpolargl.marker.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'calc' - }, { - 'valType': 'any', - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "any", "editType": "calc"}, + {"valType": "any", "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/__init__.py index 7176bfb05f0..cebeaf3af61 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='text', - parent_name='scatterpolargl.marker.colorbar.title', + plotly_name="text", + parent_name="scatterpolargl.marker.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +21,18 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='side', - parent_name='scatterpolargl.marker.colorbar.title', + plotly_name="side", + parent_name="scatterpolargl.marker.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +41,19 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='font', - parent_name='scatterpolargl.marker.colorbar.title', + plotly_name="font", + parent_name="scatterpolargl.marker.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +74,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/__init__.py index cf0963e0df4..e3023245993 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scatterpolargl.marker.colorbar.title.font', + plotly_name="size", + parent_name="scatterpolargl.marker.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scatterpolargl.marker.colorbar.title.font', + plotly_name="family", + parent_name="scatterpolargl.marker.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterpolargl.marker.colorbar.title.font', + plotly_name="color", + parent_name="scatterpolargl.marker.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/__init__.py index dfa67cc178f..21cd3200506 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/marker/line/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='widthsrc', - parent_name='scatterpolargl.marker.line', - **kwargs + self, plotly_name="widthsrc", parent_name="scatterpolargl.marker.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,21 +18,17 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='scatterpolargl.marker.line', - **kwargs + self, plotly_name="width", parent_name="scatterpolargl.marker.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,18 +37,17 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='reversescale', - parent_name='scatterpolargl.marker.line', + plotly_name="reversescale", + parent_name="scatterpolargl.marker.line", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -67,18 +56,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scatterpolargl.marker.line', - **kwargs + self, plotly_name="colorsrc", parent_name="scatterpolargl.marker.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -87,21 +72,18 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( self, - plotly_name='colorscale', - parent_name='scatterpolargl.marker.line', + plotly_name="colorscale", + parent_name="scatterpolargl.marker.line", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -110,20 +92,19 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( self, - plotly_name='coloraxis', - parent_name='scatterpolargl.marker.line', + plotly_name="coloraxis", + parent_name="scatterpolargl.marker.line", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -132,21 +113,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatterpolargl.marker.line', - **kwargs + self, plotly_name="color", parent_name="scatterpolargl.marker.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'scatterpolargl.marker.line.colorscale' + "colorscale_path", "scatterpolargl.marker.line.colorscale" ), **kwargs ) @@ -156,19 +133,15 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmin', - parent_name='scatterpolargl.marker.line', - **kwargs + self, plotly_name="cmin", parent_name="scatterpolargl.marker.line", **kwargs ): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -177,19 +150,15 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmid', - parent_name='scatterpolargl.marker.line', - **kwargs + self, plotly_name="cmid", parent_name="scatterpolargl.marker.line", **kwargs ): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -198,19 +167,15 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmax', - parent_name='scatterpolargl.marker.line', - **kwargs + self, plotly_name="cmax", parent_name="scatterpolargl.marker.line", **kwargs ): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -219,19 +184,15 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='cauto', - parent_name='scatterpolargl.marker.line', - **kwargs + self, plotly_name="cauto", parent_name="scatterpolargl.marker.line", **kwargs ): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -240,18 +201,17 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='autocolorscale', - parent_name='scatterpolargl.marker.line', + plotly_name="autocolorscale", + parent_name="scatterpolargl.marker.line", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/selected/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/selected/__init__.py index 74c507b8771..8d0c643518d 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/selected/__init__.py @@ -1,25 +1,20 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='scatterpolargl.selected', - **kwargs + self, plotly_name="textfont", parent_name="scatterpolargl.selected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of selected points. -""" +""", ), **kwargs ) @@ -29,26 +24,23 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='scatterpolargl.selected', - **kwargs + self, plotly_name="marker", parent_name="scatterpolargl.selected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of selected points. opacity Sets the marker opacity of selected points. size Sets the marker size of selected points. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/__init__.py index bbfbf292b3b..03b6daba3ba 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/selected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scatterpolargl.selected.marker', - **kwargs + self, plotly_name="size", parent_name="scatterpolargl.selected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='opacity', - parent_name='scatterpolargl.selected.marker', + plotly_name="opacity", + parent_name="scatterpolargl.selected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +40,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterpolargl.selected.marker', + plotly_name="color", + parent_name="scatterpolargl.selected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/selected/textfont/__init__.py index c3e7fd9cf35..dc20c42406b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/selected/textfont/__init__.py @@ -1,20 +1,17 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterpolargl.selected.textfont', + plotly_name="color", + parent_name="scatterpolargl.selected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/stream/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/stream/__init__.py index ebb460c76e1..bc8b13ab6f8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/stream/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='token', - parent_name='scatterpolargl.stream', - **kwargs + self, plotly_name="token", parent_name="scatterpolargl.stream", **kwargs ): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -26,19 +20,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='scatterpolargl.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="scatterpolargl.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/__init__.py index b196abbbace..8a7187c935b 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/textfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='scatterpolargl.textfont', - **kwargs + self, plotly_name="sizesrc", parent_name="scatterpolargl.textfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scatterpolargl.textfont', - **kwargs + self, plotly_name="size", parent_name="scatterpolargl.textfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='scatterpolargl.textfont', - **kwargs + self, plotly_name="familysrc", parent_name="scatterpolargl.textfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='scatterpolargl.textfont', - **kwargs + self, plotly_name="family", parent_name="scatterpolargl.textfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scatterpolargl.textfont', - **kwargs + self, plotly_name="colorsrc", parent_name="scatterpolargl.textfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatterpolargl.textfont', - **kwargs + self, plotly_name="color", parent_name="scatterpolargl.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/__init__.py index c298d9723f6..34dcc51e6e8 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/__init__.py @@ -1,26 +1,21 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='scatterpolargl.unselected', - **kwargs + self, plotly_name="textfont", parent_name="scatterpolargl.unselected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) @@ -30,19 +25,16 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='scatterpolargl.unselected', - **kwargs + self, plotly_name="marker", parent_name="scatterpolargl.unselected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of unselected points, applied only when a selection exists. @@ -52,7 +44,7 @@ def __init__( size Sets the marker size of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/__init__.py index 192b13004b0..c4483184c16 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/marker/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scatterpolargl.unselected.marker', + plotly_name="size", + parent_name="scatterpolargl.unselected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='opacity', - parent_name='scatterpolargl.unselected.marker', + plotly_name="opacity", + parent_name="scatterpolargl.unselected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterpolargl.unselected.marker', + plotly_name="color", + parent_name="scatterpolargl.unselected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/textfont/__init__.py index 3c8ed24ecad..5f0de35f082 100644 --- a/packages/python/plotly/plotly/validators/scatterpolargl/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterpolargl/unselected/textfont/__init__.py @@ -1,20 +1,17 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterpolargl.unselected.textfont', + plotly_name="color", + parent_name="scatterpolargl.unselected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/__init__.py index 8f90adda212..fa641ca20c6 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="scatterternary", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -22,16 +17,16 @@ def __init__( class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='unselected', parent_name='scatterternary', **kwargs + self, plotly_name="unselected", parent_name="scatterternary", **kwargs ): super(UnselectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_class_str=kwargs.pop("data_class_str", "Unselected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.scatterternary.unselected.Mar ker instance or dict with compatible properties @@ -39,7 +34,7 @@ def __init__( plotly.graph_objs.scatterternary.unselected.Tex tfont instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -49,15 +44,14 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name='uirevision', parent_name='scatterternary', **kwargs + self, plotly_name="uirevision", parent_name="scatterternary", **kwargs ): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,16 +60,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='uid', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="uid", parent_name="scatterternary", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,15 +75,12 @@ def __init__( class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="scatterternary", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -101,18 +89,14 @@ def __init__( class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='textpositionsrc', - parent_name='scatterternary', - **kwargs + self, plotly_name="textpositionsrc", parent_name="scatterternary", **kwargs ): super(TextpositionsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -121,25 +105,28 @@ def __init__( class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='textposition', - parent_name='scatterternary', - **kwargs + self, plotly_name="textposition", parent_name="scatterternary", **kwargs ): super(TextpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 'top left', 'top center', 'top right', 'middle left', - 'middle center', 'middle right', 'bottom left', - 'bottom center', 'bottom right' - ] + "values", + [ + "top left", + "top center", + "top right", + "middle left", + "middle center", + "middle right", + "bottom left", + "bottom center", + "bottom right", + ], ), **kwargs ) @@ -149,16 +136,14 @@ def __init__( class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='textfont', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="textfont", parent_name="scatterternary", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -188,7 +173,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -198,16 +183,13 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='text', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="text", parent_name="scatterternary", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -216,16 +198,13 @@ def __init__( class SumValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='sum', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="sum", parent_name="scatterternary", **kwargs): super(SumValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -234,16 +213,13 @@ def __init__( class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='subplot', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="subplot", parent_name="scatterternary", **kwargs): super(SubplotValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'ternary'), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "ternary"), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -252,16 +228,14 @@ def __init__( class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="scatterternary", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -271,7 +245,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -281,15 +255,14 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='showlegend', parent_name='scatterternary', **kwargs + self, plotly_name="showlegend", parent_name="scatterternary", **kwargs ): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -298,18 +271,14 @@ def __init__( class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='selectedpoints', - parent_name='scatterternary', - **kwargs + self, plotly_name="selectedpoints", parent_name="scatterternary", **kwargs ): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -318,23 +287,21 @@ def __init__( class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='selected', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="selected", parent_name="scatterternary", **kwargs): super(SelectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_class_str=kwargs.pop("data_class_str", "Selected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.scatterternary.selected.Marke r instance or dict with compatible properties textfont plotly.graph_objs.scatterternary.selected.Textf ont instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -344,17 +311,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="scatterternary", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -363,15 +327,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="scatterternary", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -380,17 +341,14 @@ def __init__( class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='mode', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="mode", parent_name="scatterternary", **kwargs): super(ModeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['none']), - flags=kwargs.pop('flags', ['lines', 'markers', 'text']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["none"]), + flags=kwargs.pop("flags", ["lines", "markers", "text"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -399,15 +357,12 @@ def __init__( class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="scatterternary", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -416,16 +371,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='meta', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="meta", parent_name="scatterternary", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -434,16 +386,14 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="scatterternary", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -572,7 +522,7 @@ def __init__( symbolsrc Sets the source reference on plot.ly for symbol . -""" +""", ), **kwargs ) @@ -582,16 +532,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="scatterternary", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the line color. dash @@ -611,7 +559,7 @@ def __init__( "linear" shape). width Sets the line width (in px). -""" +""", ), **kwargs ) @@ -621,18 +569,14 @@ def __init__( class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='legendgroup', - parent_name='scatterternary', - **kwargs + self, plotly_name="legendgroup", parent_name="scatterternary", **kwargs ): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -641,15 +585,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="scatterternary", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -658,16 +599,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='ids', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="ids", parent_name="scatterternary", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -676,18 +614,14 @@ def __init__( class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertextsrc', - parent_name='scatterternary', - **kwargs + self, plotly_name="hovertextsrc", parent_name="scatterternary", **kwargs ): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -696,16 +630,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="scatterternary", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -714,18 +645,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='scatterternary', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="scatterternary", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -734,19 +661,15 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='hovertemplate', - parent_name='scatterternary', - **kwargs + self, plotly_name="hovertemplate", parent_name="scatterternary", **kwargs ): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -755,16 +678,13 @@ def __init__( class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoveron', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="hoveron", parent_name="scatterternary", **kwargs): super(HoveronValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - flags=kwargs.pop('flags', ['points', 'fills']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + flags=kwargs.pop("flags", ["points", "fills"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -773,16 +693,16 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='hoverlabel', parent_name='scatterternary', **kwargs + self, plotly_name="hoverlabel", parent_name="scatterternary", **kwargs ): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -818,7 +738,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -828,18 +748,14 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hoverinfosrc', - parent_name='scatterternary', - **kwargs + self, plotly_name="hoverinfosrc", parent_name="scatterternary", **kwargs ): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -848,18 +764,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="scatterternary", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['a', 'b', 'c', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["a", "b", "c", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -868,16 +781,13 @@ def __init__( class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='fillcolor', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="fillcolor", parent_name="scatterternary", **kwargs): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -886,16 +796,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='fill', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="scatterternary", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['none', 'toself', 'tonext']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "toself", "tonext"]), **kwargs ) @@ -904,18 +811,14 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='customdatasrc', - parent_name='scatterternary', - **kwargs + self, plotly_name="customdatasrc", parent_name="scatterternary", **kwargs ): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -924,15 +827,14 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name='customdata', parent_name='scatterternary', **kwargs + self, plotly_name="customdata", parent_name="scatterternary", **kwargs ): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -941,15 +843,12 @@ def __init__( class CsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='csrc', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="csrc", parent_name="scatterternary", **kwargs): super(CsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -958,18 +857,14 @@ def __init__( class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='connectgaps', - parent_name='scatterternary', - **kwargs + self, plotly_name="connectgaps", parent_name="scatterternary", **kwargs ): super(ConnectgapsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -978,15 +873,14 @@ def __init__( class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='cliponaxis', parent_name='scatterternary', **kwargs + self, plotly_name="cliponaxis", parent_name="scatterternary", **kwargs ): super(CliponaxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -995,15 +889,12 @@ def __init__( class CValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='c', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="c", parent_name="scatterternary", **kwargs): super(CValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1012,15 +903,12 @@ def __init__( class BsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='bsrc', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="bsrc", parent_name="scatterternary", **kwargs): super(BsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1029,15 +917,12 @@ def __init__( class BValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='b', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="b", parent_name="scatterternary", **kwargs): super(BValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1046,15 +931,12 @@ def __init__( class AsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='asrc', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="asrc", parent_name="scatterternary", **kwargs): super(AsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1063,14 +945,11 @@ def __init__( class AValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='a', parent_name='scatterternary', **kwargs - ): + def __init__(self, plotly_name="a", parent_name="scatterternary", **kwargs): super(AValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/__init__.py index a09bdb85a6c..8ac5674084c 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='namelengthsrc', - parent_name='scatterternary.hoverlabel', + plotly_name="namelengthsrc", + parent_name="scatterternary.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +21,19 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( self, - plotly_name='namelength', - parent_name='scatterternary.hoverlabel', + plotly_name="namelength", + parent_name="scatterternary.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +42,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='scatterternary.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="scatterternary.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -88,7 +81,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -98,18 +91,17 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bordercolorsrc', - parent_name='scatterternary.hoverlabel', + plotly_name="bordercolorsrc", + parent_name="scatterternary.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,19 +110,18 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='scatterternary.hoverlabel', + plotly_name="bordercolor", + parent_name="scatterternary.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -139,18 +130,17 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bgcolorsrc', - parent_name='scatterternary.hoverlabel', + plotly_name="bgcolorsrc", + parent_name="scatterternary.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,19 +149,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='scatterternary.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="scatterternary.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -180,18 +166,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='scatterternary.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="scatterternary.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,19 +182,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='scatterternary.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="scatterternary.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/__init__.py index 28ce8ae10aa..d5effbd57a8 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/hoverlabel/font/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='sizesrc', - parent_name='scatterternary.hoverlabel.font', + plotly_name="sizesrc", + parent_name="scatterternary.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +21,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scatterternary.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="scatterternary.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +39,17 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='familysrc', - parent_name='scatterternary.hoverlabel.font', + plotly_name="familysrc", + parent_name="scatterternary.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +58,20 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scatterternary.hoverlabel.font', + plotly_name="family", + parent_name="scatterternary.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +80,17 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='colorsrc', - parent_name='scatterternary.hoverlabel.font', + plotly_name="colorsrc", + parent_name="scatterternary.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +99,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterternary.hoverlabel.font', + plotly_name="color", + parent_name="scatterternary.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/line/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/line/__init__.py index e45444fb1a1..30cdb4aafe2 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/line/__init__.py @@ -1,20 +1,17 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='width', parent_name='scatterternary.line', **kwargs + self, plotly_name="width", parent_name="scatterternary.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,20 +20,16 @@ def __init__( class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='smoothing', - parent_name='scatterternary.line', - **kwargs + self, plotly_name="smoothing", parent_name="scatterternary.line", **kwargs ): super(SmoothingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 1.3), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 1.3), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -45,16 +38,15 @@ def __init__( class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='shape', parent_name='scatterternary.line', **kwargs + self, plotly_name="shape", parent_name="scatterternary.line", **kwargs ): super(ShapeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['linear', 'spline']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["linear", "spline"]), **kwargs ) @@ -63,18 +55,14 @@ def __init__( class DashValidator(_plotly_utils.basevalidators.DashValidator): - - def __init__( - self, plotly_name='dash', parent_name='scatterternary.line', **kwargs - ): + def __init__(self, plotly_name="dash", parent_name="scatterternary.line", **kwargs): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -84,15 +72,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='color', parent_name='scatterternary.line', **kwargs + self, plotly_name="color", parent_name="scatterternary.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/marker/__init__.py index f7fe00a5405..9f3f46155c3 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='symbolsrc', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="symbolsrc", parent_name="scatterternary.marker", **kwargs ): super(SymbolsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,80 +18,303 @@ def __init__( class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='symbol', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="symbol", parent_name="scatterternary.marker", **kwargs ): super(SymbolValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 0, 'circle', 100, 'circle-open', 200, 'circle-dot', 300, - 'circle-open-dot', 1, 'square', 101, 'square-open', 201, - 'square-dot', 301, 'square-open-dot', 2, 'diamond', 102, - 'diamond-open', 202, 'diamond-dot', 302, - 'diamond-open-dot', 3, 'cross', 103, 'cross-open', 203, - 'cross-dot', 303, 'cross-open-dot', 4, 'x', 104, 'x-open', - 204, 'x-dot', 304, 'x-open-dot', 5, 'triangle-up', 105, - 'triangle-up-open', 205, 'triangle-up-dot', 305, - 'triangle-up-open-dot', 6, 'triangle-down', 106, - 'triangle-down-open', 206, 'triangle-down-dot', 306, - 'triangle-down-open-dot', 7, 'triangle-left', 107, - 'triangle-left-open', 207, 'triangle-left-dot', 307, - 'triangle-left-open-dot', 8, 'triangle-right', 108, - 'triangle-right-open', 208, 'triangle-right-dot', 308, - 'triangle-right-open-dot', 9, 'triangle-ne', 109, - 'triangle-ne-open', 209, 'triangle-ne-dot', 309, - 'triangle-ne-open-dot', 10, 'triangle-se', 110, - 'triangle-se-open', 210, 'triangle-se-dot', 310, - 'triangle-se-open-dot', 11, 'triangle-sw', 111, - 'triangle-sw-open', 211, 'triangle-sw-dot', 311, - 'triangle-sw-open-dot', 12, 'triangle-nw', 112, - 'triangle-nw-open', 212, 'triangle-nw-dot', 312, - 'triangle-nw-open-dot', 13, 'pentagon', 113, - 'pentagon-open', 213, 'pentagon-dot', 313, - 'pentagon-open-dot', 14, 'hexagon', 114, 'hexagon-open', - 214, 'hexagon-dot', 314, 'hexagon-open-dot', 15, - 'hexagon2', 115, 'hexagon2-open', 215, 'hexagon2-dot', 315, - 'hexagon2-open-dot', 16, 'octagon', 116, 'octagon-open', - 216, 'octagon-dot', 316, 'octagon-open-dot', 17, 'star', - 117, 'star-open', 217, 'star-dot', 317, 'star-open-dot', - 18, 'hexagram', 118, 'hexagram-open', 218, 'hexagram-dot', - 318, 'hexagram-open-dot', 19, 'star-triangle-up', 119, - 'star-triangle-up-open', 219, 'star-triangle-up-dot', 319, - 'star-triangle-up-open-dot', 20, 'star-triangle-down', 120, - 'star-triangle-down-open', 220, 'star-triangle-down-dot', - 320, 'star-triangle-down-open-dot', 21, 'star-square', 121, - 'star-square-open', 221, 'star-square-dot', 321, - 'star-square-open-dot', 22, 'star-diamond', 122, - 'star-diamond-open', 222, 'star-diamond-dot', 322, - 'star-diamond-open-dot', 23, 'diamond-tall', 123, - 'diamond-tall-open', 223, 'diamond-tall-dot', 323, - 'diamond-tall-open-dot', 24, 'diamond-wide', 124, - 'diamond-wide-open', 224, 'diamond-wide-dot', 324, - 'diamond-wide-open-dot', 25, 'hourglass', 125, - 'hourglass-open', 26, 'bowtie', 126, 'bowtie-open', 27, - 'circle-cross', 127, 'circle-cross-open', 28, 'circle-x', - 128, 'circle-x-open', 29, 'square-cross', 129, - 'square-cross-open', 30, 'square-x', 130, 'square-x-open', - 31, 'diamond-cross', 131, 'diamond-cross-open', 32, - 'diamond-x', 132, 'diamond-x-open', 33, 'cross-thin', 133, - 'cross-thin-open', 34, 'x-thin', 134, 'x-thin-open', 35, - 'asterisk', 135, 'asterisk-open', 36, 'hash', 136, - 'hash-open', 236, 'hash-dot', 336, 'hash-open-dot', 37, - 'y-up', 137, 'y-up-open', 38, 'y-down', 138, 'y-down-open', - 39, 'y-left', 139, 'y-left-open', 40, 'y-right', 140, - 'y-right-open', 41, 'line-ew', 141, 'line-ew-open', 42, - 'line-ns', 142, 'line-ns-open', 43, 'line-ne', 143, - 'line-ne-open', 44, 'line-nw', 144, 'line-nw-open' - ] + "values", + [ + 0, + "circle", + 100, + "circle-open", + 200, + "circle-dot", + 300, + "circle-open-dot", + 1, + "square", + 101, + "square-open", + 201, + "square-dot", + 301, + "square-open-dot", + 2, + "diamond", + 102, + "diamond-open", + 202, + "diamond-dot", + 302, + "diamond-open-dot", + 3, + "cross", + 103, + "cross-open", + 203, + "cross-dot", + 303, + "cross-open-dot", + 4, + "x", + 104, + "x-open", + 204, + "x-dot", + 304, + "x-open-dot", + 5, + "triangle-up", + 105, + "triangle-up-open", + 205, + "triangle-up-dot", + 305, + "triangle-up-open-dot", + 6, + "triangle-down", + 106, + "triangle-down-open", + 206, + "triangle-down-dot", + 306, + "triangle-down-open-dot", + 7, + "triangle-left", + 107, + "triangle-left-open", + 207, + "triangle-left-dot", + 307, + "triangle-left-open-dot", + 8, + "triangle-right", + 108, + "triangle-right-open", + 208, + "triangle-right-dot", + 308, + "triangle-right-open-dot", + 9, + "triangle-ne", + 109, + "triangle-ne-open", + 209, + "triangle-ne-dot", + 309, + "triangle-ne-open-dot", + 10, + "triangle-se", + 110, + "triangle-se-open", + 210, + "triangle-se-dot", + 310, + "triangle-se-open-dot", + 11, + "triangle-sw", + 111, + "triangle-sw-open", + 211, + "triangle-sw-dot", + 311, + "triangle-sw-open-dot", + 12, + "triangle-nw", + 112, + "triangle-nw-open", + 212, + "triangle-nw-dot", + 312, + "triangle-nw-open-dot", + 13, + "pentagon", + 113, + "pentagon-open", + 213, + "pentagon-dot", + 313, + "pentagon-open-dot", + 14, + "hexagon", + 114, + "hexagon-open", + 214, + "hexagon-dot", + 314, + "hexagon-open-dot", + 15, + "hexagon2", + 115, + "hexagon2-open", + 215, + "hexagon2-dot", + 315, + "hexagon2-open-dot", + 16, + "octagon", + 116, + "octagon-open", + 216, + "octagon-dot", + 316, + "octagon-open-dot", + 17, + "star", + 117, + "star-open", + 217, + "star-dot", + 317, + "star-open-dot", + 18, + "hexagram", + 118, + "hexagram-open", + 218, + "hexagram-dot", + 318, + "hexagram-open-dot", + 19, + "star-triangle-up", + 119, + "star-triangle-up-open", + 219, + "star-triangle-up-dot", + 319, + "star-triangle-up-open-dot", + 20, + "star-triangle-down", + 120, + "star-triangle-down-open", + 220, + "star-triangle-down-dot", + 320, + "star-triangle-down-open-dot", + 21, + "star-square", + 121, + "star-square-open", + 221, + "star-square-dot", + 321, + "star-square-open-dot", + 22, + "star-diamond", + 122, + "star-diamond-open", + 222, + "star-diamond-dot", + 322, + "star-diamond-open-dot", + 23, + "diamond-tall", + 123, + "diamond-tall-open", + 223, + "diamond-tall-dot", + 323, + "diamond-tall-open-dot", + 24, + "diamond-wide", + 124, + "diamond-wide-open", + 224, + "diamond-wide-dot", + 324, + "diamond-wide-open-dot", + 25, + "hourglass", + 125, + "hourglass-open", + 26, + "bowtie", + 126, + "bowtie-open", + 27, + "circle-cross", + 127, + "circle-cross-open", + 28, + "circle-x", + 128, + "circle-x-open", + 29, + "square-cross", + 129, + "square-cross-open", + 30, + "square-x", + 130, + "square-x-open", + 31, + "diamond-cross", + 131, + "diamond-cross-open", + 32, + "diamond-x", + 132, + "diamond-x-open", + 33, + "cross-thin", + 133, + "cross-thin-open", + 34, + "x-thin", + 134, + "x-thin-open", + 35, + "asterisk", + 135, + "asterisk-open", + 36, + "hash", + 136, + "hash-open", + 236, + "hash-dot", + 336, + "hash-open-dot", + 37, + "y-up", + 137, + "y-up-open", + 38, + "y-down", + 138, + "y-down-open", + 39, + "y-left", + 139, + "y-left-open", + 40, + "y-right", + 140, + "y-right-open", + 41, + "line-ew", + 141, + "line-ew-open", + 42, + "line-ns", + 142, + "line-ns-open", + 43, + "line-ne", + 143, + "line-ne-open", + 44, + "line-nw", + 144, + "line-nw-open", + ], ), **kwargs ) @@ -107,18 +324,14 @@ def __init__( class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="sizesrc", parent_name="scatterternary.marker", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -127,18 +340,14 @@ def __init__( class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='sizeref', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="sizeref", parent_name="scatterternary.marker", **kwargs ): super(SizerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -147,19 +356,15 @@ def __init__( class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='sizemode', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="sizemode", parent_name="scatterternary.marker", **kwargs ): super(SizemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['diameter', 'area']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["diameter", "area"]), **kwargs ) @@ -168,19 +373,15 @@ def __init__( class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='sizemin', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="sizemin", parent_name="scatterternary.marker", **kwargs ): super(SizeminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -189,21 +390,17 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="size", parent_name="scatterternary.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -212,18 +409,14 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showscale', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="showscale", parent_name="scatterternary.marker", **kwargs ): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -232,18 +425,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="reversescale", parent_name="scatterternary.marker", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -252,18 +441,14 @@ def __init__( class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='opacitysrc', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="opacitysrc", parent_name="scatterternary.marker", **kwargs ): super(OpacitysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -272,22 +457,18 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="opacity", parent_name="scatterternary.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -296,19 +477,15 @@ def __init__( class MaxdisplayedValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxdisplayed', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="maxdisplayed", parent_name="scatterternary.marker", **kwargs ): super(MaxdisplayedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -317,19 +494,16 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='line', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="line", parent_name="scatterternary.marker", **kwargs ): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -418,7 +592,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -428,19 +602,16 @@ def __init__( class GradientValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='gradient', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="gradient", parent_name="scatterternary.marker", **kwargs ): super(GradientValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Gradient'), + data_class_str=kwargs.pop("data_class_str", "Gradient"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the final color of the gradient fill: the center color for radial, the right for @@ -454,7 +625,7 @@ def __init__( typesrc Sets the source reference on plot.ly for type . -""" +""", ), **kwargs ) @@ -464,18 +635,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="colorsrc", parent_name="scatterternary.marker", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -484,21 +651,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="colorscale", parent_name="scatterternary.marker", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -507,19 +668,16 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='colorbar', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="colorbar", parent_name="scatterternary.marker", **kwargs ): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -731,7 +889,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -741,20 +899,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="coloraxis", parent_name="scatterternary.marker", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -763,21 +917,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="color", parent_name="scatterternary.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'scatterternary.marker.colorscale' + "colorscale_path", "scatterternary.marker.colorscale" ), **kwargs ) @@ -787,19 +937,15 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmin', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="cmin", parent_name="scatterternary.marker", **kwargs ): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -808,19 +954,15 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmid', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="cmid", parent_name="scatterternary.marker", **kwargs ): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -829,19 +971,15 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmax', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="cmax", parent_name="scatterternary.marker", **kwargs ): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -850,19 +988,15 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='cauto', - parent_name='scatterternary.marker', - **kwargs + self, plotly_name="cauto", parent_name="scatterternary.marker", **kwargs ): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -871,18 +1005,17 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='autocolorscale', - parent_name='scatterternary.marker', + plotly_name="autocolorscale", + parent_name="scatterternary.marker", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/__init__.py index d651e1f47d6..6626a07d5b4 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='scatterternary.marker.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="scatterternary.marker.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,18 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='yanchor', - parent_name='scatterternary.marker.colorbar', + plotly_name="yanchor", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,20 +39,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='y', - parent_name='scatterternary.marker.colorbar', - **kwargs + self, plotly_name="y", parent_name="scatterternary.marker.colorbar", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -68,19 +57,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='scatterternary.marker.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="scatterternary.marker.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -89,19 +74,18 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='xanchor', - parent_name='scatterternary.marker.colorbar', + plotly_name="xanchor", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -110,20 +94,16 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='x', - parent_name='scatterternary.marker.colorbar', - **kwargs + self, plotly_name="x", parent_name="scatterternary.marker.colorbar", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -132,19 +112,19 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( self, - plotly_name='title', - parent_name='scatterternary.marker.colorbar', + plotly_name="title", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -160,7 +140,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -170,19 +150,18 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='tickwidth', - parent_name='scatterternary.marker.colorbar', + plotly_name="tickwidth", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -191,18 +170,17 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='tickvalssrc', - parent_name='scatterternary.marker.colorbar', + plotly_name="tickvalssrc", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -211,18 +189,17 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( self, - plotly_name='tickvals', - parent_name='scatterternary.marker.colorbar', + plotly_name="tickvals", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -231,18 +208,17 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='ticktextsrc', - parent_name='scatterternary.marker.colorbar', + plotly_name="ticktextsrc", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -251,18 +227,17 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( self, - plotly_name='ticktext', - parent_name='scatterternary.marker.colorbar', + plotly_name="ticktext", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -271,18 +246,17 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='ticksuffix', - parent_name='scatterternary.marker.colorbar', + plotly_name="ticksuffix", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -291,19 +265,18 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='ticks', - parent_name='scatterternary.marker.colorbar', + plotly_name="ticks", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -312,18 +285,17 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickprefix', - parent_name='scatterternary.marker.colorbar', + plotly_name="tickprefix", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -332,20 +304,19 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='tickmode', - parent_name='scatterternary.marker.colorbar', + plotly_name="tickmode", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -354,19 +325,18 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='ticklen', - parent_name='scatterternary.marker.colorbar', + plotly_name="ticklen", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -375,19 +345,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='scatterternary.marker.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -395,22 +367,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='scatterternary.marker.colorbar', + plotly_name="tickformatstops", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -444,7 +414,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -454,18 +424,17 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='tickformat', - parent_name='scatterternary.marker.colorbar', + plotly_name="tickformat", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -474,19 +443,19 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickfont', - parent_name='scatterternary.marker.colorbar', + plotly_name="tickfont", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -507,7 +476,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -517,18 +486,17 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='tickcolor', - parent_name='scatterternary.marker.colorbar', + plotly_name="tickcolor", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -537,18 +505,17 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( self, - plotly_name='tickangle', - parent_name='scatterternary.marker.colorbar', + plotly_name="tickangle", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,19 +524,18 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( self, - plotly_name='tick0', - parent_name='scatterternary.marker.colorbar', + plotly_name="tick0", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -578,19 +544,18 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='thicknessmode', - parent_name='scatterternary.marker.colorbar', + plotly_name="thicknessmode", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -599,19 +564,18 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='thickness', - parent_name='scatterternary.marker.colorbar', + plotly_name="thickness", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -619,22 +583,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='scatterternary.marker.colorbar', + plotly_name="showticksuffix", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -642,22 +603,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='scatterternary.marker.colorbar', + plotly_name="showtickprefix", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -666,18 +624,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='scatterternary.marker.colorbar', + plotly_name="showticklabels", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -686,19 +643,18 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='showexponent', - parent_name='scatterternary.marker.colorbar', + plotly_name="showexponent", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -706,21 +662,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='scatterternary.marker.colorbar', + plotly_name="separatethousands", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -729,19 +682,18 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='outlinewidth', - parent_name='scatterternary.marker.colorbar', + plotly_name="outlinewidth", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -750,18 +702,17 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='outlinecolor', - parent_name='scatterternary.marker.colorbar', + plotly_name="outlinecolor", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -770,19 +721,18 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( self, - plotly_name='nticks', - parent_name='scatterternary.marker.colorbar', + plotly_name="nticks", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -791,19 +741,18 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='lenmode', - parent_name='scatterternary.marker.colorbar', + plotly_name="lenmode", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -812,19 +761,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='len', - parent_name='scatterternary.marker.colorbar', - **kwargs + self, plotly_name="len", parent_name="scatterternary.marker.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -832,24 +777,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='scatterternary.marker.colorbar', + plotly_name="exponentformat", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -858,19 +798,18 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( self, - plotly_name='dtick', - parent_name='scatterternary.marker.colorbar', + plotly_name="dtick", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -879,19 +818,18 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='borderwidth', - parent_name='scatterternary.marker.colorbar', + plotly_name="borderwidth", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -900,18 +838,17 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bordercolor', - parent_name='scatterternary.marker.colorbar', + plotly_name="bordercolor", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -920,17 +857,16 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='bgcolor', - parent_name='scatterternary.marker.colorbar', + plotly_name="bgcolor", + parent_name="scatterternary.marker.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/__init__.py index be7d7fa2e02..494840b7fbf 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickfont/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scatterternary.marker.colorbar.tickfont', + plotly_name="size", + parent_name="scatterternary.marker.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scatterternary.marker.colorbar.tickfont', + plotly_name="family", + parent_name="scatterternary.marker.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterternary.marker.colorbar.tickfont', + plotly_name="color", + parent_name="scatterternary.marker.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/__init__.py index 08555b5c1c4..250a8521241 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='scatterternary.marker.colorbar.tickformatstop', + plotly_name="value", + parent_name="scatterternary.marker.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='scatterternary.marker.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="scatterternary.marker.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='scatterternary.marker.colorbar.tickformatstop', + plotly_name="name", + parent_name="scatterternary.marker.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='scatterternary.marker.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="scatterternary.marker.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='scatterternary.marker.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="scatterternary.marker.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/__init__.py index a812a4d42a3..d8ac4317112 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='text', - parent_name='scatterternary.marker.colorbar.title', + plotly_name="text", + parent_name="scatterternary.marker.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +21,18 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( self, - plotly_name='side', - parent_name='scatterternary.marker.colorbar.title', + plotly_name="side", + parent_name="scatterternary.marker.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +41,19 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='font', - parent_name='scatterternary.marker.colorbar.title', + plotly_name="font", + parent_name="scatterternary.marker.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +74,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/__init__.py index 5ddd0988596..9f9fb0dd765 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scatterternary.marker.colorbar.title.font', + plotly_name="size", + parent_name="scatterternary.marker.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='scatterternary.marker.colorbar.title.font', + plotly_name="family", + parent_name="scatterternary.marker.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterternary.marker.colorbar.title.font', + plotly_name="color", + parent_name="scatterternary.marker.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/__init__.py index b9d5423cc3c..b6749327fe3 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/gradient/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class TypesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='typesrc', - parent_name='scatterternary.marker.gradient', + plotly_name="typesrc", + parent_name="scatterternary.marker.gradient", **kwargs ): super(TypesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,22 +21,16 @@ def __init__( class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='type', - parent_name='scatterternary.marker.gradient', - **kwargs + self, plotly_name="type", parent_name="scatterternary.marker.gradient", **kwargs ): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['radial', 'horizontal', 'vertical', 'none'] - ), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["radial", "horizontal", "vertical", "none"]), **kwargs ) @@ -48,18 +39,17 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='colorsrc', - parent_name='scatterternary.marker.gradient', + plotly_name="colorsrc", + parent_name="scatterternary.marker.gradient", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -68,18 +58,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterternary.marker.gradient', + plotly_name="color", + parent_name="scatterternary.marker.gradient", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/marker/line/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/marker/line/__init__.py index e0dee10e704..14b4d50fbaf 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/marker/line/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='widthsrc', - parent_name='scatterternary.marker.line', - **kwargs + self, plotly_name="widthsrc", parent_name="scatterternary.marker.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,21 +18,17 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='scatterternary.marker.line', - **kwargs + self, plotly_name="width", parent_name="scatterternary.marker.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,18 +37,17 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='reversescale', - parent_name='scatterternary.marker.line', + plotly_name="reversescale", + parent_name="scatterternary.marker.line", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -67,18 +56,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scatterternary.marker.line', - **kwargs + self, plotly_name="colorsrc", parent_name="scatterternary.marker.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -87,21 +72,18 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( self, - plotly_name='colorscale', - parent_name='scatterternary.marker.line', + plotly_name="colorscale", + parent_name="scatterternary.marker.line", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -110,20 +92,19 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( self, - plotly_name='coloraxis', - parent_name='scatterternary.marker.line', + plotly_name="coloraxis", + parent_name="scatterternary.marker.line", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -132,21 +113,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatterternary.marker.line', - **kwargs + self, plotly_name="color", parent_name="scatterternary.marker.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'scatterternary.marker.line.colorscale' + "colorscale_path", "scatterternary.marker.line.colorscale" ), **kwargs ) @@ -156,19 +133,15 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmin', - parent_name='scatterternary.marker.line', - **kwargs + self, plotly_name="cmin", parent_name="scatterternary.marker.line", **kwargs ): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -177,19 +150,15 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmid', - parent_name='scatterternary.marker.line', - **kwargs + self, plotly_name="cmid", parent_name="scatterternary.marker.line", **kwargs ): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -198,19 +167,15 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='cmax', - parent_name='scatterternary.marker.line', - **kwargs + self, plotly_name="cmax", parent_name="scatterternary.marker.line", **kwargs ): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -219,19 +184,15 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='cauto', - parent_name='scatterternary.marker.line', - **kwargs + self, plotly_name="cauto", parent_name="scatterternary.marker.line", **kwargs ): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -240,18 +201,17 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='autocolorscale', - parent_name='scatterternary.marker.line', + plotly_name="autocolorscale", + parent_name="scatterternary.marker.line", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/selected/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/selected/__init__.py index 60d394d6ef2..7381738c4c8 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/selected/__init__.py @@ -1,25 +1,20 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='scatterternary.selected', - **kwargs + self, plotly_name="textfont", parent_name="scatterternary.selected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of selected points. -""" +""", ), **kwargs ) @@ -29,26 +24,23 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='scatterternary.selected', - **kwargs + self, plotly_name="marker", parent_name="scatterternary.selected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of selected points. opacity Sets the marker opacity of selected points. size Sets the marker size of selected points. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/selected/marker/__init__.py index 2bcc0af6632..8062840b01a 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/selected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scatterternary.selected.marker', - **kwargs + self, plotly_name="size", parent_name="scatterternary.selected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='opacity', - parent_name='scatterternary.selected.marker', + plotly_name="opacity", + parent_name="scatterternary.selected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +40,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterternary.selected.marker', + plotly_name="color", + parent_name="scatterternary.selected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/selected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/selected/textfont/__init__.py index 51ce146c57c..93742c5e767 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/selected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/selected/textfont/__init__.py @@ -1,20 +1,17 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterternary.selected.textfont', + plotly_name="color", + parent_name="scatterternary.selected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/stream/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/stream/__init__.py index 3eab8bf323a..fdb6c1734da 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/stream/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='token', - parent_name='scatterternary.stream', - **kwargs + self, plotly_name="token", parent_name="scatterternary.stream", **kwargs ): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -26,19 +20,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='scatterternary.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="scatterternary.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/textfont/__init__.py index fd870ec4e37..c0231cab710 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/textfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='scatterternary.textfont', - **kwargs + self, plotly_name="sizesrc", parent_name="scatterternary.textfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='scatterternary.textfont', - **kwargs + self, plotly_name="size", parent_name="scatterternary.textfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='scatterternary.textfont', - **kwargs + self, plotly_name="familysrc", parent_name="scatterternary.textfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='scatterternary.textfont', - **kwargs + self, plotly_name="family", parent_name="scatterternary.textfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='scatterternary.textfont', - **kwargs + self, plotly_name="colorsrc", parent_name="scatterternary.textfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='scatterternary.textfont', - **kwargs + self, plotly_name="color", parent_name="scatterternary.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/unselected/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/unselected/__init__.py index 0194d86b41d..28e61d62341 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/unselected/__init__.py @@ -1,26 +1,21 @@ - - import _plotly_utils.basevalidators class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='textfont', - parent_name='scatterternary.unselected', - **kwargs + self, plotly_name="textfont", parent_name="scatterternary.unselected", **kwargs ): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the text font color of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) @@ -30,19 +25,16 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='scatterternary.unselected', - **kwargs + self, plotly_name="marker", parent_name="scatterternary.unselected", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of unselected points, applied only when a selection exists. @@ -52,7 +44,7 @@ def __init__( size Sets the marker size of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/__init__.py index 70fbadda75b..d139b41d843 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/unselected/marker/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='scatterternary.unselected.marker', + plotly_name="size", + parent_name="scatterternary.unselected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='opacity', - parent_name='scatterternary.unselected.marker', + plotly_name="opacity", + parent_name="scatterternary.unselected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterternary.unselected.marker', + plotly_name="color", + parent_name="scatterternary.unselected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/scatterternary/unselected/textfont/__init__.py b/packages/python/plotly/plotly/validators/scatterternary/unselected/textfont/__init__.py index 715b1a0207b..4cad7075089 100644 --- a/packages/python/plotly/plotly/validators/scatterternary/unselected/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/scatterternary/unselected/textfont/__init__.py @@ -1,20 +1,17 @@ - - import _plotly_utils.basevalidators class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='scatterternary.unselected.textfont', + plotly_name="color", + parent_name="scatterternary.unselected.textfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/__init__.py b/packages/python/plotly/plotly/validators/splom/__init__.py index ade8438b90c..b6455df2c81 100644 --- a/packages/python/plotly/plotly/validators/splom/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/__init__.py @@ -1,24 +1,22 @@ - - import _plotly_utils.basevalidators class YaxesValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__(self, plotly_name='yaxes', parent_name='splom', **kwargs): + def __init__(self, plotly_name="yaxes", parent_name="splom", **kwargs): super(YaxesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - free_length=kwargs.pop('free_length', True), + edit_type=kwargs.pop("edit_type", "calc"), + free_length=kwargs.pop("free_length", True), items=kwargs.pop( - 'items', { - 'valType': 'subplotid', - 'regex': '/^y([2-9]|[1-9][0-9]+)?$/', - 'editType': 'plot' - } + "items", + { + "valType": "subplotid", + "regex": "/^y([2-9]|[1-9][0-9]+)?$/", + "editType": "plot", + }, ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -27,21 +25,21 @@ def __init__(self, plotly_name='yaxes', parent_name='splom', **kwargs): class XaxesValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__(self, plotly_name='xaxes', parent_name='splom', **kwargs): + def __init__(self, plotly_name="xaxes", parent_name="splom", **kwargs): super(XaxesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - free_length=kwargs.pop('free_length', True), + edit_type=kwargs.pop("edit_type", "calc"), + free_length=kwargs.pop("free_length", True), items=kwargs.pop( - 'items', { - 'valType': 'subplotid', - 'regex': '/^x([2-9]|[1-9][0-9]+)?$/', - 'editType': 'plot' - } + "items", + { + "valType": "subplotid", + "regex": "/^x([2-9]|[1-9][0-9]+)?$/", + "editType": "plot", + }, ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -50,14 +48,13 @@ def __init__(self, plotly_name='xaxes', parent_name='splom', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='splom', **kwargs): + def __init__(self, plotly_name="visible", parent_name="splom", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -66,20 +63,18 @@ def __init__(self, plotly_name='visible', parent_name='splom', **kwargs): class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='unselected', parent_name='splom', **kwargs - ): + def __init__(self, plotly_name="unselected", parent_name="splom", **kwargs): super(UnselectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_class_str=kwargs.pop("data_class_str", "Unselected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.splom.unselected.Marker instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -89,15 +84,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='splom', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="splom", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -106,14 +98,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='splom', **kwargs): + def __init__(self, plotly_name="uid", parent_name="splom", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -122,13 +113,12 @@ def __init__(self, plotly_name='uid', parent_name='splom', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='textsrc', parent_name='splom', **kwargs): + def __init__(self, plotly_name="textsrc", parent_name="splom", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -137,14 +127,13 @@ def __init__(self, plotly_name='textsrc', parent_name='splom', **kwargs): class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='splom', **kwargs): + def __init__(self, plotly_name="text", parent_name="splom", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -153,14 +142,14 @@ def __init__(self, plotly_name='text', parent_name='splom', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='splom', **kwargs): + def __init__(self, plotly_name="stream", parent_name="splom", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -170,7 +159,7 @@ def __init__(self, plotly_name='stream', parent_name='splom', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -180,15 +169,12 @@ def __init__(self, plotly_name='stream', parent_name='splom', **kwargs): class ShowupperhalfValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showupperhalf', parent_name='splom', **kwargs - ): + def __init__(self, plotly_name="showupperhalf", parent_name="splom", **kwargs): super(ShowupperhalfValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -197,15 +183,12 @@ def __init__( class ShowlowerhalfValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlowerhalf', parent_name='splom', **kwargs - ): + def __init__(self, plotly_name="showlowerhalf", parent_name="splom", **kwargs): super(ShowlowerhalfValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -214,15 +197,12 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='splom', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="splom", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -231,15 +211,12 @@ def __init__( class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='selectedpoints', parent_name='splom', **kwargs - ): + def __init__(self, plotly_name="selectedpoints", parent_name="splom", **kwargs): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -248,18 +225,18 @@ def __init__( class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='selected', parent_name='splom', **kwargs): + def __init__(self, plotly_name="selected", parent_name="splom", **kwargs): super(SelectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_class_str=kwargs.pop("data_class_str", "Selected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.splom.selected.Marker instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -269,15 +246,14 @@ def __init__(self, plotly_name='selected', parent_name='splom', **kwargs): class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='opacity', parent_name='splom', **kwargs): + def __init__(self, plotly_name="opacity", parent_name="splom", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -286,13 +262,12 @@ def __init__(self, plotly_name='opacity', parent_name='splom', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='splom', **kwargs): + def __init__(self, plotly_name="name", parent_name="splom", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -301,13 +276,12 @@ def __init__(self, plotly_name='name', parent_name='splom', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='splom', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="splom", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -316,14 +290,13 @@ def __init__(self, plotly_name='metasrc', parent_name='splom', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='splom', **kwargs): + def __init__(self, plotly_name="meta", parent_name="splom", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -332,14 +305,14 @@ def __init__(self, plotly_name='meta', parent_name='splom', **kwargs): class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='marker', parent_name='splom', **kwargs): + def __init__(self, plotly_name="marker", parent_name="splom", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -462,7 +435,7 @@ def __init__(self, plotly_name='marker', parent_name='splom', **kwargs): symbolsrc Sets the source reference on plot.ly for symbol . -""" +""", ), **kwargs ) @@ -472,15 +445,12 @@ def __init__(self, plotly_name='marker', parent_name='splom', **kwargs): class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='legendgroup', parent_name='splom', **kwargs - ): + def __init__(self, plotly_name="legendgroup", parent_name="splom", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -489,13 +459,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='splom', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="splom", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -504,14 +473,13 @@ def __init__(self, plotly_name='idssrc', parent_name='splom', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='splom', **kwargs): + def __init__(self, plotly_name="ids", parent_name="splom", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -520,15 +488,12 @@ def __init__(self, plotly_name='ids', parent_name='splom', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='splom', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="splom", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -537,14 +502,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='hovertext', parent_name='splom', **kwargs): + def __init__(self, plotly_name="hovertext", parent_name="splom", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -553,15 +517,12 @@ def __init__(self, plotly_name='hovertext', parent_name='splom', **kwargs): class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertemplatesrc', parent_name='splom', **kwargs - ): + def __init__(self, plotly_name="hovertemplatesrc", parent_name="splom", **kwargs): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -570,16 +531,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='splom', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="splom", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -588,16 +546,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='splom', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="splom", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -633,7 +589,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -643,15 +599,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='splom', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="splom", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -660,16 +613,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__(self, plotly_name='hoverinfo', parent_name='splom', **kwargs): + def __init__(self, plotly_name="hoverinfo", parent_name="splom", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -678,16 +630,16 @@ def __init__(self, plotly_name='hoverinfo', parent_name='splom', **kwargs): class DimensionValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='dimensiondefaults', parent_name='splom', **kwargs - ): + def __init__(self, plotly_name="dimensiondefaults", parent_name="splom", **kwargs): super(DimensionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Dimension'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Dimension"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -696,16 +648,14 @@ def __init__( class DimensionsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): - - def __init__( - self, plotly_name='dimensions', parent_name='splom', **kwargs - ): + def __init__(self, plotly_name="dimensions", parent_name="splom", **kwargs): super(DimensionsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Dimension'), + data_class_str=kwargs.pop("data_class_str", "Dimension"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ axis plotly.graph_objs.splom.dimension.Axis instance or dict with compatible properties @@ -743,7 +693,7 @@ def __init__( shown on the graph. Note that even visible false dimension contribute to the default grid generate by this splom trace. -""" +""", ), **kwargs ) @@ -753,18 +703,18 @@ def __init__( class DiagonalValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='diagonal', parent_name='splom', **kwargs): + def __init__(self, plotly_name="diagonal", parent_name="splom", **kwargs): super(DiagonalValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Diagonal'), + data_class_str=kwargs.pop("data_class_str", "Diagonal"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ visible Determines whether or not subplots on the diagonal are displayed. -""" +""", ), **kwargs ) @@ -774,15 +724,12 @@ def __init__(self, plotly_name='diagonal', parent_name='splom', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='splom', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="splom", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -791,14 +738,11 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='splom', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="splom", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/diagonal/__init__.py b/packages/python/plotly/plotly/validators/splom/diagonal/__init__.py index 0c6e87a0f27..90f81a4e7c8 100644 --- a/packages/python/plotly/plotly/validators/splom/diagonal/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/diagonal/__init__.py @@ -1,17 +1,12 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='visible', parent_name='splom.diagonal', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="splom.diagonal", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/dimension/__init__.py b/packages/python/plotly/plotly/validators/splom/dimension/__init__.py index bc7111b0eea..1eac06e9afe 100644 --- a/packages/python/plotly/plotly/validators/splom/dimension/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/dimension/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='visible', parent_name='splom.dimension', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="splom.dimension", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,15 +16,14 @@ def __init__( class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='valuessrc', parent_name='splom.dimension', **kwargs + self, plotly_name="valuessrc", parent_name="splom.dimension", **kwargs ): super(ValuessrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -38,15 +32,12 @@ def __init__( class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='values', parent_name='splom.dimension', **kwargs - ): + def __init__(self, plotly_name="values", parent_name="splom.dimension", **kwargs): super(ValuesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -55,18 +46,14 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='templateitemname', - parent_name='splom.dimension', - **kwargs + self, plotly_name="templateitemname", parent_name="splom.dimension", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -75,15 +62,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='name', parent_name='splom.dimension', **kwargs - ): + def __init__(self, plotly_name="name", parent_name="splom.dimension", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -92,15 +76,12 @@ def __init__( class LabelValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='label', parent_name='splom.dimension', **kwargs - ): + def __init__(self, plotly_name="label", parent_name="splom.dimension", **kwargs): super(LabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,16 +90,14 @@ def __init__( class AxisValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='axis', parent_name='splom.dimension', **kwargs - ): + def __init__(self, plotly_name="axis", parent_name="splom.dimension", **kwargs): super(AxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Axis'), + data_class_str=kwargs.pop("data_class_str", "Axis"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ matches Determines whether or not the x & y axes generated by this dimension match. Equivalent @@ -129,7 +108,7 @@ def __init__( generated x and y axes. Note that the axis `type` values set in layout take precedence over this attribute. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/dimension/axis/__init__.py b/packages/python/plotly/plotly/validators/splom/dimension/axis/__init__.py index fdcef516277..15e63710e05 100644 --- a/packages/python/plotly/plotly/validators/splom/dimension/axis/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/dimension/axis/__init__.py @@ -1,19 +1,16 @@ - - import _plotly_utils.basevalidators class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='type', parent_name='splom.dimension.axis', **kwargs + self, plotly_name="type", parent_name="splom.dimension.axis", **kwargs ): super(TypeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['linear', 'log', 'date', 'category']), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["linear", "log", "date", "category"]), **kwargs ) @@ -22,17 +19,13 @@ def __init__( class MatchesValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='matches', - parent_name='splom.dimension.axis', - **kwargs + self, plotly_name="matches", parent_name="splom.dimension.axis", **kwargs ): super(MatchesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/__init__.py index 61dd3a2ec9b..5106fcfca97 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='splom.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="splom.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='splom.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="splom.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='splom.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="splom.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='splom.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="splom.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='splom.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="splom.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='splom.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="splom.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,16 +132,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='splom.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="splom.hoverlabel", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -174,15 +147,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='alignsrc', parent_name='splom.hoverlabel', **kwargs + self, plotly_name="alignsrc", parent_name="splom.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -191,16 +163,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='splom.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="splom.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/__init__.py index eb98ee148ae..b7e8ebbf767 100644 --- a/packages/python/plotly/plotly/validators/splom/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='splom.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="splom.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='splom.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="splom.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='splom.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="splom.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='splom.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="splom.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='splom.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="splom.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='splom.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="splom.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/marker/__init__.py b/packages/python/plotly/plotly/validators/splom/marker/__init__.py index b46137290ed..e93262c4031 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/marker/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='symbolsrc', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="symbolsrc", parent_name="splom.marker", **kwargs): super(SymbolsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,77 +16,301 @@ def __init__( class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='symbol', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="symbol", parent_name="splom.marker", **kwargs): super(SymbolValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 0, 'circle', 100, 'circle-open', 200, 'circle-dot', 300, - 'circle-open-dot', 1, 'square', 101, 'square-open', 201, - 'square-dot', 301, 'square-open-dot', 2, 'diamond', 102, - 'diamond-open', 202, 'diamond-dot', 302, - 'diamond-open-dot', 3, 'cross', 103, 'cross-open', 203, - 'cross-dot', 303, 'cross-open-dot', 4, 'x', 104, 'x-open', - 204, 'x-dot', 304, 'x-open-dot', 5, 'triangle-up', 105, - 'triangle-up-open', 205, 'triangle-up-dot', 305, - 'triangle-up-open-dot', 6, 'triangle-down', 106, - 'triangle-down-open', 206, 'triangle-down-dot', 306, - 'triangle-down-open-dot', 7, 'triangle-left', 107, - 'triangle-left-open', 207, 'triangle-left-dot', 307, - 'triangle-left-open-dot', 8, 'triangle-right', 108, - 'triangle-right-open', 208, 'triangle-right-dot', 308, - 'triangle-right-open-dot', 9, 'triangle-ne', 109, - 'triangle-ne-open', 209, 'triangle-ne-dot', 309, - 'triangle-ne-open-dot', 10, 'triangle-se', 110, - 'triangle-se-open', 210, 'triangle-se-dot', 310, - 'triangle-se-open-dot', 11, 'triangle-sw', 111, - 'triangle-sw-open', 211, 'triangle-sw-dot', 311, - 'triangle-sw-open-dot', 12, 'triangle-nw', 112, - 'triangle-nw-open', 212, 'triangle-nw-dot', 312, - 'triangle-nw-open-dot', 13, 'pentagon', 113, - 'pentagon-open', 213, 'pentagon-dot', 313, - 'pentagon-open-dot', 14, 'hexagon', 114, 'hexagon-open', - 214, 'hexagon-dot', 314, 'hexagon-open-dot', 15, - 'hexagon2', 115, 'hexagon2-open', 215, 'hexagon2-dot', 315, - 'hexagon2-open-dot', 16, 'octagon', 116, 'octagon-open', - 216, 'octagon-dot', 316, 'octagon-open-dot', 17, 'star', - 117, 'star-open', 217, 'star-dot', 317, 'star-open-dot', - 18, 'hexagram', 118, 'hexagram-open', 218, 'hexagram-dot', - 318, 'hexagram-open-dot', 19, 'star-triangle-up', 119, - 'star-triangle-up-open', 219, 'star-triangle-up-dot', 319, - 'star-triangle-up-open-dot', 20, 'star-triangle-down', 120, - 'star-triangle-down-open', 220, 'star-triangle-down-dot', - 320, 'star-triangle-down-open-dot', 21, 'star-square', 121, - 'star-square-open', 221, 'star-square-dot', 321, - 'star-square-open-dot', 22, 'star-diamond', 122, - 'star-diamond-open', 222, 'star-diamond-dot', 322, - 'star-diamond-open-dot', 23, 'diamond-tall', 123, - 'diamond-tall-open', 223, 'diamond-tall-dot', 323, - 'diamond-tall-open-dot', 24, 'diamond-wide', 124, - 'diamond-wide-open', 224, 'diamond-wide-dot', 324, - 'diamond-wide-open-dot', 25, 'hourglass', 125, - 'hourglass-open', 26, 'bowtie', 126, 'bowtie-open', 27, - 'circle-cross', 127, 'circle-cross-open', 28, 'circle-x', - 128, 'circle-x-open', 29, 'square-cross', 129, - 'square-cross-open', 30, 'square-x', 130, 'square-x-open', - 31, 'diamond-cross', 131, 'diamond-cross-open', 32, - 'diamond-x', 132, 'diamond-x-open', 33, 'cross-thin', 133, - 'cross-thin-open', 34, 'x-thin', 134, 'x-thin-open', 35, - 'asterisk', 135, 'asterisk-open', 36, 'hash', 136, - 'hash-open', 236, 'hash-dot', 336, 'hash-open-dot', 37, - 'y-up', 137, 'y-up-open', 38, 'y-down', 138, 'y-down-open', - 39, 'y-left', 139, 'y-left-open', 40, 'y-right', 140, - 'y-right-open', 41, 'line-ew', 141, 'line-ew-open', 42, - 'line-ns', 142, 'line-ns-open', 43, 'line-ne', 143, - 'line-ne-open', 44, 'line-nw', 144, 'line-nw-open' - ] + "values", + [ + 0, + "circle", + 100, + "circle-open", + 200, + "circle-dot", + 300, + "circle-open-dot", + 1, + "square", + 101, + "square-open", + 201, + "square-dot", + 301, + "square-open-dot", + 2, + "diamond", + 102, + "diamond-open", + 202, + "diamond-dot", + 302, + "diamond-open-dot", + 3, + "cross", + 103, + "cross-open", + 203, + "cross-dot", + 303, + "cross-open-dot", + 4, + "x", + 104, + "x-open", + 204, + "x-dot", + 304, + "x-open-dot", + 5, + "triangle-up", + 105, + "triangle-up-open", + 205, + "triangle-up-dot", + 305, + "triangle-up-open-dot", + 6, + "triangle-down", + 106, + "triangle-down-open", + 206, + "triangle-down-dot", + 306, + "triangle-down-open-dot", + 7, + "triangle-left", + 107, + "triangle-left-open", + 207, + "triangle-left-dot", + 307, + "triangle-left-open-dot", + 8, + "triangle-right", + 108, + "triangle-right-open", + 208, + "triangle-right-dot", + 308, + "triangle-right-open-dot", + 9, + "triangle-ne", + 109, + "triangle-ne-open", + 209, + "triangle-ne-dot", + 309, + "triangle-ne-open-dot", + 10, + "triangle-se", + 110, + "triangle-se-open", + 210, + "triangle-se-dot", + 310, + "triangle-se-open-dot", + 11, + "triangle-sw", + 111, + "triangle-sw-open", + 211, + "triangle-sw-dot", + 311, + "triangle-sw-open-dot", + 12, + "triangle-nw", + 112, + "triangle-nw-open", + 212, + "triangle-nw-dot", + 312, + "triangle-nw-open-dot", + 13, + "pentagon", + 113, + "pentagon-open", + 213, + "pentagon-dot", + 313, + "pentagon-open-dot", + 14, + "hexagon", + 114, + "hexagon-open", + 214, + "hexagon-dot", + 314, + "hexagon-open-dot", + 15, + "hexagon2", + 115, + "hexagon2-open", + 215, + "hexagon2-dot", + 315, + "hexagon2-open-dot", + 16, + "octagon", + 116, + "octagon-open", + 216, + "octagon-dot", + 316, + "octagon-open-dot", + 17, + "star", + 117, + "star-open", + 217, + "star-dot", + 317, + "star-open-dot", + 18, + "hexagram", + 118, + "hexagram-open", + 218, + "hexagram-dot", + 318, + "hexagram-open-dot", + 19, + "star-triangle-up", + 119, + "star-triangle-up-open", + 219, + "star-triangle-up-dot", + 319, + "star-triangle-up-open-dot", + 20, + "star-triangle-down", + 120, + "star-triangle-down-open", + 220, + "star-triangle-down-dot", + 320, + "star-triangle-down-open-dot", + 21, + "star-square", + 121, + "star-square-open", + 221, + "star-square-dot", + 321, + "star-square-open-dot", + 22, + "star-diamond", + 122, + "star-diamond-open", + 222, + "star-diamond-dot", + 322, + "star-diamond-open-dot", + 23, + "diamond-tall", + 123, + "diamond-tall-open", + 223, + "diamond-tall-dot", + 323, + "diamond-tall-open-dot", + 24, + "diamond-wide", + 124, + "diamond-wide-open", + 224, + "diamond-wide-dot", + 324, + "diamond-wide-open-dot", + 25, + "hourglass", + 125, + "hourglass-open", + 26, + "bowtie", + 126, + "bowtie-open", + 27, + "circle-cross", + 127, + "circle-cross-open", + 28, + "circle-x", + 128, + "circle-x-open", + 29, + "square-cross", + 129, + "square-cross-open", + 30, + "square-x", + 130, + "square-x-open", + 31, + "diamond-cross", + 131, + "diamond-cross-open", + 32, + "diamond-x", + 132, + "diamond-x-open", + 33, + "cross-thin", + 133, + "cross-thin-open", + 34, + "x-thin", + 134, + "x-thin-open", + 35, + "asterisk", + 135, + "asterisk-open", + 36, + "hash", + 136, + "hash-open", + 236, + "hash-dot", + 336, + "hash-open-dot", + 37, + "y-up", + 137, + "y-up-open", + 38, + "y-down", + 138, + "y-down-open", + 39, + "y-left", + 139, + "y-left-open", + 40, + "y-right", + 140, + "y-right-open", + 41, + "line-ew", + 141, + "line-ew-open", + 42, + "line-ns", + 142, + "line-ns-open", + 43, + "line-ne", + 143, + "line-ne-open", + 44, + "line-nw", + 144, + "line-nw-open", + ], ), **kwargs ) @@ -101,15 +320,12 @@ def __init__( class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='sizesrc', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="sizesrc", parent_name="splom.marker", **kwargs): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,15 +334,12 @@ def __init__( class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='sizeref', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="sizeref", parent_name="splom.marker", **kwargs): super(SizerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -135,16 +348,13 @@ def __init__( class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='sizemode', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="sizemode", parent_name="splom.marker", **kwargs): super(SizemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['diameter', 'area']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["diameter", "area"]), **kwargs ) @@ -153,16 +363,13 @@ def __init__( class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='sizemin', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="sizemin", parent_name="splom.marker", **kwargs): super(SizeminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -171,18 +378,15 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="splom.marker", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'markerSize'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "markerSize"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -191,15 +395,12 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="splom.marker", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -208,15 +409,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='reversescale', parent_name='splom.marker', **kwargs + self, plotly_name="reversescale", parent_name="splom.marker", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -225,15 +425,12 @@ def __init__( class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='opacitysrc', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="opacitysrc", parent_name="splom.marker", **kwargs): super(OpacitysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -242,19 +439,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="splom.marker", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -263,16 +457,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="splom.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ autocolorscale Determines whether the colorscale is a default palette (`autocolorscale: true`) or the palette @@ -361,7 +553,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -371,15 +563,12 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='colorsrc', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="colorsrc", parent_name="splom.marker", **kwargs): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -388,18 +577,13 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - - def __init__( - self, plotly_name='colorscale', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="colorscale", parent_name="splom.marker", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -408,16 +592,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorbar', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="colorbar", parent_name="splom.marker", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -628,7 +810,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -638,17 +820,14 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="splom.marker", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -657,19 +836,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="splom.marker", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), - colorscale_path=kwargs.pop( - 'colorscale_path', 'splom.marker.colorscale' - ), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), + colorscale_path=kwargs.pop("colorscale_path", "splom.marker.colorscale"), **kwargs ) @@ -678,16 +852,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmin', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="cmin", parent_name="splom.marker", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -696,16 +867,13 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmid', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="cmid", parent_name="splom.marker", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -714,16 +882,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmax', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="cmax", parent_name="splom.marker", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -732,16 +897,13 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='splom.marker', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="splom.marker", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -750,18 +912,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='splom.marker', - **kwargs + self, plotly_name="autocolorscale", parent_name="splom.marker", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/__init__.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/__init__.py index 55ed10ac8d2..cd36ae03df0 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ypad', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="ypad", parent_name="splom.marker.colorbar", **kwargs ): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,19 +19,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="splom.marker.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -46,17 +36,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='splom.marker.colorbar', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="splom.marker.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -65,19 +52,15 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='xpad', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="xpad", parent_name="splom.marker.colorbar", **kwargs ): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -86,19 +69,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="splom.marker.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -107,17 +86,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='splom.marker.colorbar', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="splom.marker.colorbar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -126,19 +102,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, - plotly_name='title', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="title", parent_name="splom.marker.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -154,7 +127,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -164,19 +137,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="splom.marker.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -185,18 +154,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="splom.marker.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -205,18 +170,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="splom.marker.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -225,18 +186,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="splom.marker.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -245,18 +202,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="splom.marker.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -265,18 +218,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="splom.marker.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -285,19 +234,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='ticks', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="ticks", parent_name="splom.marker.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -306,18 +251,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="splom.marker.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -326,20 +267,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="splom.marker.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -348,19 +285,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="splom.marker.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -369,19 +302,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='splom.marker.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="splom.marker.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -389,22 +324,20 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( self, - plotly_name='tickformatstops', - parent_name='splom.marker.colorbar', + plotly_name="tickformatstops", + parent_name="splom.marker.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -438,7 +371,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -448,18 +381,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="splom.marker.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -468,19 +397,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="splom.marker.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -501,7 +427,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -511,18 +437,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="splom.marker.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -531,18 +453,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="splom.marker.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -551,19 +469,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='tick0', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="tick0", parent_name="splom.marker.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -572,19 +486,15 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='thicknessmode', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="thicknessmode", parent_name="splom.marker.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -593,19 +503,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="splom.marker.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -613,22 +519,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showticksuffix', - parent_name='splom.marker.colorbar', + plotly_name="showticksuffix", + parent_name="splom.marker.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -636,22 +539,19 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='showtickprefix', - parent_name='splom.marker.colorbar', + plotly_name="showtickprefix", + parent_name="splom.marker.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -660,18 +560,17 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='showticklabels', - parent_name='splom.marker.colorbar', + plotly_name="showticklabels", + parent_name="splom.marker.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -680,19 +579,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="showexponent", parent_name="splom.marker.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -700,21 +595,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='splom.marker.colorbar', + plotly_name="separatethousands", + parent_name="splom.marker.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -723,19 +615,15 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlinewidth', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="outlinewidth", parent_name="splom.marker.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -744,18 +632,14 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outlinecolor', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="outlinecolor", parent_name="splom.marker.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -764,19 +648,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="splom.marker.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -785,19 +665,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="splom.marker.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -806,16 +682,15 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='len', parent_name='splom.marker.colorbar', **kwargs + self, plotly_name="len", parent_name="splom.marker.colorbar", **kwargs ): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -823,24 +698,19 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( self, - plotly_name='exponentformat', - parent_name='splom.marker.colorbar', + plotly_name="exponentformat", + parent_name="splom.marker.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -849,19 +719,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, - plotly_name='dtick', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="dtick", parent_name="splom.marker.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -870,19 +736,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="splom.marker.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -891,18 +753,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="splom.marker.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -911,17 +769,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='splom.marker.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="splom.marker.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/__init__.py index 66f0400abff..78e0f534907 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='splom.marker.colorbar.tickfont', - **kwargs + self, plotly_name="size", parent_name="splom.marker.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='splom.marker.colorbar.tickfont', + plotly_name="family", + parent_name="splom.marker.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +40,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='splom.marker.colorbar.tickfont', + plotly_name="color", + parent_name="splom.marker.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/__init__.py index f1a5d2edc8c..020a2020f78 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='splom.marker.colorbar.tickformatstop', + plotly_name="value", + parent_name="splom.marker.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='splom.marker.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="splom.marker.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='splom.marker.colorbar.tickformatstop', + plotly_name="name", + parent_name="splom.marker.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='splom.marker.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="splom.marker.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='splom.marker.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="splom.marker.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/__init__.py index 39bfa6b37ad..57e9716bcd2 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='splom.marker.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="splom.marker.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='splom.marker.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="splom.marker.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='splom.marker.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="splom.marker.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/__init__.py index 41b7f996361..f3a41a4d422 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/marker/colorbar/title/font/__init__.py @@ -1,22 +1,19 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='size', - parent_name='splom.marker.colorbar.title.font', + plotly_name="size", + parent_name="splom.marker.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +22,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='splom.marker.colorbar.title.font', + plotly_name="family", + parent_name="splom.marker.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +43,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='splom.marker.colorbar.title.font', + plotly_name="color", + parent_name="splom.marker.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/marker/line/__init__.py b/packages/python/plotly/plotly/validators/splom/marker/line/__init__.py index 312b4838ba2..9e0b03d140a 100644 --- a/packages/python/plotly/plotly/validators/splom/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/marker/line/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='widthsrc', - parent_name='splom.marker.line', - **kwargs + self, plotly_name="widthsrc", parent_name="splom.marker.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +18,15 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='splom.marker.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="splom.marker.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -44,18 +35,14 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='reversescale', - parent_name='splom.marker.line', - **kwargs + self, plotly_name="reversescale", parent_name="splom.marker.line", **kwargs ): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +51,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='splom.marker.line', - **kwargs + self, plotly_name="colorsrc", parent_name="splom.marker.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,21 +67,15 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - def __init__( - self, - plotly_name='colorscale', - parent_name='splom.marker.line', - **kwargs + self, plotly_name="colorscale", parent_name="splom.marker.line", **kwargs ): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -107,20 +84,16 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - def __init__( - self, - plotly_name='coloraxis', - parent_name='splom.marker.line', - **kwargs + self, plotly_name="coloraxis", parent_name="splom.marker.line", **kwargs ): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -129,18 +102,15 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='splom.marker.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="splom.marker.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), colorscale_path=kwargs.pop( - 'colorscale_path', 'splom.marker.line.colorscale' + "colorscale_path", "splom.marker.line.colorscale" ), **kwargs ) @@ -150,16 +120,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmin', parent_name='splom.marker.line', **kwargs - ): + def __init__(self, plotly_name="cmin", parent_name="splom.marker.line", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -168,16 +135,13 @@ def __init__( class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmid', parent_name='splom.marker.line', **kwargs - ): + def __init__(self, plotly_name="cmid", parent_name="splom.marker.line", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -186,16 +150,13 @@ def __init__( class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='cmax', parent_name='splom.marker.line', **kwargs - ): + def __init__(self, plotly_name="cmax", parent_name="splom.marker.line", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -204,16 +165,13 @@ def __init__( class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='splom.marker.line', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="splom.marker.line", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -222,18 +180,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='autocolorscale', - parent_name='splom.marker.line', - **kwargs + self, plotly_name="autocolorscale", parent_name="splom.marker.line", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/selected/__init__.py b/packages/python/plotly/plotly/validators/splom/selected/__init__.py index 1cdd18b67e8..6206ffed245 100644 --- a/packages/python/plotly/plotly/validators/splom/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/selected/__init__.py @@ -1,26 +1,22 @@ - - import _plotly_utils.basevalidators class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='splom.selected', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="splom.selected", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of selected points. opacity Sets the marker opacity of selected points. size Sets the marker size of selected points. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/splom/selected/marker/__init__.py index 3c6e00d79c7..130407c9679 100644 --- a/packages/python/plotly/plotly/validators/splom/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/selected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='splom.selected.marker', - **kwargs + self, plotly_name="size", parent_name="splom.selected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='splom.selected.marker', - **kwargs + self, plotly_name="opacity", parent_name="splom.selected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='splom.selected.marker', - **kwargs + self, plotly_name="color", parent_name="splom.selected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/stream/__init__.py b/packages/python/plotly/plotly/validators/splom/stream/__init__.py index 5ae492050e8..49334c608e0 100644 --- a/packages/python/plotly/plotly/validators/splom/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='splom.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="splom.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='splom.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="splom.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/unselected/__init__.py b/packages/python/plotly/plotly/validators/splom/unselected/__init__.py index 29fd3daa6c0..c80a741d59d 100644 --- a/packages/python/plotly/plotly/validators/splom/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/unselected/__init__.py @@ -1,19 +1,15 @@ - - import _plotly_utils.basevalidators class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='splom.unselected', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="splom.unselected", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of unselected points, applied only when a selection exists. @@ -23,7 +19,7 @@ def __init__( size Sets the marker size of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/splom/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/splom/unselected/marker/__init__.py index 42f27171908..67755c6c396 100644 --- a/packages/python/plotly/plotly/validators/splom/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/splom/unselected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='splom.unselected.marker', - **kwargs + self, plotly_name="size", parent_name="splom.unselected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='splom.unselected.marker', - **kwargs + self, plotly_name="opacity", parent_name="splom.unselected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='splom.unselected.marker', - **kwargs + self, plotly_name="color", parent_name="splom.unselected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/streamtube/__init__.py b/packages/python/plotly/plotly/validators/streamtube/__init__.py index 2d94770ffdf..ec4726cda0a 100644 --- a/packages/python/plotly/plotly/validators/streamtube/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='zsrc', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="zsrc", parent_name="streamtube", **kwargs): super(ZsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,13 +16,12 @@ def __init__(self, plotly_name='zsrc', parent_name='streamtube', **kwargs): class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='z', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="z", parent_name="streamtube", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -34,13 +30,12 @@ def __init__(self, plotly_name='z', parent_name='streamtube', **kwargs): class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="streamtube", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -49,13 +44,12 @@ def __init__(self, plotly_name='ysrc', parent_name='streamtube', **kwargs): class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="y", parent_name="streamtube", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -64,13 +58,12 @@ def __init__(self, plotly_name='y', parent_name='streamtube', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="streamtube", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -79,13 +72,12 @@ def __init__(self, plotly_name='xsrc', parent_name='streamtube', **kwargs): class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="x", parent_name="streamtube", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -94,13 +86,12 @@ def __init__(self, plotly_name='x', parent_name='streamtube', **kwargs): class WsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='wsrc', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="wsrc", parent_name="streamtube", **kwargs): super(WsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,13 +100,12 @@ def __init__(self, plotly_name='wsrc', parent_name='streamtube', **kwargs): class WValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='w', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="w", parent_name="streamtube", **kwargs): super(WValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -124,13 +114,12 @@ def __init__(self, plotly_name='w', parent_name='streamtube', **kwargs): class VsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='vsrc', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="vsrc", parent_name="streamtube", **kwargs): super(VsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -139,16 +128,13 @@ def __init__(self, plotly_name='vsrc', parent_name='streamtube', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="streamtube", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -157,13 +143,12 @@ def __init__( class VValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='v', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="v", parent_name="streamtube", **kwargs): super(VValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -172,13 +157,12 @@ def __init__(self, plotly_name='v', parent_name='streamtube', **kwargs): class UsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='usrc', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="usrc", parent_name="streamtube", **kwargs): super(UsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -187,15 +171,12 @@ def __init__(self, plotly_name='usrc', parent_name='streamtube', **kwargs): class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="streamtube", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -204,14 +185,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="uid", parent_name="streamtube", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -220,13 +200,12 @@ def __init__(self, plotly_name='uid', parent_name='streamtube', **kwargs): class UValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='u', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="u", parent_name="streamtube", **kwargs): super(UValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -235,13 +214,12 @@ def __init__(self, plotly_name='u', parent_name='streamtube', **kwargs): class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="text", parent_name="streamtube", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -250,16 +228,14 @@ def __init__(self, plotly_name='text', parent_name='streamtube', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="streamtube", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -269,7 +245,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -279,16 +255,14 @@ def __init__( class StartsValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='starts', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="starts", parent_name="streamtube", **kwargs): super(StartsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Starts'), + data_class_str=kwargs.pop("data_class_str", "Starts"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x Sets the x components of the starting position of the streamtubes @@ -304,7 +278,7 @@ def __init__( of the streamtubes zsrc Sets the source reference on plot.ly for z . -""" +""", ), **kwargs ) @@ -314,16 +288,13 @@ def __init__( class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='sizeref', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="sizeref", parent_name="streamtube", **kwargs): super(SizerefValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -332,15 +303,12 @@ def __init__( class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="streamtube", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -349,16 +317,13 @@ def __init__( class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='scene', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="scene", parent_name="streamtube", **kwargs): super(SceneValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'scene'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "scene"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -367,15 +332,12 @@ def __init__( class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='reversescale', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="reversescale", parent_name="streamtube", **kwargs): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -384,17 +346,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="streamtube", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -403,13 +362,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="name", parent_name="streamtube", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -418,15 +376,12 @@ def __init__(self, plotly_name='name', parent_name='streamtube', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="streamtube", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -435,14 +390,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="meta", parent_name="streamtube", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -451,16 +405,13 @@ def __init__(self, plotly_name='meta', parent_name='streamtube', **kwargs): class MaxdisplayedValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='maxdisplayed', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="maxdisplayed", parent_name="streamtube", **kwargs): super(MaxdisplayedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -469,16 +420,14 @@ def __init__( class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='lightposition', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="lightposition", parent_name="streamtube", **kwargs): super(LightpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Lightposition'), + data_class_str=kwargs.pop("data_class_str", "Lightposition"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x Numeric vector, representing the X coordinate for each vertex. @@ -488,7 +437,7 @@ def __init__( z Numeric vector, representing the Z coordinate for each vertex. -""" +""", ), **kwargs ) @@ -498,16 +447,14 @@ def __init__( class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='lighting', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="lighting", parent_name="streamtube", **kwargs): super(LightingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Lighting'), + data_class_str=kwargs.pop("data_class_str", "Lighting"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ ambient Ambient light increases overall color visibility but can wash out the image. @@ -532,7 +479,7 @@ def __init__( vertexnormalsepsilon Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry. -""" +""", ), **kwargs ) @@ -542,15 +489,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="streamtube", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -559,14 +503,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="ids", parent_name="streamtube", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -575,15 +518,12 @@ def __init__(self, plotly_name='ids', parent_name='streamtube', **kwargs): class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="streamtube", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -592,18 +532,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='streamtube', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="streamtube", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -612,16 +548,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="streamtube", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -630,16 +563,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="streamtube", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -675,7 +606,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -685,15 +616,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="streamtube", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -702,23 +630,18 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="streamtube", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), flags=kwargs.pop( - 'flags', [ - 'x', 'y', 'z', 'u', 'v', 'w', 'norm', 'divergence', 'text', - 'name' - ] + "flags", + ["x", "y", "z", "u", "v", "w", "norm", "divergence", "text", "name"], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -727,15 +650,12 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="streamtube", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -744,15 +664,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="streamtube", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -761,18 +678,13 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - - def __init__( - self, plotly_name='colorscale', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="colorscale", parent_name="streamtube", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -781,16 +693,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorbar', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="colorbar", parent_name="streamtube", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -1000,7 +910,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -1010,17 +920,14 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="streamtube", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1029,14 +936,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmin', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="cmin", parent_name="streamtube", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1045,14 +951,13 @@ def __init__(self, plotly_name='cmin', parent_name='streamtube', **kwargs): class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmid', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="cmid", parent_name="streamtube", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1061,14 +966,13 @@ def __init__(self, plotly_name='cmid', parent_name='streamtube', **kwargs): class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmax', parent_name='streamtube', **kwargs): + def __init__(self, plotly_name="cmax", parent_name="streamtube", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1077,16 +981,13 @@ def __init__(self, plotly_name='cmax', parent_name='streamtube', **kwargs): class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cauto', parent_name='streamtube', **kwargs - ): + def __init__(self, plotly_name="cauto", parent_name="streamtube", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1095,15 +996,14 @@ def __init__( class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, plotly_name='autocolorscale', parent_name='streamtube', **kwargs + self, plotly_name="autocolorscale", parent_name="streamtube", **kwargs ): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/__init__.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/__init__.py index 9153d674f97..6e902d078a5 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ypad', parent_name='streamtube.colorbar', **kwargs - ): + def __init__(self, plotly_name="ypad", parent_name="streamtube.colorbar", **kwargs): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,19 +17,15 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='yanchor', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="yanchor", parent_name="streamtube.colorbar", **kwargs ): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -43,17 +34,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='streamtube.colorbar', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="streamtube.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -62,16 +50,13 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='xpad', parent_name='streamtube.colorbar', **kwargs - ): + def __init__(self, plotly_name="xpad", parent_name="streamtube.colorbar", **kwargs): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -80,19 +65,15 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='xanchor', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="xanchor", parent_name="streamtube.colorbar", **kwargs ): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -101,17 +82,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='streamtube.colorbar', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="streamtube.colorbar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -120,16 +98,16 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - def __init__( - self, plotly_name='title', parent_name='streamtube.colorbar', **kwargs + self, plotly_name="title", parent_name="streamtube.colorbar", **kwargs ): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -145,7 +123,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -155,19 +133,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="streamtube.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -176,18 +150,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="streamtube.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -196,18 +166,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='tickvals', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="tickvals", parent_name="streamtube.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -216,18 +182,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="streamtube.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -236,18 +198,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, - plotly_name='ticktext', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="ticktext", parent_name="streamtube.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -256,18 +214,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="streamtube.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -276,16 +230,15 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='ticks', parent_name='streamtube.colorbar', **kwargs + self, plotly_name="ticks", parent_name="streamtube.colorbar", **kwargs ): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -294,18 +247,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="streamtube.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -314,20 +263,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='tickmode', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="tickmode", parent_name="streamtube.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -336,19 +281,15 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ticklen', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="ticklen", parent_name="streamtube.colorbar", **kwargs ): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -357,19 +298,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='streamtube.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="streamtube.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -377,22 +320,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="tickformatstops", parent_name="streamtube.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -426,7 +364,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -436,18 +374,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="streamtube.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -456,19 +390,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='tickfont', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="tickfont", parent_name="streamtube.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -489,7 +420,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -499,18 +430,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="streamtube.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -519,18 +446,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="streamtube.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -539,16 +462,15 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name='tick0', parent_name='streamtube.colorbar', **kwargs + self, plotly_name="tick0", parent_name="streamtube.colorbar", **kwargs ): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -557,19 +479,15 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='thicknessmode', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="thicknessmode", parent_name="streamtube.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -578,19 +496,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="streamtube.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -598,22 +512,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="showticksuffix", parent_name="streamtube.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -621,22 +529,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="showtickprefix", parent_name="streamtube.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -645,18 +547,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="showticklabels", parent_name="streamtube.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -665,19 +563,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="showexponent", parent_name="streamtube.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -685,21 +579,18 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( self, - plotly_name='separatethousands', - parent_name='streamtube.colorbar', + plotly_name="separatethousands", + parent_name="streamtube.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -708,19 +599,15 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlinewidth', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="outlinewidth", parent_name="streamtube.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -729,18 +616,14 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outlinecolor', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="outlinecolor", parent_name="streamtube.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -749,19 +632,15 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='nticks', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="nticks", parent_name="streamtube.colorbar", **kwargs ): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -770,19 +649,15 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='lenmode', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="lenmode", parent_name="streamtube.colorbar", **kwargs ): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -791,16 +666,13 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='len', parent_name='streamtube.colorbar', **kwargs - ): + def __init__(self, plotly_name="len", parent_name="streamtube.colorbar", **kwargs): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -808,24 +680,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="exponentformat", parent_name="streamtube.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -834,16 +698,15 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - def __init__( - self, plotly_name='dtick', parent_name='streamtube.colorbar', **kwargs + self, plotly_name="dtick", parent_name="streamtube.colorbar", **kwargs ): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -852,19 +715,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="streamtube.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -873,18 +732,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="streamtube.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -893,17 +748,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='streamtube.colorbar', - **kwargs + self, plotly_name="bgcolor", parent_name="streamtube.colorbar", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/__init__.py index 33ec62961e1..56e5de8f089 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='streamtube.colorbar.tickfont', - **kwargs + self, plotly_name="size", parent_name="streamtube.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='streamtube.colorbar.tickfont', - **kwargs + self, plotly_name="family", parent_name="streamtube.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='streamtube.colorbar.tickfont', - **kwargs + self, plotly_name="color", parent_name="streamtube.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/__init__.py index 11c3791a773..08db54bab29 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='streamtube.colorbar.tickformatstop', + plotly_name="value", + parent_name="streamtube.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='streamtube.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="streamtube.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='streamtube.colorbar.tickformatstop', + plotly_name="name", + parent_name="streamtube.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='streamtube.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="streamtube.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='streamtube.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="streamtube.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), + edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'colorbars' - }, { - 'valType': 'any', - 'editType': 'colorbars' - } - ] + "items", + [ + {"valType": "any", "editType": "colorbars"}, + {"valType": "any", "editType": "colorbars"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/__init__.py index 7f3a1d8dbd1..489087b8306 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='streamtube.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="streamtube.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='streamtube.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="streamtube.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='streamtube.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="streamtube.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/__init__.py index a2bae3b3aac..7e66c46a51b 100644 --- a/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/colorbar/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='streamtube.colorbar.title.font', - **kwargs + self, plotly_name="size", parent_name="streamtube.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,19 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='family', - parent_name='streamtube.colorbar.title.font', + plotly_name="family", + parent_name="streamtube.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "colorbars"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +40,16 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='streamtube.colorbar.title.font', + plotly_name="color", + parent_name="streamtube.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'colorbars'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "colorbars"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/__init__.py index 6f4a1bc440f..ba28330c47e 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='streamtube.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="streamtube.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='streamtube.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="streamtube.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,19 +36,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='streamtube.hoverlabel', - **kwargs + self, plotly_name="font", parent_name="streamtube.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -88,7 +75,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -98,18 +85,17 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='bordercolorsrc', - parent_name='streamtube.hoverlabel', + plotly_name="bordercolorsrc", + parent_name="streamtube.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -118,19 +104,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='streamtube.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="streamtube.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -139,18 +121,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='streamtube.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="streamtube.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -159,19 +137,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='streamtube.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="streamtube.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -180,18 +154,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='streamtube.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="streamtube.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -200,19 +170,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='streamtube.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="streamtube.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/__init__.py index 02a841ff683..9978d8788b0 100644 --- a/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='streamtube.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="streamtube.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='streamtube.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="streamtube.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,17 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( self, - plotly_name='familysrc', - parent_name='streamtube.hoverlabel.font', + plotly_name="familysrc", + parent_name="streamtube.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +55,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='streamtube.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="streamtube.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +74,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='streamtube.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="streamtube.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +90,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='streamtube.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="streamtube.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/streamtube/lighting/__init__.py b/packages/python/plotly/plotly/validators/streamtube/lighting/__init__.py index 7b31b9bf4a0..3b0e9b9e787 100644 --- a/packages/python/plotly/plotly/validators/streamtube/lighting/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/lighting/__init__.py @@ -1,25 +1,20 @@ - - import _plotly_utils.basevalidators -class VertexnormalsepsilonValidator( - _plotly_utils.basevalidators.NumberValidator -): - +class VertexnormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, - plotly_name='vertexnormalsepsilon', - parent_name='streamtube.lighting', + plotly_name="vertexnormalsepsilon", + parent_name="streamtube.lighting", **kwargs ): super(VertexnormalsepsilonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -28,20 +23,16 @@ def __init__( class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='specular', - parent_name='streamtube.lighting', - **kwargs + self, plotly_name="specular", parent_name="streamtube.lighting", **kwargs ): super(SpecularValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 2), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 2), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -50,20 +41,16 @@ def __init__( class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='roughness', - parent_name='streamtube.lighting', - **kwargs + self, plotly_name="roughness", parent_name="streamtube.lighting", **kwargs ): super(RoughnessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -72,20 +59,16 @@ def __init__( class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='fresnel', - parent_name='streamtube.lighting', - **kwargs + self, plotly_name="fresnel", parent_name="streamtube.lighting", **kwargs ): super(FresnelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 5), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 5), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -93,23 +76,20 @@ def __init__( import _plotly_utils.basevalidators -class FacenormalsepsilonValidator( - _plotly_utils.basevalidators.NumberValidator -): - +class FacenormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, - plotly_name='facenormalsepsilon', - parent_name='streamtube.lighting', + plotly_name="facenormalsepsilon", + parent_name="streamtube.lighting", **kwargs ): super(FacenormalsepsilonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -118,20 +98,16 @@ def __init__( class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='diffuse', - parent_name='streamtube.lighting', - **kwargs + self, plotly_name="diffuse", parent_name="streamtube.lighting", **kwargs ): super(DiffuseValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -140,19 +116,15 @@ def __init__( class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='ambient', - parent_name='streamtube.lighting', - **kwargs + self, plotly_name="ambient", parent_name="streamtube.lighting", **kwargs ): super(AmbientValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/streamtube/lightposition/__init__.py b/packages/python/plotly/plotly/validators/streamtube/lightposition/__init__.py index 516b2c8b656..f83cfc98dc2 100644 --- a/packages/python/plotly/plotly/validators/streamtube/lightposition/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/lightposition/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='z', - parent_name='streamtube.lightposition', - **kwargs + self, plotly_name="z", parent_name="streamtube.lightposition", **kwargs ): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) @@ -26,20 +20,16 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='y', - parent_name='streamtube.lightposition', - **kwargs + self, plotly_name="y", parent_name="streamtube.lightposition", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) @@ -48,19 +38,15 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='x', - parent_name='streamtube.lightposition', - **kwargs + self, plotly_name="x", parent_name="streamtube.lightposition", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/streamtube/starts/__init__.py b/packages/python/plotly/plotly/validators/streamtube/starts/__init__.py index 7eaef5309a4..1bf4463bfbb 100644 --- a/packages/python/plotly/plotly/validators/streamtube/starts/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/starts/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='zsrc', parent_name='streamtube.starts', **kwargs - ): + def __init__(self, plotly_name="zsrc", parent_name="streamtube.starts", **kwargs): super(ZsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,15 +16,12 @@ def __init__( class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='z', parent_name='streamtube.starts', **kwargs - ): + def __init__(self, plotly_name="z", parent_name="streamtube.starts", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -38,15 +30,12 @@ def __init__( class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='ysrc', parent_name='streamtube.starts', **kwargs - ): + def __init__(self, plotly_name="ysrc", parent_name="streamtube.starts", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -55,15 +44,12 @@ def __init__( class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='y', parent_name='streamtube.starts', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="streamtube.starts", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -72,15 +58,12 @@ def __init__( class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='xsrc', parent_name='streamtube.starts', **kwargs - ): + def __init__(self, plotly_name="xsrc", parent_name="streamtube.starts", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -89,14 +72,11 @@ def __init__( class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='x', parent_name='streamtube.starts', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="streamtube.starts", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/streamtube/stream/__init__.py b/packages/python/plotly/plotly/validators/streamtube/stream/__init__.py index 52b6e47bcb1..702f3ec8064 100644 --- a/packages/python/plotly/plotly/validators/streamtube/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/streamtube/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='streamtube.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="streamtube.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,19 +18,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='streamtube.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="streamtube.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sunburst/__init__.py b/packages/python/plotly/plotly/validators/sunburst/__init__.py index f56e1c96a08..acdfdf62fbb 100644 --- a/packages/python/plotly/plotly/validators/sunburst/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="sunburst", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -22,15 +17,12 @@ def __init__( class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='valuessrc', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="valuessrc", parent_name="sunburst", **kwargs): super(ValuessrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,13 +31,12 @@ def __init__( class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='values', parent_name='sunburst', **kwargs): + def __init__(self, plotly_name="values", parent_name="sunburst", **kwargs): super(ValuesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -54,15 +45,12 @@ def __init__(self, plotly_name='values', parent_name='sunburst', **kwargs): class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="sunburst", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -71,14 +59,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='sunburst', **kwargs): + def __init__(self, plotly_name="uid", parent_name="sunburst", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -87,15 +74,12 @@ def __init__(self, plotly_name='uid', parent_name='sunburst', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="sunburst", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -104,17 +88,14 @@ def __init__( class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='textinfo', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="textinfo", parent_name="sunburst", **kwargs): super(TextinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - extras=kwargs.pop('extras', ['none']), - flags=kwargs.pop('flags', ['label', 'text', 'value']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + extras=kwargs.pop("extras", ["none"]), + flags=kwargs.pop("flags", ["label", "text", "value"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -123,16 +104,14 @@ def __init__( class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='textfont', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="textfont", parent_name="sunburst", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -162,7 +141,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -172,13 +151,12 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='text', parent_name='sunburst', **kwargs): + def __init__(self, plotly_name="text", parent_name="sunburst", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -187,14 +165,14 @@ def __init__(self, plotly_name='text', parent_name='sunburst', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='sunburst', **kwargs): + def __init__(self, plotly_name="stream", parent_name="sunburst", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -204,7 +182,7 @@ def __init__(self, plotly_name='stream', parent_name='sunburst', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -214,15 +192,12 @@ def __init__(self, plotly_name='stream', parent_name='sunburst', **kwargs): class ParentssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='parentssrc', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="parentssrc", parent_name="sunburst", **kwargs): super(ParentssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -231,15 +206,12 @@ def __init__( class ParentsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='parents', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="parents", parent_name="sunburst", **kwargs): super(ParentsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -248,16 +220,14 @@ def __init__( class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='outsidetextfont', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="outsidetextfont", parent_name="sunburst", **kwargs): super(OutsidetextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Outsidetextfont'), + data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -287,7 +257,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -297,17 +267,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="sunburst", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -316,13 +283,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='sunburst', **kwargs): + def __init__(self, plotly_name="name", parent_name="sunburst", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -331,15 +297,12 @@ def __init__(self, plotly_name='name', parent_name='sunburst', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="sunburst", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -348,14 +311,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='sunburst', **kwargs): + def __init__(self, plotly_name="meta", parent_name="sunburst", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -364,15 +326,12 @@ def __init__(self, plotly_name='meta', parent_name='sunburst', **kwargs): class MaxdepthValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='maxdepth', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="maxdepth", parent_name="sunburst", **kwargs): super(MaxdepthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -381,14 +340,14 @@ def __init__( class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='marker', parent_name='sunburst', **kwargs): + def __init__(self, plotly_name="marker", parent_name="sunburst", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ colors Sets the color of each sector of this sunburst chart. If not specified, the default trace @@ -399,7 +358,7 @@ def __init__(self, plotly_name='marker', parent_name='sunburst', **kwargs): line plotly.graph_objs.sunburst.marker.Line instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -409,14 +368,13 @@ def __init__(self, plotly_name='marker', parent_name='sunburst', **kwargs): class LevelValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='level', parent_name='sunburst', **kwargs): + def __init__(self, plotly_name="level", parent_name="sunburst", **kwargs): super(LevelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -425,17 +383,17 @@ def __init__(self, plotly_name='level', parent_name='sunburst', **kwargs): class LeafValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='leaf', parent_name='sunburst', **kwargs): + def __init__(self, plotly_name="leaf", parent_name="sunburst", **kwargs): super(LeafValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Leaf'), + data_class_str=kwargs.pop("data_class_str", "Leaf"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ opacity Sets the opacity of the leaves. -""" +""", ), **kwargs ) @@ -445,15 +403,12 @@ def __init__(self, plotly_name='leaf', parent_name='sunburst', **kwargs): class LabelssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='labelssrc', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="labelssrc", parent_name="sunburst", **kwargs): super(LabelssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -462,13 +417,12 @@ def __init__( class LabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='labels', parent_name='sunburst', **kwargs): + def __init__(self, plotly_name="labels", parent_name="sunburst", **kwargs): super(LabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -477,16 +431,14 @@ def __init__(self, plotly_name='labels', parent_name='sunburst', **kwargs): class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='insidetextfont', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="insidetextfont", parent_name="sunburst", **kwargs): super(InsidetextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Insidetextfont'), + data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -516,7 +468,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -526,13 +478,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='sunburst', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="sunburst", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -541,14 +492,13 @@ def __init__(self, plotly_name='idssrc', parent_name='sunburst', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='sunburst', **kwargs): + def __init__(self, plotly_name="ids", parent_name="sunburst", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -557,15 +507,12 @@ def __init__(self, plotly_name='ids', parent_name='sunburst', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="sunburst", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -574,16 +521,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="sunburst", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -592,15 +536,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='hovertemplatesrc', parent_name='sunburst', **kwargs + self, plotly_name="hovertemplatesrc", parent_name="sunburst", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -609,16 +552,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="sunburst", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -627,16 +567,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="sunburst", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -672,7 +610,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -682,15 +620,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="sunburst", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -699,18 +634,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="sunburst", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['label', 'text', 'value', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["label", "text", "value", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -719,14 +651,14 @@ def __init__( class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='domain', parent_name='sunburst', **kwargs): + def __init__(self, plotly_name="domain", parent_name="sunburst", **kwargs): super(DomainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Domain'), + data_class_str=kwargs.pop("data_class_str", "Domain"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ column If there is a layout grid, use the domain for this column in the grid for this sunburst trace @@ -740,7 +672,7 @@ def __init__(self, plotly_name='domain', parent_name='sunburst', **kwargs): y Sets the vertical domain of this sunburst trace (in plot fraction). -""" +""", ), **kwargs ) @@ -750,15 +682,12 @@ def __init__(self, plotly_name='domain', parent_name='sunburst', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="sunburst", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -767,15 +696,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="sunburst", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -784,15 +710,12 @@ def __init__( class BranchvaluesValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='branchvalues', parent_name='sunburst', **kwargs - ): + def __init__(self, plotly_name="branchvalues", parent_name="sunburst", **kwargs): super(BranchvaluesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['remainder', 'total']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["remainder", "total"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sunburst/domain/__init__.py b/packages/python/plotly/plotly/validators/sunburst/domain/__init__.py index c3fc767f075..1247d1fb9ab 100644 --- a/packages/python/plotly/plotly/validators/sunburst/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/domain/__init__.py @@ -1,33 +1,20 @@ - - import _plotly_utils.basevalidators class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='y', parent_name='sunburst.domain', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="sunburst.domain", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -36,30 +23,19 @@ def __init__( class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__( - self, plotly_name='x', parent_name='sunburst.domain', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="sunburst.domain", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -68,16 +44,13 @@ def __init__( class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='row', parent_name='sunburst.domain', **kwargs - ): + def __init__(self, plotly_name="row", parent_name="sunburst.domain", **kwargs): super(RowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -86,15 +59,12 @@ def __init__( class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='column', parent_name='sunburst.domain', **kwargs - ): + def __init__(self, plotly_name="column", parent_name="sunburst.domain", **kwargs): super(ColumnValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/__init__.py index 303b9800184..d928bedd467 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='sunburst.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="sunburst.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='sunburst.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="sunburst.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='sunburst.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="sunburst.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='sunburst.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="sunburst.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='sunburst.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="sunburst.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='sunburst.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="sunburst.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,19 +132,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='sunburst.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="sunburst.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -177,18 +149,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='sunburst.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="sunburst.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -197,16 +165,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='align', parent_name='sunburst.hoverlabel', **kwargs + self, plotly_name="align", parent_name="sunburst.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/__init__.py index 44cd7a760f9..e003a51b752 100644 --- a/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='sunburst.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="sunburst.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='sunburst.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="sunburst.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='sunburst.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="sunburst.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='sunburst.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="sunburst.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='sunburst.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="sunburst.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='sunburst.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="sunburst.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/__init__.py b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/__init__.py index 2ceb18f2034..10192f48db2 100644 --- a/packages/python/plotly/plotly/validators/sunburst/insidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/insidetextfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='sunburst.insidetextfont', - **kwargs + self, plotly_name="sizesrc", parent_name="sunburst.insidetextfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='sunburst.insidetextfont', - **kwargs + self, plotly_name="size", parent_name="sunburst.insidetextfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='sunburst.insidetextfont', - **kwargs + self, plotly_name="familysrc", parent_name="sunburst.insidetextfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='sunburst.insidetextfont', - **kwargs + self, plotly_name="family", parent_name="sunburst.insidetextfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='sunburst.insidetextfont', - **kwargs + self, plotly_name="colorsrc", parent_name="sunburst.insidetextfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='sunburst.insidetextfont', - **kwargs + self, plotly_name="color", parent_name="sunburst.insidetextfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sunburst/leaf/__init__.py b/packages/python/plotly/plotly/validators/sunburst/leaf/__init__.py index a82caa43753..c9b865d07ac 100644 --- a/packages/python/plotly/plotly/validators/sunburst/leaf/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/leaf/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='sunburst.leaf', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="sunburst.leaf", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/__init__.py b/packages/python/plotly/plotly/validators/sunburst/marker/__init__.py index 06b50143d32..474bbd619e1 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/__init__.py @@ -1,19 +1,15 @@ - - import _plotly_utils.basevalidators class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='sunburst.marker', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="sunburst.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of the line enclosing each sector. Defaults to the `paper_bgcolor` value. @@ -26,7 +22,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -36,15 +32,14 @@ def __init__( class ColorssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='colorssrc', parent_name='sunburst.marker', **kwargs + self, plotly_name="colorssrc", parent_name="sunburst.marker", **kwargs ): super(ColorssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -53,14 +48,11 @@ def __init__( class ColorsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='colors', parent_name='sunburst.marker', **kwargs - ): + def __init__(self, plotly_name="colors", parent_name="sunburst.marker", **kwargs): super(ColorsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sunburst/marker/line/__init__.py b/packages/python/plotly/plotly/validators/sunburst/marker/line/__init__.py index 858a7a719f7..52854ca6f02 100644 --- a/packages/python/plotly/plotly/validators/sunburst/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/marker/line/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='widthsrc', - parent_name='sunburst.marker.line', - **kwargs + self, plotly_name="widthsrc", parent_name="sunburst.marker.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='sunburst.marker.line', - **kwargs + self, plotly_name="width", parent_name="sunburst.marker.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='sunburst.marker.line', - **kwargs + self, plotly_name="colorsrc", parent_name="sunburst.marker.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,18 +52,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='sunburst.marker.line', - **kwargs + self, plotly_name="color", parent_name="sunburst.marker.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/__init__.py b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/__init__.py index a0d3c942c50..e4e921df626 100644 --- a/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/outsidetextfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='sunburst.outsidetextfont', - **kwargs + self, plotly_name="sizesrc", parent_name="sunburst.outsidetextfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='sunburst.outsidetextfont', - **kwargs + self, plotly_name="size", parent_name="sunburst.outsidetextfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='sunburst.outsidetextfont', - **kwargs + self, plotly_name="familysrc", parent_name="sunburst.outsidetextfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='sunburst.outsidetextfont', - **kwargs + self, plotly_name="family", parent_name="sunburst.outsidetextfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='sunburst.outsidetextfont', - **kwargs + self, plotly_name="colorsrc", parent_name="sunburst.outsidetextfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='sunburst.outsidetextfont', - **kwargs + self, plotly_name="color", parent_name="sunburst.outsidetextfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sunburst/stream/__init__.py b/packages/python/plotly/plotly/validators/sunburst/stream/__init__.py index fbb01f87d77..a9693aa41ae 100644 --- a/packages/python/plotly/plotly/validators/sunburst/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='sunburst.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="sunburst.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='maxpoints', parent_name='sunburst.stream', **kwargs + self, plotly_name="maxpoints", parent_name="sunburst.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/sunburst/textfont/__init__.py b/packages/python/plotly/plotly/validators/sunburst/textfont/__init__.py index 010aebac100..092ebc24fb0 100644 --- a/packages/python/plotly/plotly/validators/sunburst/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/sunburst/textfont/__init__.py @@ -1,18 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='sizesrc', parent_name='sunburst.textfont', **kwargs + self, plotly_name="sizesrc", parent_name="sunburst.textfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,17 +18,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='sunburst.textfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="sunburst.textfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -40,18 +34,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='sunburst.textfont', - **kwargs + self, plotly_name="familysrc", parent_name="sunburst.textfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -60,18 +50,15 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='family', parent_name='sunburst.textfont', **kwargs - ): + def __init__(self, plotly_name="family", parent_name="sunburst.textfont", **kwargs): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -80,18 +67,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='sunburst.textfont', - **kwargs + self, plotly_name="colorsrc", parent_name="sunburst.textfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -100,15 +83,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='sunburst.textfont', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="sunburst.textfont", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/__init__.py b/packages/python/plotly/plotly/validators/surface/__init__.py index 947de8ae7c4..8946b8ddb80 100644 --- a/packages/python/plotly/plotly/validators/surface/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='zsrc', parent_name='surface', **kwargs): + def __init__(self, plotly_name="zsrc", parent_name="surface", **kwargs): super(ZsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,22 +16,32 @@ def __init__(self, plotly_name='zsrc', parent_name='surface', **kwargs): class ZcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='zcalendar', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="zcalendar", parent_name="surface", **kwargs): super(ZcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -44,13 +51,12 @@ def __init__( class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='z', parent_name='surface', **kwargs): + def __init__(self, plotly_name="z", parent_name="surface", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -59,13 +65,12 @@ def __init__(self, plotly_name='z', parent_name='surface', **kwargs): class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='surface', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="surface", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -74,22 +79,32 @@ def __init__(self, plotly_name='ysrc', parent_name='surface', **kwargs): class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ycalendar', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="ycalendar", parent_name="surface", **kwargs): super(YcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -99,13 +114,12 @@ def __init__( class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='surface', **kwargs): + def __init__(self, plotly_name="y", parent_name="surface", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -114,13 +128,12 @@ def __init__(self, plotly_name='y', parent_name='surface', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='surface', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="surface", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -129,22 +142,32 @@ def __init__(self, plotly_name='xsrc', parent_name='surface', **kwargs): class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xcalendar', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="xcalendar", parent_name="surface", **kwargs): super(XcalendarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), values=kwargs.pop( - 'values', [ - 'gregorian', 'chinese', 'coptic', 'discworld', 'ethiopian', - 'hebrew', 'islamic', 'julian', 'mayan', 'nanakshahi', - 'nepali', 'persian', 'jalali', 'taiwan', 'thai', - 'ummalqura' - ] + "values", + [ + "gregorian", + "chinese", + "coptic", + "discworld", + "ethiopian", + "hebrew", + "islamic", + "julian", + "mayan", + "nanakshahi", + "nepali", + "persian", + "jalali", + "taiwan", + "thai", + "ummalqura", + ], ), **kwargs ) @@ -154,13 +177,12 @@ def __init__( class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='surface', **kwargs): + def __init__(self, plotly_name="x", parent_name="surface", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -169,14 +191,13 @@ def __init__(self, plotly_name='x', parent_name='surface', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='surface', **kwargs): + def __init__(self, plotly_name="visible", parent_name="surface", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -185,15 +206,12 @@ def __init__(self, plotly_name='visible', parent_name='surface', **kwargs): class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="surface", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -202,14 +220,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='surface', **kwargs): + def __init__(self, plotly_name="uid", parent_name="surface", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -218,13 +235,12 @@ def __init__(self, plotly_name='uid', parent_name='surface', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='textsrc', parent_name='surface', **kwargs): + def __init__(self, plotly_name="textsrc", parent_name="surface", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -233,14 +249,13 @@ def __init__(self, plotly_name='textsrc', parent_name='surface', **kwargs): class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='surface', **kwargs): + def __init__(self, plotly_name="text", parent_name="surface", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -249,15 +264,12 @@ def __init__(self, plotly_name='text', parent_name='surface', **kwargs): class SurfacecolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='surfacecolorsrc', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="surfacecolorsrc", parent_name="surface", **kwargs): super(SurfacecolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -266,15 +278,12 @@ def __init__( class SurfacecolorValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='surfacecolor', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="surfacecolor", parent_name="surface", **kwargs): super(SurfacecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -283,14 +292,14 @@ def __init__( class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='surface', **kwargs): + def __init__(self, plotly_name="stream", parent_name="surface", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -300,7 +309,7 @@ def __init__(self, plotly_name='stream', parent_name='surface', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -310,15 +319,12 @@ def __init__(self, plotly_name='stream', parent_name='surface', **kwargs): class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="surface", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -327,14 +333,13 @@ def __init__( class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='scene', parent_name='surface', **kwargs): + def __init__(self, plotly_name="scene", parent_name="surface", **kwargs): super(SceneValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'scene'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "scene"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -343,15 +348,12 @@ def __init__(self, plotly_name='scene', parent_name='surface', **kwargs): class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='reversescale', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="reversescale", parent_name="surface", **kwargs): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -360,15 +362,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='opacity', parent_name='surface', **kwargs): + def __init__(self, plotly_name="opacity", parent_name="surface", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -377,13 +378,12 @@ def __init__(self, plotly_name='opacity', parent_name='surface', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='surface', **kwargs): + def __init__(self, plotly_name="name", parent_name="surface", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -392,13 +392,12 @@ def __init__(self, plotly_name='name', parent_name='surface', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='surface', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="surface", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -407,14 +406,13 @@ def __init__(self, plotly_name='metasrc', parent_name='surface', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='surface', **kwargs): + def __init__(self, plotly_name="meta", parent_name="surface", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -423,16 +421,14 @@ def __init__(self, plotly_name='meta', parent_name='surface', **kwargs): class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='lightposition', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="lightposition", parent_name="surface", **kwargs): super(LightpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Lightposition'), + data_class_str=kwargs.pop("data_class_str", "Lightposition"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x Numeric vector, representing the X coordinate for each vertex. @@ -442,7 +438,7 @@ def __init__( z Numeric vector, representing the Z coordinate for each vertex. -""" +""", ), **kwargs ) @@ -452,16 +448,14 @@ def __init__( class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='lighting', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="lighting", parent_name="surface", **kwargs): super(LightingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Lighting'), + data_class_str=kwargs.pop("data_class_str", "Lighting"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ ambient Ambient light increases overall color visibility but can wash out the image. @@ -480,7 +474,7 @@ def __init__( specular Represents the level that incident rays are reflected in a single direction, causing shine. -""" +""", ), **kwargs ) @@ -490,13 +484,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='surface', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="surface", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -505,14 +498,13 @@ def __init__(self, plotly_name='idssrc', parent_name='surface', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='surface', **kwargs): + def __init__(self, plotly_name="ids", parent_name="surface", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -521,15 +513,12 @@ def __init__(self, plotly_name='ids', parent_name='surface', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="surface", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -538,16 +527,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="surface", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -556,15 +542,12 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertemplatesrc', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="hovertemplatesrc", parent_name="surface", **kwargs): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -573,16 +556,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="surface", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -591,16 +571,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="surface", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -636,7 +614,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -646,15 +624,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="surface", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -663,18 +638,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="surface", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -683,15 +655,12 @@ def __init__( class HidesurfaceValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='hidesurface', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="hidesurface", parent_name="surface", **kwargs): super(HidesurfaceValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -700,15 +669,12 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="surface", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -717,15 +683,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="surface", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -734,16 +697,14 @@ def __init__( class ContoursValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='contours', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="contours", parent_name="surface", **kwargs): super(ContoursValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Contours'), + data_class_str=kwargs.pop("data_class_str", "Contours"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x plotly.graph_objs.surface.contours.X instance or dict with compatible properties @@ -753,7 +714,7 @@ def __init__( z plotly.graph_objs.surface.contours.Z instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -763,15 +724,12 @@ def __init__( class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='connectgaps', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="connectgaps", parent_name="surface", **kwargs): super(ConnectgapsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -780,18 +738,13 @@ def __init__( class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - - def __init__( - self, plotly_name='colorscale', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="colorscale", parent_name="surface", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -800,16 +753,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='colorbar', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="colorbar", parent_name="surface", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -1018,7 +969,7 @@ def __init__( ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -1028,17 +979,14 @@ def __init__( class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="surface", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1047,14 +995,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmin', parent_name='surface', **kwargs): + def __init__(self, plotly_name="cmin", parent_name="surface", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1063,14 +1010,13 @@ def __init__(self, plotly_name='cmin', parent_name='surface', **kwargs): class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmid', parent_name='surface', **kwargs): + def __init__(self, plotly_name="cmid", parent_name="surface", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1079,14 +1025,13 @@ def __init__(self, plotly_name='cmid', parent_name='surface', **kwargs): class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmax', parent_name='surface', **kwargs): + def __init__(self, plotly_name="cmax", parent_name="surface", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1095,14 +1040,13 @@ def __init__(self, plotly_name='cmax', parent_name='surface', **kwargs): class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__(self, plotly_name='cauto', parent_name='surface', **kwargs): + def __init__(self, plotly_name="cauto", parent_name="surface", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1111,15 +1055,12 @@ def __init__(self, plotly_name='cauto', parent_name='surface', **kwargs): class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='autocolorscale', parent_name='surface', **kwargs - ): + def __init__(self, plotly_name="autocolorscale", parent_name="surface", **kwargs): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/__init__.py b/packages/python/plotly/plotly/validators/surface/colorbar/__init__.py index 0e45bfbf72c..861658421ee 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ypad', parent_name='surface.colorbar', **kwargs - ): + def __init__(self, plotly_name="ypad", parent_name="surface.colorbar", **kwargs): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,16 +17,13 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='yanchor', parent_name='surface.colorbar', **kwargs - ): + def __init__(self, plotly_name="yanchor", parent_name="surface.colorbar", **kwargs): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -40,17 +32,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='surface.colorbar', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="surface.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -59,16 +48,13 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='xpad', parent_name='surface.colorbar', **kwargs - ): + def __init__(self, plotly_name="xpad", parent_name="surface.colorbar", **kwargs): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -77,16 +63,13 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xanchor', parent_name='surface.colorbar', **kwargs - ): + def __init__(self, plotly_name="xanchor", parent_name="surface.colorbar", **kwargs): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -95,17 +78,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='surface.colorbar', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="surface.colorbar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -114,16 +94,14 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - - def __init__( - self, plotly_name='title', parent_name='surface.colorbar', **kwargs - ): + def __init__(self, plotly_name="title", parent_name="surface.colorbar", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -139,7 +117,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -149,19 +127,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='tickwidth', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="tickwidth", parent_name="surface.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -170,18 +144,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="surface.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -190,15 +160,14 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name='tickvals', parent_name='surface.colorbar', **kwargs + self, plotly_name="tickvals", parent_name="surface.colorbar", **kwargs ): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -207,18 +176,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="surface.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -227,15 +192,14 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name='ticktext', parent_name='surface.colorbar', **kwargs + self, plotly_name="ticktext", parent_name="surface.colorbar", **kwargs ): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -244,18 +208,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="surface.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -264,16 +224,13 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ticks', parent_name='surface.colorbar', **kwargs - ): + def __init__(self, plotly_name="ticks", parent_name="surface.colorbar", **kwargs): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -282,18 +239,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="surface.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -302,17 +255,16 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, plotly_name='tickmode', parent_name='surface.colorbar', **kwargs + self, plotly_name="tickmode", parent_name="surface.colorbar", **kwargs ): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -321,16 +273,13 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ticklen', parent_name='surface.colorbar', **kwargs - ): + def __init__(self, plotly_name="ticklen", parent_name="surface.colorbar", **kwargs): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -339,19 +288,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='surface.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="surface.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -359,22 +310,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="tickformatstops", parent_name="surface.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -408,7 +354,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -418,18 +364,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="surface.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -438,16 +380,16 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='tickfont', parent_name='surface.colorbar', **kwargs + self, plotly_name="tickfont", parent_name="surface.colorbar", **kwargs ): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -468,7 +410,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -478,18 +420,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='tickcolor', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="tickcolor", parent_name="surface.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -498,18 +436,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, - plotly_name='tickangle', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="tickangle", parent_name="surface.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -518,16 +452,13 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='tick0', parent_name='surface.colorbar', **kwargs - ): + def __init__(self, plotly_name="tick0", parent_name="surface.colorbar", **kwargs): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -536,19 +467,15 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='thicknessmode', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="thicknessmode", parent_name="surface.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -557,19 +484,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='thickness', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="thickness", parent_name="surface.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -577,22 +500,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="showticksuffix", parent_name="surface.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -600,22 +517,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="showtickprefix", parent_name="surface.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -624,18 +535,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="showticklabels", parent_name="surface.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -644,19 +551,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="showexponent", parent_name="surface.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -664,21 +567,15 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( - self, - plotly_name='separatethousands', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="separatethousands", parent_name="surface.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -687,19 +584,15 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlinewidth', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="outlinewidth", parent_name="surface.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -708,18 +601,14 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outlinecolor', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="outlinecolor", parent_name="surface.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -728,16 +617,13 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='nticks', parent_name='surface.colorbar', **kwargs - ): + def __init__(self, plotly_name="nticks", parent_name="surface.colorbar", **kwargs): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -746,16 +632,13 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='lenmode', parent_name='surface.colorbar', **kwargs - ): + def __init__(self, plotly_name="lenmode", parent_name="surface.colorbar", **kwargs): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -764,16 +647,13 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='len', parent_name='surface.colorbar', **kwargs - ): + def __init__(self, plotly_name="len", parent_name="surface.colorbar", **kwargs): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -781,24 +661,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="exponentformat", parent_name="surface.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -807,16 +679,13 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='dtick', parent_name='surface.colorbar', **kwargs - ): + def __init__(self, plotly_name="dtick", parent_name="surface.colorbar", **kwargs): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -825,19 +694,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="surface.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -846,18 +711,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='surface.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="surface.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -866,14 +727,11 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='surface.colorbar', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="surface.colorbar", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/__init__.py index ea008a625d1..3e9778df98a 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='surface.colorbar.tickfont', - **kwargs + self, plotly_name="size", parent_name="surface.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='surface.colorbar.tickfont', - **kwargs + self, plotly_name="family", parent_name="surface.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='surface.colorbar.tickfont', - **kwargs + self, plotly_name="color", parent_name="surface.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/__init__.py index 87691e39f26..68bb518185d 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='surface.colorbar.tickformatstop', + plotly_name="value", + parent_name="surface.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='surface.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="surface.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,17 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='name', - parent_name='surface.colorbar.tickformatstop', + plotly_name="name", + parent_name="surface.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +59,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='surface.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="surface.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +78,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='surface.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="surface.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'calc' - }, { - 'valType': 'any', - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "any", "editType": "calc"}, + {"valType": "any", "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/surface/colorbar/title/__init__.py index 6cca886066d..1dd84b18fa9 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='surface.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="surface.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='surface.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="surface.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='surface.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="surface.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/__init__.py index db600718197..eb6657a5a2c 100644 --- a/packages/python/plotly/plotly/validators/surface/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/colorbar/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='surface.colorbar.title.font', - **kwargs + self, plotly_name="size", parent_name="surface.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='surface.colorbar.title.font', - **kwargs + self, plotly_name="family", parent_name="surface.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='surface.colorbar.title.font', - **kwargs + self, plotly_name="color", parent_name="surface.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/contours/__init__.py b/packages/python/plotly/plotly/validators/surface/contours/__init__.py index d880a3f2a66..fd1643673c4 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/contours/__init__.py @@ -1,19 +1,15 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='z', parent_name='surface.contours', **kwargs - ): + def __init__(self, plotly_name="z", parent_name="surface.contours", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Z'), + data_class_str=kwargs.pop("data_class_str", "Z"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of the contour lines. end @@ -46,7 +42,7 @@ def __init__( trace "colorscale". width Sets the width of the contour lines. -""" +""", ), **kwargs ) @@ -56,16 +52,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='y', parent_name='surface.contours', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="surface.contours", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Y'), + data_class_str=kwargs.pop("data_class_str", "Y"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of the contour lines. end @@ -98,7 +92,7 @@ def __init__( trace "colorscale". width Sets the width of the contour lines. -""" +""", ), **kwargs ) @@ -108,16 +102,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='x', parent_name='surface.contours', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="surface.contours", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'X'), + data_class_str=kwargs.pop("data_class_str", "X"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of the contour lines. end @@ -150,7 +142,7 @@ def __init__( trace "colorscale". width Sets the width of the contour lines. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/__init__.py b/packages/python/plotly/plotly/validators/surface/contours/x/__init__.py index 05b5a24ff40..8095e8e4427 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='surface.contours.x', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="surface.contours.x", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 16), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 16), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,18 +18,14 @@ def __init__( class UsecolormapValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='usecolormap', - parent_name='surface.contours.x', - **kwargs + self, plotly_name="usecolormap", parent_name="surface.contours.x", **kwargs ): super(UsecolormapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -43,15 +34,12 @@ def __init__( class StartValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='start', parent_name='surface.contours.x', **kwargs - ): + def __init__(self, plotly_name="start", parent_name="surface.contours.x", **kwargs): super(StartValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -60,16 +48,13 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='surface.contours.x', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="surface.contours.x", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -78,15 +63,12 @@ def __init__( class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='surface.contours.x', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="surface.contours.x", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -95,19 +77,16 @@ def __init__( class ProjectValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='project', - parent_name='surface.contours.x', - **kwargs + self, plotly_name="project", parent_name="surface.contours.x", **kwargs ): super(ProjectValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Project'), + data_class_str=kwargs.pop("data_class_str", "Project"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x Determines whether or not these contour lines are projected on the x plane. If `highlight` is @@ -126,7 +105,7 @@ def __init__( set to True (the default), the projected lines are shown on hover. If `show` is set to True, the projected lines are shown in permanence. -""" +""", ), **kwargs ) @@ -136,20 +115,16 @@ def __init__( class HighlightwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='highlightwidth', - parent_name='surface.contours.x', - **kwargs + self, plotly_name="highlightwidth", parent_name="surface.contours.x", **kwargs ): super(HighlightwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 16), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 16), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -158,18 +133,14 @@ def __init__( class HighlightcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='highlightcolor', - parent_name='surface.contours.x', - **kwargs + self, plotly_name="highlightcolor", parent_name="surface.contours.x", **kwargs ): super(HighlightcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -178,18 +149,14 @@ def __init__( class HighlightValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='highlight', - parent_name='surface.contours.x', - **kwargs + self, plotly_name="highlight", parent_name="surface.contours.x", **kwargs ): super(HighlightValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -198,15 +165,12 @@ def __init__( class EndValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='end', parent_name='surface.contours.x', **kwargs - ): + def __init__(self, plotly_name="end", parent_name="surface.contours.x", **kwargs): super(EndValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -215,14 +179,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='surface.contours.x', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="surface.contours.x", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/contours/x/project/__init__.py b/packages/python/plotly/plotly/validators/surface/contours/x/project/__init__.py index 6d341fc105d..8dba021dc17 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/x/project/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/contours/x/project/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='z', - parent_name='surface.contours.x.project', - **kwargs + self, plotly_name="z", parent_name="surface.contours.x.project", **kwargs ): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='y', - parent_name='surface.contours.x.project', - **kwargs + self, plotly_name="y", parent_name="surface.contours.x.project", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,17 +34,13 @@ def __init__( class XValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='x', - parent_name='surface.contours.x.project', - **kwargs + self, plotly_name="x", parent_name="surface.contours.x.project", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/__init__.py b/packages/python/plotly/plotly/validators/surface/contours/y/__init__.py index a1465359867..83d9da39a30 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='surface.contours.y', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="surface.contours.y", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 16), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 16), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,18 +18,14 @@ def __init__( class UsecolormapValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='usecolormap', - parent_name='surface.contours.y', - **kwargs + self, plotly_name="usecolormap", parent_name="surface.contours.y", **kwargs ): super(UsecolormapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -43,15 +34,12 @@ def __init__( class StartValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='start', parent_name='surface.contours.y', **kwargs - ): + def __init__(self, plotly_name="start", parent_name="surface.contours.y", **kwargs): super(StartValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -60,16 +48,13 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='surface.contours.y', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="surface.contours.y", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -78,15 +63,12 @@ def __init__( class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='surface.contours.y', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="surface.contours.y", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -95,19 +77,16 @@ def __init__( class ProjectValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='project', - parent_name='surface.contours.y', - **kwargs + self, plotly_name="project", parent_name="surface.contours.y", **kwargs ): super(ProjectValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Project'), + data_class_str=kwargs.pop("data_class_str", "Project"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x Determines whether or not these contour lines are projected on the x plane. If `highlight` is @@ -126,7 +105,7 @@ def __init__( set to True (the default), the projected lines are shown on hover. If `show` is set to True, the projected lines are shown in permanence. -""" +""", ), **kwargs ) @@ -136,20 +115,16 @@ def __init__( class HighlightwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='highlightwidth', - parent_name='surface.contours.y', - **kwargs + self, plotly_name="highlightwidth", parent_name="surface.contours.y", **kwargs ): super(HighlightwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 16), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 16), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -158,18 +133,14 @@ def __init__( class HighlightcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='highlightcolor', - parent_name='surface.contours.y', - **kwargs + self, plotly_name="highlightcolor", parent_name="surface.contours.y", **kwargs ): super(HighlightcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -178,18 +149,14 @@ def __init__( class HighlightValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='highlight', - parent_name='surface.contours.y', - **kwargs + self, plotly_name="highlight", parent_name="surface.contours.y", **kwargs ): super(HighlightValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -198,15 +165,12 @@ def __init__( class EndValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='end', parent_name='surface.contours.y', **kwargs - ): + def __init__(self, plotly_name="end", parent_name="surface.contours.y", **kwargs): super(EndValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -215,14 +179,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='surface.contours.y', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="surface.contours.y", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/contours/y/project/__init__.py b/packages/python/plotly/plotly/validators/surface/contours/y/project/__init__.py index f9bcffa82aa..31af0d66129 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/y/project/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/contours/y/project/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='z', - parent_name='surface.contours.y.project', - **kwargs + self, plotly_name="z", parent_name="surface.contours.y.project", **kwargs ): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='y', - parent_name='surface.contours.y.project', - **kwargs + self, plotly_name="y", parent_name="surface.contours.y.project", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,17 +34,13 @@ def __init__( class XValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='x', - parent_name='surface.contours.y.project', - **kwargs + self, plotly_name="x", parent_name="surface.contours.y.project", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/__init__.py b/packages/python/plotly/plotly/validators/surface/contours/z/__init__.py index 144af5d308e..02b49402124 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='surface.contours.z', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="surface.contours.z", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 16), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 16), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,18 +18,14 @@ def __init__( class UsecolormapValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='usecolormap', - parent_name='surface.contours.z', - **kwargs + self, plotly_name="usecolormap", parent_name="surface.contours.z", **kwargs ): super(UsecolormapValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -43,15 +34,12 @@ def __init__( class StartValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='start', parent_name='surface.contours.z', **kwargs - ): + def __init__(self, plotly_name="start", parent_name="surface.contours.z", **kwargs): super(StartValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -60,16 +48,13 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='surface.contours.z', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="surface.contours.z", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -78,15 +63,12 @@ def __init__( class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='surface.contours.z', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="surface.contours.z", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -95,19 +77,16 @@ def __init__( class ProjectValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='project', - parent_name='surface.contours.z', - **kwargs + self, plotly_name="project", parent_name="surface.contours.z", **kwargs ): super(ProjectValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Project'), + data_class_str=kwargs.pop("data_class_str", "Project"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x Determines whether or not these contour lines are projected on the x plane. If `highlight` is @@ -126,7 +105,7 @@ def __init__( set to True (the default), the projected lines are shown on hover. If `show` is set to True, the projected lines are shown in permanence. -""" +""", ), **kwargs ) @@ -136,20 +115,16 @@ def __init__( class HighlightwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='highlightwidth', - parent_name='surface.contours.z', - **kwargs + self, plotly_name="highlightwidth", parent_name="surface.contours.z", **kwargs ): super(HighlightwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 16), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 16), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -158,18 +133,14 @@ def __init__( class HighlightcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='highlightcolor', - parent_name='surface.contours.z', - **kwargs + self, plotly_name="highlightcolor", parent_name="surface.contours.z", **kwargs ): super(HighlightcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -178,18 +149,14 @@ def __init__( class HighlightValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='highlight', - parent_name='surface.contours.z', - **kwargs + self, plotly_name="highlight", parent_name="surface.contours.z", **kwargs ): super(HighlightValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -198,15 +165,12 @@ def __init__( class EndValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='end', parent_name='surface.contours.z', **kwargs - ): + def __init__(self, plotly_name="end", parent_name="surface.contours.z", **kwargs): super(EndValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -215,14 +179,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='surface.contours.z', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="surface.contours.z", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/contours/z/project/__init__.py b/packages/python/plotly/plotly/validators/surface/contours/z/project/__init__.py index 24f168b6d10..63dd75fa458 100644 --- a/packages/python/plotly/plotly/validators/surface/contours/z/project/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/contours/z/project/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='z', - parent_name='surface.contours.z.project', - **kwargs + self, plotly_name="z", parent_name="surface.contours.z.project", **kwargs ): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,18 +18,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='y', - parent_name='surface.contours.z.project', - **kwargs + self, plotly_name="y", parent_name="surface.contours.z.project", **kwargs ): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,17 +34,13 @@ def __init__( class XValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='x', - parent_name='surface.contours.z.project', - **kwargs + self, plotly_name="x", parent_name="surface.contours.z.project", **kwargs ): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/__init__.py index c34a5583104..cf01137ca9f 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='surface.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="surface.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='surface.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="surface.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='surface.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="surface.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='surface.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="surface.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='surface.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="surface.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='surface.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="surface.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,19 +132,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='surface.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="surface.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -177,18 +149,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='surface.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="surface.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -197,16 +165,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='surface.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="surface.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/__init__.py index 990daf71916..28e219382e9 100644 --- a/packages/python/plotly/plotly/validators/surface/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='surface.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="surface.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='surface.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="surface.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='surface.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="surface.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='surface.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="surface.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='surface.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="surface.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='surface.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="surface.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/lighting/__init__.py b/packages/python/plotly/plotly/validators/surface/lighting/__init__.py index e20adf7b097..f8efcfa2087 100644 --- a/packages/python/plotly/plotly/validators/surface/lighting/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/lighting/__init__.py @@ -1,20 +1,17 @@ - - import _plotly_utils.basevalidators class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='specular', parent_name='surface.lighting', **kwargs + self, plotly_name="specular", parent_name="surface.lighting", **kwargs ): super(SpecularValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 2), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 2), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,20 +20,16 @@ def __init__( class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='roughness', - parent_name='surface.lighting', - **kwargs + self, plotly_name="roughness", parent_name="surface.lighting", **kwargs ): super(RoughnessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -45,17 +38,14 @@ def __init__( class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fresnel', parent_name='surface.lighting', **kwargs - ): + def __init__(self, plotly_name="fresnel", parent_name="surface.lighting", **kwargs): super(FresnelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 5), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 5), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,17 +54,14 @@ def __init__( class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='diffuse', parent_name='surface.lighting', **kwargs - ): + def __init__(self, plotly_name="diffuse", parent_name="surface.lighting", **kwargs): super(DiffuseValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -83,16 +70,13 @@ def __init__( class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ambient', parent_name='surface.lighting', **kwargs - ): + def __init__(self, plotly_name="ambient", parent_name="surface.lighting", **kwargs): super(AmbientValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/lightposition/__init__.py b/packages/python/plotly/plotly/validators/surface/lightposition/__init__.py index ea1275293ca..56155f8f912 100644 --- a/packages/python/plotly/plotly/validators/surface/lightposition/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/lightposition/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='z', parent_name='surface.lightposition', **kwargs - ): + def __init__(self, plotly_name="z", parent_name="surface.lightposition", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,17 +18,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='surface.lightposition', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="surface.lightposition", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) @@ -42,16 +34,13 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='surface.lightposition', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="surface.lightposition", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/surface/stream/__init__.py b/packages/python/plotly/plotly/validators/surface/stream/__init__.py index 5ec613c8bf0..27e1d4d843b 100644 --- a/packages/python/plotly/plotly/validators/surface/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/surface/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='surface.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="surface.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='surface.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="surface.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/table/__init__.py b/packages/python/plotly/plotly/validators/table/__init__.py index 9f1865084a7..be56c6669f2 100644 --- a/packages/python/plotly/plotly/validators/table/__init__.py +++ b/packages/python/plotly/plotly/validators/table/__init__.py @@ -1,17 +1,14 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='table', **kwargs): + def __init__(self, plotly_name="visible", parent_name="table", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -20,15 +17,12 @@ def __init__(self, plotly_name='visible', parent_name='table', **kwargs): class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='table', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="table", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -37,14 +31,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='table', **kwargs): + def __init__(self, plotly_name="uid", parent_name="table", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -53,14 +46,14 @@ def __init__(self, plotly_name='uid', parent_name='table', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='table', **kwargs): + def __init__(self, plotly_name="stream", parent_name="table", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -70,7 +63,7 @@ def __init__(self, plotly_name='stream', parent_name='table', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -80,13 +73,12 @@ def __init__(self, plotly_name='stream', parent_name='table', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='table', **kwargs): + def __init__(self, plotly_name="name", parent_name="table", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -95,13 +87,12 @@ def __init__(self, plotly_name='name', parent_name='table', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='table', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="table", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -110,14 +101,13 @@ def __init__(self, plotly_name='metasrc', parent_name='table', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='table', **kwargs): + def __init__(self, plotly_name="meta", parent_name="table", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -126,13 +116,12 @@ def __init__(self, plotly_name='meta', parent_name='table', **kwargs): class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='table', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="table", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -141,14 +130,13 @@ def __init__(self, plotly_name='idssrc', parent_name='table', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='table', **kwargs): + def __init__(self, plotly_name="ids", parent_name="table", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -157,16 +145,14 @@ def __init__(self, plotly_name='ids', parent_name='table', **kwargs): class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='table', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="table", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -202,7 +188,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -212,15 +198,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='table', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="table", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -229,16 +212,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__(self, plotly_name='hoverinfo', parent_name='table', **kwargs): + def __init__(self, plotly_name="hoverinfo", parent_name="table", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -247,14 +229,14 @@ def __init__(self, plotly_name='hoverinfo', parent_name='table', **kwargs): class HeaderValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='header', parent_name='table', **kwargs): + def __init__(self, plotly_name="header", parent_name="table", **kwargs): super(HeaderValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Header'), + data_class_str=kwargs.pop("data_class_str", "Header"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` @@ -304,7 +286,7 @@ def __init__(self, plotly_name='header', parent_name='table', **kwargs): valuessrc Sets the source reference on plot.ly for values . -""" +""", ), **kwargs ) @@ -314,14 +296,14 @@ def __init__(self, plotly_name='header', parent_name='table', **kwargs): class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='domain', parent_name='table', **kwargs): + def __init__(self, plotly_name="domain", parent_name="table", **kwargs): super(DomainValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Domain'), + data_class_str=kwargs.pop("data_class_str", "Domain"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ column If there is a layout grid, use the domain for this column in the grid for this table trace . @@ -334,7 +316,7 @@ def __init__(self, plotly_name='domain', parent_name='table', **kwargs): y Sets the vertical domain of this table trace (in plot fraction). -""" +""", ), **kwargs ) @@ -344,15 +326,12 @@ def __init__(self, plotly_name='domain', parent_name='table', **kwargs): class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='table', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="table", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -361,15 +340,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='table', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="table", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -378,15 +354,12 @@ def __init__( class ColumnwidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='columnwidthsrc', parent_name='table', **kwargs - ): + def __init__(self, plotly_name="columnwidthsrc", parent_name="table", **kwargs): super(ColumnwidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -395,16 +368,13 @@ def __init__( class ColumnwidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='columnwidth', parent_name='table', **kwargs - ): + def __init__(self, plotly_name="columnwidth", parent_name="table", **kwargs): super(ColumnwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -413,15 +383,12 @@ def __init__( class ColumnordersrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='columnordersrc', parent_name='table', **kwargs - ): + def __init__(self, plotly_name="columnordersrc", parent_name="table", **kwargs): super(ColumnordersrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -430,15 +397,12 @@ def __init__( class ColumnorderValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='columnorder', parent_name='table', **kwargs - ): + def __init__(self, plotly_name="columnorder", parent_name="table", **kwargs): super(ColumnorderValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -447,14 +411,14 @@ def __init__( class CellsValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='cells', parent_name='table', **kwargs): + def __init__(self, plotly_name="cells", parent_name="table", **kwargs): super(CellsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Cells'), + data_class_str=kwargs.pop("data_class_str", "Cells"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the `text` within the box. Has an effect only if `text` @@ -504,7 +468,7 @@ def __init__(self, plotly_name='cells', parent_name='table', **kwargs): valuessrc Sets the source reference on plot.ly for values . -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/table/cells/__init__.py b/packages/python/plotly/plotly/validators/table/cells/__init__.py index 0bf92e246a9..a58e2b12306 100644 --- a/packages/python/plotly/plotly/validators/table/cells/__init__.py +++ b/packages/python/plotly/plotly/validators/table/cells/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='valuessrc', parent_name='table.cells', **kwargs - ): + def __init__(self, plotly_name="valuessrc", parent_name="table.cells", **kwargs): super(ValuessrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,15 +16,12 @@ def __init__( class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='values', parent_name='table.cells', **kwargs - ): + def __init__(self, plotly_name="values", parent_name="table.cells", **kwargs): super(ValuesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -38,15 +30,12 @@ def __init__( class SuffixsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='suffixsrc', parent_name='table.cells', **kwargs - ): + def __init__(self, plotly_name="suffixsrc", parent_name="table.cells", **kwargs): super(SuffixsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -55,16 +44,13 @@ def __init__( class SuffixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='suffix', parent_name='table.cells', **kwargs - ): + def __init__(self, plotly_name="suffix", parent_name="table.cells", **kwargs): super(SuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -73,15 +59,12 @@ def __init__( class PrefixsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='prefixsrc', parent_name='table.cells', **kwargs - ): + def __init__(self, plotly_name="prefixsrc", parent_name="table.cells", **kwargs): super(PrefixsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -90,16 +73,13 @@ def __init__( class PrefixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='prefix', parent_name='table.cells', **kwargs - ): + def __init__(self, plotly_name="prefix", parent_name="table.cells", **kwargs): super(PrefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -108,16 +88,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='table.cells', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="table.cells", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -128,7 +106,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -138,15 +116,12 @@ def __init__( class HeightValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='height', parent_name='table.cells', **kwargs - ): + def __init__(self, plotly_name="height", parent_name="table.cells", **kwargs): super(HeightValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -155,15 +130,12 @@ def __init__( class FormatsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='formatsrc', parent_name='table.cells', **kwargs - ): + def __init__(self, plotly_name="formatsrc", parent_name="table.cells", **kwargs): super(FormatsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -172,15 +144,12 @@ def __init__( class FormatValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='format', parent_name='table.cells', **kwargs - ): + def __init__(self, plotly_name="format", parent_name="table.cells", **kwargs): super(FormatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -189,16 +158,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='table.cells', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="table.cells", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -228,7 +195,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -238,16 +205,14 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='fill', parent_name='table.cells', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="table.cells", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Fill'), + data_class_str=kwargs.pop("data_class_str", "Fill"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D @@ -255,7 +220,7 @@ def __init__( colorsrc Sets the source reference on plot.ly for color . -""" +""", ), **kwargs ) @@ -265,15 +230,12 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='alignsrc', parent_name='table.cells', **kwargs - ): + def __init__(self, plotly_name="alignsrc", parent_name="table.cells", **kwargs): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -282,16 +244,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='table.cells', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="table.cells", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/table/cells/fill/__init__.py b/packages/python/plotly/plotly/validators/table/cells/fill/__init__.py index f0f518f88bc..4c0e105afed 100644 --- a/packages/python/plotly/plotly/validators/table/cells/fill/__init__.py +++ b/packages/python/plotly/plotly/validators/table/cells/fill/__init__.py @@ -1,18 +1,15 @@ - - import _plotly_utils.basevalidators class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='colorsrc', parent_name='table.cells.fill', **kwargs + self, plotly_name="colorsrc", parent_name="table.cells.fill", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,15 +18,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='table.cells.fill', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="table.cells.fill", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/table/cells/font/__init__.py b/packages/python/plotly/plotly/validators/table/cells/font/__init__.py index 0cc9ad5df3c..468a8a0d48d 100644 --- a/packages/python/plotly/plotly/validators/table/cells/font/__init__.py +++ b/packages/python/plotly/plotly/validators/table/cells/font/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='sizesrc', parent_name='table.cells.font', **kwargs - ): + def __init__(self, plotly_name="sizesrc", parent_name="table.cells.font", **kwargs): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,17 +16,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='table.cells.font', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="table.cells.font", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -40,18 +32,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='table.cells.font', - **kwargs + self, plotly_name="familysrc", parent_name="table.cells.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -60,18 +48,15 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='family', parent_name='table.cells.font', **kwargs - ): + def __init__(self, plotly_name="family", parent_name="table.cells.font", **kwargs): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -80,15 +65,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='colorsrc', parent_name='table.cells.font', **kwargs + self, plotly_name="colorsrc", parent_name="table.cells.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -97,15 +81,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='table.cells.font', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="table.cells.font", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/table/cells/line/__init__.py b/packages/python/plotly/plotly/validators/table/cells/line/__init__.py index 735acaa82d9..8438a1511c2 100644 --- a/packages/python/plotly/plotly/validators/table/cells/line/__init__.py +++ b/packages/python/plotly/plotly/validators/table/cells/line/__init__.py @@ -1,18 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='widthsrc', parent_name='table.cells.line', **kwargs + self, plotly_name="widthsrc", parent_name="table.cells.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +18,13 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='table.cells.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="table.cells.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -39,15 +33,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='colorsrc', parent_name='table.cells.line', **kwargs + self, plotly_name="colorsrc", parent_name="table.cells.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -56,15 +49,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='table.cells.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="table.cells.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/table/domain/__init__.py b/packages/python/plotly/plotly/validators/table/domain/__init__.py index 4376ce3730a..957a9d90e91 100644 --- a/packages/python/plotly/plotly/validators/table/domain/__init__.py +++ b/packages/python/plotly/plotly/validators/table/domain/__init__.py @@ -1,31 +1,20 @@ - - import _plotly_utils.basevalidators class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__(self, plotly_name='y', parent_name='table.domain', **kwargs): + def __init__(self, plotly_name="y", parent_name="table.domain", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -34,28 +23,19 @@ def __init__(self, plotly_name='y', parent_name='table.domain', **kwargs): class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__(self, plotly_name='x', parent_name='table.domain', **kwargs): + def __init__(self, plotly_name="x", parent_name="table.domain", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - }, { - 'valType': 'number', - 'min': 0, - 'max': 1, - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + {"valType": "number", "min": 0, "max": 1, "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -64,16 +44,13 @@ def __init__(self, plotly_name='x', parent_name='table.domain', **kwargs): class RowValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='row', parent_name='table.domain', **kwargs - ): + def __init__(self, plotly_name="row", parent_name="table.domain", **kwargs): super(RowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -82,15 +59,12 @@ def __init__( class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='column', parent_name='table.domain', **kwargs - ): + def __init__(self, plotly_name="column", parent_name="table.domain", **kwargs): super(ColumnValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/table/header/__init__.py b/packages/python/plotly/plotly/validators/table/header/__init__.py index d3406d5bdfb..dc182eaaa17 100644 --- a/packages/python/plotly/plotly/validators/table/header/__init__.py +++ b/packages/python/plotly/plotly/validators/table/header/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='valuessrc', parent_name='table.header', **kwargs - ): + def __init__(self, plotly_name="valuessrc", parent_name="table.header", **kwargs): super(ValuessrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,15 +16,12 @@ def __init__( class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='values', parent_name='table.header', **kwargs - ): + def __init__(self, plotly_name="values", parent_name="table.header", **kwargs): super(ValuesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -38,15 +30,12 @@ def __init__( class SuffixsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='suffixsrc', parent_name='table.header', **kwargs - ): + def __init__(self, plotly_name="suffixsrc", parent_name="table.header", **kwargs): super(SuffixsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -55,16 +44,13 @@ def __init__( class SuffixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='suffix', parent_name='table.header', **kwargs - ): + def __init__(self, plotly_name="suffix", parent_name="table.header", **kwargs): super(SuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -73,15 +59,12 @@ def __init__( class PrefixsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='prefixsrc', parent_name='table.header', **kwargs - ): + def __init__(self, plotly_name="prefixsrc", parent_name="table.header", **kwargs): super(PrefixsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -90,16 +73,13 @@ def __init__( class PrefixValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='prefix', parent_name='table.header', **kwargs - ): + def __init__(self, plotly_name="prefix", parent_name="table.header", **kwargs): super(PrefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -108,16 +88,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='table.header', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="table.header", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -128,7 +106,7 @@ def __init__( widthsrc Sets the source reference on plot.ly for width . -""" +""", ), **kwargs ) @@ -138,15 +116,12 @@ def __init__( class HeightValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='height', parent_name='table.header', **kwargs - ): + def __init__(self, plotly_name="height", parent_name="table.header", **kwargs): super(HeightValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -155,15 +130,12 @@ def __init__( class FormatsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='formatsrc', parent_name='table.header', **kwargs - ): + def __init__(self, plotly_name="formatsrc", parent_name="table.header", **kwargs): super(FormatsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -172,15 +144,12 @@ def __init__( class FormatValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='format', parent_name='table.header', **kwargs - ): + def __init__(self, plotly_name="format", parent_name="table.header", **kwargs): super(FormatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -189,16 +158,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='table.header', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="table.header", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -228,7 +195,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -238,16 +205,14 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='fill', parent_name='table.header', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="table.header", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Fill'), + data_class_str=kwargs.pop("data_class_str", "Fill"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the cell fill color. It accepts either a specific color or an array of colors or a 2D @@ -255,7 +220,7 @@ def __init__( colorsrc Sets the source reference on plot.ly for color . -""" +""", ), **kwargs ) @@ -265,15 +230,12 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='alignsrc', parent_name='table.header', **kwargs - ): + def __init__(self, plotly_name="alignsrc", parent_name="table.header", **kwargs): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -282,16 +244,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='table.header', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="table.header", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/table/header/fill/__init__.py b/packages/python/plotly/plotly/validators/table/header/fill/__init__.py index 68322e3f5c2..cca8adc469c 100644 --- a/packages/python/plotly/plotly/validators/table/header/fill/__init__.py +++ b/packages/python/plotly/plotly/validators/table/header/fill/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='table.header.fill', - **kwargs + self, plotly_name="colorsrc", parent_name="table.header.fill", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,15 +18,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='table.header.fill', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="table.header.fill", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/table/header/font/__init__.py b/packages/python/plotly/plotly/validators/table/header/font/__init__.py index c1766fbcfb3..0da7aac9267 100644 --- a/packages/python/plotly/plotly/validators/table/header/font/__init__.py +++ b/packages/python/plotly/plotly/validators/table/header/font/__init__.py @@ -1,18 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='sizesrc', parent_name='table.header.font', **kwargs + self, plotly_name="sizesrc", parent_name="table.header.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,17 +18,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='table.header.font', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="table.header.font", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -40,18 +34,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='table.header.font', - **kwargs + self, plotly_name="familysrc", parent_name="table.header.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -60,18 +50,15 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='family', parent_name='table.header.font', **kwargs - ): + def __init__(self, plotly_name="family", parent_name="table.header.font", **kwargs): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -80,18 +67,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='table.header.font', - **kwargs + self, plotly_name="colorsrc", parent_name="table.header.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -100,15 +83,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='table.header.font', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="table.header.font", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/table/header/line/__init__.py b/packages/python/plotly/plotly/validators/table/header/line/__init__.py index debf9b3ba48..5d514a14b19 100644 --- a/packages/python/plotly/plotly/validators/table/header/line/__init__.py +++ b/packages/python/plotly/plotly/validators/table/header/line/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='widthsrc', - parent_name='table.header.line', - **kwargs + self, plotly_name="widthsrc", parent_name="table.header.line", **kwargs ): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,16 +18,13 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='table.header.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="table.header.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -42,18 +33,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='table.header.line', - **kwargs + self, plotly_name="colorsrc", parent_name="table.header.line", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -62,15 +49,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='table.header.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="table.header.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/table/hoverlabel/__init__.py index ae767b856f1..afaecdc5ff6 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='table.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="table.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='table.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="table.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='table.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="table.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='table.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="table.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='table.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="table.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='table.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="table.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,16 +132,13 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='table.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="table.hoverlabel", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -174,15 +147,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='alignsrc', parent_name='table.hoverlabel', **kwargs + self, plotly_name="alignsrc", parent_name="table.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -191,16 +163,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='table.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="table.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/table/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/table/hoverlabel/font/__init__.py index 3a1b8448826..68d0378f3e6 100644 --- a/packages/python/plotly/plotly/validators/table/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/table/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='table.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="table.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='table.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="table.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='table.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="table.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='table.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="table.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='table.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="table.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='table.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="table.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/table/stream/__init__.py b/packages/python/plotly/plotly/validators/table/stream/__init__.py index eb452040f26..db982f58b67 100644 --- a/packages/python/plotly/plotly/validators/table/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/table/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='table.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="table.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='table.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="table.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/violin/__init__.py b/packages/python/plotly/plotly/validators/violin/__init__.py index 7ddbf03fdab..e1366f257b6 100644 --- a/packages/python/plotly/plotly/validators/violin/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='violin', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="violin", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,14 +16,13 @@ def __init__(self, plotly_name='ysrc', parent_name='violin', **kwargs): class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='yaxis', parent_name='violin', **kwargs): + def __init__(self, plotly_name="yaxis", parent_name="violin", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -35,13 +31,12 @@ def __init__(self, plotly_name='yaxis', parent_name='violin', **kwargs): class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='y0', parent_name='violin', **kwargs): + def __init__(self, plotly_name="y0", parent_name="violin", **kwargs): super(Y0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -50,13 +45,12 @@ def __init__(self, plotly_name='y0', parent_name='violin', **kwargs): class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='violin', **kwargs): + def __init__(self, plotly_name="y", parent_name="violin", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -65,13 +59,12 @@ def __init__(self, plotly_name='y', parent_name='violin', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='violin', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="violin", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -80,14 +73,13 @@ def __init__(self, plotly_name='xsrc', parent_name='violin', **kwargs): class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='xaxis', parent_name='violin', **kwargs): + def __init__(self, plotly_name="xaxis", parent_name="violin", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -96,13 +88,12 @@ def __init__(self, plotly_name='xaxis', parent_name='violin', **kwargs): class X0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='x0', parent_name='violin', **kwargs): + def __init__(self, plotly_name="x0", parent_name="violin", **kwargs): super(X0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -111,13 +102,12 @@ def __init__(self, plotly_name='x0', parent_name='violin', **kwargs): class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='violin', **kwargs): + def __init__(self, plotly_name="x", parent_name="violin", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -126,14 +116,13 @@ def __init__(self, plotly_name='x', parent_name='violin', **kwargs): class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='width', parent_name='violin', **kwargs): + def __init__(self, plotly_name="width", parent_name="violin", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -142,14 +131,13 @@ def __init__(self, plotly_name='width', parent_name='violin', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='violin', **kwargs): + def __init__(self, plotly_name="visible", parent_name="violin", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -158,20 +146,18 @@ def __init__(self, plotly_name='visible', parent_name='violin', **kwargs): class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='unselected', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="unselected", parent_name="violin", **kwargs): super(UnselectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Unselected'), + data_class_str=kwargs.pop("data_class_str", "Unselected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.violin.unselected.Marker instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -181,15 +167,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="violin", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -198,14 +181,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='violin', **kwargs): + def __init__(self, plotly_name="uid", parent_name="violin", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -214,13 +196,12 @@ def __init__(self, plotly_name='uid', parent_name='violin', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='textsrc', parent_name='violin', **kwargs): + def __init__(self, plotly_name="textsrc", parent_name="violin", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -229,14 +210,13 @@ def __init__(self, plotly_name='textsrc', parent_name='violin', **kwargs): class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='violin', **kwargs): + def __init__(self, plotly_name="text", parent_name="violin", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -245,14 +225,14 @@ def __init__(self, plotly_name='text', parent_name='violin', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='violin', **kwargs): + def __init__(self, plotly_name="stream", parent_name="violin", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -262,7 +242,7 @@ def __init__(self, plotly_name='stream', parent_name='violin', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -272,14 +252,13 @@ def __init__(self, plotly_name='stream', parent_name='violin', **kwargs): class SpanmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='spanmode', parent_name='violin', **kwargs): + def __init__(self, plotly_name="spanmode", parent_name="violin", **kwargs): super(SpanmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['soft', 'hard', 'manual']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["soft", "hard", "manual"]), **kwargs ) @@ -288,24 +267,19 @@ def __init__(self, plotly_name='spanmode', parent_name='violin', **kwargs): class SpanValidator(_plotly_utils.basevalidators.InfoArrayValidator): - - def __init__(self, plotly_name='span', parent_name='violin', **kwargs): + def __init__(self, plotly_name="span", parent_name="violin", **kwargs): super(SpanValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'calc' - }, { - 'valType': 'any', - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "any", "editType": "calc"}, + {"valType": "any", "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) @@ -314,14 +288,13 @@ def __init__(self, plotly_name='span', parent_name='violin', **kwargs): class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='side', parent_name='violin', **kwargs): + def __init__(self, plotly_name="side", parent_name="violin", **kwargs): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['both', 'positive', 'negative']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["both", "positive", "negative"]), **kwargs ) @@ -330,15 +303,12 @@ def __init__(self, plotly_name='side', parent_name='violin', **kwargs): class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="violin", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -347,15 +317,12 @@ def __init__( class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='selectedpoints', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="selectedpoints", parent_name="violin", **kwargs): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -364,18 +331,18 @@ def __init__( class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='selected', parent_name='violin', **kwargs): + def __init__(self, plotly_name="selected", parent_name="violin", **kwargs): super(SelectedValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Selected'), + data_class_str=kwargs.pop("data_class_str", "Selected"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.violin.selected.Marker instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -385,16 +352,13 @@ def __init__(self, plotly_name='selected', parent_name='violin', **kwargs): class ScalemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='scalemode', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="scalemode", parent_name="violin", **kwargs): super(ScalemodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['width', 'count']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["width", "count"]), **kwargs ) @@ -403,15 +367,12 @@ def __init__( class ScalegroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='scalegroup', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="scalegroup", parent_name="violin", **kwargs): super(ScalegroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -420,15 +381,14 @@ def __init__( class PointsValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='points', parent_name='violin', **kwargs): + def __init__(self, plotly_name="points", parent_name="violin", **kwargs): super(PointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', ['all', 'outliers', 'suspectedoutliers', False] + "values", ["all", "outliers", "suspectedoutliers", False] ), **kwargs ) @@ -438,15 +398,14 @@ def __init__(self, plotly_name='points', parent_name='violin', **kwargs): class PointposValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='pointpos', parent_name='violin', **kwargs): + def __init__(self, plotly_name="pointpos", parent_name="violin", **kwargs): super(PointposValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 2), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 2), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -455,16 +414,13 @@ def __init__(self, plotly_name='pointpos', parent_name='violin', **kwargs): class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='orientation', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="orientation", parent_name="violin", **kwargs): super(OrientationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['v', 'h']), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["v", "h"]), **kwargs ) @@ -473,15 +429,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='opacity', parent_name='violin', **kwargs): + def __init__(self, plotly_name="opacity", parent_name="violin", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -490,15 +445,12 @@ def __init__(self, plotly_name='opacity', parent_name='violin', **kwargs): class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='offsetgroup', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="offsetgroup", parent_name="violin", **kwargs): super(OffsetgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -507,13 +459,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='violin', **kwargs): + def __init__(self, plotly_name="name", parent_name="violin", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -522,13 +473,12 @@ def __init__(self, plotly_name='name', parent_name='violin', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='violin', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="violin", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -537,14 +487,13 @@ def __init__(self, plotly_name='metasrc', parent_name='violin', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='violin', **kwargs): + def __init__(self, plotly_name="meta", parent_name="violin", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -553,14 +502,14 @@ def __init__(self, plotly_name='meta', parent_name='violin', **kwargs): class MeanlineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='meanline', parent_name='violin', **kwargs): + def __init__(self, plotly_name="meanline", parent_name="violin", **kwargs): super(MeanlineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Meanline'), + data_class_str=kwargs.pop("data_class_str", "Meanline"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the mean line color. visible @@ -572,7 +521,7 @@ def __init__(self, plotly_name='meanline', parent_name='violin', **kwargs): other. width Sets the mean line width. -""" +""", ), **kwargs ) @@ -582,14 +531,14 @@ def __init__(self, plotly_name='meanline', parent_name='violin', **kwargs): class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='marker', parent_name='violin', **kwargs): + def __init__(self, plotly_name="marker", parent_name="violin", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets themarkercolor. It accepts either a specific color or an array of numbers that are @@ -612,7 +561,7 @@ def __init__(self, plotly_name='marker', parent_name='violin', **kwargs): "-dot" to a symbol name. Adding 300 is equivalent to appending "-open-dot" or "dot- open" to a symbol name. -""" +""", ), **kwargs ) @@ -622,20 +571,20 @@ def __init__(self, plotly_name='marker', parent_name='violin', **kwargs): class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='line', parent_name='violin', **kwargs): + def __init__(self, plotly_name="line", parent_name="violin", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of line bounding the violin(s). width Sets the width (in px) of line bounding the violin(s). -""" +""", ), **kwargs ) @@ -645,15 +594,12 @@ def __init__(self, plotly_name='line', parent_name='violin', **kwargs): class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='legendgroup', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="legendgroup", parent_name="violin", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -662,15 +608,14 @@ def __init__( class JitterValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='jitter', parent_name='violin', **kwargs): + def __init__(self, plotly_name="jitter", parent_name="violin", **kwargs): super(JitterValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -679,13 +624,12 @@ def __init__(self, plotly_name='jitter', parent_name='violin', **kwargs): class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='violin', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="violin", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -694,14 +638,13 @@ def __init__(self, plotly_name='idssrc', parent_name='violin', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='violin', **kwargs): + def __init__(self, plotly_name="ids", parent_name="violin", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -710,15 +653,12 @@ def __init__(self, plotly_name='ids', parent_name='violin', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="violin", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -727,16 +667,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="violin", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -745,15 +682,12 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertemplatesrc', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="hovertemplatesrc", parent_name="violin", **kwargs): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -762,16 +696,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="violin", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -780,15 +711,14 @@ def __init__( class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__(self, plotly_name='hoveron', parent_name='violin', **kwargs): + def __init__(self, plotly_name="hoveron", parent_name="violin", **kwargs): super(HoveronValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - extras=kwargs.pop('extras', ['all']), - flags=kwargs.pop('flags', ['violins', 'points', 'kde']), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + extras=kwargs.pop("extras", ["all"]), + flags=kwargs.pop("flags", ["violins", "points", "kde"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -797,16 +727,14 @@ def __init__(self, plotly_name='hoveron', parent_name='violin', **kwargs): class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="violin", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -842,7 +770,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -852,15 +780,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="violin", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -869,18 +794,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="violin", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -889,16 +811,13 @@ def __init__( class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='fillcolor', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="fillcolor", parent_name="violin", **kwargs): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -907,15 +826,12 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="violin", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -924,15 +840,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="violin", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -941,14 +854,14 @@ def __init__( class BoxValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='box', parent_name='violin', **kwargs): + def __init__(self, plotly_name="box", parent_name="violin", **kwargs): super(BoxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Box'), + data_class_str=kwargs.pop("data_class_str", "Box"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fillcolor Sets the inner box plot fill color. line @@ -961,7 +874,7 @@ def __init__(self, plotly_name='box', parent_name='violin', **kwargs): Sets the width of the inner box plots relative to the violins' width. For example, with 1, the inner box plots are as wide as the violins. -""" +""", ), **kwargs ) @@ -971,16 +884,13 @@ def __init__(self, plotly_name='box', parent_name='violin', **kwargs): class BandwidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='bandwidth', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="bandwidth", parent_name="violin", **kwargs): super(BandwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -989,14 +899,11 @@ def __init__( class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='alignmentgroup', parent_name='violin', **kwargs - ): + def __init__(self, plotly_name="alignmentgroup", parent_name="violin", **kwargs): super(AlignmentgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/violin/box/__init__.py b/packages/python/plotly/plotly/validators/violin/box/__init__.py index 067cff3a6ef..07e9f845985 100644 --- a/packages/python/plotly/plotly/validators/violin/box/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/box/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='violin.box', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="violin.box", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -23,15 +18,12 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='visible', parent_name='violin.box', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="violin.box", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -40,19 +32,19 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='line', parent_name='violin.box', **kwargs): + def __init__(self, plotly_name="line", parent_name="violin.box", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the inner box plot bounding line color. width Sets the inner box plot bounding line width. -""" +""", ), **kwargs ) @@ -62,14 +54,11 @@ def __init__(self, plotly_name='line', parent_name='violin.box', **kwargs): class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='fillcolor', parent_name='violin.box', **kwargs - ): + def __init__(self, plotly_name="fillcolor", parent_name="violin.box", **kwargs): super(FillcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/violin/box/line/__init__.py b/packages/python/plotly/plotly/validators/violin/box/line/__init__.py index 8c0386c0a80..88eefde89cb 100644 --- a/packages/python/plotly/plotly/validators/violin/box/line/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/box/line/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='violin.box.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="violin.box.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,14 +17,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='violin.box.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="violin.box.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/__init__.py index 790e7285e09..58a381df2d5 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='violin.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="violin.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='violin.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="violin.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='violin.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="violin.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='violin.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="violin.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='violin.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="violin.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='violin.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="violin.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,16 +132,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='bgcolor', parent_name='violin.hoverlabel', **kwargs + self, plotly_name="bgcolor", parent_name="violin.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -174,18 +149,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='violin.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="violin.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -194,16 +165,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='violin.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="violin.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/__init__.py index 3d7d270e24e..34d27b77a64 100644 --- a/packages/python/plotly/plotly/validators/violin/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='violin.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="violin.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='violin.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="violin.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='violin.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="violin.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='violin.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="violin.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='violin.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="violin.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='violin.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="violin.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/violin/line/__init__.py b/packages/python/plotly/plotly/validators/violin/line/__init__.py index 8ee561572c7..8f724e39ec6 100644 --- a/packages/python/plotly/plotly/validators/violin/line/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/line/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='violin.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="violin.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,14 +17,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='violin.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="violin.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/violin/marker/__init__.py b/packages/python/plotly/plotly/validators/violin/marker/__init__.py index e8579506b74..5806d2a4d5b 100644 --- a/packages/python/plotly/plotly/validators/violin/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/marker/__init__.py @@ -1,80 +1,302 @@ - - import _plotly_utils.basevalidators class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='symbol', parent_name='violin.marker', **kwargs - ): + def __init__(self, plotly_name="symbol", parent_name="violin.marker", **kwargs): super(SymbolValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', [ - 0, 'circle', 100, 'circle-open', 200, 'circle-dot', 300, - 'circle-open-dot', 1, 'square', 101, 'square-open', 201, - 'square-dot', 301, 'square-open-dot', 2, 'diamond', 102, - 'diamond-open', 202, 'diamond-dot', 302, - 'diamond-open-dot', 3, 'cross', 103, 'cross-open', 203, - 'cross-dot', 303, 'cross-open-dot', 4, 'x', 104, 'x-open', - 204, 'x-dot', 304, 'x-open-dot', 5, 'triangle-up', 105, - 'triangle-up-open', 205, 'triangle-up-dot', 305, - 'triangle-up-open-dot', 6, 'triangle-down', 106, - 'triangle-down-open', 206, 'triangle-down-dot', 306, - 'triangle-down-open-dot', 7, 'triangle-left', 107, - 'triangle-left-open', 207, 'triangle-left-dot', 307, - 'triangle-left-open-dot', 8, 'triangle-right', 108, - 'triangle-right-open', 208, 'triangle-right-dot', 308, - 'triangle-right-open-dot', 9, 'triangle-ne', 109, - 'triangle-ne-open', 209, 'triangle-ne-dot', 309, - 'triangle-ne-open-dot', 10, 'triangle-se', 110, - 'triangle-se-open', 210, 'triangle-se-dot', 310, - 'triangle-se-open-dot', 11, 'triangle-sw', 111, - 'triangle-sw-open', 211, 'triangle-sw-dot', 311, - 'triangle-sw-open-dot', 12, 'triangle-nw', 112, - 'triangle-nw-open', 212, 'triangle-nw-dot', 312, - 'triangle-nw-open-dot', 13, 'pentagon', 113, - 'pentagon-open', 213, 'pentagon-dot', 313, - 'pentagon-open-dot', 14, 'hexagon', 114, 'hexagon-open', - 214, 'hexagon-dot', 314, 'hexagon-open-dot', 15, - 'hexagon2', 115, 'hexagon2-open', 215, 'hexagon2-dot', 315, - 'hexagon2-open-dot', 16, 'octagon', 116, 'octagon-open', - 216, 'octagon-dot', 316, 'octagon-open-dot', 17, 'star', - 117, 'star-open', 217, 'star-dot', 317, 'star-open-dot', - 18, 'hexagram', 118, 'hexagram-open', 218, 'hexagram-dot', - 318, 'hexagram-open-dot', 19, 'star-triangle-up', 119, - 'star-triangle-up-open', 219, 'star-triangle-up-dot', 319, - 'star-triangle-up-open-dot', 20, 'star-triangle-down', 120, - 'star-triangle-down-open', 220, 'star-triangle-down-dot', - 320, 'star-triangle-down-open-dot', 21, 'star-square', 121, - 'star-square-open', 221, 'star-square-dot', 321, - 'star-square-open-dot', 22, 'star-diamond', 122, - 'star-diamond-open', 222, 'star-diamond-dot', 322, - 'star-diamond-open-dot', 23, 'diamond-tall', 123, - 'diamond-tall-open', 223, 'diamond-tall-dot', 323, - 'diamond-tall-open-dot', 24, 'diamond-wide', 124, - 'diamond-wide-open', 224, 'diamond-wide-dot', 324, - 'diamond-wide-open-dot', 25, 'hourglass', 125, - 'hourglass-open', 26, 'bowtie', 126, 'bowtie-open', 27, - 'circle-cross', 127, 'circle-cross-open', 28, 'circle-x', - 128, 'circle-x-open', 29, 'square-cross', 129, - 'square-cross-open', 30, 'square-x', 130, 'square-x-open', - 31, 'diamond-cross', 131, 'diamond-cross-open', 32, - 'diamond-x', 132, 'diamond-x-open', 33, 'cross-thin', 133, - 'cross-thin-open', 34, 'x-thin', 134, 'x-thin-open', 35, - 'asterisk', 135, 'asterisk-open', 36, 'hash', 136, - 'hash-open', 236, 'hash-dot', 336, 'hash-open-dot', 37, - 'y-up', 137, 'y-up-open', 38, 'y-down', 138, 'y-down-open', - 39, 'y-left', 139, 'y-left-open', 40, 'y-right', 140, - 'y-right-open', 41, 'line-ew', 141, 'line-ew-open', 42, - 'line-ns', 142, 'line-ns-open', 43, 'line-ne', 143, - 'line-ne-open', 44, 'line-nw', 144, 'line-nw-open' - ] + "values", + [ + 0, + "circle", + 100, + "circle-open", + 200, + "circle-dot", + 300, + "circle-open-dot", + 1, + "square", + 101, + "square-open", + 201, + "square-dot", + 301, + "square-open-dot", + 2, + "diamond", + 102, + "diamond-open", + 202, + "diamond-dot", + 302, + "diamond-open-dot", + 3, + "cross", + 103, + "cross-open", + 203, + "cross-dot", + 303, + "cross-open-dot", + 4, + "x", + 104, + "x-open", + 204, + "x-dot", + 304, + "x-open-dot", + 5, + "triangle-up", + 105, + "triangle-up-open", + 205, + "triangle-up-dot", + 305, + "triangle-up-open-dot", + 6, + "triangle-down", + 106, + "triangle-down-open", + 206, + "triangle-down-dot", + 306, + "triangle-down-open-dot", + 7, + "triangle-left", + 107, + "triangle-left-open", + 207, + "triangle-left-dot", + 307, + "triangle-left-open-dot", + 8, + "triangle-right", + 108, + "triangle-right-open", + 208, + "triangle-right-dot", + 308, + "triangle-right-open-dot", + 9, + "triangle-ne", + 109, + "triangle-ne-open", + 209, + "triangle-ne-dot", + 309, + "triangle-ne-open-dot", + 10, + "triangle-se", + 110, + "triangle-se-open", + 210, + "triangle-se-dot", + 310, + "triangle-se-open-dot", + 11, + "triangle-sw", + 111, + "triangle-sw-open", + 211, + "triangle-sw-dot", + 311, + "triangle-sw-open-dot", + 12, + "triangle-nw", + 112, + "triangle-nw-open", + 212, + "triangle-nw-dot", + 312, + "triangle-nw-open-dot", + 13, + "pentagon", + 113, + "pentagon-open", + 213, + "pentagon-dot", + 313, + "pentagon-open-dot", + 14, + "hexagon", + 114, + "hexagon-open", + 214, + "hexagon-dot", + 314, + "hexagon-open-dot", + 15, + "hexagon2", + 115, + "hexagon2-open", + 215, + "hexagon2-dot", + 315, + "hexagon2-open-dot", + 16, + "octagon", + 116, + "octagon-open", + 216, + "octagon-dot", + 316, + "octagon-open-dot", + 17, + "star", + 117, + "star-open", + 217, + "star-dot", + 317, + "star-open-dot", + 18, + "hexagram", + 118, + "hexagram-open", + 218, + "hexagram-dot", + 318, + "hexagram-open-dot", + 19, + "star-triangle-up", + 119, + "star-triangle-up-open", + 219, + "star-triangle-up-dot", + 319, + "star-triangle-up-open-dot", + 20, + "star-triangle-down", + 120, + "star-triangle-down-open", + 220, + "star-triangle-down-dot", + 320, + "star-triangle-down-open-dot", + 21, + "star-square", + 121, + "star-square-open", + 221, + "star-square-dot", + 321, + "star-square-open-dot", + 22, + "star-diamond", + 122, + "star-diamond-open", + 222, + "star-diamond-dot", + 322, + "star-diamond-open-dot", + 23, + "diamond-tall", + 123, + "diamond-tall-open", + 223, + "diamond-tall-dot", + 323, + "diamond-tall-open-dot", + 24, + "diamond-wide", + 124, + "diamond-wide-open", + 224, + "diamond-wide-dot", + 324, + "diamond-wide-open-dot", + 25, + "hourglass", + 125, + "hourglass-open", + 26, + "bowtie", + 126, + "bowtie-open", + 27, + "circle-cross", + 127, + "circle-cross-open", + 28, + "circle-x", + 128, + "circle-x-open", + 29, + "square-cross", + 129, + "square-cross-open", + 30, + "square-x", + 130, + "square-x-open", + 31, + "diamond-cross", + 131, + "diamond-cross-open", + 32, + "diamond-x", + 132, + "diamond-x-open", + 33, + "cross-thin", + 133, + "cross-thin-open", + 34, + "x-thin", + 134, + "x-thin-open", + 35, + "asterisk", + 135, + "asterisk-open", + 36, + "hash", + 136, + "hash-open", + 236, + "hash-dot", + 336, + "hash-open-dot", + 37, + "y-up", + 137, + "y-up-open", + 38, + "y-down", + 138, + "y-down-open", + 39, + "y-left", + 139, + "y-left-open", + 40, + "y-right", + 140, + "y-right-open", + 41, + "line-ew", + 141, + "line-ew-open", + 42, + "line-ns", + 142, + "line-ns-open", + 43, + "line-ne", + 143, + "line-ne-open", + 44, + "line-nw", + 144, + "line-nw-open", + ], ), **kwargs ) @@ -84,18 +306,15 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='violin.marker', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="violin.marker", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -104,18 +323,14 @@ def __init__( class OutliercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outliercolor', - parent_name='violin.marker', - **kwargs + self, plotly_name="outliercolor", parent_name="violin.marker", **kwargs ): super(OutliercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -124,19 +339,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='violin.marker', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="violin.marker", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -145,16 +357,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='violin.marker', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="violin.marker", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets themarker.linecolor. It accepts either a specific color or an array of numbers that are @@ -171,7 +381,7 @@ def __init__( width Sets the width (in px) of the lines bounding the marker points. -""" +""", ), **kwargs ) @@ -181,16 +391,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='violin.marker', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="violin.marker", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/violin/marker/line/__init__.py b/packages/python/plotly/plotly/validators/violin/marker/line/__init__.py index ada41761562..83c2fe53cb7 100644 --- a/packages/python/plotly/plotly/validators/violin/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/marker/line/__init__.py @@ -1,21 +1,16 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='violin.marker.line', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="violin.marker.line", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,19 +19,15 @@ def __init__( class OutlierwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlierwidth', - parent_name='violin.marker.line', - **kwargs + self, plotly_name="outlierwidth", parent_name="violin.marker.line", **kwargs ): super(OutlierwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -45,18 +36,14 @@ def __init__( class OutliercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outliercolor', - parent_name='violin.marker.line', - **kwargs + self, plotly_name="outliercolor", parent_name="violin.marker.line", **kwargs ): super(OutliercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -65,16 +52,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='violin.marker.line', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="violin.marker.line", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/violin/meanline/__init__.py b/packages/python/plotly/plotly/validators/violin/meanline/__init__.py index 2e3e1e71edd..9bac8b2277f 100644 --- a/packages/python/plotly/plotly/validators/violin/meanline/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/meanline/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='violin.meanline', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="violin.meanline", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,15 +17,12 @@ def __init__( class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='visible', parent_name='violin.meanline', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="violin.meanline", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -39,14 +31,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='violin.meanline', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="violin.meanline", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/violin/selected/__init__.py b/packages/python/plotly/plotly/validators/violin/selected/__init__.py index 7da4d5e02d3..6887099dd98 100644 --- a/packages/python/plotly/plotly/validators/violin/selected/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/selected/__init__.py @@ -1,26 +1,22 @@ - - import _plotly_utils.basevalidators class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='violin.selected', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="violin.selected", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of selected points. opacity Sets the marker opacity of selected points. size Sets the marker size of selected points. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/violin/selected/marker/__init__.py b/packages/python/plotly/plotly/validators/violin/selected/marker/__init__.py index 7a4776581bb..931587546d5 100644 --- a/packages/python/plotly/plotly/validators/violin/selected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/selected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='violin.selected.marker', - **kwargs + self, plotly_name="size", parent_name="violin.selected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='violin.selected.marker', - **kwargs + self, plotly_name="opacity", parent_name="violin.selected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='violin.selected.marker', - **kwargs + self, plotly_name="color", parent_name="violin.selected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/violin/stream/__init__.py b/packages/python/plotly/plotly/validators/violin/stream/__init__.py index 040bfce00a3..07e07e01e6a 100644 --- a/packages/python/plotly/plotly/validators/violin/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='violin.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="violin.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='violin.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="violin.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/violin/unselected/__init__.py b/packages/python/plotly/plotly/validators/violin/unselected/__init__.py index 6487071b136..5a58b90ed4d 100644 --- a/packages/python/plotly/plotly/validators/violin/unselected/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/unselected/__init__.py @@ -1,19 +1,15 @@ - - import _plotly_utils.basevalidators class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='violin.unselected', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="violin.unselected", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of unselected points, applied only when a selection exists. @@ -23,7 +19,7 @@ def __init__( size Sets the marker size of unselected points, applied only when a selection exists. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/violin/unselected/marker/__init__.py b/packages/python/plotly/plotly/validators/violin/unselected/marker/__init__.py index d1414ef846b..08a04d8a0b9 100644 --- a/packages/python/plotly/plotly/validators/violin/unselected/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/violin/unselected/marker/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='violin.unselected.marker', - **kwargs + self, plotly_name="size", parent_name="violin.unselected.marker", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='opacity', - parent_name='violin.unselected.marker', - **kwargs + self, plotly_name="opacity", parent_name="violin.unselected.marker", **kwargs ): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='violin.unselected.marker', - **kwargs + self, plotly_name="color", parent_name="violin.unselected.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/__init__.py b/packages/python/plotly/plotly/validators/volume/__init__.py index aad404761b3..9dd7f65c018 100644 --- a/packages/python/plotly/plotly/validators/volume/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='zsrc', parent_name='volume', **kwargs): + def __init__(self, plotly_name="zsrc", parent_name="volume", **kwargs): super(ZsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,13 +16,12 @@ def __init__(self, plotly_name='zsrc', parent_name='volume', **kwargs): class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='z', parent_name='volume', **kwargs): + def __init__(self, plotly_name="z", parent_name="volume", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -34,13 +30,12 @@ def __init__(self, plotly_name='z', parent_name='volume', **kwargs): class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='volume', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="volume", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -49,13 +44,12 @@ def __init__(self, plotly_name='ysrc', parent_name='volume', **kwargs): class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='volume', **kwargs): + def __init__(self, plotly_name="y", parent_name="volume", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -64,13 +58,12 @@ def __init__(self, plotly_name='y', parent_name='volume', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='volume', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="volume", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -79,13 +72,12 @@ def __init__(self, plotly_name='xsrc', parent_name='volume', **kwargs): class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='volume', **kwargs): + def __init__(self, plotly_name="x", parent_name="volume", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -94,14 +86,13 @@ def __init__(self, plotly_name='x', parent_name='volume', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__(self, plotly_name='visible', parent_name='volume', **kwargs): + def __init__(self, plotly_name="visible", parent_name="volume", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -110,13 +101,12 @@ def __init__(self, plotly_name='visible', parent_name='volume', **kwargs): class ValuesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='valuesrc', parent_name='volume', **kwargs): + def __init__(self, plotly_name="valuesrc", parent_name="volume", **kwargs): super(ValuesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -125,13 +115,12 @@ def __init__(self, plotly_name='valuesrc', parent_name='volume', **kwargs): class ValueValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='value', parent_name='volume', **kwargs): + def __init__(self, plotly_name="value", parent_name="volume", **kwargs): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -140,15 +129,12 @@ def __init__(self, plotly_name='value', parent_name='volume', **kwargs): class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="volume", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -157,14 +143,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='volume', **kwargs): + def __init__(self, plotly_name="uid", parent_name="volume", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -173,13 +158,12 @@ def __init__(self, plotly_name='uid', parent_name='volume', **kwargs): class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='textsrc', parent_name='volume', **kwargs): + def __init__(self, plotly_name="textsrc", parent_name="volume", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -188,14 +172,13 @@ def __init__(self, plotly_name='textsrc', parent_name='volume', **kwargs): class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='volume', **kwargs): + def __init__(self, plotly_name="text", parent_name="volume", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -204,14 +187,14 @@ def __init__(self, plotly_name='text', parent_name='volume', **kwargs): class SurfaceValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='surface', parent_name='volume', **kwargs): + def __init__(self, plotly_name="surface", parent_name="volume", **kwargs): super(SurfaceValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Surface'), + data_class_str=kwargs.pop("data_class_str", "Surface"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ count Sets the number of iso-surfaces between minimum and maximum iso-values. By default this value @@ -238,7 +221,7 @@ def __init__(self, plotly_name='surface', parent_name='volume', **kwargs): show Hides/displays surfaces between minimum and maximum iso-values. -""" +""", ), **kwargs ) @@ -248,14 +231,14 @@ def __init__(self, plotly_name='surface', parent_name='volume', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='stream', parent_name='volume', **kwargs): + def __init__(self, plotly_name="stream", parent_name="volume", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -265,7 +248,7 @@ def __init__(self, plotly_name='stream', parent_name='volume', **kwargs): The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -275,16 +258,14 @@ def __init__(self, plotly_name='stream', parent_name='volume', **kwargs): class SpaceframeValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='spaceframe', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="spaceframe", parent_name="volume", **kwargs): super(SpaceframeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Spaceframe'), + data_class_str=kwargs.pop("data_class_str", "Spaceframe"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fill Sets the fill ratio of the `spaceframe` elements. The default fill value is 1 meaning @@ -296,7 +277,7 @@ def __init__( minimum and maximum iso-values. Often useful when either caps or surfaces are disabled or filled with values less than 1. -""" +""", ), **kwargs ) @@ -306,14 +287,14 @@ def __init__( class SlicesValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='slices', parent_name='volume', **kwargs): + def __init__(self, plotly_name="slices", parent_name="volume", **kwargs): super(SlicesValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Slices'), + data_class_str=kwargs.pop("data_class_str", "Slices"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x plotly.graph_objs.volume.slices.X instance or dict with compatible properties @@ -323,7 +304,7 @@ def __init__(self, plotly_name='slices', parent_name='volume', **kwargs): z plotly.graph_objs.volume.slices.Z instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -333,15 +314,12 @@ def __init__(self, plotly_name='slices', parent_name='volume', **kwargs): class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showscale', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="showscale", parent_name="volume", **kwargs): super(ShowscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -350,14 +328,13 @@ def __init__( class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='scene', parent_name='volume', **kwargs): + def __init__(self, plotly_name="scene", parent_name="volume", **kwargs): super(SceneValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'scene'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "scene"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -366,15 +343,12 @@ def __init__(self, plotly_name='scene', parent_name='volume', **kwargs): class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='reversescale', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="reversescale", parent_name="volume", **kwargs): super(ReversescaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -383,15 +357,12 @@ def __init__( class OpacityscaleValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='opacityscale', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="opacityscale", parent_name="volume", **kwargs): super(OpacityscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -400,15 +371,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='opacity', parent_name='volume', **kwargs): + def __init__(self, plotly_name="opacity", parent_name="volume", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -417,13 +387,12 @@ def __init__(self, plotly_name='opacity', parent_name='volume', **kwargs): class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='volume', **kwargs): + def __init__(self, plotly_name="name", parent_name="volume", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -432,13 +401,12 @@ def __init__(self, plotly_name='name', parent_name='volume', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='metasrc', parent_name='volume', **kwargs): + def __init__(self, plotly_name="metasrc", parent_name="volume", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -447,14 +415,13 @@ def __init__(self, plotly_name='metasrc', parent_name='volume', **kwargs): class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='volume', **kwargs): + def __init__(self, plotly_name="meta", parent_name="volume", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -463,16 +430,14 @@ def __init__(self, plotly_name='meta', parent_name='volume', **kwargs): class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='lightposition', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="lightposition", parent_name="volume", **kwargs): super(LightpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Lightposition'), + data_class_str=kwargs.pop("data_class_str", "Lightposition"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x Numeric vector, representing the X coordinate for each vertex. @@ -482,7 +447,7 @@ def __init__( z Numeric vector, representing the Z coordinate for each vertex. -""" +""", ), **kwargs ) @@ -492,14 +457,14 @@ def __init__( class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='lighting', parent_name='volume', **kwargs): + def __init__(self, plotly_name="lighting", parent_name="volume", **kwargs): super(LightingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Lighting'), + data_class_str=kwargs.pop("data_class_str", "Lighting"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ ambient Ambient light increases overall color visibility but can wash out the image. @@ -524,7 +489,7 @@ def __init__(self, plotly_name='lighting', parent_name='volume', **kwargs): vertexnormalsepsilon Epsilon for vertex normals calculation avoids math issues arising from degenerate geometry. -""" +""", ), **kwargs ) @@ -534,13 +499,12 @@ def __init__(self, plotly_name='lighting', parent_name='volume', **kwargs): class IsominValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='isomin', parent_name='volume', **kwargs): + def __init__(self, plotly_name="isomin", parent_name="volume", **kwargs): super(IsominValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -549,13 +513,12 @@ def __init__(self, plotly_name='isomin', parent_name='volume', **kwargs): class IsomaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='isomax', parent_name='volume', **kwargs): + def __init__(self, plotly_name="isomax", parent_name="volume", **kwargs): super(IsomaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -564,13 +527,12 @@ def __init__(self, plotly_name='isomax', parent_name='volume', **kwargs): class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='idssrc', parent_name='volume', **kwargs): + def __init__(self, plotly_name="idssrc", parent_name="volume", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -579,14 +541,13 @@ def __init__(self, plotly_name='idssrc', parent_name='volume', **kwargs): class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='volume', **kwargs): + def __init__(self, plotly_name="ids", parent_name="volume", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -595,15 +556,12 @@ def __init__(self, plotly_name='ids', parent_name='volume', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="volume", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -612,16 +570,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="volume", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -630,15 +585,12 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertemplatesrc', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="hovertemplatesrc", parent_name="volume", **kwargs): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -647,16 +599,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="volume", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -665,16 +614,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="volume", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -710,7 +657,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -720,15 +667,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="volume", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -737,18 +681,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="volume", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -757,15 +698,12 @@ def __init__( class FlatshadingValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='flatshading', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="flatshading", parent_name="volume", **kwargs): super(FlatshadingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -774,15 +712,12 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="volume", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -791,15 +726,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="volume", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -808,14 +740,14 @@ def __init__( class ContourValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='contour', parent_name='volume', **kwargs): + def __init__(self, plotly_name="contour", parent_name="volume", **kwargs): super(ContourValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Contour'), + data_class_str=kwargs.pop("data_class_str", "Contour"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the color of the contour lines. show @@ -823,7 +755,7 @@ def __init__(self, plotly_name='contour', parent_name='volume', **kwargs): on hover width Sets the width of the contour lines. -""" +""", ), **kwargs ) @@ -833,18 +765,13 @@ def __init__(self, plotly_name='contour', parent_name='volume', **kwargs): class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): - - def __init__( - self, plotly_name='colorscale', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="colorscale", parent_name="volume", **kwargs): super(ColorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop( - 'implied_edits', {'autocolorscale': False} - ), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -853,14 +780,14 @@ def __init__( class ColorBarValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='colorbar', parent_name='volume', **kwargs): + def __init__(self, plotly_name="colorbar", parent_name="volume", **kwargs): super(ColorBarValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'ColorBar'), + data_class_str=kwargs.pop("data_class_str", "ColorBar"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ bgcolor Sets the color of padded area. bordercolor @@ -1069,7 +996,7 @@ def __init__(self, plotly_name='colorbar', parent_name='volume', **kwargs): ypad Sets the amount of padding (in px) along the y direction. -""" +""", ), **kwargs ) @@ -1079,17 +1006,14 @@ def __init__(self, plotly_name='colorbar', parent_name='volume', **kwargs): class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__( - self, plotly_name='coloraxis', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="coloraxis", parent_name="volume", **kwargs): super(ColoraxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', None), - edit_type=kwargs.pop('edit_type', 'calc'), - regex=kwargs.pop('regex', '/^coloraxis([2-9]|[1-9][0-9]+)?$/'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", None), + edit_type=kwargs.pop("edit_type", "calc"), + regex=kwargs.pop("regex", "/^coloraxis([2-9]|[1-9][0-9]+)?$/"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1098,14 +1022,13 @@ def __init__( class CminValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmin', parent_name='volume', **kwargs): + def __init__(self, plotly_name="cmin", parent_name="volume", **kwargs): super(CminValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1114,14 +1037,13 @@ def __init__(self, plotly_name='cmin', parent_name='volume', **kwargs): class CmidValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmid', parent_name='volume', **kwargs): + def __init__(self, plotly_name="cmid", parent_name="volume", **kwargs): super(CmidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1130,14 +1052,13 @@ def __init__(self, plotly_name='cmid', parent_name='volume', **kwargs): class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='cmax', parent_name='volume', **kwargs): + def __init__(self, plotly_name="cmax", parent_name="volume", **kwargs): super(CmaxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'cauto': False}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"cauto": False}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1146,14 +1067,13 @@ def __init__(self, plotly_name='cmax', parent_name='volume', **kwargs): class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__(self, plotly_name='cauto', parent_name='volume', **kwargs): + def __init__(self, plotly_name="cauto", parent_name="volume", **kwargs): super(CautoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1162,14 +1082,14 @@ def __init__(self, plotly_name='cauto', parent_name='volume', **kwargs): class CapsValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='caps', parent_name='volume', **kwargs): + def __init__(self, plotly_name="caps", parent_name="volume", **kwargs): super(CapsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Caps'), + data_class_str=kwargs.pop("data_class_str", "Caps"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ x plotly.graph_objs.volume.caps.X instance or dict with compatible properties @@ -1179,7 +1099,7 @@ def __init__(self, plotly_name='caps', parent_name='volume', **kwargs): z plotly.graph_objs.volume.caps.Z instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -1189,15 +1109,12 @@ def __init__(self, plotly_name='caps', parent_name='volume', **kwargs): class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='autocolorscale', parent_name='volume', **kwargs - ): + def __init__(self, plotly_name="autocolorscale", parent_name="volume", **kwargs): super(AutocolorscaleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/caps/__init__.py b/packages/python/plotly/plotly/validators/volume/caps/__init__.py index a1ef0097fa6..24283571cfa 100644 --- a/packages/python/plotly/plotly/validators/volume/caps/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/caps/__init__.py @@ -1,17 +1,15 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='z', parent_name='volume.caps', **kwargs): + def __init__(self, plotly_name="z", parent_name="volume.caps", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Z'), + data_class_str=kwargs.pop("data_class_str", "Z"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fill Sets the fill ratio of the `caps`. The default fill value of the `caps` is 1 meaning that they @@ -25,7 +23,7 @@ def __init__(self, plotly_name='z', parent_name='volume.caps', **kwargs): other hand Applying a `fill` ratio less than one would allow the creation of openings parallel to the edges. -""" +""", ), **kwargs ) @@ -35,14 +33,14 @@ def __init__(self, plotly_name='z', parent_name='volume.caps', **kwargs): class YValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='y', parent_name='volume.caps', **kwargs): + def __init__(self, plotly_name="y", parent_name="volume.caps", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Y'), + data_class_str=kwargs.pop("data_class_str", "Y"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fill Sets the fill ratio of the `caps`. The default fill value of the `caps` is 1 meaning that they @@ -56,7 +54,7 @@ def __init__(self, plotly_name='y', parent_name='volume.caps', **kwargs): other hand Applying a `fill` ratio less than one would allow the creation of openings parallel to the edges. -""" +""", ), **kwargs ) @@ -66,14 +64,14 @@ def __init__(self, plotly_name='y', parent_name='volume.caps', **kwargs): class XValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='x', parent_name='volume.caps', **kwargs): + def __init__(self, plotly_name="x", parent_name="volume.caps", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'X'), + data_class_str=kwargs.pop("data_class_str", "X"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fill Sets the fill ratio of the `caps`. The default fill value of the `caps` is 1 meaning that they @@ -87,7 +85,7 @@ def __init__(self, plotly_name='x', parent_name='volume.caps', **kwargs): other hand Applying a `fill` ratio less than one would allow the creation of openings parallel to the edges. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/caps/x/__init__.py b/packages/python/plotly/plotly/validators/volume/caps/x/__init__.py index 6e03cba00ba..fb3100dc725 100644 --- a/packages/python/plotly/plotly/validators/volume/caps/x/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/caps/x/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='volume.caps.x', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="volume.caps.x", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +16,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fill', parent_name='volume.caps.x', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="volume.caps.x", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/caps/y/__init__.py b/packages/python/plotly/plotly/validators/volume/caps/y/__init__.py index c4d3f0d52e6..c172653cc30 100644 --- a/packages/python/plotly/plotly/validators/volume/caps/y/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/caps/y/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='volume.caps.y', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="volume.caps.y", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +16,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fill', parent_name='volume.caps.y', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="volume.caps.y", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/caps/z/__init__.py b/packages/python/plotly/plotly/validators/volume/caps/z/__init__.py index 39327b89ff1..8167df82772 100644 --- a/packages/python/plotly/plotly/validators/volume/caps/z/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/caps/z/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='volume.caps.z', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="volume.caps.z", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +16,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fill', parent_name='volume.caps.z', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="volume.caps.z", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/__init__.py b/packages/python/plotly/plotly/validators/volume/colorbar/__init__.py index f4278f7d0c8..029d25371e4 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/__init__.py @@ -1,19 +1,14 @@ - - import _plotly_utils.basevalidators class YpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ypad', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="ypad", parent_name="volume.colorbar", **kwargs): super(YpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -22,16 +17,13 @@ def __init__( class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='yanchor', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="yanchor", parent_name="volume.colorbar", **kwargs): super(YanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['top', 'middle', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs ) @@ -40,17 +32,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="volume.colorbar", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -59,16 +48,13 @@ def __init__( class XpadValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='xpad', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="xpad", parent_name="volume.colorbar", **kwargs): super(XpadValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -77,16 +63,13 @@ def __init__( class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='xanchor', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="xanchor", parent_name="volume.colorbar", **kwargs): super(XanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'center', 'right']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "center", "right"]), **kwargs ) @@ -95,17 +78,14 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="volume.colorbar", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 3), - min=kwargs.pop('min', -2), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 3), + min=kwargs.pop("min", -2), + role=kwargs.pop("role", "style"), **kwargs ) @@ -114,16 +94,14 @@ def __init__( class TitleValidator(_plotly_utils.basevalidators.TitleValidator): - - def __init__( - self, plotly_name='title', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="title", parent_name="volume.colorbar", **kwargs): super(TitleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Title'), + data_class_str=kwargs.pop("data_class_str", "Title"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ font Sets this color bar's title font. Note that the title's font used to be set by the now @@ -139,7 +117,7 @@ def __init__( title's contents used to be defined as the `title` attribute itself. This behavior has been deprecated. -""" +""", ), **kwargs ) @@ -149,16 +127,15 @@ def __init__( class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='tickwidth', parent_name='volume.colorbar', **kwargs + self, plotly_name="tickwidth", parent_name="volume.colorbar", **kwargs ): super(TickwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -167,18 +144,14 @@ def __init__( class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='tickvalssrc', - parent_name='volume.colorbar', - **kwargs + self, plotly_name="tickvalssrc", parent_name="volume.colorbar", **kwargs ): super(TickvalssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -187,15 +160,12 @@ def __init__( class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='tickvals', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="tickvals", parent_name="volume.colorbar", **kwargs): super(TickvalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -204,18 +174,14 @@ def __init__( class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='ticktextsrc', - parent_name='volume.colorbar', - **kwargs + self, plotly_name="ticktextsrc", parent_name="volume.colorbar", **kwargs ): super(TicktextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -224,15 +190,12 @@ def __init__( class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='ticktext', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="ticktext", parent_name="volume.colorbar", **kwargs): super(TicktextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -241,18 +204,14 @@ def __init__( class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='ticksuffix', - parent_name='volume.colorbar', - **kwargs + self, plotly_name="ticksuffix", parent_name="volume.colorbar", **kwargs ): super(TicksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -261,16 +220,13 @@ def __init__( class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='ticks', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="ticks", parent_name="volume.colorbar", **kwargs): super(TicksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['outside', 'inside', '']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs ) @@ -279,18 +235,14 @@ def __init__( class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickprefix', - parent_name='volume.colorbar', - **kwargs + self, plotly_name="tickprefix", parent_name="volume.colorbar", **kwargs ): super(TickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -299,17 +251,14 @@ def __init__( class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='tickmode', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="tickmode", parent_name="volume.colorbar", **kwargs): super(TickmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {}), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['auto', 'linear', 'array']), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {}), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["auto", "linear", "array"]), **kwargs ) @@ -318,16 +267,13 @@ def __init__( class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ticklen', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="ticklen", parent_name="volume.colorbar", **kwargs): super(TicklenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -336,19 +282,21 @@ def __init__( class TickformatstopValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( self, - plotly_name='tickformatstopdefaults', - parent_name='volume.colorbar', + plotly_name="tickformatstopdefaults", + parent_name="volume.colorbar", **kwargs ): super(TickformatstopValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), - data_docs=kwargs.pop('data_docs', """ -"""), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), + data_docs=kwargs.pop( + "data_docs", + """ +""", + ), **kwargs ) @@ -356,22 +304,17 @@ def __init__( import _plotly_utils.basevalidators -class TickformatstopsValidator( - _plotly_utils.basevalidators.CompoundArrayValidator -): - +class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): def __init__( - self, - plotly_name='tickformatstops', - parent_name='volume.colorbar', - **kwargs + self, plotly_name="tickformatstops", parent_name="volume.colorbar", **kwargs ): super(TickformatstopsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickformatstop'), + data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ dtickrange range [*min*, *max*], where "min", "max" - dtick values which describe some zoom level, it @@ -405,7 +348,7 @@ def __init__( value string - dtickformat for described zoom level, the same as "tickformat" -""" +""", ), **kwargs ) @@ -415,18 +358,14 @@ def __init__( class TickformatValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='tickformat', - parent_name='volume.colorbar', - **kwargs + self, plotly_name="tickformat", parent_name="volume.colorbar", **kwargs ): super(TickformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -435,16 +374,14 @@ def __init__( class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='tickfont', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="tickfont", parent_name="volume.colorbar", **kwargs): super(TickfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Tickfont'), + data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -465,7 +402,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) @@ -475,15 +412,14 @@ def __init__( class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='tickcolor', parent_name='volume.colorbar', **kwargs + self, plotly_name="tickcolor", parent_name="volume.colorbar", **kwargs ): super(TickcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -492,15 +428,14 @@ def __init__( class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): - def __init__( - self, plotly_name='tickangle', parent_name='volume.colorbar', **kwargs + self, plotly_name="tickangle", parent_name="volume.colorbar", **kwargs ): super(TickangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -509,16 +444,13 @@ def __init__( class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='tick0', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="tick0", parent_name="volume.colorbar", **kwargs): super(Tick0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -527,19 +459,15 @@ def __init__( class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='thicknessmode', - parent_name='volume.colorbar', - **kwargs + self, plotly_name="thicknessmode", parent_name="volume.colorbar", **kwargs ): super(ThicknessmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -548,16 +476,15 @@ def __init__( class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='thickness', parent_name='volume.colorbar', **kwargs + self, plotly_name="thickness", parent_name="volume.colorbar", **kwargs ): super(ThicknessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -565,22 +492,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowticksuffixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showticksuffix', - parent_name='volume.colorbar', - **kwargs + self, plotly_name="showticksuffix", parent_name="volume.colorbar", **kwargs ): super(ShowticksuffixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -588,22 +509,16 @@ def __init__( import _plotly_utils.basevalidators -class ShowtickprefixValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='showtickprefix', - parent_name='volume.colorbar', - **kwargs + self, plotly_name="showtickprefix", parent_name="volume.colorbar", **kwargs ): super(ShowtickprefixValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -612,18 +527,14 @@ def __init__( class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='showticklabels', - parent_name='volume.colorbar', - **kwargs + self, plotly_name="showticklabels", parent_name="volume.colorbar", **kwargs ): super(ShowticklabelsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -632,19 +543,15 @@ def __init__( class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='showexponent', - parent_name='volume.colorbar', - **kwargs + self, plotly_name="showexponent", parent_name="volume.colorbar", **kwargs ): super(ShowexponentValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['all', 'first', 'last', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs ) @@ -652,21 +559,15 @@ def __init__( import _plotly_utils.basevalidators -class SeparatethousandsValidator( - _plotly_utils.basevalidators.BooleanValidator -): - +class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): def __init__( - self, - plotly_name='separatethousands', - parent_name='volume.colorbar', - **kwargs + self, plotly_name="separatethousands", parent_name="volume.colorbar", **kwargs ): super(SeparatethousandsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -675,19 +576,15 @@ def __init__( class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='outlinewidth', - parent_name='volume.colorbar', - **kwargs + self, plotly_name="outlinewidth", parent_name="volume.colorbar", **kwargs ): super(OutlinewidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -696,18 +593,14 @@ def __init__( class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='outlinecolor', - parent_name='volume.colorbar', - **kwargs + self, plotly_name="outlinecolor", parent_name="volume.colorbar", **kwargs ): super(OutlinecolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -716,16 +609,13 @@ def __init__( class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='nticks', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="nticks", parent_name="volume.colorbar", **kwargs): super(NticksValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -734,16 +624,13 @@ def __init__( class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='lenmode', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="lenmode", parent_name="volume.colorbar", **kwargs): super(LenmodeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['fraction', 'pixels']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs ) @@ -752,16 +639,13 @@ def __init__( class LenValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='len', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="len", parent_name="volume.colorbar", **kwargs): super(LenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -769,24 +653,16 @@ def __init__( import _plotly_utils.basevalidators -class ExponentformatValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='exponentformat', - parent_name='volume.colorbar', - **kwargs + self, plotly_name="exponentformat", parent_name="volume.colorbar", **kwargs ): super(ExponentformatValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop( - 'values', ['none', 'e', 'E', 'power', 'SI', 'B'] - ), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs ) @@ -795,16 +671,13 @@ def __init__( class DtickValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='dtick', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="dtick", parent_name="volume.colorbar", **kwargs): super(DtickValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - implied_edits=kwargs.pop('implied_edits', {'tickmode': 'linear'}), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), + role=kwargs.pop("role", "style"), **kwargs ) @@ -813,19 +686,15 @@ def __init__( class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='borderwidth', - parent_name='volume.colorbar', - **kwargs + self, plotly_name="borderwidth", parent_name="volume.colorbar", **kwargs ): super(BorderwidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -834,18 +703,14 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='volume.colorbar', - **kwargs + self, plotly_name="bordercolor", parent_name="volume.colorbar", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -854,14 +719,11 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='bgcolor', parent_name='volume.colorbar', **kwargs - ): + def __init__(self, plotly_name="bgcolor", parent_name="volume.colorbar", **kwargs): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/__init__.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/__init__.py index 823350a92c0..33e93d9761c 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickfont/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='volume.colorbar.tickfont', - **kwargs + self, plotly_name="size", parent_name="volume.colorbar.tickfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='volume.colorbar.tickfont', - **kwargs + self, plotly_name="family", parent_name="volume.colorbar.tickfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='volume.colorbar.tickfont', - **kwargs + self, plotly_name="color", parent_name="volume.colorbar.tickfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/__init__.py b/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/__init__.py index 7c14129c940..b149cd24034 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/tickformatstop/__init__.py @@ -1,21 +1,18 @@ - - import _plotly_utils.basevalidators class ValueValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='value', - parent_name='volume.colorbar.tickformatstop', + plotly_name="value", + parent_name="volume.colorbar.tickformatstop", **kwargs ): super(ValueValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -24,18 +21,17 @@ def __init__( class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( self, - plotly_name='templateitemname', - parent_name='volume.colorbar.tickformatstop', + plotly_name="templateitemname", + parent_name="volume.colorbar.tickformatstop", **kwargs ): super(TemplateitemnameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -44,18 +40,14 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='name', - parent_name='volume.colorbar.tickformatstop', - **kwargs + self, plotly_name="name", parent_name="volume.colorbar.tickformatstop", **kwargs ): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -64,18 +56,17 @@ def __init__( class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( self, - plotly_name='enabled', - parent_name='volume.colorbar.tickformatstop', + plotly_name="enabled", + parent_name="volume.colorbar.tickformatstop", **kwargs ): super(EnabledValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -84,28 +75,23 @@ def __init__( class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): - def __init__( self, - plotly_name='dtickrange', - parent_name='volume.colorbar.tickformatstop', + plotly_name="dtickrange", + parent_name="volume.colorbar.tickformatstop", **kwargs ): super(DtickrangeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), + edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( - 'items', [ - { - 'valType': 'any', - 'editType': 'calc' - }, { - 'valType': 'any', - 'editType': 'calc' - } - ] + "items", + [ + {"valType": "any", "editType": "calc"}, + {"valType": "any", "editType": "calc"}, + ], ), - role=kwargs.pop('role', 'info'), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/title/__init__.py b/packages/python/plotly/plotly/validators/volume/colorbar/title/__init__.py index 1d39d8eb6ca..dc1e3bf6eed 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/title/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/title/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class TextValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='text', - parent_name='volume.colorbar.title', - **kwargs + self, plotly_name="text", parent_name="volume.colorbar.title", **kwargs ): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,19 +18,15 @@ def __init__( class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='side', - parent_name='volume.colorbar.title', - **kwargs + self, plotly_name="side", parent_name="volume.colorbar.title", **kwargs ): super(SideValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['right', 'top', 'bottom']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs ) @@ -45,19 +35,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='font', - parent_name='volume.colorbar.title', - **kwargs + self, plotly_name="font", parent_name="volume.colorbar.title", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color family @@ -78,7 +65,7 @@ def __init__( Narrow", "Raleway", "Times New Roman". size -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/__init__.py b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/__init__.py index d1a66348cd2..ef0c61ecac7 100644 --- a/packages/python/plotly/plotly/validators/volume/colorbar/title/font/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/colorbar/title/font/__init__.py @@ -1,22 +1,16 @@ - - import _plotly_utils.basevalidators class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='volume.colorbar.title.font', - **kwargs + self, plotly_name="size", parent_name="volume.colorbar.title.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -25,20 +19,16 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='volume.colorbar.title.font', - **kwargs + self, plotly_name="family", parent_name="volume.colorbar.title.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -47,17 +37,13 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='volume.colorbar.title.font', - **kwargs + self, plotly_name="color", parent_name="volume.colorbar.title.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/contour/__init__.py b/packages/python/plotly/plotly/validators/volume/contour/__init__.py index 9dcabbfec0a..b71dcff45ac 100644 --- a/packages/python/plotly/plotly/validators/volume/contour/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/contour/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='width', parent_name='volume.contour', **kwargs - ): + def __init__(self, plotly_name="width", parent_name="volume.contour", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 16), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 16), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,15 +18,12 @@ def __init__( class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='volume.contour', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="volume.contour", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -40,14 +32,11 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='volume.contour', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="volume.contour", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/__init__.py index 1f85e92121b..61a62eee324 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='volume.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="volume.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='volume.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="volume.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,14 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='font', parent_name='volume.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="font", parent_name="volume.hoverlabel", **kwargs): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +73,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +83,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='volume.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="volume.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +99,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='volume.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="volume.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +116,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='volume.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="volume.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,16 +132,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, plotly_name='bgcolor', parent_name='volume.hoverlabel', **kwargs + self, plotly_name="bgcolor", parent_name="volume.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -174,18 +149,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='volume.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="volume.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -194,16 +165,13 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='align', parent_name='volume.hoverlabel', **kwargs - ): + def __init__(self, plotly_name="align", parent_name="volume.hoverlabel", **kwargs): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/__init__.py index 5ec0bf891dc..0c467d402e6 100644 --- a/packages/python/plotly/plotly/validators/volume/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='volume.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="volume.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='volume.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="volume.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='volume.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="volume.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='volume.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="volume.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='volume.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="volume.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='volume.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="volume.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/lighting/__init__.py b/packages/python/plotly/plotly/validators/volume/lighting/__init__.py index f46d33478c4..84c3cc29867 100644 --- a/packages/python/plotly/plotly/validators/volume/lighting/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/lighting/__init__.py @@ -1,25 +1,20 @@ - - import _plotly_utils.basevalidators -class VertexnormalsepsilonValidator( - _plotly_utils.basevalidators.NumberValidator -): - +class VertexnormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( self, - plotly_name='vertexnormalsepsilon', - parent_name='volume.lighting', + plotly_name="vertexnormalsepsilon", + parent_name="volume.lighting", **kwargs ): super(VertexnormalsepsilonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -28,17 +23,14 @@ def __init__( class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='specular', parent_name='volume.lighting', **kwargs - ): + def __init__(self, plotly_name="specular", parent_name="volume.lighting", **kwargs): super(SpecularValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 2), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 2), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -47,17 +39,16 @@ def __init__( class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, plotly_name='roughness', parent_name='volume.lighting', **kwargs + self, plotly_name="roughness", parent_name="volume.lighting", **kwargs ): super(RoughnessValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -66,17 +57,14 @@ def __init__( class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fresnel', parent_name='volume.lighting', **kwargs - ): + def __init__(self, plotly_name="fresnel", parent_name="volume.lighting", **kwargs): super(FresnelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 5), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 5), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -84,23 +72,17 @@ def __init__( import _plotly_utils.basevalidators -class FacenormalsepsilonValidator( - _plotly_utils.basevalidators.NumberValidator -): - +class FacenormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): def __init__( - self, - plotly_name='facenormalsepsilon', - parent_name='volume.lighting', - **kwargs + self, plotly_name="facenormalsepsilon", parent_name="volume.lighting", **kwargs ): super(FacenormalsepsilonValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -109,17 +91,14 @@ def __init__( class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='diffuse', parent_name='volume.lighting', **kwargs - ): + def __init__(self, plotly_name="diffuse", parent_name="volume.lighting", **kwargs): super(DiffuseValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -128,16 +107,13 @@ def __init__( class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='ambient', parent_name='volume.lighting', **kwargs - ): + def __init__(self, plotly_name="ambient", parent_name="volume.lighting", **kwargs): super(AmbientValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/lightposition/__init__.py b/packages/python/plotly/plotly/validators/volume/lightposition/__init__.py index 554c1b3a422..d9aec15a210 100644 --- a/packages/python/plotly/plotly/validators/volume/lightposition/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/lightposition/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='z', parent_name='volume.lightposition', **kwargs - ): + def __init__(self, plotly_name="z", parent_name="volume.lightposition", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) @@ -23,17 +18,14 @@ def __init__( class YValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='y', parent_name='volume.lightposition', **kwargs - ): + def __init__(self, plotly_name="y", parent_name="volume.lightposition", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) @@ -42,16 +34,13 @@ def __init__( class XValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='x', parent_name='volume.lightposition', **kwargs - ): + def __init__(self, plotly_name="x", parent_name="volume.lightposition", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 100000), - min=kwargs.pop('min', -100000), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 100000), + min=kwargs.pop("min", -100000), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/slices/__init__.py b/packages/python/plotly/plotly/validators/volume/slices/__init__.py index 7837d31f081..a31274d8368 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/slices/__init__.py @@ -1,17 +1,15 @@ - - import _plotly_utils.basevalidators class ZValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='z', parent_name='volume.slices', **kwargs): + def __init__(self, plotly_name="z", parent_name="volume.slices", **kwargs): super(ZValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Z'), + data_class_str=kwargs.pop("data_class_str", "Z"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fill Sets the fill ratio of the `slices`. The default fill value of the `slices` is 1 meaning @@ -30,7 +28,7 @@ def __init__(self, plotly_name='z', parent_name='volume.slices', **kwargs): show Determines whether or not slice planes about the z dimension are drawn. -""" +""", ), **kwargs ) @@ -40,14 +38,14 @@ def __init__(self, plotly_name='z', parent_name='volume.slices', **kwargs): class YValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='y', parent_name='volume.slices', **kwargs): + def __init__(self, plotly_name="y", parent_name="volume.slices", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Y'), + data_class_str=kwargs.pop("data_class_str", "Y"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fill Sets the fill ratio of the `slices`. The default fill value of the `slices` is 1 meaning @@ -66,7 +64,7 @@ def __init__(self, plotly_name='y', parent_name='volume.slices', **kwargs): show Determines whether or not slice planes about the y dimension are drawn. -""" +""", ), **kwargs ) @@ -76,14 +74,14 @@ def __init__(self, plotly_name='y', parent_name='volume.slices', **kwargs): class XValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__(self, plotly_name='x', parent_name='volume.slices', **kwargs): + def __init__(self, plotly_name="x", parent_name="volume.slices", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'X'), + data_class_str=kwargs.pop("data_class_str", "X"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ fill Sets the fill ratio of the `slices`. The default fill value of the `slices` is 1 meaning @@ -102,7 +100,7 @@ def __init__(self, plotly_name='x', parent_name='volume.slices', **kwargs): show Determines whether or not slice planes about the x dimension are drawn. -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/slices/x/__init__.py b/packages/python/plotly/plotly/validators/volume/slices/x/__init__.py index 73a68dc4383..fca611fe232 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/x/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/slices/x/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='volume.slices.x', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="volume.slices.x", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,18 +16,14 @@ def __init__( class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='locationssrc', - parent_name='volume.slices.x', - **kwargs + self, plotly_name="locationssrc", parent_name="volume.slices.x", **kwargs ): super(LocationssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -41,15 +32,14 @@ def __init__( class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name='locations', parent_name='volume.slices.x', **kwargs + self, plotly_name="locations", parent_name="volume.slices.x", **kwargs ): super(LocationsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -58,16 +48,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fill', parent_name='volume.slices.x', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="volume.slices.x", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/slices/y/__init__.py b/packages/python/plotly/plotly/validators/volume/slices/y/__init__.py index 02f629eb76b..26ebf4f5c52 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/y/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/slices/y/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='volume.slices.y', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="volume.slices.y", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,18 +16,14 @@ def __init__( class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='locationssrc', - parent_name='volume.slices.y', - **kwargs + self, plotly_name="locationssrc", parent_name="volume.slices.y", **kwargs ): super(LocationssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -41,15 +32,14 @@ def __init__( class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name='locations', parent_name='volume.slices.y', **kwargs + self, plotly_name="locations", parent_name="volume.slices.y", **kwargs ): super(LocationsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -58,16 +48,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fill', parent_name='volume.slices.y', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="volume.slices.y", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/slices/z/__init__.py b/packages/python/plotly/plotly/validators/volume/slices/z/__init__.py index e94e733b27a..b1901ae59a3 100644 --- a/packages/python/plotly/plotly/validators/volume/slices/z/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/slices/z/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='volume.slices.z', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="volume.slices.z", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,18 +16,14 @@ def __init__( class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='locationssrc', - parent_name='volume.slices.z', - **kwargs + self, plotly_name="locationssrc", parent_name="volume.slices.z", **kwargs ): super(LocationssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -41,15 +32,14 @@ def __init__( class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): - def __init__( - self, plotly_name='locations', parent_name='volume.slices.z', **kwargs + self, plotly_name="locations", parent_name="volume.slices.z", **kwargs ): super(LocationsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -58,16 +48,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fill', parent_name='volume.slices.z', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="volume.slices.z", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/spaceframe/__init__.py b/packages/python/plotly/plotly/validators/volume/spaceframe/__init__.py index e6dbe8a73d7..a2667c0b35a 100644 --- a/packages/python/plotly/plotly/validators/volume/spaceframe/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/spaceframe/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='volume.spaceframe', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="volume.spaceframe", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,16 +16,13 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fill', parent_name='volume.spaceframe', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="volume.spaceframe", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/stream/__init__.py b/packages/python/plotly/plotly/validators/volume/stream/__init__.py index f3db4bb27de..f1e0185b61f 100644 --- a/packages/python/plotly/plotly/validators/volume/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='volume.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="volume.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,16 +18,13 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='maxpoints', parent_name='volume.stream', **kwargs - ): + def __init__(self, plotly_name="maxpoints", parent_name="volume.stream", **kwargs): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/volume/surface/__init__.py b/packages/python/plotly/plotly/validators/volume/surface/__init__.py index 48e1e718976..f4cb08717b0 100644 --- a/packages/python/plotly/plotly/validators/volume/surface/__init__.py +++ b/packages/python/plotly/plotly/validators/volume/surface/__init__.py @@ -1,18 +1,13 @@ - - import _plotly_utils.basevalidators class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='show', parent_name='volume.surface', **kwargs - ): + def __init__(self, plotly_name="show", parent_name="volume.surface", **kwargs): super(ShowValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -21,17 +16,14 @@ def __init__( class PatternValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='pattern', parent_name='volume.surface', **kwargs - ): + def __init__(self, plotly_name="pattern", parent_name="volume.surface", **kwargs): super(PatternValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - extras=kwargs.pop('extras', ['all', 'odd', 'even']), - flags=kwargs.pop('flags', ['A', 'B', 'C', 'D', 'E']), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + extras=kwargs.pop("extras", ["all", "odd", "even"]), + flags=kwargs.pop("flags", ["A", "B", "C", "D", "E"]), + role=kwargs.pop("role", "style"), **kwargs ) @@ -40,17 +32,14 @@ def __init__( class FillValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='fill', parent_name='volume.surface', **kwargs - ): + def __init__(self, plotly_name="fill", parent_name="volume.surface", **kwargs): super(FillValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -59,15 +48,12 @@ def __init__( class CountValidator(_plotly_utils.basevalidators.IntegerValidator): - - def __init__( - self, plotly_name='count', parent_name='volume.surface', **kwargs - ): + def __init__(self, plotly_name="count", parent_name="volume.surface", **kwargs): super(CountValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/__init__.py b/packages/python/plotly/plotly/validators/waterfall/__init__.py index 2852958ca06..7a7ccf94c88 100644 --- a/packages/python/plotly/plotly/validators/waterfall/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/__init__.py @@ -1,16 +1,13 @@ - - import _plotly_utils.basevalidators class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='ysrc', parent_name='waterfall', **kwargs): + def __init__(self, plotly_name="ysrc", parent_name="waterfall", **kwargs): super(YsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -19,14 +16,13 @@ def __init__(self, plotly_name='ysrc', parent_name='waterfall', **kwargs): class YAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='yaxis', parent_name='waterfall', **kwargs): + def __init__(self, plotly_name="yaxis", parent_name="waterfall", **kwargs): super(YAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'y'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "y"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -35,14 +31,13 @@ def __init__(self, plotly_name='yaxis', parent_name='waterfall', **kwargs): class Y0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='y0', parent_name='waterfall', **kwargs): + def __init__(self, plotly_name="y0", parent_name="waterfall", **kwargs): super(Y0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -51,14 +46,13 @@ def __init__(self, plotly_name='y0', parent_name='waterfall', **kwargs): class YValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='y', parent_name='waterfall', **kwargs): + def __init__(self, plotly_name="y", parent_name="waterfall", **kwargs): super(YValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -67,13 +61,12 @@ def __init__(self, plotly_name='y', parent_name='waterfall', **kwargs): class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__(self, plotly_name='xsrc', parent_name='waterfall', **kwargs): + def __init__(self, plotly_name="xsrc", parent_name="waterfall", **kwargs): super(XsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -82,14 +75,13 @@ def __init__(self, plotly_name='xsrc', parent_name='waterfall', **kwargs): class XAxisValidator(_plotly_utils.basevalidators.SubplotidValidator): - - def __init__(self, plotly_name='xaxis', parent_name='waterfall', **kwargs): + def __init__(self, plotly_name="xaxis", parent_name="waterfall", **kwargs): super(XAxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - dflt=kwargs.pop('dflt', 'x'), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + dflt=kwargs.pop("dflt", "x"), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -98,14 +90,13 @@ def __init__(self, plotly_name='xaxis', parent_name='waterfall', **kwargs): class X0Validator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='x0', parent_name='waterfall', **kwargs): + def __init__(self, plotly_name="x0", parent_name="waterfall", **kwargs): super(X0Validator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -114,14 +105,13 @@ def __init__(self, plotly_name='x0', parent_name='waterfall', **kwargs): class XValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='x', parent_name='waterfall', **kwargs): + def __init__(self, plotly_name="x", parent_name="waterfall", **kwargs): super(XValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -130,15 +120,12 @@ def __init__(self, plotly_name='x', parent_name='waterfall', **kwargs): class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='widthsrc', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="widthsrc", parent_name="waterfall", **kwargs): super(WidthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -147,15 +134,14 @@ def __init__( class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='width', parent_name='waterfall', **kwargs): + def __init__(self, plotly_name="width", parent_name="waterfall", **kwargs): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) @@ -164,16 +150,13 @@ def __init__(self, plotly_name='width', parent_name='waterfall', **kwargs): class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='visible', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="visible", parent_name="waterfall", **kwargs): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', [True, False, 'legendonly']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs ) @@ -182,15 +165,12 @@ def __init__( class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='uirevision', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="uirevision", parent_name="waterfall", **kwargs): super(UirevisionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -199,14 +179,13 @@ def __init__( class UidValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='uid', parent_name='waterfall', **kwargs): + def __init__(self, plotly_name="uid", parent_name="waterfall", **kwargs): super(UidValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -215,20 +194,18 @@ def __init__(self, plotly_name='uid', parent_name='waterfall', **kwargs): class TotalsValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='totals', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="totals", parent_name="waterfall", **kwargs): super(TotalsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Totals'), + data_class_str=kwargs.pop("data_class_str", "Totals"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.waterfall.totals.Marker instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -238,15 +215,12 @@ def __init__( class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='textsrc', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="textsrc", parent_name="waterfall", **kwargs): super(TextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -255,15 +229,14 @@ def __init__( class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, plotly_name='textpositionsrc', parent_name='waterfall', **kwargs + self, plotly_name="textpositionsrc", parent_name="waterfall", **kwargs ): super(TextpositionsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -272,17 +245,14 @@ def __init__( class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='textposition', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="textposition", parent_name="waterfall", **kwargs): super(TextpositionValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['inside', 'outside', 'auto', 'none']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["inside", "outside", "auto", "none"]), **kwargs ) @@ -291,20 +261,15 @@ def __init__( class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='textinfo', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="textinfo", parent_name="waterfall", **kwargs): super(TextinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'plot'), - extras=kwargs.pop('extras', ['none']), - flags=kwargs.pop( - 'flags', ['label', 'text', 'initial', 'delta', 'final'] - ), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "plot"), + extras=kwargs.pop("extras", ["none"]), + flags=kwargs.pop("flags", ["label", "text", "initial", "delta", "final"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -313,16 +278,14 @@ def __init__( class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='textfont', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="textfont", parent_name="waterfall", **kwargs): super(TextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Textfont'), + data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -352,7 +315,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -362,15 +325,12 @@ def __init__( class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): - - def __init__( - self, plotly_name='textangle', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="textangle", parent_name="waterfall", **kwargs): super(TextangleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -379,14 +339,13 @@ def __init__( class TextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='text', parent_name='waterfall', **kwargs): + def __init__(self, plotly_name="text", parent_name="waterfall", **kwargs): super(TextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -395,16 +354,14 @@ def __init__(self, plotly_name='text', parent_name='waterfall', **kwargs): class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='stream', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="stream", parent_name="waterfall", **kwargs): super(StreamValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Stream'), + data_class_str=kwargs.pop("data_class_str", "Stream"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ maxpoints Sets the maximum number of points to keep on the plots from an incoming stream. If @@ -414,7 +371,7 @@ def __init__( The stream id number links a data trace on a plot with a stream. See https://plot.ly/settings for more details. -""" +""", ), **kwargs ) @@ -424,15 +381,12 @@ def __init__( class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='showlegend', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="showlegend", parent_name="waterfall", **kwargs): super(ShowlegendValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -441,15 +395,12 @@ def __init__( class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__( - self, plotly_name='selectedpoints', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="selectedpoints", parent_name="waterfall", **kwargs): super(SelectedpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -458,16 +409,16 @@ def __init__( class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='outsidetextfont', parent_name='waterfall', **kwargs + self, plotly_name="outsidetextfont", parent_name="waterfall", **kwargs ): super(OutsidetextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Outsidetextfont'), + data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -497,7 +448,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -507,16 +458,13 @@ def __init__( class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='orientation', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="orientation", parent_name="waterfall", **kwargs): super(OrientationValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc+clearAxisTypes'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['v', 'h']), + edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["v", "h"]), **kwargs ) @@ -525,17 +473,14 @@ def __init__( class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='opacity', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="opacity", parent_name="waterfall", **kwargs): super(OpacityValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - max=kwargs.pop('max', 1), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + max=kwargs.pop("max", 1), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -544,15 +489,12 @@ def __init__( class OffsetsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='offsetsrc', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="offsetsrc", parent_name="waterfall", **kwargs): super(OffsetsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -561,15 +503,12 @@ def __init__( class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='offsetgroup', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="offsetgroup", parent_name="waterfall", **kwargs): super(OffsetgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -578,16 +517,13 @@ def __init__( class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='offset', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="offset", parent_name="waterfall", **kwargs): super(OffsetValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -596,13 +532,12 @@ def __init__( class NameValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__(self, plotly_name='name', parent_name='waterfall', **kwargs): + def __init__(self, plotly_name="name", parent_name="waterfall", **kwargs): super(NameValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -611,15 +546,12 @@ def __init__(self, plotly_name='name', parent_name='waterfall', **kwargs): class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='metasrc', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="metasrc", parent_name="waterfall", **kwargs): super(MetasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -628,14 +560,13 @@ def __init__( class MetaValidator(_plotly_utils.basevalidators.AnyValidator): - - def __init__(self, plotly_name='meta', parent_name='waterfall', **kwargs): + def __init__(self, plotly_name="meta", parent_name="waterfall", **kwargs): super(MetaValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -644,15 +575,12 @@ def __init__(self, plotly_name='meta', parent_name='waterfall', **kwargs): class MeasuresrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='measuresrc', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="measuresrc", parent_name="waterfall", **kwargs): super(MeasuresrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -661,15 +589,12 @@ def __init__( class MeasureValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='measure', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="measure", parent_name="waterfall", **kwargs): super(MeasureValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -678,15 +603,12 @@ def __init__( class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='legendgroup', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="legendgroup", parent_name="waterfall", **kwargs): super(LegendgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -695,16 +617,14 @@ def __init__( class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='insidetextfont', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="insidetextfont", parent_name="waterfall", **kwargs): super(InsidetextfontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Insidetextfont'), + data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -734,7 +654,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -743,22 +663,16 @@ def __init__( import _plotly_utils.basevalidators -class InsidetextanchorValidator( - _plotly_utils.basevalidators.EnumeratedValidator -): - +class InsidetextanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): def __init__( - self, - plotly_name='insidetextanchor', - parent_name='waterfall', - **kwargs + self, plotly_name="insidetextanchor", parent_name="waterfall", **kwargs ): super(InsidetextanchorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['end', 'middle', 'start']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["end", "middle", "start"]), **kwargs ) @@ -767,20 +681,18 @@ def __init__( class IncreasingValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='increasing', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="increasing", parent_name="waterfall", **kwargs): super(IncreasingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Increasing'), + data_class_str=kwargs.pop("data_class_str", "Increasing"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.waterfall.increasing.Marker instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -790,15 +702,12 @@ def __init__( class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='idssrc', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="idssrc", parent_name="waterfall", **kwargs): super(IdssrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -807,14 +716,13 @@ def __init__( class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__(self, plotly_name='ids', parent_name='waterfall', **kwargs): + def __init__(self, plotly_name="ids", parent_name="waterfall", **kwargs): super(IdsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -823,15 +731,12 @@ def __init__(self, plotly_name='ids', parent_name='waterfall', **kwargs): class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hovertextsrc', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="hovertextsrc", parent_name="waterfall", **kwargs): super(HovertextsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -840,16 +745,13 @@ def __init__( class HovertextValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertext', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="hovertext", parent_name="waterfall", **kwargs): super(HovertextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -858,18 +760,14 @@ def __init__( class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='hovertemplatesrc', - parent_name='waterfall', - **kwargs + self, plotly_name="hovertemplatesrc", parent_name="waterfall", **kwargs ): super(HovertemplatesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -878,16 +776,13 @@ def __init__( class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='hovertemplate', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="hovertemplate", parent_name="waterfall", **kwargs): super(HovertemplateValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -896,16 +791,14 @@ def __init__( class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='hoverlabel', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="hoverlabel", parent_name="waterfall", **kwargs): super(HoverlabelValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Hoverlabel'), + data_class_str=kwargs.pop("data_class_str", "Hoverlabel"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ align Sets the horizontal alignment of the text content within hover label box. Has an effect @@ -941,7 +834,7 @@ def __init__( namelengthsrc Sets the source reference on plot.ly for namelength . -""" +""", ), **kwargs ) @@ -951,15 +844,12 @@ def __init__( class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='hoverinfosrc', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="hoverinfosrc", parent_name="waterfall", **kwargs): super(HoverinfosrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -968,18 +858,15 @@ def __init__( class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): - - def __init__( - self, plotly_name='hoverinfo', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="hoverinfo", parent_name="waterfall", **kwargs): super(HoverinfoValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - extras=kwargs.pop('extras', ['all', 'none', 'skip']), - flags=kwargs.pop('flags', ['x', 'y', 'z', 'text', 'name']), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + extras=kwargs.pop("extras", ["all", "none", "skip"]), + flags=kwargs.pop("flags", ["x", "y", "z", "text", "name"]), + role=kwargs.pop("role", "info"), **kwargs ) @@ -988,14 +875,13 @@ def __init__( class DyValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dy', parent_name='waterfall', **kwargs): + def __init__(self, plotly_name="dy", parent_name="waterfall", **kwargs): super(DyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1004,14 +890,13 @@ def __init__(self, plotly_name='dy', parent_name='waterfall', **kwargs): class DxValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='dx', parent_name='waterfall', **kwargs): + def __init__(self, plotly_name="dx", parent_name="waterfall", **kwargs): super(DxValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1020,20 +905,18 @@ def __init__(self, plotly_name='dx', parent_name='waterfall', **kwargs): class DecreasingValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='decreasing', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="decreasing", parent_name="waterfall", **kwargs): super(DecreasingValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Decreasing'), + data_class_str=kwargs.pop("data_class_str", "Decreasing"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ marker plotly.graph_objs.waterfall.decreasing.Marker instance or dict with compatible properties -""" +""", ), **kwargs ) @@ -1043,15 +926,12 @@ def __init__( class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): - - def __init__( - self, plotly_name='customdatasrc', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="customdatasrc", parent_name="waterfall", **kwargs): super(CustomdatasrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1060,15 +940,12 @@ def __init__( class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): - - def __init__( - self, plotly_name='customdata', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="customdata", parent_name="waterfall", **kwargs): super(CustomdataValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'data'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "data"), **kwargs ) @@ -1077,16 +954,13 @@ def __init__( class ConstraintextValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='constraintext', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="constraintext", parent_name="waterfall", **kwargs): super(ConstraintextValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['inside', 'outside', 'both', 'none']), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["inside", "outside", "both", "none"]), **kwargs ) @@ -1095,16 +969,14 @@ def __init__( class ConnectorValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='connector', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="connector", parent_name="waterfall", **kwargs): super(ConnectorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Connector'), + data_class_str=kwargs.pop("data_class_str", "Connector"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ line plotly.graph_objs.waterfall.connector.Line instance or dict with compatible properties @@ -1112,7 +984,7 @@ def __init__( Sets the shape of connector lines. visible Determines if connector lines are drawn. -""" +""", ), **kwargs ) @@ -1122,15 +994,12 @@ def __init__( class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): - - def __init__( - self, plotly_name='cliponaxis', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="cliponaxis", parent_name="waterfall", **kwargs): super(CliponaxisValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1139,14 +1008,13 @@ def __init__( class BaseValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__(self, plotly_name='base', parent_name='waterfall', **kwargs): + def __init__(self, plotly_name="base", parent_name="waterfall", **kwargs): super(BaseValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -1155,14 +1023,11 @@ def __init__(self, plotly_name='base', parent_name='waterfall', **kwargs): class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='alignmentgroup', parent_name='waterfall', **kwargs - ): + def __init__(self, plotly_name="alignmentgroup", parent_name="waterfall", **kwargs): super(AlignmentgroupValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/connector/__init__.py b/packages/python/plotly/plotly/validators/waterfall/connector/__init__.py index 78697150046..728f902bd04 100644 --- a/packages/python/plotly/plotly/validators/waterfall/connector/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/connector/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): - def __init__( - self, - plotly_name='visible', - parent_name='waterfall.connector', - **kwargs + self, plotly_name="visible", parent_name="waterfall.connector", **kwargs ): super(VisibleValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,16 +18,13 @@ def __init__( class ModeValidator(_plotly_utils.basevalidators.EnumeratedValidator): - - def __init__( - self, plotly_name='mode', parent_name='waterfall.connector', **kwargs - ): + def __init__(self, plotly_name="mode", parent_name="waterfall.connector", **kwargs): super(ModeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'plot'), - role=kwargs.pop('role', 'info'), - values=kwargs.pop('values', ['spanning', 'between']), + edit_type=kwargs.pop("edit_type", "plot"), + role=kwargs.pop("role", "info"), + values=kwargs.pop("values", ["spanning", "between"]), **kwargs ) @@ -42,16 +33,14 @@ def __init__( class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='line', parent_name='waterfall.connector', **kwargs - ): + def __init__(self, plotly_name="line", parent_name="waterfall.connector", **kwargs): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the line color. dash @@ -61,7 +50,7 @@ def __init__( dash length list in px (eg "5px,10px,2px,2px"). width Sets the line width (in px). -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/connector/line/__init__.py b/packages/python/plotly/plotly/validators/waterfall/connector/line/__init__.py index 9ccae979057..61442544070 100644 --- a/packages/python/plotly/plotly/validators/waterfall/connector/line/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/connector/line/__init__.py @@ -1,23 +1,17 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='waterfall.connector.line', - **kwargs + self, plotly_name="width", parent_name="waterfall.connector.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'plot'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "plot"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -26,21 +20,16 @@ def __init__( class DashValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='dash', - parent_name='waterfall.connector.line', - **kwargs + self, plotly_name="dash", parent_name="waterfall.connector.line", **kwargs ): super(DashValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), values=kwargs.pop( - 'values', - ['solid', 'dot', 'dash', 'longdash', 'dashdot', 'longdashdot'] + "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] ), **kwargs ) @@ -50,18 +39,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='waterfall.connector.line', - **kwargs + self, plotly_name="color", parent_name="waterfall.connector.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/decreasing/__init__.py b/packages/python/plotly/plotly/validators/waterfall/decreasing/__init__.py index c8899ca5423..23f2d76be2d 100644 --- a/packages/python/plotly/plotly/validators/waterfall/decreasing/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/decreasing/__init__.py @@ -1,28 +1,23 @@ - - import _plotly_utils.basevalidators class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='waterfall.decreasing', - **kwargs + self, plotly_name="marker", parent_name="waterfall.decreasing", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of all decreasing values. line plotly.graph_objs.waterfall.decreasing.marker.L ine instance or dict with compatible properties -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/__init__.py b/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/__init__.py index 57569c89244..b90db6fffd2 100644 --- a/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/__init__.py @@ -1,27 +1,22 @@ - - import _plotly_utils.basevalidators class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='line', - parent_name='waterfall.decreasing.marker', - **kwargs + self, plotly_name="line", parent_name="waterfall.decreasing.marker", **kwargs ): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the line color of all decreasing values. width Sets the line width of all decreasing values. -""" +""", ), **kwargs ) @@ -31,18 +26,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='waterfall.decreasing.marker', - **kwargs + self, plotly_name="color", parent_name="waterfall.decreasing.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/line/__init__.py b/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/line/__init__.py index 7ac92a7d208..30b9ca5d796 100644 --- a/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/decreasing/marker/line/__init__.py @@ -1,24 +1,21 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='width', - parent_name='waterfall.decreasing.marker.line', + plotly_name="width", + parent_name="waterfall.decreasing.marker.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -27,18 +24,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='waterfall.decreasing.marker.line', + plotly_name="color", + parent_name="waterfall.decreasing.marker.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/__init__.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/__init__.py index cdf7a3300fb..cf9c4923931 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='namelengthsrc', - parent_name='waterfall.hoverlabel', - **kwargs + self, plotly_name="namelengthsrc", parent_name="waterfall.hoverlabel", **kwargs ): super(NamelengthsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): - def __init__( - self, - plotly_name='namelength', - parent_name='waterfall.hoverlabel', - **kwargs + self, plotly_name="namelength", parent_name="waterfall.hoverlabel", **kwargs ): super(NamelengthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', -1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", -1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,16 +36,16 @@ def __init__( class FontValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, plotly_name='font', parent_name='waterfall.hoverlabel', **kwargs + self, plotly_name="font", parent_name="waterfall.hoverlabel", **kwargs ): super(FontValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Font'), + data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color colorsrc @@ -85,7 +75,7 @@ def __init__( sizesrc Sets the source reference on plot.ly for size . -""" +""", ), **kwargs ) @@ -95,18 +85,14 @@ def __init__( class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bordercolorsrc', - parent_name='waterfall.hoverlabel', - **kwargs + self, plotly_name="bordercolorsrc", parent_name="waterfall.hoverlabel", **kwargs ): super(BordercolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -115,19 +101,15 @@ def __init__( class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bordercolor', - parent_name='waterfall.hoverlabel', - **kwargs + self, plotly_name="bordercolor", parent_name="waterfall.hoverlabel", **kwargs ): super(BordercolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -136,18 +118,14 @@ def __init__( class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='bgcolorsrc', - parent_name='waterfall.hoverlabel', - **kwargs + self, plotly_name="bgcolorsrc", parent_name="waterfall.hoverlabel", **kwargs ): super(BgcolorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -156,19 +134,15 @@ def __init__( class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='bgcolor', - parent_name='waterfall.hoverlabel', - **kwargs + self, plotly_name="bgcolor", parent_name="waterfall.hoverlabel", **kwargs ): super(BgcolorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) @@ -177,18 +151,14 @@ def __init__( class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='alignsrc', - parent_name='waterfall.hoverlabel', - **kwargs + self, plotly_name="alignsrc", parent_name="waterfall.hoverlabel", **kwargs ): super(AlignsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -197,19 +167,15 @@ def __init__( class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): - def __init__( - self, - plotly_name='align', - parent_name='waterfall.hoverlabel', - **kwargs + self, plotly_name="align", parent_name="waterfall.hoverlabel", **kwargs ): super(AlignValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), - values=kwargs.pop('values', ['left', 'right', 'auto']), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), + values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/__init__.py b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/__init__.py index ff11ed9b147..93235710785 100644 --- a/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/hoverlabel/font/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='waterfall.hoverlabel.font', - **kwargs + self, plotly_name="sizesrc", parent_name="waterfall.hoverlabel.font", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='waterfall.hoverlabel.font', - **kwargs + self, plotly_name="size", parent_name="waterfall.hoverlabel.font", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='waterfall.hoverlabel.font', - **kwargs + self, plotly_name="familysrc", parent_name="waterfall.hoverlabel.font", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='waterfall.hoverlabel.font', - **kwargs + self, plotly_name="family", parent_name="waterfall.hoverlabel.font", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='waterfall.hoverlabel.font', - **kwargs + self, plotly_name="colorsrc", parent_name="waterfall.hoverlabel.font", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='waterfall.hoverlabel.font', - **kwargs + self, plotly_name="color", parent_name="waterfall.hoverlabel.font", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/increasing/__init__.py b/packages/python/plotly/plotly/validators/waterfall/increasing/__init__.py index 986c4c498a7..eb2fe4d64ae 100644 --- a/packages/python/plotly/plotly/validators/waterfall/increasing/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/increasing/__init__.py @@ -1,28 +1,23 @@ - - import _plotly_utils.basevalidators class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='marker', - parent_name='waterfall.increasing', - **kwargs + self, plotly_name="marker", parent_name="waterfall.increasing", **kwargs ): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of all increasing values. line plotly.graph_objs.waterfall.increasing.marker.L ine instance or dict with compatible properties -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/increasing/marker/__init__.py b/packages/python/plotly/plotly/validators/waterfall/increasing/marker/__init__.py index 19f8fb496c9..25dfcb2737a 100644 --- a/packages/python/plotly/plotly/validators/waterfall/increasing/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/increasing/marker/__init__.py @@ -1,27 +1,22 @@ - - import _plotly_utils.basevalidators class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='line', - parent_name='waterfall.increasing.marker', - **kwargs + self, plotly_name="line", parent_name="waterfall.increasing.marker", **kwargs ): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the line color of all increasing values. width Sets the line width of all increasing values. -""" +""", ), **kwargs ) @@ -31,18 +26,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='waterfall.increasing.marker', - **kwargs + self, plotly_name="color", parent_name="waterfall.increasing.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/increasing/marker/line/__init__.py b/packages/python/plotly/plotly/validators/waterfall/increasing/marker/line/__init__.py index 4f34a09809b..996c9463a95 100644 --- a/packages/python/plotly/plotly/validators/waterfall/increasing/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/increasing/marker/line/__init__.py @@ -1,24 +1,21 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( self, - plotly_name='width', - parent_name='waterfall.increasing.marker.line', + plotly_name="width", + parent_name="waterfall.increasing.marker.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -27,18 +24,17 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( self, - plotly_name='color', - parent_name='waterfall.increasing.marker.line', + plotly_name="color", + parent_name="waterfall.increasing.marker.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/__init__.py b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/__init__.py index 221532bd93c..6366aead6cd 100644 --- a/packages/python/plotly/plotly/validators/waterfall/insidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/insidetextfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='waterfall.insidetextfont', - **kwargs + self, plotly_name="sizesrc", parent_name="waterfall.insidetextfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='waterfall.insidetextfont', - **kwargs + self, plotly_name="size", parent_name="waterfall.insidetextfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='waterfall.insidetextfont', - **kwargs + self, plotly_name="familysrc", parent_name="waterfall.insidetextfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='waterfall.insidetextfont', - **kwargs + self, plotly_name="family", parent_name="waterfall.insidetextfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='waterfall.insidetextfont', - **kwargs + self, plotly_name="colorsrc", parent_name="waterfall.insidetextfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='waterfall.insidetextfont', - **kwargs + self, plotly_name="color", parent_name="waterfall.insidetextfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/__init__.py b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/__init__.py index b5f48e48df3..aba419da7a3 100644 --- a/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/outsidetextfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='waterfall.outsidetextfont', - **kwargs + self, plotly_name="sizesrc", parent_name="waterfall.outsidetextfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,20 +18,16 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='size', - parent_name='waterfall.outsidetextfont', - **kwargs + self, plotly_name="size", parent_name="waterfall.outsidetextfont", **kwargs ): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -46,18 +36,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='waterfall.outsidetextfont', - **kwargs + self, plotly_name="familysrc", parent_name="waterfall.outsidetextfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -66,21 +52,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, - plotly_name='family', - parent_name='waterfall.outsidetextfont', - **kwargs + self, plotly_name="family", parent_name="waterfall.outsidetextfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -89,18 +71,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='waterfall.outsidetextfont', - **kwargs + self, plotly_name="colorsrc", parent_name="waterfall.outsidetextfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -109,18 +87,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='waterfall.outsidetextfont', - **kwargs + self, plotly_name="color", parent_name="waterfall.outsidetextfont", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/stream/__init__.py b/packages/python/plotly/plotly/validators/waterfall/stream/__init__.py index 4ea7a6bc42f..4b910a56346 100644 --- a/packages/python/plotly/plotly/validators/waterfall/stream/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/stream/__init__.py @@ -1,20 +1,15 @@ - - import _plotly_utils.basevalidators class TokenValidator(_plotly_utils.basevalidators.StringValidator): - - def __init__( - self, plotly_name='token', parent_name='waterfall.stream', **kwargs - ): + def __init__(self, plotly_name="token", parent_name="waterfall.stream", **kwargs): super(TokenValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'info'), - strict=kwargs.pop('strict', True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "info"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -23,19 +18,15 @@ def __init__( class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='maxpoints', - parent_name='waterfall.stream', - **kwargs + self, plotly_name="maxpoints", parent_name="waterfall.stream", **kwargs ): super(MaxpointsValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'calc'), - max=kwargs.pop('max', 10000), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "calc"), + max=kwargs.pop("max", 10000), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "info"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/textfont/__init__.py b/packages/python/plotly/plotly/validators/waterfall/textfont/__init__.py index 82ab1ab5122..0b813ae9517 100644 --- a/packages/python/plotly/plotly/validators/waterfall/textfont/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/textfont/__init__.py @@ -1,21 +1,15 @@ - - import _plotly_utils.basevalidators class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='sizesrc', - parent_name='waterfall.textfont', - **kwargs + self, plotly_name="sizesrc", parent_name="waterfall.textfont", **kwargs ): super(SizesrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -24,17 +18,14 @@ def __init__( class SizeValidator(_plotly_utils.basevalidators.NumberValidator): - - def __init__( - self, plotly_name='size', parent_name='waterfall.textfont', **kwargs - ): + def __init__(self, plotly_name="size", parent_name="waterfall.textfont", **kwargs): super(SizeValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - min=kwargs.pop('min', 1), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + min=kwargs.pop("min", 1), + role=kwargs.pop("role", "style"), **kwargs ) @@ -43,18 +34,14 @@ def __init__( class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='familysrc', - parent_name='waterfall.textfont', - **kwargs + self, plotly_name="familysrc", parent_name="waterfall.textfont", **kwargs ): super(FamilysrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -63,18 +50,17 @@ def __init__( class FamilyValidator(_plotly_utils.basevalidators.StringValidator): - def __init__( - self, plotly_name='family', parent_name='waterfall.textfont', **kwargs + self, plotly_name="family", parent_name="waterfall.textfont", **kwargs ): super(FamilyValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'calc'), - no_blank=kwargs.pop('no_blank', True), - role=kwargs.pop('role', 'style'), - strict=kwargs.pop('strict', True), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "calc"), + no_blank=kwargs.pop("no_blank", True), + role=kwargs.pop("role", "style"), + strict=kwargs.pop("strict", True), **kwargs ) @@ -83,18 +69,14 @@ def __init__( class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): - def __init__( - self, - plotly_name='colorsrc', - parent_name='waterfall.textfont', - **kwargs + self, plotly_name="colorsrc", parent_name="waterfall.textfont", **kwargs ): super(ColorsrcValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - edit_type=kwargs.pop('edit_type', 'none'), - role=kwargs.pop('role', 'info'), + edit_type=kwargs.pop("edit_type", "none"), + role=kwargs.pop("role", "info"), **kwargs ) @@ -103,15 +85,12 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - - def __init__( - self, plotly_name='color', parent_name='waterfall.textfont', **kwargs - ): + def __init__(self, plotly_name="color", parent_name="waterfall.textfont", **kwargs): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', True), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", True), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/totals/__init__.py b/packages/python/plotly/plotly/validators/waterfall/totals/__init__.py index a7b71832232..d3a37100f72 100644 --- a/packages/python/plotly/plotly/validators/waterfall/totals/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/totals/__init__.py @@ -1,26 +1,22 @@ - - import _plotly_utils.basevalidators class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): - - def __init__( - self, plotly_name='marker', parent_name='waterfall.totals', **kwargs - ): + def __init__(self, plotly_name="marker", parent_name="waterfall.totals", **kwargs): super(MarkerValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Marker'), + data_class_str=kwargs.pop("data_class_str", "Marker"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the marker color of all intermediate sums and total values. line plotly.graph_objs.waterfall.totals.marker.Line instance or dict with compatible properties -""" +""", ), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/totals/marker/__init__.py b/packages/python/plotly/plotly/validators/waterfall/totals/marker/__init__.py index 259ba7bbc9f..ed636030fe1 100644 --- a/packages/python/plotly/plotly/validators/waterfall/totals/marker/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/totals/marker/__init__.py @@ -1,29 +1,24 @@ - - import _plotly_utils.basevalidators class LineValidator(_plotly_utils.basevalidators.CompoundValidator): - def __init__( - self, - plotly_name='line', - parent_name='waterfall.totals.marker', - **kwargs + self, plotly_name="line", parent_name="waterfall.totals.marker", **kwargs ): super(LineValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - data_class_str=kwargs.pop('data_class_str', 'Line'), + data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( - 'data_docs', """ + "data_docs", + """ color Sets the line color of all intermediate sums and total values. width Sets the line width of all intermediate sums and total values. -""" +""", ), **kwargs ) @@ -33,18 +28,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='waterfall.totals.marker', - **kwargs + self, plotly_name="color", parent_name="waterfall.totals.marker", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/validators/waterfall/totals/marker/line/__init__.py b/packages/python/plotly/plotly/validators/waterfall/totals/marker/line/__init__.py index 68e381006ea..670c5f89581 100644 --- a/packages/python/plotly/plotly/validators/waterfall/totals/marker/line/__init__.py +++ b/packages/python/plotly/plotly/validators/waterfall/totals/marker/line/__init__.py @@ -1,24 +1,18 @@ - - import _plotly_utils.basevalidators class WidthValidator(_plotly_utils.basevalidators.NumberValidator): - def __init__( - self, - plotly_name='width', - parent_name='waterfall.totals.marker.line', - **kwargs + self, plotly_name="width", parent_name="waterfall.totals.marker.line", **kwargs ): super(WidthValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - anim=kwargs.pop('anim', True), - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'style'), - min=kwargs.pop('min', 0), - role=kwargs.pop('role', 'style'), + anim=kwargs.pop("anim", True), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "style"), + min=kwargs.pop("min", 0), + role=kwargs.pop("role", "style"), **kwargs ) @@ -27,18 +21,14 @@ def __init__( class ColorValidator(_plotly_utils.basevalidators.ColorValidator): - def __init__( - self, - plotly_name='color', - parent_name='waterfall.totals.marker.line', - **kwargs + self, plotly_name="color", parent_name="waterfall.totals.marker.line", **kwargs ): super(ColorValidator, self).__init__( plotly_name=plotly_name, parent_name=parent_name, - array_ok=kwargs.pop('array_ok', False), - edit_type=kwargs.pop('edit_type', 'style'), - role=kwargs.pop('role', 'style'), + array_ok=kwargs.pop("array_ok", False), + edit_type=kwargs.pop("edit_type", "style"), + role=kwargs.pop("role", "style"), **kwargs ) diff --git a/packages/python/plotly/plotly/version.py b/packages/python/plotly/plotly/version.py index cf6d259b488..0cdb9e89373 100644 --- a/packages/python/plotly/plotly/version.py +++ b/packages/python/plotly/plotly/version.py @@ -1,5 +1,6 @@ from ._version import get_versions -__version__ = get_versions()['version'] + +__version__ = get_versions()["version"] del get_versions from ._widget_version import __frontend_version__ @@ -13,6 +14,7 @@ def stable_semver(): '3.0.0rc11' -> '3.0.0' """ from distutils.version import LooseVersion + version_components = LooseVersion(__version__).version - stable_ver_str = '.'.join(str(s) for s in version_components[0:3]) + stable_ver_str = ".".join(str(s) for s in version_components[0:3]) return stable_ver_str diff --git a/packages/python/plotly/plotly/widgets.py b/packages/python/plotly/plotly/widgets.py index 32081012a92..23f6c7aaba8 100644 --- a/packages/python/plotly/plotly/widgets.py +++ b/packages/python/plotly/plotly/widgets.py @@ -1,3 +1,4 @@ from __future__ import absolute_import from _plotly_future_ import _chart_studio_error -_chart_studio_error('widgets') + +_chart_studio_error("widgets") diff --git a/packages/python/plotly/plotlywidget/__init__.py b/packages/python/plotly/plotlywidget/__init__.py index 421e7990307..129358fef2d 100644 --- a/packages/python/plotly/plotlywidget/__init__.py +++ b/packages/python/plotly/plotlywidget/__init__.py @@ -1,9 +1,12 @@ def _jupyter_nbextension_paths(): - return [{ - 'section': 'notebook', - 'src': 'static', - 'dest': 'plotlywidget', - 'require': 'plotlywidget/extension' - }] + return [ + { + "section": "notebook", + "src": "static", + "dest": "plotlywidget", + "require": "plotlywidget/extension", + } + ] -__frontend_version__ = '^0.1' + +__frontend_version__ = "^0.1" diff --git a/packages/python/plotly/setup.py b/packages/python/plotly/setup.py index bb6f70ca05f..ff0e9b36a9b 100644 --- a/packages/python/plotly/setup.py +++ b/packages/python/plotly/setup.py @@ -12,81 +12,81 @@ here = os.path.dirname(os.path.abspath(__file__)) project_root = os.path.dirname(os.path.dirname(os.path.dirname(here))) -node_root = os.path.join(project_root, 'packages', 'javascript', 'jupyterlab-plotly') -is_repo = os.path.exists(os.path.join(project_root, '.git')) +node_root = os.path.join(project_root, "packages", "javascript", "jupyterlab-plotly") +is_repo = os.path.exists(os.path.join(project_root, ".git")) -npm_path = os.pathsep.join([ - os.path.join(node_root, 'node_modules', '.bin'), - os.environ.get('PATH', os.defpath), -]) +npm_path = os.pathsep.join( + [ + os.path.join(node_root, "node_modules", ".bin"), + os.environ.get("PATH", os.defpath), + ] +) # Load plotly.js version from js/package.json def plotly_js_version(): path = os.path.join( - project_root, - 'packages', - 'javascript', - 'jupyterlab-plotly', - 'package.json', + project_root, "packages", "javascript", "jupyterlab-plotly", "package.json" ) - with open(path, 'rt') as f: + with open(path, "rt") as f: package_json = json.load(f) - version = package_json['dependencies']['plotly.js'] + version = package_json["dependencies"]["plotly.js"] return version def readme(): - with open(os.path.join(here, 'README.md')) as f: + with open(os.path.join(here, "README.md")) as f: return f.read() def js_prerelease(command, strict=False): """decorator for building minified js/css prior to another command""" + class DecoratedCommand(command): def run(self): - jsdeps = self.distribution.get_command_obj('jsdeps') + jsdeps = self.distribution.get_command_obj("jsdeps") if not is_repo and all(os.path.exists(t) for t in jsdeps.targets): # sdist, nothing to do command.run(self) return try: - self.distribution.run_command('jsdeps') + self.distribution.run_command("jsdeps") except Exception as e: missing = [t for t in jsdeps.targets if not os.path.exists(t)] if strict or missing: - log.warn('rebuilding js and css failed') + log.warn("rebuilding js and css failed") if missing: - log.error('missing files: %s' % missing) + log.error("missing files: %s" % missing) raise e else: - log.warn('rebuilding js and css failed (not a problem)') + log.warn("rebuilding js and css failed (not a problem)") log.warn(str(e)) command.run(self) update_package_data(self.distribution) + return DecoratedCommand def update_package_data(distribution): """update package_data to catch changes during setup""" - build_py = distribution.get_command_obj('build_py') + build_py = distribution.get_command_obj("build_py") # distribution.package_data = find_package_data() # re-init build_py options which load package_data build_py.finalize_options() class NPM(Command): - description = 'install package.json dependencies using npm' + description = "install package.json dependencies using npm" user_options = [] - node_modules = os.path.join(node_root, 'node_modules') + node_modules = os.path.join(node_root, "node_modules") targets = [ - os.path.join(here, 'plotlywidget', 'static', 'extension.js'), - os.path.join(here, 'plotlywidget', 'static', 'index.js') + os.path.join(here, "plotlywidget", "static", "extension.js"), + os.path.join(here, "plotlywidget", "static", "index.js"), ] def initialize_options(self): @@ -96,22 +96,22 @@ def finalize_options(self): pass def get_npm_name(self): - npmName = 'npm' - if platform.system() == 'Windows': - npmName = 'npm.cmd' + npmName = "npm" + if platform.system() == "Windows": + npmName = "npm.cmd" return npmName def has_npm(self): - npmName = self.get_npm_name(); + npmName = self.get_npm_name() try: - check_call([npmName, '--version']) + check_call([npmName, "--version"]) return True except: return False def should_run_npm_install(self): - package_json = os.path.join(node_root, 'package.json') + package_json = os.path.join(node_root, "package.json") node_modules_exists = os.path.exists(self.node_modules) return self.has_npm() @@ -119,22 +119,30 @@ def run(self): has_npm = self.has_npm() if not has_npm: log.error( - "`npm` unavailable. If you're running this command using sudo, make sure `npm` is available to sudo") + "`npm` unavailable. If you're running this command using sudo, make sure `npm` is available to sudo" + ) env = os.environ.copy() - env['PATH'] = npm_path + env["PATH"] = npm_path if self.should_run_npm_install(): - log.info("Installing build dependencies with npm. This may take a while...") - npmName = self.get_npm_name(); - check_call([npmName, 'install'], cwd=node_root, stdout=sys.stdout, stderr=sys.stderr) + log.info( + "Installing build dependencies with npm. This may take a while..." + ) + npmName = self.get_npm_name() + check_call( + [npmName, "install"], + cwd=node_root, + stdout=sys.stdout, + stderr=sys.stderr, + ) os.utime(self.node_modules, None) for t in self.targets: if not os.path.exists(t): - msg = 'Missing file: %s' % t + msg = "Missing file: %s" % t if not has_npm: - msg += '\nnpm is required to build a development version of widgetsnbextension' + msg += "\nnpm is required to build a development version of widgetsnbextension" raise ValueError(msg) # update package data in case this created new files @@ -142,7 +150,7 @@ def run(self): class CodegenCommand(Command): - description = 'Generate class hierarchy from Plotly JSON schema' + description = "Generate class hierarchy from Plotly JSON schema" user_options = [] def initialize_options(self): @@ -153,103 +161,117 @@ def finalize_options(self): def run(self): if sys.version_info.major != 3 or sys.version_info.minor < 6: - raise ImportError( - 'Code generation must be executed with Python >= 3.6') + raise ImportError("Code generation must be executed with Python >= 3.6") from codegen import perform_codegen + perform_codegen() def overwrite_schema(url): import requests + req = requests.get(url) assert req.status_code == 200 - path = os.path.join(here, 'codegen', 'resources', 'plot-schema.json') - with open(path, 'wb') as f: + path = os.path.join(here, "codegen", "resources", "plot-schema.json") + with open(path, "wb") as f: f.write(req.content) def overwrite_bundle(url): import requests + req = requests.get(url) assert req.status_code == 200 - path = os.path.join(here, 'plotly', 'package_data', 'plotly.min.js') - with open(path, 'wb') as f: + path = os.path.join(here, "plotly", "package_data", "plotly.min.js") + with open(path, "wb") as f: f.write(req.content) def overwrite_plotlyjs_version_file(plotlyjs_version): - path = os.path.join(here, 'plotly', 'offline', '_plotlyjs_version.py') - with open(path, 'w') as f: - f.write("""\ + path = os.path.join(here, "plotly", "offline", "_plotlyjs_version.py") + with open(path, "w") as f: + f.write( + """\ # DO NOT EDIT # This file is generated by the updatebundle setup.py command __plotlyjs_version__ = '{plotlyjs_version}' -""".format(plotlyjs_version=plotlyjs_version)) +""".format( + plotlyjs_version=plotlyjs_version + ) + ) def overwrite_plotlywidget_version_file(version): - path = os.path.join(here, 'plotly', '_widget_version.py') - with open(path, 'w') as f: - f.write("""\ + path = os.path.join(here, "plotly", "_widget_version.py") + with open(path, "w") as f: + f.write( + """\ # This file is generated by the updateplotlywidgetversion setup.py command # for automated dev builds # # It is edited by hand prior to official releases __frontend_version__ = '{version}' -""".format(version=version)) +""".format( + version=version + ) + ) def request_json(url): import requests + req = requests.get(url) - return json.loads(req.content.decode('utf-8')) + return json.loads(req.content.decode("utf-8")) def get_latest_publish_build_info(branch): - url = (r'https://circleci.com/api/v1.1/project/github/' - r'plotly/plotly.js/tree/{branch}?limit=10000\&filter=completed' - ).format(branch=branch) + url = ( + r"https://circleci.com/api/v1.1/project/github/" + r"plotly/plotly.js/tree/{branch}?limit=10000\&filter=completed" + ).format(branch=branch) branch_jobs = request_json(url) # Get most recent successful publish build for branch - builds = [j for j in branch_jobs - if j.get('workflows', {}).get('job_name', None) == 'publish' - and j.get('status', None) == 'success'] + builds = [ + j + for j in branch_jobs + if j.get("workflows", {}).get("job_name", None) == "publish" + and j.get("status", None) == "success" + ] build = builds[0] # Extract build info - return {p: build[p] for p in ['vcs_revision', 'build_num', 'committer_date']} + return {p: build[p] for p in ["vcs_revision", "build_num", "committer_date"]} def get_bundle_schema_urls(build_num): - url = ('https://circleci.com/api/v1.1/project/github/' - 'plotly/plotly.js/{build_num}/artifacts' - ).format(build_num=build_num) + url = ( + "https://circleci.com/api/v1.1/project/github/" + "plotly/plotly.js/{build_num}/artifacts" + ).format(build_num=build_num) artifacts = request_json(url) # Find archive - archives = [a for a in artifacts if a.get('path', None) == 'plotly.js.tgz'] + archives = [a for a in artifacts if a.get("path", None) == "plotly.js.tgz"] archive = archives[0] # Find bundle - bundles = [a for a in artifacts if - a.get('path', None) == 'dist/plotly.min.js'] + bundles = [a for a in artifacts if a.get("path", None) == "dist/plotly.min.js"] bundle = bundles[0] # Find schema - schemas = [a for a in artifacts if - a.get('path', None) == 'dist/plot-schema.json'] + schemas = [a for a in artifacts if a.get("path", None) == "dist/plot-schema.json"] schema = schemas[0] - return archive['url'], bundle['url'], schema['url'] + return archive["url"], bundle["url"], schema["url"] class UpdateSchemaCommand(Command): - description = 'Download latest version of the plot-schema JSON file' + description = "Download latest version of the plot-schema JSON file" user_options = [] def initialize_options(self): @@ -259,13 +281,15 @@ def finalize_options(self): pass def run(self): - url = ('https://raw.githubusercontent.com/plotly/plotly.js/' - 'v%s/dist/plot-schema.json' % plotly_js_version()) + url = ( + "https://raw.githubusercontent.com/plotly/plotly.js/" + "v%s/dist/plot-schema.json" % plotly_js_version() + ) overwrite_schema(url) class UpdateBundleCommand(Command): - description = 'Download latest version of the plot-schema JSON file' + description = "Download latest version of the plot-schema JSON file" user_options = [] def initialize_options(self): @@ -275,8 +299,10 @@ def finalize_options(self): pass def run(self): - url = ('https://raw.githubusercontent.com/plotly/plotly.js/' - 'v%s/dist/plotly.min.js' % plotly_js_version()) + url = ( + "https://raw.githubusercontent.com/plotly/plotly.js/" + "v%s/dist/plotly.min.js" % plotly_js_version() + ) overwrite_bundle(url) # Write plotly.js version file @@ -285,7 +311,7 @@ def run(self): class UpdatePlotlyJsCommand(Command): - description = 'Update project to a new version of plotly.js' + description = "Update project to a new version of plotly.js" user_options = [] def initialize_options(self): @@ -295,13 +321,13 @@ def finalize_options(self): pass def run(self): - self.run_command('updatebundle') - self.run_command('updateschema') - self.run_command('codegen') + self.run_command("updatebundle") + self.run_command("updateschema") + self.run_command("codegen") class UpdateBundleSchemaDevCommand(Command): - description = 'Update the plotly.js schema and bundle from master' + description = "Update the plotly.js schema and bundle from master" user_options = [] def initialize_options(self): @@ -311,11 +337,12 @@ def finalize_options(self): pass def run(self): - branch = 'master' + branch = "master" build_info = get_latest_publish_build_info(branch) archive_url, bundle_url, schema_url = get_bundle_schema_urls( - build_info['build_num']) + build_info["build_num"] + ) # Update bundle in package data overwrite_bundle(bundle_url) @@ -324,24 +351,24 @@ def run(self): overwrite_schema(schema_url) # Update plotly.js url in package.json - package_json_path = os.path.join(node_root, 'package.json') - with open(package_json_path, 'r') as f: + package_json_path = os.path.join(node_root, "package.json") + with open(package_json_path, "r") as f: package_json = json.load(f) # Replace version with bundle url - package_json['dependencies']['plotly.js'] = archive_url - with open(package_json_path, 'w') as f: + package_json["dependencies"]["plotly.js"] = archive_url + with open(package_json_path, "w") as f: json.dump(package_json, f, indent=2) # update plotly.js version in _plotlyjs_version - rev = build_info['vcs_revision'] - date = build_info['committer_date'] - version = '_'.join([branch, date[:10], rev[:8]]) + rev = build_info["vcs_revision"] + date = build_info["committer_date"] + version = "_".join([branch, date[:10], rev[:8]]) overwrite_plotlyjs_version_file(version) class UpdatePlotlyJsDevCommand(Command): - description = 'Update project to a new development version of plotly.js' + description = "Update project to a new development version of plotly.js" user_options = [] def initialize_options(self): @@ -351,13 +378,14 @@ def finalize_options(self): pass def run(self): - self.run_command('updatebundleschemadev') - self.run_command('jsdeps') - self.run_command('codegen') + self.run_command("updatebundleschemadev") + self.run_command("jsdeps") + self.run_command("codegen") class UpdatePlotlywidgetVersionCommand(Command): - description = 'Update package.json version of plotlywidget' + description = "Update package.json version of jupyterlab-plotly" + user_options = [] def initialize_options(self): @@ -370,17 +398,18 @@ def run(self): from plotly._version import git_pieces_from_vcs, render # Update plotly.js url in package.json - package_json_path = os.path.join(node_root, 'package.json') - with open(package_json_path, 'r') as f: + package_json_path = os.path.join(node_root, "package.json") + + with open(package_json_path, "r") as f: package_json = json.load(f) # Replace version with bundle url - pieces = git_pieces_from_vcs('widget-v', project_root, False) - pieces['dirty'] = False - widget_ver = render(pieces, 'pep440')['version'] + pieces = git_pieces_from_vcs("widget-v", project_root, False) + pieces["dirty"] = False + widget_ver = render(pieces, "pep440")["version"] - package_json['version'] = widget_ver - with open(package_json_path, 'w') as f: + package_json["version"] = widget_ver + with open(package_json_path, "w") as f: json.dump(package_json, f, indent=2) # write _widget_version @@ -388,85 +417,99 @@ def run(self): graph_objs_packages = [ - d[0].replace('/', '.') for d in os.walk('plotly/graph_objs') - if not d[0].endswith('__pycache__')] + d[0].replace("/", ".") + for d in os.walk("plotly/graph_objs") + if not d[0].endswith("__pycache__") +] validator_packages = [ - d[0].replace('/', '.') for d in os.walk('plotly/validators') - if not d[0].endswith('__pycache__')] + d[0].replace("/", ".") + for d in os.walk("plotly/validators") + if not d[0].endswith("__pycache__") +] versioneer_cmds = versioneer.get_cmdclass() -setup(name='plotly', - version=versioneer.get_version(), - use_2to3=False, - author='Chris P', - author_email='chris@plot.ly', - maintainer='Jon Mease', - maintainer_email='jon@plot.ly', - url='https://plot.ly/python/', - project_urls={"Github": "https://github.com/plotly/plotly.py"}, - description="An open-source, interactive graphing library for Python", - long_description=readme(), - long_description_content_type="text/markdown", - classifiers=[ - 'Development Status :: 5 - Production/Stable', - 'Programming Language :: Python :: 2', - 'Programming Language :: Python :: 2.7', - 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.3', - 'Programming Language :: Python :: 3.4', - 'Programming Language :: Python :: 3.5', - 'Programming Language :: Python :: 3.6', - 'Programming Language :: Python :: 3.7', - 'Topic :: Scientific/Engineering :: Visualization', - ], - license='MIT', - packages=['plotly', - 'plotlywidget', - 'plotly.plotly', - 'plotly.offline', - 'plotly.io', - 'plotly.matplotlylib', - 'plotly.matplotlylib.mplexporter', - 'plotly.matplotlylib.mplexporter.renderers', - 'plotly.figure_factory', - 'plotly.data', - 'plotly.colors', - 'plotly.express', - '_plotly_utils', - '_plotly_future_', - ] + graph_objs_packages + validator_packages, - package_data={'plotly': ['package_data/*', - 'package_data/templates/*', - 'package_data/datasets/*'], - 'plotlywidget': ['static/extension.js', - 'static/index.js']}, - data_files=[ - ('share/jupyter/nbextensions/plotlywidget', [ - 'plotlywidget/static/extension.js', - 'plotlywidget/static/index.js', - ]), - ('etc/jupyter/nbconfig/notebook.d', ['plotlywidget.json']), - ], - install_requires=['decorator>=4.0.6', - 'nbformat>=4.2', - 'pytz', - 'requests', - 'retrying>=1.3.3', - 'six'], - zip_safe=False, - cmdclass=dict( - build_py=js_prerelease(versioneer_cmds['build_py']), - egg_info=js_prerelease(egg_info), - sdist=js_prerelease(versioneer_cmds['sdist'], strict=True), - jsdeps=NPM, - codegen=CodegenCommand, - updateschema=UpdateSchemaCommand, - updatebundle=UpdateBundleCommand, - updateplotlyjs=js_prerelease(UpdatePlotlyJsCommand), - updatebundleschemadev=UpdateBundleSchemaDevCommand, - updateplotlyjsdev=UpdatePlotlyJsDevCommand, - updateplotlywidgetversion=UpdatePlotlywidgetVersionCommand, - version=versioneer_cmds['version'] - )) +setup( + name="plotly", + version=versioneer.get_version(), + use_2to3=False, + author="Chris P", + author_email="chris@plot.ly", + maintainer="Jon Mease", + maintainer_email="jon@plot.ly", + url="https://plot.ly/python/", + project_urls={"Github": "https://github.com/plotly/plotly.py"}, + description="An open-source, interactive graphing library for Python", + long_description=readme(), + long_description_content_type="text/markdown", + classifiers=[ + "Development Status :: 5 - Production/Stable", + "Programming Language :: Python :: 2", + "Programming Language :: Python :: 2.7", + "Programming Language :: Python :: 3", + "Programming Language :: Python :: 3.3", + "Programming Language :: Python :: 3.4", + "Programming Language :: Python :: 3.5", + "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", + "Topic :: Scientific/Engineering :: Visualization", + ], + license="MIT", + packages=[ + "plotly", + "plotlywidget", + "plotly.plotly", + "plotly.offline", + "plotly.io", + "plotly.matplotlylib", + "plotly.matplotlylib.mplexporter", + "plotly.matplotlylib.mplexporter.renderers", + "plotly.figure_factory", + "plotly.data", + "plotly.colors", + "plotly.express", + "_plotly_utils", + "_plotly_future_", + ] + + graph_objs_packages + + validator_packages, + package_data={ + "plotly": [ + "package_data/*", + "package_data/templates/*", + "package_data/datasets/*", + ], + "plotlywidget": ["static/extension.js", "static/index.js"], + }, + data_files=[ + ( + "share/jupyter/nbextensions/plotlywidget", + ["plotlywidget/static/extension.js", "plotlywidget/static/index.js"], + ), + ("etc/jupyter/nbconfig/notebook.d", ["plotlywidget.json"]), + ], + install_requires=[ + "decorator>=4.0.6", + "nbformat>=4.2", + "pytz", + "requests", + "retrying>=1.3.3", + "six", + ], + zip_safe=False, + cmdclass=dict( + build_py=js_prerelease(versioneer_cmds["build_py"]), + egg_info=js_prerelease(egg_info), + sdist=js_prerelease(versioneer_cmds["sdist"], strict=True), + jsdeps=NPM, + codegen=CodegenCommand, + updateschema=UpdateSchemaCommand, + updatebundle=UpdateBundleCommand, + updateplotlyjs=js_prerelease(UpdatePlotlyJsCommand), + updatebundleschemadev=UpdateBundleSchemaDevCommand, + updateplotlyjsdev=UpdatePlotlyJsDevCommand, + updateplotlywidgetversion=UpdatePlotlywidgetVersionCommand, + version=versioneer_cmds["version"], + ), +) diff --git a/packages/python/plotly/templategen/__init__.py b/packages/python/plotly/templategen/__init__.py index 5d553e2459b..a1a26a51b05 100644 --- a/packages/python/plotly/templategen/__init__.py +++ b/packages/python/plotly/templategen/__init__.py @@ -2,11 +2,10 @@ import json from templategen.definitions import builders -if __name__ == '__main__': +if __name__ == "__main__": for template_name in builders: template = builders[template_name]() - with open('plotly/package_data/templates/%s.json' % template_name, - 'w') as f: + with open("plotly/package_data/templates/%s.json" % template_name, "w") as f: plotly_schema = json.dump(template, f, cls=PlotlyJSONEncoder) diff --git a/packages/python/plotly/templategen/definitions.py b/packages/python/plotly/templategen/definitions.py index 3894d71abf6..eef8a341338 100644 --- a/packages/python/plotly/templategen/definitions.py +++ b/packages/python/plotly/templategen/definitions.py @@ -17,7 +17,7 @@ def ggplot2(): # Set colorscale # Colors picked using colorpicker from # https://ggplot2.tidyverse.org/reference/scale_colour_continuous.html - colorscale = [[0, 'rgb(20,44,66)'], [1, 'rgb(90,179,244)']] + colorscale = [[0, "rgb(20,44,66)"], [1, "rgb(90,179,244)"]] # Hue cycle for 5 categories colorway = ["#F8766D", "#A3A500", "#00BF7D", "#00B0F6", "#E76BF3"] @@ -26,46 +26,40 @@ def ggplot2(): # Note the light inward ticks in # https://ggplot2.tidyverse.org/reference/scale_colour_continuous.html colorbar_common = dict( - outlinewidth=0, - tickcolor=colors['gray93'], - ticks='inside', - ticklen=6) + outlinewidth=0, tickcolor=colors["gray93"], ticks="inside", ticklen=6 + ) # Common axis common properties axis_common = dict( showgrid=True, - gridcolor='white', - linecolor='white', - tickcolor=colors['gray20'], - ticks="outside") + gridcolor="white", + linecolor="white", + tickcolor=colors["gray20"], + ticks="outside", + ) # semi-transparent black and no outline - shape_defaults = dict( - fillcolor='black', - line={'width': 0}, - opacity=0.3) + shape_defaults = dict(fillcolor="black", line={"width": 0}, opacity=0.3) # Remove arrow head and make line thinner - annotation_defaults = { - 'arrowhead': 0, - 'arrowwidth': 1} + annotation_defaults = {"arrowhead": 0, "arrowwidth": 1} template = initialize_template( - paper_clr='white', - font_clr=colors['gray20'], - panel_background_clr=colors['gray93'], - panel_grid_clr='white', - axis_ticks_clr=colors['gray20'], - zerolinecolor_clr='white', - table_cell_clr=colors['gray93'], - table_header_clr=colors['gray85'], - table_line_clr='white', + paper_clr="white", + font_clr=colors["gray20"], + panel_background_clr=colors["gray93"], + panel_grid_clr="white", + axis_ticks_clr=colors["gray20"], + zerolinecolor_clr="white", + table_cell_clr=colors["gray93"], + table_header_clr=colors["gray85"], + table_line_clr="white", colorway=colorway, colorbar_common=colorbar_common, colorscale=colorscale, axis_common=axis_common, annotation_defaults=annotation_defaults, - shape_defaults=shape_defaults + shape_defaults=shape_defaults, ) # Increase grid width for 3d plots @@ -76,7 +70,7 @@ def ggplot2(): return template -builders['ggplot2'] = ggplot2 +builders["ggplot2"] = ggplot2 def seaborn(): @@ -88,23 +82,24 @@ def seaborn(): # for i, (r,g,b) in enumerate(sns.cm.rocket.colors) # if i % 16 == 0 or i == 255] colorscale = [ - [0.0, 'rgb(2,4,25)'], - [0.06274509803921569, 'rgb(24,15,41)'], - [0.12549019607843137, 'rgb(47,23,57)'], - [0.18823529411764706, 'rgb(71,28,72)'], - [0.25098039215686274, 'rgb(97,30,82)'], - [0.3137254901960784, 'rgb(123,30,89)'], - [0.3764705882352941, 'rgb(150,27,91)'], - [0.4392156862745098, 'rgb(177,22,88)'], - [0.5019607843137255, 'rgb(203,26,79)'], - [0.5647058823529412, 'rgb(223,47,67)'], - [0.6274509803921569, 'rgb(236,76,61)'], - [0.6901960784313725, 'rgb(242,107,73)'], - [0.7529411764705882, 'rgb(244,135,95)'], - [0.8156862745098039, 'rgb(245,162,122)'], - [0.8784313725490196, 'rgb(246,188,153)'], - [0.9411764705882353, 'rgb(247,212,187)'], - [1.0, 'rgb(250,234,220)']] + [0.0, "rgb(2,4,25)"], + [0.06274509803921569, "rgb(24,15,41)"], + [0.12549019607843137, "rgb(47,23,57)"], + [0.18823529411764706, "rgb(71,28,72)"], + [0.25098039215686274, "rgb(97,30,82)"], + [0.3137254901960784, "rgb(123,30,89)"], + [0.3764705882352941, "rgb(150,27,91)"], + [0.4392156862745098, "rgb(177,22,88)"], + [0.5019607843137255, "rgb(203,26,79)"], + [0.5647058823529412, "rgb(223,47,67)"], + [0.6274509803921569, "rgb(236,76,61)"], + [0.6901960784313725, "rgb(242,107,73)"], + [0.7529411764705882, "rgb(244,135,95)"], + [0.8156862745098039, "rgb(245,162,122)"], + [0.8784313725490196, "rgb(246,188,153)"], + [0.9411764705882353, "rgb(247,212,187)"], + [1.0, "rgb(250,234,220)"], + ] # Hue cycle for 3 categories # @@ -114,61 +109,55 @@ def seaborn(): # [f'rgb({int(r*255)},{int(g*255)},{int(b*255)})' # for r, g, b in sns.color_palette()] colorway = [ - 'rgb(76,114,176)', - 'rgb(221,132,82)', - 'rgb(85,168,104)', - 'rgb(196,78,82)', - 'rgb(129,114,179)', - 'rgb(147,120,96)', - 'rgb(218,139,195)', - 'rgb(140,140,140)', - 'rgb(204,185,116)', - 'rgb(100,181,205)'] + "rgb(76,114,176)", + "rgb(221,132,82)", + "rgb(85,168,104)", + "rgb(196,78,82)", + "rgb(129,114,179)", + "rgb(147,120,96)", + "rgb(218,139,195)", + "rgb(140,140,140)", + "rgb(204,185,116)", + "rgb(100,181,205)", + ] # Set colorbar_common # Note the light inward ticks in # https://ggplot2.tidyverse.org/reference/scale_colour_continuous.html colorbar_common = dict( outlinewidth=0, - tickcolor=colors['gray14'], - ticks='outside', + tickcolor=colors["gray14"], + ticks="outside", tickwidth=2, - ticklen=8) + ticklen=8, + ) # Common axis common properties - axis_common = dict( - showgrid=True, - gridcolor='white', - linecolor='white', - ticks='') + axis_common = dict(showgrid=True, gridcolor="white", linecolor="white", ticks="") # semi-transparent black and no outline - annotation_clr = 'rgb(67,103,167)' - shape_defaults = dict( - fillcolor=annotation_clr, - line={'width': 0}, - opacity=0.5) + annotation_clr = "rgb(67,103,167)" + shape_defaults = dict(fillcolor=annotation_clr, line={"width": 0}, opacity=0.5) # Remove arrow head and make line thinner - annotation_defaults = { - 'arrowcolor': annotation_clr} + annotation_defaults = {"arrowcolor": annotation_clr} template = initialize_template( - paper_clr='white', - font_clr=colors['gray14'], - panel_background_clr='rgb(234,234,242)', - panel_grid_clr='white', - axis_ticks_clr=colors['gray14'], - zerolinecolor_clr='white', - table_cell_clr='rgb(231,231,240)', - table_header_clr='rgb(183,183,191)', - table_line_clr='white', + paper_clr="white", + font_clr=colors["gray14"], + panel_background_clr="rgb(234,234,242)", + panel_grid_clr="white", + axis_ticks_clr=colors["gray14"], + zerolinecolor_clr="white", + table_cell_clr="rgb(231,231,240)", + table_header_clr="rgb(183,183,191)", + table_line_clr="white", colorway=colorway, colorbar_common=colorbar_common, colorscale=colorscale, axis_common=axis_common, annotation_defaults=annotation_defaults, - shape_defaults=shape_defaults + shape_defaults=shape_defaults, ) # Increase grid width for 3d plots @@ -180,38 +169,38 @@ def seaborn(): return template -builders['seaborn'] = seaborn +builders["seaborn"] = seaborn # https://brand.plot.ly/ plotly_clrs = { - 'Rhino Light 4': '#f2f5fa', - 'Rhino Light 3': '#F3F6FA', - 'Rhino Light 2': '#EBF0F8', - 'Rhino Light 1': '#DFE8F3', - 'Rhino Medium 2': '#C8D4E3', - 'Rhino Medium 1': '#A2B1C6', - 'Rhino Dark': '#506784', - 'Rhino Core': '#2a3f5f', - 'Dodger': '#119DFF', - 'Dodger Shade': '#0D76BF', - 'Aqua': '#09ffff', - 'Aqua Shade': '#19d3f3', - 'Lavender': '#e763fa', - 'Lavender Shade': '#ab63fa', - 'Cornflower': '#636efa', - 'Emerald': '#00cc96', - 'Sienna': '#EF553B' + "Rhino Light 4": "#f2f5fa", + "Rhino Light 3": "#F3F6FA", + "Rhino Light 2": "#EBF0F8", + "Rhino Light 1": "#DFE8F3", + "Rhino Medium 2": "#C8D4E3", + "Rhino Medium 1": "#A2B1C6", + "Rhino Dark": "#506784", + "Rhino Core": "#2a3f5f", + "Dodger": "#119DFF", + "Dodger Shade": "#0D76BF", + "Aqua": "#09ffff", + "Aqua Shade": "#19d3f3", + "Lavender": "#e763fa", + "Lavender Shade": "#ab63fa", + "Cornflower": "#636efa", + "Emerald": "#00cc96", + "Sienna": "#EF553B", } # ## Add interpolated theme colors # # Interpolate from Rhino Dark to 0.5 of the way toward Black # https://meyerweb.com/eric/tools/color-blend/#506784:000000:1:hex -plotly_clrs['Rhino Darker'] = '#283442' +plotly_clrs["Rhino Darker"] = "#283442" # https://meyerweb.com/eric/tools/color-blend/#DFE8F3:EBF0F8:1:hex -plotly_clrs['Rhino Light 1.5'] = '#E5ECF6' +plotly_clrs["Rhino Light 1.5"] = "#E5ECF6" # Perceptually uniform colorscale that matches brand colors really well. # Trim the upper and lower ends so that it doesn't go so close to black and @@ -219,8 +208,10 @@ def seaborn(): # backgrounds bmw_subset = cc.b_linear_bmw_5_95_c86[50:230] linear_bmw_5_95_c86_n256 = [ - [i/(len(bmw_subset)-1), clr] for i, clr in enumerate(bmw_subset) - if i % 16 == 0 or i == (len(bmw_subset)-1)] + [i / (len(bmw_subset) - 1), clr] + for i, clr in enumerate(bmw_subset) + if i % 16 == 0 or i == (len(bmw_subset) - 1) +] # Plasma colorscale @@ -244,33 +235,33 @@ def seaborn(): for i, x in enumerate(plasma_colors) ] -jupyterlab_output_clr = 'rgb(17,17,17)' +jupyterlab_output_clr = "rgb(17,17,17)" plotly_diverging = [ - [0, '#8e0152'], - [0.1, '#c51b7d'], - [0.2, '#de77ae'], - [0.3, '#f1b6da'], - [0.4, '#fde0ef'], - [0.5, '#f7f7f7'], - [0.6, '#e6f5d0'], - [0.7, '#b8e186'], - [0.8, '#7fbc41'], - [0.9, '#4d9221'], - [1, '#276419'], + [0, "#8e0152"], + [0.1, "#c51b7d"], + [0.2, "#de77ae"], + [0.3, "#f1b6da"], + [0.4, "#fde0ef"], + [0.5, "#f7f7f7"], + [0.6, "#e6f5d0"], + [0.7, "#b8e186"], + [0.8, "#7fbc41"], + [0.9, "#4d9221"], + [1, "#276419"], ] plotly_colorway = [ - plotly_clrs['Cornflower'], - plotly_clrs['Sienna'], - plotly_clrs['Emerald'], - plotly_clrs['Lavender Shade'], - '#FFA15A', - plotly_clrs['Aqua Shade'], - '#FF6692', - '#B6E880', - '#FF97FF', - '#FECB52', + plotly_clrs["Cornflower"], + plotly_clrs["Sienna"], + plotly_clrs["Emerald"], + plotly_clrs["Lavender Shade"], + "#FFA15A", + plotly_clrs["Aqua Shade"], + "#FF6692", + "#B6E880", + "#FF97FF", + "#FECB52", ] @@ -280,48 +271,39 @@ def plotly(): colorscale = plasma # Set colorbar_common - colorbar_common = dict( - outlinewidth=0, - ticks='') + colorbar_common = dict(outlinewidth=0, ticks="") # Common axis common properties - axis_common = dict( - gridcolor='white', - linecolor='white', - ticks='') + axis_common = dict(gridcolor="white", linecolor="white", ticks="") # semi-transparent black and no outline - annotation_clr = plotly_clrs['Rhino Dark'] - shape_defaults = dict( - fillcolor=annotation_clr, - line={'width': 0}, - opacity=0.4) + annotation_clr = plotly_clrs["Rhino Dark"] + shape_defaults = dict(fillcolor=annotation_clr, line={"width": 0}, opacity=0.4) # Remove arrow head and make line thinner annotation_defaults = { - 'arrowcolor': annotation_clr, - 'arrowhead': 0, - 'arrowwidth': 1 - + "arrowcolor": annotation_clr, + "arrowhead": 0, + "arrowwidth": 1, } template = initialize_template( - paper_clr='white', - font_clr=plotly_clrs['Rhino Core'], - panel_background_clr=plotly_clrs['Rhino Light 1.5'], - panel_grid_clr='white', - axis_ticks_clr=plotly_clrs['Rhino Core'], - zerolinecolor_clr='white', - table_cell_clr=plotly_clrs['Rhino Light 2'], - table_header_clr=plotly_clrs['Rhino Medium 2'], - table_line_clr='white', + paper_clr="white", + font_clr=plotly_clrs["Rhino Core"], + panel_background_clr=plotly_clrs["Rhino Light 1.5"], + panel_grid_clr="white", + axis_ticks_clr=plotly_clrs["Rhino Core"], + zerolinecolor_clr="white", + table_cell_clr=plotly_clrs["Rhino Light 2"], + table_header_clr=plotly_clrs["Rhino Medium 2"], + table_line_clr="white", colorway=plotly_colorway, colorbar_common=colorbar_common, colorscale=colorscale, colorscale_diverging=plotly_diverging, axis_common=axis_common, annotation_defaults=annotation_defaults, - shape_defaults=shape_defaults + shape_defaults=shape_defaults, ) # Left align title @@ -337,13 +319,13 @@ def plotly(): template.layout.yaxis.zerolinewidth = 2 # Mapbox light style - template.layout.mapbox.style = 'light' + template.layout.mapbox.style = "light" # Set table header font color to white return template -builders['plotly'] = plotly +builders["plotly"] = plotly def plotly_white(): @@ -352,62 +334,58 @@ def plotly_white(): colorscale = plasma # Set colorbar_common - colorbar_common = dict( - outlinewidth=0, - ticks='') + colorbar_common = dict(outlinewidth=0, ticks="") # Common axis common properties axis_common = dict( - gridcolor=plotly_clrs['Rhino Light 2'], - linecolor=plotly_clrs['Rhino Light 2'], - ticks='') + gridcolor=plotly_clrs["Rhino Light 2"], + linecolor=plotly_clrs["Rhino Light 2"], + ticks="", + ) # semi-transparent black and no outline - annotation_clr = plotly_clrs['Rhino Dark'] - shape_defaults = dict( - fillcolor=annotation_clr, - line={'width': 0}, - opacity=0.4) + annotation_clr = plotly_clrs["Rhino Dark"] + shape_defaults = dict(fillcolor=annotation_clr, line={"width": 0}, opacity=0.4) # Remove arrow head and make line thinner annotation_defaults = { - 'arrowcolor': annotation_clr, - 'arrowhead': 0, - 'arrowwidth': 1 - + "arrowcolor": annotation_clr, + "arrowhead": 0, + "arrowwidth": 1, } template = initialize_template( - paper_clr='white', - font_clr=plotly_clrs['Rhino Core'], - panel_background_clr='white', - panel_grid_clr=plotly_clrs['Rhino Medium 2'], - axis_ticks_clr=plotly_clrs['Rhino Core'], - zerolinecolor_clr=plotly_clrs['Rhino Light 2'], - table_cell_clr=plotly_clrs['Rhino Light 2'], - table_header_clr=plotly_clrs['Rhino Medium 2'], - table_line_clr='white', + paper_clr="white", + font_clr=plotly_clrs["Rhino Core"], + panel_background_clr="white", + panel_grid_clr=plotly_clrs["Rhino Medium 2"], + axis_ticks_clr=plotly_clrs["Rhino Core"], + zerolinecolor_clr=plotly_clrs["Rhino Light 2"], + table_cell_clr=plotly_clrs["Rhino Light 2"], + table_header_clr=plotly_clrs["Rhino Medium 2"], + table_line_clr="white", colorway=plotly_colorway, colorbar_common=colorbar_common, colorscale=colorscale, colorscale_diverging=plotly_diverging, axis_common=axis_common, annotation_defaults=annotation_defaults, - shape_defaults=shape_defaults + shape_defaults=shape_defaults, ) # Left align title template.layout.title.x = 0.05 # Increase grid width for 3d plots - opts = dict(gridwidth=2, gridcolor=plotly_clrs['Rhino Light 1']) + opts = dict(gridwidth=2, gridcolor=plotly_clrs["Rhino Light 1"]) template.layout.scene.xaxis.update(opts) template.layout.scene.yaxis.update(opts) template.layout.scene.zaxis.update(opts) # Darken ternary - opts = dict(linecolor=plotly_clrs['Rhino Medium 1'], - gridcolor=plotly_clrs['Rhino Light 1']) + opts = dict( + linecolor=plotly_clrs["Rhino Medium 1"], gridcolor=plotly_clrs["Rhino Light 1"] + ) template.layout.ternary.aaxis.update(opts) template.layout.ternary.baxis.update(opts) template.layout.ternary.caxis.update(opts) @@ -417,13 +395,13 @@ def plotly_white(): template.layout.yaxis.zerolinewidth = 2 # Mapbox light style - template.layout.mapbox.style = 'light' + template.layout.mapbox.style = "light" # Set table header font color to white return template -builders['plotly_white'] = plotly_white +builders["plotly_white"] = plotly_white def plotly_dark(): @@ -432,40 +410,32 @@ def plotly_dark(): colorscale = plasma # Set colorbar_common - colorbar_common = dict( - outlinewidth=0, - ticks='') + colorbar_common = dict(outlinewidth=0, ticks="") # Common axis common properties - grid_color = plotly_clrs['Rhino Dark'] - axis_common = dict( - gridcolor=grid_color, - linecolor=grid_color, - ticks='') + grid_color = plotly_clrs["Rhino Dark"] + axis_common = dict(gridcolor=grid_color, linecolor=grid_color, ticks="") # semi-transparent black and no outline - annotation_clr = plotly_clrs['Rhino Light 4'] - shape_defaults = dict( - fillcolor=annotation_clr, - line={'width': 0}, - opacity=0.4) + annotation_clr = plotly_clrs["Rhino Light 4"] + shape_defaults = dict(fillcolor=annotation_clr, line={"width": 0}, opacity=0.4) # Remove arrow head and make line thinner annotation_defaults = { - 'arrowcolor': annotation_clr, - 'arrowhead': 0, - 'arrowwidth': 1 + "arrowcolor": annotation_clr, + "arrowhead": 0, + "arrowwidth": 1, } template = initialize_template( paper_clr=jupyterlab_output_clr, - font_clr=plotly_clrs['Rhino Light 4'], + font_clr=plotly_clrs["Rhino Light 4"], panel_background_clr=jupyterlab_output_clr, panel_grid_clr=grid_color, - axis_ticks_clr=plotly_clrs['Rhino Medium 1'], - zerolinecolor_clr=plotly_clrs['Rhino Medium 2'], - table_cell_clr=plotly_clrs['Rhino Dark'], - table_header_clr=plotly_clrs['Rhino Core'], + axis_ticks_clr=plotly_clrs["Rhino Medium 1"], + zerolinecolor_clr=plotly_clrs["Rhino Medium 2"], + table_cell_clr=plotly_clrs["Rhino Dark"], + table_header_clr=plotly_clrs["Rhino Core"], table_line_clr=jupyterlab_output_clr, colorway=plotly_colorway, colorbar_common=colorbar_common, @@ -473,7 +443,7 @@ def plotly_dark(): colorscale_diverging=plotly_diverging, axis_common=axis_common, annotation_defaults=annotation_defaults, - shape_defaults=shape_defaults + shape_defaults=shape_defaults, ) # Left align title @@ -485,30 +455,30 @@ def plotly_dark(): template.layout.scene.zaxis.gridwidth = 2 # Button styling - template.layout.updatemenudefaults.bgcolor = plotly_clrs['Rhino Dark'] + template.layout.updatemenudefaults.bgcolor = plotly_clrs["Rhino Dark"] template.layout.updatemenudefaults.borderwidth = 0 # Slider styling - template.layout.sliderdefaults.bgcolor = '#C8D4E3' + template.layout.sliderdefaults.bgcolor = "#C8D4E3" template.layout.sliderdefaults.borderwidth = 1 - template.layout.sliderdefaults.bordercolor = 'rgb(17,17,17)' + template.layout.sliderdefaults.bordercolor = "rgb(17,17,17)" template.layout.sliderdefaults.tickwidth = 0 # Darken cartesian grid lines a little more - template.layout.xaxis.gridcolor = plotly_clrs['Rhino Darker'] - template.layout.yaxis.gridcolor = plotly_clrs['Rhino Darker'] + template.layout.xaxis.gridcolor = plotly_clrs["Rhino Darker"] + template.layout.yaxis.gridcolor = plotly_clrs["Rhino Darker"] # Increase width of cartesian zero lines - template.layout.xaxis.zerolinecolor = plotly_clrs['Rhino Darker'] - template.layout.yaxis.zerolinecolor = plotly_clrs['Rhino Darker'] + template.layout.xaxis.zerolinecolor = plotly_clrs["Rhino Darker"] + template.layout.yaxis.zerolinecolor = plotly_clrs["Rhino Darker"] template.layout.xaxis.zerolinewidth = 2 template.layout.yaxis.zerolinewidth = 2 # Mapbox light style - template.layout.mapbox.style = 'dark' + template.layout.mapbox.style = "dark" # Set marker outline color - opts = {'marker': {'line': {'color': plotly_clrs['Rhino Darker']}}} + opts = {"marker": {"line": {"color": plotly_clrs["Rhino Darker"]}}} template.data.scatter = [opts] template.data.scattergl = [opts] @@ -516,7 +486,7 @@ def plotly_dark(): return template -builders['plotly_dark'] = plotly_dark +builders["plotly_dark"] = plotly_dark def presentation(): @@ -532,7 +502,7 @@ def presentation(): template.layout.font.size = 18 # Increase scatter markers and lines by 1.5x - opts = {'marker': {'size': 9}, 'line': {'width': 3}} + opts = {"marker": {"size": 9}, "line": {"width": 3}} template.data.scatter = [opts] template.data.scattergl = [opts] template.data.scatter3d = [opts] @@ -542,13 +512,12 @@ def presentation(): template.data.scattergeo = [opts] # Increase default height of table cells - template.data.table = [{'header': {'height': 36}, - 'cells': {'height': 30}}] + template.data.table = [{"header": {"height": 36}, "cells": {"height": 30}}] return template -builders['presentation'] = presentation +builders["presentation"] = presentation def xgridoff(): @@ -562,4 +531,4 @@ def xgridoff(): return template -builders['xgridoff'] = xgridoff +builders["xgridoff"] = xgridoff diff --git a/packages/python/plotly/templategen/utils/__init__.py b/packages/python/plotly/templategen/utils/__init__.py index fa821ccd972..264645d121d 100644 --- a/packages/python/plotly/templategen/utils/__init__.py +++ b/packages/python/plotly/templategen/utils/__init__.py @@ -1,31 +1,31 @@ from plotly import graph_objs as go colorscale_parent_paths = [ - ('histogram2dcontour',), - ('choropleth',), - ('histogram2d',), - ('heatmap',), - ('heatmapgl',), - ('contourcarpet',), - ('contour',), - ('surface',), - ('mesh3d',), - ('scatter', 'marker'), - ('parcoords', 'line'), - ('scatterpolargl', 'marker'), - ('bar', 'marker'), - ('scattergeo', 'marker'), - ('scatterpolar', 'marker'), - ('histogram', 'marker'), - ('scattergl', 'marker'), - ('scatter3d', 'line'), - ('scatter3d', 'marker'), - ('scattermapbox', 'marker'), - ('scatterternary', 'marker'), - ('scattercarpet', 'marker'), - ('scatter', 'marker', 'line'), - ('scatterpolargl', 'marker', 'line'), - ('bar', 'marker', 'line') + ("histogram2dcontour",), + ("choropleth",), + ("histogram2d",), + ("heatmap",), + ("heatmapgl",), + ("contourcarpet",), + ("contour",), + ("surface",), + ("mesh3d",), + ("scatter", "marker"), + ("parcoords", "line"), + ("scatterpolargl", "marker"), + ("bar", "marker"), + ("scattergeo", "marker"), + ("scatterpolar", "marker"), + ("histogram", "marker"), + ("scattergl", "marker"), + ("scatter3d", "line"), + ("scatter3d", "marker"), + ("scattermapbox", "marker"), + ("scatterternary", "marker"), + ("scattercarpet", "marker"), + ("scatter", "marker", "line"), + ("scatterpolargl", "marker", "line"), + ("bar", "marker", "line"), ] @@ -37,27 +37,29 @@ def set_all_colorbars(template, colorbar): for trace in template.data[parent_path[0]]: parent = trace[parent_path[1:]] - if 'colorbar' in parent: + if "colorbar" in parent: parent.colorbar = colorbar -def initialize_template(annotation_defaults, - axis_common, - axis_ticks_clr, - colorbar_common, - colorscale, - colorway, - font_clr, - panel_background_clr, - panel_grid_clr, - paper_clr, - shape_defaults, - table_cell_clr, - table_header_clr, - table_line_clr, - zerolinecolor_clr, - colorscale_minus=None, - colorscale_diverging=None): +def initialize_template( + annotation_defaults, + axis_common, + axis_ticks_clr, + colorbar_common, + colorscale, + colorway, + font_clr, + panel_background_clr, + panel_grid_clr, + paper_clr, + shape_defaults, + table_cell_clr, + table_header_clr, + table_line_clr, + zerolinecolor_clr, + colorscale_minus=None, + colorscale_diverging=None, +): # Initialize template # ------------------- @@ -70,10 +72,10 @@ def initialize_template(annotation_defaults, template.layout.font.color = font_clr # hovermode - template.layout.hovermode = 'closest' + template.layout.hovermode = "closest" # right-align hoverlabels - template.layout.hoverlabel.align = 'left' + template.layout.hoverlabel.align = "left" # Set background colors template.layout.paper_bgcolor = paper_clr @@ -110,8 +112,8 @@ def initialize_template(annotation_defaults, # 3D axis_3d = dict(cartesian_axis) if panel_background_clr: - axis_3d['backgroundcolor'] = panel_background_clr - axis_3d['showbackground'] = True + axis_3d["backgroundcolor"] = panel_background_clr + axis_3d["showbackground"] = True template.layout.scene.xaxis = axis_3d template.layout.scene.yaxis = axis_3d template.layout.scene.zaxis = axis_3d @@ -131,10 +133,9 @@ def initialize_template(annotation_defaults, linecolor=panel_grid_clr, startlinecolor=axis_ticks_clr, endlinecolor=axis_ticks_clr, - minorgridcolor=panel_grid_clr) - template.data.carpet = [{ - 'aaxis': carpet_axis, - 'baxis': carpet_axis}] + minorgridcolor=panel_grid_clr, + ) + template.data.carpet = [{"aaxis": carpet_axis, "baxis": carpet_axis}] # Shape defaults template.layout.shapedefaults = shape_defaults @@ -151,15 +152,25 @@ def initialize_template(annotation_defaults, template.layout.geo.lakecolor = paper_clr # Table - template.data.table = [{'header': {'fill': {'color': table_header_clr}, - 'line': {'color': table_line_clr},}, - 'cells': {'fill': {'color': table_cell_clr}, - 'line': {'color': table_line_clr}}}] + template.data.table = [ + { + "header": { + "fill": {"color": table_header_clr}, + "line": {"color": table_line_clr}, + }, + "cells": { + "fill": {"color": table_cell_clr}, + "line": {"color": table_line_clr}, + }, + } + ] # Bar outline template.data.bar = [ - {'marker': {'line': {'width': 0.5, 'color': panel_background_clr}}}] + {"marker": {"line": {"width": 0.5, "color": panel_background_clr}}} + ] template.data.barpolar = [ - {'marker': {'line': {'width': 0.5, 'color': panel_background_clr}}}] + {"marker": {"line": {"width": 0.5, "color": panel_background_clr}}} + ] return template diff --git a/packages/python/plotly/templategen/utils/colors.py b/packages/python/plotly/templategen/utils/colors.py index 8131dd86aa5..305011903f0 100644 --- a/packages/python/plotly/templategen/utils/colors.py +++ b/packages/python/plotly/templategen/utils/colors.py @@ -10,7 +10,7 @@ def rgb_str(red, green, blue): - return 'rgb({},{},{})'.format(red, green, blue) + return "rgb({},{},{})".format(red, green, blue) ALICEBLUE = rgb_str(240, 248, 255) @@ -568,557 +568,557 @@ def rgb_str(red, green, blue): YELLOW3 = rgb_str(205, 205, 0) YELLOW4 = rgb_str(139, 139, 0) -colors['aliceblue'] = ALICEBLUE -colors['antiquewhite'] = ANTIQUEWHITE -colors['antiquewhite1'] = ANTIQUEWHITE1 -colors['antiquewhite2'] = ANTIQUEWHITE2 -colors['antiquewhite3'] = ANTIQUEWHITE3 -colors['antiquewhite4'] = ANTIQUEWHITE4 -colors['aqua'] = AQUA -colors['aquamarine1'] = AQUAMARINE1 -colors['aquamarine2'] = AQUAMARINE2 -colors['aquamarine3'] = AQUAMARINE3 -colors['aquamarine4'] = AQUAMARINE4 -colors['azure1'] = AZURE1 -colors['azure2'] = AZURE2 -colors['azure3'] = AZURE3 -colors['azure4'] = AZURE4 -colors['banana'] = BANANA -colors['beige'] = BEIGE -colors['bisque1'] = BISQUE1 -colors['bisque2'] = BISQUE2 -colors['bisque3'] = BISQUE3 -colors['bisque4'] = BISQUE4 -colors['black'] = BLACK -colors['blanchedalmond'] = BLANCHEDALMOND -colors['blue'] = BLUE -colors['blue2'] = BLUE2 -colors['blue3'] = BLUE3 -colors['blue4'] = BLUE4 -colors['blueviolet'] = BLUEVIOLET -colors['brick'] = BRICK -colors['brown'] = BROWN -colors['brown1'] = BROWN1 -colors['brown2'] = BROWN2 -colors['brown3'] = BROWN3 -colors['brown4'] = BROWN4 -colors['burlywood'] = BURLYWOOD -colors['burlywood1'] = BURLYWOOD1 -colors['burlywood2'] = BURLYWOOD2 -colors['burlywood3'] = BURLYWOOD3 -colors['burlywood4'] = BURLYWOOD4 -colors['burntsienna'] = BURNTSIENNA -colors['burntumber'] = BURNTUMBER -colors['cadetblue'] = CADETBLUE -colors['cadetblue1'] = CADETBLUE1 -colors['cadetblue2'] = CADETBLUE2 -colors['cadetblue3'] = CADETBLUE3 -colors['cadetblue4'] = CADETBLUE4 -colors['cadmiumorange'] = CADMIUMORANGE -colors['cadmiumyellow'] = CADMIUMYELLOW -colors['carrot'] = CARROT -colors['chartreuse1'] = CHARTREUSE1 -colors['chartreuse2'] = CHARTREUSE2 -colors['chartreuse3'] = CHARTREUSE3 -colors['chartreuse4'] = CHARTREUSE4 -colors['chocolate'] = CHOCOLATE -colors['chocolate1'] = CHOCOLATE1 -colors['chocolate2'] = CHOCOLATE2 -colors['chocolate3'] = CHOCOLATE3 -colors['chocolate4'] = CHOCOLATE4 -colors['cobalt'] = COBALT -colors['cobaltgreen'] = COBALTGREEN -colors['coldgrey'] = COLDGREY -colors['coral'] = CORAL -colors['coral1'] = CORAL1 -colors['coral2'] = CORAL2 -colors['coral3'] = CORAL3 -colors['coral4'] = CORAL4 -colors['cornflowerblue'] = CORNFLOWERBLUE -colors['cornsilk1'] = CORNSILK1 -colors['cornsilk2'] = CORNSILK2 -colors['cornsilk3'] = CORNSILK3 -colors['cornsilk4'] = CORNSILK4 -colors['crimson'] = CRIMSON -colors['cyan2'] = CYAN2 -colors['cyan3'] = CYAN3 -colors['cyan4'] = CYAN4 -colors['darkgoldenrod'] = DARKGOLDENROD -colors['darkgoldenrod1'] = DARKGOLDENROD1 -colors['darkgoldenrod2'] = DARKGOLDENROD2 -colors['darkgoldenrod3'] = DARKGOLDENROD3 -colors['darkgoldenrod4'] = DARKGOLDENROD4 -colors['darkgray'] = DARKGRAY -colors['darkgreen'] = DARKGREEN -colors['darkkhaki'] = DARKKHAKI -colors['darkolivegreen'] = DARKOLIVEGREEN -colors['darkolivegreen1'] = DARKOLIVEGREEN1 -colors['darkolivegreen2'] = DARKOLIVEGREEN2 -colors['darkolivegreen3'] = DARKOLIVEGREEN3 -colors['darkolivegreen4'] = DARKOLIVEGREEN4 -colors['darkorange'] = DARKORANGE -colors['darkorange1'] = DARKORANGE1 -colors['darkorange2'] = DARKORANGE2 -colors['darkorange3'] = DARKORANGE3 -colors['darkorange4'] = DARKORANGE4 -colors['darkorchid'] = DARKORCHID -colors['darkorchid1'] = DARKORCHID1 -colors['darkorchid2'] = DARKORCHID2 -colors['darkorchid3'] = DARKORCHID3 -colors['darkorchid4'] = DARKORCHID4 -colors['darksalmon'] = DARKSALMON -colors['darkseagreen'] = DARKSEAGREEN -colors['darkseagreen1'] = DARKSEAGREEN1 -colors['darkseagreen2'] = DARKSEAGREEN2 -colors['darkseagreen3'] = DARKSEAGREEN3 -colors['darkseagreen4'] = DARKSEAGREEN4 -colors['darkslateblue'] = DARKSLATEBLUE -colors['darkslategray'] = DARKSLATEGRAY -colors['darkslategray1'] = DARKSLATEGRAY1 -colors['darkslategray2'] = DARKSLATEGRAY2 -colors['darkslategray3'] = DARKSLATEGRAY3 -colors['darkslategray4'] = DARKSLATEGRAY4 -colors['darkturquoise'] = DARKTURQUOISE -colors['darkviolet'] = DARKVIOLET -colors['deeppink1'] = DEEPPINK1 -colors['deeppink2'] = DEEPPINK2 -colors['deeppink3'] = DEEPPINK3 -colors['deeppink4'] = DEEPPINK4 -colors['deepskyblue1'] = DEEPSKYBLUE1 -colors['deepskyblue2'] = DEEPSKYBLUE2 -colors['deepskyblue3'] = DEEPSKYBLUE3 -colors['deepskyblue4'] = DEEPSKYBLUE4 -colors['dimgray'] = DIMGRAY -colors['dimgray'] = DIMGRAY -colors['dodgerblue1'] = DODGERBLUE1 -colors['dodgerblue2'] = DODGERBLUE2 -colors['dodgerblue3'] = DODGERBLUE3 -colors['dodgerblue4'] = DODGERBLUE4 -colors['eggshell'] = EGGSHELL -colors['emeraldgreen'] = EMERALDGREEN -colors['firebrick'] = FIREBRICK -colors['firebrick1'] = FIREBRICK1 -colors['firebrick2'] = FIREBRICK2 -colors['firebrick3'] = FIREBRICK3 -colors['firebrick4'] = FIREBRICK4 -colors['flesh'] = FLESH -colors['floralwhite'] = FLORALWHITE -colors['forestgreen'] = FORESTGREEN -colors['gainsboro'] = GAINSBORO -colors['ghostwhite'] = GHOSTWHITE -colors['gold1'] = GOLD1 -colors['gold2'] = GOLD2 -colors['gold3'] = GOLD3 -colors['gold4'] = GOLD4 -colors['goldenrod'] = GOLDENROD -colors['goldenrod1'] = GOLDENROD1 -colors['goldenrod2'] = GOLDENROD2 -colors['goldenrod3'] = GOLDENROD3 -colors['goldenrod4'] = GOLDENROD4 -colors['gray'] = GRAY -colors['gray1'] = GRAY1 -colors['gray10'] = GRAY10 -colors['gray11'] = GRAY11 -colors['gray12'] = GRAY12 -colors['gray13'] = GRAY13 -colors['gray14'] = GRAY14 -colors['gray15'] = GRAY15 -colors['gray16'] = GRAY16 -colors['gray17'] = GRAY17 -colors['gray18'] = GRAY18 -colors['gray19'] = GRAY19 -colors['gray2'] = GRAY2 -colors['gray20'] = GRAY20 -colors['gray21'] = GRAY21 -colors['gray22'] = GRAY22 -colors['gray23'] = GRAY23 -colors['gray24'] = GRAY24 -colors['gray25'] = GRAY25 -colors['gray26'] = GRAY26 -colors['gray27'] = GRAY27 -colors['gray28'] = GRAY28 -colors['gray29'] = GRAY29 -colors['gray3'] = GRAY3 -colors['gray30'] = GRAY30 -colors['gray31'] = GRAY31 -colors['gray32'] = GRAY32 -colors['gray33'] = GRAY33 -colors['gray34'] = GRAY34 -colors['gray35'] = GRAY35 -colors['gray36'] = GRAY36 -colors['gray37'] = GRAY37 -colors['gray38'] = GRAY38 -colors['gray39'] = GRAY39 -colors['gray4'] = GRAY4 -colors['gray40'] = GRAY40 -colors['gray42'] = GRAY42 -colors['gray43'] = GRAY43 -colors['gray44'] = GRAY44 -colors['gray45'] = GRAY45 -colors['gray46'] = GRAY46 -colors['gray47'] = GRAY47 -colors['gray48'] = GRAY48 -colors['gray49'] = GRAY49 -colors['gray5'] = GRAY5 -colors['gray50'] = GRAY50 -colors['gray51'] = GRAY51 -colors['gray52'] = GRAY52 -colors['gray53'] = GRAY53 -colors['gray54'] = GRAY54 -colors['gray55'] = GRAY55 -colors['gray56'] = GRAY56 -colors['gray57'] = GRAY57 -colors['gray58'] = GRAY58 -colors['gray59'] = GRAY59 -colors['gray6'] = GRAY6 -colors['gray60'] = GRAY60 -colors['gray61'] = GRAY61 -colors['gray62'] = GRAY62 -colors['gray63'] = GRAY63 -colors['gray64'] = GRAY64 -colors['gray65'] = GRAY65 -colors['gray66'] = GRAY66 -colors['gray67'] = GRAY67 -colors['gray68'] = GRAY68 -colors['gray69'] = GRAY69 -colors['gray7'] = GRAY7 -colors['gray70'] = GRAY70 -colors['gray71'] = GRAY71 -colors['gray72'] = GRAY72 -colors['gray73'] = GRAY73 -colors['gray74'] = GRAY74 -colors['gray75'] = GRAY75 -colors['gray76'] = GRAY76 -colors['gray77'] = GRAY77 -colors['gray78'] = GRAY78 -colors['gray79'] = GRAY79 -colors['gray8'] = GRAY8 -colors['gray80'] = GRAY80 -colors['gray81'] = GRAY81 -colors['gray82'] = GRAY82 -colors['gray83'] = GRAY83 -colors['gray84'] = GRAY84 -colors['gray85'] = GRAY85 -colors['gray86'] = GRAY86 -colors['gray87'] = GRAY87 -colors['gray88'] = GRAY88 -colors['gray89'] = GRAY89 -colors['gray9'] = GRAY9 -colors['gray90'] = GRAY90 -colors['gray91'] = GRAY91 -colors['gray92'] = GRAY92 -colors['gray93'] = GRAY93 -colors['gray94'] = GRAY94 -colors['gray95'] = GRAY95 -colors['gray97'] = GRAY97 -colors['gray98'] = GRAY98 -colors['gray99'] = GRAY99 -colors['green'] = GREEN -colors['green1'] = GREEN1 -colors['green2'] = GREEN2 -colors['green3'] = GREEN3 -colors['green4'] = GREEN4 -colors['greenyellow'] = GREENYELLOW -colors['honeydew1'] = HONEYDEW1 -colors['honeydew2'] = HONEYDEW2 -colors['honeydew3'] = HONEYDEW3 -colors['honeydew4'] = HONEYDEW4 -colors['hotpink'] = HOTPINK -colors['hotpink1'] = HOTPINK1 -colors['hotpink2'] = HOTPINK2 -colors['hotpink3'] = HOTPINK3 -colors['hotpink4'] = HOTPINK4 -colors['indianred'] = INDIANRED -colors['indianred'] = INDIANRED -colors['indianred1'] = INDIANRED1 -colors['indianred2'] = INDIANRED2 -colors['indianred3'] = INDIANRED3 -colors['indianred4'] = INDIANRED4 -colors['indigo'] = INDIGO -colors['ivory1'] = IVORY1 -colors['ivory2'] = IVORY2 -colors['ivory3'] = IVORY3 -colors['ivory4'] = IVORY4 -colors['ivoryblack'] = IVORYBLACK -colors['khaki'] = KHAKI -colors['khaki1'] = KHAKI1 -colors['khaki2'] = KHAKI2 -colors['khaki3'] = KHAKI3 -colors['khaki4'] = KHAKI4 -colors['lavender'] = LAVENDER -colors['lavenderblush1'] = LAVENDERBLUSH1 -colors['lavenderblush2'] = LAVENDERBLUSH2 -colors['lavenderblush3'] = LAVENDERBLUSH3 -colors['lavenderblush4'] = LAVENDERBLUSH4 -colors['lawngreen'] = LAWNGREEN -colors['lemonchiffon1'] = LEMONCHIFFON1 -colors['lemonchiffon2'] = LEMONCHIFFON2 -colors['lemonchiffon3'] = LEMONCHIFFON3 -colors['lemonchiffon4'] = LEMONCHIFFON4 -colors['lightblue'] = LIGHTBLUE -colors['lightblue1'] = LIGHTBLUE1 -colors['lightblue2'] = LIGHTBLUE2 -colors['lightblue3'] = LIGHTBLUE3 -colors['lightblue4'] = LIGHTBLUE4 -colors['lightcoral'] = LIGHTCORAL -colors['lightcyan1'] = LIGHTCYAN1 -colors['lightcyan2'] = LIGHTCYAN2 -colors['lightcyan3'] = LIGHTCYAN3 -colors['lightcyan4'] = LIGHTCYAN4 -colors['lightgoldenrod1'] = LIGHTGOLDENROD1 -colors['lightgoldenrod2'] = LIGHTGOLDENROD2 -colors['lightgoldenrod3'] = LIGHTGOLDENROD3 -colors['lightgoldenrod4'] = LIGHTGOLDENROD4 -colors['lightgoldenrodyellow'] = LIGHTGOLDENRODYELLOW -colors['lightgrey'] = LIGHTGREY -colors['lightpink'] = LIGHTPINK -colors['lightpink1'] = LIGHTPINK1 -colors['lightpink2'] = LIGHTPINK2 -colors['lightpink3'] = LIGHTPINK3 -colors['lightpink4'] = LIGHTPINK4 -colors['lightsalmon1'] = LIGHTSALMON1 -colors['lightsalmon2'] = LIGHTSALMON2 -colors['lightsalmon3'] = LIGHTSALMON3 -colors['lightsalmon4'] = LIGHTSALMON4 -colors['lightseagreen'] = LIGHTSEAGREEN -colors['lightskyblue'] = LIGHTSKYBLUE -colors['lightskyblue1'] = LIGHTSKYBLUE1 -colors['lightskyblue2'] = LIGHTSKYBLUE2 -colors['lightskyblue3'] = LIGHTSKYBLUE3 -colors['lightskyblue4'] = LIGHTSKYBLUE4 -colors['lightslateblue'] = LIGHTSLATEBLUE -colors['lightslategray'] = LIGHTSLATEGRAY -colors['lightsteelblue'] = LIGHTSTEELBLUE -colors['lightsteelblue1'] = LIGHTSTEELBLUE1 -colors['lightsteelblue2'] = LIGHTSTEELBLUE2 -colors['lightsteelblue3'] = LIGHTSTEELBLUE3 -colors['lightsteelblue4'] = LIGHTSTEELBLUE4 -colors['lightyellow1'] = LIGHTYELLOW1 -colors['lightyellow2'] = LIGHTYELLOW2 -colors['lightyellow3'] = LIGHTYELLOW3 -colors['lightyellow4'] = LIGHTYELLOW4 -colors['limegreen'] = LIMEGREEN -colors['linen'] = LINEN -colors['magenta'] = MAGENTA -colors['magenta2'] = MAGENTA2 -colors['magenta3'] = MAGENTA3 -colors['magenta4'] = MAGENTA4 -colors['manganeseblue'] = MANGANESEBLUE -colors['maroon'] = MAROON -colors['maroon1'] = MAROON1 -colors['maroon2'] = MAROON2 -colors['maroon3'] = MAROON3 -colors['maroon4'] = MAROON4 -colors['mediumorchid'] = MEDIUMORCHID -colors['mediumorchid1'] = MEDIUMORCHID1 -colors['mediumorchid2'] = MEDIUMORCHID2 -colors['mediumorchid3'] = MEDIUMORCHID3 -colors['mediumorchid4'] = MEDIUMORCHID4 -colors['mediumpurple'] = MEDIUMPURPLE -colors['mediumpurple1'] = MEDIUMPURPLE1 -colors['mediumpurple2'] = MEDIUMPURPLE2 -colors['mediumpurple3'] = MEDIUMPURPLE3 -colors['mediumpurple4'] = MEDIUMPURPLE4 -colors['mediumseagreen'] = MEDIUMSEAGREEN -colors['mediumslateblue'] = MEDIUMSLATEBLUE -colors['mediumspringgreen'] = MEDIUMSPRINGGREEN -colors['mediumturquoise'] = MEDIUMTURQUOISE -colors['mediumvioletred'] = MEDIUMVIOLETRED -colors['melon'] = MELON -colors['midnightblue'] = MIDNIGHTBLUE -colors['mint'] = MINT -colors['mintcream'] = MINTCREAM -colors['mistyrose1'] = MISTYROSE1 -colors['mistyrose2'] = MISTYROSE2 -colors['mistyrose3'] = MISTYROSE3 -colors['mistyrose4'] = MISTYROSE4 -colors['moccasin'] = MOCCASIN -colors['navajowhite1'] = NAVAJOWHITE1 -colors['navajowhite2'] = NAVAJOWHITE2 -colors['navajowhite3'] = NAVAJOWHITE3 -colors['navajowhite4'] = NAVAJOWHITE4 -colors['navy'] = NAVY -colors['oldlace'] = OLDLACE -colors['olive'] = OLIVE -colors['olivedrab'] = OLIVEDRAB -colors['olivedrab1'] = OLIVEDRAB1 -colors['olivedrab2'] = OLIVEDRAB2 -colors['olivedrab3'] = OLIVEDRAB3 -colors['olivedrab4'] = OLIVEDRAB4 -colors['orange'] = ORANGE -colors['orange1'] = ORANGE1 -colors['orange2'] = ORANGE2 -colors['orange3'] = ORANGE3 -colors['orange4'] = ORANGE4 -colors['orangered1'] = ORANGERED1 -colors['orangered2'] = ORANGERED2 -colors['orangered3'] = ORANGERED3 -colors['orangered4'] = ORANGERED4 -colors['orchid'] = ORCHID -colors['orchid1'] = ORCHID1 -colors['orchid2'] = ORCHID2 -colors['orchid3'] = ORCHID3 -colors['orchid4'] = ORCHID4 -colors['palegoldenrod'] = PALEGOLDENROD -colors['palegreen'] = PALEGREEN -colors['palegreen1'] = PALEGREEN1 -colors['palegreen2'] = PALEGREEN2 -colors['palegreen3'] = PALEGREEN3 -colors['palegreen4'] = PALEGREEN4 -colors['paleturquoise1'] = PALETURQUOISE1 -colors['paleturquoise2'] = PALETURQUOISE2 -colors['paleturquoise3'] = PALETURQUOISE3 -colors['paleturquoise4'] = PALETURQUOISE4 -colors['palevioletred'] = PALEVIOLETRED -colors['palevioletred1'] = PALEVIOLETRED1 -colors['palevioletred2'] = PALEVIOLETRED2 -colors['palevioletred3'] = PALEVIOLETRED3 -colors['palevioletred4'] = PALEVIOLETRED4 -colors['papayawhip'] = PAPAYAWHIP -colors['peachpuff1'] = PEACHPUFF1 -colors['peachpuff2'] = PEACHPUFF2 -colors['peachpuff3'] = PEACHPUFF3 -colors['peachpuff4'] = PEACHPUFF4 -colors['peacock'] = PEACOCK -colors['pink'] = PINK -colors['pink1'] = PINK1 -colors['pink2'] = PINK2 -colors['pink3'] = PINK3 -colors['pink4'] = PINK4 -colors['plum'] = PLUM -colors['plum1'] = PLUM1 -colors['plum2'] = PLUM2 -colors['plum3'] = PLUM3 -colors['plum4'] = PLUM4 -colors['powderblue'] = POWDERBLUE -colors['purple'] = PURPLE -colors['purple1'] = PURPLE1 -colors['purple2'] = PURPLE2 -colors['purple3'] = PURPLE3 -colors['purple4'] = PURPLE4 -colors['raspberry'] = RASPBERRY -colors['rawsienna'] = RAWSIENNA -colors['red1'] = RED1 -colors['red2'] = RED2 -colors['red3'] = RED3 -colors['red4'] = RED4 -colors['rosybrown'] = ROSYBROWN -colors['rosybrown1'] = ROSYBROWN1 -colors['rosybrown2'] = ROSYBROWN2 -colors['rosybrown3'] = ROSYBROWN3 -colors['rosybrown4'] = ROSYBROWN4 -colors['royalblue'] = ROYALBLUE -colors['royalblue1'] = ROYALBLUE1 -colors['royalblue2'] = ROYALBLUE2 -colors['royalblue3'] = ROYALBLUE3 -colors['royalblue4'] = ROYALBLUE4 -colors['salmon'] = SALMON -colors['salmon1'] = SALMON1 -colors['salmon2'] = SALMON2 -colors['salmon3'] = SALMON3 -colors['salmon4'] = SALMON4 -colors['sandybrown'] = SANDYBROWN -colors['sapgreen'] = SAPGREEN -colors['seagreen1'] = SEAGREEN1 -colors['seagreen2'] = SEAGREEN2 -colors['seagreen3'] = SEAGREEN3 -colors['seagreen4'] = SEAGREEN4 -colors['seashell1'] = SEASHELL1 -colors['seashell2'] = SEASHELL2 -colors['seashell3'] = SEASHELL3 -colors['seashell4'] = SEASHELL4 -colors['sepia'] = SEPIA -colors['sgibeet'] = SGIBEET -colors['sgibrightgray'] = SGIBRIGHTGRAY -colors['sgichartreuse'] = SGICHARTREUSE -colors['sgidarkgray'] = SGIDARKGRAY -colors['sgigray12'] = SGIGRAY12 -colors['sgigray16'] = SGIGRAY16 -colors['sgigray32'] = SGIGRAY32 -colors['sgigray36'] = SGIGRAY36 -colors['sgigray52'] = SGIGRAY52 -colors['sgigray56'] = SGIGRAY56 -colors['sgigray72'] = SGIGRAY72 -colors['sgigray76'] = SGIGRAY76 -colors['sgigray92'] = SGIGRAY92 -colors['sgigray96'] = SGIGRAY96 -colors['sgilightblue'] = SGILIGHTBLUE -colors['sgilightgray'] = SGILIGHTGRAY -colors['sgiolivedrab'] = SGIOLIVEDRAB -colors['sgisalmon'] = SGISALMON -colors['sgislateblue'] = SGISLATEBLUE -colors['sgiteal'] = SGITEAL -colors['sienna'] = SIENNA -colors['sienna1'] = SIENNA1 -colors['sienna2'] = SIENNA2 -colors['sienna3'] = SIENNA3 -colors['sienna4'] = SIENNA4 -colors['silver'] = SILVER -colors['skyblue'] = SKYBLUE -colors['skyblue1'] = SKYBLUE1 -colors['skyblue2'] = SKYBLUE2 -colors['skyblue3'] = SKYBLUE3 -colors['skyblue4'] = SKYBLUE4 -colors['slateblue'] = SLATEBLUE -colors['slateblue1'] = SLATEBLUE1 -colors['slateblue2'] = SLATEBLUE2 -colors['slateblue3'] = SLATEBLUE3 -colors['slateblue4'] = SLATEBLUE4 -colors['slategray'] = SLATEGRAY -colors['slategray1'] = SLATEGRAY1 -colors['slategray2'] = SLATEGRAY2 -colors['slategray3'] = SLATEGRAY3 -colors['slategray4'] = SLATEGRAY4 -colors['snow1'] = SNOW1 -colors['snow2'] = SNOW2 -colors['snow3'] = SNOW3 -colors['snow4'] = SNOW4 -colors['springgreen'] = SPRINGGREEN -colors['springgreen1'] = SPRINGGREEN1 -colors['springgreen2'] = SPRINGGREEN2 -colors['springgreen3'] = SPRINGGREEN3 -colors['steelblue'] = STEELBLUE -colors['steelblue1'] = STEELBLUE1 -colors['steelblue2'] = STEELBLUE2 -colors['steelblue3'] = STEELBLUE3 -colors['steelblue4'] = STEELBLUE4 -colors['tan'] = TAN -colors['tan1'] = TAN1 -colors['tan2'] = TAN2 -colors['tan3'] = TAN3 -colors['tan4'] = TAN4 -colors['teal'] = TEAL -colors['thistle'] = THISTLE -colors['thistle1'] = THISTLE1 -colors['thistle2'] = THISTLE2 -colors['thistle3'] = THISTLE3 -colors['thistle4'] = THISTLE4 -colors['tomato1'] = TOMATO1 -colors['tomato2'] = TOMATO2 -colors['tomato3'] = TOMATO3 -colors['tomato4'] = TOMATO4 -colors['turquoise'] = TURQUOISE -colors['turquoise1'] = TURQUOISE1 -colors['turquoise2'] = TURQUOISE2 -colors['turquoise3'] = TURQUOISE3 -colors['turquoise4'] = TURQUOISE4 -colors['turquoiseblue'] = TURQUOISEBLUE -colors['violet'] = VIOLET -colors['violetred'] = VIOLETRED -colors['violetred1'] = VIOLETRED1 -colors['violetred2'] = VIOLETRED2 -colors['violetred3'] = VIOLETRED3 -colors['violetred4'] = VIOLETRED4 -colors['warmgrey'] = WARMGREY -colors['wheat'] = WHEAT -colors['wheat1'] = WHEAT1 -colors['wheat2'] = WHEAT2 -colors['wheat3'] = WHEAT3 -colors['wheat4'] = WHEAT4 -colors['white'] = WHITE -colors['whitesmoke'] = WHITESMOKE -colors['whitesmoke'] = WHITESMOKE -colors['yellow1'] = YELLOW1 -colors['yellow2'] = YELLOW2 -colors['yellow3'] = YELLOW3 -colors['yellow4'] = YELLOW4 +colors["aliceblue"] = ALICEBLUE +colors["antiquewhite"] = ANTIQUEWHITE +colors["antiquewhite1"] = ANTIQUEWHITE1 +colors["antiquewhite2"] = ANTIQUEWHITE2 +colors["antiquewhite3"] = ANTIQUEWHITE3 +colors["antiquewhite4"] = ANTIQUEWHITE4 +colors["aqua"] = AQUA +colors["aquamarine1"] = AQUAMARINE1 +colors["aquamarine2"] = AQUAMARINE2 +colors["aquamarine3"] = AQUAMARINE3 +colors["aquamarine4"] = AQUAMARINE4 +colors["azure1"] = AZURE1 +colors["azure2"] = AZURE2 +colors["azure3"] = AZURE3 +colors["azure4"] = AZURE4 +colors["banana"] = BANANA +colors["beige"] = BEIGE +colors["bisque1"] = BISQUE1 +colors["bisque2"] = BISQUE2 +colors["bisque3"] = BISQUE3 +colors["bisque4"] = BISQUE4 +colors["black"] = BLACK +colors["blanchedalmond"] = BLANCHEDALMOND +colors["blue"] = BLUE +colors["blue2"] = BLUE2 +colors["blue3"] = BLUE3 +colors["blue4"] = BLUE4 +colors["blueviolet"] = BLUEVIOLET +colors["brick"] = BRICK +colors["brown"] = BROWN +colors["brown1"] = BROWN1 +colors["brown2"] = BROWN2 +colors["brown3"] = BROWN3 +colors["brown4"] = BROWN4 +colors["burlywood"] = BURLYWOOD +colors["burlywood1"] = BURLYWOOD1 +colors["burlywood2"] = BURLYWOOD2 +colors["burlywood3"] = BURLYWOOD3 +colors["burlywood4"] = BURLYWOOD4 +colors["burntsienna"] = BURNTSIENNA +colors["burntumber"] = BURNTUMBER +colors["cadetblue"] = CADETBLUE +colors["cadetblue1"] = CADETBLUE1 +colors["cadetblue2"] = CADETBLUE2 +colors["cadetblue3"] = CADETBLUE3 +colors["cadetblue4"] = CADETBLUE4 +colors["cadmiumorange"] = CADMIUMORANGE +colors["cadmiumyellow"] = CADMIUMYELLOW +colors["carrot"] = CARROT +colors["chartreuse1"] = CHARTREUSE1 +colors["chartreuse2"] = CHARTREUSE2 +colors["chartreuse3"] = CHARTREUSE3 +colors["chartreuse4"] = CHARTREUSE4 +colors["chocolate"] = CHOCOLATE +colors["chocolate1"] = CHOCOLATE1 +colors["chocolate2"] = CHOCOLATE2 +colors["chocolate3"] = CHOCOLATE3 +colors["chocolate4"] = CHOCOLATE4 +colors["cobalt"] = COBALT +colors["cobaltgreen"] = COBALTGREEN +colors["coldgrey"] = COLDGREY +colors["coral"] = CORAL +colors["coral1"] = CORAL1 +colors["coral2"] = CORAL2 +colors["coral3"] = CORAL3 +colors["coral4"] = CORAL4 +colors["cornflowerblue"] = CORNFLOWERBLUE +colors["cornsilk1"] = CORNSILK1 +colors["cornsilk2"] = CORNSILK2 +colors["cornsilk3"] = CORNSILK3 +colors["cornsilk4"] = CORNSILK4 +colors["crimson"] = CRIMSON +colors["cyan2"] = CYAN2 +colors["cyan3"] = CYAN3 +colors["cyan4"] = CYAN4 +colors["darkgoldenrod"] = DARKGOLDENROD +colors["darkgoldenrod1"] = DARKGOLDENROD1 +colors["darkgoldenrod2"] = DARKGOLDENROD2 +colors["darkgoldenrod3"] = DARKGOLDENROD3 +colors["darkgoldenrod4"] = DARKGOLDENROD4 +colors["darkgray"] = DARKGRAY +colors["darkgreen"] = DARKGREEN +colors["darkkhaki"] = DARKKHAKI +colors["darkolivegreen"] = DARKOLIVEGREEN +colors["darkolivegreen1"] = DARKOLIVEGREEN1 +colors["darkolivegreen2"] = DARKOLIVEGREEN2 +colors["darkolivegreen3"] = DARKOLIVEGREEN3 +colors["darkolivegreen4"] = DARKOLIVEGREEN4 +colors["darkorange"] = DARKORANGE +colors["darkorange1"] = DARKORANGE1 +colors["darkorange2"] = DARKORANGE2 +colors["darkorange3"] = DARKORANGE3 +colors["darkorange4"] = DARKORANGE4 +colors["darkorchid"] = DARKORCHID +colors["darkorchid1"] = DARKORCHID1 +colors["darkorchid2"] = DARKORCHID2 +colors["darkorchid3"] = DARKORCHID3 +colors["darkorchid4"] = DARKORCHID4 +colors["darksalmon"] = DARKSALMON +colors["darkseagreen"] = DARKSEAGREEN +colors["darkseagreen1"] = DARKSEAGREEN1 +colors["darkseagreen2"] = DARKSEAGREEN2 +colors["darkseagreen3"] = DARKSEAGREEN3 +colors["darkseagreen4"] = DARKSEAGREEN4 +colors["darkslateblue"] = DARKSLATEBLUE +colors["darkslategray"] = DARKSLATEGRAY +colors["darkslategray1"] = DARKSLATEGRAY1 +colors["darkslategray2"] = DARKSLATEGRAY2 +colors["darkslategray3"] = DARKSLATEGRAY3 +colors["darkslategray4"] = DARKSLATEGRAY4 +colors["darkturquoise"] = DARKTURQUOISE +colors["darkviolet"] = DARKVIOLET +colors["deeppink1"] = DEEPPINK1 +colors["deeppink2"] = DEEPPINK2 +colors["deeppink3"] = DEEPPINK3 +colors["deeppink4"] = DEEPPINK4 +colors["deepskyblue1"] = DEEPSKYBLUE1 +colors["deepskyblue2"] = DEEPSKYBLUE2 +colors["deepskyblue3"] = DEEPSKYBLUE3 +colors["deepskyblue4"] = DEEPSKYBLUE4 +colors["dimgray"] = DIMGRAY +colors["dimgray"] = DIMGRAY +colors["dodgerblue1"] = DODGERBLUE1 +colors["dodgerblue2"] = DODGERBLUE2 +colors["dodgerblue3"] = DODGERBLUE3 +colors["dodgerblue4"] = DODGERBLUE4 +colors["eggshell"] = EGGSHELL +colors["emeraldgreen"] = EMERALDGREEN +colors["firebrick"] = FIREBRICK +colors["firebrick1"] = FIREBRICK1 +colors["firebrick2"] = FIREBRICK2 +colors["firebrick3"] = FIREBRICK3 +colors["firebrick4"] = FIREBRICK4 +colors["flesh"] = FLESH +colors["floralwhite"] = FLORALWHITE +colors["forestgreen"] = FORESTGREEN +colors["gainsboro"] = GAINSBORO +colors["ghostwhite"] = GHOSTWHITE +colors["gold1"] = GOLD1 +colors["gold2"] = GOLD2 +colors["gold3"] = GOLD3 +colors["gold4"] = GOLD4 +colors["goldenrod"] = GOLDENROD +colors["goldenrod1"] = GOLDENROD1 +colors["goldenrod2"] = GOLDENROD2 +colors["goldenrod3"] = GOLDENROD3 +colors["goldenrod4"] = GOLDENROD4 +colors["gray"] = GRAY +colors["gray1"] = GRAY1 +colors["gray10"] = GRAY10 +colors["gray11"] = GRAY11 +colors["gray12"] = GRAY12 +colors["gray13"] = GRAY13 +colors["gray14"] = GRAY14 +colors["gray15"] = GRAY15 +colors["gray16"] = GRAY16 +colors["gray17"] = GRAY17 +colors["gray18"] = GRAY18 +colors["gray19"] = GRAY19 +colors["gray2"] = GRAY2 +colors["gray20"] = GRAY20 +colors["gray21"] = GRAY21 +colors["gray22"] = GRAY22 +colors["gray23"] = GRAY23 +colors["gray24"] = GRAY24 +colors["gray25"] = GRAY25 +colors["gray26"] = GRAY26 +colors["gray27"] = GRAY27 +colors["gray28"] = GRAY28 +colors["gray29"] = GRAY29 +colors["gray3"] = GRAY3 +colors["gray30"] = GRAY30 +colors["gray31"] = GRAY31 +colors["gray32"] = GRAY32 +colors["gray33"] = GRAY33 +colors["gray34"] = GRAY34 +colors["gray35"] = GRAY35 +colors["gray36"] = GRAY36 +colors["gray37"] = GRAY37 +colors["gray38"] = GRAY38 +colors["gray39"] = GRAY39 +colors["gray4"] = GRAY4 +colors["gray40"] = GRAY40 +colors["gray42"] = GRAY42 +colors["gray43"] = GRAY43 +colors["gray44"] = GRAY44 +colors["gray45"] = GRAY45 +colors["gray46"] = GRAY46 +colors["gray47"] = GRAY47 +colors["gray48"] = GRAY48 +colors["gray49"] = GRAY49 +colors["gray5"] = GRAY5 +colors["gray50"] = GRAY50 +colors["gray51"] = GRAY51 +colors["gray52"] = GRAY52 +colors["gray53"] = GRAY53 +colors["gray54"] = GRAY54 +colors["gray55"] = GRAY55 +colors["gray56"] = GRAY56 +colors["gray57"] = GRAY57 +colors["gray58"] = GRAY58 +colors["gray59"] = GRAY59 +colors["gray6"] = GRAY6 +colors["gray60"] = GRAY60 +colors["gray61"] = GRAY61 +colors["gray62"] = GRAY62 +colors["gray63"] = GRAY63 +colors["gray64"] = GRAY64 +colors["gray65"] = GRAY65 +colors["gray66"] = GRAY66 +colors["gray67"] = GRAY67 +colors["gray68"] = GRAY68 +colors["gray69"] = GRAY69 +colors["gray7"] = GRAY7 +colors["gray70"] = GRAY70 +colors["gray71"] = GRAY71 +colors["gray72"] = GRAY72 +colors["gray73"] = GRAY73 +colors["gray74"] = GRAY74 +colors["gray75"] = GRAY75 +colors["gray76"] = GRAY76 +colors["gray77"] = GRAY77 +colors["gray78"] = GRAY78 +colors["gray79"] = GRAY79 +colors["gray8"] = GRAY8 +colors["gray80"] = GRAY80 +colors["gray81"] = GRAY81 +colors["gray82"] = GRAY82 +colors["gray83"] = GRAY83 +colors["gray84"] = GRAY84 +colors["gray85"] = GRAY85 +colors["gray86"] = GRAY86 +colors["gray87"] = GRAY87 +colors["gray88"] = GRAY88 +colors["gray89"] = GRAY89 +colors["gray9"] = GRAY9 +colors["gray90"] = GRAY90 +colors["gray91"] = GRAY91 +colors["gray92"] = GRAY92 +colors["gray93"] = GRAY93 +colors["gray94"] = GRAY94 +colors["gray95"] = GRAY95 +colors["gray97"] = GRAY97 +colors["gray98"] = GRAY98 +colors["gray99"] = GRAY99 +colors["green"] = GREEN +colors["green1"] = GREEN1 +colors["green2"] = GREEN2 +colors["green3"] = GREEN3 +colors["green4"] = GREEN4 +colors["greenyellow"] = GREENYELLOW +colors["honeydew1"] = HONEYDEW1 +colors["honeydew2"] = HONEYDEW2 +colors["honeydew3"] = HONEYDEW3 +colors["honeydew4"] = HONEYDEW4 +colors["hotpink"] = HOTPINK +colors["hotpink1"] = HOTPINK1 +colors["hotpink2"] = HOTPINK2 +colors["hotpink3"] = HOTPINK3 +colors["hotpink4"] = HOTPINK4 +colors["indianred"] = INDIANRED +colors["indianred"] = INDIANRED +colors["indianred1"] = INDIANRED1 +colors["indianred2"] = INDIANRED2 +colors["indianred3"] = INDIANRED3 +colors["indianred4"] = INDIANRED4 +colors["indigo"] = INDIGO +colors["ivory1"] = IVORY1 +colors["ivory2"] = IVORY2 +colors["ivory3"] = IVORY3 +colors["ivory4"] = IVORY4 +colors["ivoryblack"] = IVORYBLACK +colors["khaki"] = KHAKI +colors["khaki1"] = KHAKI1 +colors["khaki2"] = KHAKI2 +colors["khaki3"] = KHAKI3 +colors["khaki4"] = KHAKI4 +colors["lavender"] = LAVENDER +colors["lavenderblush1"] = LAVENDERBLUSH1 +colors["lavenderblush2"] = LAVENDERBLUSH2 +colors["lavenderblush3"] = LAVENDERBLUSH3 +colors["lavenderblush4"] = LAVENDERBLUSH4 +colors["lawngreen"] = LAWNGREEN +colors["lemonchiffon1"] = LEMONCHIFFON1 +colors["lemonchiffon2"] = LEMONCHIFFON2 +colors["lemonchiffon3"] = LEMONCHIFFON3 +colors["lemonchiffon4"] = LEMONCHIFFON4 +colors["lightblue"] = LIGHTBLUE +colors["lightblue1"] = LIGHTBLUE1 +colors["lightblue2"] = LIGHTBLUE2 +colors["lightblue3"] = LIGHTBLUE3 +colors["lightblue4"] = LIGHTBLUE4 +colors["lightcoral"] = LIGHTCORAL +colors["lightcyan1"] = LIGHTCYAN1 +colors["lightcyan2"] = LIGHTCYAN2 +colors["lightcyan3"] = LIGHTCYAN3 +colors["lightcyan4"] = LIGHTCYAN4 +colors["lightgoldenrod1"] = LIGHTGOLDENROD1 +colors["lightgoldenrod2"] = LIGHTGOLDENROD2 +colors["lightgoldenrod3"] = LIGHTGOLDENROD3 +colors["lightgoldenrod4"] = LIGHTGOLDENROD4 +colors["lightgoldenrodyellow"] = LIGHTGOLDENRODYELLOW +colors["lightgrey"] = LIGHTGREY +colors["lightpink"] = LIGHTPINK +colors["lightpink1"] = LIGHTPINK1 +colors["lightpink2"] = LIGHTPINK2 +colors["lightpink3"] = LIGHTPINK3 +colors["lightpink4"] = LIGHTPINK4 +colors["lightsalmon1"] = LIGHTSALMON1 +colors["lightsalmon2"] = LIGHTSALMON2 +colors["lightsalmon3"] = LIGHTSALMON3 +colors["lightsalmon4"] = LIGHTSALMON4 +colors["lightseagreen"] = LIGHTSEAGREEN +colors["lightskyblue"] = LIGHTSKYBLUE +colors["lightskyblue1"] = LIGHTSKYBLUE1 +colors["lightskyblue2"] = LIGHTSKYBLUE2 +colors["lightskyblue3"] = LIGHTSKYBLUE3 +colors["lightskyblue4"] = LIGHTSKYBLUE4 +colors["lightslateblue"] = LIGHTSLATEBLUE +colors["lightslategray"] = LIGHTSLATEGRAY +colors["lightsteelblue"] = LIGHTSTEELBLUE +colors["lightsteelblue1"] = LIGHTSTEELBLUE1 +colors["lightsteelblue2"] = LIGHTSTEELBLUE2 +colors["lightsteelblue3"] = LIGHTSTEELBLUE3 +colors["lightsteelblue4"] = LIGHTSTEELBLUE4 +colors["lightyellow1"] = LIGHTYELLOW1 +colors["lightyellow2"] = LIGHTYELLOW2 +colors["lightyellow3"] = LIGHTYELLOW3 +colors["lightyellow4"] = LIGHTYELLOW4 +colors["limegreen"] = LIMEGREEN +colors["linen"] = LINEN +colors["magenta"] = MAGENTA +colors["magenta2"] = MAGENTA2 +colors["magenta3"] = MAGENTA3 +colors["magenta4"] = MAGENTA4 +colors["manganeseblue"] = MANGANESEBLUE +colors["maroon"] = MAROON +colors["maroon1"] = MAROON1 +colors["maroon2"] = MAROON2 +colors["maroon3"] = MAROON3 +colors["maroon4"] = MAROON4 +colors["mediumorchid"] = MEDIUMORCHID +colors["mediumorchid1"] = MEDIUMORCHID1 +colors["mediumorchid2"] = MEDIUMORCHID2 +colors["mediumorchid3"] = MEDIUMORCHID3 +colors["mediumorchid4"] = MEDIUMORCHID4 +colors["mediumpurple"] = MEDIUMPURPLE +colors["mediumpurple1"] = MEDIUMPURPLE1 +colors["mediumpurple2"] = MEDIUMPURPLE2 +colors["mediumpurple3"] = MEDIUMPURPLE3 +colors["mediumpurple4"] = MEDIUMPURPLE4 +colors["mediumseagreen"] = MEDIUMSEAGREEN +colors["mediumslateblue"] = MEDIUMSLATEBLUE +colors["mediumspringgreen"] = MEDIUMSPRINGGREEN +colors["mediumturquoise"] = MEDIUMTURQUOISE +colors["mediumvioletred"] = MEDIUMVIOLETRED +colors["melon"] = MELON +colors["midnightblue"] = MIDNIGHTBLUE +colors["mint"] = MINT +colors["mintcream"] = MINTCREAM +colors["mistyrose1"] = MISTYROSE1 +colors["mistyrose2"] = MISTYROSE2 +colors["mistyrose3"] = MISTYROSE3 +colors["mistyrose4"] = MISTYROSE4 +colors["moccasin"] = MOCCASIN +colors["navajowhite1"] = NAVAJOWHITE1 +colors["navajowhite2"] = NAVAJOWHITE2 +colors["navajowhite3"] = NAVAJOWHITE3 +colors["navajowhite4"] = NAVAJOWHITE4 +colors["navy"] = NAVY +colors["oldlace"] = OLDLACE +colors["olive"] = OLIVE +colors["olivedrab"] = OLIVEDRAB +colors["olivedrab1"] = OLIVEDRAB1 +colors["olivedrab2"] = OLIVEDRAB2 +colors["olivedrab3"] = OLIVEDRAB3 +colors["olivedrab4"] = OLIVEDRAB4 +colors["orange"] = ORANGE +colors["orange1"] = ORANGE1 +colors["orange2"] = ORANGE2 +colors["orange3"] = ORANGE3 +colors["orange4"] = ORANGE4 +colors["orangered1"] = ORANGERED1 +colors["orangered2"] = ORANGERED2 +colors["orangered3"] = ORANGERED3 +colors["orangered4"] = ORANGERED4 +colors["orchid"] = ORCHID +colors["orchid1"] = ORCHID1 +colors["orchid2"] = ORCHID2 +colors["orchid3"] = ORCHID3 +colors["orchid4"] = ORCHID4 +colors["palegoldenrod"] = PALEGOLDENROD +colors["palegreen"] = PALEGREEN +colors["palegreen1"] = PALEGREEN1 +colors["palegreen2"] = PALEGREEN2 +colors["palegreen3"] = PALEGREEN3 +colors["palegreen4"] = PALEGREEN4 +colors["paleturquoise1"] = PALETURQUOISE1 +colors["paleturquoise2"] = PALETURQUOISE2 +colors["paleturquoise3"] = PALETURQUOISE3 +colors["paleturquoise4"] = PALETURQUOISE4 +colors["palevioletred"] = PALEVIOLETRED +colors["palevioletred1"] = PALEVIOLETRED1 +colors["palevioletred2"] = PALEVIOLETRED2 +colors["palevioletred3"] = PALEVIOLETRED3 +colors["palevioletred4"] = PALEVIOLETRED4 +colors["papayawhip"] = PAPAYAWHIP +colors["peachpuff1"] = PEACHPUFF1 +colors["peachpuff2"] = PEACHPUFF2 +colors["peachpuff3"] = PEACHPUFF3 +colors["peachpuff4"] = PEACHPUFF4 +colors["peacock"] = PEACOCK +colors["pink"] = PINK +colors["pink1"] = PINK1 +colors["pink2"] = PINK2 +colors["pink3"] = PINK3 +colors["pink4"] = PINK4 +colors["plum"] = PLUM +colors["plum1"] = PLUM1 +colors["plum2"] = PLUM2 +colors["plum3"] = PLUM3 +colors["plum4"] = PLUM4 +colors["powderblue"] = POWDERBLUE +colors["purple"] = PURPLE +colors["purple1"] = PURPLE1 +colors["purple2"] = PURPLE2 +colors["purple3"] = PURPLE3 +colors["purple4"] = PURPLE4 +colors["raspberry"] = RASPBERRY +colors["rawsienna"] = RAWSIENNA +colors["red1"] = RED1 +colors["red2"] = RED2 +colors["red3"] = RED3 +colors["red4"] = RED4 +colors["rosybrown"] = ROSYBROWN +colors["rosybrown1"] = ROSYBROWN1 +colors["rosybrown2"] = ROSYBROWN2 +colors["rosybrown3"] = ROSYBROWN3 +colors["rosybrown4"] = ROSYBROWN4 +colors["royalblue"] = ROYALBLUE +colors["royalblue1"] = ROYALBLUE1 +colors["royalblue2"] = ROYALBLUE2 +colors["royalblue3"] = ROYALBLUE3 +colors["royalblue4"] = ROYALBLUE4 +colors["salmon"] = SALMON +colors["salmon1"] = SALMON1 +colors["salmon2"] = SALMON2 +colors["salmon3"] = SALMON3 +colors["salmon4"] = SALMON4 +colors["sandybrown"] = SANDYBROWN +colors["sapgreen"] = SAPGREEN +colors["seagreen1"] = SEAGREEN1 +colors["seagreen2"] = SEAGREEN2 +colors["seagreen3"] = SEAGREEN3 +colors["seagreen4"] = SEAGREEN4 +colors["seashell1"] = SEASHELL1 +colors["seashell2"] = SEASHELL2 +colors["seashell3"] = SEASHELL3 +colors["seashell4"] = SEASHELL4 +colors["sepia"] = SEPIA +colors["sgibeet"] = SGIBEET +colors["sgibrightgray"] = SGIBRIGHTGRAY +colors["sgichartreuse"] = SGICHARTREUSE +colors["sgidarkgray"] = SGIDARKGRAY +colors["sgigray12"] = SGIGRAY12 +colors["sgigray16"] = SGIGRAY16 +colors["sgigray32"] = SGIGRAY32 +colors["sgigray36"] = SGIGRAY36 +colors["sgigray52"] = SGIGRAY52 +colors["sgigray56"] = SGIGRAY56 +colors["sgigray72"] = SGIGRAY72 +colors["sgigray76"] = SGIGRAY76 +colors["sgigray92"] = SGIGRAY92 +colors["sgigray96"] = SGIGRAY96 +colors["sgilightblue"] = SGILIGHTBLUE +colors["sgilightgray"] = SGILIGHTGRAY +colors["sgiolivedrab"] = SGIOLIVEDRAB +colors["sgisalmon"] = SGISALMON +colors["sgislateblue"] = SGISLATEBLUE +colors["sgiteal"] = SGITEAL +colors["sienna"] = SIENNA +colors["sienna1"] = SIENNA1 +colors["sienna2"] = SIENNA2 +colors["sienna3"] = SIENNA3 +colors["sienna4"] = SIENNA4 +colors["silver"] = SILVER +colors["skyblue"] = SKYBLUE +colors["skyblue1"] = SKYBLUE1 +colors["skyblue2"] = SKYBLUE2 +colors["skyblue3"] = SKYBLUE3 +colors["skyblue4"] = SKYBLUE4 +colors["slateblue"] = SLATEBLUE +colors["slateblue1"] = SLATEBLUE1 +colors["slateblue2"] = SLATEBLUE2 +colors["slateblue3"] = SLATEBLUE3 +colors["slateblue4"] = SLATEBLUE4 +colors["slategray"] = SLATEGRAY +colors["slategray1"] = SLATEGRAY1 +colors["slategray2"] = SLATEGRAY2 +colors["slategray3"] = SLATEGRAY3 +colors["slategray4"] = SLATEGRAY4 +colors["snow1"] = SNOW1 +colors["snow2"] = SNOW2 +colors["snow3"] = SNOW3 +colors["snow4"] = SNOW4 +colors["springgreen"] = SPRINGGREEN +colors["springgreen1"] = SPRINGGREEN1 +colors["springgreen2"] = SPRINGGREEN2 +colors["springgreen3"] = SPRINGGREEN3 +colors["steelblue"] = STEELBLUE +colors["steelblue1"] = STEELBLUE1 +colors["steelblue2"] = STEELBLUE2 +colors["steelblue3"] = STEELBLUE3 +colors["steelblue4"] = STEELBLUE4 +colors["tan"] = TAN +colors["tan1"] = TAN1 +colors["tan2"] = TAN2 +colors["tan3"] = TAN3 +colors["tan4"] = TAN4 +colors["teal"] = TEAL +colors["thistle"] = THISTLE +colors["thistle1"] = THISTLE1 +colors["thistle2"] = THISTLE2 +colors["thistle3"] = THISTLE3 +colors["thistle4"] = THISTLE4 +colors["tomato1"] = TOMATO1 +colors["tomato2"] = TOMATO2 +colors["tomato3"] = TOMATO3 +colors["tomato4"] = TOMATO4 +colors["turquoise"] = TURQUOISE +colors["turquoise1"] = TURQUOISE1 +colors["turquoise2"] = TURQUOISE2 +colors["turquoise3"] = TURQUOISE3 +colors["turquoise4"] = TURQUOISE4 +colors["turquoiseblue"] = TURQUOISEBLUE +colors["violet"] = VIOLET +colors["violetred"] = VIOLETRED +colors["violetred1"] = VIOLETRED1 +colors["violetred2"] = VIOLETRED2 +colors["violetred3"] = VIOLETRED3 +colors["violetred4"] = VIOLETRED4 +colors["warmgrey"] = WARMGREY +colors["wheat"] = WHEAT +colors["wheat1"] = WHEAT1 +colors["wheat2"] = WHEAT2 +colors["wheat3"] = WHEAT3 +colors["wheat4"] = WHEAT4 +colors["white"] = WHITE +colors["whitesmoke"] = WHITESMOKE +colors["whitesmoke"] = WHITESMOKE +colors["yellow1"] = YELLOW1 +colors["yellow2"] = YELLOW2 +colors["yellow3"] = YELLOW3 +colors["yellow4"] = YELLOW4 diff --git a/packages/python/plotly/versioneer.py b/packages/python/plotly/versioneer.py index 64fea1c8927..2b545405108 100644 --- a/packages/python/plotly/versioneer.py +++ b/packages/python/plotly/versioneer.py @@ -1,4 +1,3 @@ - # Version: 0.18 """The Versioneer - like a rocketeer, but for versions. @@ -277,6 +276,7 @@ """ from __future__ import print_function + try: import configparser except ImportError: @@ -308,11 +308,13 @@ def get_root(): setup_py = os.path.join(root, "setup.py") versioneer_py = os.path.join(root, "versioneer.py") if not (os.path.exists(setup_py) or os.path.exists(versioneer_py)): - err = ("Versioneer was unable to run the project root directory. " - "Versioneer requires setup.py to be executed from " - "its immediate directory (like 'python setup.py COMMAND'), " - "or in a way that lets it use sys.argv[0] to find the root " - "(like 'python path/to/setup.py COMMAND').") + err = ( + "Versioneer was unable to run the project root directory. " + "Versioneer requires setup.py to be executed from " + "its immediate directory (like 'python setup.py COMMAND'), " + "or in a way that lets it use sys.argv[0] to find the root " + "(like 'python path/to/setup.py COMMAND')." + ) raise VersioneerBadRootError(err) try: # Certain runtime workflows (setup.py install/develop in a setuptools @@ -325,8 +327,10 @@ def get_root(): me_dir = os.path.normcase(os.path.splitext(me)[0]) vsr_dir = os.path.normcase(os.path.splitext(versioneer_py)[0]) if me_dir != vsr_dir: - print("Warning: build in %s is using versioneer.py from %s" - % (os.path.dirname(me), versioneer_py)) + print( + "Warning: build in %s is using versioneer.py from %s" + % (os.path.dirname(me), versioneer_py) + ) except NameError: pass return root @@ -348,6 +352,7 @@ def get(parser, name): if parser.has_option("versioneer", name): return parser.get("versioneer", name) return None + cfg = VersioneerConfig() cfg.VCS = VCS cfg.style = get(parser, "style") or "" @@ -372,17 +377,18 @@ class NotThisMethod(Exception): def register_vcs_handler(vcs, method): # decorator """Decorator to mark a method as the handler for a particular VCS.""" + def decorate(f): """Store f in HANDLERS[vcs][method].""" if vcs not in HANDLERS: HANDLERS[vcs] = {} HANDLERS[vcs][method] = f return f + return decorate -def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, - env=None): +def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, env=None): """Call the given command(s).""" assert isinstance(commands, list) p = None @@ -390,10 +396,13 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, try: dispcmd = str([c] + args) # remember shell=False, so use git.cmd on windows, not just git - p = subprocess.Popen([c] + args, cwd=cwd, env=env, - stdout=subprocess.PIPE, - stderr=(subprocess.PIPE if hide_stderr - else None)) + p = subprocess.Popen( + [c] + args, + cwd=cwd, + env=env, + stdout=subprocess.PIPE, + stderr=(subprocess.PIPE if hide_stderr else None), + ) break except EnvironmentError: e = sys.exc_info()[1] @@ -418,7 +427,9 @@ def run_command(commands, args, cwd=None, verbose=False, hide_stderr=False, return stdout, p.returncode -LONG_VERSION_PY['git'] = ''' +LONG_VERSION_PY[ + "git" +] = ''' # This file helps to compute a version number in source trees obtained from # git-archive tarball (such as those provided by githubs download-from-tag # feature). Distribution tarballs (built by setup.py sdist) and build @@ -993,7 +1004,7 @@ def git_versions_from_keywords(keywords, tag_prefix, verbose): # starting in git-1.8.3, tags are listed as "tag: foo-1.0" instead of # just "foo-1.0". If we see a "tag: " prefix, prefer those. TAG = "tag: " - tags = set([r[len(TAG):] for r in refs if r.startswith(TAG)]) + tags = set([r[len(TAG) :] for r in refs if r.startswith(TAG)]) if not tags: # Either we're using git < 1.8.3, or there really are no tags. We use # a heuristic: assume all version tags have a digit. The old git %d @@ -1002,7 +1013,7 @@ def git_versions_from_keywords(keywords, tag_prefix, verbose): # between branches and tags. By ignoring refnames without digits, we # filter out many common branch names like "release" and # "stabilization", as well as "HEAD" and "master". - tags = set([r for r in refs if re.search(r'\d', r)]) + tags = set([r for r in refs if re.search(r"\d", r)]) if verbose: print("discarding '%s', no digits" % ",".join(refs - tags)) if verbose: @@ -1010,19 +1021,26 @@ def git_versions_from_keywords(keywords, tag_prefix, verbose): for ref in sorted(tags): # sorting will prefer e.g. "2.0" over "2.0rc1" if ref.startswith(tag_prefix): - r = ref[len(tag_prefix):] + r = ref[len(tag_prefix) :] if verbose: print("picking %s" % r) - return {"version": r, - "full-revisionid": keywords["full"].strip(), - "dirty": False, "error": None, - "date": date} + return { + "version": r, + "full-revisionid": keywords["full"].strip(), + "dirty": False, + "error": None, + "date": date, + } # no suitable tags, so version is "0+unknown", but full hex is still there if verbose: print("no suitable tags, using unknown + full revision id") - return {"version": "0+unknown", - "full-revisionid": keywords["full"].strip(), - "dirty": False, "error": "no suitable tags", "date": None} + return { + "version": "0+unknown", + "full-revisionid": keywords["full"].strip(), + "dirty": False, + "error": "no suitable tags", + "date": None, + } @register_vcs_handler("git", "pieces_from_vcs") @@ -1037,8 +1055,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): if sys.platform == "win32": GITS = ["git.cmd", "git.exe"] - out, rc = run_command(GITS, ["rev-parse", "--git-dir"], cwd=root, - hide_stderr=True) + out, rc = run_command(GITS, ["rev-parse", "--git-dir"], cwd=root, hide_stderr=True) if rc != 0: if verbose: print("Directory %s not under git control" % root) @@ -1046,10 +1063,19 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): # if there is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty] # if there isn't one, this yields HEX[-dirty] (no NUM) - describe_out, rc = run_command(GITS, ["describe", "--tags", "--dirty", - "--always", "--long", - "--match", "%s*" % tag_prefix], - cwd=root) + describe_out, rc = run_command( + GITS, + [ + "describe", + "--tags", + "--dirty", + "--always", + "--long", + "--match", + "%s*" % tag_prefix, + ], + cwd=root, + ) # --long was added in git-1.5.5 if describe_out is None: raise NotThisMethod("'git describe' failed") @@ -1072,17 +1098,16 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): dirty = git_describe.endswith("-dirty") pieces["dirty"] = dirty if dirty: - git_describe = git_describe[:git_describe.rindex("-dirty")] + git_describe = git_describe[: git_describe.rindex("-dirty")] # now we have TAG-NUM-gHEX or HEX if "-" in git_describe: # TAG-NUM-gHEX - mo = re.search(r'^(.+)-(\d+)-g([0-9a-f]+)$', git_describe) + mo = re.search(r"^(.+)-(\d+)-g([0-9a-f]+)$", git_describe) if not mo: # unparseable. Maybe git-describe is misbehaving? - pieces["error"] = ("unable to parse git-describe output: '%s'" - % describe_out) + pieces["error"] = "unable to parse git-describe output: '%s'" % describe_out return pieces # tag @@ -1091,10 +1116,12 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): if verbose: fmt = "tag '%s' doesn't start with prefix '%s'" print(fmt % (full_tag, tag_prefix)) - pieces["error"] = ("tag '%s' doesn't start with prefix '%s'" - % (full_tag, tag_prefix)) + pieces["error"] = "tag '%s' doesn't start with prefix '%s'" % ( + full_tag, + tag_prefix, + ) return pieces - pieces["closest-tag"] = full_tag[len(tag_prefix):] + pieces["closest-tag"] = full_tag[len(tag_prefix) :] # distance: number of commits since tag pieces["distance"] = int(mo.group(2)) @@ -1105,13 +1132,13 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): else: # HEX: no tags pieces["closest-tag"] = None - count_out, rc = run_command(GITS, ["rev-list", "HEAD", "--count"], - cwd=root) + count_out, rc = run_command(GITS, ["rev-list", "HEAD", "--count"], cwd=root) pieces["distance"] = int(count_out) # total number of commits # commit date: see ISO-8601 comment in git_versions_from_keywords() - date = run_command(GITS, ["show", "-s", "--format=%ci", "HEAD"], - cwd=root)[0].strip() + date = run_command(GITS, ["show", "-s", "--format=%ci", "HEAD"], cwd=root)[ + 0 + ].strip() pieces["date"] = date.strip().replace(" ", "T", 1).replace(" ", "", 1) return pieces @@ -1167,16 +1194,22 @@ def versions_from_parentdir(parentdir_prefix, root, verbose): for i in range(3): dirname = os.path.basename(root) if dirname.startswith(parentdir_prefix): - return {"version": dirname[len(parentdir_prefix):], - "full-revisionid": None, - "dirty": False, "error": None, "date": None} + return { + "version": dirname[len(parentdir_prefix) :], + "full-revisionid": None, + "dirty": False, + "error": None, + "date": None, + } else: rootdirs.append(root) root = os.path.dirname(root) # up a level if verbose: - print("Tried directories %s but none started with prefix %s" % - (str(rootdirs), parentdir_prefix)) + print( + "Tried directories %s but none started with prefix %s" + % (str(rootdirs), parentdir_prefix) + ) raise NotThisMethod("rootdir doesn't start with parentdir_prefix") @@ -1205,11 +1238,13 @@ def versions_from_file(filename): contents = f.read() except EnvironmentError: raise NotThisMethod("unable to read _version.py") - mo = re.search(r"version_json = '''\n(.*)''' # END VERSION_JSON", - contents, re.M | re.S) + mo = re.search( + r"version_json = '''\n(.*)''' # END VERSION_JSON", contents, re.M | re.S + ) if not mo: - mo = re.search(r"version_json = '''\r\n(.*)''' # END VERSION_JSON", - contents, re.M | re.S) + mo = re.search( + r"version_json = '''\r\n(.*)''' # END VERSION_JSON", contents, re.M | re.S + ) if not mo: raise NotThisMethod("no version_json in _version.py") return json.loads(mo.group(1)) @@ -1218,8 +1253,7 @@ def versions_from_file(filename): def write_to_version_file(filename, versions): """Write the given version number to the given _version.py file.""" os.unlink(filename) - contents = json.dumps(versions, sort_keys=True, - indent=1, separators=(",", ": ")) + contents = json.dumps(versions, sort_keys=True, indent=1, separators=(",", ": ")) with open(filename, "w") as f: f.write(SHORT_VERSION_PY % contents) @@ -1251,8 +1285,7 @@ def render_pep440(pieces): rendered += ".dirty" else: # exception #1 - rendered = "0+untagged.%d.g%s" % (pieces["distance"], - pieces["short"]) + rendered = "0+untagged.%d.g%s" % (pieces["distance"], pieces["short"]) if pieces["dirty"]: rendered += ".dirty" return rendered @@ -1366,11 +1399,13 @@ def render_git_describe_long(pieces): def render(pieces, style): """Render the given version pieces into the requested style.""" if pieces["error"]: - return {"version": "unknown", - "full-revisionid": pieces.get("long"), - "dirty": None, - "error": pieces["error"], - "date": None} + return { + "version": "unknown", + "full-revisionid": pieces.get("long"), + "dirty": None, + "error": pieces["error"], + "date": None, + } if not style or style == "default": style = "pep440" # the default @@ -1390,9 +1425,13 @@ def render(pieces, style): else: raise ValueError("unknown style '%s'" % style) - return {"version": rendered, "full-revisionid": pieces["long"], - "dirty": pieces["dirty"], "error": None, - "date": pieces.get("date")} + return { + "version": rendered, + "full-revisionid": pieces["long"], + "dirty": pieces["dirty"], + "error": None, + "date": pieces.get("date"), + } class VersioneerBadRootError(Exception): @@ -1415,8 +1454,9 @@ def get_versions(verbose=False): handlers = HANDLERS.get(cfg.VCS) assert handlers, "unrecognized VCS '%s'" % cfg.VCS verbose = verbose or cfg.verbose - assert cfg.versionfile_source is not None, \ - "please set versioneer.versionfile_source" + assert ( + cfg.versionfile_source is not None + ), "please set versioneer.versionfile_source" assert cfg.tag_prefix is not None, "please set versioneer.tag_prefix" versionfile_abs = os.path.join(root, cfg.versionfile_source) @@ -1470,9 +1510,13 @@ def get_versions(verbose=False): if verbose: print("unable to compute version") - return {"version": "0+unknown", "full-revisionid": None, - "dirty": None, "error": "unable to compute version", - "date": None} + return { + "version": "0+unknown", + "full-revisionid": None, + "dirty": None, + "error": "unable to compute version", + "date": None, + } def get_version(): @@ -1521,6 +1565,7 @@ def run(self): print(" date: %s" % vers.get("date")) if vers["error"]: print(" error: %s" % vers["error"]) + cmds["version"] = cmd_version # we override "build_py" in both distutils and setuptools @@ -1553,14 +1598,15 @@ def run(self): # now locate _version.py in the new build/ directory and replace # it with an updated value if cfg.versionfile_build: - target_versionfile = os.path.join(self.build_lib, - cfg.versionfile_build) + target_versionfile = os.path.join(self.build_lib, cfg.versionfile_build) print("UPDATING %s" % target_versionfile) write_to_version_file(target_versionfile, versions) + cmds["build_py"] = cmd_build_py if "cx_Freeze" in sys.modules: # cx_freeze enabled? from cx_Freeze.dist import build_exe as _build_exe + # nczeczulin reports that py2exe won't like the pep440-style string # as FILEVERSION, but it can be used for PRODUCTVERSION, e.g. # setup(console=[{ @@ -1581,17 +1627,21 @@ def run(self): os.unlink(target_versionfile) with open(cfg.versionfile_source, "w") as f: LONG = LONG_VERSION_PY[cfg.VCS] - f.write(LONG % - {"DOLLAR": "$", - "STYLE": cfg.style, - "TAG_PREFIX": cfg.tag_prefix, - "PARENTDIR_PREFIX": cfg.parentdir_prefix, - "VERSIONFILE_SOURCE": cfg.versionfile_source, - }) + f.write( + LONG + % { + "DOLLAR": "$", + "STYLE": cfg.style, + "TAG_PREFIX": cfg.tag_prefix, + "PARENTDIR_PREFIX": cfg.parentdir_prefix, + "VERSIONFILE_SOURCE": cfg.versionfile_source, + } + ) + cmds["build_exe"] = cmd_build_exe del cmds["build_py"] - if 'py2exe' in sys.modules: # py2exe enabled? + if "py2exe" in sys.modules: # py2exe enabled? try: from py2exe.distutils_buildexe import py2exe as _py2exe # py3 except ImportError: @@ -1610,13 +1660,17 @@ def run(self): os.unlink(target_versionfile) with open(cfg.versionfile_source, "w") as f: LONG = LONG_VERSION_PY[cfg.VCS] - f.write(LONG % - {"DOLLAR": "$", - "STYLE": cfg.style, - "TAG_PREFIX": cfg.tag_prefix, - "PARENTDIR_PREFIX": cfg.parentdir_prefix, - "VERSIONFILE_SOURCE": cfg.versionfile_source, - }) + f.write( + LONG + % { + "DOLLAR": "$", + "STYLE": cfg.style, + "TAG_PREFIX": cfg.tag_prefix, + "PARENTDIR_PREFIX": cfg.parentdir_prefix, + "VERSIONFILE_SOURCE": cfg.versionfile_source, + } + ) + cmds["py2exe"] = cmd_py2exe # we override different "sdist" commands for both environments @@ -1643,8 +1697,10 @@ def make_release_tree(self, base_dir, files): # updated value target_versionfile = os.path.join(base_dir, cfg.versionfile_source) print("UPDATING %s" % target_versionfile) - write_to_version_file(target_versionfile, - self._versioneer_generated_versions) + write_to_version_file( + target_versionfile, self._versioneer_generated_versions + ) + cmds["sdist"] = cmd_sdist return cmds @@ -1699,11 +1755,13 @@ def do_setup(): root = get_root() try: cfg = get_config_from_root(root) - except (EnvironmentError, configparser.NoSectionError, - configparser.NoOptionError) as e: + except ( + EnvironmentError, + configparser.NoSectionError, + configparser.NoOptionError, + ) as e: if isinstance(e, (EnvironmentError, configparser.NoSectionError)): - print("Adding sample versioneer config to setup.cfg", - file=sys.stderr) + print("Adding sample versioneer config to setup.cfg", file=sys.stderr) with open(os.path.join(root, "setup.cfg"), "a") as f: f.write(SAMPLE_CONFIG) print(CONFIG_ERROR, file=sys.stderr) @@ -1712,15 +1770,18 @@ def do_setup(): print(" creating %s" % cfg.versionfile_source) with open(cfg.versionfile_source, "w") as f: LONG = LONG_VERSION_PY[cfg.VCS] - f.write(LONG % {"DOLLAR": "$", - "STYLE": cfg.style, - "TAG_PREFIX": cfg.tag_prefix, - "PARENTDIR_PREFIX": cfg.parentdir_prefix, - "VERSIONFILE_SOURCE": cfg.versionfile_source, - }) - - ipy = os.path.join(os.path.dirname(cfg.versionfile_source), - "__init__.py") + f.write( + LONG + % { + "DOLLAR": "$", + "STYLE": cfg.style, + "TAG_PREFIX": cfg.tag_prefix, + "PARENTDIR_PREFIX": cfg.parentdir_prefix, + "VERSIONFILE_SOURCE": cfg.versionfile_source, + } + ) + + ipy = os.path.join(os.path.dirname(cfg.versionfile_source), "__init__.py") if os.path.exists(ipy): try: with open(ipy, "r") as f: @@ -1762,8 +1823,10 @@ def do_setup(): else: print(" 'versioneer.py' already in MANIFEST.in") if cfg.versionfile_source not in simple_includes: - print(" appending versionfile_source ('%s') to MANIFEST.in" % - cfg.versionfile_source) + print( + " appending versionfile_source ('%s') to MANIFEST.in" + % cfg.versionfile_source + ) with open(manifest_in, "a") as f: f.write("include %s\n" % cfg.versionfile_source) else: diff --git a/pyproject.toml b/pyproject.toml new file mode 100644 index 00000000000..cb82ab5fe07 --- /dev/null +++ b/pyproject.toml @@ -0,0 +1,26 @@ +[tool.black] +line-length = 88 +target_version = ['py27', 'py35', 'py36', 'py37'] +include = '\.pyi?$' +exclude = ''' + +( + /( + \.eggs # exclude a few common directories in the + | \.git # root of the project + | \.hg + | \.mypy_cache + | \.tox + | \.venv + | _build + | buck-out + | build + | dist + | submodules + | packages/javascript + | packages/python/plotly/plotly/matplotlylib/mplexporter + | packages/python/chart-studio/chart_studio/plotly/chunked_requests + )/ + | versioneer.py +) +''' \ No newline at end of file diff --git a/setup_submodules.py b/setup_submodules.py index e22dfee6ef8..592e97d2709 100644 --- a/setup_submodules.py +++ b/setup_submodules.py @@ -4,55 +4,38 @@ here = os.path.dirname(os.path.abspath(__file__)) -if __name__ == '__main__': +if __name__ == "__main__": # Init submodules - subprocess.check_output(['git', 'submodule', 'init']) + subprocess.check_output(["git", "submodule", "init"]) # Update submodules - subprocess.check_output(['git', 'submodule', 'update']) + subprocess.check_output(["git", "submodule", "update"]) # Replace mplexporter directory mpl_dst = os.path.join( - here, - 'packages', - 'python', - 'plotly', - 'plotly', - 'matplotlylib', - 'mplexporter', + here, "packages", "python", "plotly", "plotly", "matplotlylib", "mplexporter" ) shutil.rmtree(mpl_dst, ignore_errors=True) shutil.copytree( - os.path.join( - here, - 'submodules', - 'mplexporter', - 'mplexporter', - ), - mpl_dst, + os.path.join(here, "submodules", "mplexporter", "mplexporter"), mpl_dst ) # Replace chunked_requests directory chunked_dst = os.path.join( - here, - 'packages', - 'python', - 'chart-studio', - 'chart_studio', - 'plotly', - 'chunked_requests', - ) + here, + "packages", + "python", + "chart-studio", + "chart_studio", + "plotly", + "chunked_requests", + ) shutil.rmtree(chunked_dst, ignore_errors=True) shutil.copytree( - os.path.join( - here, - 'submodules', - 'chunked_requests', - 'chunked_requests', - ), + os.path.join(here, "submodules", "chunked_requests", "chunked_requests"), os.path.join(chunked_dst), ) diff --git a/test/vv/lib/python2.7/site-packages/plotly/version.py b/test/vv/lib/python2.7/site-packages/plotly/version.py index f593cd5bd5c..f6bb6f4de32 100644 --- a/test/vv/lib/python2.7/site-packages/plotly/version.py +++ b/test/vv/lib/python2.7/site-packages/plotly/version.py @@ -1 +1 @@ -__version__ = '2.0.4' +__version__ = "2.0.4"